eslint-config-silverwind 158.0.2 → 159.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +8 -8
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -370,7 +370,7 @@ function bq(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...zW(n)})}//
370
370
  function xq(e,t){let n=/* @__PURE__ */ Sq(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(QW(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(QW(r))}},e(t.value,t)),t);return n}// @__NO_SIDE_EFFECTS__
371
371
  function Sq(e,t){let n=new CG({check:`custom`,...zW(t)});return n._zod.check=e,n}function Cq(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&EW(e,t,n[t]);return e}function wq(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??DK,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:/* @__PURE__ */ new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function Tq(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function Eq(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Eq(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Cq(o.schema,c),t.io===`input`&&Iq(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Dq(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function Oq(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=/* @__PURE__ */ new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${Dq(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+Dq(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
372
372
 
373
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0])a(n);else{if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&e.reused===`ref`)&&a(n)}}e.external&&(e.sharedDefsExtractedFor=e.external)}function kq(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;kq(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}const Aq=/* @__PURE__ */ new Set([`type`,`properties`,`required`,`additionalProperties`]),jq=[`oneOf`,`anyOf`];function Mq(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function Nq(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!Aq.has(e))return null;t.push(n)}let n={},r=/* @__PURE__ */ new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??Mq(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}EW(n,r,e.length===1?e[0]:Nq(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=Mq(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function Pq(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of Aq)if(t in e)return;let n=t.filter(e=>jq.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=Nq(t);else{let e=n[0],i=jq.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>Nq([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,Cq(e,r))}function Fq(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Cq(i,s),Cq(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())kq(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=/* @__PURE__ */ new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])Pq(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Cq(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,EW(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Rq(t,`input`,e.processors),output:Rq(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Iq(e,t){let n=t??{seen:/* @__PURE__ */ new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Iq(r.element,n);if(r.type===`set`)return Iq(r.valueType,n);if(r.type===`lazy`)return Iq(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return Iq(r.innerType,n);if(r.type===`intersection`)return Iq(r.left,n)||Iq(r.right,n);if(r.type===`record`||r.type===`map`)return Iq(r.keyType,n)||Iq(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Iq(r.in,n)||Iq(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Iq(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Iq(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Iq(e,n))return!0;return!!(r.rest&&Iq(r.rest,n))}return!1}const Lq=(e,t={})=>n=>{let r=wq({...n,processors:t});return Eq(e,r),Oq(r,e),Fq(r,e)},Rq=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=wq({...i??{},target:a,io:t,processors:n});return Eq(e,o),Oq(o,e),Fq(o,e)},zq=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},Bq=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},Vq=(e,t)=>{zq(e,`minimum`,t),Bq(e,`maximum`,t)},Hq=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},Uq=(e,t)=>{e.patterns??=/* @__PURE__ */ new Set,e.patterns.add(t)},Wq=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},Gq=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},Kq=(e,t)=>zq(e,`minimum`,t.minimum),qq=(e,t)=>Bq(e,`maximum`,t.maximum),Jq=e=>(t,n)=>{Gq(t,n.format);let[r,i]=e[n.format];zq(t,`minimum`,r),Bq(t,`maximum`,i)},Yq={greater_than:(e,t)=>zq(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>Bq(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>Hq(e,t.value),number_format:Jq(Die),bigint_format:Jq(Oie),min_length:Kq,max_length:qq,length_equals:(e,t)=>Vq(e,t.length),min_size:Kq,max_size:qq,size_equals:(e,t)=>Vq(e,t.size),string_format:(e,t)=>{Gq(e,t.format),t.pattern&&Uq(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>Wq(e,t.mime)};function Xq(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)Yq[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&zq(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&zq(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&Bq(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&Bq(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&Hq(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&Wq(t,i.mime);for(let e of i.patterns??[])Uq(t,e);return t}const Zq={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Qq=/* @__PURE__ */ new Map([[FG,Dae],[IG,Oae]]),$q=e=>Qq.get(e)??e,eJ=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=Xq(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Zq[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map($q);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},tJ=(e,t,n,r)=>{n.not={}},nJ=(e,t,n,r)=>{let i=xW(e._zod.def.entries);i.length===0?n.not={}:(i.every(e=>typeof e==`number`)&&(n.type=`number`),i.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=i)},rJ=(e,t,n,r)=>{Tq(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},iJ=(e,t,n,r)=>{Tq(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},aJ=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=Xq(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Eq(a.element,t,{...r,path:[...r.path,`items`]})};function oJ(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?oJ(t.out):t.type===`catch`?oJ(t.innerType):e._zod.optin}const sJ=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&Tq(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)EW(i.properties,e,Eq(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?oJ(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Eq(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},cJ=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Eq(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},lJ=(e,t,n,r)=>{let i=e._zod.def,a=Eq(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Eq(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},uJ=(e,t,n,r)=>{let i=e._zod.def,a=Eq(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},dJ=(e,t,n,r)=>{let i=e._zod.def;Eq(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},fJ=Symbol();function pJ(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(Tq(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),fJ):JSON.parse(o)}const mJ=(e,t,n,r)=>{let i=e._zod.def;Eq(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=pJ(i.defaultValue,e,t,n,r);o!==fJ&&(n.default=o)},hJ=(e,t,n,r)=>{let i=e._zod.def;Eq(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=pJ(i.defaultValue,e,t,n,r);o!==fJ&&(n._prefault=o)},gJ=(e,t,n,r)=>{let i=e._zod.def;Eq(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{Tq(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},_J=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;Eq(o,t,r);let s=t.seen.get(e);s.ref=o},vJ=(e,t,n,r)=>{let i=e._zod.def;Eq(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},yJ=(e,t,n,r)=>{let i=e._zod.def;Eq(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},bJ=/* @__PURE__ */ new WeakSet([Object.prototype,Error.prototype]);function xJ(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}const SJ=/*@__PURE__*/ sG(`ZodError`,(e,t)=>{Yie.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);bJ.has(n)||(bJ.add(n),xJ(n,`format`,e=>t=>Qie(e,t)),xJ(n,`flatten`,e=>t=>Zie(e,t)),xJ(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,CW,2)}),xJ(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,CW,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),CJ=/* @__PURE__ */ hG(SJ),wJ=/* @__PURE__ */ gG(SJ),TJ=/* @__PURE__ */ _G(SJ),EJ=/* @__PURE__ */ yG(SJ),DJ=/* @__PURE__ */ iae(SJ),OJ=/* @__PURE__ */ aae(SJ),kJ=/* @__PURE__ */ oae(SJ),AJ=/* @__PURE__ */ sae(SJ),jJ=/* @__PURE__ */ cae(SJ),MJ=/* @__PURE__ */ lae(SJ),NJ=/* @__PURE__ */ uae(SJ),PJ=/* @__PURE__ */ dae(SJ);function FJ(){uG.localeError||dG(CK())}function IJ(){uG.memoizer||dG({memoizer:bK()})}const LJ=/*@__PURE__*/ sG(`ZodType`,(e,t)=>(FJ(),EG.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(MW(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return RW(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(KY(e,t))},superRefine(e,t){return this.check(qY(e,t))},overwrite(e){return this.check(/* @__PURE__ */ pq(e))},optional(){return OY(this)},exactOptional(){return AY(this)},nullable(){return MY(this)},nullish(){return OY(MY(this))},nonoptional(e){return RY(this,e)},array(){return gY(this)},or(e){return bY([this,e])},and(e){return SY(this,e)},transform(e){return HY(this,EY(e))},default(e){return PY(this,e)},prefault(e){return IY(this,e)},catch(e){return BY(this,e)},pipe(e){return HY(this,e)},readonly(){return WY(this)},describe(e){let t=this.clone();return DK.add(t,{description:e}),t},meta(...e){if(e.length===0)return DK.get(this);let t=this.clone();return DK.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return eG(this,`~standard`,{...OG(this),jsonSchema:{input:Rq(this,`input`),output:Rq(this,`output`)}})},set"~standard"(e){$W(this,`~standard`,e)},parse:function e(t,n){return CJ(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await wJ(this,t,n,{callee:e})},safeParse(e,t){return TJ(this,e,t)},async safeParseAsync(e,t){return EJ(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){$W(this,`spa`,e)},validate(e,t){return tae(this,e,t)},validateAsync(e,t){return rae(this,e,t)},encode:function e(t,n){return DJ(this,t,n,{callee:e})},decode:function e(t,n){return OJ(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await kJ(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await AJ(this,t,n,{callee:e})},safeEncode(e,t){return jJ(this,e,t)},safeDecode(e,t){return MJ(this,e,t)},async safeEncodeAsync(e,t){return NJ(this,e,t)},async safeDecodeAsync(e,t){return PJ(this,e,t)},toJSONSchema(e){return Lq(this,{})(e)},get description(){return DK.get(this)?.description},get _def(){return this._zod.def}}),RJ=/*@__PURE__*/ sG(`_ZodString`,(e,t)=>{kG.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>eJ(e,t,n,r)},/*@__PURE__*/ zie({format:e=>Xq(e).format??null,minLength:e=>Xq(e).minimum??null,maxLength:e=>Xq(e).maximum??null},{regex(...e){return this.check(/* @__PURE__ */ sq(...e))},includes(...e){return this.check(/* @__PURE__ */ uq(...e))},startsWith(...e){return this.check(/* @__PURE__ */ dq(...e))},endsWith(...e){return this.check(/* @__PURE__ */ fq(...e))},min(...e){return this.check(/* @__PURE__ */ aq(...e))},max(...e){return this.check(/* @__PURE__ */ iq(...e))},length(...e){return this.check(/* @__PURE__ */ oq(...e))},nonempty(...e){return this.check(/* @__PURE__ */ aq(1,...e))},lowercase(e){return this.check(/* @__PURE__ */ cq(e))},uppercase(e){return this.check(/* @__PURE__ */ lq(e))},trim(){return this.check(/* @__PURE__ */ hq())},normalize(...e){return this.check(/* @__PURE__ */ mq(...e))},toLowerCase(){return this.check(/* @__PURE__ */ gq())},toUpperCase(){return this.check(/* @__PURE__ */ _q())},slugify(){return this.check(/* @__PURE__ */ vq())}})),zJ=/*@__PURE__*/ sG(`ZodString`,(e,t)=>{kG.init(e,t),RJ.init(e,t)},{email(e){return this.check(/* @__PURE__ */ AK(KJ,e))},url(e){return this.check(/* @__PURE__ */ IK(YJ,e))},jwt(e){return this.check(/* @__PURE__ */ ZK(uY,e))},emoji(e){return this.check(/* @__PURE__ */ LK(XJ,e))},guid(e){return this.check(/* @__PURE__ */ jK(qJ,e))},uuid(e){return this.check(/* @__PURE__ */ MK(JJ,e))},uuidv4(e){return this.check(/* @__PURE__ */ NK(JJ,e))},uuidv6(e){return this.check(/* @__PURE__ */ PK(JJ,e))},uuidv7(e){return this.check(/* @__PURE__ */ FK(JJ,e))},nanoid(e){return this.check(/* @__PURE__ */ RK(ZJ,e))},cuid(e){return this.check(/* @__PURE__ */ zK(QJ,e))},cuid2(e){return this.check(/* @__PURE__ */ BK($J,e))},ulid(e){return this.check(/* @__PURE__ */ VK(eY,e))},base64(e){return this.check(/* @__PURE__ */ JK(sY,e))},base64url(e){return this.check(/* @__PURE__ */ YK(cY,e))},xid(e){return this.check(/* @__PURE__ */ HK(tY,e))},ksuid(e){return this.check(/* @__PURE__ */ UK(nY,e))},ipv4(e){return this.check(/* @__PURE__ */ WK(rY,e))},ipv6(e){return this.check(/* @__PURE__ */ GK(iY,e))},cidrv4(e){return this.check(/* @__PURE__ */ KK(aY,e))},cidrv6(e){return this.check(/* @__PURE__ */ qK(oY,e))},e164(e){return this.check(/* @__PURE__ */ XK(lY,e))},datetime(e){return this.check(/* @__PURE__ */ QK(HJ,e))},date(e){return this.check(/* @__PURE__ */ $K(UJ,e))},time(e){return this.check(/* @__PURE__ */ eq(WJ,e))},duration(e){return this.check(/* @__PURE__ */ tq(GJ,e))}});function BJ(e){return/* @__PURE__ */ kK(zJ,e)}const VJ=/*@__PURE__*/ sG(`ZodStringFormat`,(e,t)=>{AG.init(e,t),RJ.init(e,t)}),HJ=/*@__PURE__*/ sG(`ZodISODateTime`,(e,t)=>{poe.init(e,t),VJ.init(e,t)}),UJ=/*@__PURE__*/ sG(`ZodISODate`,(e,t)=>{moe.init(e,t),VJ.init(e,t)}),WJ=/*@__PURE__*/ sG(`ZodISOTime`,(e,t)=>{hoe.init(e,t),VJ.init(e,t)}),GJ=/*@__PURE__*/ sG(`ZodISODuration`,(e,t)=>{goe.init(e,t),VJ.init(e,t)}),KJ=/*@__PURE__*/ sG(`ZodEmail`,(e,t)=>{$ae.init(e,t),VJ.init(e,t)}),qJ=/*@__PURE__*/ sG(`ZodGUID`,(e,t)=>{Zae.init(e,t),VJ.init(e,t)}),JJ=/*@__PURE__*/ sG(`ZodUUID`,(e,t)=>{Qae.init(e,t),VJ.init(e,t)}),YJ=/*@__PURE__*/ sG(`ZodURL`,(e,t)=>{aoe.init(e,t),VJ.init(e,t)}),XJ=/*@__PURE__*/ sG(`ZodEmoji`,(e,t)=>{ooe.init(e,t),VJ.init(e,t)}),ZJ=/*@__PURE__*/ sG(`ZodNanoID`,(e,t)=>{soe.init(e,t),VJ.init(e,t)}),QJ=/*@__PURE__*/ sG(`ZodCUID`,(e,t)=>{coe.init(e,t),VJ.init(e,t)}),$J=/*@__PURE__*/ sG(`ZodCUID2`,(e,t)=>{loe.init(e,t),VJ.init(e,t)}),eY=/*@__PURE__*/ sG(`ZodULID`,(e,t)=>{uoe.init(e,t),VJ.init(e,t)}),tY=/*@__PURE__*/ sG(`ZodXID`,(e,t)=>{doe.init(e,t),VJ.init(e,t)}),nY=/*@__PURE__*/ sG(`ZodKSUID`,(e,t)=>{foe.init(e,t),VJ.init(e,t)}),rY=/*@__PURE__*/ sG(`ZodIPv4`,(e,t)=>{_oe.init(e,t),VJ.init(e,t)}),iY=/*@__PURE__*/ sG(`ZodIPv6`,(e,t)=>{yoe.init(e,t),VJ.init(e,t)}),aY=/*@__PURE__*/ sG(`ZodCIDRv4`,(e,t)=>{boe.init(e,t),VJ.init(e,t)}),oY=/*@__PURE__*/ sG(`ZodCIDRv6`,(e,t)=>{Soe.init(e,t),VJ.init(e,t)}),sY=/*@__PURE__*/ sG(`ZodBase64`,(e,t)=>{Coe.init(e,t),VJ.init(e,t)}),cY=/*@__PURE__*/ sG(`ZodBase64URL`,(e,t)=>{Toe.init(e,t),VJ.init(e,t)}),lY=/*@__PURE__*/ sG(`ZodE164`,(e,t)=>{Eoe.init(e,t),VJ.init(e,t)}),uY=/*@__PURE__*/ sG(`ZodJWT`,(e,t)=>{Ooe.init(e,t),VJ.init(e,t)}),dY=/*@__PURE__*/ sG(`ZodUnknown`,(e,t)=>{koe.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function fY(){return/* @__PURE__ */ nq(dY)}const pY=/*@__PURE__*/ sG(`ZodNever`,(e,t)=>{Aoe.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tJ(e,t,n,r)});function mY(e){return/* @__PURE__ */ rq(pY,e)}const hY=/*@__PURE__*/ sG(`ZodArray`,(e,t)=>{IJ(),Noe.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>aJ(e,t,n,r),e.element=t.element},{min(e,t){return this.check(/* @__PURE__ */ aq(e,t))},nonempty(e){return this.check(/* @__PURE__ */ aq(1,e))},max(e,t){return this.check(/* @__PURE__ */ iq(e,t))},length(e,t){return this.check(/* @__PURE__ */ oq(e,t))},unwrap(){return this.element}});function gY(e,t){return/* @__PURE__ */ yq(hY,e,t)}const _Y=/*@__PURE__*/ sG(`ZodObject`,(e,t)=>{IJ(),Ioe.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sJ(e,t,n,r),Uie(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return wY(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(MW(this._zod.def,{catchall:e}))},passthrough(){return this.clone(MW(this._zod.def,{catchall:fY()}))},loose(){return this.clone(MW(this._zod.def,{catchall:fY()}))},strict(){return this.clone(MW(this._zod.def,{catchall:mY()}))},strip(){return this.clone(MW(this._zod.def,{catchall:void 0}))},extend(e){return jie(this,e)},safeExtend(e){return Mie(this,e)},merge(e){return Nie(this,e)},pick(e){return kie(this,e)},omit(e){return Aie(this,e)},partial(...e){return UW(DY,this,e[0])},exactPartial(...e){return UW(kY,this,e[0],`exactPartial`)},required(...e){return Pie(LY,this,e[0])}});function vY(e,t){let n={type:`object`,shape:e??{},...zW(t)};return new _Y(n)}const yY=/*@__PURE__*/ sG(`ZodUnion`,(e,t)=>{Loe.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cJ(e,t,n,r),e.options=t.options});function bY(e,t){return new yY({type:`union`,options:e,...zW(t)})}const xY=/*@__PURE__*/ sG(`ZodIntersection`,(e,t)=>{Roe.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lJ(e,t,n,r)});function SY(e,t){return new xY({type:`intersection`,left:e,right:t})}const CY=/*@__PURE__*/ sG(`ZodEnum`,(e,t)=>{zoe.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nJ(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new CY({...t,checks:[],...zW(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new CY({...t,checks:[],...zW(r),entries:i})}});function wY(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new CY({type:`enum`,entries:n,...zW(t)})}const TY=/*@__PURE__*/ sG(`ZodTransform`,(e,t)=>{IJ(),WG.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iJ(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new lG(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(QW(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(QW(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function EY(e){return new TY({type:`transform`,transform:e})}const DY=/*@__PURE__*/ sG(`ZodOptional`,(e,t)=>{KG.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yJ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function OY(e){return new DY({type:`optional`,innerType:e})}const kY=/*@__PURE__*/ sG(`ZodExactOptional`,(e,t)=>{qG.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yJ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function AY(e){return new kY({type:`optional`,innerType:e})}const jY=/*@__PURE__*/ sG(`ZodNullable`,(e,t)=>{JG.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uJ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function MY(e){return new jY({type:`nullable`,innerType:e})}const NY=/*@__PURE__*/ sG(`ZodDefault`,(e,t)=>{YG.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mJ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function PY(e,t){return new NY({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():IW(t)}})}const FY=/*@__PURE__*/ sG(`ZodPrefault`,(e,t)=>{ZG.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hJ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function IY(e,t){return new FY({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():IW(t)}})}const LY=/*@__PURE__*/ sG(`ZodNonOptional`,(e,t)=>{QG.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dJ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function RY(e,t){return new LY({type:`nonoptional`,innerType:e,...zW(t)})}const zY=/*@__PURE__*/ sG(`ZodCatch`,(e,t)=>{tK.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gJ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function BY(e,t){return new zY({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:Wie(t)})}const VY=/*@__PURE__*/ sG(`ZodPipe`,(e,t)=>{nK.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_J(e,t,n,r),e.in=t.in,e.out=t.out});function HY(e,t){return new VY({type:`pipe`,in:e,out:t})}const UY=/*@__PURE__*/ sG(`ZodReadonly`,(e,t)=>{iK.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vJ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function WY(e){return new UY({type:`readonly`,innerType:e})}const GY=/*@__PURE__*/ sG(`ZodCustom`,(e,t)=>{oK.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rJ(e,t,n,r)});function KY(e,t={}){return/* @__PURE__ */ bq(GY,e,t)}function qY(e,t){return/* @__PURE__ */ xq(e,t)}const JY=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;e<r;e++)n=t[e](n);return n}}},YY={pipe(){return JY(this,arguments)}};(function(){function e(){}return e.prototype=YY,e})();const XY=function(e,t){if(typeof e==`function`)return function(){return e(arguments)?t.apply(this,arguments):(e=>t(e,...arguments))};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}},ZY=e=>e,QY=ZY,$Y=(e=>()=>e)(!1);XY(2,(e,t)=>n=>t(e(n))),QY(e=>{throw Error("Called `absurd` function which should be uncallable")});function eX(e){let t=/* @__PURE__ */ new WeakMap,n=/* @__PURE__ */ new Map;return r=>nX(r)?rX(t,r,()=>e(r)):rX(n,r,()=>e(r))}XY(2,(e,t)=>n=>e(n)&&t(n)),XY(2,(e,t)=>n=>e(n)||t(n)),XY(2,(e,t)=>n=>e(n)!==t(n)),XY(2,(e,t)=>n=>e(n)===t(n)),XY(2,(e,t)=>n=>!e(n)||t(n)),XY(2,(e,t)=>n=>!e(n)&&!t(n)),XY(2,(e,t)=>n=>!e(n)||!t(n));function tX(e){return typeof e==`function`}function nX(e){return typeof e==`object`&&!!e||tX(e)}XY(2,(e,t)=>nX(e)&&t in e);function rX(e,t,n){if(e.has(t))return e.get(t);let r=n(t);return e.set(t,r),r}XY(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(i)}),XY(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(0,i)});const iX=/^[\u0000-\u001F ]*j[\t\n\r]*a[\t\n\r]*v[\t\n\r]*a[\t\n\r]*s[\t\n\r]*c[\t\n\r]*r[\t\n\r]*i[\t\n\r]*p[\t\n\r]*t[\t\n\r]*:/iu,aX=/^\/(.+)\/([A-Za-z]*)$/u,oX=/@jsx\s+(\S+)/u,sX=/@jsxFrag\s+(\S+)/u,cX=/@jsxRuntime\s+(\S+)/u,lX=/@jsxImportSource\s+(\S+)/u,uX=/^[A-Z]/u,dX=/^_?[A-Z]/u;function fX(e){if(e==null)return{test:$Y};let[,t,n=`u`]=aX.exec(e)??[];return t==null?{test:t=>t===e}:new RegExp(t,n)}const pX=vY({importSource:OY(BJ()),compilationMode:OY(wY([`infer`,`annotation`,`syntax`,`all`])),polymorphicPropName:OY(BJ()),version:OY(BJ()),additionalRefHooks:OY(BJ()),additionalStateHooks:OY(BJ()),additionalEffectHooks:OY(BJ())});OY(vY({"react-x":OY(fY())}));const mX={version:`detect`,importSource:`react`,polymorphicPropName:`as`};function hX(e){return pX.safeParse(e).success}const gX=e=>hX(e)?e:mX,_X=({importSource:e=`react`,compilationMode:t,polymorphicPropName:n=`as`,version:r,additionalRefHooks:i,additionalStateHooks:a,additionalEffectHooks:o,...s})=>({...s,importSource:e,compilationMode:t??`off`,polymorphicPropName:n,version:bW(r).with(vW.union(vW.nullish,``,`detect`),()=>vX(`19.3.0`)).otherwise(ZY),additionalRefHooks:fX(i),additionalStateHooks:fX(a),additionalEffectHooks:fX(o)});function vX(t){try{return bW(e.createRequire(process.cwd()+v.sep)(`react`)).with({version:vW.select(vW.string)},ZY).otherwise(()=>t)}catch{return t}}const yX=eX(e=>_X(gX(e)));function bX(e){return yX(e.settings[`react-x`])}var xX=/* @__PURE__ */ R(FT(),1),SX=Object.defineProperty,CX=(e,t)=>{let n=Object.setPrototypeOf({},null);for(var r in e)SX(n,r,{get:e[r],enumerable:!0});return t&1||SX(n,Symbol.toStringTag,{value:`Module`}),t&2?n:Object.preventExtensions(n)},wX=/* @__PURE__ */ R(DT(),1),Z=/* @__PURE__ */ CX({is:()=>TX,isArrayPatternElementDefault:()=>VX,isCallExpression:()=>kX,isClass:()=>FX,isConditionalOrLoop:()=>IX,isDirective:()=>OX,isExpression:()=>AX,isFunction:()=>LX,isFunctionOrClass:()=>RX,isIdentifier:()=>DX,isJSX:()=>UX,isJSXElement:()=>WX,isJSXElementOrFragment:()=>GX,isJSXExpressionContainer:()=>KX,isJSXFragment:()=>qX,isJSXSpreadAttribute:()=>JX,isJSXTagNameExpression:()=>YX,isLoopStatement:()=>NX,isMemberExpression:()=>jX,isObjectExpression:()=>MX,isObjectPatternElementDefault:()=>HX,isOneOf:()=>EX,isProperty:()=>zX,isPropertyOrMethod:()=>BX,isReturnStatement:()=>PX,isTypeAssertionExpression:()=>XX,isTypeExpression:()=>ZX,isTypeOrChainExpression:()=>QX});const TX=wX.isNodeOfType,EX=wX.isNodeOfTypes;function DX(e,t){return e.type===i.Identifier&&(t==null||e.name===t)}function OX(e,t){return e.type===i.ExpressionStatement&&e.directive!=null&&(t==null||e.directive===t)}const kX=TX(i.CallExpression),AX=EX([i.Identifier,i.Literal,i.CallExpression,i.MemberExpression,i.ObjectExpression,i.TemplateLiteral,i.ArrayExpression,i.TaggedTemplateExpression,i.BinaryExpression,i.ArrowFunctionExpression,i.LogicalExpression,i.UnaryExpression,i.AssignmentExpression,i.FunctionExpression,i.ChainExpression,i.TSNonNullExpression,i.NewExpression,i.ObjectPattern,i.TSAsExpression,i.ConditionalExpression,i.ThisExpression,i.YieldExpression,i.TSSatisfiesExpression,i.JSXElement,i.ArrayPattern,i.UpdateExpression,i.AwaitExpression,i.MetaProperty,i.ImportExpression,i.ClassExpression,i.JSXFragment,i.SequenceExpression,i.Super,i.TSInstantiationExpression,i.TSTypeAssertion]),jX=TX(i.MemberExpression),MX=TX(i.ObjectExpression),NX=EX([i.ForOfStatement,i.WhileStatement,i.ForStatement,i.ForInStatement,i.DoWhileStatement]),PX=TX(i.ReturnStatement),FX=EX([i.ClassDeclaration,i.ClassExpression]),IX=EX([i.IfStatement,i.LogicalExpression,i.ConditionalExpression,i.ForOfStatement,i.SwitchStatement,i.WhileStatement,i.ForStatement,i.ForInStatement,i.DoWhileStatement]),LX=EX([i.ArrowFunctionExpression,i.FunctionDeclaration,i.FunctionExpression]),RX=EX([i.ArrowFunctionExpression,i.FunctionDeclaration,i.FunctionExpression,i.ClassDeclaration,i.ClassExpression]),zX=EX([i.TSPropertySignature,i.PropertyDefinition,i.TSIndexSignature,i.TSParameterProperty]),BX=EX([i.MethodDefinition,i.PropertyDefinition]);function VX(e){return e.type===i.AssignmentPattern&&e.parent.type===i.ArrayPattern}function HX(e){return e.type===i.AssignmentPattern&&e.parent.type===i.Property&&e.parent.value===e&&e.parent.parent.type===i.ObjectPattern}const UX=EX([i.JSXIdentifier,i.JSXText,i.JSXAttribute,i.JSXElement,i.JSXOpeningElement,i.JSXClosingElement,i.JSXExpressionContainer,i.JSXMemberExpression,i.JSXSpreadAttribute,i.JSXClosingFragment,i.JSXEmptyExpression,i.JSXFragment,i.JSXNamespacedName,i.JSXOpeningFragment,i.JSXSpreadChild]),WX=TX(i.JSXElement),GX=EX([i.JSXElement,i.JSXFragment]),KX=TX(i.JSXExpressionContainer),qX=TX(i.JSXFragment),JX=TX(i.JSXSpreadAttribute),YX=EX([i.JSXIdentifier,i.JSXMemberExpression,i.JSXNamespacedName]),XX=EX([i.TSNonNullExpression,i.TSAsExpression,i.TSSatisfiesExpression,i.TSTypeAssertion]),ZX=EX([i.TSNonNullExpression,i.TSAsExpression,i.TSSatisfiesExpression,i.TSInstantiationExpression,i.TSTypeAssertion]),QX=EX([i.ChainExpression,i.TSNonNullExpression,i.TSAsExpression,i.TSSatisfiesExpression,i.TSInstantiationExpression,i.TSTypeAssertion]),$X=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;e<r;e++)n=t[e](n);return n}}},eZ={pipe(){return $X(this,arguments)}};(function(){function e(){}return e.prototype=eZ,e})();const tZ=function(e,t){if(typeof e==`function`)return function(){return e(arguments)?t.apply(this,arguments):(e=>t(e,...arguments))};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}};tZ(2,(e,t)=>n=>t(e(n))),tZ(2,(e,t)=>n=>e(n)&&t(n)),tZ(2,(e,t)=>n=>e(n)||t(n)),tZ(2,(e,t)=>n=>e(n)!==t(n)),tZ(2,(e,t)=>n=>e(n)===t(n)),tZ(2,(e,t)=>n=>!e(n)||t(n)),tZ(2,(e,t)=>n=>!e(n)&&!t(n)),tZ(2,(e,t)=>n=>!e(n)||!t(n));function nZ(e){return typeof e==`function`}function rZ(e){return typeof e==`object`&&!!e||nZ(e)}tZ(2,(e,t)=>rZ(e)&&t in e),tZ(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(i)}),tZ(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(0,i)});var Q=/* @__PURE__ */ CX({getCalleeName:()=>sZ,getFullyQualifiedName:()=>oZ,getJSXName:()=>aZ,unwrap:()=>iZ});function iZ(e){return QX(e)?iZ(e.expression):e}function aZ(e){switch(e.type){case i.JSXIdentifier:return e.name;case i.JSXNamespacedName:return`${e.namespace.name}:${e.name.name}`;case i.JSXMemberExpression:return`${aZ(e.object)}.${aZ(e.property)}`}}function oZ(e,t){let n=iZ(e);switch(n.type){case i.Identifier:return n.name;case i.PrivateIdentifier:return`#${n.name}`;case i.JSXIdentifier:case i.JSXMemberExpression:case i.JSXNamespacedName:return aZ(n);case i.MemberExpression:return n.computed?t(n):`${oZ(n.object,t)}.${oZ(n.property,t)}`;case i.JSXText:return n.value;case i.Literal:return n.raw;default:return t(n)}}function sZ(e){let t=iZ(e.callee);return DX(t)?t.name:t.type===i.MemberExpression&&!t.computed&&DX(t.property)?t.property.name:null}var cZ=/* @__PURE__ */ CX({isEqual:()=>lZ});const lZ=tZ(2,(e,t)=>{switch(e=ZX(e)?iZ(e):e,t=ZX(t)?iZ(t):t,!0){case e===t:return!0;case e.type!==t.type:return!1;case e.type===i.Literal&&t.type===i.Literal:return`regex`in e||`regex`in t?`regex`in e&&`regex`in t&&e.regex.pattern===t.regex.pattern&&e.regex.flags===t.regex.flags:e.value===t.value;case e.type===i.TemplateElement&&t.type===i.TemplateElement:return e.value.raw===t.value.raw;case e.type===i.TemplateLiteral&&t.type===i.TemplateLiteral:{if(e.quasis.length!==t.quasis.length||e.expressions.length!==t.expressions.length)return!1;let n=e.quasis.length;for(;n--;)if(e.quasis[n]?.value.raw!==t.quasis[n]?.value.raw)return!1;for(n=e.expressions.length;n--;){let r=e.expressions[n],i=t.expressions[n];if(r==null||i==null||!lZ(r,i))return!1}return!0}case DX(e)&&DX(t):case e.type===i.PrivateIdentifier&&t.type===i.PrivateIdentifier:return e.name===t.name;case e.type===i.ChainExpression&&t.type===i.ChainExpression:return lZ(e.expression,t.expression);case e.type===i.MemberExpression&&t.type===i.MemberExpression:return e.computed===t.computed&&e.optional===t.optional&&lZ(e.property,t.property)&&lZ(e.object,t.object);case e.type===i.CallExpression&&t.type===i.CallExpression:{if(e.optional!==t.optional||e.arguments.length!==t.arguments.length||!lZ(e.callee,t.callee))return!1;let n=e.arguments.length;for(;n--;){let r=e.arguments[n],i=t.arguments[n];if(r==null||i==null||!lZ(r,i))return!1}return!0}case e.type===i.JSXIdentifier&&t.type===i.JSXIdentifier:return e.name===t.name;case e.type===i.JSXNamespacedName&&t.type===i.JSXNamespacedName:return lZ(e.namespace,t.namespace)&&lZ(e.name,t.name);case e.type===i.JSXMemberExpression&&t.type===i.JSXMemberExpression:return lZ(e.object,t.object)&&lZ(e.property,t.property);case e.type===i.JSXAttribute&&t.type===i.JSXAttribute:return lZ(e.name,t.name)?e.value==null||t.value==null?e.value===t.value:lZ(e.value,t.value):!1;case e.type===i.ThisExpression&&t.type===i.ThisExpression:return!0;default:return!1}});var uZ=/* @__PURE__ */ CX({findEnclosingTryBlock:()=>hZ,findParent:()=>pZ,hasEnclosingTryBlock:()=>gZ,hasParent:()=>mZ,simpleTraverse:()=>fZ});function dZ(e){return typeof e==`object`&&!!e&&`type`in e&&typeof e.type==`string`}function fZ(e,t={}){let{enter:n,leave:r,setParentPointers:i=!1,visitorKeys:a=Le.visitorKeys}=t,o=(e,t)=>{if(dZ(e)){i&&(t==null?delete e.parent:e.parent=t),n?.(e,t);for(let t of a[e.type]??[]){let n=e[t];if(Array.isArray(n))for(let t of n)o(t,e);else o(n,e)}r?.(e,t)}};o(e,void 0)}function pZ(e,t,n){if(e==null)return null;let r=e.parent;for(;r!=null;){if(n?.(r)??!1)return null;if(t(r))return r;if(r.type===i.Program)return null;r=r.parent}return null}function mZ(e,t,n){return pZ(e,t,n)!=null}function hZ(e){let t=e.parent;return t==null||t.type===i.Program?null:t.type===i.TryStatement&&e===t.block?t:hZ(t)}function gZ(e){return hZ(e)!=null}var _Z=/* @__PURE__ */ CX({getCallExpressions:()=>wZ,getIdentifiers:()=>xZ,getNewExpressions:()=>CZ,getReturnExpressions:()=>EZ,getReturnStatements:()=>TZ});const vZ={[i.ArrayExpression]:[`elements`],[i.ArrayPattern]:[`elements`],[i.AssignmentExpression]:[`left`,`right`],[i.AssignmentPattern]:[`left`,`right`],[i.AwaitExpression]:[`argument`],[i.BinaryExpression]:[`left`,`right`],[i.CallExpression]:[`callee`,`arguments`],[i.ChainExpression]:[`expression`],[i.ConditionalExpression]:[`test`,`consequent`,`alternate`],[i.Decorator]:[`expression`],[i.DoWhileStatement]:[`test`],[i.ExpressionStatement]:[`expression`],[i.ForInStatement]:[`left`,`right`],[i.ForOfStatement]:[`left`,`right`],[i.ForStatement]:[`init`,`test`,`update`],[i.IfStatement]:[`test`],[i.ImportExpression]:[`source`,`options`],[i.JSXAttribute]:[`name`,`value`],[i.JSXElement]:[`openingElement`,`children`,`closingElement`],[i.JSXExpressionContainer]:[`expression`],[i.JSXFragment]:[`openingFragment`,`children`,`closingFragment`],[i.JSXOpeningElement]:[`name`,`typeArguments`,`attributes`],[i.JSXSpreadAttribute]:[`argument`],[i.JSXSpreadChild]:[`expression`],[i.LogicalExpression]:[`left`,`right`],[i.MemberExpression]:[`object`,`property`],[i.NewExpression]:[`callee`,`arguments`],[i.ObjectExpression]:[`properties`],[i.ObjectPattern]:[`properties`],[i.Property]:[`key`,`value`],[i.RestElement]:[`argument`],[i.SequenceExpression]:[`expressions`],[i.SpreadElement]:[`argument`],[i.SwitchCase]:[`test`],[i.TaggedTemplateExpression]:[`tag`,`quasi`],[i.TemplateLiteral]:[`expressions`],[i.TSAsExpression]:[`expression`],[i.TSClassImplements]:[`expression`],[i.TSExportAssignment]:[`expression`],[i.TSExternalModuleReference]:[`expression`],[i.TSInstantiationExpression]:[`expression`],[i.TSInterfaceHeritage]:[`expression`],[i.TSNonNullExpression]:[`expression`],[i.TSSatisfiesExpression]:[`expression`],[i.TSTypeAssertion]:[`expression`],[i.UnaryExpression]:[`argument`],[i.UpdateExpression]:[`argument`],[i.VariableDeclaration]:[`declarations`],[i.VariableDeclarator]:[`init`],[i.WhileStatement]:[`test`],[i.YieldExpression]:[`argument`]},yZ={...Le.visitorKeys,[i.ClassDeclaration]:[],[i.ClassExpression]:[]};function bZ(e,t){let n=[];return fZ(e,{enter(e,r){let a=r??e.parent;(a?.type!==i.MemberExpression||a.computed||a.property!==e)&&(a?.type!==i.Property||a.computed||a.key!==e)&&t(e)&&n.push(e)},visitorKeys:vZ}),n}function xZ(e){return bZ(e,DX)}function SZ(e){let t=TX(e);return e=>bZ(e,t)}const CZ=SZ(i.NewExpression),wZ=SZ(i.CallExpression);function TZ(e){let t=[],n=+!!LX(e),r=0;return fZ(e,{enter(e){LX(e)&&r++,e.type===i.ReturnStatement&&r===n&&t.push(e)},leave(e){LX(e)&&r--},visitorKeys:yZ}),t}function EZ(e){return e.body.type===i.BlockStatement?TZ(e).flatMap(e=>e.argument==null?[]:[e.argument]):[e.body]}var DZ=/* @__PURE__ */ CX({isTerminatingStatement:()=>OZ,isUnconditionallyTerminating:()=>MZ});function OZ(e){switch(e.type){case i.ReturnStatement:case i.ThrowStatement:case i.BreakStatement:case i.ContinueStatement:return!0;case i.BlockStatement:return e.body.some(OZ);case i.IfStatement:return e.alternate!=null&&OZ(e.consequent)&&OZ(e.alternate);case i.TryStatement:return e.finalizer!=null&&OZ(e.finalizer)?!0:e.handler==null?OZ(e.block):OZ(e.block)&&OZ(e.handler.body);default:return!1}}const kZ={...Le.visitorKeys,ArrowFunctionExpression:[],FunctionDeclaration:[],FunctionExpression:[]};function AZ(e,t){let n=!1,r=0,a=0;return fZ(e,{enter(e){switch(e.type){case i.BreakStatement:(e.label!=null||a===0)&&(n=!0);break;case i.ContinueStatement:(e.label!=null||t&&r===0)&&(n=!0);break;case i.WhileStatement:case i.DoWhileStatement:case i.ForStatement:case i.ForInStatement:case i.ForOfStatement:r+=1,a+=1;break;case i.SwitchStatement:a+=1}},leave(e){switch(e.type){case i.WhileStatement:case i.DoWhileStatement:case i.ForStatement:case i.ForInStatement:case i.ForOfStatement:--r,--a;break;case i.SwitchStatement:--a}},visitorKeys:kZ}),n}function jZ(e){return e.type===i.Literal&&e.value===!0}function MZ(e){switch(e.type){case i.ReturnStatement:case i.ThrowStatement:return!0;case i.BlockStatement:{let t=e.body.at(-1);return t!=null&&MZ(t)}case i.IfStatement:return e.alternate!=null&&MZ(e.consequent)&&MZ(e.alternate);case i.TryStatement:return e.finalizer!=null&&MZ(e.finalizer)?!0:e.handler==null?MZ(e.block):MZ(e.block)&&MZ(e.handler.body);case i.SwitchStatement:return e.cases.some(e=>e.test==null)?e.cases.every(e=>{let t=e.consequent.at(-1);return t==null||!MZ(t)?!1:e.consequent.every(e=>!AZ(e,!0))}):!1;case i.WhileStatement:return!jZ(e.test)||!MZ(e.body)?!1:!AZ(e.body,!1);case i.DoWhileStatement:return MZ(e.body)?!AZ(e.body,!0):!1;case i.ForStatement:return e.test!=null&&!jZ(e.test)||!MZ(e.body)?!1:!AZ(e.body,!1);default:return!1}}function NZ(e){return`https://eslint-react.xyz/docs/rules/${e}`}xX.RuleCreator(NZ);function PZ(e,...t){return t.length===1?e.sourceCode.getText(t[0]):t=>e.sourceCode.getText(t)}function FZ(e){return t=>{t!=null&&e.report(t)}}function IZ(e,t){let n=e.getTypeAtLocation(t);return e.program.getTypeChecker().getBaseConstraintOfType(n)??n}function LZ(e,...t){for(let n of t)for(let t in n){let r=e[t];e[t]=r==null?n[t]:(...e)=>{r(...e),n[t]?.(...e)}}return e}const RZ=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;e<r;e++)n=t[e](n);return n}}},zZ={pipe(){return RZ(this,arguments)}};(function(){function e(){}return e.prototype=zZ,e})();const BZ=function(e,t){if(typeof e==`function`)return function(){return e(arguments)?t.apply(this,arguments):(e=>t(e,...arguments))};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}};BZ(2,(e,t)=>n=>t(e(n)));function VZ(e){return t=>!e(t)}const HZ=BZ(2,(e,t)=>n=>e(n)&&t(n)),UZ=BZ(2,(e,t)=>n=>e(n)||t(n));BZ(2,(e,t)=>n=>e(n)!==t(n)),BZ(2,(e,t)=>n=>e(n)===t(n)),BZ(2,(e,t)=>n=>!e(n)||t(n)),BZ(2,(e,t)=>n=>!e(n)&&!t(n)),BZ(2,(e,t)=>n=>!e(n)||!t(n));function WZ(e){return typeof e==`function`}function GZ(e){return typeof e==`object`&&!!e||WZ(e)}BZ(2,(e,t)=>GZ(e)&&t in e),BZ(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(i)}),BZ(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(0,i)});function KZ(e){return Q.getJSXName(e.name)}const qZ=BZ(2,(e,t)=>e?.type===i.JSXAttribute&&e.name.type===i.JSXIdentifier&&e.name.name===t),JZ=BZ(2,(e,t)=>e?.type===i.JSXAttribute&&KZ(e)===t);function YZ(e,t){let{attributes:n}=e.openingElement;for(let e=n.length-1;e>=0;e--){let r=n[e];if(r?.type===i.JSXAttribute&&JZ(r,t))return r}return null}function XZ(e,t){if(e==null)return null;let n=t==null?()=>!0:typeof t==`function`?t:JZ(t);return uZ.findParent(e,e=>e.type===i.JSXAttribute&&n(e))}function ZZ(e,t){return YZ(e,t)!=null}function QZ(e,t){return t.length!==0&&e.openingElement.attributes.some(e=>e.type===i.JSXAttribute&&t.includes(KZ(e)))}function $Z(e){let{value:t}=e;if(t==null)return{kind:`boolean`,attribute:e,node:null};switch(t.type){case i.Literal:return{kind:`literal`,attribute:e,node:t};case i.JSXExpressionContainer:return t.expression.type===i.JSXEmptyExpression?{kind:`missing`,attribute:e,node:t.expression}:{kind:`unknown`,attribute:e,node:t.expression};case i.JSXElement:case i.JSXFragment:return{kind:`element`,attribute:e,node:t};case i.JSXSpreadChild:return t.expression.type===i.JSXEmptyExpression?{kind:`missing`,attribute:e,node:t.expression}:{kind:`unknown`,attribute:e,node:t.expression}}}function eQ(e,t){let n=YZ(e,t);return n==null?null:$Z(n)}function tQ(e,t){if(t!=null)switch(t.kind){case`boolean`:return!0;case`literal`:return t.node.value;case`unknown`:return(0,wX.getStaticValue)(t.node,e.sourceCode.getScope(t.node))?.value;case`element`:case`missing`:return}}function nQ(e,t,n){return tQ(e,eQ(t,n))}function rQ(e){let t=e.split(/\r\n|\n|\r/),n=0;for(let e=0;e<t.length;e++)/[^ \t]/.exec(t[e]??``)!=null&&(n=e);let r=``;for(let e=0;e<t.length;e++){let i=t[e]??``,a=e===0,o=e===t.length-1,s=e===n,c=i.replace(/\t/g,` `);a||(c=c.replace(/^ +/,``)),o||(c=c.replace(/ +$/,``)),c.length>0&&(s||(c+=` `),r+=c)}return r===``?null:r}function iQ(e){return e?.type===i.JSXText&&e.raw.trim()===``}function aQ(e){return e?.type===i.JSXText&&rQ(e.value)==null&&/[\r\n]/u.test(e.value)}function oQ(e){return e?.type===i.JSXExpressionContainer&&e.expression.type===i.JSXEmptyExpression}function sQ(e){return e?.type===i.JSXExpressionContainer&&e.expression.type===i.Literal&&e.expression.value===``}const cQ=UZ(oQ,sQ),lQ=HZ(VZ(iQ),VZ(cQ)),uQ=HZ(VZ(aQ),VZ(cQ));function dQ(e){return lQ(e)}function fQ(e){return e.children.filter(uQ)}function pQ(e){return e.children.some(dQ)}function mQ(e,t){if(t?.type!==i.CallExpression)return!1;let n=Q.getFullyQualifiedName(Q.unwrap(t.callee),PZ(e));return n===`createElement`||n.endsWith(`.createElement`)}function hQ(e,t){if(t?.type!==i.CallExpression||!mQ(e,t))return null;let n=t.arguments[1]??null,r=n==null?null:Q.unwrap(n);return{childrenArguments:t.arguments.slice(2),node:t,propsArgument:n,propsObject:r?.type===i.ObjectExpression?r:null,typeArgument:t.arguments[0]??null}}function gQ(e,t){let n=Q.unwrap(t.key);if(!t.computed)return Z.isIdentifier(n)?n.name:n.type===i.Literal&&typeof n.value==`string`?n.value:null;let r=(0,wX.getStaticValue)(n,e.sourceCode.getScope(n));return typeof r?.value==`string`?r.value:null}function _Q(e,t,n){if(t?.propsObject==null)return null;let{properties:r}=t.propsObject;for(let t=r.length-1;t>=0;t--){let a=r[t];if(a?.type===i.Property&&gQ(e,a)===n)return a}return null}function vQ(e,t){if(t==null)return!1;let n=t.parent;for(;Z.isTypeOrChainExpression(n);)n=n.parent;let r=Q.unwrap(t);return n?.type===i.CallExpression&&mQ(e,n)&&n.arguments.slice(2).some(e=>Q.unwrap(e)===r)}function yQ(e,t){if(t==null)return!1;let n=uZ.findParent(t,t=>mQ(e,t));if(n==null)return!1;let r=uZ.findParent(t,Z.isObjectExpression);if(r==null)return!1;let i=n.arguments[1];return i!=null&&r===Q.unwrap(i)}function bQ(e){return e.type===i.JSXFragment?``:Q.getJSXName(e.openingElement.name)}function xQ(e){return e.slice(e.lastIndexOf(`.`)+1)}function SQ(e){return xQ(bQ(e))}function CQ(e,t){return e==null?!1:e.type===i.JSXFragment||e.type===i.JSXElement&&SQ(e)===xQ(t)}function wQ(e){if(e?.type!==i.JSXElement)return!1;let t=e.openingElement.name;return t.type===i.JSXIdentifier?/^[a-z]/u.test(t.name):t.type===i.JSXNamespacedName&&/^[a-z]/u.test(t.name.name)}const TQ=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;e<r;e++)n=t[e](n);return n}}},EQ={pipe(){return TQ(this,arguments)}};(function(){function e(){}return e.prototype=EQ,e})();const DQ=function(e,t){if(typeof e==`function`)return function(){return e(arguments)?t.apply(this,arguments):(e=>t(e,...arguments))};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}};DQ(2,(e,t)=>n=>t(e(n))),DQ(2,(e,t)=>n=>e(n)&&t(n)),DQ(2,(e,t)=>n=>e(n)||t(n)),DQ(2,(e,t)=>n=>e(n)!==t(n)),DQ(2,(e,t)=>n=>e(n)===t(n)),DQ(2,(e,t)=>n=>!e(n)||t(n)),DQ(2,(e,t)=>n=>!e(n)&&!t(n)),DQ(2,(e,t)=>n=>!e(n)||!t(n));function OQ(e){return typeof e==`function`}function kQ(e){return typeof e==`object`&&!!e||OQ(e)}const AQ=DQ(2,(e,t)=>kQ(e)&&t in e);function jQ(e,t,n){if(e.has(t))return e.get(t);let r=n(t);return e.set(t,r),r}DQ(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(i)}),DQ(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(0,i)});function MQ(e,t){let{builtinNamespaces:n=[],source:r}=t,a=[],o=/* @__PURE__ */ new Map,s=/* @__PURE__ */ new Map,c=e=>{a.push(e),o.set(e.local,e);let t=e.kind===`namespace`?``:e.name;jQ(s,t,()=>[]).push(e)};for(let e of n)c({kind:`namespace`,local:e,specifier:r});for(let t of e.body){if(t.type!==i.ImportDeclaration||t.importKind===`type`)continue;let e=t.source.value;if(e===r||e.startsWith(`${r}/`))for(let n of t.specifiers)switch(n.type){case i.ImportSpecifier:{let{imported:t,local:r}=n;if(n.importKind===`type`||t.type!==i.Identifier)continue;if(t.name==="default"){c({kind:`default`,name:`default`,local:r.name,specifier:e});continue}c({kind:`named`,name:t.name,local:r.name,specifier:e});continue}case i.ImportDefaultSpecifier:c({kind:`default`,name:`default`,local:n.local.name,specifier:e});continue;case i.ImportNamespaceSpecifier:c({kind:`namespace`,local:n.local.name,specifier:e});continue}}return{all(){return a},binding(e){return o.get(e)??null},bindingsOf(e){return s.get(e)??[]},has(e,t){let n=o.get(e);return n!=null&&n.kind!==`namespace`&&n.name===t},hasDefault(e){return o.get(e)?.kind==="default"},isModuleBinding(e){let t=o.get(e);return t!=null&&t.kind!==`named`}}}function NQ(e,t,n){let{at:r=0,localOnly:i=!1}=n??{},a=i?e.set.get(t.name):(0,wX.findVariable)(e,t);return a==null?null:{definition:a.defs.at(r)??null,variable:a}}function PQ(e,t,n){return NQ(e.sourceCode.getScope(t),t,n)}function FQ(e,t){switch(e.type){case gk.DefinitionType.FunctionName:case gk.DefinitionType.ClassName:return e.node;case gk.DefinitionType.Variable:{let{id:n,init:r}=e.node;return r==null||t===`value`&&n!==e.name||AQ(r,`declarations`)?null:r}case gk.DefinitionType.Parameter:return t===`origin`&&Z.isFunction(e.node)?e.node:null;case gk.DefinitionType.TSEnumName:return e.node;case gk.DefinitionType.TSEnumMember:return e.node.initializer??null;case gk.DefinitionType.ImportBinding:return t===`origin`?e.node:null;case gk.DefinitionType.CatchClause:case gk.DefinitionType.ImplicitGlobalVariable:case gk.DefinitionType.TSModuleName:case gk.DefinitionType.Type:default:return null}}function IQ(e){return AQ(e,`regex`)}const LQ=[i.FunctionExpression,i.FunctionDeclaration,i.ClassBody,i.Program];function RQ(e,t,n,r){let{identifierComparison:a=`identity`}=r??{};t=Z.isTypeExpression(t)?Q.unwrap(t):t,n=Z.isTypeExpression(n)?Q.unwrap(n):n,t=t.type===i.ChainExpression?t.expression:t,n=n.type===i.ChainExpression?n.expression:n;let[o,s]=[e.sourceCode.getScope(t),e.sourceCode.getScope(n)];switch(!0){case t===n:return!0;case t.type===i.Literal&&n.type===i.Literal:return IQ(t)?IQ(n)&&t.regex.pattern===n.regex.pattern&&t.regex.flags===n.regex.flags:!IQ(n)&&t.value===n.value;case t.type===i.TemplateElement&&n.type===i.TemplateElement:return t.value.cooked===n.value.cooked;case Z.isIdentifier(t)&&Z.isIdentifier(n):{let e=NQ(o,t),r=NQ(s,n);if(a===`provenance`){let a=e?.definition==null?null:FQ(e.definition,`origin`),o=r?.definition==null?null:FQ(r.definition,`origin`),s=a?.parent,c=o?.parent,l=e?.definition,u=r?.definition,d=l?.parent?.parent,f=u?.parent?.parent;switch(!0){case s?.type===i.CallExpression&&c?.type===i.CallExpression&&Z.isFunction(a)&&Z.isFunction(o):{if(!cZ.isEqual(s.callee,c.callee))return!1;let e=a.params,r=o.params,i=e.findIndex(e=>cZ.isEqual(e,t)),l=r.findIndex(e=>cZ.isEqual(e,n));return i!==-1&&l!==-1&&i===l}case d?.type===i.ForOfStatement&&f?.type===i.ForOfStatement:{let t=d.left,n=f.left;if(t.type!==n.type)return!1;let i=d.right,a=f.right;return cZ.isEqual(i,a)?d!==f||e!=null&&r!=null&&e.variable===r.variable:!1}}}return e!=null&&r!=null&&e.variable===r.variable}case t.type===i.MemberExpression&&n.type===i.MemberExpression:return t.computed!==n.computed||t.optional!==n.optional?!1:(t.computed?RQ(e,t.property,n.property,r):cZ.isEqual(t.property,n.property))&&RQ(e,t.object,n.object,r);case t.type===i.ThisExpression&&n.type===i.ThisExpression:return o.block===s.block||uZ.findParent(t,Z.isOneOf(LQ))===uZ.findParent(n,Z.isOneOf(LQ));default:{let e=(0,wX.getStaticValue)(t,o),r=(0,wX.getStaticValue)(n,s);return e==null||r==null?!1:e.value===r.value}}}function zQ(e,t,n){return RQ(e,t,n,{identifierComparison:`provenance`})}function BQ(e,t,n){let r=Z.isTypeExpression(t)?Q.unwrap(t):t,i=Z.isTypeExpression(n)?Q.unwrap(n):n;return Z.isIdentifier(r)&&Z.isIdentifier(i)?zQ(e,r,i):cZ.isEqual(r,i)||zQ(e,r,i)}function VQ(e){let t=Q.unwrap(e);if(t.type===i.CallExpression){let e=Q.unwrap(t.callee);return Z.isIdentifier(e,`require`)?t.arguments:null}return t.type===i.MemberExpression?VQ(t.object):null}function HQ(e,t){return UQ(e,t,/* @__PURE__ */ new Set)}function UQ(e,t,n){if(n.has(e))return null;n.add(e);let r=(0,wX.findVariable)(t,e)?.defs.at(-1);if(r==null)return null;let{node:a,parent:o}=r;if(a.type===i.VariableDeclarator&&a.init!=null){let e=Q.unwrap(a.init);if(e.type===i.MemberExpression&&e.object.type===i.Identifier)return UQ(e.object.name,t,n);if(e.type===i.Identifier)return UQ(e.name,t,n);let r=VQ(e)?.[0];return r==null||!tW({type:i.Literal,value:vW.string},r)?null:r.value}return o?.type===i.ImportDeclaration?o.source.value:null}function WQ(e,t,n=`react`){return e.toLowerCase()===`react`||!!HQ(e,t)?.startsWith(n)}function GQ(e,t,n=`react-native`){return[`react_native`,`reactnative`,`rn`].includes(e.toLowerCase())||!!HQ(e,t)?.startsWith(n)}function KQ(e,t,n){let r=PQ(e,t,n);return r?.definition==null?null:FQ(r.definition,`value`)}function qQ(e){let t=Q.unwrap(e);switch(t.type){case i.Identifier:case i.MemberExpression:return[t];case i.ArrayPattern:return t.elements.flatMap(e=>e==null?[]:qQ(e));case i.AssignmentPattern:return qQ(t.left);case i.ObjectPattern:return t.properties.flatMap(e=>e.type===i.RestElement?qQ(e.argument):qQ(e.value));case i.RestElement:return qQ(t.argument);default:return[]}}function JQ(e){return e.parent}function YQ(e){switch(e.type){case i.VariableDeclarator:return e.id;case i.AssignmentExpression:return e.left;case i.PropertyDefinition:return e.key;case i.ExportDefaultDeclaration:return e.declaration;case i.BlockStatement:case i.Program:return null;default:{let t=JQ(e);return t==null?null:YQ(t)}}}function XQ(e,t){let n=(0,wX.findVariable)(e.sourceCode.getScope(t),t);return n==null||n.defs.length===0}function ZQ(e,t,n){return QQ(e,t,/* @__PURE__ */ new Set,{at:n?.at??-1,localOnly:(n?.scope??`local`)===`local`})}function QQ(e,t,n,r){if(t==null)return null;switch(t.type){case i.JSXElement:case i.JSXFragment:return{kind:`jsx`,node:t,via:`jsx`};case i.ArrayExpression:return{kind:`array`,node:t,via:`literal`};case i.ObjectExpression:return{kind:`plain`,node:t,via:`literal`};case i.ClassDeclaration:return{kind:`class`,node:t,via:`declaration`};case i.ClassExpression:return{kind:`class`,node:t,via:`expression`};case i.NewExpression:return{kind:`instance`,node:t,via:`new`};case i.ThisExpression:return{kind:`instance`,node:t,via:`this`};case i.FunctionDeclaration:return{kind:`function`,node:t,via:`declaration`};case i.FunctionExpression:return{kind:`function`,node:t,via:`expression`};case i.ArrowFunctionExpression:return{kind:`function`,node:t,via:`arrow`};case i.Literal:return AQ(t,`regex`)?{kind:`regexp`,node:t,via:`literal`}:null;case i.Identifier:{if(n.has(t))return null;n.add(t);let i=NQ(e.sourceCode.getScope(t),t,{at:r.at,localOnly:r.localOnly});if(i?.definition?.type===gk.DefinitionType.Parameter)return null;let a=i?.definition==null?null:FQ(i.definition,`value`);return a==null?null:QQ(e,a,n,r)}case i.MemberExpression:return QQ(e,t.object,n,r);case i.AssignmentExpression:case i.AssignmentPattern:return QQ(e,t.right,n,r);case i.LogicalExpression:return QQ(e,t.left,new Set(n),r)??QQ(e,t.right,new Set(n),r);case i.ConditionalExpression:return QQ(e,t.consequent,new Set(n),r)??QQ(e,t.alternate,new Set(n),r);case i.SequenceExpression:return t.expressions.length===0?null:QQ(e,t.expressions.at(-1)??null,n,r);case i.CallExpression:{let n=Q.unwrap(t.callee);switch(!0){case Z.isIdentifier(n,`Boolean`):case Z.isIdentifier(n,`String`):case Z.isIdentifier(n,`Number`):return null;case Z.isIdentifier(n,`Object`)&&XQ(e,n):return{kind:`plain`,node:t,via:`call`};case Z.isIdentifier(n,`Array`)&&XQ(e,n):return{kind:`array`,node:t,via:`call`};case Z.isIdentifier(n,`RegExp`)&&XQ(e,n):return{kind:`regexp`,node:t,via:`call`}}if(n.type===i.MemberExpression&&Z.isIdentifier(n.object)&&XQ(e,n.object)){let e=n.object.name,r=Q.getCalleeName(t);switch(e){case`Array`:if(r===`from`||r===`of`)return{kind:`array`,node:t,via:`call`};break;case`Object`:if(r===`create`||r===`assign`||r===`fromEntries`)return{kind:`plain`,node:t,via:`call`}}}return{kind:`unknown`,node:t,reason:`call-expression`}}default:return!AQ(t,`expression`)||typeof t.expression!=`object`?null:QQ(e,t.expression,n,r)}}function $Q(e,t,n){let r=PQ(e,t,n);return r?.definition==null?null:FQ(r.definition,`origin`)}function e$(e,t,n){let{at:r=0,localOnly:i=!1,maxDepth:a=32}=n??{},o=/* @__PURE__ */ new Set,s=t;for(let t=0;t<a;t++){if(!Z.isIdentifier(s))return s;if(o.has(s))return null;o.add(s);let t=$Q(e,s,{at:r,localOnly:i});if(t==null)return null;s=Q.unwrap(t)}return Z.isIdentifier(s)?null:s}function t$(e){function t(t,n){if(n==null)return!1;let r=Q.unwrap(n),i=Q.getFullyQualifiedName(r,PZ(t));return i===e||i.endsWith(`.${e}`)}function n(e,...n){return n.length===1?t(e,n[0]):n=>t(e,n)}return n}function n$(e){function t(t,n){return n==null||n.type!==i.CallExpression?!1:t$(e)(t,Q.unwrap(n.callee))}function n(e,...n){return n.length===1?t(e,n[0]):n=>t(e,n)}return n}const r$=t$(`Children.count`),i$=t$(`Children.forEach`),a$=t$(`Children.map`),o$=t$(`Children.only`),s$=t$(`Children.toArray`),c$=n$(`captureOwnerStack`),l$=n$(`Children.map`),u$=n$(`Children.toArray`),d$=n$(`cloneElement`),f$=n$(`createContext`),p$=n$(`createElement`),m$=n$(`createRef`),h$=n$(`forwardRef`),g$=n$(`lazy`),_$=n$(`memo`),v$=n$(`use`),y$=n$(`useCallback`),b$=n$(`useContext`),x$=n$(`useId`),S$=n$(`useMemo`),C$=n$(`useReducer`);function w$(e){return e.id==null?e.parent.type===i.VariableDeclarator?e.parent.id:null:e.id}const T$=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;e<r;e++)n=t[e](n);return n}}},E$={pipe(){return T$(this,arguments)}};(function(){function e(){}return e.prototype=E$,e})();const D$=function(e,t){if(typeof e==`function`)return function(){return e(arguments)?t.apply(this,arguments):(e=>t(e,...arguments))};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}},O$=(e=>()=>e)(!1);D$(2,(e,t)=>n=>t(e(n)));function k$(e){return t=>!e(t)}D$(2,(e,t)=>n=>e(n)&&t(n)),D$(2,(e,t)=>n=>e(n)||t(n)),D$(2,(e,t)=>n=>e(n)!==t(n)),D$(2,(e,t)=>n=>e(n)===t(n)),D$(2,(e,t)=>n=>!e(n)||t(n)),D$(2,(e,t)=>n=>!e(n)&&!t(n)),D$(2,(e,t)=>n=>!e(n)||!t(n));function A$(e){return typeof e==`string`}function j$(e){return typeof e==`function`}function M$(e){return typeof e==`object`&&!!e||j$(e)}const N$=D$(2,(e,t)=>M$(e)&&t in e);D$(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(i)}),D$(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(0,i)});function P$(e,t){return!t&&Z.isIdentifier(e)?e.name:e.type===i.Literal&&A$(e.value)?e.value:null}function F$(e){if(N$(e,`superClass`)&&e.superClass!=null){let t=/^(?:Pure)?Component$/u;switch(!0){case Z.isIdentifier(e.superClass):return t.test(e.superClass.name);case e.superClass.type===i.MemberExpression:{let n=P$(e.superClass.property,e.superClass.computed);return n!=null&&t.test(n)}}}return!1}function I$(e){if(e.superClass!=null){let t=/^PureComponent$/u;switch(!0){case Z.isIdentifier(e.superClass):return t.test(e.superClass.name);case e.superClass.type===i.MemberExpression:{let n=P$(e.superClass.property,e.superClass.computed);return n!=null&&t.test(n)}}}return!1}function L$(e,t=!1){return n=>Z.isPropertyOrMethod(n)&&n.static===t&&!n.computed&&P$(n.key,n.computed)===e}const R$=L$(`componentDidCatch`),z$=L$(`componentDidMount`),B$=L$(`componentDidUpdate`),V$=L$(`componentWillMount`),H$=L$(`componentWillReceiveProps`),U$=L$(`componentWillUpdate`),W$=L$(`UNSAFE_componentWillMount`),G$=L$(`UNSAFE_componentWillReceiveProps`),K$=L$(`UNSAFE_componentWillUpdate`),q$=L$(`getDerivedStateFromError`,!0);function J$(e){return Z.isPropertyOrMethod(e)&&!e.computed&&P$(e.key,e.computed)?.startsWith(`render`)===!0&&Z.isClass(e.parent.parent)}function Y$(e){let t=e.parent;for(;Z.isTypeExpression(t);)t=t.parent;let n=t.parent?.parent;return n!=null&&J$(t)&&F$(n)}function X$(e){let t=Q.unwrap(e.callee);return t.type===i.MemberExpression&&Q.unwrap(t.object).type===i.ThisExpression&&Q.getCalleeName(e)===`setState`}function Z$(e){let t=/* @__PURE__ */ new Map,n=n=>{if(!F$(n))return;let r=w$(n),i=n.range[0],a=r==null?null:Q.getFullyQualifiedName(r,PZ(e));t.set(i,{id:r,key:i,kind:`class-component`,name:a,displayName:null,flag:0n,hint:0n,methods:[],node:n})};return{api:{getAllComponents(e){return[...t.values()]}},visitor:{ClassDeclaration:n,ClassExpression:n}}}function Q$(e){switch(!0){case N$(e,`id`)&&e.id!=null:return e.id;case e.parent.type===i.VariableDeclarator&&e.parent.init===e:return e.parent.id;case e.parent.type===i.AssignmentExpression&&e.parent.right===e&&e.parent.operator===`=`:return e.parent.left;case e.parent.type===i.Property&&e.parent.value===e&&!e.parent.computed:case Z.isPropertyOrMethod(e.parent)&&e.parent.value===e&&!e.parent.computed:return e.parent.key;case e.parent.type===i.AssignmentPattern&&e.parent.right===e:return e.parent.left;case e.parent.type===i.ConditionalExpression&&(e.parent.consequent===e||e.parent.alternate===e):case Z.isTypeAssertionExpression(e.parent):return Q$(e.parent)}return null}function $$(e){let t=Q.getCalleeName(e);return t===`memo`||t===`forwardRef`}function e1(e,t){return $$(e)?e.arguments[0]===t:e.arguments.includes(t)}function t1(e){if(e.type===i.FunctionDeclaration)return[e];let t=e.parent,n=e;for(;Z.isTypeExpression(t);)n=t,t=t.parent;switch(!0){case t.type===i.VariableDeclarator:return[t.parent,t,e];case t.type===i.CallExpression&&e1(t,n)&&t.parent.type===i.VariableDeclarator:return[t.parent.parent,t.parent,t,e];case t.type===i.CallExpression&&e1(t,n)&&t.parent.type===i.CallExpression&&e1(t.parent,t)&&t.parent.parent.type===i.VariableDeclarator:case t.type===i.Property&&t.parent.type===i.ObjectExpression&&t.parent.parent.type===i.VariableDeclarator:return[t.parent.parent.parent,t.parent.parent,t.parent,t,e];case t.type===i.MethodDefinition:case t.type===i.PropertyDefinition:return[t.parent.parent,t.parent,t,e]}return null}function n1(e,t){return t.some(t=>{if(t.type!==i.CallExpression)return!1;let n=Q.unwrap(t.callee);return Z.isIdentifier(n)?n.name===e:n.type===i.MemberExpression&&N$(n.property,`name`)?n.property.name===e:!1})}function r1(e){return e.body.type===i.BlockStatement&&e.body.body.length===0}function i1(e){let t=[];if(e.body.type!==i.BlockStatement)return t;function n(e){return e.type===i.ExpressionStatement&&e.directive!=null}for(let r of e.body.body)n(r)&&t.push(r);return t}function a1(e,t){return i1(e).some(e=>e.directive===t)}const o1=`AssignmentExpression[operator='='][left.type='MemberExpression']:matches([left.computed=false][left.property.name='displayName'], [left.computed=true][left.property.type='Literal'][left.property.value='displayName'])`,s1={None:0n,DoNotIncludeJSXWithNullValue:1n<<0n,DoNotIncludeJSXWithNumberValue:1n<<1n,DoNotIncludeJSXWithBigIntValue:1n<<2n,DoNotIncludeJSXWithStringValue:1n<<3n,DoNotIncludeJSXWithBooleanValue:1n<<4n,DoNotIncludeJSXWithUndefinedValue:1n<<5n,DoNotIncludeJSXWithEmptyArrayValue:1n<<6n,DoNotIncludeJSXWithCreateElementValue:1n<<7n,RequireAllArrayElementsToBeJSX:1n<<8n,RequireBothSidesOfLogicalExpressionToBeJSX:1n<<9n,RequireBothBranchesOfConditionalExpressionToBeJSX:1n<<10n},c1=0n|s1.DoNotIncludeJSXWithNumberValue|s1.DoNotIncludeJSXWithBigIntValue|s1.DoNotIncludeJSXWithBooleanValue|s1.DoNotIncludeJSXWithStringValue|s1.DoNotIncludeJSXWithUndefinedValue;function l1(e,t,n=c1){let r=/* @__PURE__ */ new Set;function a(t){if(t==null)return!1;if(Z.isJSX(t))return!0;if(Z.isTypeOrChainExpression(t))return a(t.expression);switch(t.type){case i.AwaitExpression:return a(t.argument);case i.Literal:return bW(t.value).with(vW.nullish,()=>!(n&s1.DoNotIncludeJSXWithNullValue)).with(vW.boolean,()=>!(n&s1.DoNotIncludeJSXWithBooleanValue)).with(vW.string,()=>!(n&s1.DoNotIncludeJSXWithStringValue)).with(vW.number,()=>!(n&s1.DoNotIncludeJSXWithNumberValue)).with(vW.bigint,()=>!(n&s1.DoNotIncludeJSXWithBigIntValue)).with(vW.instanceOf(RegExp),()=>!1).exhaustive();case i.TemplateLiteral:return!(n&s1.DoNotIncludeJSXWithStringValue);case i.ArrayExpression:return t.elements.length===0?!(n&s1.DoNotIncludeJSXWithEmptyArrayValue):n&s1.RequireAllArrayElementsToBeJSX?t.elements.every(a):t.elements.some(a);case i.LogicalExpression:return n&s1.RequireBothSidesOfLogicalExpressionToBeJSX?a(t.left)&&a(t.right):a(t.left)||a(t.right);case i.ConditionalExpression:return n&s1.RequireBothBranchesOfConditionalExpressionToBeJSX?a(t.consequent)&&a(t.alternate):a(t.consequent)||a(t.alternate);case i.SequenceExpression:return a(t.expressions.at(-1)??null);case i.CallExpression:return n&s1.DoNotIncludeJSXWithCreateElementValue?!1:p$(e,t);case i.Identifier:{if(t.name===`undefined`&&(0,wX.findVariable)(e.sourceCode.getScope(t),t)==null)return!(n&s1.DoNotIncludeJSXWithUndefinedValue);if(r.has(t))return!1;r.add(t);let i=a(KQ(e,t));return r.delete(t),i}}return!1}return a(t)}const u1={None:0n,PureComponent:1n<<0n,CreateElement:1n<<1n,Memo:1n<<2n,ForwardRef:1n<<3n};function d1(e){let t=u1.None;return e!=null&&n1(`memo`,e)&&(t|=u1.Memo),e!=null&&n1(`forwardRef`,e)&&(t|=u1.ForwardRef),t}function f1(e,t){return _$(e,t)||h$(e,t)}function p1(e,t){let n=t,r=t.parent;for(;Z.isTypeExpression(r);)n=r,r=r.parent;return r.type!==i.CallExpression||r.arguments[0]!==n?!1:f1(e,r)}function m1(e,t){let n=Q$(t);if(n!=null)return n;let r=t.parent,a=t;for(;Z.isTypeExpression(r);)a=r,r=r.parent;switch(!0){case r.type===i.CallExpression&&r.arguments[0]===a&&f1(e,r)&&r.parent.type===i.VariableDeclarator:return r.parent.id;case r.type===i.CallExpression&&r.arguments[0]===a&&f1(e,r)&&r.parent.type===i.CallExpression&&r.parent.arguments[0]===r&&f1(e,r.parent)&&r.parent.parent.type===i.VariableDeclarator:return r.parent.parent.id;default:return null}}function h1(e){return uX.test(e)}function g1(e){return dX.test(e)}function _1(e,t,n=!1){let r=m1(e,t);return r==null?n:Z.isIdentifier(r)?g1(r.name):r.type===i.MemberExpression&&Z.isIdentifier(r.property)?g1(r.property.name):!1}const v1={...s1,DoNotIncludeFunctionDefinedAsClassMethod:1n<<11n,DoNotIncludeFunctionDefinedAsClassProperty:1n<<12n,DoNotIncludeFunctionDefinedAsObjectMethod:1n<<13n,DoNotIncludeFunctionDefinedAsArrayExpressionElement:1n<<14n,DoNotIncludeFunctionDefinedAsArrayPatternElement:1n<<15n,DoNotIncludeFunctionDefinedAsArrayFlatMapCallback:1n<<16n,DoNotIncludeFunctionDefinedAsArrayMapCallback:1n<<17n,DoNotIncludeFunctionDefinedAsArbitraryCallExpressionCallback:1n<<18n},y1=0n|v1.DoNotIncludeJSXWithBigIntValue|v1.DoNotIncludeJSXWithBooleanValue|v1.DoNotIncludeJSXWithNumberValue|v1.DoNotIncludeJSXWithStringValue|v1.DoNotIncludeJSXWithUndefinedValue|v1.DoNotIncludeFunctionDefinedAsArbitraryCallExpressionCallback|v1.DoNotIncludeFunctionDefinedAsArrayExpressionElement|v1.DoNotIncludeFunctionDefinedAsArrayFlatMapCallback|v1.DoNotIncludeFunctionDefinedAsArrayMapCallback|v1.DoNotIncludeFunctionDefinedAsArrayPatternElement|v1.RequireAllArrayElementsToBeJSX|v1.RequireBothBranchesOfConditionalExpressionToBeJSX|v1.RequireBothSidesOfLogicalExpressionToBeJSX;function b1(e,t,n){if(!_1(e,t,!0))return!1;let r=t.parent;for(;Z.isTypeExpression(r);)r=r.parent;if(Y$(t)||vQ(e,t)||Z.isCallExpression(r)&&f1(e,r)&&!p1(e,t))return!1;let[a,o]=r.type===i.CallExpression?[Q.unwrap(r.callee),Q.getCalleeName(r)]:[null,null];switch(!0){case Z.isOneOf([i.ArrowFunctionExpression,i.FunctionExpression])(t)&&r.type===i.Property&&r.parent.type===i.ObjectExpression:if(n&v1.DoNotIncludeFunctionDefinedAsObjectMethod)return!1;break;case Z.isOneOf([i.ArrowFunctionExpression,i.FunctionExpression])(t)&&r.type===i.MethodDefinition:if(n&v1.DoNotIncludeFunctionDefinedAsClassMethod)return!1;break;case Z.isOneOf([i.ArrowFunctionExpression,i.FunctionExpression])(t)&&r.type===i.PropertyDefinition:if(n&v1.DoNotIncludeFunctionDefinedAsClassProperty)return!1;break;case r.type===i.ArrayPattern||Z.isArrayPatternElementDefault(r):if(n&v1.DoNotIncludeFunctionDefinedAsArrayPatternElement)return!1;break;case r.type===i.ArrayExpression:if(n&v1.DoNotIncludeFunctionDefinedAsArrayExpressionElement)return!1;break;case a!=null&&a.type===i.MemberExpression&&o===`map`:if(n&v1.DoNotIncludeFunctionDefinedAsArrayMapCallback)return!1;break;case a!=null&&a.type===i.MemberExpression&&o===`flatMap`:if(n&v1.DoNotIncludeFunctionDefinedAsArrayFlatMapCallback)return!1;break;case r.type===i.CallExpression&&Q$(t)==null&&!f1(e,r)&&!p$(e,r):if(n&v1.DoNotIncludeFunctionDefinedAsArbitraryCallExpressionCallback)return!1}let s=uZ.findParent(t,Z.isOneOf([i.ArrowFunctionExpression,i.Property,i.FunctionExpression,i.ClassBody,i.JSXExpressionContainer]));return s==null||s.type!==i.JSXExpressionContainer}function x1(e){return e===`use`||/^use[A-Z0-9]/.test(e)}function S1(e){switch(e.type){case i.Identifier:return x1(e.name);case i.MemberExpression:return!e.computed&&N$(e.property,`name`)&&x1(e.property.name);default:return!1}}function C1(e){return S1(Q.unwrap(e))}function w1(e){let t=Q.getCalleeName(e);return t!=null&&x1(t)}function T1(e,t={test:O$}){let n=Q.getCalleeName(e);return n==null?!1:n===`useRef`||t.test(n)}function E1(e,t={test:O$}){let n=Q.getCalleeName(e);return n==null?!1:n===`useState`||t.test(n)}function D1(e,t={test:O$}){let n=Q.getCalleeName(e);return n==null?!1:/^use\w*Effect$/u.test(n)||t.test(n)}function O1(e){let t=Q.unwrap(e),n=uZ.findParent(t,k$(Z.isTypeOrChainExpression));if(n?.type!==i.CallExpression)return!1;let[r]=n.arguments;return r!=null&&Q.unwrap(r)===t&&D1(n)}function k1(e){let t=Q.unwrap(e),n=uZ.findParent(t,Z.isFunction);if(n==null||!O1(n))return!1;let r=uZ.findParent(t,Z.isReturnStatement,Z.isFunction);return r==null?Z.isFunction(t)&&n.type===i.ArrowFunctionExpression&&Q.unwrap(n.body)===t:r.argument!=null&&Q.unwrap(r.argument)===t}function A1(e,t={}){let{collectDisplayName:n=!1,hint:r=y1}=t,a=[],o=/* @__PURE__ */ new Map,s=()=>a.at(-1)??null;return{api:{getAllComponents(e){return[...o.values()]}},visitor:{":function":t=>{let n=t.range[0],s=uZ.findParent(t,e=>e.type===i.ExportDefaultDeclaration),c=s!=null,l=s!=null&&Q.unwrap(s.declaration)===t,u=m1(e,t),d=u==null?null:Q.getFullyQualifiedName(u,PZ(e)),f=t1(t),p=i1(t),m={id:u,key:n,kind:`component`,name:d,directives:p,displayName:null,flag:d1(f),hint:r,hookCalls:[],initPath:f,isExportDefault:c,isExportDefaultDeclaration:l,isFunctionComponentDefinition:b1(e,t,r),node:t,rets:[]};a.push(m),m.isFunctionComponentDefinition&&_1(e,t,!1)&&p.some(e=>e.directive===`use memo`||e.directive===`use no memo`)&&o.set(m.key,m)},":function:exit":()=>a.pop(),"ArrowFunctionExpression[body.type!='BlockStatement']"(){let t=s();if(t==null)return;let{body:n}=t.node;n.type!==i.BlockStatement&&(t.rets.push(n),t.isFunctionComponentDefinition&&(o.has(t.key)||l1(e,n,r))&&o.set(t.key,t))},...n?{[o1](e){let{left:t,right:n}=e,r=t.object.type===i.Identifier?t.object.name:null,a=[...o.values()].findLast(({name:e})=>e!=null&&e===r);a!=null&&(a.displayName=n)}}:{},CallExpression(e){if(!w1(e))return;let t=s();t!=null&&(t.hookCalls.push(e),t.isFunctionComponentDefinition&&o.set(t.key,t))},ReturnStatement(t){let n=s();if(n==null||(n.rets.push(t.argument),!n.isFunctionComponentDefinition))return;let{argument:i}=t;(o.has(n.key)||l1(e,i,r))&&o.set(n.key,n)},TaggedTemplateExpression(e){if(!C1(e.tag))return;let t=s();t!=null&&(t.hookCalls.push(e),t.isFunctionComponentDefinition&&o.set(t.key,t))}}}}function j1(e){let t=[],n=/* @__PURE__ */ new Map,r=()=>t.at(-1)??null,a=()=>t.findLast(e=>e.isHookDefinition)??null;return{api:{getAllHooks(e){return[...n.values()]}},visitor:{":function":r=>{let i=Q$(r),a={id:i,key:r.range[0],kind:`hook`,name:i==null?null:Q.getFullyQualifiedName(i,PZ(e)),directives:i1(r),flag:0n,hint:0n,hookCalls:[],isHookDefinition:i!=null&&S1(i),node:r,rets:[]};t.push(a),a.isHookDefinition&&n.set(a.key,a)},":function:exit":()=>t.pop(),"ArrowFunctionExpression[body.type!='BlockStatement']"(){let e=r();if(e==null)return;let{body:t}=e.node;t.type!==i.BlockStatement&&e.rets.push(t)},CallExpression(e){w1(e)&&a()?.hookCalls.push(e)},ReturnStatement(e){r()?.rets.push(e.argument)},TaggedTemplateExpression(e){C1(e.tag)&&a()?.hookCalls.push(e)}}}}const M1=/* @__PURE__ */ new WeakMap,N1=/* @__PURE__ */ new WeakMap;function P1(e){let t=e.sourceCode.parserServices?.program?.getCompilerOptions()??{};return{jsx:t.jsx??w.JsxEmit.ReactJSX,jsxFactory:t.jsxFactory??`React.createElement`,jsxFragmentFactory:t.jsxFragmentFactory??`React.Fragment`,jsxImportSource:t.jsxImportSource??`react`}}function F1(e){let t=M1.get(e.sourceCode);if(t!=null)return t;let n={};if(!e.sourceCode.text.includes(`@jsx`))return M1.set(e.sourceCode,n),n;let r,i,a,o;for(let t of e.sourceCode.getAllComments()){let e=t.value;r??=e.match(oX)?.[1],i??=e.match(sX)?.[1],a=e.match(cX)?.[1]??a,o=e.match(lX)?.[1]??o}return r!=null&&(n.jsxFactory=r),i!=null&&(n.jsxFragmentFactory=i),a===`classic`?n.jsx=w.JsxEmit.React:a===`automatic`&&(n.jsx=w.JsxEmit.ReactJSX),o!=null&&(n.jsxImportSource=o),M1.set(e.sourceCode,n),n}function I1(e){let t=N1.get(e.sourceCode);if(t!=null)return t;let n={...P1(e),...F1(e)};return N1.set(e.sourceCode,n),n}function L1(e,t){return(e&t)!==0}function R1(e,t){return L1(e.flags,t)}const z1=R1,B1=e=>z1(e,w.TypeFlags.BooleanLiteral),V1=e=>B1(e)&&e.intrinsicName===`false`,H1=e=>B1(e)&&e.intrinsicName===`true`,U1=e=>z1(e,w.TypeFlags.TypeParameter|w.TypeFlags.Any),W1=e=>z1(e,w.TypeFlags.BigIntLike),G1=e=>z1(e,w.TypeFlags.BooleanLike),K1=e=>z1(e,w.TypeFlags.EnumLike),q1=e=>e.isLiteral()&&tW({value:{base10Value:`0`}},e),J1=e=>e.isNumberLiteral()&&e.value===0,Y1=e=>e.isStringLiteral()&&e.value===``,X1=e=>z1(e,w.TypeFlags.Never),Z1=e=>z1(e,w.TypeFlags.Null|w.TypeFlags.Undefined|w.TypeFlags.VoidLike),Q1=e=>z1(e,w.TypeFlags.NumberLike),$1=e=>!z1(e,w.TypeFlags.Null|w.TypeFlags.Undefined|w.TypeFlags.VoidLike|w.TypeFlags.BooleanLike|w.TypeFlags.StringLike|w.TypeFlags.NumberLike|w.TypeFlags.BigIntLike|w.TypeFlags.ESSymbolLike|w.TypeFlags.TypeParameter|w.TypeFlags.Any|w.TypeFlags.Unknown|w.TypeFlags.Never),e0=e=>z1(e,w.TypeFlags.StringLike),t0=e=>e.isLiteral()&&tW({value:{base10Value:vW.not(`0`)}},e),n0=e=>e.isNumberLiteral()&&e.value!==0,r0=e=>e.isStringLiteral()&&e.value!==``,i0=e=>z1(e,w.TypeFlags.Unknown);function a0(e,t){let n=t.name,r=t.declarations?.at(0)?.parent;if(r==null)return e.getFullyQualifiedName(t);for(;r.kind!==w.SyntaxKind.SourceFile;){switch(!0){case w.isInterfaceDeclaration(r):case w.isTypeAliasDeclaration(r):case w.isEnumDeclaration(r):case w.isModuleDeclaration(r):case w.isNamespaceImport(r):case w.isNamespaceExport(r):case w.isNamespaceExportDeclaration(r):case w.isPropertySignature(r)&&w.isIdentifier(r.name):case w.isPropertyDeclaration(r)&&w.isIdentifier(r.name):case w.isMethodDeclaration(r)&&w.isIdentifier(r.name):case w.isMethodSignature(r)&&w.isIdentifier(r.name):case w.isPropertyAssignment(r)&&w.isIdentifier(r.name):case w.isFunctionDeclaration(r)&&r.name!=null:case w.isClassExpression(r)&&r.name!=null:case w.isClassDeclaration(r)&&r.name!=null:n=`${r.name.text}.${n}`;break;case w.isEnumMember(r):n=`${r.name.getText()}.${n}`;break;case w.isTypeLiteralNode(r):case w.isMappedTypeNode(r):case w.isObjectLiteralExpression(r):case w.isIntersectionTypeNode(r):case w.isUnionTypeNode(r):}r=r.parent}let i=r.getSourceFile().statements.find(e=>w.isNamespaceExportDeclaration(e))?.name.text;return i==null||n===i||n.startsWith(`${i}.`)?n:`${i}.${n}`}function o0(e){let t=/* @__PURE__ */ new Set;if(e.some(i0))return t.add(`unknown`),t;e.some(Z1)&&t.add(`nullish`);let n=e.filter(G1),r=n[0];n.length===1&&r!=null?V1(r)?t.add(`falsy boolean`):H1(r)?t.add(`truthy boolean`):t.add(`boolean`):n.length===2&&t.add(`boolean`);let i=e.filter(e0);if(i.length>0){let e=bW(i).when(e=>e.every(r0),()=>`truthy string`).when(e=>e.every(Y1),()=>`falsy string`).otherwise(()=>`string`);t.add(e)}let a=e.filter(W1);if(a.length>0){let e=bW(a).when(e=>e.every(t0),()=>`truthy bigint`).when(e=>e.every(q1),()=>`falsy bigint`).otherwise(()=>`bigint`);t.add(e)}let o=e.filter(Q1);if(o.length>0){let e=bW(o).when(e=>e.every(n0),()=>`truthy number`).when(e=>e.every(J1),()=>`falsy number`).otherwise(()=>`number`);t.add(e)}return e.some(K1)&&t.add(`enum`),e.some($1)&&t.add(`object`),e.some(U1)&&t.add(`any`),e.some(X1)&&t.add(`never`),t}var s0=(/* @__PURE__ */ I(((e,t,n)=>{var r;(function(n,i){typeof e==`object`&&t!==void 0?i(e):typeof r==`function`&&r.amd?r([`exports`],i):(n=typeof globalThis<`u`?globalThis:n||self,i(n.compareVersions={}))})(n,(function(e){let t=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,n=e=>{if(typeof e!=`string`)throw TypeError(`Invalid argument expected string`);let n=e.match(t);if(!n)throw Error(`Invalid argument not valid semver ('${e}' received)`);return n.shift(),n},r=e=>e===`*`||e===`x`||e===`X`,i=e=>{let t=parseInt(e,10);return isNaN(t)?e:t},a=(e,t)=>typeof e==typeof t?[e,t]:[String(e),String(t)],o=(e,t)=>{if(r(e)||r(t))return 0;let[n,o]=a(i(e),i(t));return n>o?1:n<o?-1:0},s=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){let r=o(e[n]||`0`,t[n]||`0`);if(r!==0)return r}return 0},c=(e,t)=>{let r=n(e),i=n(t),a=r.pop(),o=i.pop(),c=s(r,i);return c===0?a&&o?s(a.split(`.`),o.split(`.`)):a||o?a?-1:1:0:c},l=(e,t,n)=>{f(n);let r=c(e,t);return u[n].includes(r)},u={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},d=Object.keys(u),f=e=>{if(typeof e!=`string`)throw TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(d.indexOf(e)===-1)throw Error(`Invalid operator, expected one of ${d.join(`|`)}`)},p=(e,t)=>{if(t=t.replace(/([><=]+)\s+/g,`$1`),t.includes(`||`))return t.split(`||`).some(t=>p(e,t));if(t.includes(` - `)){let[n,r]=t.split(` - `,2);return p(e,`>=${n} <=${r}`)}if(t.includes(` `))return t.trim().replace(/\s{2,}/g,` `).split(` `).every(t=>p(e,t));let r=t.match(/^([<>=~^]+)/),i=r?r[1]:`=`;if(i!==`^`&&i!==`~`)return l(e,t,i);let[a,o,c,,u]=n(e),[d,f,m,,h]=n(t),g=[a,o,c],_=[d,f??`x`,m??`x`];if(h&&(!u||s(g,_)!==0||s(u.split(`.`),h.split(`.`))===-1))return!1;let v=_.findIndex(e=>e!==`0`)+1,y=i===`~`?2:v>1?v:1;return s(g.slice(0,y),_.slice(0,y))===0&&s(g.slice(y),_.slice(y))!==-1};e.compare=l,e.compareVersions=c,e.satisfies=p,e.validate=e=>typeof e==`string`&&/^[v\d]/.test(e)&&t.test(e),e.validateStrict=e=>typeof e==`string`&&/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/.test(e)}))})))(),[Boe,Voe]=w.versionMajorMinor.split(`.`).map(e=>Number.parseInt(e,10));function c0(e,t){return(e&t)!==0}function l0(e,t){return c0(e.flags,t)}var u0=l0;w.TypeFlags.Intrinsic??w.TypeFlags.Any|w.TypeFlags.Unknown|w.TypeFlags.String|w.TypeFlags.Number|w.TypeFlags.BigInt|w.TypeFlags.Boolean|w.TypeFlags.BooleanLiteral|w.TypeFlags.ESSymbol|w.TypeFlags.Void|w.TypeFlags.Undefined|w.TypeFlags.Null|w.TypeFlags.Never|w.TypeFlags.NonPrimitive;function d0(e){return u0(e,w.TypeFlags.Union)}function f0(e){return d0(e)?e.types:[e]}function p0(e,t=``){return e.join(t)}function m0(e,t,n=``){if(typeof e.replaceAll==`function`)return e.replaceAll(t,n);let r=new RegExp(t,`g`);return e.replace(r,n)}function h0(e){return e.toLowerCase()}function g0(e){return m0(e,`'`,``)}var _0=[`[`,`]`,`{`,`}`,`(`,`)`,`|`,`/`,`-`,`\\`],v0=[..._0,` `,`_`,`.`];function y0(e){return _0.includes(e)?`\\${e}`:e}var b0=RegExp(`[${v0.map(y0).join(``)}]`,`g`);function x0(e){return e.replace(b0,` `).replace(/([a-zA-Z])([0-9])/g,`$1 $2`).replace(/([0-9])([a-zA-Z])/g,`$1 $2`).replace(/([a-zA-Z0-9_\-./])([^a-zA-Z0-9_\-./'])/g,`$1 $2`).replace(/([^a-zA-Z0-9_\-./'])([a-zA-Z0-9_\-./])/g,`$1 $2`).replace(/([a-z])([A-Z])/g,`$1 $2`).replace(/([A-Z])([A-Z][a-z])/g,`$1 $2`).trim().split(/\s+/g)}function S0(e,t){return p0(x0(g0(e)),t)}function C0(e){return h0(S0(g0(e),`_`))}var w0=Object.defineProperty,T0=(e,t)=>{let n=Object.setPrototypeOf({},null);for(var r in e)w0(n,r,{get:e[r],enumerable:!0});return t&1||w0(n,Symbol.toStringTag,{value:`Module`}),t&2?n:Object.preventExtensions(n)},E0=/* @__PURE__ */ T0({name:()=>O0,rules:()=>k0});const D0=/* @__PURE__ */ `react/button-has-type.react/destructuring-assignment.react/display-name.react/forbid-prop-types.react/forward-ref-uses-ref.react/hook-use-state.react/iframe-missing-sandbox.react/jsx-boolean-value.react/jsx-fragments.react/jsx-key.react/jsx-no-comment-textnodes.react/jsx-no-constructed-context-values.react/jsx-no-leaked-render.react/jsx-no-script-url.react/jsx-no-target-blank.react/jsx-no-useless-fragment.react/jsx-pascal-case.react/no-access-state-in-setstate.react/no-array-index-key.react/no-children-prop.react/no-danger.react/no-danger-with-children.react/no-deprecated.react/no-did-mount-set-state.react/no-did-update-set-state.react/no-direct-mutation-state.react/no-find-dom-node.react/no-namespace.react/no-object-type-as-default-prop.react/no-redundant-should-component-update.react/no-render-return-value.react/no-string-refs.react/no-unknown-property.react/no-unsafe.react/no-unstable-nested-components.react/no-unused-class-component-methods.react/no-unused-state.react/no-will-update-set-state.react/prop-types.react/void-dom-elements-no-children`.split(`.`),O0=`react-x/disable-conflict-eslint-plugin-react`,k0=Object.fromEntries(D0.map(e=>[e,`off`]));var A0=/* @__PURE__ */ T0({name:()=>M0,rules:()=>N0});const j0=[`react-hooks/error-boundaries`,`react-hooks/exhaustive-deps`,`react-hooks/globals`,`react-hooks/immutability`,`react-hooks/purity`,`react-hooks/refs`,`react-hooks/rules-of-hooks`,`react-hooks/set-state-in-effect`,`react-hooks/set-state-in-render`,`react-hooks/static-components`,`react-hooks/unsupported-syntax`,`react-hooks/use-memo`],M0=`react-x/disable-conflict-eslint-plugin-react-hooks`,N0=Object.fromEntries(j0.map(e=>[e,`off`]));var P0=/* @__PURE__ */ T0({name:()=>F0,rules:()=>I0});const F0=`react-x/disable-experimental`,I0={"react-x/globals":`off`,"react-x/immutability":`off`,"react-x/no-duplicate-key":`off`,"react-x/no-implicit-children":`off`,"react-x/no-implicit-key":`off`,"react-x/no-implicit-ref":`off`,"react-x/no-misused-capture-owner-stack":`off`,"react-x/no-unused-props":`off`,"react-x/no-unused-state":`off`,"react-x/refs":`off`,"react-x/set-state-in-render":`off`,"react-x/static-components":`off`};var L0=/* @__PURE__ */ T0({name:()=>R0,rules:()=>z0});const R0=`react-x/disable-type-checked`,z0={"react-x/no-implicit-children":`off`,"react-x/no-implicit-key":`off`,"react-x/no-implicit-ref":`off`,"react-x/no-leaked-conditional-rendering":`off`,"react-x/no-unused-props":`off`};var B0=`eslint-plugin-react-x`,V0=`5.30.4`;function H0(e){return`https://eslint-react.xyz/docs/rules/${e}`}const U0=xX.RuleCreator(H0);var W0=U0({meta:{type:`problem`,docs:{description:`Validates usage of Error Boundaries instead of try/catch for errors in child components.`},messages:{"try-catch-with-use":`Use an Error Boundary instead of try/catch around the 'use' hook. The 'use' hook suspends the component, and its errors can only be caught by Error Boundaries.`,"try-catch-with-jsx":`Use an Error Boundary to catch errors in child components. Try/catch can't catch errors during React's rendering process.`},schema:[]},name:`error-boundaries`,create:G0});function G0(e){if(!e.sourceCode.text.includes(`try`))return{};let t=s1.DoNotIncludeJSXWithNullValue|s1.DoNotIncludeJSXWithNumberValue|s1.DoNotIncludeJSXWithBigIntValue|s1.DoNotIncludeJSXWithStringValue|s1.DoNotIncludeJSXWithBooleanValue|s1.DoNotIncludeJSXWithUndefinedValue|s1.DoNotIncludeJSXWithEmptyArrayValue,n=A1(e),r=j1(e),i=/* @__PURE__ */ new Set,a=/* @__PURE__ */ new Set;return LZ(n.visitor,r.visitor,{CallExpression(t){v$(e,t)&&a.add(t)},"Program:exit"(o){let s=n.api.getAllComponents(o),c=r.api.getAllHooks(o),l=[...s,...c];for(let t of a){let n=uZ.findEnclosingTryBlock(t),r=uZ.findParent(n,e=>l.some(t=>t.node===e));n!=null&&r!=null&&!i.has(n)&&(e.report({messageId:`try-catch-with-use`,node:n}),i.add(n))}for(let{rets:n}of l)for(let r of n){if(r==null||!l1(e,r,t))continue;let n=uZ.findEnclosingTryBlock(r);n!=null&&!i.has(n)&&(e.report({messageId:`try-catch-with-jsx`,node:n}),i.add(n))}}})}const K0={meta:{type:`suggestion`,docs:{description:`Verifies the list of dependencies for Hooks like 'useEffect' and similar.`,recommended:!0,url:`https://github.com/react/react/issues/14920`},fixable:`code`,hasSuggestions:!0,schema:[{type:`object`,additionalProperties:!1,enableDangerousAutofixThisMayCauseInfiniteLoops:!1,properties:{additionalHooks:{type:`string`},enableDangerousAutofixThisMayCauseInfiniteLoops:{type:`boolean`},experimental_autoDependenciesHooks:{type:`array`,items:{type:`string`}},requireExplicitEffectDeps:{type:`boolean`}}}]},create(e){let t=e.options&&e.options[0],n=t&&t.additionalHooks?new RegExp(t.additionalHooks):bX(e).additionalEffectHooks,r=t&&t.enableDangerousAutofixThisMayCauseInfiniteLoops||!1,i={additionalHooks:n,experimental_autoDependenciesHooks:t&&Array.isArray(t.experimental_autoDependenciesHooks)?t.experimental_autoDependenciesHooks:[],enableDangerousAutofixThisMayCauseInfiniteLoops:r,requireExplicitEffectDeps:t&&t.requireExplicitEffectDeps||!1};function a(t){r&&Array.isArray(t.suggest)&&t.suggest.length>0&&t.suggest[0]&&(t.fix=t.suggest[0].fix),e.report(t)}let o=typeof e.getSourceCode==`function`?()=>e.getSourceCode():()=>e.sourceCode,s=typeof e.getScope==`function`?()=>e.getScope():t=>e.sourceCode.getScope(t),c=o().scopeManager,l=/* @__PURE__ */ new WeakMap,u=/* @__PURE__ */ new WeakSet,d=/* @__PURE__ */ new WeakMap,f=/* @__PURE__ */ new WeakMap,p=/* @__PURE__ */ new WeakSet;function m(e,t){return function(n){if(t.has(n))return t.get(n);let r=e(n);return t.set(n,r),r}}function h(e,t,n,r,i,s){i&&e.async&&a({node:e,message:`Effect callbacks are synchronous to prevent race conditions. Put the async function inside:
373
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0])a(n);else{if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&e.reused===`ref`)&&a(n)}}e.external&&(e.sharedDefsExtractedFor=e.external)}function kq(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;kq(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}const Aq=/* @__PURE__ */ new Set([`type`,`properties`,`required`,`additionalProperties`]),jq=[`oneOf`,`anyOf`];function Mq(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function Nq(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!Aq.has(e))return null;t.push(n)}let n={},r=/* @__PURE__ */ new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??Mq(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}EW(n,r,e.length===1?e[0]:Nq(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=Mq(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function Pq(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of Aq)if(t in e)return;let n=t.filter(e=>jq.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=Nq(t);else{let e=n[0],i=jq.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>Nq([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,Cq(e,r))}function Fq(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Cq(i,s),Cq(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())kq(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=/* @__PURE__ */ new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])Pq(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Cq(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,EW(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Rq(t,`input`,e.processors),output:Rq(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Iq(e,t){let n=t??{seen:/* @__PURE__ */ new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Iq(r.element,n);if(r.type===`set`)return Iq(r.valueType,n);if(r.type===`lazy`)return Iq(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return Iq(r.innerType,n);if(r.type===`intersection`)return Iq(r.left,n)||Iq(r.right,n);if(r.type===`record`||r.type===`map`)return Iq(r.keyType,n)||Iq(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Iq(r.in,n)||Iq(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Iq(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Iq(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Iq(e,n))return!0;return!!(r.rest&&Iq(r.rest,n))}return!1}const Lq=(e,t={})=>n=>{let r=wq({...n,processors:t});return Eq(e,r),Oq(r,e),Fq(r,e)},Rq=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=wq({...i??{},target:a,io:t,processors:n});return Eq(e,o),Oq(o,e),Fq(o,e)},zq=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},Bq=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},Vq=(e,t)=>{zq(e,`minimum`,t),Bq(e,`maximum`,t)},Hq=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},Uq=(e,t)=>{e.patterns??=/* @__PURE__ */ new Set,e.patterns.add(t)},Wq=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},Gq=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},Kq=(e,t)=>zq(e,`minimum`,t.minimum),qq=(e,t)=>Bq(e,`maximum`,t.maximum),Jq=e=>(t,n)=>{Gq(t,n.format);let[r,i]=e[n.format];zq(t,`minimum`,r),Bq(t,`maximum`,i)},Yq={greater_than:(e,t)=>zq(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>Bq(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>Hq(e,t.value),number_format:Jq(Die),bigint_format:Jq(Oie),min_length:Kq,max_length:qq,length_equals:(e,t)=>Vq(e,t.length),min_size:Kq,max_size:qq,size_equals:(e,t)=>Vq(e,t.size),string_format:(e,t)=>{Gq(e,t.format),t.pattern&&Uq(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>Wq(e,t.mime)};function Xq(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)Yq[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&zq(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&zq(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&Bq(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&Bq(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&Hq(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&Wq(t,i.mime);for(let e of i.patterns??[])Uq(t,e);return t}const Zq={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Qq=/* @__PURE__ */ new Map([[FG,Dae],[IG,Oae]]),$q=e=>Qq.get(e)??e,eJ=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=Xq(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Zq[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map($q);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},tJ=(e,t,n,r)=>{n.not={}},nJ=(e,t,n,r)=>{let i=xW(e._zod.def.entries);i.length===0?n.not={}:(i.every(e=>typeof e==`number`)&&(n.type=`number`),i.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=i)},rJ=(e,t,n,r)=>{Tq(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},iJ=(e,t,n,r)=>{Tq(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},aJ=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=Xq(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Eq(a.element,t,{...r,path:[...r.path,`items`]})};function oJ(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?oJ(t.out):t.type===`catch`?oJ(t.innerType):e._zod.optin}const sJ=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&Tq(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)EW(i.properties,e,Eq(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?oJ(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Eq(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},cJ=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Eq(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},lJ=(e,t,n,r)=>{let i=e._zod.def,a=Eq(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Eq(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},uJ=(e,t,n,r)=>{let i=e._zod.def,a=Eq(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},dJ=(e,t,n,r)=>{let i=e._zod.def;Eq(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},fJ=Symbol();function pJ(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(Tq(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),fJ):JSON.parse(o)}const mJ=(e,t,n,r)=>{let i=e._zod.def;Eq(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=pJ(i.defaultValue,e,t,n,r);o!==fJ&&(n.default=o)},hJ=(e,t,n,r)=>{let i=e._zod.def;Eq(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=pJ(i.defaultValue,e,t,n,r);o!==fJ&&(n._prefault=o)},gJ=(e,t,n,r)=>{let i=e._zod.def;Eq(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{Tq(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},_J=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;Eq(o,t,r);let s=t.seen.get(e);s.ref=o},vJ=(e,t,n,r)=>{let i=e._zod.def;Eq(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},yJ=(e,t,n,r)=>{let i=e._zod.def;Eq(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},bJ=/* @__PURE__ */ new WeakSet([Object.prototype,Error.prototype]);function xJ(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}const SJ=/*@__PURE__*/ sG(`ZodError`,(e,t)=>{Yie.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);bJ.has(n)||(bJ.add(n),xJ(n,`format`,e=>t=>Qie(e,t)),xJ(n,`flatten`,e=>t=>Zie(e,t)),xJ(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,CW,2)}),xJ(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,CW,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),CJ=/* @__PURE__ */ hG(SJ),wJ=/* @__PURE__ */ gG(SJ),TJ=/* @__PURE__ */ _G(SJ),EJ=/* @__PURE__ */ yG(SJ),DJ=/* @__PURE__ */ iae(SJ),OJ=/* @__PURE__ */ aae(SJ),kJ=/* @__PURE__ */ oae(SJ),AJ=/* @__PURE__ */ sae(SJ),jJ=/* @__PURE__ */ cae(SJ),MJ=/* @__PURE__ */ lae(SJ),NJ=/* @__PURE__ */ uae(SJ),PJ=/* @__PURE__ */ dae(SJ);function FJ(){uG.localeError||dG(CK())}function IJ(){uG.memoizer||dG({memoizer:bK()})}const LJ=/*@__PURE__*/ sG(`ZodType`,(e,t)=>(FJ(),EG.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(MW(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return RW(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(KY(e,t))},superRefine(e,t){return this.check(qY(e,t))},overwrite(e){return this.check(/* @__PURE__ */ pq(e))},optional(){return OY(this)},exactOptional(){return AY(this)},nullable(){return MY(this)},nullish(){return OY(MY(this))},nonoptional(e){return RY(this,e)},array(){return gY(this)},or(e){return bY([this,e])},and(e){return SY(this,e)},transform(e){return HY(this,EY(e))},default(e){return PY(this,e)},prefault(e){return IY(this,e)},catch(e){return BY(this,e)},pipe(e){return HY(this,e)},readonly(){return WY(this)},describe(e){let t=this.clone();return DK.add(t,{description:e}),t},meta(...e){if(e.length===0)return DK.get(this);let t=this.clone();return DK.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return eG(this,`~standard`,{...OG(this),jsonSchema:{input:Rq(this,`input`),output:Rq(this,`output`)}})},set"~standard"(e){$W(this,`~standard`,e)},parse:function e(t,n){return CJ(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await wJ(this,t,n,{callee:e})},safeParse(e,t){return TJ(this,e,t)},async safeParseAsync(e,t){return EJ(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){$W(this,`spa`,e)},validate(e,t){return tae(this,e,t)},validateAsync(e,t){return rae(this,e,t)},encode:function e(t,n){return DJ(this,t,n,{callee:e})},decode:function e(t,n){return OJ(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await kJ(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await AJ(this,t,n,{callee:e})},safeEncode(e,t){return jJ(this,e,t)},safeDecode(e,t){return MJ(this,e,t)},async safeEncodeAsync(e,t){return NJ(this,e,t)},async safeDecodeAsync(e,t){return PJ(this,e,t)},toJSONSchema(e){return Lq(this,{})(e)},get description(){return DK.get(this)?.description},get _def(){return this._zod.def}}),RJ=/*@__PURE__*/ sG(`_ZodString`,(e,t)=>{kG.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>eJ(e,t,n,r)},/*@__PURE__*/ zie({format:e=>Xq(e).format??null,minLength:e=>Xq(e).minimum??null,maxLength:e=>Xq(e).maximum??null},{regex(...e){return this.check(/* @__PURE__ */ sq(...e))},includes(...e){return this.check(/* @__PURE__ */ uq(...e))},startsWith(...e){return this.check(/* @__PURE__ */ dq(...e))},endsWith(...e){return this.check(/* @__PURE__ */ fq(...e))},min(...e){return this.check(/* @__PURE__ */ aq(...e))},max(...e){return this.check(/* @__PURE__ */ iq(...e))},length(...e){return this.check(/* @__PURE__ */ oq(...e))},nonempty(...e){return this.check(/* @__PURE__ */ aq(1,...e))},lowercase(e){return this.check(/* @__PURE__ */ cq(e))},uppercase(e){return this.check(/* @__PURE__ */ lq(e))},trim(){return this.check(/* @__PURE__ */ hq())},normalize(...e){return this.check(/* @__PURE__ */ mq(...e))},toLowerCase(){return this.check(/* @__PURE__ */ gq())},toUpperCase(){return this.check(/* @__PURE__ */ _q())},slugify(){return this.check(/* @__PURE__ */ vq())}})),zJ=/*@__PURE__*/ sG(`ZodString`,(e,t)=>{kG.init(e,t),RJ.init(e,t)},{email(e){return this.check(/* @__PURE__ */ AK(KJ,e))},url(e){return this.check(/* @__PURE__ */ IK(YJ,e))},jwt(e){return this.check(/* @__PURE__ */ ZK(uY,e))},emoji(e){return this.check(/* @__PURE__ */ LK(XJ,e))},guid(e){return this.check(/* @__PURE__ */ jK(qJ,e))},uuid(e){return this.check(/* @__PURE__ */ MK(JJ,e))},uuidv4(e){return this.check(/* @__PURE__ */ NK(JJ,e))},uuidv6(e){return this.check(/* @__PURE__ */ PK(JJ,e))},uuidv7(e){return this.check(/* @__PURE__ */ FK(JJ,e))},nanoid(e){return this.check(/* @__PURE__ */ RK(ZJ,e))},cuid(e){return this.check(/* @__PURE__ */ zK(QJ,e))},cuid2(e){return this.check(/* @__PURE__ */ BK($J,e))},ulid(e){return this.check(/* @__PURE__ */ VK(eY,e))},base64(e){return this.check(/* @__PURE__ */ JK(sY,e))},base64url(e){return this.check(/* @__PURE__ */ YK(cY,e))},xid(e){return this.check(/* @__PURE__ */ HK(tY,e))},ksuid(e){return this.check(/* @__PURE__ */ UK(nY,e))},ipv4(e){return this.check(/* @__PURE__ */ WK(rY,e))},ipv6(e){return this.check(/* @__PURE__ */ GK(iY,e))},cidrv4(e){return this.check(/* @__PURE__ */ KK(aY,e))},cidrv6(e){return this.check(/* @__PURE__ */ qK(oY,e))},e164(e){return this.check(/* @__PURE__ */ XK(lY,e))},datetime(e){return this.check(/* @__PURE__ */ QK(HJ,e))},date(e){return this.check(/* @__PURE__ */ $K(UJ,e))},time(e){return this.check(/* @__PURE__ */ eq(WJ,e))},duration(e){return this.check(/* @__PURE__ */ tq(GJ,e))}});function BJ(e){return/* @__PURE__ */ kK(zJ,e)}const VJ=/*@__PURE__*/ sG(`ZodStringFormat`,(e,t)=>{AG.init(e,t),RJ.init(e,t)}),HJ=/*@__PURE__*/ sG(`ZodISODateTime`,(e,t)=>{poe.init(e,t),VJ.init(e,t)}),UJ=/*@__PURE__*/ sG(`ZodISODate`,(e,t)=>{moe.init(e,t),VJ.init(e,t)}),WJ=/*@__PURE__*/ sG(`ZodISOTime`,(e,t)=>{hoe.init(e,t),VJ.init(e,t)}),GJ=/*@__PURE__*/ sG(`ZodISODuration`,(e,t)=>{goe.init(e,t),VJ.init(e,t)}),KJ=/*@__PURE__*/ sG(`ZodEmail`,(e,t)=>{$ae.init(e,t),VJ.init(e,t)}),qJ=/*@__PURE__*/ sG(`ZodGUID`,(e,t)=>{Zae.init(e,t),VJ.init(e,t)}),JJ=/*@__PURE__*/ sG(`ZodUUID`,(e,t)=>{Qae.init(e,t),VJ.init(e,t)}),YJ=/*@__PURE__*/ sG(`ZodURL`,(e,t)=>{aoe.init(e,t),VJ.init(e,t)}),XJ=/*@__PURE__*/ sG(`ZodEmoji`,(e,t)=>{ooe.init(e,t),VJ.init(e,t)}),ZJ=/*@__PURE__*/ sG(`ZodNanoID`,(e,t)=>{soe.init(e,t),VJ.init(e,t)}),QJ=/*@__PURE__*/ sG(`ZodCUID`,(e,t)=>{coe.init(e,t),VJ.init(e,t)}),$J=/*@__PURE__*/ sG(`ZodCUID2`,(e,t)=>{loe.init(e,t),VJ.init(e,t)}),eY=/*@__PURE__*/ sG(`ZodULID`,(e,t)=>{uoe.init(e,t),VJ.init(e,t)}),tY=/*@__PURE__*/ sG(`ZodXID`,(e,t)=>{doe.init(e,t),VJ.init(e,t)}),nY=/*@__PURE__*/ sG(`ZodKSUID`,(e,t)=>{foe.init(e,t),VJ.init(e,t)}),rY=/*@__PURE__*/ sG(`ZodIPv4`,(e,t)=>{_oe.init(e,t),VJ.init(e,t)}),iY=/*@__PURE__*/ sG(`ZodIPv6`,(e,t)=>{yoe.init(e,t),VJ.init(e,t)}),aY=/*@__PURE__*/ sG(`ZodCIDRv4`,(e,t)=>{boe.init(e,t),VJ.init(e,t)}),oY=/*@__PURE__*/ sG(`ZodCIDRv6`,(e,t)=>{Soe.init(e,t),VJ.init(e,t)}),sY=/*@__PURE__*/ sG(`ZodBase64`,(e,t)=>{Coe.init(e,t),VJ.init(e,t)}),cY=/*@__PURE__*/ sG(`ZodBase64URL`,(e,t)=>{Toe.init(e,t),VJ.init(e,t)}),lY=/*@__PURE__*/ sG(`ZodE164`,(e,t)=>{Eoe.init(e,t),VJ.init(e,t)}),uY=/*@__PURE__*/ sG(`ZodJWT`,(e,t)=>{Ooe.init(e,t),VJ.init(e,t)}),dY=/*@__PURE__*/ sG(`ZodUnknown`,(e,t)=>{koe.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function fY(){return/* @__PURE__ */ nq(dY)}const pY=/*@__PURE__*/ sG(`ZodNever`,(e,t)=>{Aoe.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tJ(e,t,n,r)});function mY(e){return/* @__PURE__ */ rq(pY,e)}const hY=/*@__PURE__*/ sG(`ZodArray`,(e,t)=>{IJ(),Noe.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>aJ(e,t,n,r),e.element=t.element},{min(e,t){return this.check(/* @__PURE__ */ aq(e,t))},nonempty(e){return this.check(/* @__PURE__ */ aq(1,e))},max(e,t){return this.check(/* @__PURE__ */ iq(e,t))},length(e,t){return this.check(/* @__PURE__ */ oq(e,t))},unwrap(){return this.element}});function gY(e,t){return/* @__PURE__ */ yq(hY,e,t)}const _Y=/*@__PURE__*/ sG(`ZodObject`,(e,t)=>{IJ(),Ioe.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sJ(e,t,n,r),Uie(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return wY(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(MW(this._zod.def,{catchall:e}))},passthrough(){return this.clone(MW(this._zod.def,{catchall:fY()}))},loose(){return this.clone(MW(this._zod.def,{catchall:fY()}))},strict(){return this.clone(MW(this._zod.def,{catchall:mY()}))},strip(){return this.clone(MW(this._zod.def,{catchall:void 0}))},extend(e){return jie(this,e)},safeExtend(e){return Mie(this,e)},merge(e){return Nie(this,e)},pick(e){return kie(this,e)},omit(e){return Aie(this,e)},partial(...e){return UW(DY,this,e[0])},exactPartial(...e){return UW(kY,this,e[0],`exactPartial`)},required(...e){return Pie(LY,this,e[0])}});function vY(e,t){let n={type:`object`,shape:e??{},...zW(t)};return new _Y(n)}const yY=/*@__PURE__*/ sG(`ZodUnion`,(e,t)=>{Loe.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cJ(e,t,n,r),e.options=t.options});function bY(e,t){return new yY({type:`union`,options:e,...zW(t)})}const xY=/*@__PURE__*/ sG(`ZodIntersection`,(e,t)=>{Roe.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lJ(e,t,n,r)});function SY(e,t){return new xY({type:`intersection`,left:e,right:t})}const CY=/*@__PURE__*/ sG(`ZodEnum`,(e,t)=>{zoe.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nJ(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new CY({...t,checks:[],...zW(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new CY({...t,checks:[],...zW(r),entries:i})}});function wY(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new CY({type:`enum`,entries:n,...zW(t)})}const TY=/*@__PURE__*/ sG(`ZodTransform`,(e,t)=>{IJ(),WG.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iJ(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new lG(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(QW(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(QW(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function EY(e){return new TY({type:`transform`,transform:e})}const DY=/*@__PURE__*/ sG(`ZodOptional`,(e,t)=>{KG.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yJ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function OY(e){return new DY({type:`optional`,innerType:e})}const kY=/*@__PURE__*/ sG(`ZodExactOptional`,(e,t)=>{qG.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yJ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function AY(e){return new kY({type:`optional`,innerType:e})}const jY=/*@__PURE__*/ sG(`ZodNullable`,(e,t)=>{JG.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uJ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function MY(e){return new jY({type:`nullable`,innerType:e})}const NY=/*@__PURE__*/ sG(`ZodDefault`,(e,t)=>{YG.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mJ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function PY(e,t){return new NY({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():IW(t)}})}const FY=/*@__PURE__*/ sG(`ZodPrefault`,(e,t)=>{ZG.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hJ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function IY(e,t){return new FY({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():IW(t)}})}const LY=/*@__PURE__*/ sG(`ZodNonOptional`,(e,t)=>{QG.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dJ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function RY(e,t){return new LY({type:`nonoptional`,innerType:e,...zW(t)})}const zY=/*@__PURE__*/ sG(`ZodCatch`,(e,t)=>{tK.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gJ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function BY(e,t){return new zY({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:Wie(t)})}const VY=/*@__PURE__*/ sG(`ZodPipe`,(e,t)=>{nK.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_J(e,t,n,r),e.in=t.in,e.out=t.out});function HY(e,t){return new VY({type:`pipe`,in:e,out:t})}const UY=/*@__PURE__*/ sG(`ZodReadonly`,(e,t)=>{iK.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vJ(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function WY(e){return new UY({type:`readonly`,innerType:e})}const GY=/*@__PURE__*/ sG(`ZodCustom`,(e,t)=>{oK.init(e,t),LJ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rJ(e,t,n,r)});function KY(e,t={}){return/* @__PURE__ */ bq(GY,e,t)}function qY(e,t){return/* @__PURE__ */ xq(e,t)}const JY=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;e<r;e++)n=t[e](n);return n}}},YY={pipe(){return JY(this,arguments)}};(function(){function e(){}return e.prototype=YY,e})();const XY=function(e,t){if(typeof e==`function`)return function(){return e(arguments)?t.apply(this,arguments):(e=>t(e,...arguments))};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}},ZY=e=>e,QY=ZY,$Y=(e=>()=>e)(!1);XY(2,(e,t)=>n=>t(e(n))),QY(e=>{throw Error("Called `absurd` function which should be uncallable")});function eX(e){let t=/* @__PURE__ */ new WeakMap,n=/* @__PURE__ */ new Map;return r=>nX(r)?rX(t,r,()=>e(r)):rX(n,r,()=>e(r))}XY(2,(e,t)=>n=>e(n)&&t(n)),XY(2,(e,t)=>n=>e(n)||t(n)),XY(2,(e,t)=>n=>e(n)!==t(n)),XY(2,(e,t)=>n=>e(n)===t(n)),XY(2,(e,t)=>n=>!e(n)||t(n)),XY(2,(e,t)=>n=>!e(n)&&!t(n)),XY(2,(e,t)=>n=>!e(n)||!t(n));function tX(e){return typeof e==`function`}function nX(e){return typeof e==`object`&&!!e||tX(e)}XY(2,(e,t)=>nX(e)&&t in e);function rX(e,t,n){if(e.has(t))return e.get(t);let r=n(t);return e.set(t,r),r}XY(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(i)}),XY(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(0,i)});const iX=/^[\u0000-\u001F ]*j[\t\n\r]*a[\t\n\r]*v[\t\n\r]*a[\t\n\r]*s[\t\n\r]*c[\t\n\r]*r[\t\n\r]*i[\t\n\r]*p[\t\n\r]*t[\t\n\r]*:/iu,aX=/^\/(.+)\/([A-Za-z]*)$/u,oX=/@jsx\s+(\S+)/u,sX=/@jsxFrag\s+(\S+)/u,cX=/@jsxRuntime\s+(\S+)/u,lX=/@jsxImportSource\s+(\S+)/u,uX=/^[A-Z]/u,dX=/^_?[A-Z]/u;function fX(e){if(e==null)return{test:$Y};let[,t,n=`u`]=aX.exec(e)??[];return t==null?{test:t=>t===e}:new RegExp(t,n)}const pX=vY({importSource:OY(BJ()),compilationMode:OY(wY([`infer`,`annotation`,`syntax`,`all`])),polymorphicPropName:OY(BJ()),version:OY(BJ()),additionalRefHooks:OY(BJ()),additionalStateHooks:OY(BJ()),additionalEffectHooks:OY(BJ())});OY(vY({"react-x":OY(fY())}));const mX={version:`detect`,importSource:`react`,polymorphicPropName:`as`};function hX(e){return pX.safeParse(e).success}const gX=e=>hX(e)?e:mX,_X=({importSource:e=`react`,compilationMode:t,polymorphicPropName:n=`as`,version:r,additionalRefHooks:i,additionalStateHooks:a,additionalEffectHooks:o,...s})=>({...s,importSource:e,compilationMode:t??`off`,polymorphicPropName:n,version:bW(r).with(vW.union(vW.nullish,``,`detect`),()=>vX(`19.3.0`)).otherwise(ZY),additionalRefHooks:fX(i),additionalStateHooks:fX(a),additionalEffectHooks:fX(o)});function vX(t){try{return bW(e.createRequire(process.cwd()+v.sep)(`react`)).with({version:vW.select(vW.string)},ZY).otherwise(()=>t)}catch{return t}}const yX=eX(e=>_X(gX(e)));function bX(e){return yX(e.settings[`react-x`])}var xX=/* @__PURE__ */ R(FT(),1),SX=Object.defineProperty,CX=(e,t)=>{let n=Object.setPrototypeOf({},null);for(var r in e)SX(n,r,{get:e[r],enumerable:!0});return t&1||SX(n,Symbol.toStringTag,{value:`Module`}),t&2?n:Object.preventExtensions(n)},wX=/* @__PURE__ */ R(DT(),1),Z=/* @__PURE__ */ CX({is:()=>TX,isArrayPatternElementDefault:()=>VX,isCallExpression:()=>kX,isClass:()=>FX,isConditionalOrLoop:()=>IX,isDirective:()=>OX,isExpression:()=>AX,isFunction:()=>LX,isFunctionOrClass:()=>RX,isIdentifier:()=>DX,isJSX:()=>UX,isJSXElement:()=>WX,isJSXElementOrFragment:()=>GX,isJSXExpressionContainer:()=>KX,isJSXFragment:()=>qX,isJSXSpreadAttribute:()=>JX,isJSXTagNameExpression:()=>YX,isLoopStatement:()=>NX,isMemberExpression:()=>jX,isObjectExpression:()=>MX,isObjectPatternElementDefault:()=>HX,isOneOf:()=>EX,isProperty:()=>zX,isPropertyOrMethod:()=>BX,isReturnStatement:()=>PX,isTypeAssertionExpression:()=>XX,isTypeExpression:()=>ZX,isTypeOrChainExpression:()=>QX});const TX=wX.isNodeOfType,EX=wX.isNodeOfTypes;function DX(e,t){return e.type===i.Identifier&&(t==null||e.name===t)}function OX(e,t){return e.type===i.ExpressionStatement&&e.directive!=null&&(t==null||e.directive===t)}const kX=TX(i.CallExpression),AX=EX([i.Identifier,i.Literal,i.CallExpression,i.MemberExpression,i.ObjectExpression,i.TemplateLiteral,i.ArrayExpression,i.TaggedTemplateExpression,i.BinaryExpression,i.ArrowFunctionExpression,i.LogicalExpression,i.UnaryExpression,i.AssignmentExpression,i.FunctionExpression,i.ChainExpression,i.TSNonNullExpression,i.NewExpression,i.ObjectPattern,i.TSAsExpression,i.ConditionalExpression,i.ThisExpression,i.YieldExpression,i.TSSatisfiesExpression,i.JSXElement,i.ArrayPattern,i.UpdateExpression,i.AwaitExpression,i.MetaProperty,i.ImportExpression,i.ClassExpression,i.JSXFragment,i.SequenceExpression,i.Super,i.TSInstantiationExpression,i.TSTypeAssertion]),jX=TX(i.MemberExpression),MX=TX(i.ObjectExpression),NX=EX([i.ForOfStatement,i.WhileStatement,i.ForStatement,i.ForInStatement,i.DoWhileStatement]),PX=TX(i.ReturnStatement),FX=EX([i.ClassDeclaration,i.ClassExpression]),IX=EX([i.IfStatement,i.LogicalExpression,i.ConditionalExpression,i.ForOfStatement,i.SwitchStatement,i.WhileStatement,i.ForStatement,i.ForInStatement,i.DoWhileStatement]),LX=EX([i.ArrowFunctionExpression,i.FunctionDeclaration,i.FunctionExpression]),RX=EX([i.ArrowFunctionExpression,i.FunctionDeclaration,i.FunctionExpression,i.ClassDeclaration,i.ClassExpression]),zX=EX([i.TSPropertySignature,i.PropertyDefinition,i.TSIndexSignature,i.TSParameterProperty]),BX=EX([i.MethodDefinition,i.PropertyDefinition]);function VX(e){return e.type===i.AssignmentPattern&&e.parent.type===i.ArrayPattern}function HX(e){return e.type===i.AssignmentPattern&&e.parent.type===i.Property&&e.parent.value===e&&e.parent.parent.type===i.ObjectPattern}const UX=EX([i.JSXIdentifier,i.JSXText,i.JSXAttribute,i.JSXElement,i.JSXOpeningElement,i.JSXClosingElement,i.JSXExpressionContainer,i.JSXMemberExpression,i.JSXSpreadAttribute,i.JSXClosingFragment,i.JSXEmptyExpression,i.JSXFragment,i.JSXNamespacedName,i.JSXOpeningFragment,i.JSXSpreadChild]),WX=TX(i.JSXElement),GX=EX([i.JSXElement,i.JSXFragment]),KX=TX(i.JSXExpressionContainer),qX=TX(i.JSXFragment),JX=TX(i.JSXSpreadAttribute),YX=EX([i.JSXIdentifier,i.JSXMemberExpression,i.JSXNamespacedName]),XX=EX([i.TSNonNullExpression,i.TSAsExpression,i.TSSatisfiesExpression,i.TSTypeAssertion]),ZX=EX([i.TSNonNullExpression,i.TSAsExpression,i.TSSatisfiesExpression,i.TSInstantiationExpression,i.TSTypeAssertion]),QX=EX([i.ChainExpression,i.TSNonNullExpression,i.TSAsExpression,i.TSSatisfiesExpression,i.TSInstantiationExpression,i.TSTypeAssertion]),$X=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;e<r;e++)n=t[e](n);return n}}},eZ={pipe(){return $X(this,arguments)}};(function(){function e(){}return e.prototype=eZ,e})();const tZ=function(e,t){if(typeof e==`function`)return function(){return e(arguments)?t.apply(this,arguments):(e=>t(e,...arguments))};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}};tZ(2,(e,t)=>n=>t(e(n))),tZ(2,(e,t)=>n=>e(n)&&t(n)),tZ(2,(e,t)=>n=>e(n)||t(n)),tZ(2,(e,t)=>n=>e(n)!==t(n)),tZ(2,(e,t)=>n=>e(n)===t(n)),tZ(2,(e,t)=>n=>!e(n)||t(n)),tZ(2,(e,t)=>n=>!e(n)&&!t(n)),tZ(2,(e,t)=>n=>!e(n)||!t(n));function nZ(e){return typeof e==`function`}function rZ(e){return typeof e==`object`&&!!e||nZ(e)}tZ(2,(e,t)=>rZ(e)&&t in e),tZ(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(i)}),tZ(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(0,i)});var Q=/* @__PURE__ */ CX({getCalleeName:()=>sZ,getFullyQualifiedName:()=>oZ,getJSXName:()=>aZ,unwrap:()=>iZ});function iZ(e){return QX(e)?iZ(e.expression):e}function aZ(e){switch(e.type){case i.JSXIdentifier:return e.name;case i.JSXNamespacedName:return`${e.namespace.name}:${e.name.name}`;case i.JSXMemberExpression:return`${aZ(e.object)}.${aZ(e.property)}`}}function oZ(e,t){let n=iZ(e);switch(n.type){case i.Identifier:return n.name;case i.PrivateIdentifier:return`#${n.name}`;case i.JSXIdentifier:case i.JSXMemberExpression:case i.JSXNamespacedName:return aZ(n);case i.MemberExpression:return n.computed?t(n):`${oZ(n.object,t)}.${oZ(n.property,t)}`;case i.JSXText:return n.value;case i.Literal:return n.raw;default:return t(n)}}function sZ(e){let t=iZ(e.callee);return DX(t)?t.name:t.type===i.MemberExpression&&!t.computed&&DX(t.property)?t.property.name:null}var cZ=/* @__PURE__ */ CX({isEqual:()=>lZ});const lZ=tZ(2,(e,t)=>{switch(e=ZX(e)?iZ(e):e,t=ZX(t)?iZ(t):t,!0){case e===t:return!0;case e.type!==t.type:return!1;case e.type===i.Literal&&t.type===i.Literal:return`regex`in e||`regex`in t?`regex`in e&&`regex`in t&&e.regex.pattern===t.regex.pattern&&e.regex.flags===t.regex.flags:e.value===t.value;case e.type===i.TemplateElement&&t.type===i.TemplateElement:return e.value.raw===t.value.raw;case e.type===i.TemplateLiteral&&t.type===i.TemplateLiteral:{if(e.quasis.length!==t.quasis.length||e.expressions.length!==t.expressions.length)return!1;let n=e.quasis.length;for(;n--;)if(e.quasis[n]?.value.raw!==t.quasis[n]?.value.raw)return!1;for(n=e.expressions.length;n--;){let r=e.expressions[n],i=t.expressions[n];if(r==null||i==null||!lZ(r,i))return!1}return!0}case DX(e)&&DX(t):case e.type===i.PrivateIdentifier&&t.type===i.PrivateIdentifier:return e.name===t.name;case e.type===i.ChainExpression&&t.type===i.ChainExpression:return lZ(e.expression,t.expression);case e.type===i.MemberExpression&&t.type===i.MemberExpression:return e.computed===t.computed&&e.optional===t.optional&&lZ(e.property,t.property)&&lZ(e.object,t.object);case e.type===i.CallExpression&&t.type===i.CallExpression:{if(e.optional!==t.optional||e.arguments.length!==t.arguments.length||!lZ(e.callee,t.callee))return!1;let n=e.arguments.length;for(;n--;){let r=e.arguments[n],i=t.arguments[n];if(r==null||i==null||!lZ(r,i))return!1}return!0}case e.type===i.JSXIdentifier&&t.type===i.JSXIdentifier:return e.name===t.name;case e.type===i.JSXNamespacedName&&t.type===i.JSXNamespacedName:return lZ(e.namespace,t.namespace)&&lZ(e.name,t.name);case e.type===i.JSXMemberExpression&&t.type===i.JSXMemberExpression:return lZ(e.object,t.object)&&lZ(e.property,t.property);case e.type===i.JSXAttribute&&t.type===i.JSXAttribute:return lZ(e.name,t.name)?e.value==null||t.value==null?e.value===t.value:lZ(e.value,t.value):!1;case e.type===i.ThisExpression&&t.type===i.ThisExpression:return!0;default:return!1}});var uZ=/* @__PURE__ */ CX({findEnclosingTryBlock:()=>hZ,findParent:()=>pZ,hasEnclosingTryBlock:()=>gZ,hasParent:()=>mZ,simpleTraverse:()=>fZ});function dZ(e){return typeof e==`object`&&!!e&&`type`in e&&typeof e.type==`string`}function fZ(e,t={}){let{enter:n,leave:r,setParentPointers:i=!1,visitorKeys:a=Le.visitorKeys}=t,o=(e,t)=>{if(dZ(e)){i&&(t==null?delete e.parent:e.parent=t),n?.(e,t);for(let t of a[e.type]??[]){let n=e[t];if(Array.isArray(n))for(let t of n)o(t,e);else o(n,e)}r?.(e,t)}};o(e,void 0)}function pZ(e,t,n){if(e==null)return null;let r=e.parent;for(;r!=null;){if(n?.(r)??!1)return null;if(t(r))return r;if(r.type===i.Program)return null;r=r.parent}return null}function mZ(e,t,n){return pZ(e,t,n)!=null}function hZ(e){let t=e.parent;return t==null||t.type===i.Program?null:t.type===i.TryStatement&&e===t.block?t:hZ(t)}function gZ(e){return hZ(e)!=null}var _Z=/* @__PURE__ */ CX({getCallExpressions:()=>wZ,getIdentifiers:()=>xZ,getNewExpressions:()=>CZ,getReturnExpressions:()=>EZ,getReturnStatements:()=>TZ});const vZ={[i.ArrayExpression]:[`elements`],[i.ArrayPattern]:[`elements`],[i.AssignmentExpression]:[`left`,`right`],[i.AssignmentPattern]:[`left`,`right`],[i.AwaitExpression]:[`argument`],[i.BinaryExpression]:[`left`,`right`],[i.CallExpression]:[`callee`,`arguments`],[i.ChainExpression]:[`expression`],[i.ConditionalExpression]:[`test`,`consequent`,`alternate`],[i.Decorator]:[`expression`],[i.DoWhileStatement]:[`test`],[i.ExpressionStatement]:[`expression`],[i.ForInStatement]:[`left`,`right`],[i.ForOfStatement]:[`left`,`right`],[i.ForStatement]:[`init`,`test`,`update`],[i.IfStatement]:[`test`],[i.ImportExpression]:[`source`,`options`],[i.JSXAttribute]:[`name`,`value`],[i.JSXElement]:[`openingElement`,`children`,`closingElement`],[i.JSXExpressionContainer]:[`expression`],[i.JSXFragment]:[`openingFragment`,`children`,`closingFragment`],[i.JSXOpeningElement]:[`name`,`typeArguments`,`attributes`],[i.JSXSpreadAttribute]:[`argument`],[i.JSXSpreadChild]:[`expression`],[i.LogicalExpression]:[`left`,`right`],[i.MemberExpression]:[`object`,`property`],[i.NewExpression]:[`callee`,`arguments`],[i.ObjectExpression]:[`properties`],[i.ObjectPattern]:[`properties`],[i.Property]:[`key`,`value`],[i.RestElement]:[`argument`],[i.SequenceExpression]:[`expressions`],[i.SpreadElement]:[`argument`],[i.SwitchCase]:[`test`],[i.TaggedTemplateExpression]:[`tag`,`quasi`],[i.TemplateLiteral]:[`expressions`],[i.TSAsExpression]:[`expression`],[i.TSClassImplements]:[`expression`],[i.TSExportAssignment]:[`expression`],[i.TSExternalModuleReference]:[`expression`],[i.TSInstantiationExpression]:[`expression`],[i.TSInterfaceHeritage]:[`expression`],[i.TSNonNullExpression]:[`expression`],[i.TSSatisfiesExpression]:[`expression`],[i.TSTypeAssertion]:[`expression`],[i.UnaryExpression]:[`argument`],[i.UpdateExpression]:[`argument`],[i.VariableDeclaration]:[`declarations`],[i.VariableDeclarator]:[`init`],[i.WhileStatement]:[`test`],[i.YieldExpression]:[`argument`]},yZ={...Le.visitorKeys,[i.ClassDeclaration]:[],[i.ClassExpression]:[]};function bZ(e,t){let n=[];return fZ(e,{enter(e,r){let a=r??e.parent;(a?.type!==i.MemberExpression||a.computed||a.property!==e)&&(a?.type!==i.Property||a.computed||a.key!==e)&&t(e)&&n.push(e)},visitorKeys:vZ}),n}function xZ(e){return bZ(e,DX)}function SZ(e){let t=TX(e);return e=>bZ(e,t)}const CZ=SZ(i.NewExpression),wZ=SZ(i.CallExpression);function TZ(e){let t=[],n=+!!LX(e),r=0;return fZ(e,{enter(e){LX(e)&&r++,e.type===i.ReturnStatement&&r===n&&t.push(e)},leave(e){LX(e)&&r--},visitorKeys:yZ}),t}function EZ(e){return e.body.type===i.BlockStatement?TZ(e).flatMap(e=>e.argument==null?[]:[e.argument]):[e.body]}var DZ=/* @__PURE__ */ CX({isTerminatingStatement:()=>OZ,isUnconditionallyTerminating:()=>MZ});function OZ(e){switch(e.type){case i.ReturnStatement:case i.ThrowStatement:case i.BreakStatement:case i.ContinueStatement:return!0;case i.BlockStatement:return e.body.some(OZ);case i.IfStatement:return e.alternate!=null&&OZ(e.consequent)&&OZ(e.alternate);case i.TryStatement:return e.finalizer!=null&&OZ(e.finalizer)?!0:e.handler==null?OZ(e.block):OZ(e.block)&&OZ(e.handler.body);default:return!1}}const kZ={...Le.visitorKeys,ArrowFunctionExpression:[],FunctionDeclaration:[],FunctionExpression:[]};function AZ(e,t){let n=!1,r=0,a=0;return fZ(e,{enter(e){switch(e.type){case i.BreakStatement:(e.label!=null||a===0)&&(n=!0);break;case i.ContinueStatement:(e.label!=null||t&&r===0)&&(n=!0);break;case i.WhileStatement:case i.DoWhileStatement:case i.ForStatement:case i.ForInStatement:case i.ForOfStatement:r+=1,a+=1;break;case i.SwitchStatement:a+=1}},leave(e){switch(e.type){case i.WhileStatement:case i.DoWhileStatement:case i.ForStatement:case i.ForInStatement:case i.ForOfStatement:--r,--a;break;case i.SwitchStatement:--a}},visitorKeys:kZ}),n}function jZ(e){return e.type===i.Literal&&e.value===!0}function MZ(e){switch(e.type){case i.ReturnStatement:case i.ThrowStatement:return!0;case i.BlockStatement:{let t=e.body.at(-1);return t!=null&&MZ(t)}case i.IfStatement:return e.alternate!=null&&MZ(e.consequent)&&MZ(e.alternate);case i.TryStatement:return e.finalizer!=null&&MZ(e.finalizer)?!0:e.handler==null?MZ(e.block):MZ(e.block)&&MZ(e.handler.body);case i.SwitchStatement:return e.cases.some(e=>e.test==null)?e.cases.every(e=>{let t=e.consequent.at(-1);return t==null||!MZ(t)?!1:e.consequent.every(e=>!AZ(e,!0))}):!1;case i.WhileStatement:return!jZ(e.test)||!MZ(e.body)?!1:!AZ(e.body,!1);case i.DoWhileStatement:return MZ(e.body)?!AZ(e.body,!0):!1;case i.ForStatement:return e.test!=null&&!jZ(e.test)||!MZ(e.body)?!1:!AZ(e.body,!1);default:return!1}}function NZ(e){return`https://eslint-react.xyz/docs/rules/${e}`}xX.RuleCreator(NZ);function PZ(e,...t){return t.length===1?e.sourceCode.getText(t[0]):t=>e.sourceCode.getText(t)}function FZ(e){return t=>{t!=null&&e.report(t)}}function IZ(e,t){let n=e.getTypeAtLocation(t);return e.program.getTypeChecker().getBaseConstraintOfType(n)??n}function LZ(e,...t){for(let n of t)for(let t in n){let r=e[t];e[t]=r==null?n[t]:(...e)=>{r(...e),n[t]?.(...e)}}return e}const RZ=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;e<r;e++)n=t[e](n);return n}}},zZ={pipe(){return RZ(this,arguments)}};(function(){function e(){}return e.prototype=zZ,e})();const BZ=function(e,t){if(typeof e==`function`)return function(){return e(arguments)?t.apply(this,arguments):(e=>t(e,...arguments))};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}};BZ(2,(e,t)=>n=>t(e(n)));function VZ(e){return t=>!e(t)}const HZ=BZ(2,(e,t)=>n=>e(n)&&t(n)),UZ=BZ(2,(e,t)=>n=>e(n)||t(n));BZ(2,(e,t)=>n=>e(n)!==t(n)),BZ(2,(e,t)=>n=>e(n)===t(n)),BZ(2,(e,t)=>n=>!e(n)||t(n)),BZ(2,(e,t)=>n=>!e(n)&&!t(n)),BZ(2,(e,t)=>n=>!e(n)||!t(n));function WZ(e){return typeof e==`function`}function GZ(e){return typeof e==`object`&&!!e||WZ(e)}BZ(2,(e,t)=>GZ(e)&&t in e),BZ(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(i)}),BZ(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(0,i)});function KZ(e){return Q.getJSXName(e.name)}const qZ=BZ(2,(e,t)=>e?.type===i.JSXAttribute&&e.name.type===i.JSXIdentifier&&e.name.name===t),JZ=BZ(2,(e,t)=>e?.type===i.JSXAttribute&&KZ(e)===t);function YZ(e,t){let{attributes:n}=e.openingElement;for(let e=n.length-1;e>=0;e--){let r=n[e];if(r?.type===i.JSXAttribute&&JZ(r,t))return r}return null}function XZ(e,t){if(e==null)return null;let n=t==null?()=>!0:typeof t==`function`?t:JZ(t);return uZ.findParent(e,e=>e.type===i.JSXAttribute&&n(e))}function ZZ(e,t){return YZ(e,t)!=null}function QZ(e,t){return t.length!==0&&e.openingElement.attributes.some(e=>e.type===i.JSXAttribute&&t.includes(KZ(e)))}function $Z(e){let{value:t}=e;if(t==null)return{kind:`boolean`,attribute:e,node:null};switch(t.type){case i.Literal:return{kind:`literal`,attribute:e,node:t};case i.JSXExpressionContainer:return t.expression.type===i.JSXEmptyExpression?{kind:`missing`,attribute:e,node:t.expression}:{kind:`unknown`,attribute:e,node:t.expression};case i.JSXElement:case i.JSXFragment:return{kind:`element`,attribute:e,node:t};case i.JSXSpreadChild:return t.expression.type===i.JSXEmptyExpression?{kind:`missing`,attribute:e,node:t.expression}:{kind:`unknown`,attribute:e,node:t.expression}}}function eQ(e,t){let n=YZ(e,t);return n==null?null:$Z(n)}function tQ(e,t){if(t!=null)switch(t.kind){case`boolean`:return!0;case`literal`:return t.node.value;case`unknown`:return(0,wX.getStaticValue)(t.node,e.sourceCode.getScope(t.node))?.value;case`element`:case`missing`:return}}function nQ(e,t,n){return tQ(e,eQ(t,n))}function rQ(e){let t=e.split(/\r\n|\n|\r/),n=0;for(let e=0;e<t.length;e++)/[^ \t]/.exec(t[e]??``)!=null&&(n=e);let r=``;for(let e=0;e<t.length;e++){let i=t[e]??``,a=e===0,o=e===t.length-1,s=e===n,c=i.replace(/\t/g,` `);a||(c=c.replace(/^ +/,``)),o||(c=c.replace(/ +$/,``)),c.length>0&&(s||(c+=` `),r+=c)}return r===``?null:r}function iQ(e){return e?.type===i.JSXText&&e.raw.trim()===``}function aQ(e){return e?.type===i.JSXText&&rQ(e.value)==null&&/[\r\n]/u.test(e.value)}function oQ(e){return e?.type===i.JSXExpressionContainer&&e.expression.type===i.JSXEmptyExpression}function sQ(e){return e?.type===i.JSXExpressionContainer&&e.expression.type===i.Literal&&e.expression.value===``}const cQ=UZ(oQ,sQ),lQ=HZ(VZ(iQ),VZ(cQ)),uQ=HZ(VZ(aQ),VZ(cQ));function dQ(e){return lQ(e)}function fQ(e){return e.children.filter(uQ)}function pQ(e){return e.children.some(dQ)}function mQ(e,t){if(t?.type!==i.CallExpression)return!1;let n=Q.getFullyQualifiedName(Q.unwrap(t.callee),PZ(e));return n===`createElement`||n.endsWith(`.createElement`)}function hQ(e,t){if(t?.type!==i.CallExpression||!mQ(e,t))return null;let n=t.arguments[1]??null,r=n==null?null:Q.unwrap(n);return{childrenArguments:t.arguments.slice(2),node:t,propsArgument:n,propsObject:r?.type===i.ObjectExpression?r:null,typeArgument:t.arguments[0]??null}}function gQ(e,t){let n=Q.unwrap(t.key);if(!t.computed)return Z.isIdentifier(n)?n.name:n.type===i.Literal&&typeof n.value==`string`?n.value:null;let r=(0,wX.getStaticValue)(n,e.sourceCode.getScope(n));return typeof r?.value==`string`?r.value:null}function _Q(e,t,n){if(t?.propsObject==null)return null;let{properties:r}=t.propsObject;for(let t=r.length-1;t>=0;t--){let a=r[t];if(a?.type===i.Property&&gQ(e,a)===n)return a}return null}function vQ(e,t){if(t==null)return!1;let n=t.parent;for(;Z.isTypeOrChainExpression(n);)n=n.parent;let r=Q.unwrap(t);return n?.type===i.CallExpression&&mQ(e,n)&&n.arguments.slice(2).some(e=>Q.unwrap(e)===r)}function yQ(e,t){if(t==null)return!1;let n=uZ.findParent(t,t=>mQ(e,t));if(n==null)return!1;let r=uZ.findParent(t,Z.isObjectExpression);if(r==null)return!1;let i=n.arguments[1];return i!=null&&r===Q.unwrap(i)}function bQ(e){return e.type===i.JSXFragment?``:Q.getJSXName(e.openingElement.name)}function xQ(e){return e.slice(e.lastIndexOf(`.`)+1)}function SQ(e){return xQ(bQ(e))}function CQ(e,t){return e==null?!1:e.type===i.JSXFragment||e.type===i.JSXElement&&SQ(e)===xQ(t)}function wQ(e){if(e?.type!==i.JSXElement)return!1;let t=e.openingElement.name;return t.type===i.JSXIdentifier?/^[a-z]/u.test(t.name):t.type===i.JSXNamespacedName&&/^[a-z]/u.test(t.name.name)}const TQ=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;e<r;e++)n=t[e](n);return n}}},EQ={pipe(){return TQ(this,arguments)}};(function(){function e(){}return e.prototype=EQ,e})();const DQ=function(e,t){if(typeof e==`function`)return function(){return e(arguments)?t.apply(this,arguments):(e=>t(e,...arguments))};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}};DQ(2,(e,t)=>n=>t(e(n))),DQ(2,(e,t)=>n=>e(n)&&t(n)),DQ(2,(e,t)=>n=>e(n)||t(n)),DQ(2,(e,t)=>n=>e(n)!==t(n)),DQ(2,(e,t)=>n=>e(n)===t(n)),DQ(2,(e,t)=>n=>!e(n)||t(n)),DQ(2,(e,t)=>n=>!e(n)&&!t(n)),DQ(2,(e,t)=>n=>!e(n)||!t(n));function OQ(e){return typeof e==`function`}function kQ(e){return typeof e==`object`&&!!e||OQ(e)}const AQ=DQ(2,(e,t)=>kQ(e)&&t in e);function jQ(e,t,n){if(e.has(t))return e.get(t);let r=n(t);return e.set(t,r),r}DQ(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(i)}),DQ(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(0,i)});function MQ(e,t){let{builtinNamespaces:n=[],source:r}=t,a=[],o=/* @__PURE__ */ new Map,s=/* @__PURE__ */ new Map,c=e=>{a.push(e),o.set(e.local,e);let t=e.kind===`namespace`?``:e.name;jQ(s,t,()=>[]).push(e)};for(let e of n)c({kind:`namespace`,local:e,specifier:r});for(let t of e.body){if(t.type!==i.ImportDeclaration||t.importKind===`type`)continue;let e=t.source.value;if(e===r||e.startsWith(`${r}/`))for(let n of t.specifiers)switch(n.type){case i.ImportSpecifier:{let{imported:t,local:r}=n;if(n.importKind===`type`||t.type!==i.Identifier)continue;if(t.name==="default"){c({kind:`default`,name:`default`,local:r.name,specifier:e});continue}c({kind:`named`,name:t.name,local:r.name,specifier:e});continue}case i.ImportDefaultSpecifier:c({kind:`default`,name:`default`,local:n.local.name,specifier:e});continue;case i.ImportNamespaceSpecifier:c({kind:`namespace`,local:n.local.name,specifier:e});continue}}return{all(){return a},binding(e){return o.get(e)??null},bindingsOf(e){return s.get(e)??[]},has(e,t){let n=o.get(e);return n!=null&&n.kind!==`namespace`&&n.name===t},hasDefault(e){return o.get(e)?.kind==="default"},isModuleBinding(e){let t=o.get(e);return t!=null&&t.kind!==`named`}}}function NQ(e,t,n){let{at:r=0,localOnly:i=!1}=n??{},a=i?e.set.get(t.name):(0,wX.findVariable)(e,t);return a==null?null:{definition:a.defs.at(r)??null,variable:a}}function PQ(e,t,n){return NQ(e.sourceCode.getScope(t),t,n)}function FQ(e,t){switch(e.type){case gk.DefinitionType.FunctionName:case gk.DefinitionType.ClassName:return e.node;case gk.DefinitionType.Variable:{let{id:n,init:r}=e.node;return r==null||t===`value`&&n!==e.name||AQ(r,`declarations`)?null:r}case gk.DefinitionType.Parameter:return t===`origin`&&Z.isFunction(e.node)?e.node:null;case gk.DefinitionType.TSEnumName:return e.node;case gk.DefinitionType.TSEnumMember:return e.node.initializer??null;case gk.DefinitionType.ImportBinding:return t===`origin`?e.node:null;case gk.DefinitionType.CatchClause:case gk.DefinitionType.ImplicitGlobalVariable:case gk.DefinitionType.TSModuleName:case gk.DefinitionType.Type:default:return null}}function IQ(e){return AQ(e,`regex`)}const LQ=[i.FunctionExpression,i.FunctionDeclaration,i.ClassBody,i.Program];function RQ(e,t,n,r){let{identifierComparison:a=`identity`}=r??{};t=Z.isTypeExpression(t)?Q.unwrap(t):t,n=Z.isTypeExpression(n)?Q.unwrap(n):n,t=t.type===i.ChainExpression?t.expression:t,n=n.type===i.ChainExpression?n.expression:n;let[o,s]=[e.sourceCode.getScope(t),e.sourceCode.getScope(n)];switch(!0){case t===n:return!0;case t.type===i.Literal&&n.type===i.Literal:return IQ(t)?IQ(n)&&t.regex.pattern===n.regex.pattern&&t.regex.flags===n.regex.flags:!IQ(n)&&t.value===n.value;case t.type===i.TemplateElement&&n.type===i.TemplateElement:return t.value.cooked===n.value.cooked;case Z.isIdentifier(t)&&Z.isIdentifier(n):{let e=NQ(o,t),r=NQ(s,n);if(a===`provenance`){let a=e?.definition==null?null:FQ(e.definition,`origin`),o=r?.definition==null?null:FQ(r.definition,`origin`),s=a?.parent,c=o?.parent,l=e?.definition,u=r?.definition,d=l?.parent?.parent,f=u?.parent?.parent;switch(!0){case s?.type===i.CallExpression&&c?.type===i.CallExpression&&Z.isFunction(a)&&Z.isFunction(o):{if(!cZ.isEqual(s.callee,c.callee))return!1;let e=a.params,r=o.params,i=e.findIndex(e=>cZ.isEqual(e,t)),l=r.findIndex(e=>cZ.isEqual(e,n));return i!==-1&&l!==-1&&i===l}case d?.type===i.ForOfStatement&&f?.type===i.ForOfStatement:{let t=d.left,n=f.left;if(t.type!==n.type)return!1;let i=d.right,a=f.right;return cZ.isEqual(i,a)?d!==f||e!=null&&r!=null&&e.variable===r.variable:!1}}}return e!=null&&r!=null&&e.variable===r.variable}case t.type===i.MemberExpression&&n.type===i.MemberExpression:return t.computed!==n.computed||t.optional!==n.optional?!1:(t.computed?RQ(e,t.property,n.property,r):cZ.isEqual(t.property,n.property))&&RQ(e,t.object,n.object,r);case t.type===i.ThisExpression&&n.type===i.ThisExpression:return o.block===s.block||uZ.findParent(t,Z.isOneOf(LQ))===uZ.findParent(n,Z.isOneOf(LQ));default:{let e=(0,wX.getStaticValue)(t,o),r=(0,wX.getStaticValue)(n,s);return e==null||r==null?!1:e.value===r.value}}}function zQ(e,t,n){return RQ(e,t,n,{identifierComparison:`provenance`})}function BQ(e,t,n){let r=Z.isTypeExpression(t)?Q.unwrap(t):t,i=Z.isTypeExpression(n)?Q.unwrap(n):n;return Z.isIdentifier(r)&&Z.isIdentifier(i)?zQ(e,r,i):cZ.isEqual(r,i)||zQ(e,r,i)}function VQ(e){let t=Q.unwrap(e);if(t.type===i.CallExpression){let e=Q.unwrap(t.callee);return Z.isIdentifier(e,`require`)?t.arguments:null}return t.type===i.MemberExpression?VQ(t.object):null}function HQ(e,t){return UQ(e,t,/* @__PURE__ */ new Set)}function UQ(e,t,n){if(n.has(e))return null;n.add(e);let r=(0,wX.findVariable)(t,e)?.defs.at(-1);if(r==null)return null;let{node:a,parent:o}=r;if(a.type===i.VariableDeclarator&&a.init!=null){let e=Q.unwrap(a.init);if(e.type===i.MemberExpression&&e.object.type===i.Identifier)return UQ(e.object.name,t,n);if(e.type===i.Identifier)return UQ(e.name,t,n);let r=VQ(e)?.[0];return r==null||!tW({type:i.Literal,value:vW.string},r)?null:r.value}return o?.type===i.ImportDeclaration?o.source.value:null}function WQ(e,t,n=`react`){return e.toLowerCase()===`react`||!!HQ(e,t)?.startsWith(n)}function GQ(e,t,n=`react-native`){return[`react_native`,`reactnative`,`rn`].includes(e.toLowerCase())||!!HQ(e,t)?.startsWith(n)}function KQ(e,t,n){let r=PQ(e,t,n);return r?.definition==null?null:FQ(r.definition,`value`)}function qQ(e){let t=Q.unwrap(e);switch(t.type){case i.Identifier:case i.MemberExpression:return[t];case i.ArrayPattern:return t.elements.flatMap(e=>e==null?[]:qQ(e));case i.AssignmentPattern:return qQ(t.left);case i.ObjectPattern:return t.properties.flatMap(e=>e.type===i.RestElement?qQ(e.argument):qQ(e.value));case i.RestElement:return qQ(t.argument);default:return[]}}function JQ(e){return e.parent}function YQ(e){switch(e.type){case i.VariableDeclarator:return e.id;case i.AssignmentExpression:return e.left;case i.PropertyDefinition:return e.key;case i.ExportDefaultDeclaration:return e.declaration;case i.BlockStatement:case i.Program:return null;default:{let t=JQ(e);return t==null?null:YQ(t)}}}function XQ(e,t){let n=(0,wX.findVariable)(e.sourceCode.getScope(t),t);return n==null||n.defs.length===0}function ZQ(e,t,n){return QQ(e,t,/* @__PURE__ */ new Set,{at:n?.at??-1,localOnly:(n?.scope??`local`)===`local`})}function QQ(e,t,n,r){if(t==null)return null;switch(t.type){case i.JSXElement:case i.JSXFragment:return{kind:`jsx`,node:t,via:`jsx`};case i.ArrayExpression:return{kind:`array`,node:t,via:`literal`};case i.ObjectExpression:return{kind:`plain`,node:t,via:`literal`};case i.ClassDeclaration:return{kind:`class`,node:t,via:`declaration`};case i.ClassExpression:return{kind:`class`,node:t,via:`expression`};case i.NewExpression:return{kind:`instance`,node:t,via:`new`};case i.ThisExpression:return{kind:`instance`,node:t,via:`this`};case i.FunctionDeclaration:return{kind:`function`,node:t,via:`declaration`};case i.FunctionExpression:return{kind:`function`,node:t,via:`expression`};case i.ArrowFunctionExpression:return{kind:`function`,node:t,via:`arrow`};case i.Literal:return AQ(t,`regex`)?{kind:`regexp`,node:t,via:`literal`}:null;case i.Identifier:{if(n.has(t))return null;n.add(t);let i=NQ(e.sourceCode.getScope(t),t,{at:r.at,localOnly:r.localOnly});if(i?.definition?.type===gk.DefinitionType.Parameter)return null;let a=i?.definition==null?null:FQ(i.definition,`value`);return a==null?null:QQ(e,a,n,r)}case i.MemberExpression:return QQ(e,t.object,n,r);case i.AssignmentExpression:case i.AssignmentPattern:return QQ(e,t.right,n,r);case i.LogicalExpression:return QQ(e,t.left,new Set(n),r)??QQ(e,t.right,new Set(n),r);case i.ConditionalExpression:return QQ(e,t.consequent,new Set(n),r)??QQ(e,t.alternate,new Set(n),r);case i.SequenceExpression:return t.expressions.length===0?null:QQ(e,t.expressions.at(-1)??null,n,r);case i.CallExpression:{let n=Q.unwrap(t.callee);switch(!0){case Z.isIdentifier(n,`Boolean`):case Z.isIdentifier(n,`String`):case Z.isIdentifier(n,`Number`):return null;case Z.isIdentifier(n,`Object`)&&XQ(e,n):return{kind:`plain`,node:t,via:`call`};case Z.isIdentifier(n,`Array`)&&XQ(e,n):return{kind:`array`,node:t,via:`call`};case Z.isIdentifier(n,`RegExp`)&&XQ(e,n):return{kind:`regexp`,node:t,via:`call`}}if(n.type===i.MemberExpression&&Z.isIdentifier(n.object)&&XQ(e,n.object)){let e=n.object.name,r=Q.getCalleeName(t);switch(e){case`Array`:if(r===`from`||r===`of`)return{kind:`array`,node:t,via:`call`};break;case`Object`:if(r===`create`||r===`assign`||r===`fromEntries`)return{kind:`plain`,node:t,via:`call`}}}return{kind:`unknown`,node:t,reason:`call-expression`}}default:return!AQ(t,`expression`)||typeof t.expression!=`object`?null:QQ(e,t.expression,n,r)}}function $Q(e,t,n){let r=PQ(e,t,n);return r?.definition==null?null:FQ(r.definition,`origin`)}function e$(e,t,n){let{at:r=0,localOnly:i=!1,maxDepth:a=32}=n??{},o=/* @__PURE__ */ new Set,s=t;for(let t=0;t<a;t++){if(!Z.isIdentifier(s))return s;if(o.has(s))return null;o.add(s);let t=$Q(e,s,{at:r,localOnly:i});if(t==null)return null;s=Q.unwrap(t)}return Z.isIdentifier(s)?null:s}function t$(e){function t(t,n){if(n==null)return!1;let r=Q.unwrap(n),i=Q.getFullyQualifiedName(r,PZ(t));return i===e||i.endsWith(`.${e}`)}function n(e,...n){return n.length===1?t(e,n[0]):n=>t(e,n)}return n}function n$(e){function t(t,n){return n==null||n.type!==i.CallExpression?!1:t$(e)(t,Q.unwrap(n.callee))}function n(e,...n){return n.length===1?t(e,n[0]):n=>t(e,n)}return n}const r$=t$(`Children.count`),i$=t$(`Children.forEach`),a$=t$(`Children.map`),o$=t$(`Children.only`),s$=t$(`Children.toArray`),c$=n$(`captureOwnerStack`),l$=n$(`Children.map`),u$=n$(`Children.toArray`),d$=n$(`cloneElement`),f$=n$(`createContext`),p$=n$(`createElement`),m$=n$(`createRef`),h$=n$(`forwardRef`),g$=n$(`lazy`),_$=n$(`memo`),v$=n$(`use`),y$=n$(`useCallback`),b$=n$(`useContext`),x$=n$(`useId`),S$=n$(`useMemo`),C$=n$(`useReducer`);function w$(e){return e.id==null?e.parent.type===i.VariableDeclarator?e.parent.id:null:e.id}const T$=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;e<r;e++)n=t[e](n);return n}}},E$={pipe(){return T$(this,arguments)}};(function(){function e(){}return e.prototype=E$,e})();const D$=function(e,t){if(typeof e==`function`)return function(){return e(arguments)?t.apply(this,arguments):(e=>t(e,...arguments))};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}},O$=(e=>()=>e)(!1);D$(2,(e,t)=>n=>t(e(n)));function k$(e){return t=>!e(t)}D$(2,(e,t)=>n=>e(n)&&t(n)),D$(2,(e,t)=>n=>e(n)||t(n)),D$(2,(e,t)=>n=>e(n)!==t(n)),D$(2,(e,t)=>n=>e(n)===t(n)),D$(2,(e,t)=>n=>!e(n)||t(n)),D$(2,(e,t)=>n=>!e(n)&&!t(n)),D$(2,(e,t)=>n=>!e(n)||!t(n));function A$(e){return typeof e==`string`}function j$(e){return typeof e==`function`}function M$(e){return typeof e==`object`&&!!e||j$(e)}const N$=D$(2,(e,t)=>M$(e)&&t in e);D$(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(i)}),D$(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(0,i)});function P$(e,t){return!t&&Z.isIdentifier(e)?e.name:e.type===i.Literal&&A$(e.value)?e.value:null}function F$(e){if(N$(e,`superClass`)&&e.superClass!=null){let t=/^(?:Pure)?Component$/u;switch(!0){case Z.isIdentifier(e.superClass):return t.test(e.superClass.name);case e.superClass.type===i.MemberExpression:{let n=P$(e.superClass.property,e.superClass.computed);return n!=null&&t.test(n)}}}return!1}function I$(e){if(e.superClass!=null){let t=/^PureComponent$/u;switch(!0){case Z.isIdentifier(e.superClass):return t.test(e.superClass.name);case e.superClass.type===i.MemberExpression:{let n=P$(e.superClass.property,e.superClass.computed);return n!=null&&t.test(n)}}}return!1}function L$(e,t=!1){return n=>Z.isPropertyOrMethod(n)&&n.static===t&&!n.computed&&P$(n.key,n.computed)===e}const R$=L$(`componentDidCatch`),z$=L$(`componentDidMount`),B$=L$(`componentDidUpdate`),V$=L$(`componentWillMount`),H$=L$(`componentWillReceiveProps`),U$=L$(`componentWillUpdate`),W$=L$(`UNSAFE_componentWillMount`),G$=L$(`UNSAFE_componentWillReceiveProps`),K$=L$(`UNSAFE_componentWillUpdate`),q$=L$(`getDerivedStateFromError`,!0);function J$(e){return Z.isPropertyOrMethod(e)&&!e.computed&&P$(e.key,e.computed)?.startsWith(`render`)===!0&&Z.isClass(e.parent.parent)}function Y$(e){let t=e.parent;for(;Z.isTypeExpression(t);)t=t.parent;let n=t.parent?.parent;return n!=null&&J$(t)&&F$(n)}function X$(e){let t=Q.unwrap(e.callee);return t.type===i.MemberExpression&&Q.unwrap(t.object).type===i.ThisExpression&&Q.getCalleeName(e)===`setState`}function Z$(e){let t=/* @__PURE__ */ new Map,n=n=>{if(!F$(n))return;let r=w$(n),i=n.range[0],a=r==null?null:Q.getFullyQualifiedName(r,PZ(e));t.set(i,{id:r,key:i,kind:`class-component`,name:a,displayName:null,flag:0n,hint:0n,methods:[],node:n})};return{api:{getAllComponents(e){return[...t.values()]}},visitor:{ClassDeclaration:n,ClassExpression:n}}}function Q$(e){switch(!0){case N$(e,`id`)&&e.id!=null:return e.id;case e.parent.type===i.VariableDeclarator&&e.parent.init===e:return e.parent.id;case e.parent.type===i.AssignmentExpression&&e.parent.right===e&&e.parent.operator===`=`:return e.parent.left;case e.parent.type===i.Property&&e.parent.value===e&&!e.parent.computed:case Z.isPropertyOrMethod(e.parent)&&e.parent.value===e&&!e.parent.computed:return e.parent.key;case e.parent.type===i.AssignmentPattern&&e.parent.right===e:return e.parent.left;case e.parent.type===i.ConditionalExpression&&(e.parent.consequent===e||e.parent.alternate===e):case Z.isTypeAssertionExpression(e.parent):return Q$(e.parent)}return null}function $$(e){let t=Q.getCalleeName(e);return t===`memo`||t===`forwardRef`}function e1(e,t){return $$(e)?e.arguments[0]===t:e.arguments.includes(t)}function t1(e){if(e.type===i.FunctionDeclaration)return[e];let t=e.parent,n=e;for(;Z.isTypeExpression(t);)n=t,t=t.parent;switch(!0){case t.type===i.VariableDeclarator:return[t.parent,t,e];case t.type===i.CallExpression&&e1(t,n)&&t.parent.type===i.VariableDeclarator:return[t.parent.parent,t.parent,t,e];case t.type===i.CallExpression&&e1(t,n)&&t.parent.type===i.CallExpression&&e1(t.parent,t)&&t.parent.parent.type===i.VariableDeclarator:case t.type===i.Property&&t.parent.type===i.ObjectExpression&&t.parent.parent.type===i.VariableDeclarator:return[t.parent.parent.parent,t.parent.parent,t.parent,t,e];case t.type===i.MethodDefinition:case t.type===i.PropertyDefinition:return[t.parent.parent,t.parent,t,e]}return null}function n1(e,t){return t.some(t=>{if(t.type!==i.CallExpression)return!1;let n=Q.unwrap(t.callee);return Z.isIdentifier(n)?n.name===e:n.type===i.MemberExpression&&N$(n.property,`name`)?n.property.name===e:!1})}function r1(e){return e.body.type===i.BlockStatement&&e.body.body.length===0}function i1(e){let t=[];if(e.body.type!==i.BlockStatement)return t;function n(e){return e.type===i.ExpressionStatement&&e.directive!=null}for(let r of e.body.body)n(r)&&t.push(r);return t}function a1(e,t){return i1(e).some(e=>e.directive===t)}const o1=`AssignmentExpression[operator='='][left.type='MemberExpression']:matches([left.computed=false][left.property.name='displayName'], [left.computed=true][left.property.type='Literal'][left.property.value='displayName'])`,s1={None:0n,DoNotIncludeJSXWithNullValue:1n<<0n,DoNotIncludeJSXWithNumberValue:1n<<1n,DoNotIncludeJSXWithBigIntValue:1n<<2n,DoNotIncludeJSXWithStringValue:1n<<3n,DoNotIncludeJSXWithBooleanValue:1n<<4n,DoNotIncludeJSXWithUndefinedValue:1n<<5n,DoNotIncludeJSXWithEmptyArrayValue:1n<<6n,DoNotIncludeJSXWithCreateElementValue:1n<<7n,RequireAllArrayElementsToBeJSX:1n<<8n,RequireBothSidesOfLogicalExpressionToBeJSX:1n<<9n,RequireBothBranchesOfConditionalExpressionToBeJSX:1n<<10n},c1=0n|s1.DoNotIncludeJSXWithNumberValue|s1.DoNotIncludeJSXWithBigIntValue|s1.DoNotIncludeJSXWithBooleanValue|s1.DoNotIncludeJSXWithStringValue|s1.DoNotIncludeJSXWithUndefinedValue;function l1(e,t,n=c1){let r=/* @__PURE__ */ new Set;function a(t){if(t==null)return!1;if(Z.isJSX(t))return!0;if(Z.isTypeOrChainExpression(t))return a(t.expression);switch(t.type){case i.AwaitExpression:return a(t.argument);case i.Literal:return bW(t.value).with(vW.nullish,()=>!(n&s1.DoNotIncludeJSXWithNullValue)).with(vW.boolean,()=>!(n&s1.DoNotIncludeJSXWithBooleanValue)).with(vW.string,()=>!(n&s1.DoNotIncludeJSXWithStringValue)).with(vW.number,()=>!(n&s1.DoNotIncludeJSXWithNumberValue)).with(vW.bigint,()=>!(n&s1.DoNotIncludeJSXWithBigIntValue)).with(vW.instanceOf(RegExp),()=>!1).exhaustive();case i.TemplateLiteral:return!(n&s1.DoNotIncludeJSXWithStringValue);case i.ArrayExpression:return t.elements.length===0?!(n&s1.DoNotIncludeJSXWithEmptyArrayValue):n&s1.RequireAllArrayElementsToBeJSX?t.elements.every(a):t.elements.some(a);case i.LogicalExpression:return n&s1.RequireBothSidesOfLogicalExpressionToBeJSX?a(t.left)&&a(t.right):a(t.left)||a(t.right);case i.ConditionalExpression:return n&s1.RequireBothBranchesOfConditionalExpressionToBeJSX?a(t.consequent)&&a(t.alternate):a(t.consequent)||a(t.alternate);case i.SequenceExpression:return a(t.expressions.at(-1)??null);case i.CallExpression:return n&s1.DoNotIncludeJSXWithCreateElementValue?!1:p$(e,t);case i.Identifier:{if(t.name===`undefined`&&(0,wX.findVariable)(e.sourceCode.getScope(t),t)==null)return!(n&s1.DoNotIncludeJSXWithUndefinedValue);if(r.has(t))return!1;r.add(t);let i=a(KQ(e,t));return r.delete(t),i}}return!1}return a(t)}const u1={None:0n,PureComponent:1n<<0n,CreateElement:1n<<1n,Memo:1n<<2n,ForwardRef:1n<<3n};function d1(e){let t=u1.None;return e!=null&&n1(`memo`,e)&&(t|=u1.Memo),e!=null&&n1(`forwardRef`,e)&&(t|=u1.ForwardRef),t}function f1(e,t){return _$(e,t)||h$(e,t)}function p1(e,t){let n=t,r=t.parent;for(;Z.isTypeExpression(r);)n=r,r=r.parent;return r.type!==i.CallExpression||r.arguments[0]!==n?!1:f1(e,r)}function m1(e,t){let n=Q$(t);if(n!=null)return n;let r=t.parent,a=t;for(;Z.isTypeExpression(r);)a=r,r=r.parent;switch(!0){case r.type===i.CallExpression&&r.arguments[0]===a&&f1(e,r)&&r.parent.type===i.VariableDeclarator:return r.parent.id;case r.type===i.CallExpression&&r.arguments[0]===a&&f1(e,r)&&r.parent.type===i.CallExpression&&r.parent.arguments[0]===r&&f1(e,r.parent)&&r.parent.parent.type===i.VariableDeclarator:return r.parent.parent.id;default:return null}}function h1(e){return uX.test(e)}function g1(e){return dX.test(e)}function _1(e,t,n=!1){let r=m1(e,t);return r==null?n:Z.isIdentifier(r)?g1(r.name):r.type===i.MemberExpression&&Z.isIdentifier(r.property)?g1(r.property.name):!1}const v1={...s1,DoNotIncludeFunctionDefinedAsClassMethod:1n<<11n,DoNotIncludeFunctionDefinedAsClassProperty:1n<<12n,DoNotIncludeFunctionDefinedAsObjectMethod:1n<<13n,DoNotIncludeFunctionDefinedAsArrayExpressionElement:1n<<14n,DoNotIncludeFunctionDefinedAsArrayPatternElement:1n<<15n,DoNotIncludeFunctionDefinedAsArrayFlatMapCallback:1n<<16n,DoNotIncludeFunctionDefinedAsArrayMapCallback:1n<<17n,DoNotIncludeFunctionDefinedAsArbitraryCallExpressionCallback:1n<<18n},y1=0n|v1.DoNotIncludeJSXWithBigIntValue|v1.DoNotIncludeJSXWithBooleanValue|v1.DoNotIncludeJSXWithNumberValue|v1.DoNotIncludeJSXWithStringValue|v1.DoNotIncludeJSXWithUndefinedValue|v1.DoNotIncludeFunctionDefinedAsArbitraryCallExpressionCallback|v1.DoNotIncludeFunctionDefinedAsArrayExpressionElement|v1.DoNotIncludeFunctionDefinedAsArrayFlatMapCallback|v1.DoNotIncludeFunctionDefinedAsArrayMapCallback|v1.DoNotIncludeFunctionDefinedAsArrayPatternElement|v1.RequireAllArrayElementsToBeJSX|v1.RequireBothBranchesOfConditionalExpressionToBeJSX|v1.RequireBothSidesOfLogicalExpressionToBeJSX;function b1(e,t,n){if(!_1(e,t,!0))return!1;let r=t.parent;for(;Z.isTypeExpression(r);)r=r.parent;if(Y$(t)||vQ(e,t)||Z.isCallExpression(r)&&f1(e,r)&&!p1(e,t))return!1;let[a,o]=r.type===i.CallExpression?[Q.unwrap(r.callee),Q.getCalleeName(r)]:[null,null];switch(!0){case Z.isOneOf([i.ArrowFunctionExpression,i.FunctionExpression])(t)&&r.type===i.Property&&r.parent.type===i.ObjectExpression:if(n&v1.DoNotIncludeFunctionDefinedAsObjectMethod)return!1;break;case Z.isOneOf([i.ArrowFunctionExpression,i.FunctionExpression])(t)&&r.type===i.MethodDefinition:if(n&v1.DoNotIncludeFunctionDefinedAsClassMethod)return!1;break;case Z.isOneOf([i.ArrowFunctionExpression,i.FunctionExpression])(t)&&r.type===i.PropertyDefinition:if(n&v1.DoNotIncludeFunctionDefinedAsClassProperty)return!1;break;case r.type===i.ArrayPattern||Z.isArrayPatternElementDefault(r):if(n&v1.DoNotIncludeFunctionDefinedAsArrayPatternElement)return!1;break;case r.type===i.ArrayExpression:if(n&v1.DoNotIncludeFunctionDefinedAsArrayExpressionElement)return!1;break;case a!=null&&a.type===i.MemberExpression&&o===`map`:if(n&v1.DoNotIncludeFunctionDefinedAsArrayMapCallback)return!1;break;case a!=null&&a.type===i.MemberExpression&&o===`flatMap`:if(n&v1.DoNotIncludeFunctionDefinedAsArrayFlatMapCallback)return!1;break;case r.type===i.CallExpression&&Q$(t)==null&&!f1(e,r)&&!p$(e,r):if(n&v1.DoNotIncludeFunctionDefinedAsArbitraryCallExpressionCallback)return!1}let s=uZ.findParent(t,Z.isOneOf([i.ArrowFunctionExpression,i.Property,i.FunctionExpression,i.ClassBody,i.JSXExpressionContainer]));return s==null||s.type!==i.JSXExpressionContainer}function x1(e){return e===`use`||/^use[A-Z0-9]/.test(e)}function S1(e){switch(e.type){case i.Identifier:return x1(e.name);case i.MemberExpression:return!e.computed&&N$(e.property,`name`)&&x1(e.property.name);default:return!1}}function C1(e){return S1(Q.unwrap(e))}function w1(e){let t=Q.getCalleeName(e);return t!=null&&x1(t)}function T1(e,t={test:O$}){let n=Q.getCalleeName(e);return n==null?!1:n===`useRef`||t.test(n)}function E1(e,t={test:O$}){let n=Q.getCalleeName(e);return n==null?!1:n===`useState`||t.test(n)}function D1(e,t={test:O$}){let n=Q.getCalleeName(e);return n==null?!1:/^use\w*Effect$/u.test(n)||t.test(n)}function O1(e){let t=Q.unwrap(e),n=uZ.findParent(t,k$(Z.isTypeOrChainExpression));if(n?.type!==i.CallExpression)return!1;let[r]=n.arguments;return r!=null&&Q.unwrap(r)===t&&D1(n)}function k1(e){let t=Q.unwrap(e),n=uZ.findParent(t,Z.isFunction);if(n==null||!O1(n))return!1;let r=uZ.findParent(t,Z.isReturnStatement,Z.isFunction);return r==null?Z.isFunction(t)&&n.type===i.ArrowFunctionExpression&&Q.unwrap(n.body)===t:r.argument!=null&&Q.unwrap(r.argument)===t}function A1(e,t={}){let{collectDisplayName:n=!1,hint:r=y1}=t,a=[],o=/* @__PURE__ */ new Map,s=()=>a.at(-1)??null;return{api:{getAllComponents(e){return[...o.values()]}},visitor:{":function":t=>{let n=t.range[0],s=uZ.findParent(t,e=>e.type===i.ExportDefaultDeclaration),c=s!=null,l=s!=null&&Q.unwrap(s.declaration)===t,u=m1(e,t),d=u==null?null:Q.getFullyQualifiedName(u,PZ(e)),f=t1(t),p=i1(t),m={id:u,key:n,kind:`component`,name:d,directives:p,displayName:null,flag:d1(f),hint:r,hookCalls:[],initPath:f,isExportDefault:c,isExportDefaultDeclaration:l,isFunctionComponentDefinition:b1(e,t,r),node:t,rets:[]};a.push(m),m.isFunctionComponentDefinition&&_1(e,t,!1)&&p.some(e=>e.directive===`use memo`||e.directive===`use no memo`)&&o.set(m.key,m)},":function:exit":()=>a.pop(),"ArrowFunctionExpression[body.type!='BlockStatement']"(){let t=s();if(t==null)return;let{body:n}=t.node;n.type!==i.BlockStatement&&(t.rets.push(n),t.isFunctionComponentDefinition&&(o.has(t.key)||l1(e,n,r))&&o.set(t.key,t))},...n?{[o1](e){let{left:t,right:n}=e,r=t.object.type===i.Identifier?t.object.name:null,a=[...o.values()].findLast(({name:e})=>e!=null&&e===r);a!=null&&(a.displayName=n)}}:{},CallExpression(e){if(!w1(e))return;let t=s();t!=null&&(t.hookCalls.push(e),t.isFunctionComponentDefinition&&o.set(t.key,t))},ReturnStatement(t){let n=s();if(n==null||(n.rets.push(t.argument),!n.isFunctionComponentDefinition))return;let{argument:i}=t;(o.has(n.key)||l1(e,i,r))&&o.set(n.key,n)},TaggedTemplateExpression(e){if(!C1(e.tag))return;let t=s();t!=null&&(t.hookCalls.push(e),t.isFunctionComponentDefinition&&o.set(t.key,t))}}}}function j1(e){let t=[],n=/* @__PURE__ */ new Map,r=()=>t.at(-1)??null,a=()=>t.findLast(e=>e.isHookDefinition)??null;return{api:{getAllHooks(e){return[...n.values()]}},visitor:{":function":r=>{let i=Q$(r),a={id:i,key:r.range[0],kind:`hook`,name:i==null?null:Q.getFullyQualifiedName(i,PZ(e)),directives:i1(r),flag:0n,hint:0n,hookCalls:[],isHookDefinition:i!=null&&S1(i),node:r,rets:[]};t.push(a),a.isHookDefinition&&n.set(a.key,a)},":function:exit":()=>t.pop(),"ArrowFunctionExpression[body.type!='BlockStatement']"(){let e=r();if(e==null)return;let{body:t}=e.node;t.type!==i.BlockStatement&&e.rets.push(t)},CallExpression(e){w1(e)&&a()?.hookCalls.push(e)},ReturnStatement(e){r()?.rets.push(e.argument)},TaggedTemplateExpression(e){C1(e.tag)&&a()?.hookCalls.push(e)}}}}const M1=/* @__PURE__ */ new WeakMap,N1=/* @__PURE__ */ new WeakMap;function P1(e){let t=e.sourceCode.parserServices?.program?.getCompilerOptions()??{};return{jsx:t.jsx??w.JsxEmit.ReactJSX,jsxFactory:t.jsxFactory??`React.createElement`,jsxFragmentFactory:t.jsxFragmentFactory??`React.Fragment`,jsxImportSource:t.jsxImportSource??`react`}}function F1(e){let t=M1.get(e.sourceCode);if(t!=null)return t;let n={};if(!e.sourceCode.text.includes(`@jsx`))return M1.set(e.sourceCode,n),n;let r,i,a,o;for(let t of e.sourceCode.getAllComments()){let e=t.value;r??=e.match(oX)?.[1],i??=e.match(sX)?.[1],a=e.match(cX)?.[1]??a,o=e.match(lX)?.[1]??o}return r!=null&&(n.jsxFactory=r),i!=null&&(n.jsxFragmentFactory=i),a===`classic`?n.jsx=w.JsxEmit.React:a===`automatic`&&(n.jsx=w.JsxEmit.ReactJSX),o!=null&&(n.jsxImportSource=o),M1.set(e.sourceCode,n),n}function I1(e){let t=N1.get(e.sourceCode);if(t!=null)return t;let n={...P1(e),...F1(e)};return N1.set(e.sourceCode,n),n}function L1(e,t){return(e&t)!==0}function R1(e,t){return L1(e.flags,t)}const z1=R1,B1=e=>z1(e,w.TypeFlags.BooleanLiteral),V1=e=>B1(e)&&e.intrinsicName===`false`,H1=e=>B1(e)&&e.intrinsicName===`true`,U1=e=>z1(e,w.TypeFlags.TypeParameter|w.TypeFlags.Any),W1=e=>z1(e,w.TypeFlags.BigIntLike),G1=e=>z1(e,w.TypeFlags.BooleanLike),K1=e=>z1(e,w.TypeFlags.EnumLike),q1=e=>e.isLiteral()&&tW({value:{base10Value:`0`}},e),J1=e=>e.isNumberLiteral()&&e.value===0,Y1=e=>e.isStringLiteral()&&e.value===``,X1=e=>z1(e,w.TypeFlags.Never),Z1=e=>z1(e,w.TypeFlags.Null|w.TypeFlags.Undefined|w.TypeFlags.VoidLike),Q1=e=>z1(e,w.TypeFlags.NumberLike),$1=e=>!z1(e,w.TypeFlags.Null|w.TypeFlags.Undefined|w.TypeFlags.VoidLike|w.TypeFlags.BooleanLike|w.TypeFlags.StringLike|w.TypeFlags.NumberLike|w.TypeFlags.BigIntLike|w.TypeFlags.ESSymbolLike|w.TypeFlags.TypeParameter|w.TypeFlags.Any|w.TypeFlags.Unknown|w.TypeFlags.Never),e0=e=>z1(e,w.TypeFlags.StringLike),t0=e=>e.isLiteral()&&tW({value:{base10Value:vW.not(`0`)}},e),n0=e=>e.isNumberLiteral()&&e.value!==0,r0=e=>e.isStringLiteral()&&e.value!==``,i0=e=>z1(e,w.TypeFlags.Unknown);function a0(e,t){let n=t.name,r=t.declarations?.at(0)?.parent;if(r==null)return e.getFullyQualifiedName(t);let i=!1;for(;!w.isSourceFile(r);){switch(!0){case w.isInterfaceDeclaration(r):case w.isTypeAliasDeclaration(r):case w.isEnumDeclaration(r):n=`${r.name.text}.${n}`;break;case w.isModuleDeclaration(r):if((r.flags&w.NodeFlags.GlobalAugmentation)!==0){i=!0;break}n=`${r.name.text}.${n}`;break;case w.isPropertySignature(r)&&w.isIdentifier(r.name):case w.isPropertyDeclaration(r)&&w.isIdentifier(r.name):case w.isMethodDeclaration(r)&&w.isIdentifier(r.name):case w.isMethodSignature(r)&&w.isIdentifier(r.name):case w.isPropertyAssignment(r)&&w.isIdentifier(r.name):case w.isVariableDeclaration(r)&&w.isIdentifier(r.name):case w.isFunctionDeclaration(r)&&r.name!=null:case w.isClassExpression(r)&&r.name!=null:case w.isClassDeclaration(r)&&r.name!=null:case w.isEnumMember(r)&&!w.isComputedPropertyName(r.name):n=`${r.name.text}.${n}`;break;case w.isTypeLiteralNode(r):case w.isMappedTypeNode(r):case w.isObjectLiteralExpression(r):case w.isIntersectionTypeNode(r):case w.isUnionTypeNode(r):}r=r.parent}let a=r.statements.find(e=>w.isNamespaceExportDeclaration(e))?.name.text;return a==null||i||n===a||n.startsWith(`${a}.`)?n:`${a}.${n}`}function o0(e){let t=/* @__PURE__ */ new Set;if(e.some(i0))return t.add(`unknown`),t;e.some(Z1)&&t.add(`nullish`);let n=e.filter(G1),r=n[0];n.length===1&&r!=null?V1(r)?t.add(`falsy boolean`):H1(r)?t.add(`truthy boolean`):t.add(`boolean`):n.length===2&&t.add(`boolean`);let i=e.filter(e0);if(i.length>0){let e=bW(i).when(e=>e.every(r0),()=>`truthy string`).when(e=>e.every(Y1),()=>`falsy string`).otherwise(()=>`string`);t.add(e)}let a=e.filter(W1);if(a.length>0){let e=bW(a).when(e=>e.every(t0),()=>`truthy bigint`).when(e=>e.every(q1),()=>`falsy bigint`).otherwise(()=>`bigint`);t.add(e)}let o=e.filter(Q1);if(o.length>0){let e=bW(o).when(e=>e.every(n0),()=>`truthy number`).when(e=>e.every(J1),()=>`falsy number`).otherwise(()=>`number`);t.add(e)}return e.some(K1)&&t.add(`enum`),e.some($1)&&t.add(`object`),e.some(U1)&&t.add(`any`),e.some(X1)&&t.add(`never`),t}var s0=(/* @__PURE__ */ I(((e,t,n)=>{var r;(function(n,i){typeof e==`object`&&t!==void 0?i(e):typeof r==`function`&&r.amd?r([`exports`],i):(n=typeof globalThis<`u`?globalThis:n||self,i(n.compareVersions={}))})(n,(function(e){let t=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,n=e=>{if(typeof e!=`string`)throw TypeError(`Invalid argument expected string`);let n=e.match(t);if(!n)throw Error(`Invalid argument not valid semver ('${e}' received)`);return n.shift(),n},r=e=>e===`*`||e===`x`||e===`X`,i=e=>{let t=parseInt(e,10);return isNaN(t)?e:t},a=(e,t)=>typeof e==typeof t?[e,t]:[String(e),String(t)],o=(e,t)=>{if(r(e)||r(t))return 0;let[n,o]=a(i(e),i(t));return n>o?1:n<o?-1:0},s=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){let r=o(e[n]||`0`,t[n]||`0`);if(r!==0)return r}return 0},c=(e,t)=>{let r=n(e),i=n(t),a=r.pop(),o=i.pop(),c=s(r,i);return c===0?a&&o?s(a.split(`.`),o.split(`.`)):a||o?a?-1:1:0:c},l=(e,t,n)=>{f(n);let r=c(e,t);return u[n].includes(r)},u={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},d=Object.keys(u),f=e=>{if(typeof e!=`string`)throw TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(d.indexOf(e)===-1)throw Error(`Invalid operator, expected one of ${d.join(`|`)}`)},p=(e,t)=>{if(t=t.replace(/([><=]+)\s+/g,`$1`),t.includes(`||`))return t.split(`||`).some(t=>p(e,t));if(t.includes(` - `)){let[n,r]=t.split(` - `,2);return p(e,`>=${n} <=${r}`)}if(t.includes(` `))return t.trim().replace(/\s{2,}/g,` `).split(` `).every(t=>p(e,t));let r=t.match(/^([<>=~^]+)/),i=r?r[1]:`=`;if(i!==`^`&&i!==`~`)return l(e,t,i);let[a,o,c,,u]=n(e),[d,f,m,,h]=n(t),g=[a,o,c],_=[d,f??`x`,m??`x`];if(h&&(!u||s(g,_)!==0||s(u.split(`.`),h.split(`.`))===-1))return!1;let v=_.findIndex(e=>e!==`0`)+1,y=i===`~`?2:v>1?v:1;return s(g.slice(0,y),_.slice(0,y))===0&&s(g.slice(y),_.slice(y))!==-1};e.compare=l,e.compareVersions=c,e.satisfies=p,e.validate=e=>typeof e==`string`&&/^[v\d]/.test(e)&&t.test(e),e.validateStrict=e=>typeof e==`string`&&/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/.test(e)}))})))(),[Boe,Voe]=w.versionMajorMinor.split(`.`).map(e=>Number.parseInt(e,10));function c0(e,t){return(e&t)!==0}function l0(e,t){return c0(e.flags,t)}var u0=l0;w.TypeFlags.Intrinsic??w.TypeFlags.Any|w.TypeFlags.Unknown|w.TypeFlags.String|w.TypeFlags.Number|w.TypeFlags.BigInt|w.TypeFlags.Boolean|w.TypeFlags.BooleanLiteral|w.TypeFlags.ESSymbol|w.TypeFlags.Void|w.TypeFlags.Undefined|w.TypeFlags.Null|w.TypeFlags.Never|w.TypeFlags.NonPrimitive;function d0(e){return u0(e,w.TypeFlags.Union)}function f0(e){return d0(e)?e.types:[e]}function p0(e,t=``){return e.join(t)}function m0(e,t,n=``){if(typeof e.replaceAll==`function`)return e.replaceAll(t,n);let r=new RegExp(t,`g`);return e.replace(r,n)}function h0(e){return e.toLowerCase()}function g0(e){return m0(e,`'`,``)}var _0=[`[`,`]`,`{`,`}`,`(`,`)`,`|`,`/`,`-`,`\\`],v0=[..._0,` `,`_`,`.`];function y0(e){return _0.includes(e)?`\\${e}`:e}var b0=RegExp(`[${v0.map(y0).join(``)}]`,`g`);function x0(e){return e.replace(b0,` `).replace(/([a-zA-Z])([0-9])/g,`$1 $2`).replace(/([0-9])([a-zA-Z])/g,`$1 $2`).replace(/([a-zA-Z0-9_\-./])([^a-zA-Z0-9_\-./'])/g,`$1 $2`).replace(/([^a-zA-Z0-9_\-./'])([a-zA-Z0-9_\-./])/g,`$1 $2`).replace(/([a-z])([A-Z])/g,`$1 $2`).replace(/([A-Z])([A-Z][a-z])/g,`$1 $2`).trim().split(/\s+/g)}function S0(e,t){return p0(x0(g0(e)),t)}function C0(e){return h0(S0(g0(e),`_`))}var w0=Object.defineProperty,T0=(e,t)=>{let n=Object.setPrototypeOf({},null);for(var r in e)w0(n,r,{get:e[r],enumerable:!0});return t&1||w0(n,Symbol.toStringTag,{value:`Module`}),t&2?n:Object.preventExtensions(n)},E0=/* @__PURE__ */ T0({name:()=>O0,rules:()=>k0});const D0=/* @__PURE__ */ `react/button-has-type.react/destructuring-assignment.react/display-name.react/forbid-prop-types.react/forward-ref-uses-ref.react/hook-use-state.react/iframe-missing-sandbox.react/jsx-boolean-value.react/jsx-fragments.react/jsx-key.react/jsx-no-comment-textnodes.react/jsx-no-constructed-context-values.react/jsx-no-leaked-render.react/jsx-no-script-url.react/jsx-no-target-blank.react/jsx-no-useless-fragment.react/jsx-pascal-case.react/no-access-state-in-setstate.react/no-array-index-key.react/no-children-prop.react/no-danger.react/no-danger-with-children.react/no-deprecated.react/no-did-mount-set-state.react/no-did-update-set-state.react/no-direct-mutation-state.react/no-find-dom-node.react/no-namespace.react/no-object-type-as-default-prop.react/no-redundant-should-component-update.react/no-render-return-value.react/no-string-refs.react/no-unknown-property.react/no-unsafe.react/no-unstable-nested-components.react/no-unused-class-component-methods.react/no-unused-state.react/no-will-update-set-state.react/prop-types.react/void-dom-elements-no-children`.split(`.`),O0=`react-x/disable-conflict-eslint-plugin-react`,k0=Object.fromEntries(D0.map(e=>[e,`off`]));var A0=/* @__PURE__ */ T0({name:()=>M0,rules:()=>N0});const j0=[`react-hooks/error-boundaries`,`react-hooks/exhaustive-deps`,`react-hooks/globals`,`react-hooks/immutability`,`react-hooks/purity`,`react-hooks/refs`,`react-hooks/rules-of-hooks`,`react-hooks/set-state-in-effect`,`react-hooks/set-state-in-render`,`react-hooks/static-components`,`react-hooks/unsupported-syntax`,`react-hooks/use-memo`],M0=`react-x/disable-conflict-eslint-plugin-react-hooks`,N0=Object.fromEntries(j0.map(e=>[e,`off`]));var P0=/* @__PURE__ */ T0({name:()=>F0,rules:()=>I0});const F0=`react-x/disable-experimental`,I0={"react-x/globals":`off`,"react-x/immutability":`off`,"react-x/no-duplicate-key":`off`,"react-x/no-implicit-children":`off`,"react-x/no-implicit-key":`off`,"react-x/no-implicit-ref":`off`,"react-x/no-misused-capture-owner-stack":`off`,"react-x/no-unused-props":`off`,"react-x/no-unused-state":`off`,"react-x/refs":`off`,"react-x/set-state-in-render":`off`,"react-x/static-components":`off`};var L0=/* @__PURE__ */ T0({name:()=>R0,rules:()=>z0});const R0=`react-x/disable-type-checked`,z0={"react-x/no-implicit-children":`off`,"react-x/no-implicit-key":`off`,"react-x/no-implicit-ref":`off`,"react-x/no-leaked-conditional-rendering":`off`,"react-x/no-unused-props":`off`};var B0=`eslint-plugin-react-x`,V0=`5.30.6`;function H0(e){return`https://eslint-react.xyz/docs/rules/${e}`}const U0=xX.RuleCreator(H0);var W0=U0({meta:{type:`problem`,docs:{description:`Validates usage of Error Boundaries instead of try/catch for errors in child components.`},messages:{"try-catch-with-use":`Use an Error Boundary instead of try/catch around the 'use' hook. The 'use' hook suspends the component, and its errors can only be caught by Error Boundaries.`,"try-catch-with-jsx":`Use an Error Boundary to catch errors in child components. Try/catch can't catch errors during React's rendering process.`},schema:[]},name:`error-boundaries`,create:G0});function G0(e){if(!e.sourceCode.text.includes(`try`))return{};let t=s1.DoNotIncludeJSXWithNullValue|s1.DoNotIncludeJSXWithNumberValue|s1.DoNotIncludeJSXWithBigIntValue|s1.DoNotIncludeJSXWithStringValue|s1.DoNotIncludeJSXWithBooleanValue|s1.DoNotIncludeJSXWithUndefinedValue|s1.DoNotIncludeJSXWithEmptyArrayValue,n=A1(e),r=j1(e),i=/* @__PURE__ */ new Set,a=/* @__PURE__ */ new Set;return LZ(n.visitor,r.visitor,{CallExpression(t){v$(e,t)&&a.add(t)},"Program:exit"(o){let s=n.api.getAllComponents(o),c=r.api.getAllHooks(o),l=[...s,...c];for(let t of a){let n=uZ.findEnclosingTryBlock(t),r=uZ.findParent(n,e=>l.some(t=>t.node===e));n!=null&&r!=null&&!i.has(n)&&(e.report({messageId:`try-catch-with-use`,node:n}),i.add(n))}for(let{rets:n}of l)for(let r of n){if(r==null||!l1(e,r,t))continue;let n=uZ.findEnclosingTryBlock(r);n!=null&&!i.has(n)&&(e.report({messageId:`try-catch-with-jsx`,node:n}),i.add(n))}}})}const K0={meta:{type:`suggestion`,docs:{description:`Verifies the list of dependencies for Hooks like 'useEffect' and similar.`,recommended:!0,url:`https://github.com/react/react/issues/14920`},fixable:`code`,hasSuggestions:!0,schema:[{type:`object`,additionalProperties:!1,enableDangerousAutofixThisMayCauseInfiniteLoops:!1,properties:{additionalHooks:{type:`string`},enableDangerousAutofixThisMayCauseInfiniteLoops:{type:`boolean`},experimental_autoDependenciesHooks:{type:`array`,items:{type:`string`}},requireExplicitEffectDeps:{type:`boolean`}}}]},create(e){let t=e.options&&e.options[0],n=t&&t.additionalHooks?new RegExp(t.additionalHooks):bX(e).additionalEffectHooks,r=t&&t.enableDangerousAutofixThisMayCauseInfiniteLoops||!1,i={additionalHooks:n,experimental_autoDependenciesHooks:t&&Array.isArray(t.experimental_autoDependenciesHooks)?t.experimental_autoDependenciesHooks:[],enableDangerousAutofixThisMayCauseInfiniteLoops:r,requireExplicitEffectDeps:t&&t.requireExplicitEffectDeps||!1};function a(t){r&&Array.isArray(t.suggest)&&t.suggest.length>0&&t.suggest[0]&&(t.fix=t.suggest[0].fix),e.report(t)}let o=typeof e.getSourceCode==`function`?()=>e.getSourceCode():()=>e.sourceCode,s=typeof e.getScope==`function`?()=>e.getScope():t=>e.sourceCode.getScope(t),c=o().scopeManager,l=/* @__PURE__ */ new WeakMap,u=/* @__PURE__ */ new WeakSet,d=/* @__PURE__ */ new WeakMap,f=/* @__PURE__ */ new WeakMap,p=/* @__PURE__ */ new WeakSet;function m(e,t){return function(n){if(t.has(n))return t.get(n);let r=e(n);return t.set(n,r),r}}function h(e,t,n,r,i,s){i&&e.async&&a({node:e,message:`Effect callbacks are synchronous to prevent race conditions. Put the async function inside:
374
374
 
375
375
  useEffect(() => {
376
376
  async function fetchData() {
@@ -381,8 +381,8 @@ useEffect(() => {
381
381
  fetchData();
382
382
  }, [someId]); // Or [] if effect doesn't need props or state
383
383
 
384
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`});let h=c.acquire(e);if(!h)throw Error(`Unable to acquire scope for the current node. This is a bug in eslint-plugin-react-hooks, please file an issue.`);let g=/* @__PURE__ */ new Set,_=null;{let e=h.upper;for(;e&&(g.add(e),e.type!==`function`&&e.type!==`hook`&&e.type!==`component`);)e=e.upper;if(!e)return;_=e}let v=Array.isArray;function y(e){if(!v(e.defs))return!1;let t=e.defs[0];if(t==null)return!1;let n=t.node;if(n.type!==`VariableDeclarator`)return!1;let r=n.init;if(r==null)return!1;for(;r.type===`TSAsExpression`||r.type===`AsExpression`;)r=r.expression;let i=n.parent;if(i==null&&_!=null&&(t2(_.block,t.node.id),i=t.node.parent,i==null))return!1;if(i!=null&&`kind`in i&&i.kind===`const`&&r.type===`Literal`&&(typeof r.value==`string`||typeof r.value==`number`||r.value===null))return!0;if(r.type!==`CallExpression`)return!1;let a=r.callee;if(a.type===`MemberExpression`&&`name`in a.object&&a.object.name===`React`&&a.property!=null&&!a.computed&&(a=a.property),a.type!==`Identifier`)return!1;let o=t.node.id,{name:s}=a;if(s===`useRef`&&o.type===`Identifier`)return!0;if(o2(a)&&o.type===`Identifier`){for(let t of e.references)t!==o&&p.add(t.identifier);return!0}if(s===`useState`||s===`useReducer`||s===`useActionState`){if(o.type===`ArrayPattern`&&o.elements.length===2&&v(e.identifiers)){if(o.elements[1]===e.identifiers[0]){if(s===`useState`){let t=e.references,n=0;for(let e of t){if(e.isWrite()&&n++,n>1)return!1;l.set(e.identifier,o.elements[0])}}return!0}if(o.elements[0]===e.identifiers[0]){if(s===`useState`){let t=e.references;for(let e of t)u.add(e.identifier)}return!1}}}else if(s===`useTransition`&&o.type===`ArrayPattern`&&o.elements.length===2&&Array.isArray(e.identifiers)&&o.elements[1]===e.identifiers[0])return!0;return!1}function b(e){if(!v(e.defs))return!1;let t=e.defs[0];if(t==null||t.node==null||t.node.id==null)return!1;let n=t.node,r=_?.childScopes||[],i=null;for(let e of r){let t=e.block;if(n.type===`FunctionDeclaration`&&t===n||n.type===`VariableDeclarator`&&t.parent===n){i=e;break}}if(i==null)return!1;for(let e of i.through)if(e.resolved!=null&&g.has(e.resolved.scope)&&!x(e.resolved))return!1;return!0}let x=m(y,d),S=m(b,f),C=/* @__PURE__ */ new Map;function w(t){let n=t.from,r=!1;for(;n!=null&&n.block!==e;)n.type===`function`&&(r=n.block.parent!=null&&n.block.parent.type===`ReturnStatement`),n=n.upper;return r}let T=/* @__PURE__ */ new Map,E=/* @__PURE__ */ new Map;D(h);function D(t){for(let n of t.references){if(!n.resolved||!g.has(n.resolved.scope))continue;let t=t2(e,n.identifier);if(t==null)continue;let r=X0(t),a=Q0(r,E);if(i&&r.type===`Identifier`&&(r.parent?.type===`MemberExpression`||r.parent?.type===`OptionalMemberExpression`)&&!r.parent.computed&&r.parent.property.type===`Identifier`&&r.parent.property.name===`current`&&w(n)&&C.set(a,{reference:n,dependencyNode:r}),r.parent?.type===`TSTypeQuery`||r.parent?.type===`TSTypeReference`)continue;let o=n.resolved.defs[0];if(o!=null&&(o.node==null||o.node.init!==e.parent)&&o.type!==`TypeParameter`&&r.parent?.type!==`GenericTypeAnnotation`){if(T.has(a))T.get(a)?.references.push(n);else{let e=n.resolved,t=x(e)||S(e);T.set(a,{isStable:t,references:[n]})}}}for(let e of t.childScopes)D(e)}C.forEach(({reference:e,dependencyNode:t},n)=>{let r=e.resolved?.references||[],i=!1;for(let e of r){let{identifier:t}=e,{parent:n}=t;if(n!=null&&n.type===`MemberExpression`&&!n.computed&&n.property.type===`Identifier`&&n.property.name===`current`&&n.parent?.type===`AssignmentExpression`&&n.parent.left===n){i=!0;break}}i||a({node:t.parent.property,message:`The ref value '${n}.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React, copy '${n}.current' to a variable inside the effect, and use that variable in the cleanup function.`})});let O=/* @__PURE__ */ new Set;function k(e,t){O.has(t)||(O.add(t),a({node:e,message:`Assignments to the '${t}' variable from inside React Hook ${o().getText(n)} will be lost after each render. To preserve the value over time, store it in a useRef Hook and keep the mutable value in the '.current' property. Otherwise, you can move this variable directly inside ${o().getText(n)}.`}))}let A=/* @__PURE__ */ new Set;if(T.forEach(({isStable:e,references:t},n)=>{e&&A.add(n),t.forEach(e=>{e.writeExpr&&k(e.writeExpr,n)})}),O.size>0)return;if(!t){if(s)return;let t=null;if(T.forEach(({references:n},r)=>{t||n.forEach(n=>{if(t)return;let i=n.identifier;if(!l.has(i))return;let a=n.from;for(;a!=null&&a.type!==`function`;)a=a.upper;a?.block===e&&(t=r)})}),t){let{suggestedDependencies:i}=q0({dependencies:T,declaredDependencies:[],stableDependencies:A,externalDependencies:/* @__PURE__ */ new Set,isEffect:!0});a({node:n,message:`React Hook ${r} contains a call to '${t}'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [`+i.join(`, `)+`] as a second argument to the ${r} Hook.`,suggest:[{desc:`Add dependencies array: [${i.join(`, `)}]`,fix(t){return t.insertTextAfter(e,`, [${i.join(`, `)}]`)}}]})}return}if(s&&t.type===`Literal`&&t.value===null)return;let j=[],M=/* @__PURE__ */ new Set,ee=t.type===`ArrayExpression`,N=t.type===`TSAsExpression`&&t.expression.type===`ArrayExpression`;!ee&&!N?a({node:t,message:`React Hook ${o().getText(n)} was passed a dependency list that is not an array literal. This means we can't statically verify whether you've passed the correct dependencies.`}):(N?t.expression:t).elements.forEach(e=>{if(e===null)return;if(e.type===`SpreadElement`){a({node:e,message:`React Hook ${o().getText(n)} has a spread element in its dependency array. This means we can't statically verify whether you've passed the correct dependencies.`});return}p.has(e)&&a({node:e,message:`Functions returned from \`useEffectEvent\` must not be included in the dependency array. Remove \`${o().getText(e)}\` from the list.`,suggest:[{desc:`Remove the dependency \`${o().getText(e)}\``,fix(t){return t.removeRange(e.range)}}]});let t;try{t=Q0(e,null)}catch(t){if(t instanceof Error&&/Unsupported node type/.test(t.message)){e.type===`Literal`?e.value&&T.has(e.value)?a({node:e,message:`The ${e.raw} literal is not a valid dependency because it never changes. Did you mean to include ${e.value} in the array instead?`}):a({node:e,message:`The ${e.raw} literal is not a valid dependency because it never changes. You can safely remove it.`}):a({node:e,message:`React Hook ${o().getText(n)} has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked.`});return}throw t}let r=e;for(;r.type===`MemberExpression`||r.type===`OptionalMemberExpression`||r.type===`ChainExpression`;)r=r.object||r.expression.object;let i=!_.through.some(e=>e.identifier===r);j.push({key:t,node:e}),i||M.add(t)});let{suggestedDependencies:te,unnecessaryDependencies:P,missingDependencies:F,duplicateDependencies:ne}=q0({dependencies:T,declaredDependencies:j,stableDependencies:A,externalDependencies:M,isEffect:i}),I=te;if(ne.size+F.size+P.size===0){Y0({declaredDependencies:j,declaredDependenciesNode:t,componentScope:_,scope:h}).forEach(({construction:e,isUsedOutsideOfHook:n,depType:i})=>{let o=i===`function`?`useCallback`:`useMemo`,s=i===`function`?`definition`:`initialization`,c=`wrap the ${s} of '${e.name.name}' in its own ${o}() Hook.`,l=n?`To fix this, ${c}`:`Move it inside the ${r} callback. Alternatively, ${c}`,u=i===`conditional`||i===`logical expression`?`could make`:`makes`,d=`The '${e.name.name}' ${i} ${u} the dependencies of ${r} Hook (at line ${t.loc?.start.line}) change on every render. ${l}`,f;n&&e.type===`Variable`&&i===`function`&&(f=[{desc:`Wrap the ${s} of '${e.name.name}' in its own ${o}() Hook.`,fix(t){let[n,r]=o===`useMemo`?[`useMemo(() => { return `,`; })`]:[`useCallback(`,`)`];return[t.insertTextBefore(e.node.init,n),t.insertTextAfter(e.node.init,r)]}}]),a({node:e.node,message:d,suggest:f})});return}!i&&F.size>0&&(I=q0({dependencies:T,declaredDependencies:[],stableDependencies:A,externalDependencies:M,isEffect:i}).suggestedDependencies);function L(){if(j.length===0)return!0;let e=j.map(e=>e.key),t=e.slice().sort();return e.join(`,`)===t.join(`,`)}L()&&I.sort();function R(e){let t=e.split(`.`),n=``;for(let e=0;e<t.length;e++){if(e!==0){let r=t.slice(0,e+1).join(`.`),i=E.get(r)===!0;n+=i?`?.`:`.`}n+=t[e]}return n}function z(e,t,n,r){return e.size===0?null:(e.size>1?``:t+` `)+n+` `+(e.size>1?`dependencies`:`dependency`)+`: `+n2(Array.from(e).sort().map(e=>`'`+R(e)+`'`))+`. Either ${r} ${e.size>1?`them`:`it`} or remove the dependency array.`}let B=``;if(P.size>0){let e=null;if(Array.from(P.keys()).forEach(t=>{e===null&&t.endsWith(`.current`)&&(e=t)}),e!==null)B=` Mutable values like '${e}' aren't valid dependencies because mutating them doesn't re-render the component.`;else if(M.size>0){let e=Array.from(M)[0];h.set.has(e)||(B=` Outer scope values like '${e}' aren't valid dependencies because mutating them doesn't re-render the component.`)}}if(!B&&F.has(`props`)){let e=T.get(`props`);if(e==null)return;let t=e.references;if(!Array.isArray(t))return;let i=!0;for(let e of t){let t=t2(_.block,e.identifier);if(!t){i=!1;break}let n=t.parent;if(n==null||n.type!==`MemberExpression`&&n.type!==`OptionalMemberExpression`){i=!1;break}}i&&(B=` However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the ${r} call and refer to those specific props inside ${o().getText(n)}.`)}if(!B&&F.size>0){let e=null;F.forEach(t=>{if(e)return;let n=_.set.get(t),r=T.get(t);if(!r?.references||r?.references[0]?.resolved!==n)return;let i=n?.defs[0];if(i==null||i.name==null||i.type!==`Parameter`)return;let a=!1,o;for(let e of r.references)if(o=e.identifier,o!=null&&o.parent!=null&&(o.parent.type===`CallExpression`||o.parent.type===`OptionalCallExpression`)&&o.parent.callee===o){a=!0;break}a&&(e=t)}),e!==null&&(B=` If '${e}' changes too often, find the parent component that defines it and wrap that definition in useCallback.`)}if(!B&&F.size>0){let e=null;for(let t of F){if(e!==null)break;let n=T.get(t).references,r,i;for(let a of n){for(r=a.identifier,i=r.parent;i!=null&&i!==_.block;){if(i.type===`CallExpression`){let n=l.get(i.callee);if(n!=null){if(`name`in n&&n.name===t)e={missingDep:t,setter:`name`in i.callee?i.callee.name:``,form:`updater`};else if(u.has(r))e={missingDep:t,setter:`name`in i.callee?i.callee.name:``,form:`reducer`};else{let n=a.resolved;if(n!=null){let r=n.defs[0];r!=null&&r.type===`Parameter`&&(e={missingDep:t,setter:`name`in i.callee?i.callee.name:``,form:`inlineReducer`})}}break}}i=i.parent}if(e!==null)break}}if(e!==null)switch(e.form){case`reducer`:B=` You can also replace multiple useState variables with useReducer if '${e.setter}' needs the current value of '${e.missingDep}'.`;break;case`inlineReducer`:B=` If '${e.setter}' needs the current value of '${e.missingDep}', you can also switch to useReducer instead of useState and read '${e.missingDep}' in the reducer.`;break;case`updater`:B=` You can also do a functional update '${e.setter}(${e.missingDep.slice(0,1)} => ...)' if you only need '${e.missingDep}' in the '${e.setter}' call.`;break;default:throw Error(`Unknown case.`)}}a({node:t,message:`React Hook ${o().getText(n)} has `+(z(F,`a`,`missing`,`include`)||z(P,`an`,`unnecessary`,`exclude`)||z(ne,`a`,`duplicate`,`omit`))+B,suggest:[{desc:`Update the dependencies array to be: [${I.map(R).join(`, `)}]`,fix(e){return e.replaceText(t,`[${I.map(R).join(`, `)}]`)}}]})}function g(e){let t=e2(e.callee,i);if(t===-1)return;let n=e.arguments[t],r=e.callee,o=$0(r),c=`name`in o?o.name:``,l=e.arguments[t+1],u=l&&(l.type!==`Identifier`||l.name!==`undefined`)?l:void 0,d=/Effect($|[^a-z])/g.test(c);if(!n){a({node:r,message:`React Hook ${c} requires an effect callback. Did you forget to pass a callback to the hook?`});return}!l&&d&&i.requireExplicitEffectDeps&&a({node:r,message:`React Hook ${c} always requires dependencies. Please add a dependency array or an explicit \`undefined\``});let f=i.experimental_autoDependenciesHooks.includes(c);if((!u||f&&u.type===`Literal`&&u.value===null)&&!d)(c===`useMemo`||c===`useCallback`)&&a({node:r,message:`React Hook ${c} does nothing when called with only one argument. Did you forget to pass an array of dependencies?`});else{for(;n.type===`TSAsExpression`||n.type===`AsExpression`;)n=n.expression;switch(n.type){case`FunctionExpression`:case`ArrowFunctionExpression`:h(n,u,r,c,d,f);return;case`Identifier`:if(!u||f&&u.type===`Literal`&&u.value===null||`elements`in u&&u.elements&&u.elements.some(e=>e&&e.type===`Identifier`&&e.name===n.name))return;let e=s(n).set.get(n.name);if(e==null||e.defs==null)return;let t=e.defs[0];if(!t||!t.node)break;if(t.type===`Parameter`){a({node:r,message:s2(c)});return}if(t.type!==`Variable`&&t.type!==`FunctionName`)break;switch(t.node.type){case`FunctionDeclaration`:h(t.node,u,r,c,d,f);return;case`VariableDeclarator`:let e=t.node.init;if(!e)break;switch(e.type){case`ArrowFunctionExpression`:case`FunctionExpression`:h(e,u,r,c,d,f);return}}break;default:a({node:r,message:s2(c)});return}a({node:r,message:`React Hook ${c} has a missing dependency: '${n.name}'. Either include it or remove the dependency array.`,suggest:[{desc:`Update the dependencies array to be: [${n.name}]`,fix(e){return e.replaceText(u,`[${n.name}]`)}}]})}}return{CallExpression:g}}};function q0({dependencies:e,declaredDependencies:t,stableDependencies:n,externalDependencies:r,isEffect:i}){let a=o();function o(){return{isUsed:!1,isSatisfiedRecursively:!1,isSubtreeUsed:!1,children:/* @__PURE__ */ new Map}}e.forEach((e,t)=>{let n=s(a,t);n.isUsed=!0,c(a,t,e=>{e.isSubtreeUsed=!0})}),t.forEach(({key:e})=>{let t=s(a,e);t.isSatisfiedRecursively=!0}),n.forEach(e=>{let t=s(a,e);t.isSatisfiedRecursively=!0});function s(e,t){let n=t.split(`.`),r=e;for(let e of n){let t=r.children.get(e);t||(t=o(),r.children.set(e,t)),r=t}return r}function c(e,t,n){let r=t.split(`.`),i=e;for(let e of r){let t=i.children.get(e);if(!t)return;n(t),i=t}}let l=/* @__PURE__ */ new Set,u=/* @__PURE__ */ new Set;d(a,l,u,e=>e);function d(e,t,n,r){e.children.forEach((e,i)=>{let a=r(i);e.isSatisfiedRecursively?e.isSubtreeUsed&&n.add(a):e.isUsed?t.add(a):d(e,t,n,e=>a+`.`+e)})}let f=[],p=/* @__PURE__ */ new Set,m=/* @__PURE__ */ new Set;return t.forEach(({key:e})=>{u.has(e)?f.indexOf(e)===-1?f.push(e):m.add(e):i&&!e.endsWith(`.current`)&&!r.has(e)?f.indexOf(e)===-1&&f.push(e):p.add(e)}),l.forEach(e=>{f.push(e)}),{suggestedDependencies:f,unnecessaryDependencies:p,duplicateDependencies:m,missingDependencies:l}}function J0(e){switch(e.type){case`ObjectExpression`:return`object`;case`ArrayExpression`:return`array`;case`ArrowFunctionExpression`:case`FunctionExpression`:return`function`;case`ClassExpression`:return`class`;case`ConditionalExpression`:return J0(e.consequent)!=null||J0(e.alternate)!=null?`conditional`:null;case`LogicalExpression`:return J0(e.left)!=null||J0(e.right)!=null?`logical expression`:null;case`JSXFragment`:return`JSX fragment`;case`JSXElement`:return`JSX element`;case`AssignmentExpression`:return J0(e.right)==null?null:`assignment expression`;case`NewExpression`:return`object construction`;case`Literal`:return e.value instanceof RegExp?`regular expression`:null;case`TypeCastExpression`:case`AsExpression`:case`TSAsExpression`:return J0(e.expression)}return null}function Y0({declaredDependencies:e,declaredDependenciesNode:t,componentScope:n,scope:r}){let i=e.map(({key:e})=>{let t=n.variables.find(t=>t.name===e);if(t==null)return null;let r=t.defs[0];if(r==null)return null;if(r.type===`Variable`&&r.node.type===`VariableDeclarator`&&r.node.id.type===`Identifier`&&r.node.init!=null){let e=J0(r.node.init);if(e)return[t,e]}return r.type===`FunctionName`&&r.node.type===`FunctionDeclaration`?[t,`function`]:r.type===`ClassName`&&r.node.type===`ClassDeclaration`?[t,`class`]:null}).filter(Boolean);function a(e){let n=!1;for(let i of e.references){if(i.writeExpr){if(n)return!0;n=!0;continue}let e=i.from;for(;e!==r&&e!=null;)e=e.upper;if(e!==r&&!a2(t,i.identifier))return!0}return!1}return i.map(([e,t])=>({construction:e.defs[0],depType:t,isUsedOutsideOfHook:a(e)}))}function X0(e){return e.parent&&(e.parent.type===`MemberExpression`||e.parent.type===`OptionalMemberExpression`)&&e.parent.object===e&&`name`in e.parent.property&&e.parent.property.name!==`current`&&!e.parent.computed&&(e.parent.parent==null||e.parent.parent.type!==`CallExpression`&&e.parent.parent.type!==`OptionalCallExpression`||e.parent.parent.callee!==e.parent)?X0(e.parent):e.type===`MemberExpression`&&e.parent&&e.parent.type===`AssignmentExpression`&&e.parent.left===e?e.object:e}function Z0(e,t,n){t&&(`optional`in e&&e.optional?t.has(n)||t.set(n,!0):t.set(n,!1))}function Q0(e,t){if(e.type===`Identifier`||e.type===`JSXIdentifier`){let n=e.name;return t&&t.set(n,!1),n}if(e.type===`MemberExpression`&&!e.computed||e.type===`OptionalMemberExpression`&&!e.computed){let n=`${Q0(e.object,t)}.${Q0(e.property,null)}`;return Z0(e,t,n),n}if(e.type===`ChainExpression`&&(!(`computed`in e)||!e.computed)){let n=e.expression;if(n.type===`CallExpression`)throw Error(`Unsupported node type: ${n.type}`);let r=`${Q0(n.object,t)}.${Q0(n.property,null)}`;return Z0(n,t,r),r}throw Error(`Unsupported node type: ${e.type}`)}function $0(e){return e.type===`MemberExpression`&&e.object.type===`Identifier`&&e.object.name===`React`&&e.property.type===`Identifier`&&!e.computed?e.property:e}function e2(e,t){let n=$0(e);if(n.type!==`Identifier`)return-1;switch(n.name){case`useEffect`:case`useLayoutEffect`:case`useCallback`:case`useMemo`:return 0;case`useImperativeHandle`:return 1;default:if(n===e&&t&&t.additionalHooks){let e;try{e=Q0(n,null)}catch(e){if(e instanceof Error&&/Unsupported node type/.test(e.message))return 0;throw e}return t.additionalHooks.test(e)?0:-1}return-1}}function t2(e,t){let n=[e],r;for(;n.length;){if(r=n.shift(),i2(r,t))return r;if(a2(r,t))for(let[e,t]of Object.entries(r))e!==`parent`&&(r2(t)?(t.parent=r,n.push(t)):Array.isArray(t)&&t.forEach(e=>{r2(e)&&(e.parent=r,n.push(e))}))}return null}function n2(e){let t=``;for(let n=0;n<e.length;n++)t+=e[n],n===0&&e.length===2?t+=` and `:n===e.length-2&&e.length>2?t+=`, and `:n<e.length-1&&(t+=`, `);return t}function r2(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&`type`in e&&typeof e.type==`string`}function i2(e,t){return(e.type===`Identifier`||e.type===`JSXIdentifier`)&&e.type===t.type&&e.name===t.name&&!!e.range&&!!t.range&&e.range[0]===t.range[0]&&e.range[1]===t.range[1]}function a2(e,t){return!!e.range&&!!t.range&&e.range[0]<=t.range[0]&&e.range[1]>=t.range[1]}function o2(e){return e.type===`Identifier`&&e.name===`useEffectEvent`}function s2(e){return`React Hook ${e} received a function whose dependencies are unknown. Pass an inline function instead.`}const c2=/* @__PURE__ */ new Set([`copyWithin`,`fill`,`pop`,`push`,`reverse`,`shift`,`sort`,`splice`,`unshift`]);function l2(){let e={callEdges:[],methodCalls:[],writes:[]};function t(e){return uZ.findParent(e,Z.isFunction)}function n(n,r){let i=t(n);i!=null&&e.writes.push({enclosingFunction:i,node:n,target:r})}return{facts:e,visitor:{AssignmentExpression(e){for(let t of qQ(e.left))n(e,t)},CallExpression(n){let r=t(n);r!=null&&e.callEdges.push({callee:n.callee,caller:r});let a=Q.unwrap(n.callee);if(a.type!==i.MemberExpression)return;let o=Q.getCalleeName(n);o!=null&&c2.has(o)&&r!=null&&e.methodCalls.push({enclosingFunction:r,method:o,node:n,receiver:a.object})},ForInStatement(e){if(e.left.type!==i.VariableDeclaration)for(let t of qQ(e.left))n(e,t)},ForOfStatement(e){if(e.left.type!==i.VariableDeclaration)for(let t of qQ(e.left))n(e,t)},UnaryExpression(e){if(e.operator!==`delete`)return;let t=Q.unwrap(e.argument);t.type===i.MemberExpression&&n(e,t)},UpdateExpression(e){let t=Q.unwrap(e.argument);(t.type===i.Identifier||t.type===i.MemberExpression)&&n(e,t)}}}}function u2(e,t){let n=(0,wX.findVariable)(e.sourceCode.getScope(t),t);return n==null||n.defs.length===0||n.scope.type===gk.ScopeType.global||n.scope.type===gk.ScopeType.module}function d2(e,t,n=/* @__PURE__ */ new Set){let r=Q.unwrap(t);if(n.has(r))return null;if(n.add(r),r.type===i.MemberExpression)return d2(e,r.object,n);if(!Z.isIdentifier(r))return null;if(u2(e,r))return r;let a=(0,wX.findVariable)(e.sourceCode.getScope(r),r),o=a?.defs.length===1?a.defs[0]:null;if(o?.type!==gk.DefinitionType.Variable||!Z.isIdentifier(o.node.id)||o.node.init==null||o.node.parent.kind!==`const`)return null;let s=Q.unwrap(o.node.init);return s.type!==i.Identifier&&s.type!==i.MemberExpression?null:d2(e,s,n)}function f2(e,t){let n=Q.unwrap(t);if(Z.isFunction(n))return n;if(!Z.isIdentifier(n))return null;let r=e$(e,n),i=r==null?null:Q.unwrap(r);return i!=null&&Z.isFunction(i)?i:null}function p2(e,t){let n=/* @__PURE__ */ new Map;function r(e,t){let r=n.get(e)??[];r.push(t),n.set(e,r)}for(let n of t.writes)if(Z.isIdentifier(n.target)){if(!u2(e,n.target))continue;r(n.enclosingFunction,{kind:`global`,name:n.target.name,method:null,node:n.node})}else d2(e,n.target.object)!=null&&r(n.enclosingFunction,{kind:`property`,name:PZ(e,n.target),method:null,node:n.node});for(let n of t.methodCalls){let t=d2(e,n.receiver);t!=null&&r(n.enclosingFunction,{kind:`method`,name:t.name,method:n.method,node:n.node})}return n}function m2(e,t){let n=/* @__PURE__ */ new Map;for(let r of t){let t=f2(e,r.callee);if(t==null)continue;let i=n.get(r.caller)??/* @__PURE__ */ new Set;i.add(t),n.set(r.caller,i)}return n}function h2(e,t,n){let r=/* @__PURE__ */ new Set,i=/* @__PURE__ */ new Set,a=[];function o(e){if(!r.has(e)){r.add(e);for(let n of t.get(e)??[])i.has(n)||(i.add(n),a.push(n));for(let t of n.get(e)??[])o(t)}}for(let t of e)o(t);return a}var g2=U0({meta:{type:`problem`,docs:{description:`Validates against assignment/mutation of globals during render, part of ensuring that side effects must run outside of render.`},messages:{"mutating-global":`Do not mutate '{{name}}' during render. Global variables exist outside React's control and make rendering impure.`,"mutating-global-array-method":`Do not call '{{method}}()' on '{{name}}' during render. Mutating global arrays during render makes rendering impure.`,"mutating-global-property":`Do not mutate '{{name}}' during render. Modifying global objects during render makes rendering impure.`},schema:[]},name:`globals`,create:_2});function _2(e){let t=j1(e),n=A1(e),r=l2();return LZ(t.visitor,n.visitor,r.visitor,{"Program:exit"(i){let a=[...n.api.getAllComponents(i),...t.api.getAllHooks(i)].map(({node:e})=>e),o=p2(e,r.facts),s=m2(e,r.facts.callEdges);for(let t of h2(a,o,s)){let n=t.method==null?{name:t.name}:{name:t.name,method:t.method};e.report({data:n,messageId:bW(t).with({kind:`global`},()=>`mutating-global`).with({kind:`method`},()=>`mutating-global-array-method`).with({kind:`property`},()=>`mutating-global-property`).exhaustive(),node:t.node})}}})}const v2=/* @__PURE__ */ new Set([`add`,`clear`,`copyWithin`,`delete`,`fill`,`pop`,`push`,`reverse`,`set`,`shift`,`sort`,`splice`,`unshift`]),y2=/* @__PURE__ */ new Set([`useHistory`,`useNavigate`,`useNavigation`,`useRouter`,`useWorld`]);function b2(e,t){return e===t||uZ.hasParent(e,e=>e===t)}function x2(e){return e===`ref`||e.endsWith(`Ref`)}function S2(e){let t=Q.unwrap(e);for(;t.type===i.MemberExpression;){let e=Q.unwrap(t.property);if(Z.isIdentifier(e)&&x2(e.name))return!0;t=Q.unwrap(t.object)}return Z.isIdentifier(t)&&x2(t.name)}function C2(){let e={mutations:[],sinks:[]};function t(t,n,r,i){let a=uZ.findParent(n,Z.isFunction);a!=null&&e.mutations.push({kind:t,enclosingFunction:a,node:n,root:i,target:r})}function n(e,n){let r=Q.unwrap(n);for(;r.type===i.MemberExpression;)r=Q.unwrap(r.object);Z.isIdentifier(r)&&t(`value`,e,n,r)}function r(e,r){Z.isIdentifier(r)?t(`binding`,e,r,r):n(e,r)}return{facts:e,visitor:{AssignmentExpression(e){for(let t of qQ(e.left))r(e,t)},CallExpression(t){let r=Q.unwrap(t.callee);if(r.type===i.MemberExpression){let e=Q.getCalleeName(t);e!=null&&v2.has(e)&&n(t,r.object)}if(w1(t))for(let n of t.arguments)n.type!==i.SpreadElement&&e.sinks.push({kind:`hook-argument`,expression:n})},ForInStatement(e){if(e.left.type!==i.VariableDeclaration)for(let t of qQ(e.left))r(e,t)},ForOfStatement(e){if(e.left.type!==i.VariableDeclaration)for(let t of qQ(e.left))r(e,t)},JSXAttribute(t){if(t.value?.type!==i.JSXExpressionContainer)return;let n=t.value.expression;n.type!==i.JSXEmptyExpression&&e.sinks.push({kind:`jsx-prop`,expression:n})},UnaryExpression(e){if(e.operator!==`delete`)return;let t=Q.unwrap(e.argument);t.type===i.MemberExpression&&n(e,t)},UpdateExpression(e){let r=Q.unwrap(e.argument);switch(r.type){case i.Identifier:t(`binding`,e,r,r);return;case i.MemberExpression:n(e,r);return}}}}}function w2(e,t,n=`alias`,r=/* @__PURE__ */ new Set){if(r.has(t))return t;r.add(t);let a=t.defs.length===1?t.defs[0]:null;if(a?.type!==gk.DefinitionType.Variable||a.node.init==null||n===`binding`&&a.node.id.type===i.Identifier)return t;let o=Q.unwrap(a.node.init);if(!Z.isIdentifier(o))return t;let s=(0,wX.findVariable)(e.sourceCode.getScope(o),o);return s==null?t:w2(e,s,n,r)}function T2(e,t){let n=Q.unwrap(t);if(Z.isFunction(n))return n;if(!Z.isIdentifier(n))return null;let r=e$(e,n),i=r==null?null:Q.unwrap(r);return i!=null&&Z.isFunction(i)?i:null}function E2(e,t){if(e.type!==gk.DefinitionType.Parameter)return!1;let n=e.node;if(!Z.isFunction(n))return!1;let r=n.params.at(0);return r==null||!b2(e.name,r)?!1:t.includes(n)}function D2(e,t){let{additionalStateHooks:n}=bX(e);return E1(t,n)?Q.getCalleeName(t)??`useState`:C$(e,t)?`useReducer`:null}function O2(e,t,n){let r=Q.unwrap(t);for(;r.type===i.MemberExpression;)r=Q.unwrap(r.object);if(!Z.isIdentifier(r))return!1;let a=(0,wX.findVariable)(e.sourceCode.getScope(r),r);if(a==null)return!1;let o=w2(e,a),s=o.defs.length===1?o.defs[0]:null;if(s?.type!==gk.DefinitionType.Variable||s.node.init==null)return!1;let c=Q.unwrap(s.node.init);return c.type===i.CallExpression&&n(c)}function k2(e,t){let{additionalRefHooks:n}=bX(e);return O2(e,t,e=>T1(e,n))}function A2(e,t){return S2(t)||k2(e,t)}function j2(e,t,n,r=`alias`,a=/* @__PURE__ */ new Set){if(a.has(t))return null;a.add(t);let o=w2(e,t,r),s=o.defs.length===1?o.defs[0]:null;if(s==null)return null;if(E2(s,n))return{kind:`props`,name:o.name};if(s.type!==gk.DefinitionType.Variable)return null;if(s.node.init==null){let t=s.node.parent.parent;if(t.type!==i.ForOfStatement||t.left!==s.node.parent)return null;let c=Q.unwrap(t.right);for(;c.type===i.MemberExpression;)c=Q.unwrap(c.object);if(!Z.isIdentifier(c))return null;let l=(0,wX.findVariable)(e.sourceCode.getScope(c),c);if(l==null)return null;let u=j2(e,l,n,r,a);return u==null?null:{kind:`iterator`,name:o.name,original:u.name}}let c=Q.unwrap(s.node.init);switch(c.type){case i.CallExpression:{let t=D2(e,c);if(t==null||s.node.id.type!==i.ArrayPattern)return null;let n=s.node.id.elements.at(0);return n==null||!b2(s.name,n)?null:{kind:`state`,name:o.name,hook:t}}case i.ArrayExpression:case i.ObjectExpression:{let t=c.type===i.ObjectExpression?c.properties:c.elements;for(let s of t){if(s?.type!==i.SpreadElement)continue;let t=Q.unwrap(s.argument);if(!Z.isIdentifier(t))continue;let c=(0,wX.findVariable)(e.sourceCode.getScope(t),t);if(c==null)continue;let l=j2(e,c,n,r,a);if(l!=null)return{kind:`shallow-copy`,name:o.name,original:l.name}}return null}default:return null}}function M2(e){return e.defs.length===0||e.scope.type===gk.ScopeType.global||e.scope.type===gk.ScopeType.module}function N2(e,t){return Z.isIdentifier(t.target)?x2(t.target.name):A2(e,t.target)}function P2(e,t){let n=Q.unwrap(t.callee);return Z.isExpression(n)&&O2(e,n,t=>[...y2].some(n=>n$(n)(e,t)))}function F2(e,t){let n=/* @__PURE__ */ new Map;for(let r of t){if(r.node.type===i.CallExpression&&P2(e,r.node)||N2(e,r))continue;let t=(0,wX.findVariable)(e.sourceCode.getScope(r.root),r.root);if(t==null)continue;let a=r.kind===`binding`?t:w2(e,t);if(M2(a))continue;let o=a.identifiers.at(0)??null,s=o==null?null:uZ.findParent(o,Z.isFunction),c=r.enclosingFunction;for(;c!=null&&s!==c;)n.has(c)||n.set(c,{name:a.name,node:r.node}),c=uZ.findParent(c,Z.isFunction)}return n}function I2(e){let t=Q.unwrap(e.target);return e.node.type===i.CallExpression?t:t.type===i.MemberExpression?Q.unwrap(t.object):t}function L2(e,t,n){let r=[];for(let a of t){if(a.node.type===i.CallExpression&&P2(e,a.node)||N2(e,a))continue;let t=(0,wX.findVariable)(e.sourceCode.getScope(a.root),a.root);if(t==null)continue;let o=j2(e,t,n,a.kind===`binding`?`binding`:`alias`);if(o!=null){if(a.kind===`binding`)switch(o.kind){case`props`:r.push({name:o.name,detail:`It is a prop of this component and must not be reassigned.`,node:a.node});break;case`state`:r.push({name:o.name,detail:`It is a state value returned from '${o.hook}' and must not be reassigned.`,node:a.node})}else switch(o.kind){case`props`:r.push({name:o.name,detail:`It is a prop of this component and must be treated as immutable.`,node:a.node});break;case`state`:r.push({name:o.name,detail:`It is a state value returned from '${o.hook}' and must be treated as immutable.`,node:a.node});break;case`shallow-copy`:if(I2(a).type!==i.MemberExpression)continue;r.push({name:o.name,detail:`It is a shallow copy of '${o.original}'; mutating nested values through it mutates '${o.original}' in place.`,node:a.node});break;case`iterator`:r.push({name:o.name,detail:`It is an element of '${o.original}' and must be treated as immutable.`,node:a.node})}}}return r}var R2=U0({meta:{type:`problem`,docs:{description:`Validates against mutating props, state, and other immutable values, including through functions passed into frozen contexts such as JSX props, hook arguments, and hook return values.`},messages:{"indirect-mutation":`This function may (indirectly) reassign or modify '{{name}}' after render, which can cause inconsistent behavior on subsequent renders. Consider using state instead.`,"mutation-site":`This modifies '{{name}}'.`,"direct-mutation":`Do not mutate '{{name}}' directly. {{detail}}`},schema:[]},name:`immutability`,create:z2});function z2(e){let t=j1(e),n=A1(e),r=C2();return LZ(t.visitor,n.visitor,r.visitor,{"Program:exit"(i){for(let e of t.api.getAllHooks(i))for(let t of e.rets)t!=null&&r.facts.sinks.push({kind:`hook-return`,expression:t});let a=/* @__PURE__ */ new Set,o=F2(e,r.facts.mutations);if(o.size>0){let t=/* @__PURE__ */ new Set;for(let n of r.facts.sinks){let r=n.expression;if(t.has(r))continue;let i=T2(e,r);if(i==null)continue;let s=o.get(i);s!=null&&(t.add(r),a.add(s.node),e.report({data:{name:s.name},messageId:`indirect-mutation`,node:r}),e.report({data:{name:s.name},messageId:`mutation-site`,node:s.node}))}}let s=n.api.getAllComponents(i).map(e=>e.node);for(let t of L2(e,r.facts.mutations,s))a.has(t.node)||(a.add(t.node),e.report({data:{name:t.name,detail:t.detail},messageId:`direct-mutation`,node:t.node}))}})}var B2=U0({meta:{type:`problem`,docs:{description:`Disallows accessing 'this.state' inside 'setState' calls.`},messages:{default:`Do not access 'this.state' within 'setState'. Use the update function instead.`},schema:[]},name:`no-access-state-in-setstate`,create:V2});function V2(e){return e.sourceCode.text.includes(`setState`)?{MemberExpression(t){if(!t$(`this.state`)(e,t))return;let n=uZ.findParent(uZ.findParent(t,e=>Z.isCallExpression(e)&&X$(e)),Z.isClass);n!=null&&F$(n)&&e.report({messageId:`default`,node:t})}}:{}}const H2=/* @__PURE__ */ new Set([`Number`,`String`]),U2=/* @__PURE__ */ new Map([[`every`,1],[`filter`,1],[`find`,1],[`findIndex`,1],[`findLast`,1],[`findLastIndex`,1],[`flatMap`,1],[`forEach`,1],[`map`,1],[`reduce`,2],[`reduceRight`,2],[`some`,1]]);function W2(e,t){let n=(0,wX.findVariable)(e.sourceCode.getScope(t),t)?.defs.at(0);if(n==null||n.type!==gk.DefinitionType.Parameter)return!1;let r=n.node;if(!Z.isOneOf([i.ArrowFunctionExpression,i.FunctionExpression])(r))return!1;let a=r;for(;Z.isTypeExpression(a.parent);)a=a.parent;let o=a.parent;if(o.type!==i.CallExpression)return!1;let s=Q.unwrap(o.callee);if(s.type!==i.MemberExpression||!Z.isIdentifier(s.property))return!1;let c=U2.get(s.property.name);if(c==null)return!1;let l=a$(e,s)||i$(e,s)?1:0;if(o.arguments[l]!==a)return!1;let u=r.params[c];return u!=null&&(u.type===i.AssignmentPattern?u.left:u)===n.name}function G2(e){return Z.isIdentifier(e)?[e]:e.type===i.BinaryExpression?[...G2(e.left),...G2(e.right)]:[]}var K2=U0({meta:{type:`suggestion`,docs:{description:`Disallows using an item's index in the array as its key.`},messages:{default:`Do not use item index in the array as its key.`},schema:[]},name:`no-array-index-key`,create:q2});function q2(e){function t(t){return t!=null&&Z.isIdentifier(t)&&W2(e,t)}function n(t){let n=hQ(e,t);if(n!=null)return n.propsObject;if(!d$(e,t))return null;let r=t.arguments[1];return r?.type===i.ObjectExpression?r:null}function r(e){switch(e.type){case i.Identifier:return t(e)?[{messageId:`default`,node:e}]:[];case i.TemplateLiteral:return e.expressions.filter(t).map(e=>({messageId:`default`,node:e}));case i.BinaryExpression:return G2(e).filter(t).map(e=>({messageId:`default`,node:e}));case i.ConditionalExpression:return[...r(e.consequent),...r(e.alternate)];case i.LogicalExpression:return[...r(e.left),...r(e.right)];case i.CallExpression:{let n=Q.unwrap(e.callee);if(n.type===i.MemberExpression&&Q.getCalleeName(e)===`toString`&&t(n.object))return[{messageId:`default`,node:n.object}];let r=e.arguments.at(0);return n.type===i.Identifier&&H2.has(n.name)&&t(r)?[{messageId:`default`,node:r}]:[]}default:return[]}}return{CallExpression(t){let a=n(t);if(a!=null)for(let t of a.properties){if(t.type!==i.Property||t.computed)continue;let n=Q.unwrap(t.key);if(Z.isIdentifier(n)?n.name!==`key`:n.value!==`key`)continue;let a=t.value;for(let t of r(a))e.report(t)}},"JSXAttribute[name.name='key']"(t){if(t.value?.type===i.JSXExpressionContainer)for(let n of r(t.value.expression))e.report(n)}}}var J2=U0({meta:{type:`suggestion`,docs:{description:`Disallows the use of 'Children.count' from the 'react' package.`},messages:{default:`Using 'Children.count' is uncommon and can lead to fragile code. Use alternatives instead.`},schema:[]},name:`no-children-count`,create:Y2});function Y2(e){return e.sourceCode.text.includes(`Children`)?{MemberExpression(t){r$(e,t)&&e.report({messageId:`default`,node:t.property})}}:{}}var X2=U0({meta:{type:`suggestion`,docs:{description:`Disallows the use of 'Children.forEach' from the 'react' package.`},messages:{default:`Using 'Children.forEach' is uncommon and can lead to fragile code. Use alternatives instead.`},schema:[]},name:`no-children-for-each`,create:Z2});function Z2(e){return e.sourceCode.text.includes(`Children`)?{MemberExpression(t){i$(e,t)&&e.report({messageId:`default`,node:t.property})}}:{}}var Q2=U0({meta:{type:`suggestion`,docs:{description:`Disallows the use of 'Children.map' from the 'react' package.`},messages:{default:`Using 'Children.map' is uncommon and can lead to fragile code. Use alternatives instead.`},schema:[]},name:`no-children-map`,create:$2});function $2(e){return e.sourceCode.text.includes(`Children`)?{MemberExpression(t){a$(e,t)&&e.report({messageId:`default`,node:t.property})}}:{}}var e4=U0({meta:{type:`suggestion`,docs:{description:`Disallows the use of 'Children.only' from the 'react' package.`},messages:{default:`Using 'Children.only' is uncommon and can lead to fragile code. Use alternatives instead.`},schema:[]},name:`no-children-only`,create:t4});function t4(e){return e.sourceCode.text.includes(`Children`)?{MemberExpression(t){o$(e,t)&&e.report({messageId:`default`,node:t.property})}}:{}}var n4=U0({meta:{type:`suggestion`,docs:{description:`Disallows the use of 'Children.toArray' from the 'react' package.`},messages:{default:`Using 'Children.toArray' is uncommon and can lead to fragile code. Use alternatives instead.`},schema:[]},name:`no-children-to-array`,create:r4});function r4(e){return e.sourceCode.text.includes(`Children`)?{MemberExpression(t){s$(e,t)&&e.report({messageId:`default`,node:t.property})}}:{}}const i4=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;e<r;e++)n=t[e](n);return n}}},a4={pipe(){return i4(this,arguments)}};(function(){function e(){}return e.prototype=a4,e})();const o4=function(e,t){if(typeof e==`function`)return function(){return e(arguments)?t.apply(this,arguments):(e=>t(e,...arguments))};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}};o4(2,(e,t)=>n=>t(e(n)));function s4(e,t,n,r,i,a,o,s,c){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return a(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return o(a(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return s(o(a(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return c(s(o(a(i(r(n(t(e.apply(this,arguments)))))))))}}}function c4(e){let t=/* @__PURE__ */ new WeakMap,n=/* @__PURE__ */ new Map;return r=>p4(r)?h4(t,r,()=>e(r)):h4(n,r,()=>e(r))}function l4(e){return t=>!e(t)}o4(2,(e,t)=>n=>e(n)&&t(n));const u4=o4(2,(e,t)=>n=>e(n)||t(n));o4(2,(e,t)=>n=>e(n)!==t(n)),o4(2,(e,t)=>n=>e(n)===t(n)),o4(2,(e,t)=>n=>!e(n)||t(n)),o4(2,(e,t)=>n=>!e(n)&&!t(n)),o4(2,(e,t)=>n=>!e(n)||!t(n));function d4(e){return typeof e==`string`}function f4(e){return typeof e==`function`}function p4(e){return typeof e==`object`&&!!e||f4(e)}const m4=o4(2,(e,t)=>p4(e)&&t in e);function h4(e,t,n){if(e.has(t))return e.get(t);let r=n(t);return e.set(t,r),r}o4(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(i)}),o4(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(0,i)});var Hoe=U0({meta:{type:`suggestion`,docs:{description:`Disallows class components except for error boundaries.`},messages:{default:`Avoid using class components. Use function components instead.`},schema:[]},name:`no-class-component`,create:Uoe});function Uoe(e){if(!e.sourceCode.text.includes(`Component`))return{};let{api:t,visitor:n}=Z$(e);return LZ(n,{"Program:exit"(n){for(let{id:r,node:i}of t.getAllComponents(n)){if(i.body.body.some(u4(R$,q$)))continue;let t=e.sourceCode.getFirstToken(i,{filter:e=>e.value===`class`});e.report({loc:(r??t??i).loc,messageId:`default`,node:i})}}})}var Woe=U0({meta:{type:`suggestion`,docs:{description:`Disallows 'cloneElement'.`},messages:{default:`Using 'cloneElement' is uncommon and can lead to fragile code. Use alternatives instead.`},schema:[]},name:`no-clone-element`,create:Goe});function Goe(e){return e.sourceCode.text.includes(`cloneElement`)?{CallExpression(t){d$(e,t)&&e.report({messageId:`default`,node:t})}}:{}}var Koe=U0({meta:{type:`problem`,docs:{description:`Replaces usage of 'componentWillMount' with 'UNSAFE_componentWillMount'.`},fixable:`code`,messages:{default:`[Deprecated] Use 'UNSAFE_componentWillMount' instead.`},schema:[]},name:`no-component-will-mount`,create:qoe});function qoe(e){if(!e.sourceCode.text.includes(`componentWillMount`))return{};let{api:t,visitor:n}=Z$(e);return LZ(n,{"Program:exit"(n){for(let{node:r}of t.getAllComponents(n)){let{body:t}=r.body;for(let n of t)V$(n)&&e.report({fix(e){return m4(n,`key`)?e.replaceText(n.key,`UNSAFE_componentWillMount`):null},messageId:`default`,node:n})}}})}var Joe=U0({meta:{type:`problem`,docs:{description:`Replaces usage of 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'.`},fixable:`code`,messages:{default:`[Deprecated] Use 'UNSAFE_componentWillReceiveProps' instead.`},schema:[]},name:`no-component-will-receive-props`,create:Yoe});function Yoe(e){if(!e.sourceCode.text.includes(`componentWillReceiveProps`))return{};let{api:t,visitor:n}=Z$(e);return LZ(n,{"Program:exit"(n){for(let{node:r}of t.getAllComponents(n)){let{body:t}=r.body;for(let n of t)H$(n)&&e.report({fix(e){return m4(n,`key`)?e.replaceText(n.key,`UNSAFE_componentWillReceiveProps`):null},messageId:`default`,node:n})}}})}var Xoe=U0({meta:{type:`problem`,docs:{description:`Replaces usage of 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'.`},fixable:`code`,messages:{default:`[Deprecated] Use 'UNSAFE_componentWillUpdate' instead.`},schema:[]},name:`no-component-will-update`,create:Zoe});function Zoe(e){if(!e.sourceCode.text.includes(`componentWillUpdate`))return{};let{api:t,visitor:n}=Z$(e);return LZ(n,{"Program:exit"(n){for(let{node:r}of t.getAllComponents(n)){let{body:t}=r.body;for(let n of t)U$(n)&&e.report({fix(e){return m4(n,`key`)?e.replaceText(n.key,`UNSAFE_componentWillUpdate`):null},messageId:`default`,node:n})}}})}var Qoe=U0({meta:{type:`suggestion`,docs:{description:`Replaces usage of '<Context.Provider>' with '<Context>'.`},fixable:`code`,hasSuggestions:!0,messages:{default:`In React 19, you can render '<Context>' as a provider instead of '<Context.Provider>'.`,suggest:`Replace '<Context.Provider>' with '<Context>'.`},schema:[]},name:`no-context-provider`,create:$oe});function $oe(e){if(!e.sourceCode.text.includes(`Provider`))return{};let{version:t}=bX(e);return(0,s0.compare)(t,`19.0.0`,`<`)?{}:{JSXElement(t){let n=bQ(t).split(`.`),r=n.pop(),i=n.join(`.`),a=n.pop();r===`Provider`&&a!=null&&a.endsWith(`Context`)&&e.report({messageId:`default`,node:t,suggest:[{fix(e){if(!g1(a))return null;let n=t.openingElement,r=t.closingElement;return r==null?e.replaceText(n.name,i):[e.replaceText(n.name,i),e.replaceText(r.name,i)]},messageId:`suggest`}]})}}}var ese=U0({meta:{type:`suggestion`,docs:{description:`Disallows 'createRef' in function components and Hooks.`},messages:{default:`Use 'useRef' instead of 'createRef' in function components and Hooks.`},schema:[]},name:`no-create-ref`,create:tse});function tse(e){if(!e.sourceCode.text.includes(`createRef`))return{};let t=A1(e),n=j1(e),r=/* @__PURE__ */ new Set;return LZ(t.visitor,n.visitor,{CallExpression(t){m$(e,t)&&r.add(t)},"Program:exit"(i){let a=t.api.getAllComponents(i),o=n.api.getAllHooks(i),s=[...a,...o];for(let t of r)uZ.hasParent(t,e=>s.some(t=>t.node===e))&&e.report({messageId:`default`,node:t})}})}var nse=U0({meta:{type:`problem`,docs:{description:`Disallows direct mutation of 'this.state'.`},messages:{default:`Do not mutate state directly. Use 'setState()' instead.`},schema:[]},name:`no-direct-mutation-state`,create:rse});function rse(e){return e.sourceCode.text.includes(`Component`)?{AssignmentExpression(t){if(!ase(t))return;let n=uZ.findParent(t,Z.isClass);if(n==null||!F$(n))return;let r=uZ.findParent(t,ise);uZ.findParent(t,Z.isFunctionOrClass)!==r&&e.report({messageId:`default`,node:t})}}:{}}function ise(e){return Z.isOneOf([i.FunctionDeclaration,i.FunctionExpression])(e)&&Z.isPropertyOrMethod(e.parent)&&Z.isIdentifier(e.parent.key,`constructor`)}function ase(e){let{left:t}=e,n=Q.unwrap(t);for(;n.type===i.MemberExpression;){let e=Q.unwrap(n.object),t=n.property;if(e.type===i.ThisExpression&&Z.isIdentifier(t,`state`))return!0;n=e}return!1}function ose(e,t){let n=e,r=!1;for(;;){let e=n.parent;if(e==null)return!1;if(e===t)return r?!0:e.type===i.ArrowFunctionExpression&&e.body===n;if(Z.isTypeOrChainExpression(e)||e.type===i.LogicalExpression)n=e;else switch(e.type){case i.ConditionalExpression:if(e.test===n)return!1;n=e;continue;case i.SequenceExpression:if(e.expressions[e.expressions.length-1]!==n)return!1;n=e;continue;case i.ReturnStatement:r=!0,n=e;continue;case i.BlockStatement:case i.IfStatement:if(!r)return!1;n=e;continue;default:return!1}}}function sse(e,t){if(t.type===i.JSXElement)return!1;let n=t.parent;for(;n!=null;){if(u$(e,n)||l$(e,n))return!0;switch(n.type){case i.ArrayExpression:case i.ConditionalExpression:case i.JSXExpressionContainer:case i.JSXFragment:case i.LogicalExpression:case i.SpreadElement:n=n.parent;continue;default:if(Z.isTypeOrChainExpression(n)){n=n.parent;continue}return!1}}return!1}function cse(e){let t=Q.unwrap(e.callee);if(t.type!==i.MemberExpression)return!1;let n=Q.unwrap(t.object);return n.type===i.ArrayExpression&&n.elements.length<=1&&!n.elements.some(e=>e?.type===i.SpreadElement)}function lse(e,t){let n=e.value,r=t.value;return n==null||r==null?!1:cZ.isEqual(n,r)}function use(e){let{value:t}=e;if(t==null||t.type===i.Literal)return!0;if(t.type!==i.JSXExpressionContainer)return!1;let n=Q.unwrap(t.expression);return n.type===i.Literal?n.value!=null:n.type===i.TemplateLiteral&&n.expressions.length===0}var dse=U0({meta:{type:`problem`,docs:{description:`Prevents duplicate 'key' props on sibling elements when rendering lists.`},messages:{default:`The 'key' prop must be unique to its sibling elements.`},schema:[]},name:`no-duplicate-key`,create:fse});function fse(e){if(!/\bkey\b/u.test(e.sourceCode.text))return{};let t=/* @__PURE__ */ new Map;function n(e){let n=t.get(e);return n??(n={keys:[]},t.set(e,n)),n}function r(t,r){if(sse(e,t))return;let i=n(t),a=!1;for(let e of i.keys)lse(e.node,r)&&(e.duplicate=!0,a=!0);i.keys.push({duplicate:a,node:r})}function a(e,t){n(e).keys.push({duplicate:use(t),node:t})}return{"JSXAttribute[name.name='key']"(t){let n=t.parent.parent;switch(n.parent.type){case i.ArrayExpression:case i.JSXElement:case i.JSXFragment:r(n.parent,t);return;default:{let r=uZ.findParent(n,e=>{if(e.type!==i.CallExpression)return!1;let t=Q.unwrap(e.callee);return t.type===i.MemberExpression&&Z.isIdentifier(t.property,`map`)});if(r==null||a$(e,r.callee)||s$(e,r.callee))return;let o=r.arguments[0];if(o==null)return;let s=Q.unwrap(o);if(!Z.isFunction(s)||!ose(n,s)||cse(r))return;a(r,t)}}},"Program:exit"(){for(let{keys:n}of t.values())for(let{duplicate:t,node:r}of n)t&&e.report({messageId:`default`,node:r})}}}var pse=U0({meta:{type:`suggestion`,docs:{description:`Replaces usage of 'forwardRef' with passing 'ref' as a prop.`},fixable:`code`,hasSuggestions:!0,messages:{default:`In React 19, 'forwardRef' is no longer necessary. Pass 'ref' as a prop instead.`,suggest:`Replace 'forwardRef' with passing 'ref' as a prop.`},schema:[]},name:`no-forward-ref`,create:mse});function mse(e){if(!e.sourceCode.text.includes(`forwardRef`))return{};let{version:t}=bX(e);return(0,s0.compare)(t,`19.0.0`,`<`)?{}:{CallExpression(t){if(!h$(e,t))return;let n=Q$(t),r=hse(e,t)?[{fix:gse(e,t),messageId:`suggest`}]:[];e.report({messageId:`default`,node:n??t,suggest:r})}}}function hse(e,t){let{importSource:n}=bX(e),r=e.sourceCode.getScope(t),a=Q.unwrap(t.callee);switch(a.type){case i.Identifier:return WQ(a.name,r,n);case i.MemberExpression:return Z.isIdentifier(a.object)&&WQ(a.object.name,r,n);default:return!1}}function gse(e,t){return n=>{let[r]=t.arguments;return r==null||!Z.isFunction(r)?[]:[n.removeRange([t.range[0],r.range[0]]),n.removeRange([r.range[1],t.range[1]]),..._se(e,n,r,t.typeArguments?.params??[])]}}function _se(e,t,n,r){let[a,o]=n.params,[s,c]=r;if(a==null){let r=e.sourceCode.getFirstToken(n,{filter:e=>e.value===`(`});if(r==null||s==null||c==null)return[];let i=PZ(e,s),a=PZ(e,c);return[t.insertTextAfter(r,`{ ref }: ${a} & { ref?: React.RefObject<${i} | null> }`)]}let l=bW(a).with({type:i.Identifier},e=>`...${e.name}`).with({type:i.ObjectPattern},t=>t.properties.map(PZ(e)).join(`, `)).otherwise(()=>null),u=bW(o).with(vW.nullish,()=>`ref`).with({type:i.Identifier,name:`ref`},()=>`ref`).with({type:i.Identifier,name:vW.string},e=>`ref: ${e.name}`).otherwise(()=>null);if(l==null||u==null)return[];if(s==null||c==null)return[t.replaceText(a,[`{`,u+`,`,l,`}`].join(` `)),...o==null?[]:[t.remove(o),t.removeRange([a.range[1],o.range[0]])]];let d=PZ(e,s),f=PZ(e,c);return[t.replaceText(a,[`{`,u+`,`,l,`}:`,f,`&`,`{`,`ref?:`,`React.RefObject<${d} | null>`,`}`].join(` `)),...o==null?[]:[t.remove(o),t.removeRange([a.range[1],o.range[0]])]]}function g4(e,t){let{name:n,isAllowedProp:r,isAllowedType:i,onImplicitProp:a}=t,o=xX.getParserServices(e,!1),s=o.program.getTypeChecker(),c=e=>a0(s,e).toLowerCase();return{JSXSpreadAttribute(e){for(let t of f0(IZ(o,e.argument))){let o=t.getProperty(n);if(o==null||r(c(o)))continue;let l=s.getTypeOfSymbol(o),u=l.aliasSymbol??l.symbol;u!=null&&i(c(u))||a(e)}}}}const vse=/react\.(reactnode|reactelement|reactportal)$/i;var yse=U0({meta:{type:`problem`,docs:{description:`Prevents implicitly passing the 'children' prop to components.`},messages:{default:`This spread attribute implicitly passes the 'children' prop to a component, this could lead to unexpected behavior. If you intend to pass the 'children' prop, use 'children={value}'.`},schema:[]},name:`no-implicit-children`,create:bse});function bse(e){return e.sourceCode.text.includes(`...`)?g4(e,{name:`children`,isAllowedProp:e=>e.endsWith(`attributes.children`)||e.endsWith(`propswithchildren.children`),isAllowedType:e=>vse.test(e)||e===`jsx.element`,onImplicitProp(t){e.report({messageId:`default`,node:t})}}):{}}var xse=U0({meta:{type:`problem`,docs:{description:`Prevents implicitly passing the 'key' prop to components.`},messages:{default:`This spread attribute implicitly passes the 'key' prop to a component, this could lead to unexpected behavior. If you intend to pass the 'key' prop, use 'key={value}'.`},schema:[]},name:`no-implicit-key`,create:Sse});function Sse(e){return e.sourceCode.text.includes(`...`)?g4(e,{name:`key`,isAllowedProp:e=>e.endsWith(`react.attributes.key`),isAllowedType:e=>e.endsWith(`react.key`),onImplicitProp(t){e.report({messageId:`default`,node:t})}}):{}}const Cse=/react\.(ref|legacyref|refcallback|refobject)$/i;var wse=U0({meta:{type:`problem`,docs:{description:`Prevents implicitly passing the 'ref' prop to components.`},messages:{default:`This spread attribute implicitly passes the 'ref' prop to a component, this could lead to unexpected behavior. If you intend to pass the 'ref' prop, use 'ref={value}'.`},schema:[]},name:`no-implicit-ref`,create:Tse});function Tse(e){return e.sourceCode.text.includes(`...`)?g4(e,{name:`ref`,isAllowedProp:e=>e.endsWith(`attributes.ref`),isAllowedType:e=>Cse.test(e),onImplicitProp(t){e.report({messageId:`default`,node:t})}}):{}}var Ese=U0({meta:{type:`problem`,docs:{description:`Prevents problematic leaked values from being rendered.`},messages:{default:`Potential leaked value {{value}} that might cause unintentionally rendered values or rendering crashes.`},schema:[]},name:`no-leaked-conditional-rendering`,create:Dse});function Dse(e){if(!e.sourceCode.text.includes(`&&`))return{};let{version:t}=bX(e),n=[`any`,`boolean`,`nullish`,`object`,`enum`,`falsy boolean`,`truthy bigint`,`truthy boolean`,`truthy number`,`truthy string`,...(0,s0.compare)(t,`18.0.0`,`<`)?[]:[`string`,`falsy string`]],r=xX.getParserServices(e,!1);function a(t,o=/* @__PURE__ */ new Set){return t==null?null:Z.isJSXExpressionContainer(t)?a(t.expression,o):Z.isJSX(t)?null:Z.isTypeExpression(t)?a(t.expression,o):bW(t).with({type:i.LogicalExpression,operator:`&&`},({left:t,right:s})=>{if(t.type===i.UnaryExpression&&t.operator===`!`)return a(s,o);let c=e.sourceCode.getScope(t);if(Z.isIdentifier(t,`NaN`)||(0,wX.getStaticValue)(t,c)?.value===`NaN`)return{data:{value:PZ(e,t)},messageId:`default`,node:t};let l=o0(f0(IZ(r,t)));return Array.from(l.values()).every(e=>n.some(t=>t===e))?a(s,o):{data:{value:PZ(e,t)},messageId:`default`,node:t}}).with({type:i.ConditionalExpression},({alternate:e,consequent:t})=>a(t,o)??a(e,o)).with({type:i.Identifier},t=>o.has(t.name)?null:(o.add(t.name),bW((0,wX.findVariable)(e.sourceCode.getScope(t),t.name)?.defs.at(0)?.node).with({init:vW.select({type:vW.not(i.VariableDeclaration)})},e=>a(e,o)).otherwise(()=>null))).otherwise(()=>null)}return{JSXExpressionContainer:s4(a,FZ(e))}}var Ose=U0({meta:{type:`suggestion`,docs:{description:`Enforces that anonymous components wrapped in 'memo' or 'forwardRef' have a 'displayName' that can be used in DevTools.`},messages:{default:`Add missing 'displayName' for component.`},schema:[]},name:`no-missing-component-display-name`,create:kse});function kse(e){if(!e.sourceCode.text.includes(`memo`)&&!e.sourceCode.text.includes(`forwardRef`))return{};let{api:t,visitor:n}=A1(e,{collectDisplayName:!0,hint:y1});return LZ(n,{"Program:exit"(n){for(let{displayName:r,flag:i,node:a}of t.getAllComponents(n)){let t=Q$(a),n=(i&(u1.ForwardRef|u1.Memo))>0n;t==null&&n&&(r??e.report({messageId:`default`,node:a}))}}})}var Ase=U0({meta:{type:`suggestion`,docs:{description:`Enforces that all contexts have a 'displayName' that can be used in DevTools.`},fixable:`code`,messages:{default:`Add missing 'displayName' for context.`},schema:[]},name:`no-missing-context-display-name`,create:jse});function jse(e){if(!e.sourceCode.text.includes(`createContext`))return{};let t=[],n=[];return{CallExpression(n){f$(e,n)&&t.push(n)},[o1](e){n.push(e)},"Program:exit"(){for(let r of t){let t=YQ(r);t==null?e.report({messageId:`default`,node:r}):n.some(n=>{let r=n.left;if(r.type!==i.MemberExpression)return!1;let a=r.object;return BQ(e,t,a)})||e.report({fix(n){if(t.type!==i.Identifier||t.parent!==r.parent)return[];let a=t.parent.parent;if(a==null||a.type!==i.VariableDeclaration)return[];switch(a.parent.type){case i.BlockStatement:case i.ExportNamedDeclaration:case i.Program:case i.StaticBlock:case i.SwitchCase:case i.TSModuleBlock:break;default:return[]}let o=e.sourceCode.getLastToken(a);return o==null?[]:n.insertTextAfter(o,[`
385
- `,t.name,`.`,`displayName`,` `,`=`,` `,JSON.stringify(t.name),`;`].join(``))},messageId:`default`,node:t})}}}}const Mse=/* @__PURE__ */ new Map([[`flatMap`,0],[`from`,1],[`map`,0]]);var Nse=U0({meta:{type:`problem`,docs:{description:`Disallows missing 'key' on items in list rendering.`},messages:{default:`Missing 'key' for element when rendering list.`,"unexpected-fragment-syntax":"Use fragment component instead of '<>' because it does not support `key`."},schema:[]},name:`no-missing-key`,create:Pse});function Pse(e){let t=0;function n(e){if(Z.isTypeOrChainExpression(e))return n(e.expression);switch(e.type){case i.JSXElement:return ZZ(e,`key`)||e.openingElement.attributes.some(e=>e.type===i.JSXSpreadAttribute)?[]:[{messageId:`default`,node:e}];case i.JSXFragment:return[{messageId:`unexpected-fragment-syntax`,node:e}];case i.ConditionalExpression:return[...n(e.consequent),...n(e.alternate)];case i.LogicalExpression:return[...n(e.left),...n(e.right)];default:return[]}}function r(e){return _Z.getReturnExpressions(e).flatMap(n)}return{ArrayExpression(r){if(!(t>0)){for(let t of r.elements)if(t!=null&&t.type!==i.SpreadElement)for(let r of n(t))e.report(r)}},CallExpression(n){let a=n;if(u$(e,n)){t+=1;return}if(t>0)return;let o=Q.unwrap(a.callee);if(o.type!==i.MemberExpression||!Z.isIdentifier(o.property))return;let s=Mse.get(o.property.name);if(s==null)return;let c=a.arguments[s];if(c==null)return;let l=Q.unwrap(c);if(Z.isFunction(l))for(let t of r(l))e.report(t)},"CallExpression:exit"(n){u$(e,n)&&--t}}}function _4(e,t){return t!=null&&t$(`process.env.NODE_ENV`)(e,t)}function Fse(e,t,n,r){if(t==null||t.type!==i.BinaryExpression||t.operator!==n)return!1;let a=tW({type:i.Literal,value:vW.string});return _4(e,t.left)&&a(t.right)?t.right.value===r:a(t.left)&&_4(e,t.right)?t.left.value===r:!1}function Ise(e,t){return t.type===i.IfStatement&&Fse(e,t.test,`!==`,`production`)}var Lse=U0({meta:{type:`problem`,docs:{description:`Prevents incorrect usage of 'captureOwnerStack'.`},messages:{"missing-development-only-check":`Don't call 'captureOwnerStack' directly. Use 'if (process.env.NODE_ENV !== "production") {...}' to conditionally access it.`,"use-namespace-import":`Don't use named imports of 'captureOwnerStack' in files that are bundled for development and production. Use a namespace import instead.`},schema:[]},name:`no-misused-capture-owner-stack`,create:Rse});function Rse(e){if(!e.sourceCode.text.includes(`captureOwnerStack`))return{};let{importSource:t}=bX(e);return{CallExpression(t){c$(e,t)&&(uZ.hasParent(t,t=>Ise(e,t))||e.report({messageId:`missing-development-only-check`,node:t}))},ImportDeclaration(n){if(n.source.value===t)for(let t of n.specifiers)t.type===i.ImportSpecifier&&Z.isIdentifier(t.imported,`captureOwnerStack`)&&e.report({messageId:`use-namespace-import`,node:t})}}}const zse=n$(`connect`),Bse=n$(`createFragmentContainer`),Vse=n$(`createPaginationContainer`),Hse=n$(`createRefetchContainer`),Use=n$(`forwardRef`),Wse=n$(`graphql`),Gse=n$(`memo`),Kse=n$(`observer`),qse=n$(`useCallback`),Jse=n$(`withFormik`),Yse=n$(`withHandlers`),Xse=n$(`withLifecycle`),Zse=n$(`withProps`),Qse=n$(`withRouter`),$se=n$(`withState`);function ece(e,t,n){return Q.unwrap(t.callee)!==n&&(t=tce(t),!!(zse(e,t)||Bse(e,t)||Vse(e,t)||Hse(e,t)||Use(e,t)||Wse(e,t)||Gse(e,t)||Kse(e,t)||qse(e,t)||Jse(e,t)||Yse(e,t)||Xse(e,t)||Zse(e,t)||Qse(e,t)||$se(e,t)))}function tce(e){let t=e,n=Q.unwrap(t.callee);for(;n.type===i.CallExpression;)t=n,n=Q.unwrap(t.callee);return t}function nce(e,t){let n=t,r=n.parent;for(;Z.isTypeExpression(r);)n=r,r=r.parent;for(;r.type===i.CallExpression&&ece(e,r,n);)for(n=r,r=r.parent;Z.isTypeExpression(r);)n=r,r=r.parent;return r.type!==i.VariableDeclarator||!Z.isIdentifier(r.id)?null:r.id.name}function rce(e){return e.parent.type===i.JSXAttribute||XZ(e,e=>e.value?.type===i.JSXExpressionContainer)!=null}function ice(e){return uZ.hasParent(e,e=>J$(e)&&F$(e.parent.parent))}var ace=U0({meta:{type:`problem`,docs:{description:`Disallows nesting component definitions inside other components.`},messages:{default:`Do not nest component definitions inside other components or props. {{suggestion}}`},schema:[]},name:`no-nested-component-definitions`,create:oce});function oce(e){let t=A1(e,{hint:v1.DoNotIncludeJSXWithNumberValue|v1.DoNotIncludeJSXWithBooleanValue|v1.DoNotIncludeJSXWithNullValue|v1.DoNotIncludeJSXWithStringValue|v1.DoNotIncludeJSXWithUndefinedValue|v1.RequireBothSidesOfLogicalExpressionToBeJSX|v1.RequireBothBranchesOfConditionalExpressionToBeJSX|v1.DoNotIncludeFunctionDefinedAsArrayPatternElement|v1.DoNotIncludeFunctionDefinedAsArrayExpressionElement|v1.DoNotIncludeFunctionDefinedAsArrayMapCallback|v1.DoNotIncludeFunctionDefinedAsArrayFlatMapCallback}),n=Z$(e);return LZ(t.visitor,n.visitor,{"Program:exit"(r){let a=[...t.api.getAllComponents(r)],o=[...n.api.getAllComponents(r)],s=new Set(a.map(e=>e.node)),c=new Set(o.map(e=>e.node));function l(e){return uZ.findParent(e,e=>Z.isFunction(e)?s.has(e):Z.isClass(e)?c.has(e):!1)}for(let{name:t,node:n}of a)t??=nce(e,n),t!=null&&g1(t)&&(rce(n)||yQ(e,n)?e.report({data:{suggestion:`Move it to the top level or pass it as a prop.`},messageId:`default`,node:n}):l(n)==null?ice(n)&&e.report({data:{suggestion:`Move it to the top level.`},messageId:`default`,node:n}):e.report({data:{suggestion:n.parent.type===i.Property?`Move it to the top level or pass it as a prop.`:`Move it to the top level.`},messageId:`default`,node:n}));for(let{node:t}of o)l(t)!=null&&e.report({data:{suggestion:t.parent.type===i.Property?`Move it to the top level or pass it as a prop.`:`Move it to the top level.`},messageId:`default`,node:t})}})}var sce=U0({meta:{type:`problem`,docs:{description:`Disallows declaring lazy components that wrap dynamic imports inside other components or hooks.`},messages:{default:`Do not declare lazy components that wrap dynamic imports inside other components or hooks. Instead, always declare them at the top level of your module.`},schema:[]},name:`no-nested-lazy-component-declarations`,create:cce});function cce(e){if(!e.sourceCode.text.includes(`lazy`))return{};let t=A1(e),n=Z$(e),r=j1(e),i=/* @__PURE__ */ new Set;return LZ(t.visitor,n.visitor,r.visitor,{ImportExpression(t){let n=uZ.findParent(t,g$(e));n!=null&&i.add(n)},"Program:exit"(a){let o=[...t.api.getAllComponents(a),...r.api.getAllHooks(a),...n.api.getAllComponents(a)];for(let t of i)uZ.hasParent(t,e=>o.some(t=>t.node===e))&&e.report({messageId:`default`,node:t})}})}var lce=U0({meta:{type:`problem`,docs:{description:`Disallows calling 'this.setState' in 'componentDidMount' outside functions such as callbacks.`},messages:{default:"Do not call `this.setState` in `componentDidMount` outside functions such as callbacks."},schema:[]},name:`no-set-state-in-component-did-mount`,create:uce});function uce(e){return e.sourceCode.text.includes(`componentDidMount`)?{CallExpression(t){if(!X$(t))return;let n=uZ.findParent(t,F$);if(n==null)return;let r=uZ.findParent(t,z$,e=>e===n);if(r==null)return;let i=r.value==null?null:Q.unwrap(r.value);r.parent===n.body&&i!=null&&i===uZ.findParent(t,Z.isFunctionOrClass)&&e.report({messageId:`default`,node:t})}}:{}}var dce=U0({meta:{type:`problem`,docs:{description:`Disallows calling 'this.setState' in 'componentDidUpdate' outside functions such as callbacks.`},messages:{default:"Do not call `this.setState` in `componentDidUpdate` outside functions such as callbacks."},schema:[]},name:`no-set-state-in-component-did-update`,create:fce});function fce(e){return e.sourceCode.text.includes(`componentDidUpdate`)?{CallExpression(t){if(!X$(t))return;let n=uZ.findParent(t,F$);if(n==null)return;let r=uZ.findParent(t,B$,e=>e===n);if(r==null)return;let i=r.value==null?null:Q.unwrap(r.value);r.parent===n.body&&i!=null&&i===uZ.findParent(t,Z.isFunctionOrClass)&&e.report({messageId:`default`,node:t})}}:{}}var pce=U0({meta:{type:`problem`,docs:{description:`Disallows calling 'this.setState' in 'componentWillUpdate' outside functions such as callbacks.`},messages:{default:"Do not call `this.setState` in `componentWillUpdate` outside functions such as callbacks."},schema:[]},name:`no-set-state-in-component-will-update`,create:mce});function mce(e){return e.sourceCode.text.includes(`componentWillUpdate`)?{CallExpression(t){if(!X$(t))return;let n=uZ.findParent(t,F$);if(n==null)return;let r=uZ.findParent(t,U$,e=>e===n);if(r==null)return;let i=r.value==null?null:Q.unwrap(r.value);r.parent===n.body&&i!=null&&i===uZ.findParent(t,Z.isFunctionOrClass)&&e.report({messageId:`default`,node:t})}}:{}}const hce=[`use`,`useMDXComponents`];function gce(e,t){return e.sourceCode.getCommentsInside(t).some(({value:e})=>/use\([\s\S]*?\)/u.test(e)||/use[A-Z0-9]\w*\([\s\S]*?\)/u.test(e))}function _ce(e){if(e==null||e.type!==i.CallExpression)return!1;let{callee:t}=e;return t.type===i.MemberExpression?Z.isIdentifier(t.object)&&Z.isIdentifier(t.property,`mock`)?!0:Z.isIdentifier(t.object,`mock`)&&Z.isIdentifier(t.property,`module`):!1}function vce(e){return uZ.findParent(e,t=>_ce(t)?t.arguments.slice(1).some(t=>t.range[0]<=e.range[0]&&e.range[1]<=t.range[1]):!1)!=null}var yce=U0({meta:{type:`problem`,docs:{description:`Enforces that a function with the 'use' prefix uses at least one Hook inside it.`},messages:{default:`If your function doesn't call any Hooks, avoid the 'use' prefix. Instead, write it as a regular function without the 'use' prefix.`},schema:[]},name:`no-unnecessary-use-prefix`,create:bce});function bce(e){let{api:t,visitor:n}=j1(e);return LZ(n,{"Program:exit"(n){for(let{id:r,name:i,hookCalls:a,node:o}of t.getAllHooks(n))i!=null&&(a.length>0||r1(o)||hce.includes(i)||gce(e,o)||vce(o)||e.report({messageId:`default`,node:r??o}))}})}var xce=U0({meta:{type:`problem`,docs:{description:`Warns about the use of 'UNSAFE_componentWillMount' in class components.`},messages:{default:`Do not use 'UNSAFE_componentWillMount'.`},schema:[]},name:`no-unsafe-component-will-mount`,create:Sce});function Sce(e){if(!e.sourceCode.text.includes(`UNSAFE_componentWillMount`))return{};let{api:t,visitor:n}=Z$(e);return LZ(n,{"Program:exit"(n){for(let{node:r}of t.getAllComponents(n)){let{body:t}=r.body;for(let n of t)W$(n)&&e.report({messageId:`default`,node:n})}}})}var Cce=U0({meta:{type:`problem`,docs:{description:`Warns about the use of 'UNSAFE_componentWillReceiveProps' in class components.`},messages:{default:`Do not use 'UNSAFE_componentWillReceiveProps'.`},schema:[]},name:`no-unsafe-component-will-receive-props`,create:wce});function wce(e){if(!e.sourceCode.text.includes(`UNSAFE_componentWillReceiveProps`))return{};let{api:t,visitor:n}=Z$(e);return LZ(n,{"Program:exit"(n){for(let{node:r}of t.getAllComponents(n)){let{body:t}=r.body;for(let n of t)G$(n)&&e.report({messageId:`default`,node:n})}}})}var Tce=U0({meta:{type:`problem`,docs:{description:`Warns about the use of 'UNSAFE_componentWillUpdate' in class components.`},messages:{default:`Do not use 'UNSAFE_componentWillUpdate'.`},schema:[]},name:`no-unsafe-component-will-update`,create:Ece});function Ece(e){if(!e.sourceCode.text.includes(`UNSAFE_componentWillUpdate`))return{};let{api:t,visitor:n}=Z$(e);return LZ(n,{"Program:exit"(n){for(let{node:r}of t.getAllComponents(n)){let{body:t}=r.body;for(let n of t)K$(n)&&e.report({messageId:`default`,node:n})}}})}function Dce(e,t){return e===`Provider`?!0:t?!1:e.endsWith(`Context`)||e.endsWith(`CONTEXT`)}function Oce(e){return e.type===i.Literal?m4(e,`regex`)?`regexp literal`:e.value===null?`null literal`:`${typeof e.value} literal`:h0(S0(e.type,` `))}var kce=U0({meta:{type:`problem`,docs:{description:`Prevents non-stable values (i.e., object literals) from being used as a value for 'Context.Provider' or the '<Context>' shorthand in React 19 and above.`},messages:{"unstable-context-value":`A/an '{{kind}}' passed as the value prop to the context provider should not be constructed. It will change on every render. {{suggestion}}`},schema:[]},name:`no-unstable-context-value`,create:Ace});function Ace(e){let{compilationMode:t,version:n}=bX(e);if(t===`infer`||t===`all`||t===`annotation`&&e.sourceCode.ast.body.some(e=>Z.isDirective(e,`use memo`)))return{};let r=(0,s0.compare)(n,`19.0.0`,`<`),{api:a,visitor:o}=A1(e),s=/* @__PURE__ */ new WeakMap;return LZ(o,{JSXOpeningElement(n){let a=SQ(n.parent);if(a===``||!Dce(a,r))return;let o=uZ.findParent(n,Z.isFunction);if(o==null||t===`annotation`&&a1(o,`use memo`))return;let c=n.attributes.findLast(qZ(`value`));if(c?.type!==i.JSXAttribute||c.value?.type!==i.JSXExpressionContainer)return;let l=ZQ(e,c.value.expression);l!=null&&(l.node.type===i.CallExpression&&w1(l.node)||h4(s,o,()=>[]).push(l))},"Program:exit"(n){for(let{directives:r,node:i}of a.getAllComponents(n))if(!(t===`annotation`&&r.some(e=>e.directive===`use memo`)))for(let t of s.get(i)??[]){let{kind:n,node:r}=t,i=n===`function`?`Consider wrapping it in a useCallback hook.`:`Consider wrapping it in a useMemo hook.`;e.report({data:{kind:Oce(r),suggestion:i},messageId:`unstable-context-value`,node:r})}}})}function jce(e){return e.type===i.Literal?m4(e,`regex`)?`regexp literal`:e.value===null?`null literal`:`${typeof e.value} literal`:h0(S0(e.type,` `))}var Mce=U0({meta:{type:`problem`,defaultOptions:[{}],docs:{description:`Prevents using referential-type values as default props in object destructuring.`},messages:{default:`A/an '{{kind}}' as default prop. This could lead to potential infinite render loop in React. Use a variable instead of '{{kind}}'.`},schema:[{type:`object`,additionalProperties:!1,properties:{safeDefaultProps:{type:`array`,description:`Property names or patterns that are safe to use as default props.`,items:{type:`string`}}}}]},name:`no-unstable-default-props`,create:Nce});function Nce(e){let t=(e.options[0]??{}).safeDefaultProps??[],{compilationMode:n}=bX(e);if(n===`infer`||n===`all`||n===`annotation`&&e.sourceCode.ast.body.some(e=>Z.isDirective(e,`use memo`)))return{};let{api:r,visitor:a}=A1(e),o=/* @__PURE__ */ new WeakMap,s=t.map(e=>fX(e));return LZ(a,{"VariableDeclarator[id.type='ObjectPattern'][init.type='Identifier']"(e){let t=uZ.findParent(e,Z.isFunction);t!=null&&h4(o,t,()=>[]).push(e)},"Program:exit"(t){for(let{node:n}of r.getAllComponents(t)){let{params:t}=n,[r]=t;if(r==null)continue;let a=bW(r).with({type:i.ObjectPattern},({properties:e})=>e).with({type:i.Identifier},({name:e})=>o.get(n)?.filter(t=>t.init.name===e).flatMap(e=>e.id.properties)??[]).otherwise(()=>[]);for(let t of a){if(t.type!==i.Property||!Z.isObjectPatternElementDefault(t.value))continue;let{value:n}=t,{right:r}=n,a=ZQ(e,n);if(a!=null&&!(a.node.type===i.CallExpression&&w1(a.node))){if(s.length>0){let e=e=>Z.isIdentifier(e)?e.name:null,t=bW(r).with({type:i.NewExpression},t=>e(t.callee)).with({type:i.CallExpression},t=>bW(Q.unwrap(t.callee)).when(Z.isIdentifier,({name:e})=>e).when(Z.isMemberExpression,({object:t})=>e(t)).otherwise(()=>null)).otherwise(()=>null);if(t!=null&&s.some(e=>e.test(t)))continue}e.report({data:{kind:jce(r)},messageId:`default`,node:r})}}}}})}const Pce=/* @__PURE__ */ new Set([`componentDidCatch`,`componentDidMount`,`componentDidUpdate`,`componentWillMount`,`componentWillReceiveProps`,`componentWillUnmount`,`componentWillUpdate`,`constructor`,`getSnapshotBeforeUpdate`,`render`,`shouldComponentUpdate`,`state`,`UNSAFE_componentWillMount`,`UNSAFE_componentWillReceiveProps`,`UNSAFE_componentWillUpdate`]),Fce=/* @__PURE__ */ new Set([`blur`,`focus`,`measure`,`measureInWindow`,`measureLayout`,`setNativeProps`]);function Ice(e){switch(e.parent.type){case i.ExportDefaultDeclaration:case i.ExportNamedDeclaration:return!0;case i.VariableDeclarator:return e.parent.parent.parent.type===i.ExportNamedDeclaration;default:return!1}}function Lce(e){switch(e.type){case i.MethodDefinition:return e.accessibility==null||e.accessibility===`public`;case i.PropertyDefinition:return(e.accessibility==null||e.accessibility===`public`)&&e.value!=null&&Z.isOneOf([i.ArrowFunctionExpression,i.FunctionExpression])(e.value);default:return!1}}var Rce=U0({meta:{type:`suggestion`,docs:{description:`Warns about unused class component methods and properties.`},messages:{default:`Unused method or property '{{methodName}}' of class '{{className}}'.`},schema:[]},name:`no-unused-class-component-members`,create:zce});function zce(e){if(!e.sourceCode.text.includes(`Component`))return{};let t=/* @__PURE__ */ new WeakMap,n=/* @__PURE__ */ new WeakMap,r=/* @__PURE__ */ new WeakMap;function a(e,t){let n=Q.unwrap(e);return!t&&Z.isIdentifier(n)?n.name:n.type===i.Literal&&typeof n.value==`string`?n.value:n.type===i.TemplateLiteral&&n.expressions.length===0?n.quasis[0]?.value.cooked??n.quasis[0]?.value.raw??null:null}function o(i){if(!F$(i))return;let a=w$(i),o=t.get(i);if(o==null)return;let s=r.get(i),c=Ice(i),l=n.get(i);for(let[t,n]of o){if(s?.has(t)??!1)continue;let r=t===`shouldComponentUpdate`&&I$(i);Pce.has(t)&&!r||Fce.has(t)||c&&(l?.has(t)??!1)||e.report({data:{className:a==null?`Component`:PZ(e,a),methodName:t},messageId:`default`,node:n})}}function s(e){let r=uZ.findParent(e,Z.isClass);if(r==null||!F$(r)||e.static||e.computed||!Z.isIdentifier(e.key))return;let i=e.key.name,a=h4(t,r,()=>/* @__PURE__ */ new Map);a.has(i)||a.set(i,e.key),Lce(e)&&h4(n,r,()=>/* @__PURE__ */ new Set).add(i)}return{"ClassDeclaration:exit":o,"ClassExpression:exit":o,MemberExpression(e){let n=uZ.findParent(e,Z.isClass),o=uZ.findParent(e,Z.isPropertyOrMethod);if(n==null||o==null||!F$(n)||o.static||e.object.type!==i.ThisExpression)return;if(e.parent.type===i.AssignmentExpression&&e.parent.left===e){if(!e.computed&&Z.isIdentifier(e.property)){let r=h4(t,n,()=>/* @__PURE__ */ new Map);r.has(e.property.name)||r.set(e.property.name,e.property)}return}let s=a(e.property,e.computed);s!=null&&h4(r,n,()=>/* @__PURE__ */ new Set).add(s)},MethodDefinition:s,PropertyDefinition:s,VariableDeclarator(e){let t=uZ.findParent(e,Z.isClass),n=uZ.findParent(e,Z.isPropertyOrMethod);if(t!=null&&n!=null&&F$(t)&&!n.static&&e.init!=null&&e.init.type===i.ThisExpression&&e.id.type===i.ObjectPattern)for(let n of e.id.properties){if(n.type!==i.Property)continue;let e=a(n.key,n.computed);e!=null&&h4(r,t,()=>/* @__PURE__ */ new Set).add(e)}}}}function v4(e,t,n){switch(n.type){case i.Identifier:return b4(e,t,n);case i.ObjectPattern:return y4(e,t,n);case i.AssignmentPattern:return v4(e,t,n.left);default:return!1}}function y4(e,t,n){for(let r of n.properties)switch(r.type){case i.Property:{let e=x4(r.key,r.computed);if(e==null)return!1;t.add(e);break}case i.RestElement:if(!Bce(e,t,r))return!1}return!0}function Bce(e,t,n){switch(n.argument.type){case i.Identifier:return b4(e,t,n.argument);default:return!1}}function b4(e,t,n){let r=e.sourceCode.getScope(n).variables.find(e=>e.name===n.name);if(r==null)return!1;for(let i of r.references)if(i.identifier!==n&&!Vce(e,t,i))return!1;return!0}function Vce(e,t,n){let r=n.identifier;for(;Z.isTypeExpression(r.parent)||r.parent.type===i.ChainExpression;)r=r.parent;let a=r.parent;switch(a.type){case i.MemberExpression:if(a.object===r){let e=x4(a.property,a.computed);return e!=null&&(t.add(e),!0)}break;case i.VariableDeclarator:if(a.init!==r)break;if(a.id.type===i.ObjectPattern)return y4(e,t,a.id);if(a.id.type===i.Identifier)return b4(e,t,a.id)}return!1}function x4(e,t=!1){switch(e.type){case i.Identifier:return t?null:e.name;case i.Literal:if(d4(e.value))return e.value;break;case i.TemplateLiteral:if(e.expressions.length===0&&e.quasis.length===1)return e.quasis[0]?.value.cooked??null}return null}var Hce=U0({meta:{type:`suggestion`,docs:{description:`Warns about component props that are defined but never used.`},messages:{default:"Prop `{{name}}` is declared but never used"},schema:[]},name:`no-unused-props`,create:Uce});function Uce(e){let t=xX.getParserServices(e,!1),n=t.program.getTypeChecker(),{api:r,visitor:i}=A1(e);return LZ(i,{"Program:exit"(i){let a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Set;for(let s of r.getAllComponents(i)){let[r]=s.node.params;if(r==null)continue;let i=t.esTreeNodeToTSNodeMap.get(r),c=n.getTypeAtLocation(i).getProperties(),l=/* @__PURE__ */ new Set,u=v4(e,l,r);for(let e of c){let t=e.getDeclarations()?.[0];t!=null&&(a.has(t)||a.set(t,e),(!u||l.has(e.name))&&o.add(t))}}for(let[n,r]of a.entries())o.has(n)||Wce(e,t,r)}})}function Wce(e,t,n){let r=n.getDeclarations()?.[0];if(r==null)return;let a=t.tsNodeToESTreeNodeMap.get(r);if(a==null)return;let o=a.type===i.TSPropertySignature?a.key:a;e.report({data:{name:n.name},messageId:`default`,node:o})}var Gce=U0({meta:{type:`problem`,docs:{description:`Warns about state variables that are defined but never used.`},messages:{default:`State variable '{{name}}' is defined but never used.`},schema:[]},name:`no-unused-state`,create:Kce});function Kce(e){let{additionalStateHooks:t}=bX(e),n=[];return{CallExpression(e){if(!E1(e,t))return;let{parent:r}=e;if(r.type!==i.VariableDeclarator||r.id.type!==i.ArrayPattern)return;let[a]=r.id.elements;a?.type===i.Identifier&&n.push({name:a.name,node:a})},"Program:exit"(){for(let{name:t,node:r}of n){let n=e.sourceCode.getScope(r),i=(0,wX.findVariable)(n,t);if(i==null)continue;let a=!1;for(let e of i.references)if(!e.isWrite()&&e.identifier!==r){a=!0;break}a||e.report({data:{name:t},messageId:`default`,node:r})}}}}var qce=U0({meta:{type:`suggestion`,docs:{description:`Replaces usage of 'useContext' with 'use'.`},fixable:`code`,hasSuggestions:!0,messages:{default:`In React 19, 'use' is preferred over 'useContext' because it is more flexible.`,suggest:`Replace 'useContext' with 'use'.`},schema:[]},name:`no-use-context`,create:Jce});function Jce(e){if(!e.sourceCode.text.includes(`useContext`))return{};let{version:t}=bX(e);return(0,s0.compare)(t,`19.0.0`,`<`)?{}:{CallExpression(t){b$(e,t)&&e.report({messageId:`default`,node:t.callee,suggest:[{fix(e){switch(t.callee.type){case i.Identifier:return e.replaceText(t.callee,`use`);case i.MemberExpression:return e.replaceText(t.callee.property,`use`)}return null},messageId:`suggest`}]})}}}const S4=/* @__PURE__ */ new Map([[`Atomics`,/* @__PURE__ */ new Set([`add`,`and`,`compareExchange`,`exchange`,`load`,`notify`,`or`,`store`,`sub`,`wait`,`waitAsync`,`xor`])],[`caches`,/* @__PURE__ */ new Set([`delete`,`has`,`keys`,`match`,`open`])],[`clipboard`,/* @__PURE__ */ new Set([`read`,`readText`,`write`,`writeText`])],[`cookieStore`,/* @__PURE__ */ new Set([`delete`,`get`,`getAll`,`set`])],[`crypto`,/* @__PURE__ */ new Set([`getRandomValues`,`randomUUID`])],[`Date`,/* @__PURE__ */ new Set([`now`])],[`document`,/* @__PURE__ */ new Set(/* @__PURE__ */ `adoptNode.append.close.createAttribute.createAttributeNS.createCDATASection.createComment.createDocumentFragment.createDocumentType.createElement.createElementNS.createEvent.createNodeIterator.createProcessingInstruction.createRange.createTextNode.createTreeWalker.elementFromPoint.elementsFromPoint.execCommand.exitFullscreen.exitPictureInPicture.exitPointerLock.getAnimations.getElementById.getElementsByClassName.getElementsByName.getElementsByTagName.getElementsByTagNameNS.getSelection.hasFocus.importNode.open.prepend.querySelector.querySelectorAll.replaceChildren.requestStorageAccess.startViewTransition.write.writeln`.split(`.`))],[`globalThis`,/* @__PURE__ */ new Set(/* @__PURE__ */ `addEventListener.alert.blur.cancelAnimationFrame.cancelIdleCallback.clearInterval.clearTimeout.close.confirm.Date.dispatchEvent.fetch.focus.getComputedStyle.getSelection.matchMedia.moveBy.moveTo.open.postMessage.print.prompt.queueMicrotask.removeEventListener.reportError.requestAnimationFrame.requestIdleCallback.resizeBy.resizeTo.scroll.scrollBy.scrollTo.setInterval.setTimeout.stop.structuredClone`.split(`.`))],[`history`,/* @__PURE__ */ new Set([`back`,`forward`,`go`,`pushState`,`replaceState`])],[`indexedDB`,/* @__PURE__ */ new Set([`databases`,`deleteDatabase`,`open`])],[`localStorage`,/* @__PURE__ */ new Set([`clear`,`getItem`,`key`,`removeItem`,`setItem`])],[`location`,/* @__PURE__ */ new Set([`assign`,`reload`,`replace`])],[`Math`,/* @__PURE__ */ new Set([`random`])],[`navigation`,/* @__PURE__ */ new Set([`back`,`forward`,`navigate`,`reload`,`traverseTo`,`updateCurrentEntry`])],[`navigator`,/* @__PURE__ */ new Set([`canShare`,`getBattery`,`getGamepads`,`getUserMedia`,`javaEnabled`,`registerProtocolHandler`,`requestMediaKeySystemAccess`,`requestMIDIAccess`,`sendBeacon`,`share`,`vibrate`])],[`Notification`,/* @__PURE__ */ new Set([`requestPermission`])],[`Object`,/* @__PURE__ */ new Set([`assign`,`defineProperties`,`defineProperty`,`freeze`,`preventExtensions`,`seal`,`setPrototypeOf`])],[`performance`,/* @__PURE__ */ new Set([`clearMarks`,`clearMeasures`,`getEntries`,`getEntriesByName`,`getEntriesByType`,`mark`,`measure`,`now`])],[`process`,/* @__PURE__ */ new Set([`abort`,`chdir`,`cpuUsage`,`emitWarning`,`exit`,`hrtime`,`kill`,`memoryUsage`,`nextTick`,`send`,`stderr`,`stdout`])],[`Reflect`,/* @__PURE__ */ new Set([`defineProperty`,`deleteProperty`,`preventExtensions`,`set`,`setPrototypeOf`])],[`scheduler`,/* @__PURE__ */ new Set([`postTask`,`yield`])],[`sessionStorage`,/* @__PURE__ */ new Set([`clear`,`getItem`,`key`,`removeItem`,`setItem`])],[`URL`,/* @__PURE__ */ new Set([`createObjectURL`,`revokeObjectURL`])],[`window`,/* @__PURE__ */ new Set(/* @__PURE__ */ `addEventListener.alert.blur.cancelAnimationFrame.cancelIdleCallback.clearInterval.clearTimeout.close.confirm.Date.dispatchEvent.fetch.focus.getComputedStyle.getSelection.matchMedia.moveBy.moveTo.open.postMessage.print.prompt.queueMicrotask.removeEventListener.reportError.requestAnimationFrame.requestIdleCallback.resizeBy.resizeTo.scroll.scrollBy.scrollTo.setInterval.setTimeout.stop.structuredClone`.split(`.`))]]),Yce=/* @__PURE__ */ new Set([`Audio`,`AudioContext`,`BroadcastChannel`,`Date`,`EventSource`,`FileReader`,`Image`,`IntersectionObserver`,`MediaRecorder`,`MediaSource`,`MediaStream`,`MessageChannel`,`MutationObserver`,`Notification`,`OfflineAudioContext`,`PerformanceObserver`,`ReportingObserver`,`ResizeObserver`,`RTCPeerConnection`,`SharedWorker`,`WebSocket`,`Worker`,`XMLHttpRequest`]),Xce=/* @__PURE__ */ new Map([[`Array`,/* @__PURE__ */ new Set([`from`,`isArray`,`of`])],[`Atomics`,/* @__PURE__ */ new Set([`isLockFree`])],[`BigInt`,/* @__PURE__ */ new Set([`asIntN`,`asUintN`])],[`Date`,/* @__PURE__ */ new Set([`parse`,`UTC`])],[`globalThis`,/* @__PURE__ */ new Set([`atob`,`Boolean`,`btoa`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`isFinite`,`isNaN`,`Number`,`parseFloat`,`parseInt`,`String`,`unescape`])],[`JSON`,/* @__PURE__ */ new Set([`parse`,`stringify`])],[`Math`,/* @__PURE__ */ new Set(/* @__PURE__ */ `abs.acos.acosh.asin.asinh.atan.atan2.atanh.cbrt.ceil.clz32.cos.cosh.exp.expm1.floor.fround.hypot.imul.log.log1p.log2.log10.max.min.pow.round.sign.sin.sinh.sqrt.tan.tanh.trunc`.split(`.`))],[`Number`,/* @__PURE__ */ new Set([`isFinite`,`isInteger`,`isNaN`,`isSafeInteger`,`parseFloat`,`parseInt`])],[`Object`,/* @__PURE__ */ new Set([`entries`,`fromEntries`,`getOwnPropertyDescriptor`,`getOwnPropertyDescriptors`,`getOwnPropertyNames`,`getOwnPropertySymbols`,`getPrototypeOf`,`groupBy`,`hasOwn`,`is`,`isExtensible`,`isFrozen`,`isSealed`,`keys`,`values`])],[`Reflect`,/* @__PURE__ */ new Set([`apply`,`construct`,`get`,`getOwnPropertyDescriptor`,`getPrototypeOf`,`has`,`isExtensible`,`ownKeys`])],[`String`,/* @__PURE__ */ new Set([`fromCharCode`,`fromCodePoint`,`raw`])]]);function C4(e){return S4.has(e)||Xce.has(e)}function Zce(e){return e.body.some(e=>e.type===i.ExpressionStatement&&e.directive===`use client`)}function Qce(e,t){for(let n of e.properties){if(n.type!==i.Property||(n.value.type===i.AssignmentPattern?n.value.left:n.value)!==t)continue;let e=Q.unwrap(n.key);return!n.computed&&Z.isIdentifier(e)?e.name:e.type===i.Literal&&typeof e.value==`string`?e.value:e.type===i.TemplateLiteral&&e.expressions.length===0?e.quasis[0]?.value.cooked??e.quasis[0]?.value.raw??null:null}return null}function w4(e,t,n=/* @__PURE__ */ new Set){let r=Q.unwrap(t),a=[];for(let e=r;e.type===i.MemberExpression;e=Q.unwrap(e.object)){if(e.computed)return null;a.unshift(Q.unwrap(e.property)),r=Q.unwrap(e.object)}if(!Z.isIdentifier(r)||a.length===0||!a.every(e=>Z.isIdentifier(e)))return null;let o=T4(e,r,n);if(o==null)return null;let s=o.property??o.object,c=a.map(e=>e.name);if(C4(s))for(let e of c.slice(0,-1)){if(!C4(e))return null;s=e}return{object:s,property:c.at(-1)??null}}function T4(e,t,n=/* @__PURE__ */ new Set){if(n.has(t.name))return null;n.add(t.name);let r=e.sourceCode.getScope(t),a=(0,wX.findVariable)(r,t);if(a==null)return{object:t.name,property:null};let o=a.defs[0];if(o==null||o.type===gk.DefinitionType.ImplicitGlobalVariable)return{object:t.name,property:null};if(o.type===gk.DefinitionType.Variable&&o.node.init!=null){let t=Q.unwrap(o.node.init),r=Z.isIdentifier(t)?T4(e,t,n):t.type===i.MemberExpression?w4(e,t,n):null;if(r==null)return null;if(o.node.id.type===i.ObjectPattern){let e=Qce(o.node.id,o.name);return e==null?null:{object:r.property??r.object,property:e}}return o.node.id.type===i.ArrayPattern?null:r}return null}var $ce=U0({meta:{type:`problem`,docs:{description:`Validates that components and hooks are pure by checking that they do not call known-impure functions or construct known-impure objects during render.`},messages:{default:`Do not call '{{name}}' during render. Components and hooks must be pure. Move this call into an event handler, effect, or state initializer.`},schema:[]},name:`purity`,create:ele});function ele(e){let t=j1(e),n=A1(e),r=[],a=[];return LZ(t.visitor,n.visitor,{CallExpression(t){let n=Q.unwrap(t.callee);switch(!0){case Z.isIdentifier(n):{let i=T4(e,n);if(i==null||!(i.property==null?S4.get(`globalThis`)?.has(i.object)??!1:S4.get(i.object)?.has(i.property)??!1))return;let a=uZ.findParent(t,Z.isFunction);if(a==null)return;r.push({func:a,node:t});break}case n.type===i.MemberExpression&&Z.isIdentifier(n.property):{let i=w4(e,n);if(i==null||i.property==null||!S4.get(i.object)?.has(i.property))return;let a=uZ.findParent(t,Z.isFunction);if(a==null)return;r.push({func:a,node:t});break}}},NewExpression(t){let n=Q.unwrap(t.callee);if(!Z.isIdentifier(n))return;let r=T4(e,n);if(r==null)return;let i=r.property!=null&&C4(r.object)?r.property:r.object;if(!Yce.has(i)||i===`Date`&&t.arguments.length>0)return;let o=uZ.findParent(t,Z.isFunction);o!=null&&a.push({func:o,node:t})},"Program:exit"(i){let o=n.api.getAllComponents(i),s=t.api.getAllHooks(i),c=[...o,...s],l=Zce(i);for(let{func:t,node:n}of[...r,...a])c.some(e=>e.node===t)&&(!l&&t.async&&o.some(e=>e.node===t)||e.report({data:{name:PZ(e,n)},messageId:`default`,node:n}))}})}const tle=/* @__PURE__ */ new Set([`every`,`filter`,`find`,`findIndex`,`findLast`,`findLastIndex`,`flatMap`,`forEach`,`map`,`reduce`,`reduceRight`,`some`,`sort`]);function E4(e){return Z.isOneOf([i.ArrowFunctionExpression,i.FunctionExpression])(e)}function D4(e){return e===`ref`||e.endsWith(`Ref`)}function nle(e){let t=Q.unwrap(e.callee),n=Q.getCalleeName(e);if(n==null)return[];if(t.type===i.MemberExpression&&tle.has(n))return[0];switch(n){case`useMemo`:case`useState`:return[0];case`useReducer`:return[0,2];default:return[]}}function rle(e,t,n){let r=e.parent;for(;r!=null&&r!==t;){if(Z.isFunction(r)&&!n.has(r))return!1;r=r.parent}return r===t}function ile(e){let t=e.parent;for(;Z.isTypeExpression(t);)t=t.parent;let n=t.type===i.AssignmentExpression?t.left===e||Q.unwrap(t.left)===e:t.type===i.UpdateExpression||t.type===i.UnaryExpression&&t.operator===`delete`?t.argument===e||Q.unwrap(t.argument)===e:!1;return{isInitializationWrite:t.type===i.AssignmentExpression&&t.operator===`=`&&(t.left===e||Q.unwrap(t.left)===e),isWrite:n||ole(e)||ale(e),node:e}}function ale(e){let t=e,n=e.parent;for(;;){switch(n.type){case i.MemberExpression:if(n.object!==t&&Q.unwrap(n.object)!==t)return!1;break;case i.Property:if(n.value!==t)return!1;break;case i.ObjectPattern:case i.ArrayPattern:case i.RestElement:break;case i.AssignmentPattern:if(n.left!==t)return!1;break;case i.AssignmentExpression:return n.operator===`=`&&n.left===t;case i.ForInStatement:case i.ForOfStatement:return n.left===t;default:return!1}t=n,n=n.parent}}function ole(e){let t=e,n=!1;for(;;){let e=t.parent;for(;Z.isTypeExpression(e);)e=e.parent;if(e.type===i.MemberExpression&&(e.object===t||Q.unwrap(e.object)===t))t=e,n=!0;else return n?e.type===i.AssignmentExpression?e.left===t||Q.unwrap(e.left)===t:e.type===i.UpdateExpression||e.type===i.UnaryExpression&&e.operator===`delete`?e.argument===t||Q.unwrap(e.argument)===t:!1:!1}}function O4(e,t,n){let r=Q.unwrap(e);if(r.type===i.UnaryExpression&&r.operator===`!`){let e=Q.unwrap(r.argument);if(e.type!==i.BinaryExpression)return null;let a=O4(e,t,n);return a===`consequent`?`alternate`:a===`alternate`?`consequent`:null}if(r.type!==i.BinaryExpression||!/^(===|==|!==|!=)$/.test(r.operator))return null;let a=(e,r)=>t(Q.unwrap(e))&&n(Q.unwrap(r));return!a(r.left,r.right)&&!a(r.right,r.left)?null:r.operator===`===`||r.operator===`==`?`consequent`:`alternate`}function sle(e,t){let n=e;for(;Z.isTypeExpression(n.parent);)n=n.parent;return n.parent.type===i.BinaryExpression&&(n=n.parent),n.parent.type===i.UnaryExpression&&n.parent.operator===`!`&&(n=n.parent),n.parent.type===i.IfStatement&&n.parent.test===n&&t(n.parent.test)!=null}function cle(e,t){let n=e,r=e.parent;for(;r!=null&&!Z.isFunction(r);){if(r.type===i.IfStatement){let e=r.consequent===n?`consequent`:r.alternate===n?`alternate`:null,i=t(r.test);if(e!=null&&i!=null)return{inNullBranch:e===i}}n=r,r=r.parent}return null}function lle(e,t){let n=e;for(;n.parent?.type!==i.BlockStatement;){if(n.parent==null||Z.isFunction(n.parent))return!1;n=n.parent}let r=n.parent,a=r.body.findIndex(e=>e===n);for(let e=a-1;e>=0;e--){let n=r.body[e];if(n?.type!==i.IfStatement)continue;let a=t(n.test);if(a==null)continue;let o=a===`alternate`?n.consequent:n.alternate;return o!=null&&DZ.isUnconditionallyTerminating(o)}return!1}function ule(){let e={bindings:[],callEdges:[],jsxRefs:[],passSites:[],refAccesses:[]};return{facts:e,visitor:{AssignmentExpression(t){if(t.operator!==`=`)return;let n=Q.unwrap(t.left);if(Z.isIdentifier(n)){e.bindings.push({id:n,kind:`identifier`,position:t.range[0],value:t.right});return}if(n.type!==i.MemberExpression||!Z.isIdentifier(n.property))return;let r=Q.unwrap(n.object);Z.isIdentifier(r)&&e.bindings.push({kind:`member`,object:r,position:t.range[0],property:n.property.name,value:t.right})},CallExpression(t){let n=uZ.findParent(t,Z.isFunction);n!=null&&(e.callEdges.push({caller:n,node:t}),e.passSites.push({caller:n,node:t}))},FunctionDeclaration(t){t.id!=null&&e.bindings.push({id:t.id,kind:`function`,node:t,position:-1})},JSXAttribute(t){if(t.name.type!==i.JSXIdentifier||t.name.name!==`ref`||t.value?.type!==i.JSXExpressionContainer)return;let n=Q.unwrap(t.value.expression);Z.isIdentifier(n)&&e.jsxRefs.push(n)},MemberExpression(t){if(!Z.isIdentifier(t.property,`current`))return;let n=uZ.findParent(t,Z.isFunction);n!=null&&e.refAccesses.push({...ile(t),enclosingFunction:n})},NewExpression(t){let n=uZ.findParent(t,Z.isFunction);n!=null&&e.passSites.push({caller:n,node:t})},TaggedTemplateExpression(t){let n=uZ.findParent(t,Z.isFunction);n!=null&&e.passSites.push({caller:n,node:t})},VariableDeclarator(t){Z.isIdentifier(t.id)&&t.init!=null&&e.bindings.push({id:t.id,kind:`identifier`,position:t.range[0],value:t.init})}}}}function k4(e,t){return uZ.findParent(e,e=>Z.isFunction(e)&&t.has(e))}function A4(e,t){return t.has(e)?e:k4(e,t)}function j4(e,t,n){let r=n.get(t);return r!=null&&rle(e,t,r)}function dle(e,t,n){let r=/* @__PURE__ */ new Map;for(let a of t){let t=A4(a.caller,e);if(t==null)continue;let o=[n(a.node.callee,a.node.range[0])];for(let e of nle(a.node)){let t=a.node.arguments[e];t!=null&&t.type!==i.SpreadElement&&o.push(n(t,a.node.range[0]))}for(let n of o){if(n==null||k4(n,e)!==t)continue;let i=r.get(t)??/* @__PURE__ */ new Map;r.set(t,i);let o=i.get(a.caller)??/* @__PURE__ */ new Set;o.add(n),i.set(a.caller,o)}}return r}function fle(e,t){let n=/* @__PURE__ */ new Map;for(let r of e){let e=/* @__PURE__ */ new Set([r]);n.set(r,e);let i=t.get(r);if(i==null)continue;let a=[r];for(let t=a.pop();t!=null;t=a.pop())for(let n of i.get(t)??[])e.has(n)||(e.add(n),a.push(n))}return n}function ple(e,t,n,r){let i=[],a=/* @__PURE__ */ new Map;for(let o of e.toSorted((e,t)=>e.node.range[0]-t.node.range[0])){let e=r.getRefTarget(o.node);if(e==null)continue;let s=A4(o.enclosingFunction,t);if(s==null||!j4(o.node,s,n))continue;let c=!1;if(e.identity!=null){let t=e.identity,n=e=>r.getNullBranch(e,t);if(sle(o.node,n))continue;let i=cle(o.node,n);if(i!=null){if(i.inNullBranch&&o.isInitializationWrite)c=!0;else if(!i.inNullBranch&&!o.isWrite)continue}else o.isInitializationWrite&&lle(o.node,n)&&(c=!0)}if(c&&e.identity!=null){let t=a.get(s)??/* @__PURE__ */ new Set;a.set(s,t),t.has(e.identity)?i.push({kind:`duplicate-init`,node:o.node}):t.add(e.identity)}else i.push({kind:o.isWrite?`write`:`read`,node:o.node})}return i}function mle(e){if(e.type!==i.TaggedTemplateExpression)return Q.getCalleeName(e);let t=Q.unwrap(e.tag);return Z.isIdentifier(t)?t.name:t.type===i.MemberExpression&&!t.computed&&Z.isIdentifier(t.property)?t.property.name:null}function hle(e,t,n,r){if(t===`mergeRefs`)return!0;if(e.type!==i.Identifier)return!1;let a=r.getVariable(e);return a!=null&&r.resolveAliasTarget(a,n).name===`mergeRefs`}function gle(e,t,n,r){let a=[];for(let o of e){let e=A4(o.caller,t);if(e==null||!j4(o.node,e,n))continue;let s=o.node,c=Q.unwrap(s.type===i.TaggedTemplateExpression?s.tag:s.callee),l=mle(s),u=s.type===i.TaggedTemplateExpression?s.quasi.expressions:s.arguments;if(!(s.type===i.CallExpression&&w1(s))&&!hle(c,l,s.range[0],r)&&(l!==`render`||c.type!==i.MemberExpression))for(let e of u){if(e.type===i.SpreadElement)continue;let t=Q.unwrap(e);if(!Z.isIdentifier(t))continue;let n=r.getVariable(t);n!=null&&r.resolveRef(n,t.range[0])!=null&&a.push({kind:`pass`,node:t})}}return a}function _le(e,t){let{additionalRefHooks:n}=bX(e),r=/* @__PURE__ */ new Map,a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Set;function s(t){return(0,wX.findVariable)(e.sourceCode.getScope(t),t)??null}function c(t){let r=Q.unwrap(t);if(Z.isIdentifier(r)){let e=s(r);return e==null?{kind:`unknown`}:{kind:`variable`,variable:e}}return E4(r)?{kind:`function`,node:r}:r.type===i.CallExpression&&(T1(r,n)||m$(e,r))||r.type===i.MemberExpression&&Z.isIdentifier(r.property)&&D4(r.property.name)?{kind:`ref`}:{kind:`unknown`}}function l(e,t,n){let i=r.get(e)??[];r.set(e,i),i.push({position:n,value:t})}for(let e of t.bindings)switch(e.kind){case`function`:{let t=s(e.id);t!=null&&l(t,{kind:`function`,node:e.node},e.position);break}case`identifier`:{let t=s(e.id);t!=null&&l(t,c(e.value),e.position);break}case`member`:{let t=s(e.object);if(t==null)break;let n=a.get(t)??/* @__PURE__ */ new Map;a.set(t,n);let r=n.get(e.property)??[];n.set(e.property,r),r.push({position:e.position,value:c(e.value)});break}}for(let e of t.jsxRefs){let t=s(e);t!=null&&o.add(t)}function u(e,t,n=/* @__PURE__ */ new Set){if(n.has(e))return null;if(n.add(e),o.has(e)||D4(e.name))return e;let i=M4(r.get(e),t);if(i!=null)switch(i.value.kind){case`ref`:return e;case`variable`:return u(i.value.variable,i.position,n);case`function`:case`unknown`:return null}return null}function d(e,t,n=/* @__PURE__ */ new Set){if(n.has(e))return null;n.add(e);let i=M4(r.get(e),t);if(i==null)return null;switch(i.value.kind){case`function`:return i.value.node;case`variable`:return d(i.value.variable,i.position,n);case`ref`:case`unknown`:return null}}function f(e,t,n=/* @__PURE__ */ new Set){if(n.has(e))return e;n.add(e);let i=M4(r.get(e),t);return i!=null&&i.value.kind===`variable`?f(i.value.variable,i.position,n):e}function p(e,t){let n=Q.unwrap(e);if(E4(n))return n;if(Z.isIdentifier(n)){let e=s(n);return e==null?null:d(e,t)}if(n.type!==i.MemberExpression||!Z.isIdentifier(n.property))return null;let r=Q.unwrap(n.object),o=n.property.name;if(!Z.isIdentifier(r))return null;let c=s(r);if(c==null)return null;let l=M4(a.get(c)?.get(o),t);return l==null?null:l.value.kind===`function`?l.value.node:l.value.kind===`variable`?d(l.value.variable,l.position):null}function m(e){let t=Q.unwrap(e.object);if(Z.isIdentifier(t)){let n=s(t);if(n==null)return null;let r=u(n,e.range[0]);return r==null?null:{identity:r}}return t.type===i.MemberExpression&&Z.isIdentifier(t.property)&&D4(t.property.name)?{identity:null}:null}function h(e,t){return O4(e,e=>e.type!==i.MemberExpression||!Z.isIdentifier(e.property,`current`)?!1:m(e)?.identity===t,e=>{if(e.type===i.Literal)return e.value==null;if(e.type===i.UnaryExpression&&e.operator===`void`)return!0;if(!Z.isIdentifier(e,`undefined`))return!1;let t=s(e);return t==null||t.defs.length===0})}return{getNullBranch:h,getRefTarget:m,getVariable:s,resolveAliasTarget:f,resolveCallable:p,resolveRef:u}}function M4(e,t){let n=null;for(let r of e??[])r.position>t||(n==null||r.position>=n.position)&&(n=r);return n}var vle=U0({meta:{type:`problem`,docs:{description:`Validates correct usage of refs by checking that 'ref.current' is not read or written during render.`},messages:{"duplicate-ref-init":`Ref is initialized more than once during render. Only a single 'if (ref.current == null)' initialization is allowed; move any additional initialization into an effect or event handler.`,"read-during-render":`Cannot access refs during render`,"ref-passed-to-function":`Passing a ref to a function may read its value during render`,"write-during-render":`Cannot update ref during render`},schema:[]},name:`refs`,create:yle});function yle(e){let t=j1(e),n=A1(e),r=ule();return LZ(t.visitor,n.visitor,r.visitor,{"Program:exit"(i){let a=/* @__PURE__ */ new Set([...n.api.getAllComponents(i).map(e=>e.node),...t.api.getAllHooks(i).map(e=>e.node)]),o=_le(e,r.facts),s=fle(a,dle(a,r.facts.callEdges,o.resolveCallable)),c=[...ple(r.facts.refAccesses,a,s,o),...gle(r.facts.passSites,a,s,o)];for(let t of c)e.report({messageId:bW(t).with({kind:`duplicate-init`},()=>`duplicate-ref-init`).with({kind:`pass`},()=>`ref-passed-to-function`).with({kind:`read`},()=>`read-during-render`).with({kind:`write`},()=>`write-during-render`).exhaustive(),node:t.node})}})}function N4(e,t){if(!e)throw Error(t??`Assertion violated.`)}function P4(e){return e.reachable}var F4=class e{id;nextSegments;prevSegments;allNextSegments;allPrevSegments;reachable;internal;constructor(e,t,n){this.id=e,this.nextSegments=[],this.prevSegments=t.filter(P4),this.allNextSegments=[],this.allPrevSegments=t,this.reachable=n,this.internal={used:!1,loopedPrevSegments:[]}}isLoopedPrevSegment(e){return this.internal.loopedPrevSegments.includes(e)}static newRoot(t){return new e(t,[],!0)}static newNext(t,n){return new e(t,e.flattenUnusedSegments(n),n.some(P4))}static newUnreachable(t,n){let r=new e(t,e.flattenUnusedSegments(n),!1);return e.markUsed(r),r}static newDisconnected(t,n){return new e(t,[],n.some(P4))}static markUsed(e){if(e.internal.used)return;e.internal.used=!0;let t;if(e.reachable)for(t=0;t<e.allPrevSegments.length;++t){let n=e.allPrevSegments[t];n.allNextSegments.push(e),n.nextSegments.push(e)}else for(t=0;t<e.allPrevSegments.length;++t)e.allPrevSegments[t].allNextSegments.push(e)}static markPrevSegmentAsLooped(e,t){e.internal.loopedPrevSegments.push(t)}static flattenUnusedSegments(e){let t=Object.create(null),n=[];for(let r=0;r<e.length;++r){let i=e[r];if(!t[i.id]){if(i.internal.used)t[i.id]=!0,n.push(i);else for(let e=0;e<i.allPrevSegments.length;++e){let r=i.allPrevSegments[e];t[r.id]||(t[r.id]=!0,n.push(r))}}}return n}};function ble(e){return e.reachable}function I4(e,t,n,r){let i=e.segmentsList,a=t>=0?t:i.length+t,o=n>=0?n:i.length+n,s=[];for(let t=0;t<e.count;++t){let n=[];for(let e=a;e<=o;++e)n.push(i[e][t]);s.push(r(e.idGenerator.next(),n))}return s}function L4(e,t){let n=t;for(;n.length>e.count;){let t=[];for(let r=0,i=n.length/2|0;r<i;++r)t.push(F4.newNext(e.idGenerator.next(),[n[r],n[r+i]]));n=t}return n}var R4=class e{idGenerator;upper;count;segmentsList;constructor(e,t,n){this.idGenerator=e,this.upper=t,this.count=n,this.segmentsList=[]}get head(){let e=this.segmentsList;return e.length===0?[]:e[e.length-1]}get empty(){return this.segmentsList.length===0}get reachable(){let e=this.head;return e.length>0&&e.some(ble)}makeNext(e,t){return I4(this,e,t,F4.newNext)}makeUnreachable(e=NaN,t=NaN){return I4(this,e,t,F4.newUnreachable)}makeDisconnected(e,t){return I4(this,e,t,F4.newDisconnected)}add(e){N4(e.length>=this.count,`${e.length} >= ${this.count}`),this.segmentsList.push(L4(this,e))}replaceHead(e){N4(e.length>=this.count,`${e.length} >= ${this.count}`),this.segmentsList.splice(-1,1,L4(this,e))}addAll(e){N4(e.count===this.count);let t=e.segmentsList;for(let e=0;e<t.length;++e)this.segmentsList.push(t[e])}clear(){this.segmentsList=[]}static newRoot(t){let n=new e(t,null,1);return n.add([F4.newRoot(t.next())]),n}static newEmpty(t,n){return new e(t.idGenerator,t,(n?2:1)*t.count)}};function z4(e,t,n,r){for(let i=0;i<r.length;++i){let a=r[i];e.push(a),t.includes(a)||n.push(a)}}function xle(e,t){if(!t)return e.loopContext;let n=e.loopContext;for(;n;){if(n.label===t)return n;n=n.upper}
384
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`});let h=c.acquire(e);if(!h)throw Error(`Unable to acquire scope for the current node. This is a bug in eslint-plugin-react-hooks, please file an issue.`);let g=/* @__PURE__ */ new Set,_=null;{let e=h.upper;for(;e&&(g.add(e),e.type!==`function`&&e.type!==`hook`&&e.type!==`component`);)e=e.upper;if(!e)return;_=e}let v=Array.isArray;function y(e){if(!v(e.defs))return!1;let t=e.defs[0];if(t==null)return!1;let n=t.node;if(n.type!==`VariableDeclarator`)return!1;let r=n.init;if(r==null)return!1;for(;r.type===`TSAsExpression`||r.type===`AsExpression`;)r=r.expression;let i=n.parent;if(i==null&&_!=null&&(t2(_.block,t.node.id),i=t.node.parent,i==null))return!1;if(i!=null&&`kind`in i&&i.kind===`const`&&r.type===`Literal`&&(typeof r.value==`string`||typeof r.value==`number`||r.value===null))return!0;if(r.type!==`CallExpression`)return!1;let a=r.callee;if(a.type===`MemberExpression`&&`name`in a.object&&a.object.name===`React`&&a.property!=null&&!a.computed&&(a=a.property),a.type!==`Identifier`)return!1;let o=t.node.id,{name:s}=a;if(s===`useRef`&&o.type===`Identifier`)return!0;if(o2(a)&&o.type===`Identifier`){for(let t of e.references)t!==o&&p.add(t.identifier);return!0}if(s===`useState`||s===`useReducer`||s===`useActionState`){if(o.type===`ArrayPattern`&&o.elements.length===2&&v(e.identifiers)){if(o.elements[1]===e.identifiers[0]){if(s===`useState`){let t=e.references,n=0;for(let e of t){if(e.isWrite()&&n++,n>1)return!1;l.set(e.identifier,o.elements[0])}}return!0}if(o.elements[0]===e.identifiers[0]){if(s===`useState`){let t=e.references;for(let e of t)u.add(e.identifier)}return!1}}}else if(s===`useTransition`&&o.type===`ArrayPattern`&&o.elements.length===2&&Array.isArray(e.identifiers)&&o.elements[1]===e.identifiers[0])return!0;return!1}function b(e){if(!v(e.defs))return!1;let t=e.defs[0];if(t==null||t.node==null||t.node.id==null)return!1;let n=t.node,r=_?.childScopes||[],i=null;for(let e of r){let t=e.block;if(n.type===`FunctionDeclaration`&&t===n||n.type===`VariableDeclarator`&&t.parent===n){i=e;break}}if(i==null)return!1;for(let e of i.through)if(e.resolved!=null&&g.has(e.resolved.scope)&&!x(e.resolved))return!1;return!0}let x=m(y,d),S=m(b,f),C=/* @__PURE__ */ new Map;function w(t){let n=t.from,r=!1;for(;n!=null&&n.block!==e;)n.type===`function`&&(r=n.block.parent!=null&&n.block.parent.type===`ReturnStatement`),n=n.upper;return r}let T=/* @__PURE__ */ new Map,E=/* @__PURE__ */ new Map;D(h);function D(t){for(let n of t.references){if(!n.resolved||!g.has(n.resolved.scope))continue;let t=t2(e,n.identifier);if(t==null)continue;let r=X0(t),a=Q0(r,E);if(i&&r.type===`Identifier`&&(r.parent?.type===`MemberExpression`||r.parent?.type===`OptionalMemberExpression`)&&!r.parent.computed&&r.parent.property.type===`Identifier`&&r.parent.property.name===`current`&&w(n)&&C.set(a,{reference:n,dependencyNode:r}),r.parent?.type===`TSTypeQuery`||r.parent?.type===`TSTypeReference`)continue;let o=n.resolved.defs[0];if(o!=null&&(o.node==null||o.node.init!==e.parent)&&o.type!==`TypeParameter`&&r.parent?.type!==`GenericTypeAnnotation`){if(T.has(a))T.get(a)?.references.push(n);else{let e=n.resolved,t=x(e)||S(e);T.set(a,{isStable:t,references:[n]})}}}for(let e of t.childScopes)D(e)}C.forEach(({reference:e,dependencyNode:t},n)=>{let r=e.resolved?.references||[],i=!1;for(let e of r){let{identifier:t}=e,{parent:n}=t;if(n!=null&&n.type===`MemberExpression`&&!n.computed&&n.property.type===`Identifier`&&n.property.name===`current`&&n.parent?.type===`AssignmentExpression`&&n.parent.left===n){i=!0;break}}i||a({node:t.parent.property,message:`The ref value '${n}.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React, copy '${n}.current' to a variable inside the effect, and use that variable in the cleanup function.`})});let O=/* @__PURE__ */ new Set;function k(e,t){O.has(t)||(O.add(t),a({node:e,message:`Assignments to the '${t}' variable from inside React Hook ${o().getText(n)} will be lost after each render. To preserve the value over time, store it in a useRef Hook and keep the mutable value in the '.current' property. Otherwise, you can move this variable directly inside ${o().getText(n)}.`}))}let A=/* @__PURE__ */ new Set;if(T.forEach(({isStable:e,references:t},n)=>{e&&A.add(n),t.forEach(e=>{e.writeExpr&&k(e.writeExpr,n)})}),O.size>0)return;if(!t){if(s)return;let t=null;if(T.forEach(({references:n},r)=>{t||n.forEach(n=>{if(t)return;let i=n.identifier;if(!l.has(i))return;let a=n.from;for(;a!=null&&a.type!==`function`;)a=a.upper;a?.block===e&&(t=r)})}),t){let{suggestedDependencies:i}=q0({dependencies:T,declaredDependencies:[],stableDependencies:A,externalDependencies:/* @__PURE__ */ new Set,isEffect:!0});a({node:n,message:`React Hook ${r} contains a call to '${t}'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [`+i.join(`, `)+`] as a second argument to the ${r} Hook.`,suggest:[{desc:`Add dependencies array: [${i.join(`, `)}]`,fix(t){return t.insertTextAfter(e,`, [${i.join(`, `)}]`)}}]})}return}if(s&&t.type===`Literal`&&t.value===null)return;let j=[],M=/* @__PURE__ */ new Set,ee=t.type===`ArrayExpression`,N=t.type===`TSAsExpression`&&t.expression.type===`ArrayExpression`;!ee&&!N?a({node:t,message:`React Hook ${o().getText(n)} was passed a dependency list that is not an array literal. This means we can't statically verify whether you've passed the correct dependencies.`}):(N?t.expression:t).elements.forEach(e=>{if(e===null)return;if(e.type===`SpreadElement`){a({node:e,message:`React Hook ${o().getText(n)} has a spread element in its dependency array. This means we can't statically verify whether you've passed the correct dependencies.`});return}p.has(e)&&a({node:e,message:`Functions returned from \`useEffectEvent\` must not be included in the dependency array. Remove \`${o().getText(e)}\` from the list.`,suggest:[{desc:`Remove the dependency \`${o().getText(e)}\``,fix(t){return t.removeRange(e.range)}}]});let t;try{t=Q0(e,null)}catch(t){if(t instanceof Error&&/Unsupported node type/.test(t.message)){e.type===`Literal`?e.value&&T.has(e.value)?a({node:e,message:`The ${e.raw} literal is not a valid dependency because it never changes. Did you mean to include ${e.value} in the array instead?`}):a({node:e,message:`The ${e.raw} literal is not a valid dependency because it never changes. You can safely remove it.`}):a({node:e,message:`React Hook ${o().getText(n)} has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked.`});return}throw t}let r=e;for(;r.type===`MemberExpression`||r.type===`OptionalMemberExpression`||r.type===`ChainExpression`;)r=r.object||r.expression.object;let i=!_.through.some(e=>e.identifier===r);j.push({key:t,node:e}),i||M.add(t)});let{suggestedDependencies:te,unnecessaryDependencies:P,missingDependencies:F,duplicateDependencies:ne}=q0({dependencies:T,declaredDependencies:j,stableDependencies:A,externalDependencies:M,isEffect:i}),I=te;if(ne.size+F.size+P.size===0){Y0({declaredDependencies:j,declaredDependenciesNode:t,componentScope:_,scope:h}).forEach(({construction:e,isUsedOutsideOfHook:n,depType:i})=>{let o=i===`function`?`useCallback`:`useMemo`,s=i===`function`?`definition`:`initialization`,c=`wrap the ${s} of '${e.name.name}' in its own ${o}() Hook.`,l=n?`To fix this, ${c}`:`Move it inside the ${r} callback. Alternatively, ${c}`,u=i===`conditional`||i===`logical expression`?`could make`:`makes`,d=`The '${e.name.name}' ${i} ${u} the dependencies of ${r} Hook (at line ${t.loc?.start.line}) change on every render. ${l}`,f;n&&e.type===`Variable`&&i===`function`&&(f=[{desc:`Wrap the ${s} of '${e.name.name}' in its own ${o}() Hook.`,fix(t){let[n,r]=o===`useMemo`?[`useMemo(() => { return `,`; })`]:[`useCallback(`,`)`];return[t.insertTextBefore(e.node.init,n),t.insertTextAfter(e.node.init,r)]}}]),a({node:e.node,message:d,suggest:f})});return}!i&&F.size>0&&(I=q0({dependencies:T,declaredDependencies:[],stableDependencies:A,externalDependencies:M,isEffect:i}).suggestedDependencies);function L(){if(j.length===0)return!0;let e=j.map(e=>e.key),t=e.slice().sort();return e.join(`,`)===t.join(`,`)}L()&&I.sort();function R(e){let t=e.split(`.`),n=``;for(let e=0;e<t.length;e++){if(e!==0){let r=t.slice(0,e+1).join(`.`),i=E.get(r)===!0;n+=i?`?.`:`.`}n+=t[e]}return n}function z(e,t,n,r){return e.size===0?null:(e.size>1?``:t+` `)+n+` `+(e.size>1?`dependencies`:`dependency`)+`: `+n2(Array.from(e).sort().map(e=>`'`+R(e)+`'`))+`. Either ${r} ${e.size>1?`them`:`it`} or remove the dependency array.`}let B=``;if(P.size>0){let e=null;if(Array.from(P.keys()).forEach(t=>{e===null&&t.endsWith(`.current`)&&(e=t)}),e!==null)B=` Mutable values like '${e}' aren't valid dependencies because mutating them doesn't re-render the component.`;else if(M.size>0){let e=Array.from(M)[0];h.set.has(e)||(B=` Outer scope values like '${e}' aren't valid dependencies because mutating them doesn't re-render the component.`)}}if(!B&&F.has(`props`)){let e=T.get(`props`);if(e==null)return;let t=e.references;if(!Array.isArray(t))return;let i=!0;for(let e of t){let t=t2(_.block,e.identifier);if(!t){i=!1;break}let n=t.parent;if(n==null||n.type!==`MemberExpression`&&n.type!==`OptionalMemberExpression`){i=!1;break}}i&&(B=` However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the ${r} call and refer to those specific props inside ${o().getText(n)}.`)}if(!B&&F.size>0){let e=null;F.forEach(t=>{if(e)return;let n=_.set.get(t),r=T.get(t);if(!r?.references||r?.references[0]?.resolved!==n)return;let i=n?.defs[0];if(i==null||i.name==null||i.type!==`Parameter`)return;let a=!1,o;for(let e of r.references)if(o=e.identifier,o!=null&&o.parent!=null&&(o.parent.type===`CallExpression`||o.parent.type===`OptionalCallExpression`)&&o.parent.callee===o){a=!0;break}a&&(e=t)}),e!==null&&(B=` If '${e}' changes too often, find the parent component that defines it and wrap that definition in useCallback.`)}if(!B&&F.size>0){let e=null;for(let t of F){if(e!==null)break;let n=T.get(t).references,r,i;for(let a of n){for(r=a.identifier,i=r.parent;i!=null&&i!==_.block;){if(i.type===`CallExpression`){let n=l.get(i.callee);if(n!=null){if(`name`in n&&n.name===t)e={missingDep:t,setter:`name`in i.callee?i.callee.name:``,form:`updater`};else if(u.has(r))e={missingDep:t,setter:`name`in i.callee?i.callee.name:``,form:`reducer`};else{let n=a.resolved;if(n!=null){let r=n.defs[0];r!=null&&r.type===`Parameter`&&(e={missingDep:t,setter:`name`in i.callee?i.callee.name:``,form:`inlineReducer`})}}break}}i=i.parent}if(e!==null)break}}if(e!==null)switch(e.form){case`reducer`:B=` You can also replace multiple useState variables with useReducer if '${e.setter}' needs the current value of '${e.missingDep}'.`;break;case`inlineReducer`:B=` If '${e.setter}' needs the current value of '${e.missingDep}', you can also switch to useReducer instead of useState and read '${e.missingDep}' in the reducer.`;break;case`updater`:B=` You can also do a functional update '${e.setter}(${e.missingDep.slice(0,1)} => ...)' if you only need '${e.missingDep}' in the '${e.setter}' call.`;break;default:throw Error(`Unknown case.`)}}a({node:t,message:`React Hook ${o().getText(n)} has `+(z(F,`a`,`missing`,`include`)||z(P,`an`,`unnecessary`,`exclude`)||z(ne,`a`,`duplicate`,`omit`))+B,suggest:[{desc:`Update the dependencies array to be: [${I.map(R).join(`, `)}]`,fix(e){return e.replaceText(t,`[${I.map(R).join(`, `)}]`)}}]})}function g(e){let t=e2(e.callee,i);if(t===-1)return;let n=e.arguments[t],r=e.callee,o=$0(r),c=`name`in o?o.name:``,l=e.arguments[t+1],u=l&&(l.type!==`Identifier`||l.name!==`undefined`)?l:void 0,d=/Effect($|[^a-z])/g.test(c);if(!n){a({node:r,message:`React Hook ${c} requires an effect callback. Did you forget to pass a callback to the hook?`});return}!l&&d&&i.requireExplicitEffectDeps&&a({node:r,message:`React Hook ${c} always requires dependencies. Please add a dependency array or an explicit \`undefined\``});let f=i.experimental_autoDependenciesHooks.includes(c);if((!u||f&&u.type===`Literal`&&u.value===null)&&!d)(c===`useMemo`||c===`useCallback`)&&a({node:r,message:`React Hook ${c} does nothing when called with only one argument. Did you forget to pass an array of dependencies?`});else{for(;n.type===`TSAsExpression`||n.type===`AsExpression`;)n=n.expression;switch(n.type){case`FunctionExpression`:case`ArrowFunctionExpression`:h(n,u,r,c,d,f);return;case`Identifier`:if(!u||f&&u.type===`Literal`&&u.value===null||`elements`in u&&u.elements&&u.elements.some(e=>e&&e.type===`Identifier`&&e.name===n.name))return;let e=s(n).set.get(n.name);if(e==null||e.defs==null)return;let t=e.defs[0];if(!t||!t.node)break;if(t.type===`Parameter`){a({node:r,message:s2(c)});return}if(t.type!==`Variable`&&t.type!==`FunctionName`)break;switch(t.node.type){case`FunctionDeclaration`:h(t.node,u,r,c,d,f);return;case`VariableDeclarator`:let e=t.node.init;if(!e)break;switch(e.type){case`ArrowFunctionExpression`:case`FunctionExpression`:h(e,u,r,c,d,f);return}}break;default:a({node:r,message:s2(c)});return}a({node:r,message:`React Hook ${c} has a missing dependency: '${n.name}'. Either include it or remove the dependency array.`,suggest:[{desc:`Update the dependencies array to be: [${n.name}]`,fix(e){return e.replaceText(u,`[${n.name}]`)}}]})}}return{CallExpression:g}}};function q0({dependencies:e,declaredDependencies:t,stableDependencies:n,externalDependencies:r,isEffect:i}){let a=o();function o(){return{isUsed:!1,isSatisfiedRecursively:!1,isSubtreeUsed:!1,children:/* @__PURE__ */ new Map}}e.forEach((e,t)=>{let n=s(a,t);n.isUsed=!0,c(a,t,e=>{e.isSubtreeUsed=!0})}),t.forEach(({key:e})=>{let t=s(a,e);t.isSatisfiedRecursively=!0}),n.forEach(e=>{let t=s(a,e);t.isSatisfiedRecursively=!0});function s(e,t){let n=t.split(`.`),r=e;for(let e of n){let t=r.children.get(e);t||(t=o(),r.children.set(e,t)),r=t}return r}function c(e,t,n){let r=t.split(`.`),i=e;for(let e of r){let t=i.children.get(e);if(!t)return;n(t),i=t}}let l=/* @__PURE__ */ new Set,u=/* @__PURE__ */ new Set;d(a,l,u,e=>e);function d(e,t,n,r){e.children.forEach((e,i)=>{let a=r(i);e.isSatisfiedRecursively?e.isSubtreeUsed&&n.add(a):e.isUsed?t.add(a):d(e,t,n,e=>a+`.`+e)})}let f=[],p=/* @__PURE__ */ new Set,m=/* @__PURE__ */ new Set;return t.forEach(({key:e})=>{u.has(e)?f.indexOf(e)===-1?f.push(e):m.add(e):i&&!e.endsWith(`.current`)&&!r.has(e)?f.indexOf(e)===-1&&f.push(e):p.add(e)}),l.forEach(e=>{f.push(e)}),{suggestedDependencies:f,unnecessaryDependencies:p,duplicateDependencies:m,missingDependencies:l}}function J0(e){switch(e.type){case`ObjectExpression`:return`object`;case`ArrayExpression`:return`array`;case`ArrowFunctionExpression`:case`FunctionExpression`:return`function`;case`ClassExpression`:return`class`;case`ConditionalExpression`:return J0(e.consequent)!=null||J0(e.alternate)!=null?`conditional`:null;case`LogicalExpression`:return J0(e.left)!=null||J0(e.right)!=null?`logical expression`:null;case`JSXFragment`:return`JSX fragment`;case`JSXElement`:return`JSX element`;case`AssignmentExpression`:return J0(e.right)==null?null:`assignment expression`;case`NewExpression`:return`object construction`;case`Literal`:return e.value instanceof RegExp?`regular expression`:null;case`TypeCastExpression`:case`AsExpression`:case`TSAsExpression`:return J0(e.expression)}return null}function Y0({declaredDependencies:e,declaredDependenciesNode:t,componentScope:n,scope:r}){let i=e.map(({key:e})=>{let t=n.variables.find(t=>t.name===e);if(t==null)return null;let r=t.defs[0];if(r==null)return null;if(r.type===`Variable`&&r.node.type===`VariableDeclarator`&&r.node.id.type===`Identifier`&&r.node.init!=null){let e=J0(r.node.init);if(e)return[t,e]}return r.type===`FunctionName`&&r.node.type===`FunctionDeclaration`?[t,`function`]:r.type===`ClassName`&&r.node.type===`ClassDeclaration`?[t,`class`]:null}).filter(Boolean);function a(e){let n=!1;for(let i of e.references){if(i.writeExpr){if(n)return!0;n=!0;continue}let e=i.from;for(;e!==r&&e!=null;)e=e.upper;if(e!==r&&!a2(t,i.identifier))return!0}return!1}return i.map(([e,t])=>({construction:e.defs[0],depType:t,isUsedOutsideOfHook:a(e)}))}function X0(e){return e.parent&&(e.parent.type===`MemberExpression`||e.parent.type===`OptionalMemberExpression`)&&e.parent.object===e&&`name`in e.parent.property&&e.parent.property.name!==`current`&&!e.parent.computed&&(e.parent.parent==null||e.parent.parent.type!==`CallExpression`&&e.parent.parent.type!==`OptionalCallExpression`||e.parent.parent.callee!==e.parent)?X0(e.parent):e.type===`MemberExpression`&&e.parent&&e.parent.type===`AssignmentExpression`&&e.parent.left===e?e.object:e}function Z0(e,t,n){t&&(`optional`in e&&e.optional?t.has(n)||t.set(n,!0):t.set(n,!1))}function Q0(e,t){if(e.type===`Identifier`||e.type===`JSXIdentifier`){let n=e.name;return t&&t.set(n,!1),n}if(e.type===`MemberExpression`&&!e.computed||e.type===`OptionalMemberExpression`&&!e.computed){let n=`${Q0(e.object,t)}.${Q0(e.property,null)}`;return Z0(e,t,n),n}if(e.type===`ChainExpression`&&(!(`computed`in e)||!e.computed)){let n=e.expression;if(n.type===`CallExpression`)throw Error(`Unsupported node type: ${n.type}`);let r=`${Q0(n.object,t)}.${Q0(n.property,null)}`;return Z0(n,t,r),r}throw Error(`Unsupported node type: ${e.type}`)}function $0(e){return e.type===`MemberExpression`&&e.object.type===`Identifier`&&e.object.name===`React`&&e.property.type===`Identifier`&&!e.computed?e.property:e}function e2(e,t){let n=$0(e);if(n.type!==`Identifier`)return-1;switch(n.name){case`useEffect`:case`useLayoutEffect`:case`useCallback`:case`useMemo`:return 0;case`useImperativeHandle`:return 1;default:if(n===e&&t&&t.additionalHooks){let e;try{e=Q0(n,null)}catch(e){if(e instanceof Error&&/Unsupported node type/.test(e.message))return 0;throw e}return t.additionalHooks.test(e)?0:-1}return-1}}function t2(e,t){let n=[e],r;for(;n.length;){if(r=n.shift(),i2(r,t))return r;if(a2(r,t))for(let[e,t]of Object.entries(r))e!==`parent`&&(r2(t)?(t.parent=r,n.push(t)):Array.isArray(t)&&t.forEach(e=>{r2(e)&&(e.parent=r,n.push(e))}))}return null}function n2(e){let t=``;for(let n=0;n<e.length;n++)t+=e[n],n===0&&e.length===2?t+=` and `:n===e.length-2&&e.length>2?t+=`, and `:n<e.length-1&&(t+=`, `);return t}function r2(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&`type`in e&&typeof e.type==`string`}function i2(e,t){return(e.type===`Identifier`||e.type===`JSXIdentifier`)&&e.type===t.type&&e.name===t.name&&!!e.range&&!!t.range&&e.range[0]===t.range[0]&&e.range[1]===t.range[1]}function a2(e,t){return!!e.range&&!!t.range&&e.range[0]<=t.range[0]&&e.range[1]>=t.range[1]}function o2(e){return e.type===`Identifier`&&e.name===`useEffectEvent`}function s2(e){return`React Hook ${e} received a function whose dependencies are unknown. Pass an inline function instead.`}const c2=/* @__PURE__ */ new Set([`copyWithin`,`fill`,`pop`,`push`,`reverse`,`shift`,`sort`,`splice`,`unshift`]);function l2(){let e={callEdges:[],methodCalls:[],writes:[]};function t(e){return uZ.findParent(e,Z.isFunction)}function n(n,r){let i=t(n);i!=null&&e.writes.push({enclosingFunction:i,node:n,target:r})}return{facts:e,visitor:{AssignmentExpression(e){for(let t of qQ(e.left))n(e,t)},CallExpression(n){let r=t(n);r!=null&&e.callEdges.push({callee:n.callee,caller:r});let a=Q.unwrap(n.callee);if(a.type!==i.MemberExpression)return;let o=Q.getCalleeName(n);o!=null&&c2.has(o)&&r!=null&&e.methodCalls.push({enclosingFunction:r,method:o,node:n,receiver:a.object})},ForInStatement(e){if(e.left.type!==i.VariableDeclaration)for(let t of qQ(e.left))n(e,t)},ForOfStatement(e){if(e.left.type!==i.VariableDeclaration)for(let t of qQ(e.left))n(e,t)},UnaryExpression(e){if(e.operator!==`delete`)return;let t=Q.unwrap(e.argument);t.type===i.MemberExpression&&n(e,t)},UpdateExpression(e){let t=Q.unwrap(e.argument);(t.type===i.Identifier||t.type===i.MemberExpression)&&n(e,t)}}}}function u2(e,t){let n=(0,wX.findVariable)(e.sourceCode.getScope(t),t);return n==null||n.defs.length===0||n.scope.type===gk.ScopeType.global||n.scope.type===gk.ScopeType.module}function d2(e,t,n=/* @__PURE__ */ new Set){let r=Q.unwrap(t);if(n.has(r))return null;if(n.add(r),r.type===i.MemberExpression)return d2(e,r.object,n);if(!Z.isIdentifier(r))return null;if(u2(e,r))return r;let a=(0,wX.findVariable)(e.sourceCode.getScope(r),r),o=a?.defs.length===1?a.defs[0]:null;if(o?.type!==gk.DefinitionType.Variable||!Z.isIdentifier(o.node.id)||o.node.init==null||o.node.parent.kind!==`const`)return null;let s=Q.unwrap(o.node.init);return s.type!==i.Identifier&&s.type!==i.MemberExpression?null:d2(e,s,n)}function f2(e,t){let n=Q.unwrap(t);if(Z.isFunction(n))return n;if(!Z.isIdentifier(n))return null;let r=e$(e,n),i=r==null?null:Q.unwrap(r);return i!=null&&Z.isFunction(i)?i:null}function p2(e,t){let n=/* @__PURE__ */ new Map;function r(e,t){let r=n.get(e)??[];r.push(t),n.set(e,r)}for(let n of t.writes)if(Z.isIdentifier(n.target)){if(!u2(e,n.target))continue;r(n.enclosingFunction,{kind:`global`,name:n.target.name,method:null,node:n.node})}else d2(e,n.target.object)!=null&&r(n.enclosingFunction,{kind:`global-property`,name:PZ(e,n.target),method:null,node:n.node});for(let n of t.methodCalls){let t=d2(e,n.receiver);t!=null&&r(n.enclosingFunction,{kind:`global-array-method`,name:t.name,method:n.method,node:n.node})}return n}function m2(e,t){let n=/* @__PURE__ */ new Map;for(let r of t){let t=f2(e,r.callee);if(t==null)continue;let i=n.get(r.caller)??/* @__PURE__ */ new Set;i.add(t),n.set(r.caller,i)}return n}function h2(e,t,n){let r=/* @__PURE__ */ new Set,i=/* @__PURE__ */ new Set,a=[];function o(e){if(!r.has(e)){r.add(e);for(let n of t.get(e)??[])i.has(n)||(i.add(n),a.push(n));for(let t of n.get(e)??[])o(t)}}for(let t of e)o(t);return a}var g2=U0({meta:{type:`problem`,docs:{description:`Validates against assignment/mutation of globals during render, part of ensuring that side effects must run outside of render.`},messages:{"mutating-global":`Do not mutate '{{name}}' during render. Global variables exist outside React's control and make rendering impure.`,"mutating-global-property":`Do not mutate '{{name}}' during render. Modifying global objects during render makes rendering impure.`,"mutating-global-array-method":`Do not call '{{method}}()' on '{{name}}' during render. Mutating global arrays during render makes rendering impure.`},schema:[]},name:`globals`,create:_2});function _2(e){let t=j1(e),n=A1(e),r=l2();return LZ(t.visitor,n.visitor,r.visitor,{"Program:exit"(i){let a=[...n.api.getAllComponents(i),...t.api.getAllHooks(i)].map(({node:e})=>e),o=p2(e,r.facts),s=m2(e,r.facts.callEdges);for(let t of h2(a,o,s)){let n=t.method==null?{name:t.name}:{name:t.name,method:t.method};e.report({data:n,messageId:bW(t).with({kind:`global`},()=>`mutating-global`).with({kind:`global-property`},()=>`mutating-global-property`).with({kind:`global-array-method`},()=>`mutating-global-array-method`).exhaustive(),node:t.node})}}})}const v2=/* @__PURE__ */ new Set([`add`,`clear`,`copyWithin`,`delete`,`fill`,`pop`,`push`,`reverse`,`set`,`shift`,`sort`,`splice`,`unshift`]),y2=/* @__PURE__ */ new Set([`useHistory`,`useNavigate`,`useNavigation`,`useRouter`,`useWorld`]);function b2(e,t){return e===t||uZ.hasParent(e,e=>e===t)}function x2(e){return e===`ref`||e.endsWith(`Ref`)}function S2(e){let t=Q.unwrap(e);for(;t.type===i.MemberExpression;){let e=Q.unwrap(t.property);if(Z.isIdentifier(e)&&x2(e.name))return!0;t=Q.unwrap(t.object)}return Z.isIdentifier(t)&&x2(t.name)}function C2(){let e={mutations:[],sinks:[]};function t(t,n,r,i){let a=uZ.findParent(n,Z.isFunction);a!=null&&e.mutations.push({kind:t,enclosingFunction:a,node:n,root:i,target:r})}function n(e,n){let r=Q.unwrap(n);for(;r.type===i.MemberExpression;)r=Q.unwrap(r.object);Z.isIdentifier(r)&&t(`value`,e,n,r)}function r(e,r){Z.isIdentifier(r)?t(`binding`,e,r,r):n(e,r)}return{facts:e,visitor:{AssignmentExpression(e){for(let t of qQ(e.left))r(e,t)},CallExpression(t){let r=Q.unwrap(t.callee);if(r.type===i.MemberExpression){let e=Q.getCalleeName(t);e!=null&&v2.has(e)&&n(t,r.object)}if(w1(t))for(let n of t.arguments)n.type!==i.SpreadElement&&e.sinks.push({kind:`hook-argument`,expression:n})},ForInStatement(e){if(e.left.type!==i.VariableDeclaration)for(let t of qQ(e.left))r(e,t)},ForOfStatement(e){if(e.left.type!==i.VariableDeclaration)for(let t of qQ(e.left))r(e,t)},JSXAttribute(t){if(t.value?.type!==i.JSXExpressionContainer)return;let n=t.value.expression;n.type!==i.JSXEmptyExpression&&e.sinks.push({kind:`jsx-prop`,expression:n})},UnaryExpression(e){if(e.operator!==`delete`)return;let t=Q.unwrap(e.argument);t.type===i.MemberExpression&&n(e,t)},UpdateExpression(e){let r=Q.unwrap(e.argument);switch(r.type){case i.Identifier:t(`binding`,e,r,r);return;case i.MemberExpression:n(e,r);return}}}}}function w2(e,t,n=`alias`,r=/* @__PURE__ */ new Set){if(r.has(t))return t;r.add(t);let a=t.defs.length===1?t.defs[0]:null;if(a?.type!==gk.DefinitionType.Variable||a.node.init==null||n===`binding`&&a.node.id.type===i.Identifier)return t;let o=Q.unwrap(a.node.init);if(!Z.isIdentifier(o))return t;let s=(0,wX.findVariable)(e.sourceCode.getScope(o),o);return s==null?t:w2(e,s,n,r)}function T2(e,t){let n=Q.unwrap(t);if(Z.isFunction(n))return n;if(!Z.isIdentifier(n))return null;let r=e$(e,n),i=r==null?null:Q.unwrap(r);return i!=null&&Z.isFunction(i)?i:null}function E2(e,t){if(e.type!==gk.DefinitionType.Parameter)return!1;let n=e.node;if(!Z.isFunction(n))return!1;let r=n.params.at(0);return r==null||!b2(e.name,r)?!1:t.includes(n)}function D2(e,t){let{additionalStateHooks:n}=bX(e);return E1(t,n)?Q.getCalleeName(t)??`useState`:C$(e,t)?`useReducer`:null}function O2(e,t,n){let r=Q.unwrap(t);for(;r.type===i.MemberExpression;)r=Q.unwrap(r.object);if(!Z.isIdentifier(r))return!1;let a=(0,wX.findVariable)(e.sourceCode.getScope(r),r);if(a==null)return!1;let o=w2(e,a),s=o.defs.length===1?o.defs[0]:null;if(s?.type!==gk.DefinitionType.Variable||s.node.init==null)return!1;let c=Q.unwrap(s.node.init);return c.type===i.CallExpression&&n(c)}function k2(e,t){let{additionalRefHooks:n}=bX(e);return O2(e,t,e=>T1(e,n))}function A2(e,t){return S2(t)||k2(e,t)}function j2(e,t,n,r=`alias`,a=/* @__PURE__ */ new Set){if(a.has(t))return null;a.add(t);let o=w2(e,t,r),s=o.defs.length===1?o.defs[0]:null;if(s==null)return null;if(E2(s,n))return{kind:`props`,name:o.name};if(s.type!==gk.DefinitionType.Variable)return null;if(s.node.init==null){let t=s.node.parent.parent;if(t.type!==i.ForOfStatement||t.left!==s.node.parent)return null;let c=Q.unwrap(t.right);for(;c.type===i.MemberExpression;)c=Q.unwrap(c.object);if(!Z.isIdentifier(c))return null;let l=(0,wX.findVariable)(e.sourceCode.getScope(c),c);if(l==null)return null;let u=j2(e,l,n,r,a);return u==null?null:{kind:`iterator`,name:o.name,original:u.name}}let c=Q.unwrap(s.node.init);switch(c.type){case i.CallExpression:{let t=D2(e,c);if(t==null||s.node.id.type!==i.ArrayPattern)return null;let n=s.node.id.elements.at(0);return n==null||!b2(s.name,n)?null:{kind:`state`,name:o.name,hook:t}}case i.ArrayExpression:case i.ObjectExpression:{let t=c.type===i.ObjectExpression?c.properties:c.elements;for(let s of t){if(s?.type!==i.SpreadElement)continue;let t=Q.unwrap(s.argument);if(!Z.isIdentifier(t))continue;let c=(0,wX.findVariable)(e.sourceCode.getScope(t),t);if(c==null)continue;let l=j2(e,c,n,r,a);if(l!=null)return{kind:`shallow-copy`,name:o.name,original:l.name}}return null}default:return null}}function M2(e){return e.defs.length===0||e.scope.type===gk.ScopeType.global||e.scope.type===gk.ScopeType.module}function N2(e,t){return Z.isIdentifier(t.target)?x2(t.target.name):A2(e,t.target)}function P2(e,t){let n=Q.unwrap(t.callee);return Z.isExpression(n)&&O2(e,n,t=>[...y2].some(n=>n$(n)(e,t)))}function F2(e,t){let n=/* @__PURE__ */ new Map;for(let r of t){if(r.node.type===i.CallExpression&&P2(e,r.node)||N2(e,r))continue;let t=(0,wX.findVariable)(e.sourceCode.getScope(r.root),r.root);if(t==null)continue;let a=r.kind===`binding`?t:w2(e,t);if(M2(a))continue;let o=a.identifiers.at(0)??null,s=o==null?null:uZ.findParent(o,Z.isFunction),c=r.enclosingFunction;for(;c!=null&&s!==c;)n.has(c)||n.set(c,{name:a.name,node:r.node}),c=uZ.findParent(c,Z.isFunction)}return n}function I2(e){let t=Q.unwrap(e.target);return e.node.type===i.CallExpression?t:t.type===i.MemberExpression?Q.unwrap(t.object):t}function L2(e,t,n){let r=[];for(let a of t){if(a.node.type===i.CallExpression&&P2(e,a.node)||N2(e,a))continue;let t=(0,wX.findVariable)(e.sourceCode.getScope(a.root),a.root);if(t==null)continue;let o=j2(e,t,n,a.kind===`binding`?`binding`:`alias`);if(o!=null){if(a.kind===`binding`)switch(o.kind){case`props`:r.push({name:o.name,detail:`It is a prop of this component and must not be reassigned.`,node:a.node});break;case`state`:r.push({name:o.name,detail:`It is a state value returned from '${o.hook}' and must not be reassigned.`,node:a.node})}else switch(o.kind){case`props`:r.push({name:o.name,detail:`It is a prop of this component and must be treated as immutable.`,node:a.node});break;case`state`:r.push({name:o.name,detail:`It is a state value returned from '${o.hook}' and must be treated as immutable.`,node:a.node});break;case`shallow-copy`:if(I2(a).type!==i.MemberExpression)continue;r.push({name:o.name,detail:`It is a shallow copy of '${o.original}'; mutating nested values through it mutates '${o.original}' in place.`,node:a.node});break;case`iterator`:r.push({name:o.name,detail:`It is an element of '${o.original}' and must be treated as immutable.`,node:a.node})}}}return r}var R2=U0({meta:{type:`problem`,docs:{description:`Validates against mutating props, state, and other immutable values, including through functions passed into frozen contexts such as JSX props, hook arguments, and hook return values.`},messages:{"indirect-mutation":`This function may (indirectly) reassign or modify '{{name}}' after render, which can cause inconsistent behavior on subsequent renders. Consider using state instead.`,"mutation-site":`This modifies '{{name}}'.`,"direct-mutation":`Do not mutate '{{name}}' directly. {{detail}}`},schema:[]},name:`immutability`,create:z2});function z2(e){let t=j1(e),n=A1(e),r=C2();return LZ(t.visitor,n.visitor,r.visitor,{"Program:exit"(i){for(let e of t.api.getAllHooks(i))for(let t of e.rets)t!=null&&r.facts.sinks.push({kind:`hook-return`,expression:t});let a=/* @__PURE__ */ new Set,o=F2(e,r.facts.mutations);if(o.size>0){let t=/* @__PURE__ */ new Set;for(let n of r.facts.sinks){let r=n.expression;if(t.has(r))continue;let i=T2(e,r);if(i==null)continue;let s=o.get(i);s!=null&&(t.add(r),a.add(s.node),e.report({data:{name:s.name},messageId:`indirect-mutation`,node:r}),e.report({data:{name:s.name},messageId:`mutation-site`,node:s.node}))}}let s=n.api.getAllComponents(i).map(e=>e.node);for(let t of L2(e,r.facts.mutations,s))a.has(t.node)||(a.add(t.node),e.report({data:{name:t.name,detail:t.detail},messageId:`direct-mutation`,node:t.node}))}})}var B2=U0({meta:{type:`problem`,docs:{description:`Disallows accessing 'this.state' inside 'setState' calls.`},messages:{default:`Do not access 'this.state' within 'setState'. Use the update function instead.`},schema:[]},name:`no-access-state-in-setstate`,create:V2});function V2(e){return e.sourceCode.text.includes(`setState`)?{MemberExpression(t){if(!t$(`this.state`)(e,t))return;let n=uZ.findParent(uZ.findParent(t,e=>Z.isCallExpression(e)&&X$(e)),Z.isClass);n!=null&&F$(n)&&e.report({messageId:`default`,node:t})}}:{}}const H2=/* @__PURE__ */ new Set([`Number`,`String`]),U2=/* @__PURE__ */ new Map([[`every`,1],[`filter`,1],[`find`,1],[`findIndex`,1],[`findLast`,1],[`findLastIndex`,1],[`flatMap`,1],[`forEach`,1],[`map`,1],[`reduce`,2],[`reduceRight`,2],[`some`,1]]);function W2(e,t){let n=(0,wX.findVariable)(e.sourceCode.getScope(t),t)?.defs.at(0);if(n==null||n.type!==gk.DefinitionType.Parameter)return!1;let r=n.node;if(!Z.isOneOf([i.ArrowFunctionExpression,i.FunctionExpression])(r))return!1;let a=r;for(;Z.isTypeExpression(a.parent);)a=a.parent;let o=a.parent;if(o.type!==i.CallExpression)return!1;let s=Q.unwrap(o.callee);if(s.type!==i.MemberExpression||!Z.isIdentifier(s.property))return!1;let c=U2.get(s.property.name);if(c==null)return!1;let l=a$(e,s)||i$(e,s)?1:0;if(o.arguments[l]!==a)return!1;let u=r.params[c];return u!=null&&(u.type===i.AssignmentPattern?u.left:u)===n.name}function G2(e){return Z.isIdentifier(e)?[e]:e.type===i.BinaryExpression?[...G2(e.left),...G2(e.right)]:[]}var K2=U0({meta:{type:`suggestion`,docs:{description:`Disallows using an item's index in the array as its key.`},messages:{default:`Do not use item index in the array as its key.`},schema:[]},name:`no-array-index-key`,create:q2});function q2(e){function t(t){return t!=null&&Z.isIdentifier(t)&&W2(e,t)}function n(t){let n=hQ(e,t);if(n!=null)return n.propsObject;if(!d$(e,t))return null;let r=t.arguments[1];return r?.type===i.ObjectExpression?r:null}function r(e){switch(e.type){case i.Identifier:return t(e)?[{messageId:`default`,node:e}]:[];case i.TemplateLiteral:return e.expressions.filter(t).map(e=>({messageId:`default`,node:e}));case i.BinaryExpression:return G2(e).filter(t).map(e=>({messageId:`default`,node:e}));case i.ConditionalExpression:return[...r(e.consequent),...r(e.alternate)];case i.LogicalExpression:return[...r(e.left),...r(e.right)];case i.CallExpression:{let n=Q.unwrap(e.callee);if(n.type===i.MemberExpression&&Q.getCalleeName(e)===`toString`&&t(n.object))return[{messageId:`default`,node:n.object}];let r=e.arguments.at(0);return n.type===i.Identifier&&H2.has(n.name)&&t(r)?[{messageId:`default`,node:r}]:[]}default:return[]}}return{CallExpression(t){let a=n(t);if(a!=null)for(let t of a.properties){if(t.type!==i.Property||t.computed)continue;let n=Q.unwrap(t.key);if(Z.isIdentifier(n)?n.name!==`key`:n.value!==`key`)continue;let a=t.value;for(let t of r(a))e.report(t)}},"JSXAttribute[name.name='key']"(t){if(t.value?.type===i.JSXExpressionContainer)for(let n of r(t.value.expression))e.report(n)}}}var J2=U0({meta:{type:`suggestion`,docs:{description:`Disallows the use of 'Children.count' from the 'react' package.`},messages:{default:`Using 'Children.count' is uncommon and can lead to fragile code. Use alternatives instead.`},schema:[]},name:`no-children-count`,create:Y2});function Y2(e){return e.sourceCode.text.includes(`Children`)?{MemberExpression(t){r$(e,t)&&e.report({messageId:`default`,node:t.property})}}:{}}var X2=U0({meta:{type:`suggestion`,docs:{description:`Disallows the use of 'Children.forEach' from the 'react' package.`},messages:{default:`Using 'Children.forEach' is uncommon and can lead to fragile code. Use alternatives instead.`},schema:[]},name:`no-children-for-each`,create:Z2});function Z2(e){return e.sourceCode.text.includes(`Children`)?{MemberExpression(t){i$(e,t)&&e.report({messageId:`default`,node:t.property})}}:{}}var Q2=U0({meta:{type:`suggestion`,docs:{description:`Disallows the use of 'Children.map' from the 'react' package.`},messages:{default:`Using 'Children.map' is uncommon and can lead to fragile code. Use alternatives instead.`},schema:[]},name:`no-children-map`,create:$2});function $2(e){return e.sourceCode.text.includes(`Children`)?{MemberExpression(t){a$(e,t)&&e.report({messageId:`default`,node:t.property})}}:{}}var e4=U0({meta:{type:`suggestion`,docs:{description:`Disallows the use of 'Children.only' from the 'react' package.`},messages:{default:`Using 'Children.only' is uncommon and can lead to fragile code. Use alternatives instead.`},schema:[]},name:`no-children-only`,create:t4});function t4(e){return e.sourceCode.text.includes(`Children`)?{MemberExpression(t){o$(e,t)&&e.report({messageId:`default`,node:t.property})}}:{}}var n4=U0({meta:{type:`suggestion`,docs:{description:`Disallows the use of 'Children.toArray' from the 'react' package.`},messages:{default:`Using 'Children.toArray' is uncommon and can lead to fragile code. Use alternatives instead.`},schema:[]},name:`no-children-to-array`,create:r4});function r4(e){return e.sourceCode.text.includes(`Children`)?{MemberExpression(t){s$(e,t)&&e.report({messageId:`default`,node:t.property})}}:{}}const i4=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;e<r;e++)n=t[e](n);return n}}},a4={pipe(){return i4(this,arguments)}};(function(){function e(){}return e.prototype=a4,e})();const o4=function(e,t){if(typeof e==`function`)return function(){return e(arguments)?t.apply(this,arguments):(e=>t(e,...arguments))};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}};o4(2,(e,t)=>n=>t(e(n)));function s4(e,t,n,r,i,a,o,s,c){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return a(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return o(a(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return s(o(a(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return c(s(o(a(i(r(n(t(e.apply(this,arguments)))))))))}}}function c4(e){let t=/* @__PURE__ */ new WeakMap,n=/* @__PURE__ */ new Map;return r=>p4(r)?h4(t,r,()=>e(r)):h4(n,r,()=>e(r))}function l4(e){return t=>!e(t)}o4(2,(e,t)=>n=>e(n)&&t(n));const u4=o4(2,(e,t)=>n=>e(n)||t(n));o4(2,(e,t)=>n=>e(n)!==t(n)),o4(2,(e,t)=>n=>e(n)===t(n)),o4(2,(e,t)=>n=>!e(n)||t(n)),o4(2,(e,t)=>n=>!e(n)&&!t(n)),o4(2,(e,t)=>n=>!e(n)||!t(n));function d4(e){return typeof e==`string`}function f4(e){return typeof e==`function`}function p4(e){return typeof e==`object`&&!!e||f4(e)}const m4=o4(2,(e,t)=>p4(e)&&t in e);function h4(e,t,n){if(e.has(t))return e.get(t);let r=n(t);return e.set(t,r),r}o4(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(i)}),o4(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(0,i)});var Hoe=U0({meta:{type:`suggestion`,docs:{description:`Disallows class components except for error boundaries.`},messages:{default:`Avoid using class components. Use function components instead.`},schema:[]},name:`no-class-component`,create:Uoe});function Uoe(e){if(!e.sourceCode.text.includes(`Component`))return{};let{api:t,visitor:n}=Z$(e);return LZ(n,{"Program:exit"(n){for(let{id:r,node:i}of t.getAllComponents(n)){if(i.body.body.some(u4(R$,q$)))continue;let t=e.sourceCode.getFirstToken(i,{filter:e=>e.value===`class`});e.report({loc:(r??t??i).loc,messageId:`default`,node:i})}}})}var Woe=U0({meta:{type:`suggestion`,docs:{description:`Disallows 'cloneElement'.`},messages:{default:`Using 'cloneElement' is uncommon and can lead to fragile code. Use alternatives instead.`},schema:[]},name:`no-clone-element`,create:Goe});function Goe(e){return e.sourceCode.text.includes(`cloneElement`)?{CallExpression(t){d$(e,t)&&e.report({messageId:`default`,node:t})}}:{}}var Koe=U0({meta:{type:`problem`,docs:{description:`Replaces usage of 'componentWillMount' with 'UNSAFE_componentWillMount'.`},fixable:`code`,messages:{default:`[Deprecated] Use 'UNSAFE_componentWillMount' instead.`},schema:[]},name:`no-component-will-mount`,create:qoe});function qoe(e){if(!e.sourceCode.text.includes(`componentWillMount`))return{};let{api:t,visitor:n}=Z$(e);return LZ(n,{"Program:exit"(n){for(let{node:r}of t.getAllComponents(n)){let{body:t}=r.body;for(let n of t)V$(n)&&e.report({fix(e){return m4(n,`key`)?e.replaceText(n.key,`UNSAFE_componentWillMount`):null},messageId:`default`,node:n})}}})}var Joe=U0({meta:{type:`problem`,docs:{description:`Replaces usage of 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'.`},fixable:`code`,messages:{default:`[Deprecated] Use 'UNSAFE_componentWillReceiveProps' instead.`},schema:[]},name:`no-component-will-receive-props`,create:Yoe});function Yoe(e){if(!e.sourceCode.text.includes(`componentWillReceiveProps`))return{};let{api:t,visitor:n}=Z$(e);return LZ(n,{"Program:exit"(n){for(let{node:r}of t.getAllComponents(n)){let{body:t}=r.body;for(let n of t)H$(n)&&e.report({fix(e){return m4(n,`key`)?e.replaceText(n.key,`UNSAFE_componentWillReceiveProps`):null},messageId:`default`,node:n})}}})}var Xoe=U0({meta:{type:`problem`,docs:{description:`Replaces usage of 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'.`},fixable:`code`,messages:{default:`[Deprecated] Use 'UNSAFE_componentWillUpdate' instead.`},schema:[]},name:`no-component-will-update`,create:Zoe});function Zoe(e){if(!e.sourceCode.text.includes(`componentWillUpdate`))return{};let{api:t,visitor:n}=Z$(e);return LZ(n,{"Program:exit"(n){for(let{node:r}of t.getAllComponents(n)){let{body:t}=r.body;for(let n of t)U$(n)&&e.report({fix(e){return m4(n,`key`)?e.replaceText(n.key,`UNSAFE_componentWillUpdate`):null},messageId:`default`,node:n})}}})}var Qoe=U0({meta:{type:`suggestion`,docs:{description:`Replaces usage of '<Context.Provider>' with '<Context>'.`},fixable:`code`,hasSuggestions:!0,messages:{default:`In React 19, you can render '<Context>' as a provider instead of '<Context.Provider>'.`,suggest:`Replace '<Context.Provider>' with '<Context>'.`},schema:[]},name:`no-context-provider`,create:$oe});function $oe(e){if(!e.sourceCode.text.includes(`Provider`))return{};let{version:t}=bX(e);return(0,s0.compare)(t,`19.0.0`,`<`)?{}:{JSXElement(t){let n=bQ(t).split(`.`),r=n.pop(),i=n.join(`.`),a=n.pop();r===`Provider`&&a!=null&&a.endsWith(`Context`)&&e.report({messageId:`default`,node:t,suggest:[{fix(e){if(!g1(a))return null;let n=t.openingElement,r=t.closingElement;return r==null?e.replaceText(n.name,i):[e.replaceText(n.name,i),e.replaceText(r.name,i)]},messageId:`suggest`}]})}}}var ese=U0({meta:{type:`suggestion`,docs:{description:`Disallows 'createRef' in function components and Hooks.`},messages:{default:`Use 'useRef' instead of 'createRef' in function components and Hooks.`},schema:[]},name:`no-create-ref`,create:tse});function tse(e){if(!e.sourceCode.text.includes(`createRef`))return{};let t=A1(e),n=j1(e),r=/* @__PURE__ */ new Set;return LZ(t.visitor,n.visitor,{CallExpression(t){m$(e,t)&&r.add(t)},"Program:exit"(i){let a=t.api.getAllComponents(i),o=n.api.getAllHooks(i),s=[...a,...o];for(let t of r)uZ.hasParent(t,e=>s.some(t=>t.node===e))&&e.report({messageId:`default`,node:t})}})}var nse=U0({meta:{type:`problem`,docs:{description:`Disallows direct mutation of 'this.state'.`},messages:{default:`Do not mutate state directly. Use 'setState()' instead.`},schema:[]},name:`no-direct-mutation-state`,create:rse});function rse(e){return e.sourceCode.text.includes(`Component`)?{AssignmentExpression(t){if(!ase(t))return;let n=uZ.findParent(t,Z.isClass);if(n==null||!F$(n))return;let r=uZ.findParent(t,ise);uZ.findParent(t,Z.isFunctionOrClass)!==r&&e.report({messageId:`default`,node:t})}}:{}}function ise(e){return Z.isOneOf([i.FunctionDeclaration,i.FunctionExpression])(e)&&Z.isPropertyOrMethod(e.parent)&&Z.isIdentifier(e.parent.key,`constructor`)}function ase(e){let{left:t}=e,n=Q.unwrap(t);for(;n.type===i.MemberExpression;){let e=Q.unwrap(n.object),t=n.property;if(e.type===i.ThisExpression&&Z.isIdentifier(t,`state`))return!0;n=e}return!1}function ose(e,t){let n=e,r=!1;for(;;){let e=n.parent;if(e==null)return!1;if(e===t)return r?!0:e.type===i.ArrowFunctionExpression&&e.body===n;if(Z.isTypeOrChainExpression(e)||e.type===i.LogicalExpression)n=e;else switch(e.type){case i.ConditionalExpression:if(e.test===n)return!1;n=e;continue;case i.SequenceExpression:if(e.expressions[e.expressions.length-1]!==n)return!1;n=e;continue;case i.ReturnStatement:r=!0,n=e;continue;case i.BlockStatement:case i.IfStatement:if(!r)return!1;n=e;continue;default:return!1}}}function sse(e,t){if(t.type===i.JSXElement)return!1;let n=t.parent;for(;n!=null;){if(u$(e,n)||l$(e,n))return!0;switch(n.type){case i.ArrayExpression:case i.ConditionalExpression:case i.JSXExpressionContainer:case i.JSXFragment:case i.LogicalExpression:case i.SpreadElement:n=n.parent;continue;default:if(Z.isTypeOrChainExpression(n)){n=n.parent;continue}return!1}}return!1}function cse(e){let t=Q.unwrap(e.callee);if(t.type!==i.MemberExpression)return!1;let n=Q.unwrap(t.object);return n.type===i.ArrayExpression&&n.elements.length<=1&&!n.elements.some(e=>e?.type===i.SpreadElement)}function lse(e,t){let n=e.value,r=t.value;return n==null||r==null?!1:cZ.isEqual(n,r)}function use(e){let{value:t}=e;if(t==null||t.type===i.Literal)return!0;if(t.type!==i.JSXExpressionContainer)return!1;let n=Q.unwrap(t.expression);return n.type===i.Literal?n.value!=null:n.type===i.TemplateLiteral&&n.expressions.length===0}var dse=U0({meta:{type:`problem`,docs:{description:`Prevents duplicate 'key' props on sibling elements when rendering lists.`},messages:{default:`The 'key' prop must be unique to its sibling elements.`},schema:[]},name:`no-duplicate-key`,create:fse});function fse(e){if(!/\bkey\b/u.test(e.sourceCode.text))return{};let t=/* @__PURE__ */ new Map;function n(e){let n=t.get(e);return n??(n={keys:[]},t.set(e,n)),n}function r(t,r){if(sse(e,t))return;let i=n(t),a=!1;for(let e of i.keys)lse(e.node,r)&&(e.duplicate=!0,a=!0);i.keys.push({duplicate:a,node:r})}function a(e,t){n(e).keys.push({duplicate:use(t),node:t})}return{"JSXAttribute[name.name='key']"(t){let n=t.parent.parent;switch(n.parent.type){case i.ArrayExpression:case i.JSXElement:case i.JSXFragment:r(n.parent,t);return;default:{let r=uZ.findParent(n,e=>{if(e.type!==i.CallExpression)return!1;let t=Q.unwrap(e.callee);return t.type===i.MemberExpression&&Z.isIdentifier(t.property,`map`)});if(r==null||a$(e,r.callee)||s$(e,r.callee))return;let o=r.arguments[0];if(o==null)return;let s=Q.unwrap(o);if(!Z.isFunction(s)||!ose(n,s)||cse(r))return;a(r,t)}}},"Program:exit"(){for(let{keys:n}of t.values())for(let{duplicate:t,node:r}of n)t&&e.report({messageId:`default`,node:r})}}}var pse=U0({meta:{type:`suggestion`,docs:{description:`Replaces usage of 'forwardRef' with passing 'ref' as a prop.`},fixable:`code`,hasSuggestions:!0,messages:{default:`In React 19, 'forwardRef' is no longer necessary. Pass 'ref' as a prop instead.`,suggest:`Replace 'forwardRef' with passing 'ref' as a prop.`},schema:[]},name:`no-forward-ref`,create:mse});function mse(e){if(!e.sourceCode.text.includes(`forwardRef`))return{};let{version:t}=bX(e);return(0,s0.compare)(t,`19.0.0`,`<`)?{}:{CallExpression(t){if(!h$(e,t))return;let n=Q$(t),r=hse(e,t)?[{fix:gse(e,t),messageId:`suggest`}]:[];e.report({messageId:`default`,node:n??t,suggest:r})}}}function hse(e,t){let{importSource:n}=bX(e),r=e.sourceCode.getScope(t),a=Q.unwrap(t.callee);switch(a.type){case i.Identifier:return WQ(a.name,r,n);case i.MemberExpression:return Z.isIdentifier(a.object)&&WQ(a.object.name,r,n);default:return!1}}function gse(e,t){return n=>{let[r]=t.arguments;return r==null||!Z.isFunction(r)?[]:[n.removeRange([t.range[0],r.range[0]]),n.removeRange([r.range[1],t.range[1]]),..._se(e,n,r,t.typeArguments?.params??[])]}}function _se(e,t,n,r){let[a,o]=n.params,[s,c]=r;if(a==null){let r=e.sourceCode.getFirstToken(n,{filter:e=>e.value===`(`});if(r==null||s==null||c==null)return[];let i=PZ(e,s),a=PZ(e,c);return[t.insertTextAfter(r,`{ ref }: ${a} & { ref?: React.RefObject<${i} | null> }`)]}let l=bW(a).with({type:i.Identifier},e=>`...${e.name}`).with({type:i.ObjectPattern},t=>t.properties.map(PZ(e)).join(`, `)).otherwise(()=>null),u=bW(o).with(vW.nullish,()=>`ref`).with({type:i.Identifier,name:`ref`},()=>`ref`).with({type:i.Identifier,name:vW.string},e=>`ref: ${e.name}`).otherwise(()=>null);if(l==null||u==null)return[];if(s==null||c==null)return[t.replaceText(a,[`{`,u+`,`,l,`}`].join(` `)),...o==null?[]:[t.remove(o),t.removeRange([a.range[1],o.range[0]])]];let d=PZ(e,s),f=PZ(e,c);return[t.replaceText(a,[`{`,u+`,`,l,`}:`,f,`&`,`{`,`ref?:`,`React.RefObject<${d} | null>`,`}`].join(` `)),...o==null?[]:[t.remove(o),t.removeRange([a.range[1],o.range[0]])]]}function g4(e,t){let{name:n,isAllowedProp:r,isAllowedType:i,onImplicitProp:a}=t,o=xX.getParserServices(e,!1),s=o.program.getTypeChecker(),c=e=>a0(s,e).toLowerCase();return{JSXSpreadAttribute(e){for(let t of f0(IZ(o,e.argument))){let o=t.getProperty(n);if(o==null||r(c(o)))continue;let l=s.getTypeOfSymbol(o),u=l.aliasSymbol??l.symbol;u!=null&&i(c(u))||a(e)}}}}const vse=/react\.(reactnode|reactelement|reactportal)$/i;var yse=U0({meta:{type:`problem`,docs:{description:`Prevents implicitly passing the 'children' prop to components.`},messages:{default:`This spread attribute implicitly passes the 'children' prop to a component, this could lead to unexpected behavior. If you intend to pass the 'children' prop, use 'children={value}'.`},schema:[]},name:`no-implicit-children`,create:bse});function bse(e){return e.sourceCode.text.includes(`...`)?g4(e,{name:`children`,isAllowedProp:e=>e.endsWith(`attributes.children`)||e.endsWith(`propswithchildren.children`),isAllowedType:e=>vse.test(e)||e===`jsx.element`,onImplicitProp(t){e.report({messageId:`default`,node:t})}}):{}}var xse=U0({meta:{type:`problem`,docs:{description:`Prevents implicitly passing the 'key' prop to components.`},messages:{default:`This spread attribute implicitly passes the 'key' prop to a component, this could lead to unexpected behavior. If you intend to pass the 'key' prop, use 'key={value}'.`},schema:[]},name:`no-implicit-key`,create:Sse});function Sse(e){return e.sourceCode.text.includes(`...`)?g4(e,{name:`key`,isAllowedProp:e=>e.endsWith(`react.attributes.key`),isAllowedType:e=>e.endsWith(`react.key`),onImplicitProp(t){e.report({messageId:`default`,node:t})}}):{}}const Cse=/react\.(ref|legacyref|refcallback|refobject)$/i;var wse=U0({meta:{type:`problem`,docs:{description:`Prevents implicitly passing the 'ref' prop to components.`},messages:{default:`This spread attribute implicitly passes the 'ref' prop to a component, this could lead to unexpected behavior. If you intend to pass the 'ref' prop, use 'ref={value}'.`},schema:[]},name:`no-implicit-ref`,create:Tse});function Tse(e){return e.sourceCode.text.includes(`...`)?g4(e,{name:`ref`,isAllowedProp:e=>e.endsWith(`attributes.ref`),isAllowedType:e=>Cse.test(e),onImplicitProp(t){e.report({messageId:`default`,node:t})}}):{}}var Ese=U0({meta:{type:`problem`,docs:{description:`Prevents problematic leaked values from being rendered.`},messages:{default:`Potential leaked value {{value}} that might cause unintentionally rendered values or rendering crashes.`},schema:[]},name:`no-leaked-conditional-rendering`,create:Dse});function Dse(e){if(!e.sourceCode.text.includes(`&&`))return{};let{version:t}=bX(e),n=[`any`,`boolean`,`nullish`,`object`,`enum`,`falsy boolean`,`truthy bigint`,`truthy boolean`,`truthy number`,`truthy string`,...(0,s0.compare)(t,`18.0.0`,`<`)?[]:[`string`,`falsy string`]],r=xX.getParserServices(e,!1);function a(t,o=/* @__PURE__ */ new Set){return t==null?null:Z.isJSXExpressionContainer(t)?a(t.expression,o):Z.isJSX(t)?null:Z.isTypeExpression(t)?a(t.expression,o):bW(t).with({type:i.LogicalExpression,operator:`&&`},({left:t,right:s})=>{if(t.type===i.UnaryExpression&&t.operator===`!`)return a(s,o);let c=e.sourceCode.getScope(t);if(Z.isIdentifier(t,`NaN`)||(0,wX.getStaticValue)(t,c)?.value===`NaN`)return{data:{value:PZ(e,t)},messageId:`default`,node:t};let l=o0(f0(IZ(r,t)));return Array.from(l.values()).every(e=>n.some(t=>t===e))?a(s,o):{data:{value:PZ(e,t)},messageId:`default`,node:t}}).with({type:i.ConditionalExpression},({alternate:e,consequent:t})=>a(t,o)??a(e,o)).with({type:i.Identifier},t=>o.has(t.name)?null:(o.add(t.name),bW((0,wX.findVariable)(e.sourceCode.getScope(t),t.name)?.defs.at(0)?.node).with({init:vW.select({type:vW.not(i.VariableDeclaration)})},e=>a(e,o)).otherwise(()=>null))).otherwise(()=>null)}return{JSXExpressionContainer:s4(a,FZ(e))}}var Ose=U0({meta:{type:`suggestion`,docs:{description:`Enforces that anonymous components wrapped in 'memo' or 'forwardRef' have a 'displayName' that can be used in DevTools.`},messages:{default:`Add missing 'displayName' for component.`},schema:[]},name:`no-missing-component-display-name`,create:kse});function kse(e){if(!e.sourceCode.text.includes(`memo`)&&!e.sourceCode.text.includes(`forwardRef`))return{};let{api:t,visitor:n}=A1(e,{collectDisplayName:!0,hint:y1});return LZ(n,{"Program:exit"(n){for(let{displayName:r,flag:i,node:a}of t.getAllComponents(n)){let t=Q$(a),n=(i&(u1.ForwardRef|u1.Memo))>0n;t==null&&n&&(r??e.report({messageId:`default`,node:a}))}}})}var Ase=U0({meta:{type:`suggestion`,docs:{description:`Enforces that all contexts have a 'displayName' that can be used in DevTools.`},fixable:`code`,messages:{default:`Add missing 'displayName' for context.`},schema:[]},name:`no-missing-context-display-name`,create:jse});function jse(e){if(!e.sourceCode.text.includes(`createContext`))return{};let t=[],n=[];return{CallExpression(n){f$(e,n)&&t.push(n)},[o1](e){n.push(e)},"Program:exit"(){for(let r of t){let t=YQ(r);t==null?e.report({messageId:`default`,node:r}):n.some(n=>{let r=n.left;if(r.type!==i.MemberExpression)return!1;let a=r.object;return BQ(e,t,a)})||e.report({fix(n){if(t.type!==i.Identifier||t.parent!==r.parent)return[];let a=t.parent.parent;if(a==null||a.type!==i.VariableDeclaration)return[];switch(a.parent.type){case i.BlockStatement:case i.ExportNamedDeclaration:case i.Program:case i.StaticBlock:case i.SwitchCase:case i.TSModuleBlock:break;default:return[]}let o=e.sourceCode.getLastToken(a);return o==null?[]:n.insertTextAfter(o,[`
385
+ `,t.name,`.`,`displayName`,` `,`=`,` `,JSON.stringify(t.name),`;`].join(``))},messageId:`default`,node:t})}}}}const Mse=/* @__PURE__ */ new Map([[`flatMap`,0],[`from`,1],[`map`,0]]);var Nse=U0({meta:{type:`problem`,docs:{description:`Disallows missing 'key' on items in list rendering.`},messages:{default:`Missing 'key' for element when rendering list.`,"unexpected-fragment-syntax":"Use fragment component instead of '<>' because it does not support `key`."},schema:[]},name:`no-missing-key`,create:Pse});function Pse(e){let t=0;function n(e){if(Z.isTypeOrChainExpression(e))return n(e.expression);switch(e.type){case i.JSXElement:return ZZ(e,`key`)||e.openingElement.attributes.some(e=>e.type===i.JSXSpreadAttribute)?[]:[{messageId:`default`,node:e}];case i.JSXFragment:return[{messageId:`unexpected-fragment-syntax`,node:e}];case i.ConditionalExpression:return[...n(e.consequent),...n(e.alternate)];case i.LogicalExpression:return[...n(e.left),...n(e.right)];default:return[]}}return{ArrayExpression(r){if(!(t>0)){for(let t of r.elements)if(t!=null&&t.type!==i.SpreadElement)for(let r of n(t))e.report(r)}},CallExpression(r){let a=r;if(u$(e,r)){t+=1;return}if(t>0)return;let o=Q.unwrap(a.callee);if(o.type!==i.MemberExpression||!Z.isIdentifier(o.property))return;let s=Mse.get(o.property.name);if(s==null)return;let c=a.arguments[s];if(c==null)return;let l=Q.unwrap(c);if(Z.isFunction(l))for(let t of _Z.getReturnExpressions(l).flatMap(n))e.report(t)},"CallExpression:exit"(n){u$(e,n)&&--t}}}function _4(e,t){return t!=null&&t$(`process.env.NODE_ENV`)(e,t)}function Fse(e,t,n,r){if(t==null||t.type!==i.BinaryExpression||t.operator!==n)return!1;let a=tW({type:i.Literal,value:vW.string});return _4(e,t.left)&&a(t.right)?t.right.value===r:a(t.left)&&_4(e,t.right)?t.left.value===r:!1}function Ise(e,t){return t.type===i.IfStatement&&Fse(e,t.test,`!==`,`production`)}var Lse=U0({meta:{type:`problem`,docs:{description:`Prevents incorrect usage of 'captureOwnerStack'.`},messages:{"missing-development-only-check":`Don't call 'captureOwnerStack' directly. Use 'if (process.env.NODE_ENV !== "production") {...}' to conditionally access it.`,"use-namespace-import":`Don't use named imports of 'captureOwnerStack' in files that are bundled for development and production. Use a namespace import instead.`},schema:[]},name:`no-misused-capture-owner-stack`,create:Rse});function Rse(e){if(!e.sourceCode.text.includes(`captureOwnerStack`))return{};let{importSource:t}=bX(e);return{CallExpression(t){c$(e,t)&&(uZ.hasParent(t,t=>Ise(e,t))||e.report({messageId:`missing-development-only-check`,node:t}))},ImportDeclaration(n){if(n.source.value===t)for(let t of n.specifiers)t.type===i.ImportSpecifier&&Z.isIdentifier(t.imported,`captureOwnerStack`)&&e.report({messageId:`use-namespace-import`,node:t})}}}const zse=n$(`connect`),Bse=n$(`createFragmentContainer`),Vse=n$(`createPaginationContainer`),Hse=n$(`createRefetchContainer`),Use=n$(`forwardRef`),Wse=n$(`graphql`),Gse=n$(`memo`),Kse=n$(`observer`),qse=n$(`useCallback`),Jse=n$(`withFormik`),Yse=n$(`withHandlers`),Xse=n$(`withLifecycle`),Zse=n$(`withProps`),Qse=n$(`withRouter`),$se=n$(`withState`);function ece(e,t,n){return Q.unwrap(t.callee)!==n&&(t=tce(t),!!(zse(e,t)||Bse(e,t)||Vse(e,t)||Hse(e,t)||Use(e,t)||Wse(e,t)||Gse(e,t)||Kse(e,t)||qse(e,t)||Jse(e,t)||Yse(e,t)||Xse(e,t)||Zse(e,t)||Qse(e,t)||$se(e,t)))}function tce(e){let t=e,n=Q.unwrap(t.callee);for(;n.type===i.CallExpression;)t=n,n=Q.unwrap(t.callee);return t}function nce(e,t){let n=t,r=n.parent;for(;Z.isTypeExpression(r);)n=r,r=r.parent;for(;r.type===i.CallExpression&&ece(e,r,n);)for(n=r,r=r.parent;Z.isTypeExpression(r);)n=r,r=r.parent;return r.type!==i.VariableDeclarator||!Z.isIdentifier(r.id)?null:r.id.name}function rce(e){return e.parent.type===i.JSXAttribute||XZ(e,e=>e.value?.type===i.JSXExpressionContainer)!=null}function ice(e){return uZ.hasParent(e,e=>J$(e)&&F$(e.parent.parent))}var ace=U0({meta:{type:`problem`,docs:{description:`Disallows nesting component definitions inside other components.`},messages:{default:`Do not nest component definitions inside other components or props. {{suggestion}}`},schema:[]},name:`no-nested-component-definitions`,create:oce});function oce(e){let t=A1(e,{hint:v1.DoNotIncludeJSXWithNumberValue|v1.DoNotIncludeJSXWithBooleanValue|v1.DoNotIncludeJSXWithNullValue|v1.DoNotIncludeJSXWithStringValue|v1.DoNotIncludeJSXWithUndefinedValue|v1.RequireBothSidesOfLogicalExpressionToBeJSX|v1.RequireBothBranchesOfConditionalExpressionToBeJSX|v1.DoNotIncludeFunctionDefinedAsArrayPatternElement|v1.DoNotIncludeFunctionDefinedAsArrayExpressionElement|v1.DoNotIncludeFunctionDefinedAsArrayMapCallback|v1.DoNotIncludeFunctionDefinedAsArrayFlatMapCallback}),n=Z$(e);return LZ(t.visitor,n.visitor,{"Program:exit"(r){let a=[...t.api.getAllComponents(r)],o=[...n.api.getAllComponents(r)],s=new Set(a.map(e=>e.node)),c=new Set(o.map(e=>e.node));function l(e){return uZ.findParent(e,e=>Z.isFunction(e)?s.has(e):Z.isClass(e)?c.has(e):!1)}for(let{name:t,node:n}of a)t??=nce(e,n),t!=null&&g1(t)&&(rce(n)||yQ(e,n)?e.report({data:{suggestion:`Move it to the top level or pass it as a prop.`},messageId:`default`,node:n}):l(n)==null?ice(n)&&e.report({data:{suggestion:`Move it to the top level.`},messageId:`default`,node:n}):e.report({data:{suggestion:n.parent.type===i.Property?`Move it to the top level or pass it as a prop.`:`Move it to the top level.`},messageId:`default`,node:n}));for(let{node:t}of o)l(t)!=null&&e.report({data:{suggestion:t.parent.type===i.Property?`Move it to the top level or pass it as a prop.`:`Move it to the top level.`},messageId:`default`,node:t})}})}var sce=U0({meta:{type:`problem`,docs:{description:`Disallows declaring lazy components that wrap dynamic imports inside other components or hooks.`},messages:{default:`Do not declare lazy components that wrap dynamic imports inside other components or hooks. Instead, always declare them at the top level of your module.`},schema:[]},name:`no-nested-lazy-component-declarations`,create:cce});function cce(e){if(!e.sourceCode.text.includes(`lazy`))return{};let t=A1(e),n=Z$(e),r=j1(e),i=/* @__PURE__ */ new Set;return LZ(t.visitor,n.visitor,r.visitor,{ImportExpression(t){let n=uZ.findParent(t,g$(e));n!=null&&i.add(n)},"Program:exit"(a){let o=[...t.api.getAllComponents(a),...r.api.getAllHooks(a),...n.api.getAllComponents(a)];for(let t of i)uZ.hasParent(t,e=>o.some(t=>t.node===e))&&e.report({messageId:`default`,node:t})}})}var lce=U0({meta:{type:`problem`,docs:{description:`Disallows calling 'this.setState' in 'componentDidMount' outside functions such as callbacks.`},messages:{default:"Do not call `this.setState` in `componentDidMount` outside functions such as callbacks."},schema:[]},name:`no-set-state-in-component-did-mount`,create:uce});function uce(e){return e.sourceCode.text.includes(`componentDidMount`)?{CallExpression(t){if(!X$(t))return;let n=uZ.findParent(t,F$);if(n==null)return;let r=uZ.findParent(t,z$,e=>e===n);if(r==null)return;let i=r.value==null?null:Q.unwrap(r.value);r.parent===n.body&&i!=null&&i===uZ.findParent(t,Z.isFunctionOrClass)&&e.report({messageId:`default`,node:t})}}:{}}var dce=U0({meta:{type:`problem`,docs:{description:`Disallows calling 'this.setState' in 'componentDidUpdate' outside functions such as callbacks.`},messages:{default:"Do not call `this.setState` in `componentDidUpdate` outside functions such as callbacks."},schema:[]},name:`no-set-state-in-component-did-update`,create:fce});function fce(e){return e.sourceCode.text.includes(`componentDidUpdate`)?{CallExpression(t){if(!X$(t))return;let n=uZ.findParent(t,F$);if(n==null)return;let r=uZ.findParent(t,B$,e=>e===n);if(r==null)return;let i=r.value==null?null:Q.unwrap(r.value);r.parent===n.body&&i!=null&&i===uZ.findParent(t,Z.isFunctionOrClass)&&e.report({messageId:`default`,node:t})}}:{}}var pce=U0({meta:{type:`problem`,docs:{description:`Disallows calling 'this.setState' in 'componentWillUpdate' outside functions such as callbacks.`},messages:{default:"Do not call `this.setState` in `componentWillUpdate` outside functions such as callbacks."},schema:[]},name:`no-set-state-in-component-will-update`,create:mce});function mce(e){return e.sourceCode.text.includes(`componentWillUpdate`)?{CallExpression(t){if(!X$(t))return;let n=uZ.findParent(t,F$);if(n==null)return;let r=uZ.findParent(t,U$,e=>e===n);if(r==null)return;let i=r.value==null?null:Q.unwrap(r.value);r.parent===n.body&&i!=null&&i===uZ.findParent(t,Z.isFunctionOrClass)&&e.report({messageId:`default`,node:t})}}:{}}const hce=[`use`,`useMDXComponents`];function gce(e,t){return e.sourceCode.getCommentsInside(t).some(({value:e})=>/use\([\s\S]*?\)/u.test(e)||/use[A-Z0-9]\w*\([\s\S]*?\)/u.test(e))}function _ce(e){if(e==null||e.type!==i.CallExpression)return!1;let{callee:t}=e;return t.type===i.MemberExpression?Z.isIdentifier(t.object)&&Z.isIdentifier(t.property,`mock`)?!0:Z.isIdentifier(t.object,`mock`)&&Z.isIdentifier(t.property,`module`):!1}function vce(e){return uZ.findParent(e,t=>_ce(t)?t.arguments.slice(1).some(t=>t.range[0]<=e.range[0]&&e.range[1]<=t.range[1]):!1)!=null}var yce=U0({meta:{type:`problem`,docs:{description:`Enforces that a function with the 'use' prefix uses at least one Hook inside it.`},messages:{default:`If your function doesn't call any Hooks, avoid the 'use' prefix. Instead, write it as a regular function without the 'use' prefix.`},schema:[]},name:`no-unnecessary-use-prefix`,create:bce});function bce(e){let{api:t,visitor:n}=j1(e);return LZ(n,{"Program:exit"(n){for(let{id:r,name:i,hookCalls:a,node:o}of t.getAllHooks(n))i!=null&&(a.length>0||r1(o)||hce.includes(i)||gce(e,o)||vce(o)||e.report({messageId:`default`,node:r??o}))}})}var xce=U0({meta:{type:`problem`,docs:{description:`Warns about the use of 'UNSAFE_componentWillMount' in class components.`},messages:{default:`Do not use 'UNSAFE_componentWillMount'.`},schema:[]},name:`no-unsafe-component-will-mount`,create:Sce});function Sce(e){if(!e.sourceCode.text.includes(`UNSAFE_componentWillMount`))return{};let{api:t,visitor:n}=Z$(e);return LZ(n,{"Program:exit"(n){for(let{node:r}of t.getAllComponents(n)){let{body:t}=r.body;for(let n of t)W$(n)&&e.report({messageId:`default`,node:n})}}})}var Cce=U0({meta:{type:`problem`,docs:{description:`Warns about the use of 'UNSAFE_componentWillReceiveProps' in class components.`},messages:{default:`Do not use 'UNSAFE_componentWillReceiveProps'.`},schema:[]},name:`no-unsafe-component-will-receive-props`,create:wce});function wce(e){if(!e.sourceCode.text.includes(`UNSAFE_componentWillReceiveProps`))return{};let{api:t,visitor:n}=Z$(e);return LZ(n,{"Program:exit"(n){for(let{node:r}of t.getAllComponents(n)){let{body:t}=r.body;for(let n of t)G$(n)&&e.report({messageId:`default`,node:n})}}})}var Tce=U0({meta:{type:`problem`,docs:{description:`Warns about the use of 'UNSAFE_componentWillUpdate' in class components.`},messages:{default:`Do not use 'UNSAFE_componentWillUpdate'.`},schema:[]},name:`no-unsafe-component-will-update`,create:Ece});function Ece(e){if(!e.sourceCode.text.includes(`UNSAFE_componentWillUpdate`))return{};let{api:t,visitor:n}=Z$(e);return LZ(n,{"Program:exit"(n){for(let{node:r}of t.getAllComponents(n)){let{body:t}=r.body;for(let n of t)K$(n)&&e.report({messageId:`default`,node:n})}}})}function Dce(e,t){return e===`Provider`?!0:t?!1:e.endsWith(`Context`)||e.endsWith(`CONTEXT`)}function Oce(e){return e.type===i.Literal?m4(e,`regex`)?`regexp literal`:e.value===null?`null literal`:`${typeof e.value} literal`:h0(S0(e.type,` `))}var kce=U0({meta:{type:`problem`,docs:{description:`Prevents non-stable values (i.e., object literals) from being used as a value for 'Context.Provider' or the '<Context>' shorthand in React 19 and above.`},messages:{"unstable-context-value":`A/an '{{kind}}' passed as the value prop to the context provider should not be constructed. It will change on every render. {{suggestion}}`},schema:[]},name:`no-unstable-context-value`,create:Ace});function Ace(e){let{compilationMode:t,version:n}=bX(e);if(t===`infer`||t===`all`||t===`annotation`&&e.sourceCode.ast.body.some(e=>Z.isDirective(e,`use memo`)))return{};let r=(0,s0.compare)(n,`19.0.0`,`<`),{api:a,visitor:o}=A1(e),s=/* @__PURE__ */ new WeakMap;return LZ(o,{JSXOpeningElement(n){let a=SQ(n.parent);if(a===``||!Dce(a,r))return;let o=uZ.findParent(n,Z.isFunction);if(o==null||t===`annotation`&&a1(o,`use memo`))return;let c=n.attributes.findLast(qZ(`value`));if(c?.type!==i.JSXAttribute||c.value?.type!==i.JSXExpressionContainer)return;let l=ZQ(e,c.value.expression);l!=null&&(l.node.type===i.CallExpression&&w1(l.node)||h4(s,o,()=>[]).push(l))},"Program:exit"(n){for(let{directives:r,node:i}of a.getAllComponents(n))if(!(t===`annotation`&&r.some(e=>e.directive===`use memo`)))for(let t of s.get(i)??[]){let{kind:n,node:r}=t,i=n===`function`?`Consider wrapping it in a useCallback hook.`:`Consider wrapping it in a useMemo hook.`;e.report({data:{kind:Oce(r),suggestion:i},messageId:`unstable-context-value`,node:r})}}})}function jce(e){return e.type===i.Literal?m4(e,`regex`)?`regexp literal`:e.value===null?`null literal`:`${typeof e.value} literal`:h0(S0(e.type,` `))}var Mce=U0({meta:{type:`problem`,defaultOptions:[{}],docs:{description:`Prevents using referential-type values as default props in object destructuring.`},messages:{default:`A/an '{{kind}}' as default prop. This could lead to potential infinite render loop in React. Use a variable instead of '{{kind}}'.`},schema:[{type:`object`,additionalProperties:!1,properties:{safeDefaultProps:{type:`array`,description:`Property names or patterns that are safe to use as default props.`,items:{type:`string`}}}}]},name:`no-unstable-default-props`,create:Nce});function Nce(e){let t=(e.options[0]??{}).safeDefaultProps??[],{compilationMode:n}=bX(e);if(n===`infer`||n===`all`||n===`annotation`&&e.sourceCode.ast.body.some(e=>Z.isDirective(e,`use memo`)))return{};let{api:r,visitor:a}=A1(e),o=/* @__PURE__ */ new WeakMap,s=t.map(e=>fX(e));return LZ(a,{"VariableDeclarator[id.type='ObjectPattern'][init.type='Identifier']"(e){let t=uZ.findParent(e,Z.isFunction);t!=null&&h4(o,t,()=>[]).push(e)},"Program:exit"(t){for(let{node:n}of r.getAllComponents(t)){let{params:t}=n,[r]=t;if(r==null)continue;let a=bW(r).with({type:i.ObjectPattern},({properties:e})=>e).with({type:i.Identifier},({name:e})=>o.get(n)?.filter(t=>t.init.name===e).flatMap(e=>e.id.properties)??[]).otherwise(()=>[]);for(let t of a){if(t.type!==i.Property||!Z.isObjectPatternElementDefault(t.value))continue;let{value:n}=t,{right:r}=n,a=ZQ(e,n);if(a!=null&&!(a.node.type===i.CallExpression&&w1(a.node))){if(s.length>0){let e=e=>Z.isIdentifier(e)?e.name:null,t=bW(r).with({type:i.NewExpression},t=>e(t.callee)).with({type:i.CallExpression},t=>bW(Q.unwrap(t.callee)).when(Z.isIdentifier,({name:e})=>e).when(Z.isMemberExpression,({object:t})=>e(t)).otherwise(()=>null)).otherwise(()=>null);if(t!=null&&s.some(e=>e.test(t)))continue}e.report({data:{kind:jce(r)},messageId:`default`,node:r})}}}}})}const Pce=/* @__PURE__ */ new Set([`componentDidCatch`,`componentDidMount`,`componentDidUpdate`,`componentWillMount`,`componentWillReceiveProps`,`componentWillUnmount`,`componentWillUpdate`,`constructor`,`getSnapshotBeforeUpdate`,`render`,`shouldComponentUpdate`,`state`,`UNSAFE_componentWillMount`,`UNSAFE_componentWillReceiveProps`,`UNSAFE_componentWillUpdate`]),Fce=/* @__PURE__ */ new Set([`blur`,`focus`,`measure`,`measureInWindow`,`measureLayout`,`setNativeProps`]);function Ice(e){switch(e.parent.type){case i.ExportDefaultDeclaration:case i.ExportNamedDeclaration:return!0;case i.VariableDeclarator:return e.parent.parent.parent.type===i.ExportNamedDeclaration;default:return!1}}function Lce(e){switch(e.type){case i.MethodDefinition:return e.accessibility==null||e.accessibility===`public`;case i.PropertyDefinition:return(e.accessibility==null||e.accessibility===`public`)&&e.value!=null&&Z.isOneOf([i.ArrowFunctionExpression,i.FunctionExpression])(e.value);default:return!1}}var Rce=U0({meta:{type:`suggestion`,docs:{description:`Warns about unused class component methods and properties.`},messages:{default:`Unused method or property '{{methodName}}' of class '{{className}}'.`},schema:[]},name:`no-unused-class-component-members`,create:zce});function zce(e){if(!e.sourceCode.text.includes(`Component`))return{};let t=/* @__PURE__ */ new WeakMap,n=/* @__PURE__ */ new WeakMap,r=/* @__PURE__ */ new WeakMap;function a(e,t){let n=Q.unwrap(e);return!t&&Z.isIdentifier(n)?n.name:n.type===i.Literal&&typeof n.value==`string`?n.value:n.type===i.TemplateLiteral&&n.expressions.length===0?n.quasis[0]?.value.cooked??n.quasis[0]?.value.raw??null:null}function o(i){if(!F$(i))return;let a=w$(i),o=t.get(i);if(o==null)return;let s=r.get(i),c=Ice(i),l=n.get(i);for(let[t,n]of o){if(s?.has(t)??!1)continue;let r=t===`shouldComponentUpdate`&&I$(i);Pce.has(t)&&!r||Fce.has(t)||c&&(l?.has(t)??!1)||e.report({data:{className:a==null?`Component`:PZ(e,a),methodName:t},messageId:`default`,node:n})}}function s(e){let r=uZ.findParent(e,Z.isClass);if(r==null||!F$(r)||e.static||e.computed||!Z.isIdentifier(e.key))return;let i=e.key.name,a=h4(t,r,()=>/* @__PURE__ */ new Map);a.has(i)||a.set(i,e.key),Lce(e)&&h4(n,r,()=>/* @__PURE__ */ new Set).add(i)}return{"ClassDeclaration:exit":o,"ClassExpression:exit":o,MemberExpression(e){let n=uZ.findParent(e,Z.isClass),o=uZ.findParent(e,Z.isPropertyOrMethod);if(n==null||o==null||!F$(n)||o.static||e.object.type!==i.ThisExpression)return;if(e.parent.type===i.AssignmentExpression&&e.parent.left===e){if(!e.computed&&Z.isIdentifier(e.property)){let r=h4(t,n,()=>/* @__PURE__ */ new Map);r.has(e.property.name)||r.set(e.property.name,e.property)}return}let s=a(e.property,e.computed);s!=null&&h4(r,n,()=>/* @__PURE__ */ new Set).add(s)},MethodDefinition:s,PropertyDefinition:s,VariableDeclarator(e){let t=uZ.findParent(e,Z.isClass),n=uZ.findParent(e,Z.isPropertyOrMethod);if(t!=null&&n!=null&&F$(t)&&!n.static&&e.init!=null&&e.init.type===i.ThisExpression&&e.id.type===i.ObjectPattern)for(let n of e.id.properties){if(n.type!==i.Property)continue;let e=a(n.key,n.computed);e!=null&&h4(r,t,()=>/* @__PURE__ */ new Set).add(e)}}}}function v4(e,t,n){switch(n.type){case i.Identifier:return b4(e,t,n);case i.ObjectPattern:return y4(e,t,n);case i.AssignmentPattern:return v4(e,t,n.left);default:return!1}}function y4(e,t,n){for(let r of n.properties)switch(r.type){case i.Property:{let e=x4(r.key,r.computed);if(e==null)return!1;t.add(e);break}case i.RestElement:if(!Bce(e,t,r))return!1}return!0}function Bce(e,t,n){switch(n.argument.type){case i.Identifier:return b4(e,t,n.argument);default:return!1}}function b4(e,t,n){let r=e.sourceCode.getScope(n).variables.find(e=>e.name===n.name);if(r==null)return!1;for(let i of r.references)if(i.identifier!==n&&!Vce(e,t,i))return!1;return!0}function Vce(e,t,n){let r=n.identifier;for(;Z.isTypeExpression(r.parent)||r.parent.type===i.ChainExpression;)r=r.parent;let a=r.parent;switch(a.type){case i.MemberExpression:if(a.object===r){let e=x4(a.property,a.computed);return e!=null&&(t.add(e),!0)}break;case i.VariableDeclarator:if(a.init!==r)break;if(a.id.type===i.ObjectPattern)return y4(e,t,a.id);if(a.id.type===i.Identifier)return b4(e,t,a.id)}return!1}function x4(e,t=!1){switch(e.type){case i.Identifier:return t?null:e.name;case i.Literal:if(d4(e.value))return e.value;break;case i.TemplateLiteral:if(e.expressions.length===0&&e.quasis.length===1)return e.quasis[0]?.value.cooked??null}return null}var Hce=U0({meta:{type:`suggestion`,docs:{description:`Warns about component props that are defined but never used.`},messages:{default:"Prop `{{name}}` is declared but never used"},schema:[]},name:`no-unused-props`,create:Uce});function Uce(e){let t=xX.getParserServices(e,!1),n=t.program.getTypeChecker(),{api:r,visitor:i}=A1(e);return LZ(i,{"Program:exit"(i){let a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Set;for(let s of r.getAllComponents(i)){let[r]=s.node.params;if(r==null)continue;let i=t.esTreeNodeToTSNodeMap.get(r),c=n.getTypeAtLocation(i).getProperties(),l=/* @__PURE__ */ new Set,u=v4(e,l,r);for(let e of c){let t=e.getDeclarations()?.[0];t!=null&&(a.has(t)||a.set(t,e),(!u||l.has(e.name))&&o.add(t))}}for(let[n,r]of a.entries())o.has(n)||Wce(e,t,r)}})}function Wce(e,t,n){let r=n.getDeclarations()?.[0];if(r==null)return;let a=t.tsNodeToESTreeNodeMap.get(r);if(a==null)return;let o=a.type===i.TSPropertySignature?a.key:a;e.report({data:{name:n.name},messageId:`default`,node:o})}var Gce=U0({meta:{type:`problem`,docs:{description:`Warns about state variables that are defined but never used.`},messages:{default:`State variable '{{name}}' is defined but never used.`},schema:[]},name:`no-unused-state`,create:Kce});function Kce(e){let{additionalStateHooks:t}=bX(e),n=[];return{CallExpression(e){if(!E1(e,t))return;let{parent:r}=e;if(r.type!==i.VariableDeclarator||r.id.type!==i.ArrayPattern)return;let[a]=r.id.elements;a?.type===i.Identifier&&n.push({name:a.name,node:a})},"Program:exit"(){for(let{name:t,node:r}of n){let n=e.sourceCode.getScope(r),i=(0,wX.findVariable)(n,t);if(i==null)continue;let a=!1;for(let e of i.references)if(!e.isWrite()&&e.identifier!==r){a=!0;break}a||e.report({data:{name:t},messageId:`default`,node:r})}}}}var qce=U0({meta:{type:`suggestion`,docs:{description:`Replaces usage of 'useContext' with 'use'.`},fixable:`code`,hasSuggestions:!0,messages:{default:`In React 19, 'use' is preferred over 'useContext' because it is more flexible.`,suggest:`Replace 'useContext' with 'use'.`},schema:[]},name:`no-use-context`,create:Jce});function Jce(e){if(!e.sourceCode.text.includes(`useContext`))return{};let{version:t}=bX(e);return(0,s0.compare)(t,`19.0.0`,`<`)?{}:{CallExpression(t){b$(e,t)&&e.report({messageId:`default`,node:t.callee,suggest:[{fix(e){switch(t.callee.type){case i.Identifier:return e.replaceText(t.callee,`use`);case i.MemberExpression:return e.replaceText(t.callee.property,`use`)}return null},messageId:`suggest`}]})}}}const S4=/* @__PURE__ */ new Map([[`Atomics`,/* @__PURE__ */ new Set([`add`,`and`,`compareExchange`,`exchange`,`load`,`notify`,`or`,`store`,`sub`,`wait`,`waitAsync`,`xor`])],[`caches`,/* @__PURE__ */ new Set([`delete`,`has`,`keys`,`match`,`open`])],[`clipboard`,/* @__PURE__ */ new Set([`read`,`readText`,`write`,`writeText`])],[`cookieStore`,/* @__PURE__ */ new Set([`delete`,`get`,`getAll`,`set`])],[`crypto`,/* @__PURE__ */ new Set([`getRandomValues`,`randomUUID`])],[`Date`,/* @__PURE__ */ new Set([`now`])],[`document`,/* @__PURE__ */ new Set(/* @__PURE__ */ `adoptNode.append.close.createAttribute.createAttributeNS.createCDATASection.createComment.createDocumentFragment.createDocumentType.createElement.createElementNS.createEvent.createNodeIterator.createProcessingInstruction.createRange.createTextNode.createTreeWalker.elementFromPoint.elementsFromPoint.execCommand.exitFullscreen.exitPictureInPicture.exitPointerLock.getAnimations.getElementById.getElementsByClassName.getElementsByName.getElementsByTagName.getElementsByTagNameNS.getSelection.hasFocus.importNode.open.prepend.querySelector.querySelectorAll.replaceChildren.requestStorageAccess.startViewTransition.write.writeln`.split(`.`))],[`globalThis`,/* @__PURE__ */ new Set(/* @__PURE__ */ `addEventListener.alert.blur.cancelAnimationFrame.cancelIdleCallback.clearInterval.clearTimeout.close.confirm.Date.dispatchEvent.fetch.focus.getComputedStyle.getSelection.matchMedia.moveBy.moveTo.open.postMessage.print.prompt.queueMicrotask.removeEventListener.reportError.requestAnimationFrame.requestIdleCallback.resizeBy.resizeTo.scroll.scrollBy.scrollTo.setInterval.setTimeout.stop.structuredClone`.split(`.`))],[`history`,/* @__PURE__ */ new Set([`back`,`forward`,`go`,`pushState`,`replaceState`])],[`indexedDB`,/* @__PURE__ */ new Set([`databases`,`deleteDatabase`,`open`])],[`localStorage`,/* @__PURE__ */ new Set([`clear`,`getItem`,`key`,`removeItem`,`setItem`])],[`location`,/* @__PURE__ */ new Set([`assign`,`reload`,`replace`])],[`Math`,/* @__PURE__ */ new Set([`random`])],[`navigation`,/* @__PURE__ */ new Set([`back`,`forward`,`navigate`,`reload`,`traverseTo`,`updateCurrentEntry`])],[`navigator`,/* @__PURE__ */ new Set([`canShare`,`getBattery`,`getGamepads`,`getUserMedia`,`javaEnabled`,`registerProtocolHandler`,`requestMediaKeySystemAccess`,`requestMIDIAccess`,`sendBeacon`,`share`,`vibrate`])],[`Notification`,/* @__PURE__ */ new Set([`requestPermission`])],[`Object`,/* @__PURE__ */ new Set([`assign`,`defineProperties`,`defineProperty`,`freeze`,`preventExtensions`,`seal`,`setPrototypeOf`])],[`performance`,/* @__PURE__ */ new Set([`clearMarks`,`clearMeasures`,`getEntries`,`getEntriesByName`,`getEntriesByType`,`mark`,`measure`,`now`])],[`process`,/* @__PURE__ */ new Set([`abort`,`chdir`,`cpuUsage`,`emitWarning`,`exit`,`hrtime`,`kill`,`memoryUsage`,`nextTick`,`send`,`stderr`,`stdout`])],[`Reflect`,/* @__PURE__ */ new Set([`defineProperty`,`deleteProperty`,`preventExtensions`,`set`,`setPrototypeOf`])],[`scheduler`,/* @__PURE__ */ new Set([`postTask`,`yield`])],[`sessionStorage`,/* @__PURE__ */ new Set([`clear`,`getItem`,`key`,`removeItem`,`setItem`])],[`URL`,/* @__PURE__ */ new Set([`createObjectURL`,`revokeObjectURL`])],[`window`,/* @__PURE__ */ new Set(/* @__PURE__ */ `addEventListener.alert.blur.cancelAnimationFrame.cancelIdleCallback.clearInterval.clearTimeout.close.confirm.Date.dispatchEvent.fetch.focus.getComputedStyle.getSelection.matchMedia.moveBy.moveTo.open.postMessage.print.prompt.queueMicrotask.removeEventListener.reportError.requestAnimationFrame.requestIdleCallback.resizeBy.resizeTo.scroll.scrollBy.scrollTo.setInterval.setTimeout.stop.structuredClone`.split(`.`))]]),Yce=/* @__PURE__ */ new Set([`Audio`,`AudioContext`,`BroadcastChannel`,`Date`,`EventSource`,`FileReader`,`Image`,`IntersectionObserver`,`MediaRecorder`,`MediaSource`,`MediaStream`,`MessageChannel`,`MutationObserver`,`Notification`,`OfflineAudioContext`,`PerformanceObserver`,`ReportingObserver`,`ResizeObserver`,`RTCPeerConnection`,`SharedWorker`,`WebSocket`,`Worker`,`XMLHttpRequest`]),Xce=/* @__PURE__ */ new Map([[`Array`,/* @__PURE__ */ new Set([`from`,`isArray`,`of`])],[`Atomics`,/* @__PURE__ */ new Set([`isLockFree`])],[`BigInt`,/* @__PURE__ */ new Set([`asIntN`,`asUintN`])],[`Date`,/* @__PURE__ */ new Set([`parse`,`UTC`])],[`globalThis`,/* @__PURE__ */ new Set([`atob`,`Boolean`,`btoa`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`isFinite`,`isNaN`,`Number`,`parseFloat`,`parseInt`,`String`,`unescape`])],[`JSON`,/* @__PURE__ */ new Set([`parse`,`stringify`])],[`Math`,/* @__PURE__ */ new Set(/* @__PURE__ */ `abs.acos.acosh.asin.asinh.atan.atan2.atanh.cbrt.ceil.clz32.cos.cosh.exp.expm1.floor.fround.hypot.imul.log.log1p.log2.log10.max.min.pow.round.sign.sin.sinh.sqrt.tan.tanh.trunc`.split(`.`))],[`Number`,/* @__PURE__ */ new Set([`isFinite`,`isInteger`,`isNaN`,`isSafeInteger`,`parseFloat`,`parseInt`])],[`Object`,/* @__PURE__ */ new Set([`entries`,`fromEntries`,`getOwnPropertyDescriptor`,`getOwnPropertyDescriptors`,`getOwnPropertyNames`,`getOwnPropertySymbols`,`getPrototypeOf`,`groupBy`,`hasOwn`,`is`,`isExtensible`,`isFrozen`,`isSealed`,`keys`,`values`])],[`Reflect`,/* @__PURE__ */ new Set([`apply`,`construct`,`get`,`getOwnPropertyDescriptor`,`getPrototypeOf`,`has`,`isExtensible`,`ownKeys`])],[`String`,/* @__PURE__ */ new Set([`fromCharCode`,`fromCodePoint`,`raw`])]]);function C4(e){return S4.has(e)||Xce.has(e)}function Zce(e){return e.body.some(e=>e.type===i.ExpressionStatement&&e.directive===`use client`)}function Qce(e,t){for(let n of e.properties){if(n.type!==i.Property||(n.value.type===i.AssignmentPattern?n.value.left:n.value)!==t)continue;let e=Q.unwrap(n.key);return!n.computed&&Z.isIdentifier(e)?e.name:e.type===i.Literal&&typeof e.value==`string`?e.value:e.type===i.TemplateLiteral&&e.expressions.length===0?e.quasis[0]?.value.cooked??e.quasis[0]?.value.raw??null:null}return null}function w4(e,t,n=/* @__PURE__ */ new Set){let r=Q.unwrap(t),a=[];for(let e=r;e.type===i.MemberExpression;e=Q.unwrap(e.object)){if(e.computed)return null;a.unshift(Q.unwrap(e.property)),r=Q.unwrap(e.object)}if(!Z.isIdentifier(r)||a.length===0||!a.every(e=>Z.isIdentifier(e)))return null;let o=T4(e,r,n);if(o==null)return null;let s=o.property??o.object,c=a.map(e=>e.name);if(C4(s))for(let e of c.slice(0,-1)){if(!C4(e))return null;s=e}return{object:s,property:c.at(-1)??null}}function T4(e,t,n=/* @__PURE__ */ new Set){if(n.has(t.name))return null;n.add(t.name);let r=e.sourceCode.getScope(t),a=(0,wX.findVariable)(r,t);if(a==null)return{object:t.name,property:null};let o=a.defs[0];if(o==null||o.type===gk.DefinitionType.ImplicitGlobalVariable)return{object:t.name,property:null};if(o.type===gk.DefinitionType.Variable&&o.node.init!=null){let t=Q.unwrap(o.node.init),r=Z.isIdentifier(t)?T4(e,t,n):t.type===i.MemberExpression?w4(e,t,n):null;if(r==null)return null;if(o.node.id.type===i.ObjectPattern){let e=Qce(o.node.id,o.name);return e==null?null:{object:r.property??r.object,property:e}}return o.node.id.type===i.ArrayPattern?null:r}return null}var $ce=U0({meta:{type:`problem`,docs:{description:`Validates that components and hooks are pure by checking that they do not call known-impure functions or construct known-impure objects during render.`},messages:{default:`Do not call '{{name}}' during render. Components and hooks must be pure. Move this call into an event handler, effect, or state initializer.`},schema:[]},name:`purity`,create:ele});function ele(e){let t=j1(e),n=A1(e),r=[],a=[];return LZ(t.visitor,n.visitor,{CallExpression(t){let n=Q.unwrap(t.callee);switch(!0){case Z.isIdentifier(n):{let i=T4(e,n);if(i==null||!(i.property==null?S4.get(`globalThis`)?.has(i.object)??!1:S4.get(i.object)?.has(i.property)??!1))return;let a=uZ.findParent(t,Z.isFunction);if(a==null)return;r.push({func:a,node:t});break}case n.type===i.MemberExpression&&Z.isIdentifier(n.property):{let i=w4(e,n);if(i==null||i.property==null||!S4.get(i.object)?.has(i.property))return;let a=uZ.findParent(t,Z.isFunction);if(a==null)return;r.push({func:a,node:t});break}}},NewExpression(t){let n=Q.unwrap(t.callee);if(!Z.isIdentifier(n))return;let r=T4(e,n);if(r==null)return;let i=r.property!=null&&C4(r.object)?r.property:r.object;if(!Yce.has(i)||i===`Date`&&t.arguments.length>0)return;let o=uZ.findParent(t,Z.isFunction);o!=null&&a.push({func:o,node:t})},"Program:exit"(i){let o=n.api.getAllComponents(i),s=t.api.getAllHooks(i),c=[...o,...s],l=Zce(i);for(let{func:t,node:n}of[...r,...a])c.some(e=>e.node===t)&&(!l&&t.async&&o.some(e=>e.node===t)||e.report({data:{name:PZ(e,n)},messageId:`default`,node:n}))}})}const tle=/* @__PURE__ */ new Set([`every`,`filter`,`find`,`findIndex`,`findLast`,`findLastIndex`,`flatMap`,`forEach`,`map`,`reduce`,`reduceRight`,`some`,`sort`]);function E4(e){return Z.isOneOf([i.ArrowFunctionExpression,i.FunctionExpression])(e)}function D4(e){return e===`ref`||e.endsWith(`Ref`)}function nle(e){let t=Q.unwrap(e.callee),n=Q.getCalleeName(e);if(n==null)return[];if(t.type===i.MemberExpression&&tle.has(n))return[0];switch(n){case`useMemo`:case`useState`:return[0];case`useReducer`:return[0,2];default:return[]}}function rle(e,t,n){let r=e.parent;for(;r!=null&&r!==t;){if(Z.isFunction(r)&&!n.has(r))return!1;r=r.parent}return r===t}function ile(e){let t=e.parent;for(;Z.isTypeExpression(t);)t=t.parent;let n=t.type===i.AssignmentExpression?t.left===e||Q.unwrap(t.left)===e:t.type===i.UpdateExpression||t.type===i.UnaryExpression&&t.operator===`delete`?t.argument===e||Q.unwrap(t.argument)===e:!1;return{isInitializationWrite:t.type===i.AssignmentExpression&&t.operator===`=`&&(t.left===e||Q.unwrap(t.left)===e),isWrite:n||ole(e)||ale(e),node:e}}function ale(e){let t=e,n=e.parent;for(;;){switch(n.type){case i.MemberExpression:if(n.object!==t&&Q.unwrap(n.object)!==t)return!1;break;case i.Property:if(n.value!==t)return!1;break;case i.ObjectPattern:case i.ArrayPattern:case i.RestElement:break;case i.AssignmentPattern:if(n.left!==t)return!1;break;case i.AssignmentExpression:return n.operator===`=`&&n.left===t;case i.ForInStatement:case i.ForOfStatement:return n.left===t;default:return!1}t=n,n=n.parent}}function ole(e){let t=e,n=!1;for(;;){let e=t.parent;for(;Z.isTypeExpression(e);)e=e.parent;if(e.type===i.MemberExpression&&(e.object===t||Q.unwrap(e.object)===t))t=e,n=!0;else return n?e.type===i.AssignmentExpression?e.left===t||Q.unwrap(e.left)===t:e.type===i.UpdateExpression||e.type===i.UnaryExpression&&e.operator===`delete`?e.argument===t||Q.unwrap(e.argument)===t:!1:!1}}function O4(e,t,n){let r=Q.unwrap(e);if(r.type===i.UnaryExpression&&r.operator===`!`){let e=Q.unwrap(r.argument);if(e.type!==i.BinaryExpression)return null;let a=O4(e,t,n);return a===`consequent`?`alternate`:a===`alternate`?`consequent`:null}if(r.type!==i.BinaryExpression||!/^(===|==|!==|!=)$/.test(r.operator))return null;let a=(e,r)=>t(Q.unwrap(e))&&n(Q.unwrap(r));return!a(r.left,r.right)&&!a(r.right,r.left)?null:r.operator===`===`||r.operator===`==`?`consequent`:`alternate`}function sle(e,t){let n=e;for(;Z.isTypeExpression(n.parent);)n=n.parent;return n.parent.type===i.BinaryExpression&&(n=n.parent),n.parent.type===i.UnaryExpression&&n.parent.operator===`!`&&(n=n.parent),n.parent.type===i.IfStatement&&n.parent.test===n&&t(n.parent.test)!=null}function cle(e,t){let n=e,r=e.parent;for(;r!=null&&!Z.isFunction(r);){if(r.type===i.IfStatement){let e=r.consequent===n?`consequent`:r.alternate===n?`alternate`:null,i=t(r.test);if(e!=null&&i!=null)return{inNullBranch:e===i}}n=r,r=r.parent}return null}function lle(e,t){let n=e;for(;n.parent?.type!==i.BlockStatement;){if(n.parent==null||Z.isFunction(n.parent))return!1;n=n.parent}let r=n.parent,a=r.body.findIndex(e=>e===n);for(let e=a-1;e>=0;e--){let n=r.body[e];if(n?.type!==i.IfStatement)continue;let a=t(n.test);if(a==null)continue;let o=a===`alternate`?n.consequent:n.alternate;return o!=null&&DZ.isUnconditionallyTerminating(o)}return!1}function ule(){let e={bindings:[],callEdges:[],jsxRefs:[],passSites:[],refAccesses:[]};return{facts:e,visitor:{AssignmentExpression(t){if(t.operator!==`=`)return;let n=Q.unwrap(t.left);if(Z.isIdentifier(n)){e.bindings.push({id:n,kind:`identifier`,position:t.range[0],value:t.right});return}if(n.type!==i.MemberExpression||!Z.isIdentifier(n.property))return;let r=Q.unwrap(n.object);Z.isIdentifier(r)&&e.bindings.push({kind:`member`,object:r,position:t.range[0],property:n.property.name,value:t.right})},CallExpression(t){let n=uZ.findParent(t,Z.isFunction);n!=null&&(e.callEdges.push({caller:n,node:t}),e.passSites.push({caller:n,node:t}))},FunctionDeclaration(t){t.id!=null&&e.bindings.push({id:t.id,kind:`function`,node:t,position:-1})},JSXAttribute(t){if(t.name.type!==i.JSXIdentifier||t.name.name!==`ref`||t.value?.type!==i.JSXExpressionContainer)return;let n=Q.unwrap(t.value.expression);Z.isIdentifier(n)&&e.jsxRefs.push(n)},MemberExpression(t){if(!Z.isIdentifier(t.property,`current`))return;let n=uZ.findParent(t,Z.isFunction);n!=null&&e.refAccesses.push({...ile(t),enclosingFunction:n})},NewExpression(t){let n=uZ.findParent(t,Z.isFunction);n!=null&&e.passSites.push({caller:n,node:t})},TaggedTemplateExpression(t){let n=uZ.findParent(t,Z.isFunction);n!=null&&e.passSites.push({caller:n,node:t})},VariableDeclarator(t){Z.isIdentifier(t.id)&&t.init!=null&&e.bindings.push({id:t.id,kind:`identifier`,position:t.range[0],value:t.init})}}}}function k4(e,t){return uZ.findParent(e,e=>Z.isFunction(e)&&t.has(e))}function A4(e,t){return t.has(e)?e:k4(e,t)}function j4(e,t,n){let r=n.get(t);return r!=null&&rle(e,t,r)}function dle(e,t,n){let r=/* @__PURE__ */ new Map;for(let a of t){let t=A4(a.caller,e);if(t==null)continue;let o=[n(a.node.callee,a.node.range[0])];for(let e of nle(a.node)){let t=a.node.arguments[e];t!=null&&t.type!==i.SpreadElement&&o.push(n(t,a.node.range[0]))}for(let n of o){if(n==null||k4(n,e)!==t)continue;let i=r.get(t)??/* @__PURE__ */ new Map;r.set(t,i);let o=i.get(a.caller)??/* @__PURE__ */ new Set;o.add(n),i.set(a.caller,o)}}return r}function fle(e,t){let n=/* @__PURE__ */ new Map;for(let r of e){let e=/* @__PURE__ */ new Set([r]);n.set(r,e);let i=t.get(r);if(i==null)continue;let a=[r];for(let t=a.pop();t!=null;t=a.pop())for(let n of i.get(t)??[])e.has(n)||(e.add(n),a.push(n))}return n}function ple(e,t,n,r){let i=[],a=/* @__PURE__ */ new Map;for(let o of e.toSorted((e,t)=>e.node.range[0]-t.node.range[0])){let e=r.getRefTarget(o.node);if(e==null)continue;let s=A4(o.enclosingFunction,t);if(s==null||!j4(o.node,s,n))continue;let c=!1;if(e.identity!=null){let t=e.identity,n=e=>r.getNullBranch(e,t);if(sle(o.node,n))continue;let i=cle(o.node,n);if(i!=null){if(i.inNullBranch&&o.isInitializationWrite)c=!0;else if(!i.inNullBranch&&!o.isWrite)continue}else o.isInitializationWrite&&lle(o.node,n)&&(c=!0)}if(c&&e.identity!=null){let t=a.get(s)??/* @__PURE__ */ new Set;a.set(s,t),t.has(e.identity)?i.push({kind:`duplicate-init`,node:o.node}):t.add(e.identity)}else i.push({kind:o.isWrite?`write`:`read`,node:o.node})}return i}function mle(e){if(e.type!==i.TaggedTemplateExpression)return Q.getCalleeName(e);let t=Q.unwrap(e.tag);return Z.isIdentifier(t)?t.name:t.type===i.MemberExpression&&!t.computed&&Z.isIdentifier(t.property)?t.property.name:null}function hle(e,t,n,r){if(t===`mergeRefs`)return!0;if(e.type!==i.Identifier)return!1;let a=r.getVariable(e);return a!=null&&r.resolveAliasTarget(a,n).name===`mergeRefs`}function gle(e,t,n,r){let a=[];for(let o of e){let e=A4(o.caller,t);if(e==null||!j4(o.node,e,n))continue;let s=o.node,c=Q.unwrap(s.type===i.TaggedTemplateExpression?s.tag:s.callee),l=mle(s),u=s.type===i.TaggedTemplateExpression?s.quasi.expressions:s.arguments;if(!(s.type===i.CallExpression&&w1(s))&&!hle(c,l,s.range[0],r)&&(l!==`render`||c.type!==i.MemberExpression))for(let e of u){if(e.type===i.SpreadElement)continue;let t=Q.unwrap(e);if(!Z.isIdentifier(t))continue;let n=r.getVariable(t);n!=null&&r.resolveRef(n,t.range[0])!=null&&a.push({kind:`pass`,node:t})}}return a}function _le(e,t){let{additionalRefHooks:n}=bX(e),r=/* @__PURE__ */ new Map,a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Set;function s(t){return(0,wX.findVariable)(e.sourceCode.getScope(t),t)??null}function c(t){let r=Q.unwrap(t);if(Z.isIdentifier(r)){let e=s(r);return e==null?{kind:`unknown`}:{kind:`variable`,variable:e}}return E4(r)?{kind:`function`,node:r}:r.type===i.CallExpression&&(T1(r,n)||m$(e,r))||r.type===i.MemberExpression&&Z.isIdentifier(r.property)&&D4(r.property.name)?{kind:`ref`}:{kind:`unknown`}}function l(e,t,n){let i=r.get(e)??[];r.set(e,i),i.push({position:n,value:t})}for(let e of t.bindings)switch(e.kind){case`function`:{let t=s(e.id);t!=null&&l(t,{kind:`function`,node:e.node},e.position);break}case`identifier`:{let t=s(e.id);t!=null&&l(t,c(e.value),e.position);break}case`member`:{let t=s(e.object);if(t==null)break;let n=a.get(t)??/* @__PURE__ */ new Map;a.set(t,n);let r=n.get(e.property)??[];n.set(e.property,r),r.push({position:e.position,value:c(e.value)});break}}for(let e of t.jsxRefs){let t=s(e);t!=null&&o.add(t)}function u(e,t,n=/* @__PURE__ */ new Set){if(n.has(e))return null;if(n.add(e),o.has(e)||D4(e.name))return e;let i=M4(r.get(e),t);if(i!=null)switch(i.value.kind){case`ref`:return e;case`variable`:return u(i.value.variable,i.position,n);case`function`:case`unknown`:return null}return null}function d(e,t,n=/* @__PURE__ */ new Set){if(n.has(e))return null;n.add(e);let i=M4(r.get(e),t);if(i==null)return null;switch(i.value.kind){case`function`:return i.value.node;case`variable`:return d(i.value.variable,i.position,n);case`ref`:case`unknown`:return null}}function f(e,t,n=/* @__PURE__ */ new Set){if(n.has(e))return e;n.add(e);let i=M4(r.get(e),t);return i!=null&&i.value.kind===`variable`?f(i.value.variable,i.position,n):e}function p(e,t){let n=Q.unwrap(e);if(E4(n))return n;if(Z.isIdentifier(n)){let e=s(n);return e==null?null:d(e,t)}if(n.type!==i.MemberExpression||!Z.isIdentifier(n.property))return null;let r=Q.unwrap(n.object),o=n.property.name;if(!Z.isIdentifier(r))return null;let c=s(r);if(c==null)return null;let l=M4(a.get(c)?.get(o),t);return l==null?null:l.value.kind===`function`?l.value.node:l.value.kind===`variable`?d(l.value.variable,l.position):null}function m(e){let t=Q.unwrap(e.object);if(Z.isIdentifier(t)){let n=s(t);if(n==null)return null;let r=u(n,e.range[0]);return r==null?null:{identity:r}}return t.type===i.MemberExpression&&Z.isIdentifier(t.property)&&D4(t.property.name)?{identity:null}:null}function h(e,t){return O4(e,e=>e.type!==i.MemberExpression||!Z.isIdentifier(e.property,`current`)?!1:m(e)?.identity===t,e=>{if(e.type===i.Literal)return e.value==null;if(e.type===i.UnaryExpression&&e.operator===`void`)return!0;if(!Z.isIdentifier(e,`undefined`))return!1;let t=s(e);return t==null||t.defs.length===0})}return{getNullBranch:h,getRefTarget:m,getVariable:s,resolveAliasTarget:f,resolveCallable:p,resolveRef:u}}function M4(e,t){let n=null;for(let r of e??[])r.position>t||(n==null||r.position>=n.position)&&(n=r);return n}var vle=U0({meta:{type:`problem`,docs:{description:`Validates correct usage of refs by checking that 'ref.current' is not read or written during render.`},messages:{"duplicate-ref-init":`Ref is initialized more than once during render. Only a single 'if (ref.current == null)' initialization is allowed; move any additional initialization into an effect or event handler.`,"read-during-render":`Cannot access refs during render`,"ref-passed-to-function":`Passing a ref to a function may read its value during render`,"write-during-render":`Cannot update ref during render`},schema:[]},name:`refs`,create:yle});function yle(e){let t=j1(e),n=A1(e),r=ule();return LZ(t.visitor,n.visitor,r.visitor,{"Program:exit"(i){let a=/* @__PURE__ */ new Set([...n.api.getAllComponents(i).map(e=>e.node),...t.api.getAllHooks(i).map(e=>e.node)]),o=_le(e,r.facts),s=fle(a,dle(a,r.facts.callEdges,o.resolveCallable)),c=[...ple(r.facts.refAccesses,a,s,o),...gle(r.facts.passSites,a,s,o)];for(let t of c)e.report({messageId:bW(t).with({kind:`duplicate-init`},()=>`duplicate-ref-init`).with({kind:`pass`},()=>`ref-passed-to-function`).with({kind:`read`},()=>`read-during-render`).with({kind:`write`},()=>`write-during-render`).exhaustive(),node:t.node})}})}function N4(e,t){if(!e)throw Error(t??`Assertion violated.`)}function P4(e){return e.reachable}var F4=class e{id;nextSegments;prevSegments;allNextSegments;allPrevSegments;reachable;internal;constructor(e,t,n){this.id=e,this.nextSegments=[],this.prevSegments=t.filter(P4),this.allNextSegments=[],this.allPrevSegments=t,this.reachable=n,this.internal={used:!1,loopedPrevSegments:[]}}isLoopedPrevSegment(e){return this.internal.loopedPrevSegments.includes(e)}static newRoot(t){return new e(t,[],!0)}static newNext(t,n){return new e(t,e.flattenUnusedSegments(n),n.some(P4))}static newUnreachable(t,n){let r=new e(t,e.flattenUnusedSegments(n),!1);return e.markUsed(r),r}static newDisconnected(t,n){return new e(t,[],n.some(P4))}static markUsed(e){if(e.internal.used)return;e.internal.used=!0;let t;if(e.reachable)for(t=0;t<e.allPrevSegments.length;++t){let n=e.allPrevSegments[t];n.allNextSegments.push(e),n.nextSegments.push(e)}else for(t=0;t<e.allPrevSegments.length;++t)e.allPrevSegments[t].allNextSegments.push(e)}static markPrevSegmentAsLooped(e,t){e.internal.loopedPrevSegments.push(t)}static flattenUnusedSegments(e){let t=Object.create(null),n=[];for(let r=0;r<e.length;++r){let i=e[r];if(!t[i.id]){if(i.internal.used)t[i.id]=!0,n.push(i);else for(let e=0;e<i.allPrevSegments.length;++e){let r=i.allPrevSegments[e];t[r.id]||(t[r.id]=!0,n.push(r))}}}return n}};function ble(e){return e.reachable}function I4(e,t,n,r){let i=e.segmentsList,a=t>=0?t:i.length+t,o=n>=0?n:i.length+n,s=[];for(let t=0;t<e.count;++t){let n=[];for(let e=a;e<=o;++e)n.push(i[e][t]);s.push(r(e.idGenerator.next(),n))}return s}function L4(e,t){let n=t;for(;n.length>e.count;){let t=[];for(let r=0,i=n.length/2|0;r<i;++r)t.push(F4.newNext(e.idGenerator.next(),[n[r],n[r+i]]));n=t}return n}var R4=class e{idGenerator;upper;count;segmentsList;constructor(e,t,n){this.idGenerator=e,this.upper=t,this.count=n,this.segmentsList=[]}get head(){let e=this.segmentsList;return e.length===0?[]:e[e.length-1]}get empty(){return this.segmentsList.length===0}get reachable(){let e=this.head;return e.length>0&&e.some(ble)}makeNext(e,t){return I4(this,e,t,F4.newNext)}makeUnreachable(e=NaN,t=NaN){return I4(this,e,t,F4.newUnreachable)}makeDisconnected(e,t){return I4(this,e,t,F4.newDisconnected)}add(e){N4(e.length>=this.count,`${e.length} >= ${this.count}`),this.segmentsList.push(L4(this,e))}replaceHead(e){N4(e.length>=this.count,`${e.length} >= ${this.count}`),this.segmentsList.splice(-1,1,L4(this,e))}addAll(e){N4(e.count===this.count);let t=e.segmentsList;for(let e=0;e<t.length;++e)this.segmentsList.push(t[e])}clear(){this.segmentsList=[]}static newRoot(t){let n=new e(t,null,1);return n.add([F4.newRoot(t.next())]),n}static newEmpty(t,n){return new e(t.idGenerator,t,(n?2:1)*t.count)}};function z4(e,t,n,r){for(let i=0;i<r.length;++i){let a=r[i];e.push(a),t.includes(a)||n.push(a)}}function xle(e,t){if(!t)return e.loopContext;let n=e.loopContext;for(;n;){if(n.label===t)return n;n=n.upper}
386
386
  /* c8 ignore next */
387
387
  return null}function Sle(e,t){let n=e.breakContext;for(;n;){if(t?n.label===t:n.breakable)return n;n=n.upper}
388
388
  /* c8 ignore next */
@@ -398,11 +398,11 @@ useMemo() callbacks are called by React to cache calculations across re-renders.
398
398
 
399
399
  useMemo() callbacks must be pure functions and cannot reassign variables defined outside of the callback function.`,"result-must-be-used":`useMemo() result is unused.
400
400
 
401
- This useMemo() value is unused. useMemo() is for computing and caching values, not for arbitrary side effects.`},schema:[]},name:`use-memo`,create:yue});function yue(e){if(!e.sourceCode.text.includes(`useMemo`))return{};let t=mue(S$(e));return LZ(t.visitor,{"Program:exit"(){for(let n of _ue(e,t.facts))e.report({messageId:n.kind,node:n.node})}})}const x3=[`Boolean`,`String`,`Number`];var bue=U0({meta:{type:`suggestion`,defaultOptions:[{}],docs:{description:`Enforces correct usage of 'useState', including destructuring, symmetric naming of the value and setter, and wrapping expensive initializers in a lazy initializer function.`},messages:{"invalid-initialization":`To prevent re-computation, consider using lazy initial state for useState calls that involve function calls. Ex: 'useState(() => getValue())'.`,"invalid-assignment":`useState should be destructured into a value and setter pair, e.g., const [state, setState] = useState(...).`,"invalid-setter-name":`The setter should be named 'set' followed by the capitalized state variable name, e.g., 'setState' for 'state'.`},schema:[{type:`object`,additionalProperties:!1,properties:{enforceAssignment:{type:`boolean`,description:`Require the useState result to be assigned to a destructured value/setter pair.`},enforceLazyInitialization:{type:`boolean`,description:`Require expensive initializers to be wrapped in a lazy initializer function.`},enforceSetterName:{type:`boolean`,description:`Require the setter name to match the state value name.`}}}]},name:`use-state`,create:xue});function xue(e){let t=e.options[0]??{},n=t.enforceAssignment??!0,r=t.enforceLazyInitialization??!0,a=t.enforceSetterName??!0,{additionalStateHooks:o}=bX(e);return{CallExpression(t){if(!E1(t,o))return;if(r){let[n]=t.arguments;if(n!=null){for(let t of _Z.getNewExpressions(n))m4(t.callee,`name`)&&(x3.includes(t.callee.name)||uZ.hasParent(t,v$(e))||e.report({messageId:`invalid-initialization`,node:t}));for(let t of _Z.getCallExpressions(n))m4(t.callee,`name`)&&(x1(t.callee.name)||x3.includes(t.callee.name)||uZ.hasParent(t,v$(e))||e.report({messageId:`invalid-initialization`,node:t}))}}let s=t.parent;for(;Z.isTypeExpression(s);)s=s.parent;if(s.type===i.ReturnStatement||s.type===i.ArrowFunctionExpression)return;if(s.type!==i.VariableDeclarator){if(!n)return;e.report({messageId:`invalid-assignment`,node:t});return}let c=YQ(t);if(c?.type!==i.ArrayPattern){if(!n)return;e.report({messageId:`invalid-assignment`,node:c??t});return}let[l,u]=c.elements;if(l==null){if(!n)return;e.report({messageId:`invalid-assignment`,node:c})}else u!=null&&a&&(l.type===i.Identifier?u.type===i.Identifier&&u.name.startsWith(`set`)&&C0(u.name)===`set_${C0(l.name)}`||e.report({messageId:`invalid-setter-name`,node:u}):e.report({messageId:`invalid-assignment`,node:l}))}}}const S3={meta:{name:B0,version:V0},rules:{"error-boundaries":W0,"exhaustive-deps":K0,globals:g2,immutability:R2,"no-access-state-in-setstate":B2,"no-array-index-key":K2,"no-children-count":J2,"no-children-for-each":X2,"no-children-map":Q2,"no-children-only":e4,"no-children-to-array":n4,"no-class-component":Hoe,"no-clone-element":Woe,"no-component-will-mount":Koe,"no-component-will-receive-props":Joe,"no-component-will-update":Xoe,"no-context-provider":Qoe,"no-create-ref":ese,"no-direct-mutation-state":nse,"no-duplicate-key":dse,"no-forward-ref":pse,"no-implicit-children":yse,"no-implicit-key":xse,"no-implicit-ref":wse,"no-leaked-conditional-rendering":Ese,"no-missing-component-display-name":Ose,"no-missing-context-display-name":Ase,"no-missing-key":Nse,"no-misused-capture-owner-stack":Lse,"no-nested-component-definitions":ace,"no-nested-lazy-component-declarations":sce,"no-set-state-in-component-did-mount":lce,"no-set-state-in-component-did-update":dce,"no-set-state-in-component-will-update":pce,"no-unnecessary-use-prefix":yce,"no-unsafe-component-will-mount":xce,"no-unsafe-component-will-receive-props":Cce,"no-unsafe-component-will-update":Tce,"no-unstable-context-value":kce,"no-unstable-default-props":Mce,"no-unused-class-component-members":Rce,"no-unused-props":Hce,"no-unused-state":Gce,"no-use-context":qce,purity:$ce,refs:vle,"rules-of-hooks":Lle,"set-state-in-effect":Gle,"set-state-in-render":Qle,"static-components":cue,"unsupported-syntax":due,"use-memo":vue,"use-state":bue}};var Sue=/* @__PURE__ */ T0({name:()=>Cue,plugins:()=>w3,rules:()=>C3,settings:()=>T3});const Cue=`react-x/recommended`,C3={"react-x/error-boundaries":`error`,"react-x/exhaustive-deps":`warn`,"react-x/no-access-state-in-setstate":`error`,"react-x/no-array-index-key":`warn`,"react-x/no-children-count":`warn`,"react-x/no-children-for-each":`warn`,"react-x/no-children-map":`warn`,"react-x/no-children-only":`warn`,"react-x/no-children-to-array":`warn`,"react-x/no-clone-element":`warn`,"react-x/no-component-will-mount":`error`,"react-x/no-component-will-receive-props":`error`,"react-x/no-component-will-update":`error`,"react-x/no-context-provider":`warn`,"react-x/no-create-ref":`error`,"react-x/no-direct-mutation-state":`error`,"react-x/no-forward-ref":`warn`,"react-x/no-missing-key":`error`,"react-x/no-nested-component-definitions":`error`,"react-x/no-nested-lazy-component-declarations":`error`,"react-x/no-set-state-in-component-did-mount":`warn`,"react-x/no-set-state-in-component-did-update":`warn`,"react-x/no-set-state-in-component-will-update":`warn`,"react-x/no-unnecessary-use-prefix":`warn`,"react-x/no-unsafe-component-will-mount":`warn`,"react-x/no-unsafe-component-will-receive-props":`warn`,"react-x/no-unsafe-component-will-update":`warn`,"react-x/no-unused-class-component-members":`warn`,"react-x/no-use-context":`warn`,"react-x/purity":`warn`,"react-x/rules-of-hooks":`error`,"react-x/set-state-in-effect":`warn`,"react-x/set-state-in-render":`error`,"react-x/static-components":`error`,"react-x/unsupported-syntax":`error`,"react-x/use-memo":`error`,"react-x/use-state":`warn`},w3={"react-x":S3},T3={"react-x":mX};var wue=/* @__PURE__ */ T0({name:()=>Tue,plugins:()=>D3,rules:()=>E3,settings:()=>O3});const Tue=`react-x/recommended-typescript`,E3={...C3},D3={...w3},O3={...T3};var Eue=/* @__PURE__ */ T0({name:()=>Due,plugins:()=>kue,rules:()=>Oue,settings:()=>Aue});const Due=`react-x/recommended-type-checked`,Oue={...E3,"react-x/no-leaked-conditional-rendering":`error`},kue={...D3},Aue={...O3};var jue=/* @__PURE__ */ T0({name:()=>Mue,plugins:()=>A3,rules:()=>k3,settings:()=>j3});const Mue=`react-x/strict`,k3={...C3,"react-x/no-class-component":`error`,"react-x/no-misused-capture-owner-stack":`error`,"react-x/no-unstable-context-value":`warn`,"react-x/no-unstable-default-props":`warn`},A3={...w3},j3={...T3};var Nue=/* @__PURE__ */ T0({name:()=>Pue,plugins:()=>N3,rules:()=>M3,settings:()=>P3});const Pue=`react-x/strict-typescript`,M3={...k3},N3={...A3},P3={...j3};var Fue=/* @__PURE__ */ T0({name:()=>Iue,plugins:()=>Rue,rules:()=>Lue,settings:()=>zue});const Iue=`react-x/strict-type-checked`,Lue={...M3,"react-x/no-leaked-conditional-rendering":`error`,"react-x/no-unused-props":`warn`},Rue={...N3},zue={...P3};function F3(e){return{...e,plugins:{...e.plugins,get"react-x"(){return I3}}}}const I3={...S3,configs:{"disable-conflict-eslint-plugin-react":F3(E0),"disable-conflict-eslint-plugin-react-hooks":F3(A0),"disable-experimental":F3(P0),"disable-type-checked":F3(L0),recommended:F3(Sue),"recommended-type-checked":F3(Eue),"recommended-typescript":F3(wue),strict:F3(jue),"strict-type-checked":F3(Fue),"strict-typescript":F3(Nue)}};var L3=Object.defineProperty,R3=(e,t)=>{let n=Object.setPrototypeOf({},null);for(var r in e)L3(n,r,{get:e[r],enumerable:!0});return t&1||L3(n,Symbol.toStringTag,{value:`Module`}),t&2?n:Object.preventExtensions(n)},Bue=`eslint-plugin-react-jsx`,Vue=`5.30.4`;function Hue(e){return`https://eslint-react.xyz/docs/rules/jsx-${e}`}const z3=xX.RuleCreator(Hue);function B3(e,t,n){let r=n.range[0];for(;r>0&&/\s/.test(e.sourceCode.text[r-1]??``);)r--;return t.removeRange([r,n.range[1]])}var Uue=z3({meta:{type:`problem`,docs:{description:`Disallows passing 'children' as a prop when children are also passed as nested content.`},fixable:`code`,hasSuggestions:!0,messages:{default:`Do not pass 'children' as a prop when the element already has children content.`,"remove-children-prop":`Remove the 'children' prop.`,"remove-children-content":`Remove the nested children content.`},schema:[]},name:`no-children-prop-with-children`,create:Wue});function Wue(e){return{CallExpression(t){let n=hQ(e,t);if(n==null)return;let r=_Q(e,n,`children`);r!=null&&n.childrenArguments.length!==0&&e.report({messageId:`default`,node:r})},JSXElement(t){let n=YZ(t,`children`);n!=null&&pQ(t)&&e.report({messageId:`default`,node:n,suggest:[{fix(t){return B3(e,t,n)},messageId:`remove-children-prop`},{fix(e){let n=t.children.at(0),r=t.children.at(-1);return n==null||r==null?[]:e.removeRange([n.range[0],r.range[1]])},messageId:`remove-children-content`}]})}}}var Gue=z3({meta:{type:`suggestion`,docs:{description:`Disallows passing 'children' as a prop.`},fixable:`code`,hasSuggestions:!0,messages:{default:`Do not pass 'children' as props.`,suggest:`Move 'children' to element content.`},schema:[]},name:`no-children-prop`,create:Kue});function Kue(e){return{CallExpression(t){let n=hQ(e,t);if(n==null)return;let r=_Q(e,n,`children`);r==null||n.childrenArguments.length>0||e.report({messageId:`default`,node:r})},JSXElement(t){let n=YZ(t,`children`);if(n==null||pQ(t))return;let r=t.openingElement.attributes.some(e=>e.type===i.JSXSpreadAttribute&&e.range[0]>n.range[0]),a=que(e,n);a==null||r?e.report({messageId:`default`,node:n}):e.report({messageId:`default`,node:n,suggest:[{fix:Yue(e,t,n,a),messageId:`suggest`}]})}}}function que(e,t){let{value:n}=t;if(n?.type===i.Literal)return Jue(String(n.value));if(n?.type===i.JSXExpressionContainer&&n.expression.type!==i.JSXEmptyExpression){let t=PZ(e,n.expression);return Z.isJSXElementOrFragment(n.expression)?t:`{${t}}`}return null}function Jue(e){return e.replaceAll(`&`,`&amp;`).replaceAll(`<`,`&lt;`).replaceAll(`>`,`&gt;`).replaceAll(`{`,`&#123;`).replaceAll(`}`,`&#125;`)}function Yue(e,t,n,r){return i=>{let{openingElement:a}=t,o=B3(e,i,n);if(a.selfClosing){let t=PZ(e,a.name),s=PZ(e,a).lastIndexOf(`/>`),c=a.range[0]+s;for(;c>n.range[1]&&/\s/.test(e.sourceCode.text[c-1]);)c--;return[o,i.replaceTextRange([c,a.range[1]],`>${r}</${t}>`)]}return t.closingElement==null?[o]:[o,i.insertTextBefore(t.closingElement,r)]}}var Xue=z3({meta:{type:`problem`,docs:{description:`Prevents comment strings from being accidentally inserted into a JSX element's text nodes.`},messages:{default:`Possible misused comment in text node. Comments inside children section of tag should be placed inside braces.`},schema:[]},name:`no-comment-textnodes`,create:Zue});function Zue(e){return{JSXText(t){Z.isJSXElementOrFragment(t.parent)&&/^\s*\/(?:\/|\*)/mu.test(PZ(e,t))&&e.report({messageId:`default`,node:t})}}}const Que=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;e<r;e++)n=t[e](n);return n}}},$ue={pipe(){return Que(this,arguments)}};(function(){function e(){}return e.prototype=$ue,e})();const V3=function(e,t){if(typeof e==`function`)return function(){return e(arguments)?t.apply(this,arguments):(e=>t(e,...arguments))};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}};V3(2,(e,t)=>n=>t(e(n)));function ede(e){return t=>!e(t)}V3(2,(e,t)=>n=>e(n)&&t(n)),V3(2,(e,t)=>n=>e(n)||t(n)),V3(2,(e,t)=>n=>e(n)!==t(n)),V3(2,(e,t)=>n=>e(n)===t(n)),V3(2,(e,t)=>n=>!e(n)||t(n)),V3(2,(e,t)=>n=>!e(n)&&!t(n)),V3(2,(e,t)=>n=>!e(n)||!t(n));function tde(e){return typeof e==`function`}function nde(e){return typeof e==`object`&&!!e||tde(e)}V3(2,(e,t)=>nde(e)&&t in e);const rde=V3(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(i)});V3(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(0,i)});var ide=z3({meta:{type:`problem`,docs:{description:`Prevent patterns that cause deoptimization when using the automatic JSX runtime.`},messages:{default:`Placing 'key' after spread props causes deoptimization when using the automatic JSX runtime. Put 'key' before any spread props.`},schema:[]},name:`no-key-after-spread`,create:ade});function ade(e){if(!/key\s*=/.test(e.sourceCode.text))return{};let{jsx:t}=I1(e);return t!==w.JsxEmit.ReactJSX&&t!==w.JsxEmit.ReactJSXDev?{}:{JSXOpeningElement(t){for(let n of rde(t.attributes,ede(Z.isJSXSpreadAttribute)).filter(qZ(`key`)))e.report({messageId:`default`,node:n})}}}var ode=z3({meta:{type:`suggestion`,docs:{description:'Catches `$` before `{expr}` in JSX — typically from template literal `${expr}` being copy-pasted into JSX without removing the `$`. The `$` "leaks" into the rendered output.'},fixable:`code`,hasSuggestions:!0,messages:{default:`Leaked '$' in JSX. This '$' will be rendered as text nodes.`,suggest:`Remove the text node '$'.`},schema:[]},name:`no-leaked-dollar`,create:sde});function sde(e){return e.sourceCode.text.includes(`$`)?{JSXElement(t){H3(e,t)},JSXFragment(t){H3(e,t)}}:{}}function H3(e,t){let n=null;for(let[r,a]of t.children.entries()){if(a.type!==i.JSXText||!a.value.endsWith(`$`))continue;let o=t.children[r+1];if(o?.type!==i.JSXExpressionContainer||(n??=t.children.filter(dQ).length,cde(a,o,n))||!PZ(e,a).endsWith(`$`))continue;let s=a.range[1]-1,c=a.range[1];e.report({loc:{end:e.sourceCode.getLocFromIndex(c),start:e.sourceCode.getLocFromIndex(s)},messageId:`default`,node:a,suggest:[{fix(e){return e.removeRange([s,c])},messageId:`suggest`}]})}}function cde(e,t,n){return e.value.trim()===`$`&&n===1+ +!!dQ(t)}var lde=z3({meta:{type:`problem`,docs:{description:'Catches `;` at the start of JSX text nodes — typically from accidentally placing a statement-ending `;` inside JSX. The `;` "leaks" into the rendered output.'},fixable:`code`,hasSuggestions:!0,messages:{default:`Leaked ';' in JSX. This ';' will be rendered as text nodes.`,suggest:`Remove the text node ';'.`},schema:[]},name:`no-leaked-semicolon`,create:ude});function ude(e){return{JSXText(t){if(!Z.isJSXElementOrFragment(t.parent))return;let n=PZ(e,t),r=t.parent.children,i=r.at(-2),a=r.at(-1)===t&&i!=null&&(Z.isJSXElementOrFragment(i)||Z.isJSXExpressionContainer(i))&&/^;+[ \t]*$/u.test(n);(/^;+[ \t]*(?:\r\n|\r|\n)/u.test(n)||a)&&e.report({messageId:`default`,node:t,suggest:[{fix(e){return e.removeRange([t.range[0],t.range[0]+1])},messageId:`suggest`}]})}}}var dde=z3({meta:{type:`problem`,docs:{description:`Disallow JSX namespace syntax, as React does not support them.`},messages:{default:`A React component '{{name}}' must not be in a namespace, as React does not support them.`},schema:[]},name:`no-namespace`,create:fde});function fde(e){return{JSXElement(t){let{name:n}=t.openingElement;n.type===i.JSXNamespacedName&&e.report({data:{name:bQ(t)},messageId:`default`,node:n})}}}var pde=z3({meta:{type:`suggestion`,defaultOptions:[{}],docs:{description:`Disallows useless fragment elements.`},fixable:`code`,messages:{default:`A fragment {{reason}} is useless.`},schema:[{type:`object`,additionalProperties:!1,properties:{allowEmptyFragment:{type:`boolean`,description:`Allow empty fragments`},allowExpressions:{type:`boolean`,description:`Allow fragments with a single expression child`}}}]},name:`no-useless-fragment`,create:mde});function mde(e){let t=e.options[0]??{},n=t.allowEmptyFragment??!1,r=t.allowExpressions??!0,{jsxFragmentFactory:i}=I1(e);return{JSXElement(t){CQ(t,i)&&(hde(t)||U3(e,t,n,r))},JSXFragment(t){U3(e,t,n,r)}}}function hde(e){return e.openingElement.attributes.some(e=>e.type===i.JSXSpreadAttribute)||QZ(e,[`key`,`ref`])}function U3(e,t,n,r){let i=[];if(wQ(t.parent)&&i.push(`placed inside a host component`),gde(t,n,r)&&i.push(`contains less than two children`),i.length===0)return;let a=vde(e,t);for(let n of i)e.report({data:{reason:n},fix:a,messageId:`default`,node:t})}function gde(e,t,n){if(e.children.length===0)return!t;let r=Z.isJSXElementOrFragment(e.parent);if(n&&!r&&e.children.length===1&&e.children[0]?.type===i.JSXText)return!1;let a=fQ(e);return a.length===0?!0:a.length>1?!1:a[0]?.type!==i.JSXExpressionContainer||!n}function _de(e){return Z.isJSXElementOrFragment(e.parent)?wQ(e.parent):e.children.some(e=>Z.isJSXElementOrFragment(e))?e.children.every(e=>Z.isJSXElementOrFragment(e)?!0:e.type===i.JSXText&&iQ(e)):!1}function vde(e,t){return _de(t)?n=>{let r=e.sourceCode,a=``;for(let n of t.children)if(n.type===i.JSXText){let e=rQ(n.value);e!=null&&(a+=e)}else a+=PZ(e,n);let o=t.range[0];if(a===``&&t.children.length>0){let e=Math.max(r.text.lastIndexOf(`
402
- `,o-1),r.text.lastIndexOf(`\r`,o-1))+1;/^[ \t]*$/u.test(r.text.slice(e,o))&&(o=e)}return n.replaceTextRange([o,t.range[1]],a)}:null}const W3={meta:{name:Bue,version:Vue},rules:{"no-children-prop":Gue,"no-children-prop-with-children":Uue,"no-comment-textnodes":Xue,"no-key-after-spread":ide,"no-leaked-dollar":ode,"no-leaked-semicolon":lde,"no-namespace":dde,"no-useless-fragment":pde}};var yde=/* @__PURE__ */ R3({name:()=>bde,plugins:()=>K3,rules:()=>G3,settings:()=>q3});const bde=`react-jsx/recommended`,G3={"react-jsx/no-children-prop":`warn`,"react-jsx/no-children-prop-with-children":`error`,"react-jsx/no-comment-textnodes":`warn`,"react-jsx/no-key-after-spread":`error`,"react-jsx/no-leaked-dollar":`warn`,"react-jsx/no-leaked-semicolon":`warn`,"react-jsx/no-namespace":`error`},K3={"react-jsx":W3},q3={"react-x":mX};var xde=/* @__PURE__ */ R3({name:()=>Sde,plugins:()=>wde,rules:()=>Cde,settings:()=>Tde});const Sde=`react-jsx/strict`,Cde={...G3,"react-jsx/no-children-prop":`error`,"react-jsx/no-useless-fragment":`warn`},wde={...K3},Tde={...q3};function J3(e){return{...e,plugins:{...e.plugins,get"react-jsx"(){return Y3}}}}const Y3={...W3,configs:{recommended:J3(yde),strict:J3(xde)}};var X3=Object.defineProperty,Z3=(e,t)=>{let n=Object.setPrototypeOf({},null);for(var r in e)X3(n,r,{get:e[r],enumerable:!0});return t&1||X3(n,Symbol.toStringTag,{value:`Module`}),t&2?n:Object.preventExtensions(n)},Ede=`eslint-plugin-react-dom`,Dde=`5.30.4`;function Ode(e){return`https://eslint-react.xyz/docs/rules/dom-${e}`}const Q3=xX.RuleCreator(Ode);function $3(e){return!aQ(e)&&!oQ(e)}var kde=Q3({meta:{type:`problem`,docs:{description:`Disallows DOM elements from using 'dangerouslySetInnerHTML' and 'children' at the same time.`},messages:{default:`A DOM component cannot use both children and 'dangerouslySetInnerHTML'.`},schema:[]},name:`no-dangerously-set-innerhtml-with-children`,create:Ade});function Ade(e){return e.sourceCode.text.includes(`dangerouslySetInnerHTML`)?{JSXElement(t){if(!ZZ(t,`dangerouslySetInnerHTML`))return;let n=YZ(t,`children`)??t.children.find($3);n!=null&&e.report({messageId:`default`,node:n})}}:{}}var jde=Q3({meta:{type:`problem`,docs:{description:`Disallows DOM elements from using 'dangerouslySetInnerHTML'.`},messages:{default:`Using 'dangerouslySetInnerHTML' may have security implications.`},schema:[]},name:`no-dangerously-set-innerhtml`,create:Mde});function Mde(e){return e.sourceCode.text.includes(`dangerouslySetInnerHTML`)?{JSXElement(t){let n=YZ(t,`dangerouslySetInnerHTML`);n!=null&&e.report({messageId:`default`,node:n})}}:{}}function e6(e,t,n,r=!1){let a=Q.unwrap(e.callee);return Z.isIdentifier(a)?r&&a.name===n||t.has(a.name,n):a.type===i.MemberExpression&&Z.isIdentifier(a.object)&&Q.getCalleeName(e)===n&&t.isModuleBinding(a.object.name)}var Nde=Q3({meta:{type:`problem`,docs:{description:`Disallows 'findDOMNode'.`},messages:{default:`[Deprecated] Use alternatives instead.`},schema:[]},name:`no-find-dom-node`,create:Pde});function Pde(e){if(!e.sourceCode.text.includes(`findDOMNode`))return{};let t=MQ(e.sourceCode.ast,{builtinNamespaces:[`React`,`ReactDOM`],source:`react-dom`});return{CallExpression(n){e6(n,t,`findDOMNode`,!0)&&e.report({messageId:`default`,node:n})}}}var Fde=Q3({meta:{type:`problem`,docs:{description:`Disallows 'flushSync'.`},messages:{default:`Using 'flushSync' is uncommon and can hurt the performance of your app.`},schema:[]},name:`no-flush-sync`,create:Ide});function Ide(e){if(!e.sourceCode.text.includes(`flushSync`))return{};let t=MQ(e.sourceCode.ast,{source:`react-dom`});return{CallExpression(n){e6(n,t,`flushSync`)&&e.report({messageId:`default`,node:n})}}}function t6(e,t,n,r){let{ast:a}=e.sourceCode,o=null,s=null,c=null;for(let e of a.body)if(Z.isDirective(e))s=e;else if(e.type===i.ImportDeclaration&&(o=e,e.importKind!==`type`)){for(let t of e.specifiers)if((t.type!==i.ImportSpecifier||t.importKind!==`type`)&&t.local.name===n)return Lde(t,e,n,r)?{kind:`exists`}:{kind:`conflict`};e.source.value===r&&(c??=e)}let l=(c?.specifiers.filter(e=>e.type===i.ImportSpecifier)??[]).at(-1);if(l!=null)return{kind:`add`,fix:t.insertTextAfter(l,`, ${n}`)};let u=`import { ${n} } from "${r}";`,d=e.sourceCode.text.includes(`\r
401
+ This useMemo() value is unused. useMemo() is for computing and caching values, not for arbitrary side effects.`},schema:[]},name:`use-memo`,create:yue});function yue(e){if(!e.sourceCode.text.includes(`useMemo`))return{};let t=mue(S$(e));return LZ(t.visitor,{"Program:exit"(){for(let n of _ue(e,t.facts))e.report({messageId:n.kind,node:n.node})}})}const x3=[`Boolean`,`String`,`Number`];var bue=U0({meta:{type:`suggestion`,defaultOptions:[{}],docs:{description:`Enforces correct usage of 'useState', including destructuring, symmetric naming of the value and setter, and wrapping expensive initializers in a lazy initializer function.`},messages:{"invalid-initialization":`To prevent re-computation, consider using lazy initial state for useState calls that involve function calls. Ex: 'useState(() => getValue())'.`,"invalid-assignment":`useState should be destructured into a value and setter pair, e.g., const [state, setState] = useState(...).`,"invalid-setter-name":`The setter should be named 'set' followed by the capitalized state variable name, e.g., 'setState' for 'state'.`},schema:[{type:`object`,additionalProperties:!1,properties:{enforceAssignment:{type:`boolean`,description:`Require the useState result to be assigned to a destructured value/setter pair.`},enforceLazyInitialization:{type:`boolean`,description:`Require expensive initializers to be wrapped in a lazy initializer function.`},enforceSetterName:{type:`boolean`,description:`Require the setter name to match the state value name.`}}}]},name:`use-state`,create:xue});function xue(e){let t=e.options[0]??{},n=t.enforceAssignment??!0,r=t.enforceLazyInitialization??!0,a=t.enforceSetterName??!0,{additionalStateHooks:o}=bX(e);return{CallExpression(t){if(!E1(t,o))return;if(r){let[n]=t.arguments;if(n!=null){for(let t of _Z.getNewExpressions(n))m4(t.callee,`name`)&&(x3.includes(t.callee.name)||uZ.hasParent(t,v$(e))||e.report({messageId:`invalid-initialization`,node:t}));for(let t of _Z.getCallExpressions(n))m4(t.callee,`name`)&&(x1(t.callee.name)||x3.includes(t.callee.name)||uZ.hasParent(t,v$(e))||e.report({messageId:`invalid-initialization`,node:t}))}}let s=t.parent;for(;Z.isTypeExpression(s);)s=s.parent;if(s.type===i.ReturnStatement||s.type===i.ArrowFunctionExpression)return;if(s.type!==i.VariableDeclarator){if(!n)return;e.report({messageId:`invalid-assignment`,node:t});return}let c=YQ(t);if(c?.type!==i.ArrayPattern){if(!n)return;e.report({messageId:`invalid-assignment`,node:c??t});return}let[l,u]=c.elements;if(l==null){if(!n)return;e.report({messageId:`invalid-assignment`,node:c})}else u!=null&&a&&(l.type===i.Identifier?u.type===i.Identifier&&u.name.startsWith(`set`)&&C0(u.name)===`set_${C0(l.name)}`||e.report({messageId:`invalid-setter-name`,node:u}):e.report({messageId:`invalid-assignment`,node:l}))}}}const S3={meta:{name:B0,version:V0},rules:{"error-boundaries":W0,"exhaustive-deps":K0,globals:g2,immutability:R2,"no-access-state-in-setstate":B2,"no-array-index-key":K2,"no-children-count":J2,"no-children-for-each":X2,"no-children-map":Q2,"no-children-only":e4,"no-children-to-array":n4,"no-class-component":Hoe,"no-clone-element":Woe,"no-component-will-mount":Koe,"no-component-will-receive-props":Joe,"no-component-will-update":Xoe,"no-context-provider":Qoe,"no-create-ref":ese,"no-direct-mutation-state":nse,"no-duplicate-key":dse,"no-forward-ref":pse,"no-implicit-children":yse,"no-implicit-key":xse,"no-implicit-ref":wse,"no-leaked-conditional-rendering":Ese,"no-missing-component-display-name":Ose,"no-missing-context-display-name":Ase,"no-missing-key":Nse,"no-misused-capture-owner-stack":Lse,"no-nested-component-definitions":ace,"no-nested-lazy-component-declarations":sce,"no-set-state-in-component-did-mount":lce,"no-set-state-in-component-did-update":dce,"no-set-state-in-component-will-update":pce,"no-unnecessary-use-prefix":yce,"no-unsafe-component-will-mount":xce,"no-unsafe-component-will-receive-props":Cce,"no-unsafe-component-will-update":Tce,"no-unstable-context-value":kce,"no-unstable-default-props":Mce,"no-unused-class-component-members":Rce,"no-unused-props":Hce,"no-unused-state":Gce,"no-use-context":qce,purity:$ce,refs:vle,"rules-of-hooks":Lle,"set-state-in-effect":Gle,"set-state-in-render":Qle,"static-components":cue,"unsupported-syntax":due,"use-memo":vue,"use-state":bue}};var Sue=/* @__PURE__ */ T0({name:()=>Cue,plugins:()=>w3,rules:()=>C3,settings:()=>T3});const Cue=`react-x/recommended`,C3={"react-x/error-boundaries":`error`,"react-x/exhaustive-deps":`warn`,"react-x/no-access-state-in-setstate":`error`,"react-x/no-array-index-key":`warn`,"react-x/no-children-count":`warn`,"react-x/no-children-for-each":`warn`,"react-x/no-children-map":`warn`,"react-x/no-children-only":`warn`,"react-x/no-children-to-array":`warn`,"react-x/no-clone-element":`warn`,"react-x/no-component-will-mount":`error`,"react-x/no-component-will-receive-props":`error`,"react-x/no-component-will-update":`error`,"react-x/no-context-provider":`warn`,"react-x/no-create-ref":`error`,"react-x/no-direct-mutation-state":`error`,"react-x/no-forward-ref":`warn`,"react-x/no-missing-key":`error`,"react-x/no-nested-component-definitions":`error`,"react-x/no-nested-lazy-component-declarations":`error`,"react-x/no-set-state-in-component-did-mount":`warn`,"react-x/no-set-state-in-component-did-update":`warn`,"react-x/no-set-state-in-component-will-update":`warn`,"react-x/no-unnecessary-use-prefix":`warn`,"react-x/no-unsafe-component-will-mount":`warn`,"react-x/no-unsafe-component-will-receive-props":`warn`,"react-x/no-unsafe-component-will-update":`warn`,"react-x/no-unused-class-component-members":`warn`,"react-x/no-use-context":`warn`,"react-x/purity":`warn`,"react-x/rules-of-hooks":`error`,"react-x/set-state-in-effect":`warn`,"react-x/set-state-in-render":`error`,"react-x/static-components":`error`,"react-x/unsupported-syntax":`error`,"react-x/use-memo":`error`,"react-x/use-state":`warn`},w3={"react-x":S3},T3={"react-x":mX};var wue=/* @__PURE__ */ T0({name:()=>Tue,plugins:()=>D3,rules:()=>E3,settings:()=>O3});const Tue=`react-x/recommended-typescript`,E3={...C3},D3={...w3},O3={...T3};var Eue=/* @__PURE__ */ T0({name:()=>Due,plugins:()=>kue,rules:()=>Oue,settings:()=>Aue});const Due=`react-x/recommended-type-checked`,Oue={...E3,"react-x/no-leaked-conditional-rendering":`error`},kue={...D3},Aue={...O3};var jue=/* @__PURE__ */ T0({name:()=>Mue,plugins:()=>A3,rules:()=>k3,settings:()=>j3});const Mue=`react-x/strict`,k3={...C3,"react-x/no-class-component":`error`,"react-x/no-misused-capture-owner-stack":`error`,"react-x/no-unstable-context-value":`warn`,"react-x/no-unstable-default-props":`warn`},A3={...w3},j3={...T3};var Nue=/* @__PURE__ */ T0({name:()=>Pue,plugins:()=>N3,rules:()=>M3,settings:()=>P3});const Pue=`react-x/strict-typescript`,M3={...k3},N3={...A3},P3={...j3};var Fue=/* @__PURE__ */ T0({name:()=>Iue,plugins:()=>Rue,rules:()=>Lue,settings:()=>zue});const Iue=`react-x/strict-type-checked`,Lue={...M3,"react-x/no-leaked-conditional-rendering":`error`,"react-x/no-unused-props":`warn`},Rue={...N3},zue={...P3};function F3(e){return{...e,plugins:{...e.plugins,get"react-x"(){return I3}}}}const I3={...S3,configs:{"disable-conflict-eslint-plugin-react":F3(E0),"disable-conflict-eslint-plugin-react-hooks":F3(A0),"disable-experimental":F3(P0),"disable-type-checked":F3(L0),recommended:F3(Sue),"recommended-type-checked":F3(Eue),"recommended-typescript":F3(wue),strict:F3(jue),"strict-type-checked":F3(Fue),"strict-typescript":F3(Nue)}};var L3=Object.defineProperty,R3=(e,t)=>{let n=Object.setPrototypeOf({},null);for(var r in e)L3(n,r,{get:e[r],enumerable:!0});return t&1||L3(n,Symbol.toStringTag,{value:`Module`}),t&2?n:Object.preventExtensions(n)},Bue=`eslint-plugin-react-jsx`,Vue=`5.30.6`;function Hue(e){return`https://eslint-react.xyz/docs/rules/jsx-${e}`}const z3=xX.RuleCreator(Hue);function B3(e,t,n){let r=n.range[0];for(;r>0&&/\s/.test(e.sourceCode.text[r-1]??``);)r--;return t.removeRange([r,n.range[1]])}var Uue=z3({meta:{type:`problem`,docs:{description:`Disallows passing 'children' as a prop when children are also passed as nested content.`},fixable:`code`,hasSuggestions:!0,messages:{default:`Do not pass 'children' as a prop when the element already has children content.`,"remove-children-prop":`Remove the 'children' prop.`,"remove-children-content":`Remove the nested children content.`},schema:[]},name:`no-children-prop-with-children`,create:Wue});function Wue(e){return{CallExpression(t){let n=hQ(e,t);if(n==null)return;let r=_Q(e,n,`children`);r!=null&&n.childrenArguments.length!==0&&e.report({messageId:`default`,node:r})},JSXElement(t){let n=YZ(t,`children`);n!=null&&pQ(t)&&e.report({messageId:`default`,node:n,suggest:[{fix(t){return B3(e,t,n)},messageId:`remove-children-prop`},{fix(e){let n=t.children.at(0),r=t.children.at(-1);return n==null||r==null?[]:e.removeRange([n.range[0],r.range[1]])},messageId:`remove-children-content`}]})}}}var Gue=z3({meta:{type:`suggestion`,docs:{description:`Disallows passing 'children' as a prop.`},fixable:`code`,hasSuggestions:!0,messages:{default:`Do not pass 'children' as props.`,suggest:`Move 'children' to element content.`},schema:[]},name:`no-children-prop`,create:Kue});function Kue(e){return{CallExpression(t){let n=hQ(e,t);if(n==null)return;let r=_Q(e,n,`children`);r==null||n.childrenArguments.length>0||e.report({messageId:`default`,node:r})},JSXElement(t){let n=YZ(t,`children`);if(n==null||pQ(t))return;let r=t.openingElement.attributes.some(e=>e.type===i.JSXSpreadAttribute&&e.range[0]>n.range[0]),a=que(e,n);a==null||r?e.report({messageId:`default`,node:n}):e.report({messageId:`default`,node:n,suggest:[{fix:Yue(e,t,n,a),messageId:`suggest`}]})}}}function que(e,t){let{value:n}=t;if(n?.type===i.Literal)return Jue(String(n.value));if(n?.type===i.JSXExpressionContainer&&n.expression.type!==i.JSXEmptyExpression){let t=PZ(e,n.expression);return Z.isJSXElementOrFragment(n.expression)?t:`{${t}}`}return null}function Jue(e){return e.replaceAll(`&`,`&amp;`).replaceAll(`<`,`&lt;`).replaceAll(`>`,`&gt;`).replaceAll(`{`,`&#123;`).replaceAll(`}`,`&#125;`)}function Yue(e,t,n,r){return i=>{let{openingElement:a}=t,o=B3(e,i,n);if(a.selfClosing){let t=PZ(e,a.name),s=PZ(e,a).lastIndexOf(`/>`),c=a.range[0]+s;for(;c>n.range[1]&&/\s/.test(e.sourceCode.text[c-1]);)c--;return[o,i.replaceTextRange([c,a.range[1]],`>${r}</${t}>`)]}return t.closingElement==null?[o]:[o,i.insertTextBefore(t.closingElement,r)]}}var Xue=z3({meta:{type:`problem`,docs:{description:`Prevents comment strings from being accidentally inserted into a JSX element's text nodes.`},messages:{default:`Possible misused comment in text node. Comments inside children section of tag should be placed inside braces.`},schema:[]},name:`no-comment-textnodes`,create:Zue});function Zue(e){return{JSXText(t){Z.isJSXElementOrFragment(t.parent)&&/^\s*\/(?:\/|\*)/mu.test(PZ(e,t))&&e.report({messageId:`default`,node:t})}}}const Que=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;e<r;e++)n=t[e](n);return n}}},$ue={pipe(){return Que(this,arguments)}};(function(){function e(){}return e.prototype=$ue,e})();const V3=function(e,t){if(typeof e==`function`)return function(){return e(arguments)?t.apply(this,arguments):(e=>t(e,...arguments))};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}};V3(2,(e,t)=>n=>t(e(n)));function ede(e){return t=>!e(t)}V3(2,(e,t)=>n=>e(n)&&t(n)),V3(2,(e,t)=>n=>e(n)||t(n)),V3(2,(e,t)=>n=>e(n)!==t(n)),V3(2,(e,t)=>n=>e(n)===t(n)),V3(2,(e,t)=>n=>!e(n)||t(n)),V3(2,(e,t)=>n=>!e(n)&&!t(n)),V3(2,(e,t)=>n=>!e(n)||!t(n));function tde(e){return typeof e==`function`}function nde(e){return typeof e==`object`&&!!e||tde(e)}V3(2,(e,t)=>nde(e)&&t in e);const rde=V3(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(i)});V3(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(0,i)});var ide=z3({meta:{type:`problem`,docs:{description:`Prevent patterns that cause deoptimization when using the automatic JSX runtime.`},messages:{default:`Placing 'key' after spread props causes deoptimization when using the automatic JSX runtime. Put 'key' before any spread props.`},schema:[]},name:`no-key-after-spread`,create:ade});function ade(e){if(!/key\s*=/.test(e.sourceCode.text))return{};let{jsx:t}=I1(e);return t!==w.JsxEmit.ReactJSX&&t!==w.JsxEmit.ReactJSXDev?{}:{JSXOpeningElement(t){for(let n of rde(t.attributes,ede(Z.isJSXSpreadAttribute)).filter(qZ(`key`)))e.report({messageId:`default`,node:n})}}}var ode=z3({meta:{type:`suggestion`,docs:{description:'Catches `$` before `{expr}` in JSX — typically from template literal `${expr}` being copy-pasted into JSX without removing the `$`. The `$` "leaks" into the rendered output.'},fixable:`code`,hasSuggestions:!0,messages:{default:`Leaked '$' in JSX. This '$' will be rendered as text nodes.`,suggest:`Remove the text node '$'.`},schema:[]},name:`no-leaked-dollar`,create:sde});function sde(e){return e.sourceCode.text.includes(`$`)?{JSXElement(t){H3(e,t)},JSXFragment(t){H3(e,t)}}:{}}function H3(e,t){let n=null;for(let[r,a]of t.children.entries()){if(a.type!==i.JSXText||!a.value.endsWith(`$`))continue;let o=t.children[r+1];if(o?.type!==i.JSXExpressionContainer||(n??=t.children.filter(dQ).length,cde(a,o,n))||!PZ(e,a).endsWith(`$`))continue;let s=a.range[1]-1,c=a.range[1];e.report({loc:{end:e.sourceCode.getLocFromIndex(c),start:e.sourceCode.getLocFromIndex(s)},messageId:`default`,node:a,suggest:[{fix(e){return e.removeRange([s,c])},messageId:`suggest`}]})}}function cde(e,t,n){return e.value.trim()===`$`&&n===1+ +!!dQ(t)}var lde=z3({meta:{type:`problem`,docs:{description:'Catches `;` at the start of JSX text nodes — typically from accidentally placing a statement-ending `;` inside JSX. The `;` "leaks" into the rendered output.'},fixable:`code`,hasSuggestions:!0,messages:{default:`Leaked ';' in JSX. This ';' will be rendered as text nodes.`,suggest:`Remove the text node ';'.`},schema:[]},name:`no-leaked-semicolon`,create:ude});function ude(e){return{JSXText(t){if(!Z.isJSXElementOrFragment(t.parent))return;let n=PZ(e,t),r=t.parent.children,i=r.at(-2),a=r.at(-1)===t&&i!=null&&(Z.isJSXElementOrFragment(i)||Z.isJSXExpressionContainer(i))&&/^;+[ \t]*$/u.test(n);(/^;+[ \t]*(?:\r\n|\r|\n)/u.test(n)||a)&&e.report({messageId:`default`,node:t,suggest:[{fix(e){return e.removeRange([t.range[0],t.range[0]+1])},messageId:`suggest`}]})}}}var dde=z3({meta:{type:`problem`,docs:{description:`Disallow JSX namespace syntax, as React does not support them.`},messages:{default:`A React component '{{name}}' must not be in a namespace, as React does not support them.`},schema:[]},name:`no-namespace`,create:fde});function fde(e){return{JSXElement(t){let{name:n}=t.openingElement;n.type===i.JSXNamespacedName&&e.report({data:{name:bQ(t)},messageId:`default`,node:n})}}}var pde=z3({meta:{type:`suggestion`,defaultOptions:[{}],docs:{description:`Disallows useless fragment elements.`},fixable:`code`,messages:{default:`A fragment {{reason}} is useless.`},schema:[{type:`object`,additionalProperties:!1,properties:{allowEmptyFragment:{type:`boolean`,description:`Allow empty fragments`},allowExpressions:{type:`boolean`,description:`Allow fragments with a single expression child`}}}]},name:`no-useless-fragment`,create:mde});function mde(e){let t=e.options[0]??{},n=t.allowEmptyFragment??!1,r=t.allowExpressions??!0,{jsxFragmentFactory:i}=I1(e);return{JSXElement(t){CQ(t,i)&&(hde(t)||U3(e,t,n,r))},JSXFragment(t){U3(e,t,n,r)}}}function hde(e){return e.openingElement.attributes.some(e=>e.type===i.JSXSpreadAttribute)||QZ(e,[`key`,`ref`])}function U3(e,t,n,r){let i=[];if(wQ(t.parent)&&i.push(`placed inside a host component`),gde(t,n,r)&&i.push(`contains less than two children`),i.length===0)return;let a=vde(e,t);for(let n of i)e.report({data:{reason:n},fix:a,messageId:`default`,node:t})}function gde(e,t,n){if(e.children.length===0)return!t;let r=Z.isJSXElementOrFragment(e.parent);if(n&&!r&&e.children.length===1&&e.children[0]?.type===i.JSXText)return!1;let a=fQ(e);return a.length===0?!0:a.length>1?!1:a[0]?.type!==i.JSXExpressionContainer||!n}function _de(e){return Z.isJSXElementOrFragment(e.parent)?wQ(e.parent):e.children.some(e=>Z.isJSXElementOrFragment(e))?e.children.every(e=>Z.isJSXElementOrFragment(e)?!0:e.type===i.JSXText&&iQ(e)):!1}function vde(e,t){return _de(t)?n=>{let r=e.sourceCode,a=``;for(let n of t.children)if(n.type===i.JSXText){let e=rQ(n.value);e!=null&&(a+=e)}else a+=PZ(e,n);let o=t.range[0];if(a===``&&t.children.length>0){let e=Math.max(r.text.lastIndexOf(`
402
+ `,o-1),r.text.lastIndexOf(`\r`,o-1))+1;/^[ \t]*$/u.test(r.text.slice(e,o))&&(o=e)}return n.replaceTextRange([o,t.range[1]],a)}:null}const W3={meta:{name:Bue,version:Vue},rules:{"no-children-prop":Gue,"no-children-prop-with-children":Uue,"no-comment-textnodes":Xue,"no-key-after-spread":ide,"no-leaked-dollar":ode,"no-leaked-semicolon":lde,"no-namespace":dde,"no-useless-fragment":pde}};var yde=/* @__PURE__ */ R3({name:()=>bde,plugins:()=>K3,rules:()=>G3,settings:()=>q3});const bde=`react-jsx/recommended`,G3={"react-jsx/no-children-prop":`warn`,"react-jsx/no-children-prop-with-children":`error`,"react-jsx/no-comment-textnodes":`warn`,"react-jsx/no-key-after-spread":`error`,"react-jsx/no-leaked-dollar":`warn`,"react-jsx/no-leaked-semicolon":`warn`,"react-jsx/no-namespace":`error`},K3={"react-jsx":W3},q3={"react-x":mX};var xde=/* @__PURE__ */ R3({name:()=>Sde,plugins:()=>wde,rules:()=>Cde,settings:()=>Tde});const Sde=`react-jsx/strict`,Cde={...G3,"react-jsx/no-children-prop":`error`,"react-jsx/no-useless-fragment":`warn`},wde={...K3},Tde={...q3};function J3(e){return{...e,plugins:{...e.plugins,get"react-jsx"(){return Y3}}}}const Y3={...W3,configs:{recommended:J3(yde),strict:J3(xde)}};var X3=Object.defineProperty,Z3=(e,t)=>{let n=Object.setPrototypeOf({},null);for(var r in e)X3(n,r,{get:e[r],enumerable:!0});return t&1||X3(n,Symbol.toStringTag,{value:`Module`}),t&2?n:Object.preventExtensions(n)},Ede=`eslint-plugin-react-dom`,Dde=`5.30.6`;function Ode(e){return`https://eslint-react.xyz/docs/rules/dom-${e}`}const Q3=xX.RuleCreator(Ode);function $3(e){return!aQ(e)&&!oQ(e)}var kde=Q3({meta:{type:`problem`,docs:{description:`Disallows DOM elements from using 'dangerouslySetInnerHTML' and 'children' at the same time.`},messages:{default:`A DOM component cannot use both children and 'dangerouslySetInnerHTML'.`},schema:[]},name:`no-dangerously-set-innerhtml-with-children`,create:Ade});function Ade(e){return e.sourceCode.text.includes(`dangerouslySetInnerHTML`)?{JSXElement(t){if(!ZZ(t,`dangerouslySetInnerHTML`))return;let n=YZ(t,`children`)??t.children.find($3);n!=null&&e.report({messageId:`default`,node:n})}}:{}}var jde=Q3({meta:{type:`problem`,docs:{description:`Disallows DOM elements from using 'dangerouslySetInnerHTML'.`},messages:{default:`Using 'dangerouslySetInnerHTML' may have security implications.`},schema:[]},name:`no-dangerously-set-innerhtml`,create:Mde});function Mde(e){return e.sourceCode.text.includes(`dangerouslySetInnerHTML`)?{JSXElement(t){let n=YZ(t,`dangerouslySetInnerHTML`);n!=null&&e.report({messageId:`default`,node:n})}}:{}}function e6(e,t,n,r=!1){let a=Q.unwrap(e.callee);return Z.isIdentifier(a)?r&&a.name===n||t.has(a.name,n):a.type===i.MemberExpression&&Z.isIdentifier(a.object)&&Q.getCalleeName(e)===n&&t.isModuleBinding(a.object.name)}var Nde=Q3({meta:{type:`problem`,docs:{description:`Disallows 'findDOMNode'.`},messages:{default:`[Deprecated] Use alternatives instead.`},schema:[]},name:`no-find-dom-node`,create:Pde});function Pde(e){if(!e.sourceCode.text.includes(`findDOMNode`))return{};let t=MQ(e.sourceCode.ast,{builtinNamespaces:[`React`,`ReactDOM`],source:`react-dom`});return{CallExpression(n){e6(n,t,`findDOMNode`,!0)&&e.report({messageId:`default`,node:n})}}}var Fde=Q3({meta:{type:`problem`,docs:{description:`Disallows 'flushSync'.`},messages:{default:`Using 'flushSync' is uncommon and can hurt the performance of your app.`},schema:[]},name:`no-flush-sync`,create:Ide});function Ide(e){if(!e.sourceCode.text.includes(`flushSync`))return{};let t=MQ(e.sourceCode.ast,{source:`react-dom`});return{CallExpression(n){e6(n,t,`flushSync`)&&e.report({messageId:`default`,node:n})}}}function t6(e,t,n,r){let{ast:a}=e.sourceCode,o=null,s=null,c=null;for(let e of a.body)if(Z.isDirective(e))s=e;else if(e.type===i.ImportDeclaration&&(o=e,e.importKind!==`type`)){for(let t of e.specifiers)if((t.type!==i.ImportSpecifier||t.importKind!==`type`)&&t.local.name===n)return Lde(t,e,n,r)?{kind:`exists`}:{kind:`conflict`};e.source.value===r&&(c??=e)}let l=(c?.specifiers.filter(e=>e.type===i.ImportSpecifier)??[]).at(-1);if(l!=null)return{kind:`add`,fix:t.insertTextAfter(l,`, ${n}`)};let u=`import { ${n} } from "${r}";`,d=e.sourceCode.text.includes(`\r
403
403
  `)?`\r
404
404
  `:`
405
- `;if(o!=null)return{kind:`add`,fix:t.insertTextAfterRange(n6(e,o),`${d}${u}`)};if(s!=null)return{kind:`add`,fix:t.insertTextAfterRange(n6(e,s),`${d}${u}`)};let f=(a.body[0]==null?a.comments:e.sourceCode.getCommentsBefore(a.body[0])).at(-1);return f==null?{kind:`add`,fix:t.insertTextBefore(a,`${u}${d}`)}:{kind:`add`,fix:t.insertTextAfter(f,`${d}${u}`)}}function Lde(e,t,n,r){if(t.source.value!==r||e.type!==i.ImportSpecifier)return!1;let{imported:a}=e;return(a.type===i.Identifier?a.name:a.value)===n}function n6(e,t){let n=t;for(;;){let t=e.sourceCode.getTokenAfter(n,{includeComments:!0});if(t==null||t.type!==o.Line&&t.type!==o.Block||t.loc.start.line!==n.loc.end.line)break;n=t}return n.range}var Rde=Q3({meta:{type:`problem`,docs:{description:`Replaces usage of 'ReactDOM.hydrate()' with 'hydrateRoot()'.`},fixable:`code`,messages:{default:`[Deprecated] Use 'hydrateRoot()' instead.`},schema:[]},name:`no-hydrate`,create:zde});function zde(e){if(!e.sourceCode.text.includes(`hydrate`))return{};let{version:t}=bX(e);if((0,s0.compare)(t,`18.0.0`,`<`))return{};let n=MQ(e.sourceCode.ast,{source:`react-dom`});return{CallExpression(t){e6(t,n,`hydrate`)&&e.report({fix:Bde(e,t),messageId:`default`,node:t})}}}function Bde(e,t){return n=>{let[r,a]=t.arguments;if(r==null||a==null||t.arguments.length!==2||r.type===i.SpreadElement||a.type===i.SpreadElement||t.parent.type!==i.ExpressionStatement)return null;let o=t6(e,n,`hydrateRoot`,`react-dom/client`);return o.kind===`conflict`?null:[...o.kind===`add`?[o.fix]:[],n.replaceText(t,`hydrateRoot(${PZ(e,a)}, ${PZ(e,r)})`)]}}const Vde=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;e<r;e++)n=t[e](n);return n}}},Hde={pipe(){return Vde(this,arguments)}};(function(){function e(){}return e.prototype=Hde,e})();const r6=function(e,t){if(typeof e==`function`)return function(){return e(arguments)?t.apply(this,arguments):(e=>t(e,...arguments))};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}};r6(2,(e,t)=>n=>t(e(n))),r6(2,(e,t)=>n=>e(n)&&t(n)),r6(2,(e,t)=>n=>e(n)||t(n)),r6(2,(e,t)=>n=>e(n)!==t(n)),r6(2,(e,t)=>n=>e(n)===t(n)),r6(2,(e,t)=>n=>!e(n)||t(n)),r6(2,(e,t)=>n=>!e(n)&&!t(n)),r6(2,(e,t)=>n=>!e(n)||!t(n));function i6(e){return typeof e==`string`}function Ude(e){return typeof e==`function`}function Wde(e){return typeof e==`object`&&!!e||Ude(e)}r6(2,(e,t)=>Wde(e)&&t in e);function a6(e,t,n){if(e.has(t))return e.get(t);let r=n(t);return e.set(t,r),r}r6(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(i)}),r6(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(0,i)});function o6(e){let{polymorphicPropName:t}=bX(e);return{resolve(n){let r=bQ(n),a={domElementType:r,jsxElementType:r},o=n.openingElement.name;if(o.type===i.JSXIdentifier&&o.name.charAt(0)===o.name.charAt(0).toLowerCase())return a;let s=nQ(e,n,t);return i6(s)?{...a,domElementType:s.toLowerCase()}:a}}}const Gde=[`button`,`submit`,`reset`];var Kde=Q3({meta:{type:`problem`,docs:{description:`Enforces an explicit 'type' attribute for 'button' elements.`},hasSuggestions:!0,messages:{default:`Missing an explicit type attribute for button.`,suggest:`Add type attribute with value '{{ type }}'.`},schema:[]},name:`no-missing-button-type`,create:qde});function qde(e){let t=o6(e);return{JSXElement(n){let{domElementType:r}=t.resolve(n);if(r!==`button`||ZZ(n,`type`))return;let i=Gde.map(e=>({data:{type:e},fix(t){return t.insertTextAfter(n.openingElement.name,` type="${e}"`)},messageId:`suggest`}));e.report({messageId:`default`,node:n.openingElement,suggest:i})}}}function s6(e){return e.node??e.attribute}var Jde=Q3({meta:{type:`problem`,docs:{description:`Enforces an explicit 'sandbox' attribute for 'iframe' elements.`},fixable:`code`,hasSuggestions:!0,messages:{default:`Missing an explicit sandbox attribute for iframe.`,suggest:`Add sandbox attribute with value '{{ value }}'.`},schema:[]},name:`no-missing-iframe-sandbox`,create:Yde});function Yde(e){let t=o6(e);return{JSXElement(n){let{domElementType:r}=t.resolve(n);if(r!==`iframe`)return;let i=eQ(n,`sandbox`);i==null?e.report({messageId:`default`,node:n.openingElement,suggest:[{data:{value:``},fix(e){return e.insertTextAfter(n.openingElement.name,` sandbox=""`)},messageId:`suggest`}]}):i6(tQ(e,i))||e.report({messageId:`default`,node:s6(i),suggest:[{data:{value:``},fix(e){return e.replaceText(i.attribute,`sandbox=""`)},messageId:`suggest`}]})}}}var Xde=Q3({meta:{type:`problem`,docs:{description:`Disallows the return value of 'ReactDOM.render'.`},messages:{default:`Do not depend on the return value from 'ReactDOM.render'.`},schema:[]},name:`no-render-return-value`,create:Zde});function Zde(e){if(!e.sourceCode.text.includes(`render`))return{};let t=MQ(e.sourceCode.ast,{builtinNamespaces:[`ReactDOM`],source:`react-dom`});return{CallExpression(n){e6(n,t,`render`)&&$de(n)&&e.report({messageId:`default`,node:n})}}}const Qde=[i.VariableDeclarator,i.Property,i.ReturnStatement,i.ArrowFunctionExpression,i.AssignmentExpression];function $de(e){let t=e.parent;for(;Z.isTypeExpression(t);)t=t.parent;return Qde.includes(t.type)}var efe=Q3({meta:{type:`problem`,docs:{description:`Replaces usage of 'ReactDOM.render()' with 'createRoot(node).render()'.`},fixable:`code`,messages:{default:`[Deprecated] Use 'createRoot(node).render()' instead.`},schema:[]},name:`no-render`,create:tfe});function tfe(e){if(!e.sourceCode.text.includes(`render`))return{};let{version:t}=bX(e);if((0,s0.compare)(t,`18.0.0`,`<`))return{};let n=MQ(e.sourceCode.ast,{builtinNamespaces:[`ReactDOM`],source:`react-dom`});return{CallExpression(t){e6(t,n,`render`)&&e.report({fix:nfe(e,t),messageId:`default`,node:t})}}}function nfe(e,t){return n=>{let[r,a]=t.arguments;if(r==null||a==null||t.arguments.length!==2||r.type===i.SpreadElement||a.type===i.SpreadElement||t.parent.type!==i.ExpressionStatement)return null;let o=t6(e,n,`createRoot`,`react-dom/client`);return o.kind===`conflict`?null:[...o.kind===`add`?[o.fix]:[],n.replaceText(t,`createRoot(${PZ(e,a)}).render(${PZ(e,r)})`)]}}var rfe=Q3({meta:{type:`problem`,docs:{description:`Disallows 'javascript:' URLs as attribute values.`},messages:{default:"Using a `javascript:` URL is a security risk and should be avoided."},schema:[]},name:`no-script-url`,create:ife});function ife(e){return{JSXAttribute(t){if(t.value==null)return;let n=tQ(e,$Z(t));i6(n)&&iX.test(n)&&e.report({messageId:`default`,node:t.value})}}}var afe=Q3({meta:{type:`problem`,docs:{description:`Disallows the use of string style prop in JSX. Use an object instead.`},messages:{default:`Do not use string style prop. Use an object instead.`},schema:[]},name:`no-string-style-prop`,create:ofe});function ofe(e){return{JSXElement(t){if(!wQ(t))return;let n=eQ(t,`style`);n!=null&&i6(tQ(e,n))&&e.report({messageId:`default`,node:s6(n)})}}}const sfe={"accept-charset":`acceptCharset`,class:`className`,crossorigin:`crossOrigin`,for:`htmlFor`,"http-equiv":`httpEquiv`,nomodule:`noModule`},c6={"accent-height":`accentHeight`,"alignment-baseline":`alignmentBaseline`,"arabic-form":`arabicForm`,"baseline-shift":`baselineShift`,"cap-height":`capHeight`,"clip-path":`clipPath`,"clip-rule":`clipRule`,"color-interpolation":`colorInterpolation`,"color-interpolation-filters":`colorInterpolationFilters`,"color-profile":`colorProfile`,"color-rendering":`colorRendering`,"dominant-baseline":`dominantBaseline`,"enable-background":`enableBackground`,"fill-opacity":`fillOpacity`,"fill-rule":`fillRule`,"flood-color":`floodColor`,"flood-opacity":`floodOpacity`,"font-family":`fontFamily`,"font-size":`fontSize`,"font-size-adjust":`fontSizeAdjust`,"font-stretch":`fontStretch`,"font-style":`fontStyle`,"font-variant":`fontVariant`,"font-weight":`fontWeight`,"glyph-name":`glyphName`,"glyph-orientation-horizontal":`glyphOrientationHorizontal`,"glyph-orientation-vertical":`glyphOrientationVertical`,"horiz-adv-x":`horizAdvX`,"horiz-origin-x":`horizOriginX`,"image-rendering":`imageRendering`,"letter-spacing":`letterSpacing`,"lighting-color":`lightingColor`,"marker-end":`markerEnd`,"marker-mid":`markerMid`,"marker-start":`markerStart`,"overline-position":`overlinePosition`,"overline-thickness":`overlineThickness`,"paint-order":`paintOrder`,"panose-1":`panose1`,"pointer-events":`pointerEvents`,"rendering-intent":`renderingIntent`,"shape-rendering":`shapeRendering`,"stop-color":`stopColor`,"stop-opacity":`stopOpacity`,"strikethrough-position":`strikethroughPosition`,"strikethrough-thickness":`strikethroughThickness`,"stroke-dasharray":`strokeDasharray`,"stroke-dashoffset":`strokeDashoffset`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"stroke-miterlimit":`strokeMiterlimit`,"stroke-opacity":`strokeOpacity`,"stroke-width":`strokeWidth`,"text-anchor":`textAnchor`,"text-decoration":`textDecoration`,"text-rendering":`textRendering`,"underline-position":`underlinePosition`,"underline-thickness":`underlineThickness`,"unicode-bidi":`unicodeBidi`,"unicode-range":`unicodeRange`,"units-per-em":`unitsPerEm`,"v-alphabetic":`vAlphabetic`,"v-hanging":`vHanging`,"v-ideographic":`vIdeographic`,"v-mathematical":`vMathematical`,"vector-effect":`vectorEffect`,"vert-adv-y":`vertAdvY`,"vert-origin-x":`vertOriginX`,"vert-origin-y":`vertOriginY`,"word-spacing":`wordSpacing`,"writing-mode":`writingMode`,"x-height":`xHeight`,"xlink:actuate":`xlinkActuate`,"xlink:arcrole":`xlinkArcrole`,"xlink:href":`xlinkHref`,"xlink:role":`xlinkRole`,"xlink:show":`xlinkShow`,"xlink:title":`xlinkTitle`,"xlink:type":`xlinkType`,"xml:base":`xmlBase`,"xml:lang":`xmlLang`,"xml:space":`xmlSpace`},cfe={abbr:[`th`,`td`],align:[`applet`,`caption`,`col`,`colgroup`,`hr`,`iframe`,`img`,`table`,`tbody`,`td`,`tfoot`,`th`,`thead`,`tr`],allowFullScreen:[`iframe`,`video`],as:[`link`],autoPictureInPicture:[`video`],charset:[`meta`],checked:[`input`],closedby:[`dialog`],controls:[`audio`,`video`],controlsList:[`audio`,`video`],crossOrigin:[`script`,`img`,`video`,`audio`,`link`,`image`],disablePictureInPicture:[`video`],disableRemotePlayback:[`audio`,`video`],displaystyle:[`math`],download:[`a`,`area`],fill:[`altGlyph`,`circle`,`ellipse`,`g`,`line`,`marker`,`mask`,`path`,`polygon`,`polyline`,`rect`,`svg`,`symbol`,`text`,`textPath`,`tref`,`tspan`,`use`,`animate`,`animateColor`,`animateMotion`,`animateTransform`,`set`],focusable:[`svg`],imageSizes:[`link`],imageSrcSet:[`link`],loop:[`audio`,`video`],mozAllowFullScreen:[`iframe`,`video`],muted:[`audio`,`video`],noModule:[`script`],onAbort:[`audio`,`video`],onCancel:[`dialog`],onCanPlay:[`audio`,`video`],onCanPlayThrough:[`audio`,`video`],onClose:[`dialog`],onDurationChange:[`audio`,`video`],onEmptied:[`audio`,`video`],onEncrypted:[`audio`,`video`],onEnded:[`audio`,`video`],onError:[`audio`,`video`,`img`,`link`,`source`,`script`,`picture`,`iframe`],onLoad:[`script`,`img`,`link`,`picture`,`iframe`,`object`,`source`,`body`],onLoadedData:[`audio`,`video`],onLoadedMetadata:[`audio`,`video`],onLoadStart:[`audio`,`video`],onPause:[`audio`,`video`],onPlay:[`audio`,`video`],onPlaying:[`audio`,`video`],onProgress:[`audio`,`video`],onRateChange:[`audio`,`video`],onResize:[`audio`,`video`],onSeeked:[`audio`,`video`],onSeeking:[`audio`,`video`],onStalled:[`audio`,`video`],onSuspend:[`audio`,`video`],onTimeUpdate:[`audio`,`video`],onVolumeChange:[`audio`,`video`],onWaiting:[`audio`,`video`],playsInline:[`video`],poster:[`video`],preload:[`audio`,`video`],property:[`meta`],returnValue:[`dialog`],scrolling:[`iframe`],shadowrootclonable:[`template`],shadowrootdelegatesfocus:[`template`],shadowrootmode:[`template`],shadowrootserializable:[`template`],valign:[`tr`,`td`,`th`,`thead`,`tbody`,`tfoot`,`colgroup`,`col`],viewBox:[`marker`,`pattern`,`svg`,`symbol`,`view`],webkitAllowFullScreen:[`iframe`,`video`],webkitDirectory:[`input`]},lfe=/* @__PURE__ */ `dir.draggable.hidden.id.lang.nonce.part.slot.style.title.translate.inert.accept.action.allow.alt.as.async.buffered.capture.challenge.cite.code.cols.content.coords.csp.data.decoding.default.defer.disabled.form.headers.height.high.href.icon.importance.integrity.kind.label.language.loading.list.loop.low.manifest.max.media.method.min.multiple.muted.name.open.optimum.pattern.ping.placeholder.poster.preload.profile.rel.required.reversed.role.rows.sandbox.scope.seamless.selected.shape.size.sizes.span.src.start.step.summary.target.type.value.width.wmode.wrap.accumulate.additive.alphabetic.amplitude.ascent.azimuth.bbox.begin.bias.by.clip.color.cursor.cx.cy.d.decelerate.descent.direction.display.divisor.dur.dx.dy.elevation.end.exponent.fill.filter.format.from.fr.fx.fy.g1.g2.hanging.height.hreflang.ideographic.in.in2.intercept.k.k1.k2.k3.k4.kerning.local.mask.mode.offset.opacity.operator.order.orient.orientation.origin.overflow.path.ping.points.r.radius.rel.restart.result.rotate.rx.ry.scale.seed.slope.spacing.speed.stemh.stemv.string.stroke.to.transform.u1.u2.unicode.values.version.visibility.widths.x.x1.x2.xmlns.y.y1.y2.z.property.ref.key.children.results.security.controls`.split(`.`),ufe=/* @__PURE__ */ `accessKey.autoCapitalize.autoFocus.contentEditable.enterKeyHint.exportParts.inputMode.itemID.itemRef.itemProp.itemScope.itemType.spellCheck.tabIndex.acceptCharset.autoComplete.autoPlay.border.cellPadding.cellSpacing.classID.codeBase.colSpan.contextMenu.dateTime.encType.formAction.formEncType.formMethod.formNoValidate.formTarget.frameBorder.hrefLang.httpEquiv.imageSizes.imageSrcSet.isMap.keyParams.keyType.marginHeight.marginWidth.maxLength.mediaGroup.minLength.noValidate.onAnimationEnd.onAnimationIteration.onAnimationStart.onBlur.onChange.onClick.onContextMenu.onCopy.onCompositionEnd.onCompositionStart.onCompositionUpdate.onCut.onDoubleClick.onDrag.onDragEnd.onDragEnter.onDragExit.onDragLeave.onError.onFocus.onInput.onKeyDown.onKeyPress.onKeyUp.onLoad.onWheel.onDragOver.onDragStart.onDrop.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onPaste.onScroll.onScrollEnd.onSelect.onSubmit.onToggle.onTransitionEnd.radioGroup.readOnly.referrerPolicy.rowSpan.srcDoc.srcLang.srcSet.useMap.fetchPriority.crossOrigin.accentHeight.alignmentBaseline.arabicForm.attributeName.attributeType.baseFrequency.baselineShift.baseProfile.calcMode.capHeight.clipPathUnits.clipPath.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.diffuseConstant.dominantBaseline.edgeMode.enableBackground.fillOpacity.fillRule.filterRes.filterUnits.floodColor.floodOpacity.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.horizAdvX.horizOriginX.imageRendering.kernelMatrix.kernelUnitLength.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.markerEnd.markerMid.markerStart.markerHeight.markerUnits.markerWidth.maskContentUnits.maskUnits.mathematical.numOctaves.overlinePosition.overlineThickness.panose1.paintOrder.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.referrerPolicy.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.shapeRendering.specularConstant.specularExponent.spreadMethod.startOffset.stdDeviation.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textRendering.textLength.transformOrigin.underlinePosition.underlineThickness.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.vHanging.vIdeographic.vMathematical.vectorEffect.vertAdvY.vertOriginX.vertOriginY.viewBox.viewTarget.wordSpacing.writingMode.xHeight.xChannelSelector.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlnsXlink.xmlSpace.yChannelSelector.zoomAndPan.autoCorrect.autoSave.className.dangerouslySetInnerHTML.defaultValue.defaultChecked.htmlFor.onBeforeInput.onChange.onInvalid.onReset.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.suppressContentEditableWarning.suppressHydrationWarning.onAbort.onCanPlay.onCanPlayThrough.onDurationChange.onEmptied.onEncrypted.onEnded.onLoadedData.onLoadedMetadata.onLoadStart.onPause.onPlay.onPlaying.onProgress.onRateChange.onResize.onSeeked.onSeeking.onStalled.onSuspend.onTimeUpdate.onVolumeChange.onWaiting.onCopyCapture.onCutCapture.onPasteCapture.onCompositionEndCapture.onCompositionStartCapture.onCompositionUpdateCapture.onFocusCapture.onBlurCapture.onChangeCapture.onBeforeInputCapture.onInputCapture.onResetCapture.onSubmitCapture.onInvalidCapture.onLoadCapture.onErrorCapture.onKeyDownCapture.onKeyPressCapture.onKeyUpCapture.onAbortCapture.onCanPlayCapture.onCanPlayThroughCapture.onDurationChangeCapture.onEmptiedCapture.onEncryptedCapture.onEndedCapture.onLoadedDataCapture.onLoadedMetadataCapture.onLoadStartCapture.onPauseCapture.onPlayCapture.onPlayingCapture.onProgressCapture.onRateChangeCapture.onSeekedCapture.onSeekingCapture.onStalledCapture.onSuspendCapture.onTimeUpdateCapture.onVolumeChangeCapture.onWaitingCapture.onSelectCapture.onTouchCancelCapture.onTouchEndCapture.onTouchMoveCapture.onTouchStartCapture.onScrollCapture.onScrollEndCapture.onWheelCapture.onAnimationEndCapture.onAnimationIteration.onAnimationStartCapture.onTransitionEndCapture.onAuxClick.onAuxClickCapture.onClickCapture.onContextMenuCapture.onDoubleClickCapture.onDragCapture.onDragEndCapture.onDragEnterCapture.onDragExitCapture.onDragLeaveCapture.onDragOverCapture.onDragStartCapture.onDropCapture.onMouseDown.onMouseDownCapture.onMouseMoveCapture.onMouseOutCapture.onMouseOverCapture.onMouseUpCapture.autoPictureInPicture.controlsList.disablePictureInPicture.disableRemotePlayback`.split(`.`),dfe=[`charset`,`allowFullScreen`,`webkitAllowFullScreen`,`mozAllowFullScreen`,`webkitDirectory`],ffe=/* @__PURE__ */ `aria-atomic.aria-braillelabel.aria-brailleroledescription.aria-busy.aria-controls.aria-current.aria-describedby.aria-description.aria-details.aria-disabled.aria-dropeffect.aria-errormessage.aria-flowto.aria-grabbed.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-live.aria-owns.aria-relevant.aria-roledescription.aria-autocomplete.aria-checked.aria-expanded.aria-level.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-placeholder.aria-pressed.aria-readonly.aria-required.aria-selected.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.aria-activedescendant.aria-colcount.aria-colindex.aria-colindextext.aria-colspan.aria-posinset.aria-rowcount.aria-rowindex.aria-rowindextext.aria-rowspan.aria-setsize`.split(`.`),pfe=[`onGotPointerCapture`,`onGotPointerCaptureCapture`,`onLostPointerCapture`,`onLostPointerCapture`,`onLostPointerCaptureCapture`,`onPointerCancel`,`onPointerCancelCapture`,`onPointerDown`,`onPointerDownCapture`,`onPointerEnter`,`onPointerEnterCapture`,`onPointerLeave`,`onPointerLeaveCapture`,`onPointerMove`,`onPointerMoveCapture`,`onPointerOut`,`onPointerOutCapture`,`onPointerOver`,`onPointerOverCapture`,`onPointerUp`,`onPointerUpCapture`],l6=[`popover`,`popoverTarget`,`popoverTargetAction`,`onToggle`,`onBeforeToggle`],mfe={blocking:[`link`,`script`,`style`],precedence:[`link`,`style`]},hfe=[`credentialless`,`maskType`,`onFullscreenChange`,`onFullscreenChangeCapture`,`onFullscreenError`,`onFullscreenErrorCapture`],gfe={credentialless:[`iframe`]},_fe={"mask-type":`maskType`},vfe=/* @__PURE__ */ new Map;function u6(e){return a6(vfe,e,e=>[(0,s0.compare)(e,`16.1.0`,`<=`),(0,s0.compare)(e,`16.4.0`,`>=`),(0,s0.compare)(e,`19.0.0-rc.0`,`>=`),(0,s0.compare)(e,`19.3.0`,`>=`)].map(Number).join(``))}function yfe(e){let t=ufe.concat(lfe);return(0,s0.compare)(e,`16.1.0`,`<=`)?(t.push(`allowTransparency`),t):((0,s0.compare)(e,`16.4.0`,`>=`)&&t.push(...pfe),(0,s0.compare)(e,`19.0.0-rc.0`,`>=`)?t.push(...l6):t.push(...l6.map(e=>e.toLowerCase())),(0,s0.compare)(e,`19.3.0`,`>=`)&&t.push(...hfe),t)}const bfe=/* @__PURE__ */ new Map;function xfe(e){let t=cfe;return(0,s0.compare)(e,`19.0.0-rc.0`,`>=`)&&(t={...t,...mfe}),(0,s0.compare)(e,`19.3.0`,`>=`)&&(t={...t,...gfe}),t}function Sfe(e){return a6(bfe,u6(e),()=>xfe(e))}function Cfe(e){let{version:t}=bX(e);return Sfe(t)}const d6=/* @__PURE__ */ new WeakMap;function wfe(e){let t=e.parent,n=d6.get(t);if(n!=null)return n;let r=t.name.type===i.JSXIdentifier&&/^[a-z][^-]*$/.test(t.name.name)&&!t.attributes.some(qZ(`is`));return d6.set(t,r),r}function Tfe(e){return dfe.find(t=>t.toLowerCase()===e.toLowerCase())??e}function Efe(e){return!/^data-xml/i.test(e)&&/^data-[^:]*$/.test(e)}function Dfe(e){return e.toLowerCase()!==e}function Ofe(e){return ffe.some(t=>t===e)}function kfe(e){return e.parent.name.type===i.JSXIdentifier?e.parent.name.name:null}function Afe(e){return e.parent.name.type===i.JSXMemberExpression}function jfe(e,t){return Object.hasOwn(e,t)}const Mfe=/* @__PURE__ */ new Map;function Nfe(e){return a6(Mfe,u6(e),()=>{let t=(0,s0.compare)(e,`19.3.0`,`>=`)?{...c6,..._fe}:c6,n=new Map([...Object.entries(t),...Object.entries(sfe)]),r=/* @__PURE__ */ new Map;for(let t of yfe(e)){let e=t.toLowerCase();r.has(e)||r.set(e,t)}return{exact:n,lower:r}})}function Pfe(e,t){let{version:n}=bX(t),r=Nfe(n);return r.exact.get(e)??r.lower.get(e.toLowerCase())??null}var Ffe=Q3({meta:{type:`problem`,defaultOptions:[{}],docs:{description:`Disallows unknown 'DOM' properties.`},fixable:`code`,messages:{"data-lowercase-required":`React does not recognize data-* props with uppercase characters on a DOM element. Found '{{name}}', use '{{lowerCaseName}}' instead`,"invalid-prop-on-tag":`Invalid property '{{name}}' found on tag '{{tagName}}', but it is only allowed on: {{allowedTags}}`,"unknown-prop":`Unknown property '{{name}}' found`,"unknown-prop-with-standard-name":`Unknown property '{{name}}' found, use '{{standardName}}' instead`},schema:[{type:`object`,additionalProperties:!1,properties:{ignore:{type:`array`,description:`Property names to ignore.`,items:{type:`string`}},requireDataLowercase:{type:`boolean`,description:`Require lowercase names for data-* attributes.`}}}]},name:`no-unknown-property`,create:Ife});function Ife(e){let t=e.options[0]??{},n=t.ignore??[],r=t.requireDataLowercase??!1,i=null;return{JSXAttribute(t){let a=PZ(e,t.name);if(n.includes(a))return;let o=Tfe(a);if(Afe(t))return;if(Efe(o)){r&&Dfe(o)&&e.report({data:{name:a,lowerCaseName:a.toLowerCase()},messageId:`data-lowercase-required`,node:t});return}if(Ofe(o))return;let s=kfe(t);if(s===`fbt`||s===`fbs`||!wfe(t))return;let c=i??=Cfe(e),l=jfe(c,o)?c[o]:null;if(s!=null&&l!=null){l.includes(s)||e.report({data:{name:a,allowedTags:l.join(`, `),tagName:s},messageId:`invalid-prop-on-tag`,node:t});return}let u=Pfe(o,e);u==null?e.report({data:{name:a},messageId:`unknown-prop`,node:t}):u!==o&&e.report({data:{name:a,standardName:u},fix(e){return e.replaceText(t.name,u)},messageId:`unknown-prop-with-standard-name`,node:t})}}}const Lfe=[`allow-scripts`,`allow-same-origin`];var Rfe=Q3({meta:{type:`problem`,docs:{description:`Enforces that the 'sandbox' attribute for 'iframe' elements is not set to unsafe combinations.`},messages:{default:`Unsafe 'sandbox' attribute value on 'iframe' component.`},schema:[]},name:`no-unsafe-iframe-sandbox`,create:zfe});function zfe(e){let t=o6(e);return{JSXElement(n){let{domElementType:r}=t.resolve(n);if(r!==`iframe`)return;let i=eQ(n,`sandbox`);if(i==null)return;let a=tQ(e,i);if(!i6(a))return;let o=new Set(a.split(/\s+/u));Lfe.every(e=>o.has(e))&&e.report({messageId:`default`,node:s6(i)})}}}function Bfe(e){return i6(e)?e.startsWith(`https://`)||/^(?:\w+:|\/\/)/u.test(e):!1}function Vfe(e,t){return i6(e)?/\bnoreferrer\b/u.test(e)?!0:t&&/\bnoopener\b/u.test(e):!1}var Hfe=Q3({meta:{type:`problem`,defaultOptions:[{}],docs:{description:`Disallows 'target="_blank"' without 'rel="noreferrer"'.`},fixable:`code`,hasSuggestions:!0,messages:{default:`Using 'target="_blank"' on an external link without '{{rel}}' is a security risk.`,suggest:`Add '{{rel}}' to the link to prevent security risks.`},schema:[{type:`object`,additionalProperties:!1,properties:{allowReferrer:{type:`boolean`,description:`Allow 'rel="noopener"' without 'noreferrer' so referrer information is preserved.`}}}]},name:`no-unsafe-target-blank`,create:Ufe});function Ufe(e){let t=(e.options[0]??{}).allowReferrer??!1,n=o6(e),r=`rel="${t?`noopener`:`noreferrer`}"`;return{JSXElement(i){let{domElementType:a}=n.resolve(i);if(a!==`a`||nQ(e,i,`target`)!==`_blank`||!Bfe(nQ(e,i,`href`)))return;let o=eQ(i,`rel`);if(o==null){let t=i.openingElement.attributes.at(-1);e.report({messageId:`default`,data:{rel:r},node:i.openingElement,suggest:f6(r,e=>e.insertTextAfter(t??i.openingElement.name,` ${r}`))});return}let s=o.attribute;Vfe(tQ(e,o),t)||e.report({messageId:`default`,data:{rel:r},node:s,suggest:f6(r,e=>e.replaceText(s,r))})}}}function f6(e,t){return[{data:{rel:e},fix:t,messageId:`suggest`}]}var Wfe=Q3({meta:{type:`problem`,docs:{description:`Replaces usage of 'useFormState' with 'useActionState'.`},fixable:`code`,messages:{default:`[Deprecated] Use 'useActionState' from 'react' package instead.`},schema:[]},name:`no-use-form-state`,create:Gfe});function Gfe(e){if(!e.sourceCode.text.includes(`useFormState`))return{};let{importSource:t,version:n}=bX(e);if((0,s0.compare)(n,`19.0.0`,`<`))return{};let r=MQ(e.sourceCode.ast,{source:`react-dom`});return{CallExpression(n){e6(n,r,`useFormState`)&&e.report({fix:Kfe(e,n,t),messageId:`default`,node:n})}}}function Kfe(e,t,n){return r=>{let i=t6(e,r,`useActionState`,n);return i.kind===`conflict`?null:[...i.kind===`add`?[i.fix]:[],r.replaceText(t.callee,`useActionState`)]}}const qfe=/* @__PURE__ */ new Set([`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`keygen`,`link`,`menuitem`,`meta`,`param`,`source`,`track`,`wbr`]);var Jfe=Q3({meta:{type:`problem`,docs:{description:`Disallows 'children' in void DOM elements.`},messages:{default:`'{{elementType}}' is a void element tag and must not have children.`},schema:[]},name:`no-void-elements-with-children`,create:Yfe});function Yfe(e){let t=o6(e);return{JSXElement(n){let{domElementType:r}=t.resolve(n);qfe.has(r)&&(n.children.some($3)||QZ(n,[`children`,`dangerouslySetInnerHTML`]))&&e.report({data:{elementType:r},messageId:`default`,node:n})}}}const p6={meta:{name:Ede,version:Dde},rules:{"no-dangerously-set-innerhtml":jde,"no-dangerously-set-innerhtml-with-children":kde,"no-find-dom-node":Nde,"no-flush-sync":Fde,"no-hydrate":Rde,"no-missing-button-type":Kde,"no-missing-iframe-sandbox":Jde,"no-render":efe,"no-render-return-value":Xde,"no-script-url":rfe,"no-string-style-prop":afe,"no-unknown-property":Ffe,"no-unsafe-iframe-sandbox":Rfe,"no-unsafe-target-blank":Hfe,"no-use-form-state":Wfe,"no-void-elements-with-children":Jfe}};var Xfe=/* @__PURE__ */ Z3({name:()=>Zfe,plugins:()=>h6,rules:()=>m6,settings:()=>g6});const Zfe=`react-dom/recommended`,m6={"react-dom/no-dangerously-set-innerhtml":`warn`,"react-dom/no-dangerously-set-innerhtml-with-children":`error`,"react-dom/no-find-dom-node":`error`,"react-dom/no-flush-sync":`error`,"react-dom/no-hydrate":`error`,"react-dom/no-render":`error`,"react-dom/no-render-return-value":`error`,"react-dom/no-script-url":`warn`,"react-dom/no-unsafe-iframe-sandbox":`warn`,"react-dom/no-use-form-state":`error`,"react-dom/no-void-elements-with-children":`error`},h6={"react-dom":p6},g6={"react-x":mX};var Qfe=/* @__PURE__ */ Z3({name:()=>$fe,plugins:()=>tpe,rules:()=>epe,settings:()=>npe});const $fe=`react-dom/strict`,epe={...m6,"react-dom/no-missing-button-type":`warn`,"react-dom/no-missing-iframe-sandbox":`warn`,"react-dom/no-unsafe-target-blank":`warn`},tpe={...h6},npe={...g6};function _6(e){return{...e,plugins:{...e.plugins,get"react-dom"(){return v6}}}}const v6={...p6,configs:{recommended:_6(Xfe),strict:_6(Qfe)}};var y6=Object.defineProperty,rpe=(e,t)=>{let n=Object.setPrototypeOf({},null);for(var r in e)y6(n,r,{get:e[r],enumerable:!0});return t&1||y6(n,Symbol.toStringTag,{value:`Module`}),t&2?n:Object.preventExtensions(n)},ipe=`eslint-plugin-react-web-api`,ape=`5.30.4`;function ope(e){return`https://eslint-react.xyz/docs/rules/web-api-${e}`}const b6=xX.RuleCreator(ope),spe=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;e<r;e++)n=t[e](n);return n}}},cpe={pipe(){return spe(this,arguments)}};(function(){function e(){}return e.prototype=cpe,e})();const x6=function(e,t){if(typeof e==`function`)return function(){return e(arguments)?t.apply(this,arguments):(e=>t(e,...arguments))};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}};x6(2,(e,t)=>n=>t(e(n)));const S6=x6(2,(e,t)=>n=>e(n)&&t(n)),C6=x6(2,(e,t)=>n=>e(n)||t(n));x6(2,(e,t)=>n=>e(n)!==t(n)),x6(2,(e,t)=>n=>e(n)===t(n)),x6(2,(e,t)=>n=>!e(n)||t(n)),x6(2,(e,t)=>n=>!e(n)&&!t(n)),x6(2,(e,t)=>n=>!e(n)||!t(n));function lpe(e){return typeof e==`function`}function upe(e){return typeof e==`object`&&!!e||lpe(e)}x6(2,(e,t)=>upe(e)&&t in e);function dpe(e,t,n){if(e.has(t))return e.get(t);let r=n(t);return e.set(t,r),r}x6(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(i)}),x6(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(0,i)});const fpe=C6(O1,k1);function ppe(e){let t=uZ.findParent(e,fpe);if(t==null)return null;let n=O1(t)?`setup`:`cleanup`,r=n===`setup`?t:uZ.findParent(t,Z.isFunction);return{effect:r==null?null:Q.unwrap(r).parent??null,phase:n}}function mpe(e){let t=Q.getCalleeName(e);return t!=null&&tW(vW.union(`addEventListener`,`removeEventListener`))(t)?t:`other`}function w6(e){return Z.isIdentifier(e)&&(e.name===`window`||e.name===`globalThis`||e.name===`self`)}function hpe(e,t,n=cZ.isEqual){switch(!0){case e.type===i.MemberExpression&&t.type===i.MemberExpression:return n(e.object,t.object);case e.type===i.MemberExpression:return w6(e.object);case t.type===i.MemberExpression:return w6(t.object);default:return!0}}function gpe(){let e={calls:[]};return{facts:e,visitor:{CallExpression(t){let n=ppe(t);n!=null&&e.calls.push({callee:Q.unwrap(t.callee),effect:n.effect,enclosingFunction:uZ.findParent(t,Z.isFunction),kind:mpe(t),node:t,phase:n.phase})}}}}function T6(e){let t=Q.unwrap(e.property);return e.computed?t.type===i.Literal&&typeof t.value==`string`?t.value:t.type===i.TemplateLiteral&&t.expressions.length===0?t.quasis[0]?.value.cooked??t.quasis[0]?.value.raw??null:null:Z.isIdentifier(t)?t.name:null}function E6(e,t,n=cZ.isEqual){let r=Q.unwrap(e),a=Q.unwrap(t);if(r.type!==i.MemberExpression||a.type!==i.MemberExpression||r.optional!==a.optional)return n(r,a);let o=T6(r),s=T6(a);return o==null||s==null||o!==s?n(r,a):E6(r.object,a.object,n)}function _pe({context:e,addEntry:t,remEntry:n,cleanupCalleeEntries:r}){let{type:a,callee:o,capture:s,effect:c,listener:l,phase:u}=t,{type:d,callee:f,capture:p,effect:m,listener:h,phase:g}=n;if(u!==`setup`||!hpe(o,f,E6)||!E6(l,h)||!E6(a,d,(t,n)=>zQ(e,t,n))||s!==p)return!1;if(g===`cleanup`)return!0;if(c==null||c!==m)return!1;let _=n.enclosingFunction;if(_==null)return!1;let v=r.get(c);if(v==null)return!1;let{functions:y,names:b}=v;if(y.has(_))return!0;let x=Q$(_);return x==null||x.type!==i.Identifier?!1:b.has(x.name)}function vpe(e,t){let n=[],r=[],a=[];for(let e of t.entries)e.signal==null&&Z.isFunction(e.listener)&&n.push({kind:`unexpected-inline-function`,data:{eventMethodKind:e.kind},node:e.listener}),e.kind===`addEventListener`?r.push(e):a.push(e);for(let o of r){if(o.signal!=null||a.some(n=>_pe({context:e,addEntry:o,remEntry:n,cleanupCalleeEntries:t.cleanupCalleeEntries})))continue;let r=o.effect,s=r!=null&&r.type===i.CallExpression?Q.getCalleeName(r)??`useEffect`:`useEffect`;n.push({kind:`expected-remove-event-listener-in-cleanup`,data:{effectMethodKind:s},node:o.node})}return n.toSorted((e,t)=>e.node.range[0]-t.node.range[0]||e.node.range[1]-t.node.range[1])}function ype({context:e,node:t}){let n=Q.unwrap(t.callee);if(n.type===i.Identifier){let t=KQ(e,n,{at:-1}),r=t==null?null:Q.unwrap(t);return r!=null&&Z.isFunction(r)?{kind:`function`,node:r}:{kind:`name`,name:n.name}}if(n.type!==i.MemberExpression||n.computed)return null;let r=Q.unwrap(n.object),a=Q.unwrap(n.property);if(r.type!==i.Identifier||a.type!==i.Identifier)return null;let o=KQ(e,r,{at:-1}),s=o==null?null:Q.unwrap(o);if(s?.type!==i.ObjectExpression)return null;for(let e of s.properties){if(e.type!==i.Property||e.computed)continue;let t=Q.unwrap(e.key);if(Z.isIdentifier(t)?t.name!==a.name:t.value!==a.name)continue;let n=Q.unwrap(e.value);if(Z.isFunction(n))return{kind:`function`,node:n}}return null}const D6={capture:!1,signal:null};function bpe(e,t){let n=(0,wX.findVariable)(e.sourceCode.getScope(t),t)?.defs.at(-1)?.node;if(n?.type!==i.VariableDeclarator||n.id.type!==i.ObjectPattern)return!1;for(let e of n.id.properties){if(e.type!==i.Property||e.computed)continue;let n=Q.unwrap(e.key);if(n.type!==i.Identifier||n.name!==`signal`)continue;let r=Q.unwrap(e.value);return r.type===i.Identifier&&r.name===t.name}return!1}function xpe(e){if(e?.type!==i.NewExpression)return!1;let t=Q.unwrap(e.callee);return t.type===i.Identifier&&t.name===`AbortController`}function Spe({context:e,node:t}){let n=/* @__PURE__ */ new Set;function r(t){if(t==null||n.has(t))return null;switch(n.add(t),t.type){case i.Identifier:{let n=$Q(e,t),a=n==null?null:Q.unwrap(n);return a!=null&&Z.isFunction(a)||a!=null&&bpe(e,t)&&xpe(a.type===i.Identifier?e$(e,a):a)?t:r(a)}case i.MemberExpression:return t;default:return null}}return r(t)}function Cpe({context:e,node:t}){function n(t){switch(t.type){case i.Identifier:{let r=KQ(e,t);return r?.type===i.ObjectExpression?n(r):D6}case i.Literal:return{...D6,capture:!!t.value};case i.ObjectExpression:{let n=(e,t)=>{for(let r of e){if(r.type===i.Property){let e=Q.unwrap(r.key);if((!r.computed&&Z.isIdentifier(e)?e.name:e.type===i.Literal&&typeof e.value==`string`?e.value:e.type===i.TemplateLiteral&&e.expressions.length===0?e.quasis[0]?.value.cooked??e.quasis[0]?.value.raw??null:null)===t)return r}if(r.type===i.SpreadElement&&r.argument.type===i.ObjectExpression){let e=n(r.argument.properties,t);if(e!=null)return e}}return null},r=bW(n(t.properties,`capture`)).with(vW.nullish,()=>!1).with({type:i.Property},n=>{let r=n.value;switch(r.type){case i.Literal:return!!r.value;default:return!!(0,wX.getStaticValue)(r,e.sourceCode.getScope(t))?.value}}).otherwise(()=>!1),a=n(t.properties,`signal`);return{capture:r,signal:a?.type===i.Property?Spe({context:e,node:a.value}):null}}default:return D6}}return n(t)}function wpe({context:e,node:t}){let[n,r,i]=t.arguments;return n==null||r==null?null:{type:n,listener:r,options:i==null?D6:Cpe({context:e,node:i})}}function Tpe(e,t){return t.type===i.MemberExpression&&Z.isIdentifier(t.object)&&GQ(t.object.name,e.sourceCode.getScope(t))}function Epe(e,t){let n=[],r=/* @__PURE__ */ new Map;for(let i of t.calls){let{callee:t,effect:a,enclosingFunction:o,kind:s,node:c,phase:l}=i;if(s===`other`){if(l!==`cleanup`||a==null)continue;let t=ype({context:e,node:c});if(t==null)continue;let{functions:n,names:i}=dpe(r,a,()=>({functions:/* @__PURE__ */ new Set,names:/* @__PURE__ */ new Set}));t.kind===`function`?n.add(t.node):i.add(t.name);continue}if(s===`addEventListener`&&Tpe(e,t))continue;let u=wpe({context:e,node:c});u!=null&&n.push({type:u.type,callee:t,capture:u.options.capture,effect:a,enclosingFunction:o,kind:s,listener:u.listener,node:c,phase:l,signal:u.options.signal})}return{entries:n,cleanupCalleeEntries:r}}var Dpe=b6({meta:{type:`problem`,docs:{description:`Enforces that every 'addEventListener' in a component or custom hook has a corresponding 'removeEventListener'.`},messages:{"unexpected-inline-function":`A/an '{{eventMethodKind}}' should not have an inline listener function.`,"expected-remove-event-listener-in-cleanup":`An 'addEventListener' in '{{effectMethodKind}}' should have a corresponding 'removeEventListener' in its cleanup function.`},schema:[]},name:`no-leaked-event-listener`,create:Ope});function Ope(e){if(!e.sourceCode.text.includes(`addEventListener`)||!/use\w*Effect/u.test(e.sourceCode.text))return{};let{facts:t,visitor:n}=gpe();return LZ(n,{"Program:exit"(){let n=Epe(e,t);for(let t of vpe(e,n))e.report({data:t.data,messageId:t.kind,node:t.node})}})}function kpe(e,t){switch(t=Q.unwrap(t),t.type){case i.ObjectExpression:return t;case i.Identifier:{let n=KQ(e,t);return n=n==null?null:Q.unwrap(n),n?.type===i.ObjectExpression?n:null}default:return null}}function Ape(e){return Z.isIdentifier(e)&&(e.name===`window`||e.name===`globalThis`||e.name===`self`)}function jpe(e,t){switch(t.type){case i.FunctionDeclaration:case i.ArrowFunctionExpression:return t.params.some(t=>k6(e,t));case i.FunctionExpression:return t.id?.name===e||t.params.some(t=>k6(e,t));case i.CatchClause:return t.param!=null&&k6(e,t.param);case i.BlockStatement:case i.Program:case i.StaticBlock:return t.body.some(t=>O6(e,t));case i.ForStatement:return t.init?.type===i.VariableDeclaration&&O6(e,t.init);case i.ForInStatement:case i.ForOfStatement:return t.left.type===i.VariableDeclaration&&O6(e,t.left);default:return!1}}function O6(e,t){switch(t.type){case i.FunctionDeclaration:case i.ClassDeclaration:return t.id?.name===e;case i.VariableDeclaration:return t.declarations.some(t=>k6(e,t.id));case i.ImportDeclaration:return t.specifiers.some(t=>t.local.name===e);case i.ExportNamedDeclaration:return t.declaration!=null&&O6(e,t.declaration);case i.ExportDefaultDeclaration:return(t.declaration.type===i.FunctionDeclaration||t.declaration.type===i.ClassDeclaration)&&t.declaration.id?.name===e;case i.TSImportEqualsDeclaration:case i.TSEnumDeclaration:return t.id.name===e;case i.TSModuleDeclaration:return t.id.type===i.Identifier&&t.id.name===e;default:return!1}}function k6(e,t){switch(t.type){case i.Identifier:return t.name===e;case i.ArrayPattern:return t.elements.some(t=>t!=null&&k6(e,t));case i.ObjectPattern:return t.properties.some(t=>t.type===i.RestElement?k6(e,t.argument):k6(e,t.value));case i.AssignmentPattern:return k6(e,t.left);case i.RestElement:return k6(e,t.argument);case i.TSParameterProperty:return k6(e,t.parameter);default:return!1}}var Mpe=b6({meta:{type:`problem`,docs:{description:`Enforces that every 'fetch' in a component or custom hook has a corresponding 'AbortController' abort in the cleanup function.`},messages:{"expected-abort-controller":`A 'fetch' must be provided with an 'AbortController' for proper cleanup.`,"expected-abort-in-cleanup":`A 'fetch' started in effect must be aborted with 'AbortController.abort' in the cleanup function.`},schema:[]},name:`no-leaked-fetch`,create:Npe});function Npe(e){if(!e.sourceCode.text.includes(`fetch`)||!/use\w*Effect/u.test(e.sourceCode.text))return{};let t=[],n=[];return{CallExpression(r){bW(Fpe(r)).with(`fetch`,()=>{let n=uZ.findParent(r,Z.isFunction);if(n==null||!O1(n))return;let{controller:i,isParamSignal:a}=Ipe(e,r);t.push({controller:i,isParamSignal:a,node:r})}).with(`abort`,()=>{let e=uZ.findParent(r,Ppe);if(e==null||!k1(e))return;let t=Lpe(r);t!=null&&n.push({controller:t,node:r})}).otherwise(()=>null)},"Program:exit"(){for(let r of t){let t=r.controller;t==null?e.report({messageId:`expected-abort-controller`,node:r.node}):r.isParamSignal||n.some(n=>BQ(e,n.controller,t))||e.report({messageId:`expected-abort-in-cleanup`,node:r.node})}}}}const Ppe=C6(O1,k1);function Fpe(e){let t=Q.unwrap(e.callee);switch(!0){case Z.isIdentifier(t,`fetch`)&&!uZ.hasParent(e,e=>jpe(`fetch`,e)):case t.type===i.MemberExpression&&!t.computed&&Z.isIdentifier(t.property,`fetch`)&&Ape(Q.unwrap(t.object)):return`fetch`;case Q.getCalleeName(e)===`abort`:return`abort`;default:return`other`}}function Ipe(e,t){let[,n]=t.arguments;if(n==null)return{controller:null,isParamSignal:!1};let r=kpe(e,n);if(r==null)return{controller:null,isParamSignal:!1};let a=j6(r.properties);return a?.type===i.Property?A6(e,a.value):{controller:null,isParamSignal:!1}}function A6(e,t,n=/* @__PURE__ */ new Set){switch(t=Q.unwrap(t),t.type){case i.MemberExpression:return{controller:t.object,isParamSignal:!1};case i.Identifier:{if(n.has(t))return{controller:null,isParamSignal:!1};n.add(t);let r=$Q(e,t),a=r==null?null:Q.unwrap(r);return a?.type===i.MemberExpression?{controller:a.object,isParamSignal:!1}:r!=null&&Z.isFunction(r)?{controller:t,isParamSignal:!0}:a==null?{controller:null,isParamSignal:!1}:A6(e,a,n)}default:return{controller:null,isParamSignal:!1}}}function j6(e){for(let t of e){if(t.type===i.Property){let e=Q.unwrap(t.key);if((!t.computed&&Z.isIdentifier(e)?e.name:e.type===i.Literal&&typeof e.value==`string`?e.value:e.type===i.TemplateLiteral&&e.expressions.length===0?e.quasis[0]?.value.cooked??e.quasis[0]?.value.raw??null:null)===`signal`)return t}if(t.type===i.SpreadElement&&t.argument.type===i.ObjectExpression){let e=j6(t.argument.properties);if(e!=null)return e}}return null}function Lpe(e){let t=Q.unwrap(e.callee);return t.type===i.MemberExpression?t.object:null}function M6(e,t){if(e?.type!==i.NewExpression)return!1;let n=Q.unwrap(e.callee);return Z.isIdentifier(n,t)}function N6(e,t,n){switch(!0){case Z.isIdentifier(t):{let r=KQ(e,t),a=r==null?null:Q.unwrap(r);if(a==null)return!1;if(M6(a,n))return!0;if(a.type===i.CallExpression&&T1(a)){let e=a.arguments.at(0);return e!=null&&M6(Q.unwrap(e),n)}return a.type===i.MemberExpression&&N6(e,a,n)}case t.type===i.MemberExpression:return N6(e,t.object,n);default:return!1}}function Rpe(e,t,n){let r=Z.isTypeExpression(t)?Q.unwrap(t):t;if(Z.isIdentifier(r)){let t=KQ(e,r);t!=null&&(r=Q.unwrap(t))}return r.type===i.MemberExpression&&!r.computed&&Z.isIdentifier(Q.unwrap(r.property),`current`)&&BQ(e,r.object,n)}const P6=C6(O1,k1);function zpe(e,t){let n=Q.unwrap(t.callee);if(n.type!==i.MemberExpression)return`other`;let r=Q.getCalleeName(t);return r==null||!tW(vW.union(`observe`,`unobserve`,`disconnect`))(r)||!N6(e,n,`IntersectionObserver`)?`other`:r}function Bpe(e){let t=e,n=e.parent;for(;Z.isTypeExpression(n);)t=n,n=n.parent;return n.type===i.CallExpression&&n.arguments.at(0)===t&&T1(n)}function F6(e,t,n){let r=(0,wX.findVariable)(e.sourceCode.getScope(t),n)?.defs.at(-1)?.node,a=r==null?null:r.type===i.FunctionDeclaration?r:r.type===i.VariableDeclarator&&r.init!=null?Q.unwrap(r.init):null;return a!=null&&Z.isFunction(a)?a:null}var Vpe=b6({meta:{type:`problem`,docs:{description:`Enforces that every 'IntersectionObserver' created in a component or custom hook has a corresponding 'IntersectionObserver.disconnect()'.`},messages:{"unexpected-floating-instance":`An 'IntersectionObserver' instance created in component or custom hook must be assigned to a variable for proper cleanup.`,"expected-disconnect-in-control-flow":`Dynamically added 'IntersectionObserver.observe' should be cleared all at once using 'IntersectionObserver.disconnect' in the cleanup function.`,"expected-disconnect-or-unobserve-in-cleanup":`An 'IntersectionObserver' instance created in 'useEffect' must be disconnected in the cleanup function.`},schema:[]},name:`no-leaked-intersection-observer`,create:Hpe});function Hpe(e){if(!e.sourceCode.text.includes(`IntersectionObserver`))return{};let t=[],n=[],r=[],a=[],o=/* @__PURE__ */ new Set,s=/* @__PURE__ */ new Set;function c(e){if(uZ.hasParent(e,k1))return!0;for(let t of[...o,...s])if(uZ.hasParent(e,e=>e===t))return!0;return!1}return{CallExpression(t){let o=uZ.findParent(t,P6);if(o==null)return;let c=Q.unwrap(t.callee);if(c.type===i.Identifier){if(k1(o)){let n=F6(e,t,c);n!=null&&s.add(n)}return}if(c.type!==i.MemberExpression)return;let{object:l}=c;bW(zpe(e,t)).with(`disconnect`,()=>{a.push({method:`disconnect`,node:t,observer:l})}).with(`observe`,()=>{let[e]=t.arguments;e!=null&&n.push({element:e,method:`observe`,node:t,observer:l})}).with(`unobserve`,()=>{let[e]=t.arguments;e!=null&&r.push({element:e,method:`unobserve`,node:t,observer:l})}).otherwise(()=>null)},NewExpression(n){if(!M6(n,`IntersectionObserver`))return;let r=uZ.findParent(n,S6(Z.isFunction,P6));if(r==null&&!Bpe(n))return;let i=YQ(n);i==null?e.report({messageId:`unexpected-floating-instance`,node:n}):t.push({id:i,node:n,phaseNode:r})},ReturnStatement(t){let n=t.argument==null?null:Q.unwrap(t.argument);if(n==null||n.type!==i.Identifier)return;let r=uZ.findParent(t,Z.isFunction);if(r==null||!O1(r))return;let a=F6(e,t,n);a!=null&&o.add(a)},"Program:exit"(){for(let{id:i,node:o,phaseNode:s}of t){let t=s==null?t=>Rpe(e,t,i):t=>BQ(e,t,i),l=e=>uZ.hasParent(e,e=>e===o);if(a.some(e=>!l(e.node)&&c(e.node)&&t(e.observer)))continue;let u=n.filter(e=>t(e.observer)),d=r.filter(e=>t(e.observer)),f=C6(Z.isCallExpression,Z.isConditionalOrLoop);if(u.some(e=>{let t=s??uZ.findParent(e.node,P6),n=e=>e===t;return!n(uZ.findParent(e.node,C6(f,n)))}))e.report({messageId:`expected-disconnect-in-control-flow`,node:o});else for(let t of u)d.some(n=>!l(n.node)&&c(n.node)&&BQ(e,n.element,t.element))||e.report({messageId:`expected-disconnect-or-unobserve-in-cleanup`,node:t.node})}}}}const Upe=C6(O1,k1);function Wpe(e){let t=Q.getCalleeName(e);return t!=null&&tW(vW.union(`setInterval`,`clearInterval`))(t)?t:`other`}function I6(e){let t=uZ.findParent(Q.unwrap(e),e=>!Z.isTypeOrChainExpression(e));return t?.type===i.CallExpression?Q.getCalleeName(t)??`useEffect`:`useEffect`}var Gpe=b6({meta:{type:`problem`,docs:{description:`Enforces that every 'setInterval' in a component or custom hook has a corresponding 'clearInterval'.`},messages:{"expected-interval-id":`A 'setInterval' must be assigned to a variable for proper cleanup.`,"expected-clear-interval-in-cleanup":`A 'setInterval' created in '{{ kind }}' must be cleared with 'clearInterval' in the cleanup function.`},schema:[]},name:`no-leaked-interval`,create:Kpe});function Kpe(e){if(!e.sourceCode.text.includes(`setInterval`))return{};let t=[],n=[];function r(t,n){return BQ(e,t.timerId,n.timerId)}return{CallExpression(r){let i=uZ.findParent(r,Upe);i!=null&&bW(Wpe(r)).with(`setInterval`,()=>{let n=YQ(r);n==null?e.report({messageId:`expected-interval-id`,node:r}):t.push({effectKind:I6(i),node:r,timerId:n})}).with(`clearInterval`,()=>{let[e]=r.arguments;e!=null&&n.push({effectKind:I6(i),node:r,timerId:e})}).otherwise(()=>null)},"Program:exit"(){for(let i of t)n.some(e=>r(i,e))||e.report({data:{kind:i.effectKind},messageId:`expected-clear-interval-in-cleanup`,node:i.node})}}}function L6(e,t){if(e?.type!==i.NewExpression)return!1;let n=Q.unwrap(e.callee);return Z.isIdentifier(n,t)}function R6(e,t,n){switch(!0){case Z.isIdentifier(t):{let r=KQ(e,t),a=r==null?null:Q.unwrap(r);if(a==null)return!1;if(L6(a,n))return!0;if(a.type===i.CallExpression&&T1(a)){let e=a.arguments.at(0);return e!=null&&L6(Q.unwrap(e),n)}return a.type===i.MemberExpression&&R6(e,a,n)}case t.type===i.MemberExpression:return R6(e,t.object,n);default:return!1}}function qpe(e,t,n){let r=Z.isTypeExpression(t)?Q.unwrap(t):t;if(Z.isIdentifier(r)){let t=KQ(e,r);t!=null&&(r=Q.unwrap(t))}return r.type===i.MemberExpression&&!r.computed&&Z.isIdentifier(Q.unwrap(r.property),`current`)&&BQ(e,r.object,n)}const z6=C6(O1,k1);function Jpe(e,t){let n=Q.unwrap(t.callee);if(n.type!==i.MemberExpression)return`other`;let r=Q.getCalleeName(t);return r==null||!tW(vW.union(`observe`,`unobserve`,`disconnect`))(r)||!R6(e,n,`ResizeObserver`)?`other`:r}function Ype(e){let t=e,n=e.parent;for(;Z.isTypeExpression(n);)t=n,n=n.parent;return n.type===i.CallExpression&&n.arguments.at(0)===t&&T1(n)}function B6(e,t,n){let r=(0,wX.findVariable)(e.sourceCode.getScope(t),n)?.defs.at(-1)?.node,a=r==null?null:r.type===i.FunctionDeclaration?r:r.type===i.VariableDeclarator&&r.init!=null?Q.unwrap(r.init):null;return a!=null&&Z.isFunction(a)?a:null}var Xpe=b6({meta:{type:`problem`,docs:{description:`Enforces that every 'ResizeObserver' created in a component or custom hook has a corresponding 'ResizeObserver.disconnect()'.`},messages:{"unexpected-floating-instance":`A 'ResizeObserver' instance created in component or custom hook must be assigned to a variable for proper cleanup.`,"expected-disconnect-in-control-flow":`Dynamically added 'ResizeObserver.observe' should be cleared all at once using 'ResizeObserver.disconnect' in the cleanup function.`,"expected-disconnect-or-unobserve-in-cleanup":`A 'ResizeObserver' instance created in 'useEffect' must be disconnected in the cleanup function.`},schema:[]},name:`no-leaked-resize-observer`,create:Zpe});function Zpe(e){if(!e.sourceCode.text.includes(`ResizeObserver`))return{};let t=[],n=[],r=[],a=[],o=/* @__PURE__ */ new Set,s=/* @__PURE__ */ new Set;function c(e){if(uZ.hasParent(e,k1))return!0;for(let t of[...o,...s])if(uZ.hasParent(e,e=>e===t))return!0;return!1}return{CallExpression(t){let o=uZ.findParent(t,z6);if(o==null)return;let c=Q.unwrap(t.callee);if(c.type===i.Identifier){if(k1(o)){let n=B6(e,t,c);n!=null&&s.add(n)}return}if(c.type!==i.MemberExpression)return;let{object:l}=c;bW(Jpe(e,t)).with(`disconnect`,()=>{a.push({method:`disconnect`,node:t,observer:l})}).with(`observe`,()=>{let[e]=t.arguments;e!=null&&n.push({element:e,method:`observe`,node:t,observer:l})}).with(`unobserve`,()=>{let[e]=t.arguments;e!=null&&r.push({element:e,method:`unobserve`,node:t,observer:l})}).otherwise(()=>null)},NewExpression(n){if(!L6(n,`ResizeObserver`))return;let r=uZ.findParent(n,S6(Z.isFunction,z6));if(r==null&&!Ype(n))return;let i=YQ(n);i==null?e.report({messageId:`unexpected-floating-instance`,node:n}):t.push({id:i,node:n,phaseNode:r})},ReturnStatement(t){let n=t.argument==null?null:Q.unwrap(t.argument);if(n==null||n.type!==i.Identifier)return;let r=uZ.findParent(t,Z.isFunction);if(r==null||!O1(r))return;let a=B6(e,t,n);a!=null&&o.add(a)},"Program:exit"(){for(let{id:o,node:s,phaseNode:l}of t){let t=l==null?t=>qpe(e,t,o):t=>BQ(e,t,o),u=e=>uZ.hasParent(e,e=>e===s);if(a.some(e=>!u(e.node)&&c(e.node)&&t(e.observer)))continue;let d=n.filter(e=>t(e.observer)),f=r.filter(e=>t(e.observer)),p=e=>e?.type===i.CallExpression||Z.isConditionalOrLoop(e);if(d.some(e=>{let t=l??uZ.findParent(e.node,z6),n=e=>e===t;return!n(uZ.findParent(e.node,C6(p,n)))}))e.report({messageId:`expected-disconnect-in-control-flow`,node:s});else for(let t of d)f.some(n=>!u(n.node)&&c(n.node)&&BQ(e,n.element,t.element))||e.report({messageId:`expected-disconnect-or-unobserve-in-cleanup`,node:t.node})}}}}const Qpe=C6(O1,k1);function $pe(e){let t=Q.getCalleeName(e);return t!=null&&tW(vW.union(`setTimeout`,`clearTimeout`))(t)?t:`other`}function V6(e){let t=uZ.findParent(Q.unwrap(e),e=>!Z.isTypeOrChainExpression(e));return t?.type===i.CallExpression?Q.getCalleeName(t)??`useEffect`:`useEffect`}var eme=b6({meta:{type:`problem`,docs:{description:`Enforces that every 'setTimeout' in a component or custom hook has a corresponding 'clearTimeout'.`},messages:{"expected-timeout-id":`A 'setTimeout' must be assigned to a variable for proper cleanup.`,"expected-clear-timeout-in-cleanup":`A 'setTimeout' created in '{{ kind }}' must be cleared with 'clearTimeout' in the cleanup function.`},schema:[]},name:`no-leaked-timeout`,create:tme});function tme(e){if(!e.sourceCode.text.includes(`setTimeout`))return{};let t=[],n=[];function r(t,n){return BQ(e,t.timerId,n.timerId)}return{CallExpression(r){let i=uZ.findParent(r,Qpe);i!=null&&bW($pe(r)).with(`setTimeout`,()=>{let n=YQ(r);n==null?e.report({messageId:`expected-timeout-id`,node:r}):t.push({effectKind:V6(i),node:r,timerId:n})}).with(`clearTimeout`,()=>{let[e]=r.arguments;e!=null&&n.push({effectKind:V6(i),node:r,timerId:e})}).otherwise(()=>null)},"Program:exit"(){for(let i of t)n.some(e=>r(i,e))||e.report({data:{kind:i.effectKind},messageId:`expected-clear-timeout-in-cleanup`,node:i.node})}}}const H6={meta:{name:ipe,version:ape},rules:{"no-leaked-event-listener":Dpe,"no-leaked-fetch":Mpe,"no-leaked-intersection-observer":Vpe,"no-leaked-interval":Gpe,"no-leaked-resize-observer":Xpe,"no-leaked-timeout":eme}};var nme=/* @__PURE__ */ rpe({name:()=>rme,plugins:()=>ame,rules:()=>ime,settings:()=>ome});const rme=`react-web-api/recommended`,ime={"react-web-api/no-leaked-event-listener":`warn`,"react-web-api/no-leaked-fetch":`warn`,"react-web-api/no-leaked-intersection-observer":`warn`,"react-web-api/no-leaked-interval":`warn`,"react-web-api/no-leaked-resize-observer":`warn`,"react-web-api/no-leaked-timeout":`warn`},ame={"react-web-api":H6},ome={"react-x":mX};function sme(e){return{...e,plugins:{...e.plugins,get"react-web-api"(){return U6}}}}const U6={...H6,configs:{recommended:sme(nme)}};var W6=Object.defineProperty,cme=(e,t)=>{let n=Object.setPrototypeOf({},null);for(var r in e)W6(n,r,{get:e[r],enumerable:!0});return t&1||W6(n,Symbol.toStringTag,{value:`Module`}),t&2?n:Object.preventExtensions(n)},lme=`eslint-plugin-react-naming-convention`,ume=`5.30.4`;function dme(e){return`https://eslint-react.xyz/docs/rules/naming-convention-${e}`}const G6=xX.RuleCreator(dme);function K6(e){return q6(e,null)}function q6(e,t){let n=e.parent;if(n==null)return null;if(n.type===i.Property){if(n.value!==e)return null;let r=J6(n.key,n.computed);return r==null?null:(t??=r,q6(n,t))}switch(n.type){case i.VariableDeclarator:{let e=pme(n.id);return e==null?null:t??e}case i.AssignmentExpression:{let e=mme(n.left);return e==null?null:t??e}case i.PropertyDefinition:{let e=J6(n.key,n.computed);return e==null?null:t??e}case i.ConditionalExpression:case i.LogicalExpression:case i.AwaitExpression:case i.ChainExpression:case i.TSAsExpression:case i.TSTypeAssertion:case i.TSNonNullExpression:case i.TSSatisfiesExpression:case i.TSInstantiationExpression:case i.ObjectExpression:return q6(n,t);case i.SequenceExpression:return n.expressions[n.expressions.length-1]===e?q6(n,t):null;case i.CallExpression:case i.NewExpression:return n.arguments.some(t=>t===e)?q6(n,t):null;default:return null}}function fme(e,t){return!t&&e.type===i.Identifier?e.name:e.type===i.Literal&&typeof e.value==`string`?e.value:null}function pme(e){return e.type===i.Identifier?[e,e.name]:null}function mme(e){return e.type===i.Identifier?[e,e.name]:e.type===i.MemberExpression?J6(e.property,e.computed,e):null}function J6(e,t,n=e){let r=fme(e,t);return r==null?null:[n,r]}var hme=G6({meta:{type:`suggestion`,docs:{description:"Enforces identifier names assigned from `createContext` calls to be a valid component name with the suffix `Context`."},messages:{"invalid-context-name":`A context name must be a valid component name with the suffix 'Context'.`},schema:[]},name:`context-name`,create:gme});function gme(e){return e.sourceCode.text.includes(`createContext`)?{CallExpression(t){if(!f$(e,t))return;let n=K6(t);if(n==null)return;let[r,i]=n;h1(i)&&i.endsWith(`Context`)||e.report({messageId:`invalid-context-name`,node:r})}}:{}}var _me=G6({meta:{type:`suggestion`,docs:{description:`Enforces identifier names assigned from 'useId' calls to be either 'id' or end with 'Id'.`},messages:{"invalid-id-name":`An identifier assigned from 'useId' must be named 'id' or end with 'Id'.`},schema:[]},name:`id-name`,create:vme});function vme(e){return e.sourceCode.text.includes(`useId`)?{CallExpression(t){if(!x$(e,t))return;let n=K6(t);if(n==null)return;let[r,i]=n;i.endsWith(`Id`)||i===`id`||e.report({messageId:`invalid-id-name`,node:r})}}:{}}var yme=G6({meta:{type:`suggestion`,docs:{description:`Enforces identifier names assigned from 'useRef' calls to be either 'ref' or end with 'Ref'.`},messages:{"invalid-ref-name":`A ref identifier must be named 'ref' or ending in 'Ref'.`},schema:[]},name:`ref-name`,create:bme});function bme(e){let{additionalRefHooks:t}=bX(e);return{CallExpression(n){if(!T1(n,t))return;let r=n.parent;for(;Z.isTypeExpression(r);)r=r.parent;if(r.type===i.MemberExpression)return;let a=K6(n);if(a==null)return;let[o,s]=a;s.endsWith(`Ref`)||s===`ref`||e.report({messageId:`invalid-ref-name`,node:o})}}}const Y6={meta:{name:lme,version:ume},rules:{"context-name":hme,"id-name":_me,"ref-name":yme}};var xme=/* @__PURE__ */ cme({name:()=>Sme,plugins:()=>wme,rules:()=>Cme});const Sme=`react-naming-convention/recommended`,Cme={"react-naming-convention/context-name":`warn`,"react-naming-convention/id-name":`warn`,"react-naming-convention/ref-name":`warn`},wme={"react-naming-convention":Y6};function Tme(e){return{...e,plugins:{...e.plugins,get"react-naming-convention"(){return X6}}}}const X6={...Y6,configs:{recommended:Tme(xme)}};var Z6=/^[A-Z][a-zA-Z0-9_]*$/u,Eme={meta:{messages:{exportAll:"This rule can't verify that `export *` only exports components.",namedExport:`Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components.`,anonymousExport:`Fast refresh can't handle anonymous components. Add a name to your export.`,localComponents:"Fast refresh only works when a file only exports components. Move your component(s) to a separate file. If all exports are HOCs, add them to the `extraHOCs` option.",noExport:`Fast refresh only works when a file has exports. Move your component(s) to a separate file.`,reactContext:`Fast refresh only works when a file only exports components. Move your React context(s) to a separate file.`},type:`problem`,schema:[{type:`object`,properties:{extraHOCs:{type:`array`,items:{type:`string`}},allowExportNames:{type:`array`,items:{type:`string`}},allowConstantExport:{type:`boolean`},allowCompoundComponents:{type:`boolean`},checkJS:{type:`boolean`}},additionalProperties:!1}]},defaultOptions:[],create:e=>{let{extraHOCs:t=[],allowExportNames:n,allowConstantExport:r=!1,allowCompoundComponents:i=!1,checkJS:a=!1}=e.options[0]??{},o=e.filename;if(o.includes(`.test.`)||o.includes(`.spec.`)||o.includes(`.cy.`)||o.includes(`.stories.`)||!(o.endsWith(`.jsx`)||o.endsWith(`.tsx`)||a&&o.endsWith(`.js`)))return{};let s=n?new Set(n):void 0,c=[`memo`,`forwardRef`,`lazy`,...t],l=e=>{let t=e.type===`CallExpression`?e.callee:e.tag;if(t.type===`CallExpression`)return l(t);if(t.type===`MemberExpression`){if(t.property.type===`Identifier`&&c.includes(t.property.name))return t.property.name;if(t.object.type===`Identifier`&&c.includes(t.object.name))return t.object.name;if(t.object.type===`CallExpression`)return l(t.object)}if(t.type===`Identifier`)return t.name},u=e=>{let t=l(e);if(!t||!c.includes(t))return!1;if(t!==`memo`&&t!==`forwardRef`)return!0;if(e.arguments.length===0)return!1;let n=Q6(e.arguments[0]);switch(n.type){case`Identifier`:return Z6.test(n.name);case`FunctionExpression`:case`ArrowFunctionExpression`:return n.id?Z6.test(n.id.name):`needName`;case`CallExpression`:return u(n);default:return!1}},d=e=>{let t=Q6(e);if(t.type===`Identifier`)return Z6.test(t.name);if(t.type===`ArrowFunctionExpression`||t.type===`FunctionExpression`)return t.params.length>2?!1:t.id?.name?Z6.test(t.id.name):`needName`;if(t.type===`ConditionalExpression`){let e=d(t.consequent),n=d(t.alternate);return e===!1||n===!1?!1:e===`needName`||n===`needName`?`needName`:!0}if(t.type===`CallExpression`)return u(t);if(t.type===`TaggedTemplateExpression`){let e=l(t);return!e||!c.includes(e)?!1:`needName`}return t.type===`MemberExpression`&&!t.computed?Z6.test(t.property.name):i&&t.type===`ObjectExpression`?t.properties.length!==0&&t.properties.every(e=>{if(e.type!==`Property`||e.kind!==`init`)return!1;let t=Q6(e.value);if(t.type===`ObjectExpression`||t.type===`AssignmentPattern`||t.type===`TSEmptyBodyFunctionExpression`)return!1;let n=d(t);if(n===`needName`){if(e.computed)return!1;let t=e.key.type===`Identifier`?e.key.name:e.key.value;return typeof t==`string`&&Z6.test(t)}return n}):!1};return{Program(t){let n=!1,o=!1,c=!1,l=[],f=[],p=[],m=(e,t)=>{if(e.type!==`Identifier`){f.push(e);return}if(s?.has(e.name))return;if(!t){Z6.test(e.name)?o=!0:f.push(e);return}let n=Q6(t);r&&$6.has(n.type)||(n.type===`CallExpression`&&(n.callee.type===`Identifier`&&n.callee.name===`createContext`||n.callee.type===`MemberExpression`&&n.callee.property.type===`Identifier`&&n.callee.property.name===`createContext`)?p.push(e):(Z6.test(e.name)&&d(n))===!1?f.push(e):o=!0)},h=t=>{if(t.type===`VariableDeclaration`)for(let e of t.declarations)e.init===null?f.push(e.id):m(e.id,e.init);else if(t.type===`FunctionDeclaration`)t.id===null?e.report({messageId:`anonymousExport`,node:t}):m(t.id);else if(t.type===`ClassDeclaration`)t.id===null?e.report({messageId:`anonymousExport`,node:t}):Z6.test(t.id.name)&&t.superClass!==null&&t.body.body.some(e=>e.type===`MethodDefinition`&&e.key.type===`Identifier`&&e.key.name===`render`)?o=!0:f.push(t.id);else if(t.type===`CallExpression`){let n=u(t);n===!1?f.push(t):n===`needName`?e.report({messageId:`anonymousExport`,node:t}):o=!0}else t.type===`ObjectExpression`?d(t)===!1?f.push(t):o=!0:f.push(t)};for(let a of t.body)if(a.type===`ExportAllDeclaration`){if(a.exportKind===`type`)continue;n=!0,e.report({messageId:`exportAll`,node:a})}else if(a.type===`ExportDefaultDeclaration`){n=!0;let t=Q6(a.declaration);if(t.type===`VariableDeclaration`||t.type===`FunctionDeclaration`||t.type===`ClassDeclaration`||t.type===`CallExpression`||i&&t.type===`ObjectExpression`)h(t);else if(t.type===`Identifier`)m(t);else if(t.type===`ArrowFunctionExpression`)e.report({messageId:`anonymousExport`,node:a});else{if(r&&$6.has(t.type))return;f.push(t)}}else if(a.type===`ExportNamedDeclaration`){if(a.exportKind===`type`)continue;let t=a.declaration?Q6(a.declaration):null;if(t?.type===`TSDeclareFunction`)continue;n=!0,t&&h(t);for(let t of a.specifiers){let n=t.exported.type===`Identifier`&&t.exported.name==="default"?t.local:t.exported;if(t.local.type===`Identifier`){let r=e.sourceCode.getScope(a),i=t.local.name,o=r.variables.find(e=>e.name===i)?.defs[0];if(o?.type===`ClassName`){h(o.node);continue}if(o?.type===`Variable`&&o.node.init!==null){m(n,o.node.init);continue}}m(n)}}else if(a.type===`VariableDeclaration`)for(let e of a.declarations)e.id.type===`Identifier`&&Z6.test(e.id.name)&&e.init!==null&&d(e.init)!==!1&&l.push(e.id);else a.type===`FunctionDeclaration`?Z6.test(a.id.name)&&l.push(a.id):a.type===`ImportDeclaration`&&a.source.value===`react`&&(c=!0);if(!a||c){if(n){if(o){for(let t of f)e.report({messageId:`namedExport`,node:t});for(let t of p)e.report({messageId:`reactContext`,node:t})}else if(l.length>0)for(let t of l)e.report({messageId:`localComponents`,node:t})}else if(l.length>0)for(let t of l)e.report({messageId:`noExport`,node:t})}}}}},Q6=e=>e.type===`TSAsExpression`||e.type===`TSSatisfiesExpression`||e.type===`TSNonNullExpression`||e.type===`TSTypeAssertion`||e.type===`TSInstantiationExpression`?e.expression:e,$6=/* @__PURE__ */ new Set([`Literal`,`UnaryExpression`,`TemplateLiteral`,`BinaryExpression`]),e8={"only-export-components":Eme},Dme={rules:e8},t8=({name:e,baseOptions:t})=>n=>({name:`react-refresh/${e}`,plugins:{"react-refresh":Dme},rules:{"react-refresh/only-export-components":[`error`,{...t,...n}]}}),n8={recommended:t8({name:`recommended`,baseOptions:{}}),vite:t8({name:`vite`,baseOptions:{allowConstantExport:!0,allowCompoundComponents:!0}}),next:t8({name:`next`,baseOptions:{allowExportNames:[`experimental_ppr`,`dynamic`,`dynamicParams`,`revalidate`,`fetchCache`,`runtime`,`preferredRegion`,`maxDuration`,`metadata`,`generateMetadata`,`viewport`,`generateViewport`,`generateImageMetadata`,`generateSitemaps`,`generateStaticParams`,`instant`,`contentType`,`size`]}})},Ome={rules:e8,configs:{recommended:n8.recommended(),vite:n8.vite(),next:n8.next()}},kme=/* @__PURE__ */ I(((e,t)=>{let n=/* @__PURE__ */ new Set([`h1`,`h2`,`h3`,`h4`,`h5`,`h6`]),r=/* @__PURE__ */ new Set([]),{onlyValidChildren:i,onlyValidParents:a,knownInvalidChildren:o,knownInvalidParents:s}={onlyValidChildren:{head:/* @__PURE__ */ new Set([`base`,`basefront`,`bgsound`,`link`,`meta`,`title`,`noscript`,`noframes`,`style`,`script`,`template`]),optgroup:/* @__PURE__ */ new Set([`option`]),select:/* @__PURE__ */ new Set([`optgroup`,`option`]),math:/* @__PURE__ */ new Set([`mrow`]),script:/* @__PURE__ */ new Set,table:/* @__PURE__ */ new Set([`caption`,`colgroup`,`tbody`,`tfoot`,`thead`]),tr:/* @__PURE__ */ new Set([`td`,`th`]),colgroup:/* @__PURE__ */ new Set([`col`]),tbody:/* @__PURE__ */ new Set([`tr`]),thead:/* @__PURE__ */ new Set([`tr`]),tfoot:/* @__PURE__ */ new Set([`tr`]),iframe:r,option:r,textarea:r,style:r,title:r},onlyValidParents:{html:r,body:/* @__PURE__ */ new Set([`html`]),head:/* @__PURE__ */ new Set([`html`]),td:/* @__PURE__ */ new Set([`tr`]),colgroup:/* @__PURE__ */ new Set([`table`]),caption:/* @__PURE__ */ new Set([`table`]),tbody:/* @__PURE__ */ new Set([`table`]),tfoot:/* @__PURE__ */ new Set([`table`]),col:/* @__PURE__ */ new Set([`colgroup`]),th:/* @__PURE__ */ new Set([`tr`]),thead:/* @__PURE__ */ new Set([`table`]),tr:/* @__PURE__ */ new Set([`tbody`,`thead`,`tfoot`]),dd:/* @__PURE__ */ new Set([`dl`,`div`]),dt:/* @__PURE__ */ new Set([`dl`,`div`]),figcaption:/* @__PURE__ */ new Set([`figure`]),summary:/* @__PURE__ */ new Set([`details`]),area:/* @__PURE__ */ new Set([`map`])},knownInvalidChildren:{p:/* @__PURE__ */ new Set(/* @__PURE__ */ `address.article.aside.blockquote.center.details.dialog.dir.div.dl.fieldset.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.li.main.nav.menu.ol.p.pre.section.table.ul`.split(`.`)),svg:/* @__PURE__ */ new Set(/* @__PURE__ */ `b.blockquote.br.code.dd.div.dl.dt.em.embed.h1.h2.h3.h4.h5.h6.hr.i.img.li.menu.meta.ol.p.pre.ruby.s.small.span.strong.sub.sup.table.u.ul.var`.split(`.`))},knownInvalidParents:{a:/* @__PURE__ */ new Set([`a`]),button:/* @__PURE__ */ new Set([`button`]),dd:/* @__PURE__ */ new Set([`dd`,`dt`]),dt:/* @__PURE__ */ new Set([`dd`,`dt`]),form:/* @__PURE__ */ new Set([`form`]),li:/* @__PURE__ */ new Set([`li`]),h1:n,h2:n,h3:n,h4:n,h5:n,h6:n}};function c(e,t){return e in i?i[e].has(t):t in a?a[t].has(e):!(e in o&&o[e].has(t)||t in s&&s[t].has(e))}var l={isValidHTMLNesting:c};function u(e){return e[0]===e[0].toUpperCase()}function d(e){return typeof e==`object`&&!!e&&e.type===`JSXElement`}t.exports={rules:{"no-invalid-jsx-nesting":{meta:{type:`problem`},create(e){return{JSXElement(t){let n=t,r=t.parent,i=n.openingElement.name;if(i.type!==`JSXIdentifier`||u(i.name)||!d(r))return;let a=r.openingElement.name;a.type===`JSXIdentifier`&&(u(a.name)||l.isValidHTMLNesting(a.name,i.name)||e.report({node:t,message:`Invalid HTML nesting: <${i.name}> can not be child of <${a.name}>`}))}}}}}}})),Ame=/* @__PURE__ */ I(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/adjacent-overload-signatures":`error`,"@typescript-eslint/array-type":`error`,"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/ban-ts-comment":`error`,"@typescript-eslint/ban-tslint-comment":`error`,"@typescript-eslint/class-literal-property-style":`error`,"class-methods-use-this":`off`,"@typescript-eslint/class-methods-use-this":`error`,"@typescript-eslint/consistent-generic-constructors":`error`,"@typescript-eslint/consistent-indexed-object-style":`error`,"consistent-return":`off`,"@typescript-eslint/consistent-return":`error`,"@typescript-eslint/consistent-type-assertions":`error`,"@typescript-eslint/consistent-type-definitions":`error`,"@typescript-eslint/consistent-type-exports":`error`,"@typescript-eslint/consistent-type-imports":`error`,"default-param-last":`off`,"@typescript-eslint/default-param-last":`error`,"dot-notation":`off`,"@typescript-eslint/dot-notation":`error`,"@typescript-eslint/explicit-function-return-type":`error`,"@typescript-eslint/explicit-member-accessibility":`error`,"@typescript-eslint/explicit-module-boundary-types":`error`,"init-declarations":`off`,"@typescript-eslint/init-declarations":`error`,"max-params":`off`,"@typescript-eslint/max-params":`error`,"@typescript-eslint/member-ordering":`error`,"@typescript-eslint/method-signature-style":`error`,"@typescript-eslint/naming-convention":`error`,"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-confusing-non-null-assertion":`error`,"@typescript-eslint/no-confusing-void-expression":`error`,"@typescript-eslint/no-deprecated":`error`,"no-dupe-class-members":`off`,"@typescript-eslint/no-dupe-class-members":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-dynamic-delete":`error`,"no-empty-function":`off`,"@typescript-eslint/no-empty-function":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-extraneous-class":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"@typescript-eslint/no-generated-empty-object-type":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-import-type-side-effects":`error`,"@typescript-eslint/no-inferrable-types":`error`,"no-invalid-this":`off`,"@typescript-eslint/no-invalid-this":`error`,"@typescript-eslint/no-invalid-void-type":`error`,"no-magic-numbers":`off`,"@typescript-eslint/no-magic-numbers":`error`,"@typescript-eslint/no-meaningless-void-operator":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-misused-spread":`error`,"@typescript-eslint/no-mixed-enums":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-nullish-coalescing":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-non-null-assertion":`error`,"no-redeclare":`off`,"@typescript-eslint/no-redeclare":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-restricted-types":`error`,"no-shadow":`off`,"@typescript-eslint/no-shadow":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`error`,"@typescript-eslint/no-unnecessary-condition":`error`,"@typescript-eslint/no-unnecessary-parameter-property-assignment":`error`,"@typescript-eslint/no-unnecessary-qualifier":`error`,"@typescript-eslint/no-unnecessary-template-expression":`error`,"@typescript-eslint/no-unnecessary-type-arguments":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unnecessary-type-conversion":`error`,"@typescript-eslint/no-unnecessary-type-parameters":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-class-instance-assignment":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-enum-assignment":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-type-assertion":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-private-class-members":`off`,"@typescript-eslint/no-unused-private-class-members":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"no-use-before-define":`off`,"@typescript-eslint/no-use-before-define":`error`,"no-useless-constructor":`off`,"@typescript-eslint/no-useless-constructor":`error`,"@typescript-eslint/no-useless-default-assignment":`error`,"@typescript-eslint/no-useless-empty-export":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"@typescript-eslint/non-nullable-type-assertion-style":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"@typescript-eslint/parameter-properties":`error`,"@typescript-eslint/prefer-as-const":`error`,"prefer-destructuring":`off`,"@typescript-eslint/prefer-destructuring":`error`,"@typescript-eslint/prefer-enum-initializers":`error`,"@typescript-eslint/prefer-find":`error`,"@typescript-eslint/prefer-for-of":`error`,"@typescript-eslint/prefer-function-type":`error`,"@typescript-eslint/prefer-includes":`error`,"@typescript-eslint/prefer-literal-enum-member":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"@typescript-eslint/prefer-nullish-coalescing":`error`,"@typescript-eslint/prefer-optional-chain":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"@typescript-eslint/prefer-readonly":`error`,"@typescript-eslint/prefer-readonly-parameter-types":`error`,"@typescript-eslint/prefer-reduce-type-parameter":`error`,"@typescript-eslint/prefer-regexp-exec":`error`,"@typescript-eslint/prefer-return-this-type":`error`,"@typescript-eslint/prefer-string-starts-ends-with":`error`,"@typescript-eslint/promise-function-async":`error`,"@typescript-eslint/related-getter-setter-pairs":`error`,"@typescript-eslint/require-array-sort-compare":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":`error`,"@typescript-eslint/restrict-template-expressions":`error`,"no-return-await":`off`,"@typescript-eslint/return-await":`error`,"@typescript-eslint/strict-boolean-expressions":`error`,"@typescript-eslint/strict-void-return":`error`,"@typescript-eslint/switch-exhaustiveness-check":`error`,"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unbound-method":`error`,"@typescript-eslint/unified-signatures":`error`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`error`}}})),jme=/* @__PURE__ */ I(((e,t)=>{t.exports={parser:`@typescript-eslint/parser`,parserOptions:{sourceType:`module`},plugins:[`@typescript-eslint`]}})),Mme=/* @__PURE__ */ I(((e,t)=>{t.exports={parserOptions:{program:null,project:!1,projectService:!1},rules:{"@typescript-eslint/await-thenable":`off`,"@typescript-eslint/consistent-return":`off`,"@typescript-eslint/consistent-type-exports":`off`,"@typescript-eslint/dot-notation":`off`,"@typescript-eslint/naming-convention":`off`,"@typescript-eslint/no-array-delete":`off`,"@typescript-eslint/no-base-to-string":`off`,"@typescript-eslint/no-confusing-void-expression":`off`,"@typescript-eslint/no-deprecated":`off`,"@typescript-eslint/no-duplicate-type-constituents":`off`,"@typescript-eslint/no-floating-promises":`off`,"@typescript-eslint/no-for-in-array":`off`,"@typescript-eslint/no-generated-empty-object-type":`off`,"@typescript-eslint/no-implied-eval":`off`,"@typescript-eslint/no-meaningless-void-operator":`off`,"@typescript-eslint/no-misused-promises":`off`,"@typescript-eslint/no-misused-spread":`off`,"@typescript-eslint/no-mixed-enums":`off`,"@typescript-eslint/no-redundant-type-constituents":`off`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`off`,"@typescript-eslint/no-unnecessary-condition":`off`,"@typescript-eslint/no-unnecessary-qualifier":`off`,"@typescript-eslint/no-unnecessary-template-expression":`off`,"@typescript-eslint/no-unnecessary-type-arguments":`off`,"@typescript-eslint/no-unnecessary-type-assertion":`off`,"@typescript-eslint/no-unnecessary-type-conversion":`off`,"@typescript-eslint/no-unnecessary-type-parameters":`off`,"@typescript-eslint/no-unsafe-argument":`off`,"@typescript-eslint/no-unsafe-assignment":`off`,"@typescript-eslint/no-unsafe-call":`off`,"@typescript-eslint/no-unsafe-class-instance-assignment":`off`,"@typescript-eslint/no-unsafe-enum-assignment":`off`,"@typescript-eslint/no-unsafe-enum-comparison":`off`,"@typescript-eslint/no-unsafe-member-access":`off`,"@typescript-eslint/no-unsafe-return":`off`,"@typescript-eslint/no-unsafe-type-assertion":`off`,"@typescript-eslint/no-unsafe-unary-minus":`off`,"@typescript-eslint/no-useless-default-assignment":`off`,"@typescript-eslint/non-nullable-type-assertion-style":`off`,"@typescript-eslint/only-throw-error":`off`,"@typescript-eslint/prefer-destructuring":`off`,"@typescript-eslint/prefer-find":`off`,"@typescript-eslint/prefer-includes":`off`,"@typescript-eslint/prefer-nullish-coalescing":`off`,"@typescript-eslint/prefer-optional-chain":`off`,"@typescript-eslint/prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-readonly":`off`,"@typescript-eslint/prefer-readonly-parameter-types":`off`,"@typescript-eslint/prefer-reduce-type-parameter":`off`,"@typescript-eslint/prefer-regexp-exec":`off`,"@typescript-eslint/prefer-return-this-type":`off`,"@typescript-eslint/prefer-string-starts-ends-with":`off`,"@typescript-eslint/promise-function-async":`off`,"@typescript-eslint/related-getter-setter-pairs":`off`,"@typescript-eslint/require-array-sort-compare":`off`,"@typescript-eslint/require-await":`off`,"@typescript-eslint/restrict-plus-operands":`off`,"@typescript-eslint/restrict-template-expressions":`off`,"@typescript-eslint/return-await":`off`,"@typescript-eslint/strict-boolean-expressions":`off`,"@typescript-eslint/strict-void-return":`off`,"@typescript-eslint/switch-exhaustiveness-check":`off`,"@typescript-eslint/unbound-method":`off`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`off`}}})),r8=/* @__PURE__ */ I(((e,t)=>{t.exports=e=>({files:e===`glob`?[`*.ts`,`*.tsx`,`*.mts`,`*.cts`]:[`**/*.ts`,`**/*.tsx`,`**/*.mts`,`**/*.cts`],rules:{"constructor-super":`off`,"getter-return":`off`,"no-class-assign":`off`,"no-const-assign":`off`,"no-dupe-args":`off`,"no-dupe-class-members":`off`,"no-dupe-keys":`off`,"no-func-assign":`off`,"no-import-assign":`off`,"no-new-native-nonconstructor":`off`,"no-new-symbol":`off`,"no-obj-calls":`off`,"no-redeclare":`off`,"no-setter-return":`off`,"no-this-before-super":`off`,"no-undef":`off`,"no-unreachable":`off`,"no-unsafe-negation":`off`,"no-var":`error`,"no-with":`off`,"prefer-const":`error`,"prefer-rest-params":`error`,"prefer-spread":`error`}})})),Nme=/* @__PURE__ */ I(((e,t,n)=>{t.exports={overrides:[(0,(n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(r8()).default)(`glob`)]}})),Pme=/* @__PURE__ */ I(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/ban-ts-comment":`error`,"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"@typescript-eslint/triple-slash-reference":`error`}}})),Fme=/* @__PURE__ */ I(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/ban-ts-comment":`error`,"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":`error`,"@typescript-eslint/restrict-template-expressions":`error`,"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unbound-method":`error`}}})),Ime=/* @__PURE__ */ I(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":`error`,"@typescript-eslint/restrict-template-expressions":`error`,"@typescript-eslint/unbound-method":`error`}}})),Lme=/* @__PURE__ */ I(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/ban-ts-comment":[`error`,{minimumDescriptionLength:10}],"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-dynamic-delete":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-extraneous-class":`error`,"@typescript-eslint/no-invalid-void-type":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-nullish-coalescing":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-non-null-assertion":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"no-useless-constructor":`off`,"@typescript-eslint/no-useless-constructor":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-literal-enum-member":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unified-signatures":`error`}}})),Rme=/* @__PURE__ */ I(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/ban-ts-comment":[`error`,{minimumDescriptionLength:10}],"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-confusing-void-expression":`error`,"@typescript-eslint/no-deprecated":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-dynamic-delete":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-extraneous-class":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"@typescript-eslint/no-generated-empty-object-type":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-invalid-void-type":`error`,"@typescript-eslint/no-meaningless-void-operator":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-misused-spread":`error`,"@typescript-eslint/no-mixed-enums":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-nullish-coalescing":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-non-null-assertion":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`error`,"@typescript-eslint/no-unnecessary-condition":`error`,"@typescript-eslint/no-unnecessary-template-expression":`error`,"@typescript-eslint/no-unnecessary-type-arguments":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unnecessary-type-conversion":`error`,"@typescript-eslint/no-unnecessary-type-parameters":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-class-instance-assignment":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-enum-assignment":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"no-useless-constructor":`off`,"@typescript-eslint/no-useless-constructor":`error`,"@typescript-eslint/no-useless-default-assignment":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-literal-enum-member":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"@typescript-eslint/prefer-reduce-type-parameter":`error`,"@typescript-eslint/prefer-return-this-type":`error`,"@typescript-eslint/related-getter-setter-pairs":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":[`error`,{allowAny:!1,allowBoolean:!1,allowNullish:!1,allowNumberAndString:!1,allowRegExp:!1}],"@typescript-eslint/restrict-template-expressions":[`error`,{allowAny:!1,allowBoolean:!1,allowNever:!1,allowNullish:!1,allowNumber:!1,allowRegExp:!1}],"no-return-await":`off`,"@typescript-eslint/return-await":[`error`,`error-handling-correctness-only`],"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unbound-method":`error`,"@typescript-eslint/unified-signatures":`error`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`error`}}})),zme=/* @__PURE__ */ I(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-confusing-void-expression":`error`,"@typescript-eslint/no-deprecated":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"@typescript-eslint/no-generated-empty-object-type":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-meaningless-void-operator":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-misused-spread":`error`,"@typescript-eslint/no-mixed-enums":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`error`,"@typescript-eslint/no-unnecessary-condition":`error`,"@typescript-eslint/no-unnecessary-template-expression":`error`,"@typescript-eslint/no-unnecessary-type-arguments":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-conversion":`error`,"@typescript-eslint/no-unnecessary-type-parameters":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-class-instance-assignment":`error`,"@typescript-eslint/no-unsafe-enum-assignment":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"@typescript-eslint/no-useless-default-assignment":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"@typescript-eslint/prefer-reduce-type-parameter":`error`,"@typescript-eslint/prefer-return-this-type":`error`,"@typescript-eslint/related-getter-setter-pairs":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":[`error`,{allowAny:!1,allowBoolean:!1,allowNullish:!1,allowNumberAndString:!1,allowRegExp:!1}],"@typescript-eslint/restrict-template-expressions":[`error`,{allowAny:!1,allowBoolean:!1,allowNever:!1,allowNullish:!1,allowNumber:!1,allowRegExp:!1}],"no-return-await":`off`,"@typescript-eslint/return-await":[`error`,`error-handling-correctness-only`],"@typescript-eslint/unbound-method":`error`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`error`}}})),Bme=/* @__PURE__ */ I(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/adjacent-overload-signatures":`error`,"@typescript-eslint/array-type":`error`,"@typescript-eslint/ban-tslint-comment":`error`,"@typescript-eslint/class-literal-property-style":`error`,"@typescript-eslint/consistent-generic-constructors":`error`,"@typescript-eslint/consistent-indexed-object-style":`error`,"@typescript-eslint/consistent-type-assertions":`error`,"@typescript-eslint/consistent-type-definitions":`error`,"@typescript-eslint/no-confusing-non-null-assertion":`error`,"no-empty-function":`off`,"@typescript-eslint/no-empty-function":`error`,"@typescript-eslint/no-inferrable-types":`error`,"@typescript-eslint/prefer-for-of":`error`,"@typescript-eslint/prefer-function-type":`error`}}})),Vme=/* @__PURE__ */ I(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/adjacent-overload-signatures":`error`,"@typescript-eslint/array-type":`error`,"@typescript-eslint/ban-tslint-comment":`error`,"@typescript-eslint/class-literal-property-style":`error`,"@typescript-eslint/consistent-generic-constructors":`error`,"@typescript-eslint/consistent-indexed-object-style":`error`,"@typescript-eslint/consistent-type-assertions":`error`,"@typescript-eslint/consistent-type-definitions":`error`,"dot-notation":`off`,"@typescript-eslint/dot-notation":`error`,"@typescript-eslint/no-confusing-non-null-assertion":`error`,"no-empty-function":`off`,"@typescript-eslint/no-empty-function":`error`,"@typescript-eslint/no-inferrable-types":`error`,"@typescript-eslint/non-nullable-type-assertion-style":`error`,"@typescript-eslint/prefer-find":`error`,"@typescript-eslint/prefer-for-of":`error`,"@typescript-eslint/prefer-function-type":`error`,"@typescript-eslint/prefer-includes":`error`,"@typescript-eslint/prefer-nullish-coalescing":`error`,"@typescript-eslint/prefer-optional-chain":`error`,"@typescript-eslint/prefer-regexp-exec":`error`,"@typescript-eslint/prefer-string-starts-ends-with":`error`}}})),Hme=/* @__PURE__ */ I(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"dot-notation":`off`,"@typescript-eslint/dot-notation":`error`,"@typescript-eslint/non-nullable-type-assertion-style":`error`,"@typescript-eslint/prefer-find":`error`,"@typescript-eslint/prefer-includes":`error`,"@typescript-eslint/prefer-nullish-coalescing":`error`,"@typescript-eslint/prefer-optional-chain":`error`,"@typescript-eslint/prefer-regexp-exec":`error`,"@typescript-eslint/prefer-string-starts-ends-with":`error`}}})),i8=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=(e,t)=>({name:`typescript-eslint/base`,languageOptions:{parser:t,sourceType:`module`},plugins:{"@typescript-eslint":e}})})),a8=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(r8());e.default=(e,t)=>({...(0,i.default)(`minimatch`),name:`typescript-eslint/eslint-recommended`})})),Ume=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(i8()),a=r(a8());e.default=(e,t)=>[(0,i.default)(e,t),(0,a.default)(e,t),{name:`typescript-eslint/all`,rules:{"@typescript-eslint/adjacent-overload-signatures":`error`,"@typescript-eslint/array-type":`error`,"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/ban-ts-comment":`error`,"@typescript-eslint/ban-tslint-comment":`error`,"@typescript-eslint/class-literal-property-style":`error`,"class-methods-use-this":`off`,"@typescript-eslint/class-methods-use-this":`error`,"@typescript-eslint/consistent-generic-constructors":`error`,"@typescript-eslint/consistent-indexed-object-style":`error`,"consistent-return":`off`,"@typescript-eslint/consistent-return":`error`,"@typescript-eslint/consistent-type-assertions":`error`,"@typescript-eslint/consistent-type-definitions":`error`,"@typescript-eslint/consistent-type-exports":`error`,"@typescript-eslint/consistent-type-imports":`error`,"default-param-last":`off`,"@typescript-eslint/default-param-last":`error`,"dot-notation":`off`,"@typescript-eslint/dot-notation":`error`,"@typescript-eslint/explicit-function-return-type":`error`,"@typescript-eslint/explicit-member-accessibility":`error`,"@typescript-eslint/explicit-module-boundary-types":`error`,"init-declarations":`off`,"@typescript-eslint/init-declarations":`error`,"max-params":`off`,"@typescript-eslint/max-params":`error`,"@typescript-eslint/member-ordering":`error`,"@typescript-eslint/method-signature-style":`error`,"@typescript-eslint/naming-convention":`error`,"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-confusing-non-null-assertion":`error`,"@typescript-eslint/no-confusing-void-expression":`error`,"@typescript-eslint/no-deprecated":`error`,"no-dupe-class-members":`off`,"@typescript-eslint/no-dupe-class-members":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-dynamic-delete":`error`,"no-empty-function":`off`,"@typescript-eslint/no-empty-function":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-extraneous-class":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"@typescript-eslint/no-generated-empty-object-type":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-import-type-side-effects":`error`,"@typescript-eslint/no-inferrable-types":`error`,"no-invalid-this":`off`,"@typescript-eslint/no-invalid-this":`error`,"@typescript-eslint/no-invalid-void-type":`error`,"no-magic-numbers":`off`,"@typescript-eslint/no-magic-numbers":`error`,"@typescript-eslint/no-meaningless-void-operator":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-misused-spread":`error`,"@typescript-eslint/no-mixed-enums":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-nullish-coalescing":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-non-null-assertion":`error`,"no-redeclare":`off`,"@typescript-eslint/no-redeclare":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-restricted-types":`error`,"no-shadow":`off`,"@typescript-eslint/no-shadow":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`error`,"@typescript-eslint/no-unnecessary-condition":`error`,"@typescript-eslint/no-unnecessary-parameter-property-assignment":`error`,"@typescript-eslint/no-unnecessary-qualifier":`error`,"@typescript-eslint/no-unnecessary-template-expression":`error`,"@typescript-eslint/no-unnecessary-type-arguments":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unnecessary-type-conversion":`error`,"@typescript-eslint/no-unnecessary-type-parameters":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-class-instance-assignment":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-enum-assignment":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-type-assertion":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-private-class-members":`off`,"@typescript-eslint/no-unused-private-class-members":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"no-use-before-define":`off`,"@typescript-eslint/no-use-before-define":`error`,"no-useless-constructor":`off`,"@typescript-eslint/no-useless-constructor":`error`,"@typescript-eslint/no-useless-default-assignment":`error`,"@typescript-eslint/no-useless-empty-export":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"@typescript-eslint/non-nullable-type-assertion-style":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"@typescript-eslint/parameter-properties":`error`,"@typescript-eslint/prefer-as-const":`error`,"prefer-destructuring":`off`,"@typescript-eslint/prefer-destructuring":`error`,"@typescript-eslint/prefer-enum-initializers":`error`,"@typescript-eslint/prefer-find":`error`,"@typescript-eslint/prefer-for-of":`error`,"@typescript-eslint/prefer-function-type":`error`,"@typescript-eslint/prefer-includes":`error`,"@typescript-eslint/prefer-literal-enum-member":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"@typescript-eslint/prefer-nullish-coalescing":`error`,"@typescript-eslint/prefer-optional-chain":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"@typescript-eslint/prefer-readonly":`error`,"@typescript-eslint/prefer-readonly-parameter-types":`error`,"@typescript-eslint/prefer-reduce-type-parameter":`error`,"@typescript-eslint/prefer-regexp-exec":`error`,"@typescript-eslint/prefer-return-this-type":`error`,"@typescript-eslint/prefer-string-starts-ends-with":`error`,"@typescript-eslint/promise-function-async":`error`,"@typescript-eslint/related-getter-setter-pairs":`error`,"@typescript-eslint/require-array-sort-compare":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":`error`,"@typescript-eslint/restrict-template-expressions":`error`,"no-return-await":`off`,"@typescript-eslint/return-await":`error`,"@typescript-eslint/strict-boolean-expressions":`error`,"@typescript-eslint/strict-void-return":`error`,"@typescript-eslint/switch-exhaustiveness-check":`error`,"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unbound-method":`error`,"@typescript-eslint/unified-signatures":`error`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`error`}}]})),Wme=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=(e,t)=>({name:`typescript-eslint/disable-type-checked`,rules:{"@typescript-eslint/await-thenable":`off`,"@typescript-eslint/consistent-return":`off`,"@typescript-eslint/consistent-type-exports":`off`,"@typescript-eslint/dot-notation":`off`,"@typescript-eslint/naming-convention":`off`,"@typescript-eslint/no-array-delete":`off`,"@typescript-eslint/no-base-to-string":`off`,"@typescript-eslint/no-confusing-void-expression":`off`,"@typescript-eslint/no-deprecated":`off`,"@typescript-eslint/no-duplicate-type-constituents":`off`,"@typescript-eslint/no-floating-promises":`off`,"@typescript-eslint/no-for-in-array":`off`,"@typescript-eslint/no-generated-empty-object-type":`off`,"@typescript-eslint/no-implied-eval":`off`,"@typescript-eslint/no-meaningless-void-operator":`off`,"@typescript-eslint/no-misused-promises":`off`,"@typescript-eslint/no-misused-spread":`off`,"@typescript-eslint/no-mixed-enums":`off`,"@typescript-eslint/no-redundant-type-constituents":`off`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`off`,"@typescript-eslint/no-unnecessary-condition":`off`,"@typescript-eslint/no-unnecessary-qualifier":`off`,"@typescript-eslint/no-unnecessary-template-expression":`off`,"@typescript-eslint/no-unnecessary-type-arguments":`off`,"@typescript-eslint/no-unnecessary-type-assertion":`off`,"@typescript-eslint/no-unnecessary-type-conversion":`off`,"@typescript-eslint/no-unnecessary-type-parameters":`off`,"@typescript-eslint/no-unsafe-argument":`off`,"@typescript-eslint/no-unsafe-assignment":`off`,"@typescript-eslint/no-unsafe-call":`off`,"@typescript-eslint/no-unsafe-class-instance-assignment":`off`,"@typescript-eslint/no-unsafe-enum-assignment":`off`,"@typescript-eslint/no-unsafe-enum-comparison":`off`,"@typescript-eslint/no-unsafe-member-access":`off`,"@typescript-eslint/no-unsafe-return":`off`,"@typescript-eslint/no-unsafe-type-assertion":`off`,"@typescript-eslint/no-unsafe-unary-minus":`off`,"@typescript-eslint/no-useless-default-assignment":`off`,"@typescript-eslint/non-nullable-type-assertion-style":`off`,"@typescript-eslint/only-throw-error":`off`,"@typescript-eslint/prefer-destructuring":`off`,"@typescript-eslint/prefer-find":`off`,"@typescript-eslint/prefer-includes":`off`,"@typescript-eslint/prefer-nullish-coalescing":`off`,"@typescript-eslint/prefer-optional-chain":`off`,"@typescript-eslint/prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-readonly":`off`,"@typescript-eslint/prefer-readonly-parameter-types":`off`,"@typescript-eslint/prefer-reduce-type-parameter":`off`,"@typescript-eslint/prefer-regexp-exec":`off`,"@typescript-eslint/prefer-return-this-type":`off`,"@typescript-eslint/prefer-string-starts-ends-with":`off`,"@typescript-eslint/promise-function-async":`off`,"@typescript-eslint/related-getter-setter-pairs":`off`,"@typescript-eslint/require-array-sort-compare":`off`,"@typescript-eslint/require-await":`off`,"@typescript-eslint/restrict-plus-operands":`off`,"@typescript-eslint/restrict-template-expressions":`off`,"@typescript-eslint/return-await":`off`,"@typescript-eslint/strict-boolean-expressions":`off`,"@typescript-eslint/strict-void-return":`off`,"@typescript-eslint/switch-exhaustiveness-check":`off`,"@typescript-eslint/unbound-method":`off`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`off`},languageOptions:{parserOptions:{program:null,project:!1,projectService:!1}}})})),Gme=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(i8()),a=r(a8());e.default=(e,t)=>[(0,i.default)(e,t),(0,a.default)(e,t),{name:`typescript-eslint/recommended`,rules:{"@typescript-eslint/ban-ts-comment":`error`,"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"@typescript-eslint/triple-slash-reference":`error`}}]})),Kme=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(i8()),a=r(a8());e.default=(e,t)=>[(0,i.default)(e,t),(0,a.default)(e,t),{name:`typescript-eslint/recommended-type-checked`,rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/ban-ts-comment":`error`,"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":`error`,"@typescript-eslint/restrict-template-expressions":`error`,"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unbound-method":`error`}}]})),qme=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(i8()),a=r(a8());e.default=(e,t)=>[(0,i.default)(e,t),(0,a.default)(e,t),{name:`typescript-eslint/recommended-type-checked-only`,rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":`error`,"@typescript-eslint/restrict-template-expressions":`error`,"@typescript-eslint/unbound-method":`error`}}]})),Jme=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(i8()),a=r(a8());e.default=(e,t)=>[(0,i.default)(e,t),(0,a.default)(e,t),{name:`typescript-eslint/strict`,rules:{"@typescript-eslint/ban-ts-comment":[`error`,{minimumDescriptionLength:10}],"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-dynamic-delete":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-extraneous-class":`error`,"@typescript-eslint/no-invalid-void-type":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-nullish-coalescing":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-non-null-assertion":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"no-useless-constructor":`off`,"@typescript-eslint/no-useless-constructor":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-literal-enum-member":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unified-signatures":`error`}}]})),Yme=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(i8()),a=r(a8());e.default=(e,t)=>[(0,i.default)(e,t),(0,a.default)(e,t),{name:`typescript-eslint/strict-type-checked`,rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/ban-ts-comment":[`error`,{minimumDescriptionLength:10}],"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-confusing-void-expression":`error`,"@typescript-eslint/no-deprecated":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-dynamic-delete":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-extraneous-class":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"@typescript-eslint/no-generated-empty-object-type":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-invalid-void-type":`error`,"@typescript-eslint/no-meaningless-void-operator":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-misused-spread":`error`,"@typescript-eslint/no-mixed-enums":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-nullish-coalescing":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-non-null-assertion":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`error`,"@typescript-eslint/no-unnecessary-condition":`error`,"@typescript-eslint/no-unnecessary-template-expression":`error`,"@typescript-eslint/no-unnecessary-type-arguments":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unnecessary-type-conversion":`error`,"@typescript-eslint/no-unnecessary-type-parameters":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-class-instance-assignment":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-enum-assignment":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"no-useless-constructor":`off`,"@typescript-eslint/no-useless-constructor":`error`,"@typescript-eslint/no-useless-default-assignment":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-literal-enum-member":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"@typescript-eslint/prefer-reduce-type-parameter":`error`,"@typescript-eslint/prefer-return-this-type":`error`,"@typescript-eslint/related-getter-setter-pairs":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":[`error`,{allowAny:!1,allowBoolean:!1,allowNullish:!1,allowNumberAndString:!1,allowRegExp:!1}],"@typescript-eslint/restrict-template-expressions":[`error`,{allowAny:!1,allowBoolean:!1,allowNever:!1,allowNullish:!1,allowNumber:!1,allowRegExp:!1}],"no-return-await":`off`,"@typescript-eslint/return-await":[`error`,`error-handling-correctness-only`],"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unbound-method":`error`,"@typescript-eslint/unified-signatures":`error`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`error`}}]})),Xme=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(i8()),a=r(a8());e.default=(e,t)=>[(0,i.default)(e,t),(0,a.default)(e,t),{name:`typescript-eslint/strict-type-checked-only`,rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-confusing-void-expression":`error`,"@typescript-eslint/no-deprecated":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"@typescript-eslint/no-generated-empty-object-type":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-meaningless-void-operator":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-misused-spread":`error`,"@typescript-eslint/no-mixed-enums":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`error`,"@typescript-eslint/no-unnecessary-condition":`error`,"@typescript-eslint/no-unnecessary-template-expression":`error`,"@typescript-eslint/no-unnecessary-type-arguments":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-conversion":`error`,"@typescript-eslint/no-unnecessary-type-parameters":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-class-instance-assignment":`error`,"@typescript-eslint/no-unsafe-enum-assignment":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"@typescript-eslint/no-useless-default-assignment":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"@typescript-eslint/prefer-reduce-type-parameter":`error`,"@typescript-eslint/prefer-return-this-type":`error`,"@typescript-eslint/related-getter-setter-pairs":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":[`error`,{allowAny:!1,allowBoolean:!1,allowNullish:!1,allowNumberAndString:!1,allowRegExp:!1}],"@typescript-eslint/restrict-template-expressions":[`error`,{allowAny:!1,allowBoolean:!1,allowNever:!1,allowNullish:!1,allowNumber:!1,allowRegExp:!1}],"no-return-await":`off`,"@typescript-eslint/return-await":[`error`,`error-handling-correctness-only`],"@typescript-eslint/unbound-method":`error`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`error`}}]})),Zme=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(i8()),a=r(a8());e.default=(e,t)=>[(0,i.default)(e,t),(0,a.default)(e,t),{name:`typescript-eslint/stylistic`,rules:{"@typescript-eslint/adjacent-overload-signatures":`error`,"@typescript-eslint/array-type":`error`,"@typescript-eslint/ban-tslint-comment":`error`,"@typescript-eslint/class-literal-property-style":`error`,"@typescript-eslint/consistent-generic-constructors":`error`,"@typescript-eslint/consistent-indexed-object-style":`error`,"@typescript-eslint/consistent-type-assertions":`error`,"@typescript-eslint/consistent-type-definitions":`error`,"@typescript-eslint/no-confusing-non-null-assertion":`error`,"no-empty-function":`off`,"@typescript-eslint/no-empty-function":`error`,"@typescript-eslint/no-inferrable-types":`error`,"@typescript-eslint/prefer-for-of":`error`,"@typescript-eslint/prefer-function-type":`error`}}]})),Qme=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(i8()),a=r(a8());e.default=(e,t)=>[(0,i.default)(e,t),(0,a.default)(e,t),{name:`typescript-eslint/stylistic-type-checked`,rules:{"@typescript-eslint/adjacent-overload-signatures":`error`,"@typescript-eslint/array-type":`error`,"@typescript-eslint/ban-tslint-comment":`error`,"@typescript-eslint/class-literal-property-style":`error`,"@typescript-eslint/consistent-generic-constructors":`error`,"@typescript-eslint/consistent-indexed-object-style":`error`,"@typescript-eslint/consistent-type-assertions":`error`,"@typescript-eslint/consistent-type-definitions":`error`,"dot-notation":`off`,"@typescript-eslint/dot-notation":`error`,"@typescript-eslint/no-confusing-non-null-assertion":`error`,"no-empty-function":`off`,"@typescript-eslint/no-empty-function":`error`,"@typescript-eslint/no-inferrable-types":`error`,"@typescript-eslint/non-nullable-type-assertion-style":`error`,"@typescript-eslint/prefer-find":`error`,"@typescript-eslint/prefer-for-of":`error`,"@typescript-eslint/prefer-function-type":`error`,"@typescript-eslint/prefer-includes":`error`,"@typescript-eslint/prefer-nullish-coalescing":`error`,"@typescript-eslint/prefer-optional-chain":`error`,"@typescript-eslint/prefer-regexp-exec":`error`,"@typescript-eslint/prefer-string-starts-ends-with":`error`}}]})),$me=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(i8()),a=r(a8());e.default=(e,t)=>[(0,i.default)(e,t),(0,a.default)(e,t),{name:`typescript-eslint/stylistic-type-checked-only`,rules:{"dot-notation":`off`,"@typescript-eslint/dot-notation":`error`,"@typescript-eslint/non-nullable-type-assertion-style":`error`,"@typescript-eslint/prefer-find":`error`,"@typescript-eslint/prefer-includes":`error`,"@typescript-eslint/prefer-nullish-coalescing":`error`,"@typescript-eslint/prefer-optional-chain":`error`,"@typescript-eslint/prefer-regexp-exec":`error`,"@typescript-eslint/prefer-string-starts-ends-with":`error`}}]})),ehe=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.lazyRules=t;function t(e){let t={};for(let[n,r]of Object.entries(e)){let e;Object.defineProperty(t,n,{enumerable:!0,get:()=>(e??=r().default,e)})}return t}})),the=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.escapeRegExp=r;let t=/[\\^$.*+?()[\]{}|]/g,n=RegExp(t.source);function r(e=``){return e&&n.test(e)?e.replaceAll(t,`\\$&`):e}})),o8=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=n&&n.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!=="default"&&r(n,t,a[o]);return i(n,t),n}})(),o=n&&n.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.getNameLocationInGlobalDirectiveComment=u,e.forEachReturnStatement=d,e.forEachChildESTree=p;let s=Ie(),c=a(z(`typescript`)),l=the();o(DT(),e);function u(e,t,n){let r=RegExp(`[\\s,]${(0,l.escapeRegExp)(n)}(?:$|[\\s,:])`,`gu`);r.lastIndex=t.value.indexOf(`global`)+6;let i=r.exec(t.value),a=e.getLocFromIndex(t.range[0]+2+(i?i.index+1:0));return{end:{column:a.column+(i?n.length:1),line:a.line},start:a}}function d(e,t){return n(e);function n(e){switch(e.kind){case c.SyntaxKind.ReturnStatement:return t(e);case c.SyntaxKind.CaseBlock:case c.SyntaxKind.Block:case c.SyntaxKind.IfStatement:case c.SyntaxKind.DoStatement:case c.SyntaxKind.WhileStatement:case c.SyntaxKind.ForStatement:case c.SyntaxKind.ForInStatement:case c.SyntaxKind.ForOfStatement:case c.SyntaxKind.WithStatement:case c.SyntaxKind.SwitchStatement:case c.SyntaxKind.CaseClause:case c.SyntaxKind.DefaultClause:case c.SyntaxKind.LabeledStatement:case c.SyntaxKind.TryStatement:case c.SyntaxKind.CatchClause:return c.forEachChild(e,n)}}}function f(e){return typeof e==`object`&&!!e&&`type`in e&&typeof e.type==`string`}function p(e,t){function n(e){let r=t(e);if(r)return r;let i=s.visitorKeys[e.type];if(i)for(let t of i){let r=e[t];if(Array.isArray(r)){for(let e of r)if(f(e)){let t=n(e);if(t)return t}}else if(f(r)){let e=n(r);if(e)return e}}}return n(e)}})),s8=/* @__PURE__ */ I((e=>{var t=z(`typescript`);function n(e){return e&&e.__esModule?e:{default:e}}var r=/*#__PURE__*/ n(t);function*i(e,t=e.getSourceFile()){let n=[];for(;;){if(r.default.isTokenKind(e.kind))yield e;else{let r=e.getChildren(t);if(r.length===1){e=r[0];continue}for(let e=r.length-1;e>=0;--e)n.push(r[e])}if(n.length===0)break;e=n.pop()}}function*a(e,t=e.getSourceFile()){let n=t.text,a=t.languageVariant!==r.default.LanguageVariant.JSX;for(let c of i(e,t))c.pos!==c.end&&(c.kind!==r.default.SyntaxKind.JsxText&&(yield*s(e=>{r.default.forEachLeadingCommentRange(n,c.pos===0?(r.default.getShebang(n)??``).length:c.pos,e)},n)),(a||o(c))&&(yield*s(e=>{r.default.forEachTrailingCommentRange(n,c.end,e)},n)))}function o(e){switch(e.kind){case r.default.SyntaxKind.CloseBraceToken:return e.parent.kind!==r.default.SyntaxKind.JsxExpression||!c(e.parent.parent);case r.default.SyntaxKind.GreaterThanToken:switch(e.parent.kind){case r.default.SyntaxKind.JsxClosingElement:case r.default.SyntaxKind.JsxClosingFragment:return!c(e.parent.parent.parent);case r.default.SyntaxKind.JsxOpeningElement:return e.end!==e.parent.end;case r.default.SyntaxKind.JsxOpeningFragment:return!1;case r.default.SyntaxKind.JsxSelfClosingElement:return e.end!==e.parent.end||!c(e.parent.parent)}}return!0}function s(e,t){let n=[];return e((e,i,a)=>{let o=t.slice(e,i),s=o.slice(2,a===r.default.SyntaxKind.SingleLineCommentTrivia?void 0:-2);n.push({end:i,kind:a,pos:e,text:o,value:s})}),n}function c(e){return e.kind===r.default.SyntaxKind.JsxElement||e.kind===r.default.SyntaxKind.JsxFragment}var[l,u]=r.default.versionMajorMinor.split(`.`).map(e=>Number.parseInt(e,10));function d(e,t=0){return l>e||l===e&&u>=t}function f(e,t){switch(t){case`allowJs`:return e.allowJs===void 0?f(e,`checkJs`):e.allowJs;case`allowSyntheticDefaultImports`:return e.allowSyntheticDefaultImports===void 0?f(e,`esModuleInterop`)||e.module===r.default.ModuleKind.System:e.allowSyntheticDefaultImports;case`alwaysStrict`:case`noImplicitAny`:case`noImplicitThis`:case`strictBindCallApply`:case`strictFunctionTypes`:case`strictNullChecks`:case`strictPropertyInitialization`:return p(e,t);case`declaration`:return e.declaration||f(e,`composite`);case`declarationMap`:case`emitDeclarationOnly`:case`stripInternal`:return e[t]===!0&&f(e,`declaration`);case`incremental`:return e.incremental===void 0?f(e,`composite`):e.incremental;case`noUncheckedIndexedAccess`:return e.noUncheckedIndexedAccess===!0&&f(e,`strictNullChecks`);case`skipDefaultLibCheck`:return e.skipDefaultLibCheck||f(e,`skipLibCheck`);case`suppressImplicitAnyIndexErrors`:return e.suppressImplicitAnyIndexErrors===!0&&f(e,`noImplicitAny`)}return e[t]===!0}function p(e,t){return t===`strictPropertyInitialization`&&!p(e,`strictNullChecks`)?!1:e[t]??e.strict??d(6)}function m(e,t){return h(r.default.getCombinedModifierFlags(e),t)}function h(e,t){return(e&t)!==0}function g(e,t){return h(e.flags,t)}var _=g;function v(e,t){return h(e.objectFlags,t)}var y=g;function b(e,t){return h(e.checkFlags,t)}var x=g;function S(e,...t){if(e===void 0)return!1;for(let n of e)if(t.includes(n.kind))return!0;return!1}function C(e){return e>=r.default.SyntaxKind.FirstAssignment&&e<=r.default.SyntaxKind.LastAssignment}function w(e){return String(+e)===e}function T(e){return e>=65536?2:1}var E=/* @__PURE__ */ (e=>(e[e.None=0]=`None`,e[e.Read=1]=`Read`,e[e.Write=2]=`Write`,e[e.Delete=4]=`Delete`,e[e.ReadWrite=3]=`ReadWrite`,e))(E||{});function D(e){let t=e.parent;switch(t.kind){case r.default.SyntaxKind.ArrayLiteralExpression:case r.default.SyntaxKind.SpreadAssignment:case r.default.SyntaxKind.SpreadElement:return O(t)?2:1;case r.default.SyntaxKind.ArrowFunction:return t.body===e?1:2;case r.default.SyntaxKind.AsExpression:case r.default.SyntaxKind.NonNullExpression:case r.default.SyntaxKind.ParenthesizedExpression:case r.default.SyntaxKind.TypeAssertionExpression:return D(t);case r.default.SyntaxKind.AwaitExpression:case r.default.SyntaxKind.CallExpression:case r.default.SyntaxKind.CaseClause:case r.default.SyntaxKind.ComputedPropertyName:case r.default.SyntaxKind.ConditionalExpression:case r.default.SyntaxKind.Decorator:case r.default.SyntaxKind.DoStatement:case r.default.SyntaxKind.ElementAccessExpression:case r.default.SyntaxKind.ExpressionStatement:case r.default.SyntaxKind.ForStatement:case r.default.SyntaxKind.IfStatement:case r.default.SyntaxKind.JsxElement:case r.default.SyntaxKind.JsxExpression:case r.default.SyntaxKind.JsxOpeningElement:case r.default.SyntaxKind.JsxSelfClosingElement:case r.default.SyntaxKind.JsxSpreadAttribute:case r.default.SyntaxKind.NewExpression:case r.default.SyntaxKind.ReturnStatement:case r.default.SyntaxKind.SwitchStatement:case r.default.SyntaxKind.TaggedTemplateExpression:case r.default.SyntaxKind.TemplateSpan:case r.default.SyntaxKind.ThrowStatement:case r.default.SyntaxKind.TypeOfExpression:case r.default.SyntaxKind.VoidExpression:case r.default.SyntaxKind.WhileStatement:case r.default.SyntaxKind.WithStatement:case r.default.SyntaxKind.YieldExpression:return 1;case r.default.SyntaxKind.BinaryExpression:return t.right===e?1:C(t.operatorToken.kind)?t.operatorToken.kind===r.default.SyntaxKind.EqualsToken?2:3:1;case r.default.SyntaxKind.BindingElement:case r.default.SyntaxKind.EnumMember:case r.default.SyntaxKind.JsxAttribute:case r.default.SyntaxKind.Parameter:case r.default.SyntaxKind.PropertyDeclaration:case r.default.SyntaxKind.VariableDeclaration:return+(t.initializer===e);case r.default.SyntaxKind.DeleteExpression:return 4;case r.default.SyntaxKind.ExportAssignment:return+!!t.isExportEquals;case r.default.SyntaxKind.ExpressionWithTypeArguments:return+(t.parent.token===r.default.SyntaxKind.ExtendsKeyword&&t.parent.parent.kind!==r.default.SyntaxKind.InterfaceDeclaration);case r.default.SyntaxKind.ForInStatement:case r.default.SyntaxKind.ForOfStatement:return t.initializer===e?2:1;case r.default.SyntaxKind.PostfixUnaryExpression:return 3;case r.default.SyntaxKind.PrefixUnaryExpression:return t.operator===r.default.SyntaxKind.PlusPlusToken||t.operator===r.default.SyntaxKind.MinusMinusToken?3:1;case r.default.SyntaxKind.PropertyAccessExpression:return+(t.expression===e);case r.default.SyntaxKind.PropertyAssignment:return t.name===e?0:O(t)?2:1;case r.default.SyntaxKind.ShorthandPropertyAssignment:return t.objectAssignmentInitializer===e?1:O(t)?2:1}return 0}function O(e){switch(e.kind){case r.default.SyntaxKind.ShorthandPropertyAssignment:if(e.objectAssignmentInitializer!==void 0)return!0;case r.default.SyntaxKind.PropertyAssignment:case r.default.SyntaxKind.SpreadAssignment:e=e.parent;break;case r.default.SyntaxKind.SpreadElement:if(e.parent.kind!==r.default.SyntaxKind.ArrayLiteralExpression)return!1;e=e.parent}for(;;)switch(e.parent.kind){case r.default.SyntaxKind.ArrayLiteralExpression:case r.default.SyntaxKind.ObjectLiteralExpression:e=e.parent;break;case r.default.SyntaxKind.BinaryExpression:return e.parent.left===e&&e.parent.operatorToken.kind===r.default.SyntaxKind.EqualsToken;case r.default.SyntaxKind.ForOfStatement:return e.parent.initializer===e;case r.default.SyntaxKind.PropertyAssignment:case r.default.SyntaxKind.SpreadAssignment:e=e.parent.parent;break;case r.default.SyntaxKind.SpreadElement:if(e.parent.parent.kind!==r.default.SyntaxKind.ArrayLiteralExpression)return!1;e=e.parent.parent;break;default:return!1}}function k(e){return e.kind===r.default.SyntaxKind.AccessorKeyword}function A(e){return e.kind===r.default.SyntaxKind.EndOfFileToken}function j(e){return e.kind===r.default.SyntaxKind.FalseKeyword}function M(e){return e.kind===r.default.SyntaxKind.JSDocText}function ee(e){return e.kind===r.default.SyntaxKind.PrefixUnaryExpression}function N(e){return e.kind===r.default.SyntaxKind.NullKeyword}function te(e){return e.kind===r.default.SyntaxKind.PrivateKeyword}function P(e){return e.kind===r.default.SyntaxKind.ProtectedKeyword}function F(e){return e.kind===r.default.SyntaxKind.PublicKeyword}function ne(e){return e.kind===r.default.SyntaxKind.ReadonlyKeyword}function I(e){return e.kind===r.default.SyntaxKind.StaticKeyword}function L(e){return e.kind===r.default.SyntaxKind.SuperKeyword}function R(e){return e.kind===r.default.SyntaxKind.ThisKeyword}function B(e){return e.kind===r.default.SyntaxKind.TrueKeyword}function V(e){return r.default.isVariableDeclaration(e)||r.default.isParameter(e)||r.default.isBindingElement(e)||r.default.isPropertyDeclaration(e)||r.default.isPropertyAssignment(e)||r.default.isEnumMember(e)}function re(e){return F(e)||te(e)||P(e)}function ie(e){return r.default.isGetAccessorDeclaration(e)||r.default.isSetAccessorDeclaration(e)}function ae(e){return r.default.isArrayBindingPattern(e)||r.default.isArrayLiteralExpression(e)}function oe(e){return pe(e)||ae(e)}function se(e){return r.default.isObjectBindingPattern(e)||r.default.isArrayBindingPattern(e)}function ce(e){return B(e)||j(e)}function H(e){return r.default.isClassDeclaration(e)||r.default.isClassExpression(e)}function U(e){return r.default.isIdentifier(e)||r.default.isPrivateIdentifier(e)||r.default.isStringLiteralLike(e)||r.default.isNumericLiteral(e)||r.default.isComputedPropertyName(e)||r.default.isElementAccessExpression(e)||se(e)||ue(e)}function le(e){return me(e)||H(e)||r.default.isInterfaceDeclaration(e)||r.default.isTypeAliasDeclaration(e)||r.default.isJSDocTemplateTag(e)}function ue(e){return r.default.isIdentifier(e)||xe(e)}function de(e){return r.default.isIdentifier(e)||ge(e)}function fe(e){return r.default.isIdentifier(e)||R(e)||_e(e)}function W(e){return r.default.isModuleBlock(e)||ye(e)}function pe(e){return r.default.isObjectBindingPattern(e)||r.default.isObjectLiteralExpression(e)}function me(e){return r.default.isCallSignatureDeclaration(e)||r.default.isConstructSignatureDeclaration(e)||r.default.isMethodSignature(e)||r.default.isIndexSignatureDeclaration(e)||r.default.isFunctionTypeNode(e)||r.default.isConstructorTypeNode(e)||r.default.isJSDocFunctionType(e)||r.default.isFunctionDeclaration(e)||r.default.isMethodDeclaration(e)||r.default.isConstructorDeclaration(e)||ie(e)||r.default.isFunctionExpression(e)||r.default.isArrowFunction(e)}function he(e){return r.default.isTypeReferenceNode(e.type)&&r.default.isIdentifier(e.type.typeName)&&e.type.typeName.escapedText===`const`}function ge(e){return r.default.isModuleDeclaration(e)&&r.default.isIdentifier(e.name)&&(e.body===void 0||de(e.body))}function _e(e){return r.default.isPropertyAccessExpression(e)&&fe(e.expression)}function ve(e){return`name`in e&&e.name!==void 0&&e.name!==null&&U(e.name)}function ye(e){return r.default.isModuleDeclaration(e)&&r.default.isIdentifier(e.name)&&e.body!==void 0&&W(e.body)}function be(e){switch(e.kind){case r.default.SyntaxKind.NoSubstitutionTemplateLiteral:case r.default.SyntaxKind.NumericLiteral:case r.default.SyntaxKind.StringLiteral:return!0;default:return!1}}function xe(e){return r.default.isPropertyAccessExpression(e)&&r.default.isIdentifier(e.name)&&ue(e.expression)}function Se(e){return r.default.isElementAccessExpression(e)&&L(e.expression)}function Ce(e){return r.default.isPropertyAccessExpression(e)&&L(e.expression)}function we(e){switch(e.kind){case r.default.SyntaxKind.ArrowFunction:case r.default.SyntaxKind.CallSignature:case r.default.SyntaxKind.ClassDeclaration:case r.default.SyntaxKind.ClassExpression:case r.default.SyntaxKind.Constructor:case r.default.SyntaxKind.ConstructorType:case r.default.SyntaxKind.ConstructSignature:case r.default.SyntaxKind.EnumDeclaration:case r.default.SyntaxKind.FunctionDeclaration:case r.default.SyntaxKind.FunctionExpression:case r.default.SyntaxKind.FunctionType:case r.default.SyntaxKind.GetAccessor:case r.default.SyntaxKind.MethodDeclaration:case r.default.SyntaxKind.MethodSignature:case r.default.SyntaxKind.ModuleDeclaration:case r.default.SyntaxKind.SetAccessor:return!0;case r.default.SyntaxKind.SourceFile:return r.default.isExternalModule(e);default:return!1}}var Te=r.default.TypeFlags.Intrinsic??r.default.TypeFlags.Any|r.default.TypeFlags.Unknown|r.default.TypeFlags.String|r.default.TypeFlags.Number|r.default.TypeFlags.BigInt|r.default.TypeFlags.Boolean|r.default.TypeFlags.BooleanLiteral|r.default.TypeFlags.ESSymbol|r.default.TypeFlags.Void|r.default.TypeFlags.Undefined|r.default.TypeFlags.Null|r.default.TypeFlags.Never|r.default.TypeFlags.NonPrimitive;function Ee(e){return x(e,Te)}function De(e){return x(e,r.default.TypeFlags.Freshable)}function Oe(e){return x(e,r.default.TypeFlags.Intersection)}function ke(e){return x(e,r.default.TypeFlags.Object)}function Ae(e){return x(e,r.default.TypeFlags.Union)}function je(e){return x(e,r.default.TypeFlags.UniqueESSymbol)}function Me(e){return ke(e)&&v(e,r.default.ObjectFlags.Tuple)}function Ne(e){return ke(e)&&v(e,r.default.ObjectFlags.Reference)}function Pe(e){return Ne(e)&&Me(e.target)}function Fe(e){return x(e,r.default.TypeFlags.BooleanLiteral)}function Ie(e){return Fe(e)&&e.intrinsicName===`false`}function Le(e){if(Ae(e)){let t=[];for(let n of e.types)t.push(...Le(n));return t}if(Oe(e)){let t;for(let n of e.types){let e=Le(n);if(e.length!==0){if(t!==void 0)return[];t=e}}return t===void 0?[]:t}return e.getCallSignatures()}function Re(e,t){return t.startsWith(`__`)?e.getProperties().find(e=>e.escapedName===t):e.getProperty(t)}function ze(e,t,n){let r=t&&e.getTypeOfSymbolAtLocation(t,t.valueDeclaration).getProperty(n),i=r&&e.getTypeOfSymbolAtLocation(r,r.valueDeclaration);return i&&je(i)?i.escapedName:`__@`+n}function Be(e){return e.arguments.length===3&&ue(e.arguments[0])&&be(e.arguments[1])&&r.default.isPropertyAccessExpression(e.expression)&&e.expression.name.escapedText===`defineProperty`&&r.default.isIdentifier(e.expression.expression)&&e.expression.expression.escapedText===`Object`}function Ve(e,t){let n=e;for(;;){let e=n.parent;e:switch(e.kind){case r.default.SyntaxKind.ArrayLiteralExpression:case r.default.SyntaxKind.ObjectLiteralExpression:case r.default.SyntaxKind.ParenthesizedExpression:case r.default.SyntaxKind.TemplateExpression:n=e;break;case r.default.SyntaxKind.AsExpression:case r.default.SyntaxKind.TypeAssertionExpression:return he(e);case r.default.SyntaxKind.CallExpression:{if(!r.default.isExpression(n))return!1;let i=t.getResolvedSignature(e);if(i===void 0)return!1;let a=e.arguments.indexOf(n);if(a<0)return!1;let o=i.getParameters()[a];if(o===void 0||!(`links`in o))return!1;let s=o.links.type?.getProperties()?.[a];return s===void 0||!(`links`in s)?!1:!!s.links&&b(s.links,r.default.CheckFlags.Readonly)}case r.default.SyntaxKind.PrefixUnaryExpression:if(n.kind!==r.default.SyntaxKind.NumericLiteral)return!1;switch(e.operator){case r.default.SyntaxKind.MinusToken:case r.default.SyntaxKind.PlusToken:n=e;break e;default:return!1}case r.default.SyntaxKind.PropertyAssignment:if(e.initializer!==n)return!1;n=e.parent;break;case r.default.SyntaxKind.ShorthandPropertyAssignment:n=e.parent;break;default:return!1}}}function He(e){return Oe(e)?e.types:[e]}var Ue=He;function We(e,t,n){let i=!1,a=!1;for(let o of Ye(e))if(Re(o,t)===void 0){if(((w(t)?n.getIndexInfoOfType(o,r.default.IndexKind.Number):void 0)??n.getIndexInfoOfType(o,r.default.IndexKind.String))?.isReadonly){if(i)return!0;a=!0}}else if(a||et(o,t,n))return!0;else i=!0;return!1}function Ge(e,t){return!!((e.flags&r.default.SymbolFlags.Accessor)===r.default.SymbolFlags.GetAccessor||e.declarations?.some(e=>m(e,r.default.ModifierFlags.Readonly)||r.default.isVariableDeclaration(e)&&_(e.parent,r.default.NodeFlags.Const)||r.default.isCallExpression(e)&&Qe(e,t)||r.default.isEnumMember(e)||(r.default.isPropertyAssignment(e)||r.default.isShorthandPropertyAssignment(e))&&Ve(e,t)))}function Ke(e){return Oe(e)||Ae(e)?e.types:[e]}function qe(e){return d(5,0)?e.isLiteral():x(e,r.default.TypeFlags.StringLiteral|r.default.TypeFlags.NumberLiteral|r.default.TypeFlags.BigIntLiteral)}var Je=Ke;function Ye(e){return Ae(e)?e.types:[e]}var Xe=Ye;function Ze(e,t,n){let r=e.getApparentType(e.getTypeOfSymbolAtLocation(t,n));if(t.valueDeclaration.dotDotDotToken&&(r=r.getNumberIndexType(),r===void 0))return!1;for(let e of Ye(r))if(e.getCallSignatures().length!==0)return!0;return!1}function Qe(e,t){if(!Be(e))return!1;let n=t.getTypeAtLocation(e.arguments[2]);if(n.getProperty(`value`)===void 0)return n.getProperty(`set`)===void 0;let i=n.getProperty(`writable`);return i!==void 0&&Ie(i.valueDeclaration!==void 0&&r.default.isPropertyAssignment(i.valueDeclaration)?t.getTypeAtLocation(i.valueDeclaration.initializer):t.getTypeOfSymbolAtLocation(i,e.arguments[2]))}function $e(e,t,n){if(!ke(e)||!v(e,r.default.ObjectFlags.Mapped))return;let i=e.symbol.declarations[0];if(i.readonlyToken!==void 0&&!/^__@[^@]+$/.test(t))return i.readonlyToken.kind!==r.default.SyntaxKind.MinusToken;let{modifiersType:a}=e;return a&&We(a,t,n)}function et(e,t,n){return He(e).some(e=>{let i=Re(e,t);if(i===void 0)return!1;if(i.flags&r.default.SymbolFlags.Transient){if(/^(?:[1-9]\d*|0)$/.test(t)&&Pe(e))return e.target.readonly;switch($e(e,t,n)){case!1:return!1;case!0:return!0}}return y(i,r.default.SymbolFlags.ValueModule)||Ge(i,n)})}function tt(e){return`originalKeywordKind`in e?e.originalKeywordKind:r.default.identifierToKeywordKind(e)}var nt=/* @__PURE__ */ (e=>(e[e.Namespace=1]=`Namespace`,e[e.Type=2]=`Type`,e[e.Value=4]=`Value`,e[e.Any=7]=`Any`,e[e.Import=8]=`Import`,e))(nt||{});function G(e){switch(e.parent.kind){case r.default.SyntaxKind.ClassDeclaration:case r.default.SyntaxKind.ClassExpression:return 6;case r.default.SyntaxKind.EnumDeclaration:return 7;case r.default.SyntaxKind.FunctionDeclaration:case r.default.SyntaxKind.FunctionExpression:return 4;case r.default.SyntaxKind.ImportClause:case r.default.SyntaxKind.NamespaceImport:return 15;case r.default.SyntaxKind.ImportEqualsDeclaration:case r.default.SyntaxKind.ImportSpecifier:return e.parent.name===e?15:void 0;case r.default.SyntaxKind.InterfaceDeclaration:case r.default.SyntaxKind.TypeAliasDeclaration:case r.default.SyntaxKind.TypeParameter:return 2;case r.default.SyntaxKind.ModuleDeclaration:return 1;case r.default.SyntaxKind.Parameter:if(e.parent.parent.kind===r.default.SyntaxKind.IndexSignature||tt(e)===r.default.SyntaxKind.ThisKeyword)return;case r.default.SyntaxKind.BindingElement:case r.default.SyntaxKind.VariableDeclaration:return e.parent.name===e?4:void 0}}function rt(e){if(e.kind===r.default.SyntaxKind.ComputedPropertyName){let t=it(e.expression);if(r.default.isPrefixUnaryExpression(t)){let e=!1;switch(t.operator){case r.default.SyntaxKind.MinusToken:e=!0;case r.default.SyntaxKind.PlusToken:return r.default.isNumericLiteral(t.operand)?`${e?`-`:``}${t.operand.text}`:r.default.isBigIntLiteral(t.operand)?`${e?`-`:``}${t.operand.text.slice(0,-1)}`:void 0;default:return}}return r.default.isBigIntLiteral(t)?t.text.slice(0,-1):be(t)?t.text:void 0}return e.kind===r.default.SyntaxKind.PrivateIdentifier?void 0:e.text}function it(e){for(;e.kind===r.default.SyntaxKind.ParenthesizedExpression;)e=e.expression;return e}var at=/* @__PURE__ */ (e=>(e[e.Namespace=1]=`Namespace`,e[e.Type=2]=`Type`,e[e.Value=4]=`Value`,e[e.Any=7]=`Any`,e[e.TypeQuery=8]=`TypeQuery`,e[e.ValueOrNamespace=5]=`ValueOrNamespace`,e))(at||{});function ot(e){let t=e.parent;switch(t.kind){case r.default.SyntaxKind.BindingElement:if(t.initializer===e)return 5;break;case r.default.SyntaxKind.BreakStatement:case r.default.SyntaxKind.ClassDeclaration:case r.default.SyntaxKind.ClassExpression:case r.default.SyntaxKind.ContinueStatement:case r.default.SyntaxKind.EnumDeclaration:case r.default.SyntaxKind.FunctionDeclaration:case r.default.SyntaxKind.FunctionExpression:case r.default.SyntaxKind.GetAccessor:case r.default.SyntaxKind.ImportClause:case r.default.SyntaxKind.ImportSpecifier:case r.default.SyntaxKind.InterfaceDeclaration:case r.default.SyntaxKind.JsxAttribute:case r.default.SyntaxKind.LabeledStatement:case r.default.SyntaxKind.MethodDeclaration:case r.default.SyntaxKind.MethodSignature:case r.default.SyntaxKind.ModuleDeclaration:case r.default.SyntaxKind.NamedTupleMember:case r.default.SyntaxKind.NamespaceExport:case r.default.SyntaxKind.NamespaceExportDeclaration:case r.default.SyntaxKind.NamespaceImport:case r.default.SyntaxKind.PropertySignature:case r.default.SyntaxKind.SetAccessor:case r.default.SyntaxKind.TypeAliasDeclaration:case r.default.SyntaxKind.TypeParameter:case r.default.SyntaxKind.TypePredicate:break;case r.default.SyntaxKind.EnumMember:case r.default.SyntaxKind.ImportEqualsDeclaration:case r.default.SyntaxKind.Parameter:case r.default.SyntaxKind.PropertyAccessExpression:case r.default.SyntaxKind.PropertyAssignment:case r.default.SyntaxKind.PropertyDeclaration:case r.default.SyntaxKind.VariableDeclaration:if(t.name!==e)return 5;break;case r.default.SyntaxKind.ExportAssignment:return 7;case r.default.SyntaxKind.ExportSpecifier:if(t.propertyName===void 0||t.propertyName===e)return 7;break;case r.default.SyntaxKind.ExpressionWithTypeArguments:return t.parent.token===r.default.SyntaxKind.ImplementsKeyword||t.parent.parent.kind===r.default.SyntaxKind.InterfaceDeclaration?2:4;case r.default.SyntaxKind.QualifiedName:if(t.left===e)return st(t).kind===r.default.SyntaxKind.TypeQuery?9:1;break;case r.default.SyntaxKind.TypeQuery:return 13;case r.default.SyntaxKind.TypeReference:return tt(e)===r.default.SyntaxKind.ConstKeyword?void 0:2;default:return 5}}function st(e){let t=e.parent;for(;t.kind===r.default.SyntaxKind.QualifiedName;)t=t.parent;return t}function ct(e){switch(e.kind){case r.default.SyntaxKind.Block:{let t=e.parent;return t.kind!==r.default.SyntaxKind.CatchClause&&(t.kind===r.default.SyntaxKind.SourceFile||!we(t))?2:0}case r.default.SyntaxKind.CaseBlock:case r.default.SyntaxKind.CatchClause:case r.default.SyntaxKind.ForInStatement:case r.default.SyntaxKind.ForOfStatement:case r.default.SyntaxKind.ForStatement:case r.default.SyntaxKind.WithStatement:return 2;default:return 0}}var lt=class{constructor(e){this.global=e}namespaceScopes=void 0;uses=[];variables=/* @__PURE__ */ new Map;#e=void 0;addUse(e){this.uses.push(e)}addVariable(e,t,n,r,i){let a=this.getDestinationScope(n).getVariables(),o={declaration:t,domain:i,exported:r},s=a.get(e);s===void 0?a.set(e,{declarations:[o],domain:i,uses:[]}):(s.domain|=i,s.declarations.push(o))}createOrReuseEnumScope(e,t){let n;return this.#e===void 0?this.#e=/* @__PURE__ */ new Map:n=this.#e.get(e),n===void 0&&(n=new ht(this),this.#e.set(e,n)),n}createOrReuseNamespaceScope(e,t,n,r){let i;return this.namespaceScopes===void 0?this.namespaceScopes=/* @__PURE__ */ new Map:i=this.namespaceScopes.get(e),i===void 0?(i=new vt(n,r,this),this.namespaceScopes.set(e,i)):i.refresh(n,r),i}end(e){this.namespaceScopes!==void 0&&this.namespaceScopes.forEach(t=>t.finish(e)),this.namespaceScopes=this.#e=void 0,this.applyUses(),this.variables.forEach(t=>{for(let n of t.declarations){let r={declarations:[],domain:n.domain,exported:n.exported,inGlobalScope:this.global,uses:[]};for(let e of t.declarations)e.domain&n.domain&&r.declarations.push(e.declaration);for(let e of t.uses)e.domain&n.domain&&r.uses.push(e);e(r,n.declaration,this)}})}getFunctionScope(){return this}getVariables(){return this.variables}markExported(e){}addUseToParent(e){}applyUse(e,t=this.variables){let n=t.get(e.location.text);return n===void 0||(n.domain&e.domain)===0?!1:(n.uses.push(e),!0)}applyUses(){for(let e of this.uses)this.applyUse(e)||this.addUseToParent(e);this.uses=[]}},ut=class extends lt{constructor(e,t){super(!1),this.parent=e,this.boundary=t}getDestinationScope(e){return this.boundary&e?this:this.parent.getDestinationScope(e)}addUseToParent(e){return this.parent.addUse(e,this)}},dt=class extends ut{#e;#t;constructor(e,t,n){super(n,1),this.#t=e,this.#e=t}addUse(e,t){if(t!==this.innerScope)return this.innerScope.addUse(e);if(e.domain&this.#e&&e.location.text===this.#t.text)this.uses.push(e);else return this.parent.addUse(e,this)}end(e){return this.innerScope.end(e),e({declarations:[this.#t],domain:this.#e,exported:!1,inGlobalScope:!1,uses:this.uses},this.#t,this)}getDestinationScope(){return this.innerScope}getFunctionScope(){return this.innerScope}},ft=class extends ut{#e;constructor(e,t){super(t,2),this.#e=e}getFunctionScope(){return this.#e}},pt=class extends dt{innerScope=new ut(this,1);constructor(e,t){super(e,6,t)}},mt=class extends ut{#e=0;constructor(e){super(e,8)}addUse(e){if(this.#e===2)this.uses.push(e);else return this.parent.addUse(e,this)}updateState(e){this.#e=e}},ht=class extends ut{constructor(e){super(e,1)}end(){this.applyUses()}},gt=class extends ut{constructor(e){super(e,1)}beginBody(){this.applyUses()}},_t=class extends dt{innerScope=new gt(this);constructor(e,t){super(e,4,t)}beginBody(){return this.innerScope.beginBody()}},vt=class extends ut{#e;#t=void 0;#n;#r=new ut(this,1);constructor(e,t,n){super(n,1),this.#e=e,this.#n=t}addUse(e,t){if(t!==this.#r)return this.#r.addUse(e);this.uses.push(e)}createOrReuseEnumScope(e,t){return!t&&(!this.#e||this.#n)?this.#r.createOrReuseEnumScope(e,t):super.createOrReuseEnumScope(e,t)}createOrReuseNamespaceScope(e,t,n,r){return!t&&(!this.#e||this.#n)?this.#r.createOrReuseNamespaceScope(e,t,n||this.#e,r):super.createOrReuseNamespaceScope(e,t,n||this.#e,r)}end(e){this.#r.end((t,n,r)=>{if(r!==this.#r||!t.exported&&(!this.#e||this.#t!==void 0&&!this.#t.has(n.text)))return e(t,n,r);let i=this.variables.get(n.text);if(i===void 0)this.variables.set(n.text,{declarations:t.declarations.map(bt),domain:t.domain,uses:[...t.uses]});else{e:for(let e of t.declarations)for(let t of i.declarations){if(t.declaration===e)continue e;i.declarations.push(bt(e))}i.domain|=t.domain;for(let e of t.uses)i.uses.includes(e)||i.uses.push(e)}}),this.applyUses(),this.#r=new ut(this,1)}finish(e){return super.end(e)}getDestinationScope(){return this.#r}markExported(e){this.#t===void 0&&(this.#t=/* @__PURE__ */ new Set),this.#t.add(e.text)}refresh(e,t){this.#e=e,this.#n=t}},yt=class extends lt{#e;#t=void 0;#n=new ut(this,1);constructor(e,t){super(t),this.#e=e}addUse(e,t){return t===this.#n?super.addUse(e):this.#n.addUse(e)}addVariable(e,t,n,r,i){return i&8?super.addVariable(e,t,n,r,i):this.#n.addVariable(e,t,n,r,i)}end(e){return this.#n.end((t,n)=>(t.exported||=this.#e||this.#t!==void 0&&this.#t.includes(n.text),t.inGlobalScope=this.global,e(t,n,this))),super.end((t,n,r)=>(t.exported||=r===this&&this.#t!==void 0&&this.#t.includes(n.text),e(t,n,r)))}getDestinationScope(){return this}markExported(e){this.#t===void 0?this.#t=[e.text]:this.#t.push(e.text)}};function bt(e){return{declaration:e,domain:G(e),exported:!0}}var xt=class{#e=/* @__PURE__ */ new Map;#t;getUsage(e){let t=(e,t)=>{this.#e.set(t,e)},n=r.default.isExternalModule(e);this.#t=new yt(e.isDeclarationFile&&n&&!St(e),!n);let i=e=>{if(ct(e))return a(e,new ft(this.#t.getFunctionScope(),this.#t),o);switch(e.kind){case r.default.SyntaxKind.ArrowFunction:case r.default.SyntaxKind.CallSignature:case r.default.SyntaxKind.Constructor:case r.default.SyntaxKind.ConstructorType:case r.default.SyntaxKind.ConstructSignature:case r.default.SyntaxKind.FunctionDeclaration:case r.default.SyntaxKind.FunctionExpression:case r.default.SyntaxKind.FunctionType:case r.default.SyntaxKind.GetAccessor:case r.default.SyntaxKind.MethodDeclaration:case r.default.SyntaxKind.MethodSignature:case r.default.SyntaxKind.SetAccessor:return this.#a(e,i,t);case r.default.SyntaxKind.ClassDeclaration:return this.#i(e,!0,6),a(e,new ut(this.#t,1));case r.default.SyntaxKind.ClassExpression:return a(e,e.name===void 0?new ut(this.#t,1):new pt(e.name,this.#t));case r.default.SyntaxKind.ConditionalType:return this.#r(e,i,t);case r.default.SyntaxKind.EnumDeclaration:return this.#i(e,!0,7),a(e,this.#t.createOrReuseEnumScope(e.name.text,S(e.modifiers,r.default.SyntaxKind.ExportKeyword)));case r.default.SyntaxKind.EnumMember:this.#t.addVariable(rt(e.name),e.name,1,!0,4);break;case r.default.SyntaxKind.ExportAssignment:if(e.expression.kind===r.default.SyntaxKind.Identifier)return this.#t.markExported(e.expression);break;case r.default.SyntaxKind.ExportSpecifier:return e.propertyName===void 0?this.#t.markExported(e.name):this.#t.markExported(e.propertyName,e.name);case r.default.SyntaxKind.Identifier:{let t=ot(e);t!==void 0&&this.#t.addUse({domain:t,location:e});return}case r.default.SyntaxKind.ImportClause:case r.default.SyntaxKind.ImportEqualsDeclaration:case r.default.SyntaxKind.ImportSpecifier:case r.default.SyntaxKind.NamespaceImport:this.#i(e,!1,15);break;case r.default.SyntaxKind.InterfaceDeclaration:case r.default.SyntaxKind.TypeAliasDeclaration:return this.#i(e,!0,2),a(e,new ut(this.#t,4));case r.default.SyntaxKind.MappedType:return a(e,new ut(this.#t,4));case r.default.SyntaxKind.ModuleDeclaration:return this.#o(e,a);case r.default.SyntaxKind.Parameter:e.parent.kind!==r.default.SyntaxKind.IndexSignature&&(e.name.kind!==r.default.SyntaxKind.Identifier||tt(e.name)!==r.default.SyntaxKind.ThisKeyword)&&this.#n(e.name,!1,!1);break;case r.default.SyntaxKind.TypeParameter:this.#t.addVariable(e.name.text,e.name,e.parent.kind===r.default.SyntaxKind.InferType?8:7,!1,2);break;case r.default.SyntaxKind.VariableDeclarationList:this.#s(e)}return r.default.forEachChild(e,i)},a=(e,n,r=s)=>{let i=this.#t;this.#t=n,r(e),this.#t.end(t),this.#t=i},o=e=>(e.kind===r.default.SyntaxKind.CatchClause&&e.variableDeclaration!==void 0&&this.#n(e.variableDeclaration.name,!0,!1),r.default.forEachChild(e,i));return r.default.forEachChild(e,i),this.#t.end(t),this.#e;function s(e){return r.default.forEachChild(e,i)}}#n(e,t,n){if(e.kind===r.default.SyntaxKind.Identifier)return this.#t.addVariable(e.text,e,t?3:1,n,4);Ct(e,e=>{this.#t.addVariable(e.name.text,e.name,t?3:1,n,4)})}#r(e,t,n){let r=this.#t,i=this.#t=new mt(r);t(e.checkType),i.updateState(1),t(e.extendsType),i.updateState(2),t(e.trueType),i.updateState(3),t(e.falseType),i.end(n),this.#t=r}#i(e,t,n){e.name!==void 0&&this.#t.addVariable(e.name.text,e.name,t?3:1,S(e.modifiers,r.default.SyntaxKind.ExportKeyword),n)}#a(e,t,n){r.default.canHaveDecorators(e)&&r.default.getDecorators(e)?.forEach(t);let i=this.#t;e.kind===r.default.SyntaxKind.FunctionDeclaration&&this.#i(e,!1,4);let a=this.#t=e.kind===r.default.SyntaxKind.FunctionExpression&&e.name!==void 0?new _t(e.name,i):new gt(i);e.name!==void 0&&t(e.name),e.typeParameters!==void 0&&e.typeParameters.forEach(t),e.parameters.forEach(t),e.type!==void 0&&t(e.type),e.body!==void 0&&(a.beginBody(),t(e.body)),a.end(n),this.#t=i}#o(e,t){if(e.flags&r.default.NodeFlags.GlobalAugmentation)return t(e,this.#t.createOrReuseNamespaceScope(`-global`,!1,!0,!1));if(e.name.kind===r.default.SyntaxKind.Identifier){let n=Tt(e);this.#t.addVariable(e.name.text,e.name,1,n,5);let i=S(e.modifiers,r.default.SyntaxKind.DeclareKeyword);return t(e,this.#t.createOrReuseNamespaceScope(e.name.text,n,i,i&&K(e)))}return t(e,this.#t.createOrReuseNamespaceScope(`"${e.name.text}"`,!1,!0,K(e)))}#s(e){let t=wt(e),n=e.parent.kind===r.default.SyntaxKind.VariableStatement&&S(e.parent.modifiers,r.default.SyntaxKind.ExportKeyword);for(let r of e.declarations)this.#n(r.name,t,n)}};function St(e){for(let t of e.statements)if(t.kind===r.default.SyntaxKind.ExportDeclaration||t.kind===r.default.SyntaxKind.ExportAssignment)return!0;return!1}function Ct(e,t){for(let n of e.elements){if(n.kind!==r.default.SyntaxKind.BindingElement)continue;let e;if(e=n.name.kind===r.default.SyntaxKind.Identifier?t(n):Ct(n.name,t),e)return e}}function wt(e){return(e.flags&r.default.NodeFlags.BlockScoped)!==0}function Tt(e){return e.parent.kind===r.default.SyntaxKind.ModuleDeclaration||S(e.modifiers,r.default.SyntaxKind.ExportKeyword)}function K(e){return e.body?.kind===r.default.SyntaxKind.ModuleBlock&&St(e.body)}e.AccessKind=E,e.DeclarationDomain=nt,e.UsageDomain=at,e.collectVariableUsage=function(e){return new xt().getUsage(e)},e.forEachComment=function(e,t,n=e.getSourceFile()){let r=n.text;for(let{end:i,kind:o,pos:s}of a(e,n))t(r,{end:i,kind:o,pos:s})},e.forEachToken=function(e,t,n=e.getSourceFile()){for(let r of i(e,n))t(r)},e.getAccessKind=D,e.getCallSignaturesOfType=Le,e.getPropertyOfType=Re,e.getWellKnownSymbolPropertyOfType=function(e,t,n){let i=`__@`+t;for(let a of e.getProperties()){if(!a.name.startsWith(i))continue;let e=a.valueDeclaration??a.getDeclarations()?.[0];if(!e||!ve(e)||e.name===void 0||!r.default.isComputedPropertyName(e.name))continue;let o=n.getApparentType(n.getTypeAtLocation(e.name.expression)).symbol;if(a.escapedName===ze(n,o,t))return a}},e.hasDecorators=function(e){return r.default.isParameter(e)||r.default.isPropertyDeclaration(e)||r.default.isMethodDeclaration(e)||r.default.isGetAccessorDeclaration(e)||r.default.isSetAccessorDeclaration(e)||r.default.isClassExpression(e)||r.default.isClassDeclaration(e)},e.hasExpressionInitializer=V,e.hasInitializer=function(e){return V(e)||r.default.isForStatement(e)||r.default.isForInStatement(e)||r.default.isForOfStatement(e)||r.default.isJsxAttribute(e)},e.hasJSDoc=function(e){return!!(ie(e)||r.default.isArrowFunction(e)||r.default.isBlock(e)||r.default.isBreakStatement(e)||r.default.isCallSignatureDeclaration(e)||r.default.isCaseClause(e)||H(e)||r.default.isConstructorDeclaration(e)||r.default.isConstructorTypeNode(e)||r.default.isConstructSignatureDeclaration(e)||r.default.isContinueStatement(e)||r.default.isDebuggerStatement(e)||r.default.isDoStatement(e)||r.default.isEmptyStatement(e)||A(e)||r.default.isEnumDeclaration(e)||r.default.isEnumMember(e)||r.default.isExportAssignment(e)||r.default.isExportDeclaration(e)||r.default.isExportSpecifier(e)||r.default.isExpressionStatement(e)||r.default.isForInStatement(e)||r.default.isForOfStatement(e)||r.default.isForStatement(e)||r.default.isFunctionDeclaration(e)||r.default.isFunctionExpression(e)||r.default.isFunctionTypeNode(e)||r.default.isIfStatement(e)||r.default.isImportDeclaration(e)||r.default.isImportEqualsDeclaration(e)||r.default.isIndexSignatureDeclaration(e)||r.default.isInterfaceDeclaration(e)||r.default.isJSDocFunctionType(e)||r.default.isLabeledStatement(e)||r.default.isMethodDeclaration(e)||r.default.isMethodSignature(e)||r.default.isModuleDeclaration(e)||r.default.isNamedTupleMember(e)||r.default.isNamespaceExportDeclaration(e)||r.default.isParameter(e)||r.default.isParenthesizedExpression(e)||r.default.isPropertyAssignment(e)||r.default.isPropertyDeclaration(e)||r.default.isPropertySignature(e)||r.default.isReturnStatement(e)||r.default.isShorthandPropertyAssignment(e)||r.default.isSpreadAssignment(e)||r.default.isSwitchStatement(e)||r.default.isThrowStatement(e)||r.default.isTryStatement(e)||r.default.isTypeAliasDeclaration(e)||r.default.isVariableDeclaration(e)||r.default.isVariableStatement(e)||r.default.isWhileStatement(e)||r.default.isWithStatement(e)||d(4,4)&&r.default.isClassStaticBlockDeclaration(e)||d(5,0)&&(r.default.isBinaryExpression(e)||r.default.isElementAccessExpression(e)||r.default.isIdentifier(e)||r.default.isJSDocSignature(e)||r.default.isObjectLiteralExpression(e)||r.default.isPropertyAccessExpression(e)||r.default.isTypeParameterDeclaration(e)))},e.hasModifiers=function(e){return r.default.isTypeParameterDeclaration(e)||r.default.isParameter(e)||r.default.isConstructorTypeNode(e)||r.default.isPropertySignature(e)||r.default.isPropertyDeclaration(e)||r.default.isMethodSignature(e)||r.default.isMethodDeclaration(e)||r.default.isConstructorDeclaration(e)||r.default.isGetAccessorDeclaration(e)||r.default.isSetAccessorDeclaration(e)||r.default.isIndexSignatureDeclaration(e)||r.default.isFunctionExpression(e)||r.default.isArrowFunction(e)||r.default.isClassExpression(e)||r.default.isVariableStatement(e)||r.default.isFunctionDeclaration(e)||r.default.isClassDeclaration(e)||r.default.isInterfaceDeclaration(e)||r.default.isTypeAliasDeclaration(e)||r.default.isEnumDeclaration(e)||r.default.isModuleDeclaration(e)||r.default.isImportEqualsDeclaration(e)||r.default.isImportDeclaration(e)||r.default.isExportAssignment(e)||r.default.isExportDeclaration(e)},e.hasType=function(e){return me(e)||r.default.isVariableDeclaration(e)||r.default.isParameter(e)||r.default.isPropertySignature(e)||r.default.isPropertyDeclaration(e)||r.default.isTypePredicateNode(e)||r.default.isParenthesizedTypeNode(e)||r.default.isTypeOperatorNode(e)||r.default.isMappedTypeNode(e)||r.default.isAssertionExpression(e)||r.default.isTypeAliasDeclaration(e)||r.default.isJSDocTypeExpression(e)||r.default.isJSDocNonNullableType(e)||r.default.isJSDocNullableType(e)||r.default.isJSDocOptionalType(e)||r.default.isJSDocVariadicType(e)},e.hasTypeArguments=function(e){return r.default.isCallExpression(e)||r.default.isNewExpression(e)||r.default.isTaggedTemplateExpression(e)||r.default.isJsxOpeningElement(e)||r.default.isJsxSelfClosingElement(e)},e.includesModifier=S,e.intersectionConstituents=He,e.intersectionTypeParts=Ue,e.isAbstractKeyword=function(e){return e.kind===r.default.SyntaxKind.AbstractKeyword},e.isAccessExpression=function(e){return r.default.isPropertyAccessExpression(e)||r.default.isElementAccessExpression(e)},e.isAccessibilityModifier=re,e.isAccessorDeclaration=ie,e.isAccessorKeyword=k,e.isAnyKeyword=function(e){return e.kind===r.default.SyntaxKind.AnyKeyword},e.isArrayBindingElement=function(e){return r.default.isBindingElement(e)||r.default.isOmittedExpression(e)},e.isArrayBindingOrAssignmentPattern=ae,e.isAssertKeyword=function(e){return e.kind===r.default.SyntaxKind.AssertKeyword},e.isAssertsKeyword=function(e){return e.kind===r.default.SyntaxKind.AssertsKeyword},e.isAssignmentKind=C,e.isAssignmentPattern=function(e){return r.default.isObjectLiteralExpression(e)||r.default.isArrayLiteralExpression(e)},e.isAsyncKeyword=function(e){return e.kind===r.default.SyntaxKind.AsyncKeyword},e.isAwaitKeyword=function(e){return e.kind===r.default.SyntaxKind.AwaitKeyword},e.isBigIntKeyword=function(e){return e.kind===r.default.SyntaxKind.BigIntKeyword},e.isBigIntLiteralType=function(e){return x(e,r.default.TypeFlags.BigIntLiteral)},e.isBindingOrAssignmentElementRestIndicator=function(e){return r.default.isSpreadElement(e)||r.default.isSpreadAssignment(e)?!0:d(4,4)?r.default.isDotDotDotToken(e):!1},e.isBindingOrAssignmentElementTarget=function(e){return oe(e)||r.default.isIdentifier(e)||r.default.isPropertyAccessExpression(e)||r.default.isElementAccessExpression(e)||r.default.isOmittedExpression(e)},e.isBindingOrAssignmentPattern=oe,e.isBindingPattern=se,e.isBlockLike=function(e){return r.default.isSourceFile(e)||r.default.isBlock(e)||r.default.isModuleBlock(e)||r.default.isCaseOrDefaultClause(e)},e.isBooleanKeyword=function(e){return e.kind===r.default.SyntaxKind.BooleanKeyword},e.isBooleanLiteral=ce,e.isBooleanLiteralType=Fe,e.isClassLikeDeclaration=H,e.isClassMemberModifier=function(e){return re(e)||ne(e)||I(e)||k(e)},e.isColonToken=function(e){return e.kind===r.default.SyntaxKind.ColonToken},e.isCompilerOptionEnabled=f,e.isConditionalType=function(e){return x(e,r.default.TypeFlags.Conditional)},e.isConstAssertionExpression=he,e.isConstKeyword=function(e){return e.kind===r.default.SyntaxKind.ConstKeyword},e.isDeclarationName=U,e.isDeclarationWithTypeParameterChildren=le,e.isDeclarationWithTypeParameters=function(e){return le(e)||r.default.isJSDocTypedefTag(e)||r.default.isJSDocCallbackTag(e)||r.default.isJSDocSignature(e)},e.isDeclareKeyword=function(e){return e.kind===r.default.SyntaxKind.DeclareKeyword},e.isDefaultKeyword=function(e){return e.kind===r.default.SyntaxKind.DefaultKeyword},e.isDestructuringPattern=function(e){return se(e)||r.default.isObjectLiteralExpression(e)||r.default.isArrayLiteralExpression(e)},e.isDotToken=function(e){return e.kind===r.default.SyntaxKind.DotToken},e.isEndOfFileToken=A,e.isEntityNameExpression=ue,e.isEntityNameOrEntityNameExpression=function(e){return r.default.isEntityName(e)||ue(e)},e.isEnumType=function(e){return x(e,r.default.TypeFlags.Enum)},e.isEqualsGreaterThanToken=function(e){return e.kind===r.default.SyntaxKind.EqualsGreaterThanToken},e.isEqualsToken=function(e){return e.kind===r.default.SyntaxKind.EqualsToken},e.isEvolvingArrayType=function(e){return ke(e)&&v(e,r.default.ObjectFlags.EvolvingArray)},e.isExclamationToken=function(e){return e.kind===r.default.SyntaxKind.ExclamationToken},e.isExportKeyword=function(e){return e.kind===r.default.SyntaxKind.ExportKeyword},e.isFalseKeyword=function(e){return e.kind===r.default.SyntaxKind.FalseKeyword},e.isFalseLiteral=j,e.isFalseLiteralType=Ie,e.isFalsyType=function(e){return x(e,r.default.TypeFlags.Undefined|r.default.TypeFlags.Null|r.default.TypeFlags.Void)?!0:qe(e)?typeof e.value==`object`?e.value.base10Value===`0`:!e.value:Ie(e)},e.isForInOrOfStatement=function(e){return r.default.isForInStatement(e)||r.default.isForOfStatement(e)},e.isFreshableIntrinsicType=function(e){return Ee(e)&&De(e)},e.isFreshableType=De,e.isFunctionLikeDeclaration=function(e){return r.default.isFunctionDeclaration(e)||r.default.isMethodDeclaration(e)||r.default.isGetAccessorDeclaration(e)||r.default.isSetAccessorDeclaration(e)||r.default.isConstructorDeclaration(e)||r.default.isFunctionExpression(e)||r.default.isArrowFunction(e)},e.isFunctionScopeBoundary=we,e.isImportExpression=function(e){return e.kind===r.default.SyntaxKind.ImportKeyword},e.isImportKeyword=function(e){return e.kind===r.default.SyntaxKind.ImportKeyword},e.isInKeyword=function(e){return e.kind===r.default.SyntaxKind.InKeyword},e.isIndexType=function(e){return x(e,r.default.TypeFlags.Index)},e.isIndexedAccessType=function(e){return x(e,r.default.TypeFlags.IndexedAccess)},e.isInstantiableType=function(e){return x(e,r.default.TypeFlags.Instantiable)},e.isIntersectionType=Oe,e.isIntrinsicAnyType=function(e){return x(e,r.default.TypeFlags.Any)},e.isIntrinsicBigIntType=function(e){return x(e,r.default.TypeFlags.BigInt)},e.isIntrinsicBooleanType=function(e){return x(e,r.default.TypeFlags.Boolean)},e.isIntrinsicESSymbolType=function(e){return x(e,r.default.TypeFlags.ESSymbol)},e.isIntrinsicErrorType=function(e){return Ee(e)&&e.intrinsicName===`error`},e.isIntrinsicNeverType=function(e){return x(e,r.default.TypeFlags.Never)},e.isIntrinsicNonPrimitiveType=function(e){return x(e,r.default.TypeFlags.NonPrimitive)},e.isIntrinsicNullType=function(e){return x(e,r.default.TypeFlags.Null)},e.isIntrinsicNumberType=function(e){return x(e,r.default.TypeFlags.Number)},e.isIntrinsicStringType=function(e){return x(e,r.default.TypeFlags.String)},e.isIntrinsicType=Ee,e.isIntrinsicUndefinedType=function(e){return x(e,r.default.TypeFlags.Undefined)},e.isIntrinsicUnknownType=function(e){return x(e,r.default.TypeFlags.Unknown)},e.isIntrinsicVoidType=function(e){return x(e,r.default.TypeFlags.Void)},e.isIterationStatement=function(e){switch(e.kind){case r.default.SyntaxKind.DoStatement:case r.default.SyntaxKind.ForInStatement:case r.default.SyntaxKind.ForOfStatement:case r.default.SyntaxKind.ForStatement:case r.default.SyntaxKind.WhileStatement:return!0;default:return!1}},e.isJSDocComment=function(e){return M(e)?!0:d(4,4)?r.default.isJSDocLink(e)||r.default.isJSDocLinkCode(e)||r.default.isJSDocLinkPlain(e):!1},e.isJSDocNamespaceBody=de,e.isJSDocNamespaceDeclaration=ge,e.isJSDocText=M,e.isJSDocTypeReferencingNode=function(e){return r.default.isJSDocVariadicType(e)||r.default.isJSDocOptionalType(e)||r.default.isJSDocNullableType(e)||r.default.isJSDocNonNullableType(e)},e.isJsonMinusNumericLiteral=ee,e.isJsonObjectExpression=function(e){return r.default.isObjectLiteralExpression(e)||r.default.isArrayLiteralExpression(e)||ee(e)||r.default.isNumericLiteral(e)||r.default.isStringLiteral(e)||ce(e)||N(e)},e.isJsxAttributeLike=function(e){return r.default.isJsxAttribute(e)||r.default.isJsxSpreadAttribute(e)},e.isJsxAttributeValue=function(e){return r.default.isStringLiteral(e)||r.default.isJsxExpression(e)||r.default.isJsxElement(e)||r.default.isJsxSelfClosingElement(e)||r.default.isJsxFragment(e)},e.isJsxChild=function(e){return r.default.isJsxText(e)||r.default.isJsxExpression(e)||r.default.isJsxElement(e)||r.default.isJsxSelfClosingElement(e)||r.default.isJsxFragment(e)},e.isJsxTagNameExpression=fe,e.isJsxTagNamePropertyAccess=_e,e.isLiteralToken=function(e){return r.default.isNumericLiteral(e)||r.default.isBigIntLiteral(e)||r.default.isStringLiteral(e)||r.default.isJsxText(e)||r.default.isRegularExpressionLiteral(e)||r.default.isNoSubstitutionTemplateLiteral(e)},e.isLiteralType=function(e){return x(e,r.default.TypeFlags.Literal)},e.isModifierFlagSet=m,e.isModuleBody=function(e){return W(e)||de(e)},e.isModuleName=function(e){return r.default.isIdentifier(e)||r.default.isStringLiteral(e)},e.isModuleReference=function(e){return r.default.isEntityName(e)||r.default.isExternalModuleReference(e)},e.isNamedDeclarationWithName=ve,e.isNamedImportBindings=function(e){return r.default.isNamespaceImport(e)||r.default.isNamedImports(e)},e.isNamedImportsOrExports=function(e){return r.default.isNamedImports(e)||r.default.isNamedExports(e)},e.isNamespaceBody=W,e.isNamespaceDeclaration=ye,e.isNeverKeyword=function(e){return e.kind===r.default.SyntaxKind.NeverKeyword},e.isNodeFlagSet=_,e.isNullKeyword=function(e){return e.kind===r.default.SyntaxKind.NullKeyword},e.isNullLiteral=N,e.isNumberKeyword=function(e){return e.kind===r.default.SyntaxKind.NumberKeyword},e.isNumberLiteralType=function(e){return x(e,r.default.TypeFlags.NumberLiteral)},e.isNumericOrStringLikeLiteral=be,e.isNumericPropertyName=w,e.isObjectBindingOrAssignmentElement=function(e){return r.default.isBindingElement(e)||r.default.isPropertyAssignment(e)||r.default.isShorthandPropertyAssignment(e)||r.default.isSpreadAssignment(e)},e.isObjectBindingOrAssignmentPattern=pe,e.isObjectFlagSet=v,e.isObjectKeyword=function(e){return e.kind===r.default.SyntaxKind.ObjectKeyword},e.isObjectType=ke,e.isObjectTypeDeclaration=function(e){return H(e)||r.default.isInterfaceDeclaration(e)||r.default.isTypeLiteralNode(e)},e.isOutKeyword=function(e){return e.kind===r.default.SyntaxKind.OutKeyword},e.isOverrideKeyword=function(e){return e.kind===r.default.SyntaxKind.OverrideKeyword},e.isParameterPropertyModifier=function(e){return re(e)||ne(e)},e.isPrivateKeyword=te,e.isPropertyAccessEntityNameExpression=xe,e.isPropertyNameLiteral=function(e){return r.default.isIdentifier(e)||r.default.isStringLiteralLike(e)||r.default.isNumericLiteral(e)},e.isPropertyReadonlyInType=We,e.isProtectedKeyword=P,e.isPseudoLiteralToken=function(e){return r.default.isTemplateHead(e)||r.default.isTemplateMiddle(e)||r.default.isTemplateTail(e)},e.isPublicKeyword=F,e.isQuestionDotToken=function(e){return e.kind===r.default.SyntaxKind.QuestionDotToken},e.isQuestionToken=function(e){return e.kind===r.default.SyntaxKind.QuestionToken},e.isReadonlyKeyword=ne,e.isSignatureDeclaration=me,e.isStaticKeyword=I,e.isStrictCompilerOptionEnabled=p,e.isStringKeyword=function(e){return e.kind===r.default.SyntaxKind.StringKeyword},e.isStringLiteralType=function(e){return x(e,r.default.TypeFlags.StringLiteral)},e.isStringMappingType=function(e){return x(e,r.default.TypeFlags.StringMapping)},e.isSubstitutionType=function(e){return x(e,r.default.TypeFlags.Substitution)},e.isSuperElementAccessExpression=Se,e.isSuperExpression=L,e.isSuperKeyword=function(e){return e.kind===r.default.SyntaxKind.SuperKeyword},e.isSuperProperty=function(e){return Ce(e)||Se(e)},e.isSuperPropertyAccessExpression=Ce,e.isSymbolFlagSet=y,e.isSymbolKeyword=function(e){return e.kind===r.default.SyntaxKind.SymbolKeyword},e.isSyntaxList=function(e){return e.kind===r.default.SyntaxKind.SyntaxList},e.isTemplateLiteralType=function(e){return x(e,r.default.TypeFlags.TemplateLiteral)},e.isThenableType=function(e,t,n=e.getTypeAtLocation(t)){for(let r of Ye(e.getApparentType(n))){let n=r.getProperty(`then`);if(n===void 0)continue;let i=e.getTypeOfSymbolAtLocation(n,t);for(let n of Ye(i))for(let r of n.getCallSignatures())if(r.parameters.length!==0&&Ze(e,r.parameters[0],t))return!0}return!1},e.isThisExpression=R,e.isThisKeyword=function(e){return e.kind===r.default.SyntaxKind.ThisKeyword},e.isTransientSymbolLinksFlagSet=b,e.isTrueKeyword=function(e){return e.kind===r.default.SyntaxKind.TrueKeyword},e.isTrueLiteral=B,e.isTrueLiteralType=function(e){return Fe(e)&&e.intrinsicName===`true`},e.isTupleType=Me,e.isTupleTypeReference=Pe,e.isTypeFlagSet=x,e.isTypeOnlyCompatibleAliasDeclaration=function(e){return!!(r.default.isImportClause(e)||r.default.isImportEqualsDeclaration(e)||r.default.isNamespaceImport(e)||r.default.isImportOrExportSpecifier(e)||d(5,0)&&(r.default.isExportDeclaration(e)||r.default.isNamespaceExport(e)))},e.isTypeParameter=function(e){return x(e,r.default.TypeFlags.TypeParameter)},e.isTypeReference=Ne,e.isTypeReferenceType=function(e){return r.default.isTypeReferenceNode(e)||r.default.isExpressionWithTypeArguments(e)},e.isTypeVariable=function(e){return x(e,r.default.TypeFlags.TypeVariable)},e.isUndefinedKeyword=function(e){return e.kind===r.default.SyntaxKind.UndefinedKeyword},e.isUnionOrIntersectionType=function(e){return x(e,r.default.TypeFlags.UnionOrIntersection)},e.isUnionOrIntersectionTypeNode=function(e){return r.default.isUnionTypeNode(e)||r.default.isIntersectionTypeNode(e)},e.isUnionType=Ae,e.isUniqueESSymbolType=je,e.isUnknownKeyword=function(e){return e.kind===r.default.SyntaxKind.UnknownKeyword},e.isValidPropertyAccess=function(e,t=r.default.ScriptTarget.Latest){if(e.length===0)return!1;let n=e.codePointAt(0);if(!r.default.isIdentifierStart(n,t))return!1;for(let i=T(n);i<e.length;i+=T(n))if(n=e.codePointAt(i),!r.default.isIdentifierPart(n,t))return!1;return!0},e.isVariableLikeDeclaration=function(e){return r.default.isVariableDeclaration(e)||r.default.isParameter(e)||r.default.isBindingElement(e)||r.default.isPropertyDeclaration(e)||r.default.isPropertyAssignment(e)||r.default.isPropertySignature(e)||r.default.isJsxAttribute(e)||r.default.isShorthandPropertyAssignment(e)||r.default.isEnumMember(e)||r.default.isJSDocPropertyTag(e)||r.default.isJSDocParameterTag(e)},e.isVoidKeyword=function(e){return e.kind===r.default.SyntaxKind.VoidKeyword},e.iterateComments=a,e.iterateTokens=i,e.symbolHasReadonlyDeclaration=Ge,e.typeConstituents=Ke,e.typeIsLiteral=qe,e.typeParts=Je,e.unionConstituents=Ye,e.unionTypeParts=Xe})),nhe=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=n&&n.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!=="default"&&r(n,t,a[o]);return i(n,t),n}})();Object.defineProperty(e,"__esModule",{value:!0}),e.hasBaseTypes=u,e.isNumberLike=d,e.isStringLike=f,e.matchesTypeOrBaseType=p;let o=s8(),s=a(s8()),c=a(z(`typescript`));function l(e,t){if(!s.isObjectType(t))return[];let n=s.isTypeReference(t)?t.target:t,r=s.isObjectFlagSet(n,c.ObjectFlags.Interface|c.ObjectFlags.Class)&&n;return r?e.getBaseTypes(r):[]}function u(e){return(0,o.isObjectType)(e)&&(0,o.isObjectFlagSet)(e,c.ObjectFlags.Interface|c.ObjectFlags.Class)}function d(e){return s.unionConstituents(e).every(e=>s.intersectionConstituents(e).some(e=>s.isTypeFlagSet(e,c.TypeFlags.NumberLike)))}function f(e){return s.unionConstituents(e).every(e=>s.intersectionConstituents(e).some(e=>s.isTypeFlagSet(e,c.TypeFlags.StringLike)))}function p(e,t,n,r=/* @__PURE__ */ new Set){return!r.has(n)&&(r.add(n),t(n)?!0:l(e.program.getTypeChecker(),n).some(n=>p(e,t,n,r)))}})),c8=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isTypeImport=r;let t=lk(),n=Y();function r(e){return e?.type===t.DefinitionType.ImportBinding&&(e.parent.importKind===`type`||e.node.type===n.AST_NODE_TYPES.ImportSpecifier&&e.node.importKind===`type`)}})),rhe=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.referenceContainsTypePredicate=n;let t=Y();function n(e){switch(e.type){case t.AST_NODE_TYPES.TSTypePredicate:return!0;case t.AST_NODE_TYPES.TSQualifiedName:case t.AST_NODE_TYPES.Identifier:return n(e.parent);default:return!1}}})),l8=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.referenceContainsTypeQuery=n;let t=Y();function n(e){switch(e.type){case t.AST_NODE_TYPES.TSTypeQuery:return!0;case t.AST_NODE_TYPES.TSQualifiedName:case t.AST_NODE_TYPES.Identifier:return n(e.parent);default:return!1}}})),u8=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isMergedTypeValueVariable=i,e.isTypeOnlyReference=a;let t=lk(),n=rhe(),r=l8();function i(e){return`isTypeVariable`in e&&`isValueVariable`in e&&e.isTypeVariable&&e.isValueVariable}function a(e,i){return(0,r.referenceContainsTypeQuery)(i.identifier)||(0,n.referenceContainsTypePredicate)(i.identifier)?!0:e.defs.some(e=>e.type===t.DefinitionType.Variable)&&i.isValueReference===!1}})),ihe=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.collectVariables=m;let t=lk(),n=Y(),r=c8(),i=u8();var a=class extends t.Visitor{static RESULTS_CACHE=/* @__PURE__ */ new WeakMap;ClassDeclaration=this.visitClass;ClassExpression=this.visitClass;ForInStatement=this.visitForInForOf;ForOfStatement=this.visitForInForOf;FunctionDeclaration=this.visitFunction;FunctionExpression=this.visitFunction;MethodDefinition=this.visitSetter;Property=this.visitSetter;TSCallSignatureDeclaration=this.visitFunctionTypeSignature;TSConstructorType=this.visitFunctionTypeSignature;TSConstructSignatureDeclaration=this.visitFunctionTypeSignature;TSDeclareFunction=this.visitFunctionTypeSignature;TSEmptyBodyFunctionExpression=this.visitFunctionTypeSignature;TSFunctionType=this.visitFunctionTypeSignature;TSMethodSignature=this.visitFunctionTypeSignature;#e;constructor(e){super({visitChildrenEvenIfSelectorExists:!0}),this.#e=e}static collectUnusedVariables(e,t){let n=this.RESULTS_CACHE.get(e);if(n)return n;let r=new this(t);r.visit(e);let i=r.collectUnusedVariables(r.getScope(e));return this.RESULTS_CACHE.set(e,i),i}Identifier(e){let t=this.getScope(e);t.type===n.TSESLint.Scope.ScopeType.function&&e.name===`this`&&`params`in t.block&&t.block.params.includes(e)&&this.markVariableAsUsed(e)}TSEnumDeclaration(e){let t=this.getScope(e);for(let e of t.variables)this.markVariableAsUsed(e)}TSMappedType(e){this.markVariableAsUsed(e.key)}TSModuleDeclaration(e){e.kind===`global`&&this.markVariableAsUsed(`global`,e.parent)}TSParameterProperty(e){let t;switch(e.parameter.type){case n.AST_NODE_TYPES.AssignmentPattern:t=e.parameter.left;break;case n.AST_NODE_TYPES.Identifier:t=e.parameter}this.markVariableAsUsed(t)}collectUnusedVariables(e,n={unusedVariables:/* @__PURE__ */ new Set,usedVariables:/* @__PURE__ */ new Set}){if(!e.functionExpressionScope)for(let r of e.variables)r instanceof t.ImplicitLibVariable||(r.eslintUsed||d(r)||u(r)||p(r)?n.usedVariables.add(r):n.unusedVariables.add(r));for(let t of e.childScopes)this.collectUnusedVariables(t,n);return n}getScope(e){let r=e.type!==n.AST_NODE_TYPES.Program,i=e;for(;i;){let e=this.#e.acquire(i,r);if(e)return e.type===t.ScopeType.functionExpressionName?e.childScopes[0]:e;i=i.parent}return this.#e.scopes[0]}markVariableAsUsed(e,t){if(typeof e!=`string`&&!(`type`in e)){e.eslintUsed=!0;return}let n,r;typeof e==`string`?(n=e,r=t):(n=e.name,r=e);let i=this.getScope(r);for(;i;){let e=i.variables.find(e=>e.name===n);if(e){e.eslintUsed=!0;return}i=i.upper}}visitClass(e){let t=this.getScope(e);for(let e of t.variables)if(e.identifiers[0]===t.block.id){this.markVariableAsUsed(e);return}}visitForInForOf(e){let t;if(e.left.type===n.AST_NODE_TYPES.VariableDeclaration){let n=this.#e.getDeclaredVariables(e.left).at(0);if(!n)return;t=n}if(e.left.type===n.AST_NODE_TYPES.Identifier&&(t=e.left),t==null)return;let r=e.body;if(e.body.type===n.AST_NODE_TYPES.BlockStatement){if(e.body.body.length!==1)return;r=e.body.body[0]}r.type===n.AST_NODE_TYPES.ReturnStatement&&this.markVariableAsUsed(t)}visitFunction(e){let t=this.getScope(e).set.get(`arguments`);t?.defs.length===0&&this.markVariableAsUsed(t)}visitFunctionTypeSignature(e){for(let t of e.params)this.visitPattern(t,e=>{this.markVariableAsUsed(e)})}visitSetter(e){if(e.kind===`set`)for(let t of e.value.params)this.visitPattern(t,e=>{this.markVariableAsUsed(e)})}};function o(e,t){return e.range[0]>=t.range[0]&&e.range[1]<=t.range[1]}function s(e,t){let n=e.from;for(;n;){if(t.has(n.block))return!0;n=n.upper}return!1}let c=/* @__PURE__ */ new Set([n.AST_NODE_TYPES.ClassDeclaration,n.AST_NODE_TYPES.FunctionDeclaration,n.AST_NODE_TYPES.TSInterfaceDeclaration,n.AST_NODE_TYPES.TSModuleDeclaration,n.AST_NODE_TYPES.TSTypeAliasDeclaration]);function l(e,t){return(t.type===n.AST_NODE_TYPES.TSTypeAliasDeclaration||t.type===n.AST_NODE_TYPES.TSInterfaceDeclaration)&&(0,i.isMergedTypeValueVariable)(e)}function u(e){for(let t of e.defs)if(t.type!==n.TSESLint.Scope.DefinitionType.Parameter&&(c.has(t.node.type)&&t.node.parent.type===n.AST_NODE_TYPES.ExportNamedDeclaration||t.node.parent.type===n.AST_NODE_TYPES.ExportDefaultDeclaration))return!l(e,t.node);return!1}function d(e){return e.defs.some(t=>{let r=t.node;if(r.type===n.AST_NODE_TYPES.VariableDeclarator)r=r.parent;else if(t.type===n.TSESLint.Scope.DefinitionType.Parameter)return!1;return!l(e,r)&&r.parent.type.startsWith(`Export`)})}let f=/* @__PURE__ */ new Set([`??=`,`&&=`,`||=`]);function p(e){function t(e){let t=/* @__PURE__ */ new Set;return e.defs.forEach(e=>{e.type===n.TSESLint.Scope.DefinitionType.FunctionName&&t.add(e.node),e.type===n.TSESLint.Scope.DefinitionType.Variable&&(e.node.init?.type===n.AST_NODE_TYPES.FunctionExpression||e.node.init?.type===n.AST_NODE_TYPES.ArrowFunctionExpression)&&t.add(e.node.init)}),t}function a(e){let t=/* @__PURE__ */ new Set;return e.defs.forEach(e=>{(e.node.type===n.AST_NODE_TYPES.TSInterfaceDeclaration||e.node.type===n.AST_NODE_TYPES.TSTypeAliasDeclaration)&&t.add(e.node)}),t}function c(e){let t=/* @__PURE__ */ new Set;return e.defs.forEach(e=>{e.node.type===n.AST_NODE_TYPES.TSModuleDeclaration&&t.add(e.node)}),t}function l(e){let t=/* @__PURE__ */ new Set;return e.defs.forEach(e=>{e.node.type===n.AST_NODE_TYPES.TSEnumDeclaration&&t.add(e.node)}),t}function u(e,t){for(let n of t)if(o(e.identifier,n))return!0;return!1}function d(e){let t=e.parent;return t.type===n.AST_NODE_TYPES.ExpressionStatement?!0:t.type===n.AST_NODE_TYPES.SequenceExpression?t.expressions[t.expressions.length-1]!==e||d(t):!1}function p(e,t){function r(e){let t=e;for(;t&&!n.ASTUtils.isFunction(t);){if(n.ASTUtils.isLoop(t))return!0;t=t.parent}return!1}let i=e.identifier,a=i.parent,s=e.from.variableScope!==e.resolved.scope.variableScope||r(i);return t&&o(i,t)?t:a.type===n.AST_NODE_TYPES.AssignmentExpression&&d(a)&&i===a.left&&!s?a.right:null}function m(e,t){function r(e,t){function r(e){let t=e;for(;t;){if(n.ASTUtils.isFunction(t))return t;t=t.parent}return null}function i(e,t){let r=e,i=e.parent;for(;i&&o(i,t);){switch(i.type){case n.AST_NODE_TYPES.SequenceExpression:if(i.expressions[i.expressions.length-1]!==r)return!1;break;case n.AST_NODE_TYPES.CallExpression:case n.AST_NODE_TYPES.NewExpression:return i.callee!==r;case n.AST_NODE_TYPES.AssignmentExpression:case n.AST_NODE_TYPES.TaggedTemplateExpression:case n.AST_NODE_TYPES.YieldExpression:return!0;default:if(i.type.endsWith(`Statement`)||i.type.endsWith(`Declaration`))return!0}r=i,i=i.parent}return!1}let a=r(e);return!!a&&o(a,t)&&i(a,t)}let i=e.identifier,a=i.parent;return e.isRead()&&(a.type===n.AST_NODE_TYPES.AssignmentExpression&&!f.has(a.operator)&&d(a)&&a.left===i||a.type===n.AST_NODE_TYPES.UpdateExpression&&d(a)||!!t&&o(i,t)&&!r(i,t))}let h=t(e),g=h.size>0,_=a(e),v=_.size>0,y=c(e),b=y.size>0,x=l(e),S=x.size>0,C=e.defs.every(r.isTypeImport),w=null;return e.references.some(t=>{let n=m(t,w);return w=p(t,w),t.isRead()&&!n&&!(!C&&(0,i.isTypeOnlyReference)(e,t))&&!(g&&s(t,h))&&!(v&&u(t,_))&&!(b&&s(t,y))&&!(S&&s(t,x))})}function m(e){return a.collectUnusedVariables(e.sourceCode.ast,n.ESLintUtils.nullThrows(e.sourceCode.scopeManager,`Missing required scope manager`))}})),ahe=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createRule=void 0,e.createRule=Y().ESLintUtils.RuleCreator(e=>`https://typescript-eslint.io/rules/${e}`)})),d8=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isSymbolFromDefaultLibrary=t;function t(e,t){if(!t)return!1;let n=t.getDeclarations()??[];for(let t of n){let n=t.getSourceFile();if(e.isSourceFileDefaultLibrary(n))return!0}return!1}})),ohe=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=n&&n.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!=="default"&&r(n,t,a[o]);return i(n,t),n}})();Object.defineProperty(e,"__esModule",{value:!0}),e.isPromiseLike=l,e.isPromiseConstructorLike=u,e.isErrorLike=d,e.isReadonlyErrorLike=f,e.isReadonlyTypeLike=p,e.isBuiltinTypeAliasLike=m,e.isBuiltinSymbolLike=h,e.isBuiltinSymbolLikeRecurser=g;let o=a(s8()),s=a(z(`typescript`)),c=d8();function l(e,t){return h(e,t,`Promise`)}function u(e,t){return h(e,t,`PromiseConstructor`)}function d(e,t){return h(e,t,`Error`)}function f(e,t){return p(e,t,t=>{let[n]=t.aliasTypeArguments;return d(e,n)||f(e,n)})}function p(e,t,n){return m(e,t,e=>e.aliasSymbol.getName()===`Readonly`&&!!n?.(e))}function m(e,t,n){return g(e,t,t=>{let{aliasSymbol:r,aliasTypeArguments:i}=t;return!r||!i?!1:(0,c.isSymbolFromDefaultLibrary)(e,r)&&n(t)?!0:null})}function h(e,t,n){return g(e,t,t=>{let r=t.getSymbol();if(!r)return!1;let i=r.getName();return(Array.isArray(n)?n.some(e=>i===e):i===n)&&(0,c.isSymbolFromDefaultLibrary)(e,r)?!0:null})}function g(e,t,n){if(t.isIntersection())return t.types.some(t=>g(e,t,n));if(t.isUnion())return t.types.every(t=>g(e,t,n));if(o.isTypeParameter(t)){let r=t.getConstraint();return r?g(e,r,n):!1}let r=n(t);if(typeof r==`boolean`)return r;let i=t.getSymbol();if(i&&o.isSymbolFlagSet(i,s.SymbolFlags.Class|s.SymbolFlags.Interface)){let t=e.getTypeChecker(),r=t.getDeclaredTypeOfSymbol(i);for(let i of t.getBaseTypes(r))if(g(e,i,n))return!0}return!1}})),f8=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=n&&n.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!=="default"&&r(n,t,a[o]);return i(n,t),n}})();Object.defineProperty(e,"__esModule",{value:!0}),e.getTypeFlags=l,e.isTypeFlagSet=u;let o=a(s8()),s=a(z(`typescript`)),c=s.TypeFlags.Any|s.TypeFlags.Unknown;function l(e){let t=0;for(let n of o.unionConstituents(e))t|=n.flags;return t}function u(e,t,n){let r=l(e);return n&&r&c?!0:(r&t)!==0}})),she=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=n&&n.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!=="default"&&r(n,t,a[o]);return i(n,t),n}})();Object.defineProperty(e,"__esModule",{value:!0}),e.containsAllTypesByName=l;let o=a(s8()),s=a(z(`typescript`)),c=f8();function l(e,t,n,r=!1){if((0,c.isTypeFlagSet)(e,s.TypeFlags.Any|s.TypeFlags.Unknown))return!t;o.isTypeReference(e)&&(e=e.target);let i=e.getSymbol();if(i&&n.has(i.name))return!0;let a=e=>l(e,t,n,r);if(o.isUnionOrIntersectionType(e))return r?e.types.some(a):e.types.every(a);let u=e.getBaseTypes();return u!=null&&(r?u.some(a):u.length>0&&u.every(a))}})),che=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getConstrainedTypeAtLocation=t;function t(e,t){let n=e.getTypeAtLocation(t);return e.program.getTypeChecker().getBaseConstraintOfType(n)??n}})),lhe=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=n&&n.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!=="default"&&r(n,t,a[o]);return i(n,t),n}})();Object.defineProperty(e,"__esModule",{value:!0}),e.getContextualType=s;let o=a(z(`typescript`));function s(e,t){let n=t.parent;if(o.isCallExpression(n)||o.isNewExpression(n)){if(t===n.expression)return}else if(o.isVariableDeclaration(n)||o.isPropertyDeclaration(n)||o.isParameter(n))return n.type?e.getTypeFromTypeNode(n.type):void 0;else if(o.isJsxExpression(n))return e.getContextualType(n);else if(o.isIdentifier(t)&&(o.isPropertyAssignment(n)||o.isShorthandPropertyAssignment(n)))return e.getContextualType(t);else if(o.isBinaryExpression(n)&&n.operatorToken.kind===o.SyntaxKind.EqualsToken&&n.right===t)return e.getTypeAtLocation(n.left);else if(![o.SyntaxKind.JsxExpression,o.SyntaxKind.TemplateSpan].includes(n.kind))return;return e.getContextualType(t)}})),uhe=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getDeclaration=t;function t(e,t){let n=e.getSymbolAtLocation(t);return n?n.getDeclarations()?.[0]??null:null}})),dhe=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=n&&n.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!=="default"&&r(n,t,a[o]);return i(n,t),n}})();Object.defineProperty(e,"__esModule",{value:!0}),e.getSourceFileOfNode=s;let o=a(z(`typescript`));function s(e){for(;e.kind!==o.SyntaxKind.SourceFile;)e=e.parent;return e}})),fhe=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=n&&n.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!=="default"&&r(n,t,a[o]);return i(n,t),n}})();Object.defineProperty(e,"__esModule",{value:!0}),e.getTypeName=c;let o=a(s8()),s=a(z(`typescript`));function c(e,t){if(o.isTypeFlagSet(t,s.TypeFlags.StringLike))return`string`;if(o.isTypeFlagSet(t,s.TypeFlags.TypeParameter)){let n=t.getSymbol()?.getDeclarations()?.[0];if(n!=null&&s.isTypeParameterDeclaration(n)&&n.constraint!=null)return c(e,e.getTypeFromTypeNode(n.constraint))}return t.isUnion()&&t.types.map(t=>c(e,t)).every(e=>e===`string`)||t.isIntersection()&&t.types.map(t=>c(e,t)).some(e=>e===`string`)?`string`:e.typeToString(t)}})),phe=/* @__PURE__ */ I(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),p8=/* @__PURE__ */ I(((e,t)=>{t.exports=function(e){t.debug=t,t.default=t,t.coerce=s,t.disable=a,t.enable=r,t.enabled=o,t.humanize=phe(),t.destroy=c,Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]};function t(e){let r,i=null,a,o;function s(...e){if(!s.enabled)return;let n=s,i=Number(/* @__PURE__ */ new Date);n.diff=i-(r||i),n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,i)=>{if(r===`%%`)return`%`;a++;let o=t.formatters[i];if(typeof o==`function`){let t=e[a];r=o.call(n,t),e.splice(a,1),a--}return r}),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>i===null?(a!==t.namespaces&&(a=t.namespaces,o=t.enabled(e)),o):i,set:e=>{i=e}}),typeof t.init==`function`&&t.init(s),s}function n(e,n){let r=t(this.namespace+(n===void 0?`:`:n)+e);return r.log=this.log,r}function r(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];let n=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of n)e[0]===`-`?t.skips.push(e.slice(1)):t.names.push(e)}function i(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function a(){let e=[...t.names,...t.skips.map(e=>`-`+e)].join(`,`);return t.enable(``),e}function o(e){for(let n of t.skips)if(i(e,n))return!1;for(let n of t.names)if(i(e,n))return!0;return!1}function s(e){return e instanceof Error?e.stack||e.message:e}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}})),mhe=/* @__PURE__ */ I(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=/* @__PURE__ */ `#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=p8()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),hhe=/* @__PURE__ */ I(((e,t)=>{t.exports=(e,t=process.argv)=>{let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}})),ghe=/* @__PURE__ */ I(((e,t)=>{let n=z(`os`),r=z(`tty`),i=hhe(),{env:a}=process,o;i(`no-color`)||i(`no-colors`)||i(`color=false`)||i(`color=never`)?o=0:(i(`color`)||i(`colors`)||i(`color=true`)||i(`color=always`))&&(o=1),`FORCE_COLOR`in a&&(o=a.FORCE_COLOR===`true`?1:a.FORCE_COLOR===`false`?0:a.FORCE_COLOR.length===0?1:Math.min(parseInt(a.FORCE_COLOR,10),3));function s(e){return e!==0&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function c(e,t){if(o===0)return 0;if(i(`color=16m`)||i(`color=full`)||i(`color=truecolor`))return 3;if(i(`color=256`))return 2;if(e&&!t&&o===void 0)return 0;let r=o||0;if(a.TERM===`dumb`)return r;if(process.platform===`win32`){let e=n.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in a)return[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`,`GITHUB_ACTIONS`,`BUILDKITE`].some(e=>e in a)||a.CI_NAME===`codeship`?1:r;if(`TEAMCITY_VERSION`in a)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION);if(a.COLORTERM===`truecolor`)return 3;if(`TERM_PROGRAM`in a){let e=parseInt((a.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(a.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||`COLORTERM`in a?1:r}function l(e){return s(c(e,e&&e.isTTY))}t.exports={supportsColor:l,stdout:s(c(!0,r.isatty(1))),stderr:s(c(!0,r.isatty(2)))}})),_he=/* @__PURE__ */ I(((e,t)=>{let n=z(`tty`),r=z(`util`);e.init=u,e.log=s,e.formatArgs=a,e.save=c,e.load=l,e.useColors=i,e.destroy=r.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let t=ghe();t&&(t.stderr||t).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function i(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:n.isatty(process.stderr.fd)}function a(e){let{namespace:n,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${n} \u001B[0m`;e[0]=a+e[0].split(`
405
+ `;if(o!=null)return{kind:`add`,fix:t.insertTextAfterRange(n6(e,o),`${d}${u}`)};if(s!=null)return{kind:`add`,fix:t.insertTextAfterRange(n6(e,s),`${d}${u}`)};let f=(a.body[0]==null?a.comments:e.sourceCode.getCommentsBefore(a.body[0])).at(-1);return f==null?{kind:`add`,fix:t.insertTextBefore(a,`${u}${d}`)}:{kind:`add`,fix:t.insertTextAfter(f,`${d}${u}`)}}function Lde(e,t,n,r){if(t.source.value!==r||e.type!==i.ImportSpecifier)return!1;let{imported:a}=e;return(a.type===i.Identifier?a.name:a.value)===n}function n6(e,t){let n=t;for(;;){let t=e.sourceCode.getTokenAfter(n,{includeComments:!0});if(t==null||t.type!==o.Line&&t.type!==o.Block||t.loc.start.line!==n.loc.end.line)break;n=t}return n.range}var Rde=Q3({meta:{type:`problem`,docs:{description:`Replaces usage of 'ReactDOM.hydrate()' with 'hydrateRoot()'.`},fixable:`code`,messages:{default:`[Deprecated] Use 'hydrateRoot()' instead.`},schema:[]},name:`no-hydrate`,create:zde});function zde(e){if(!e.sourceCode.text.includes(`hydrate`))return{};let{version:t}=bX(e);if((0,s0.compare)(t,`18.0.0`,`<`))return{};let n=MQ(e.sourceCode.ast,{source:`react-dom`});return{CallExpression(t){e6(t,n,`hydrate`)&&e.report({fix:Bde(e,t),messageId:`default`,node:t})}}}function Bde(e,t){return n=>{let[r,a]=t.arguments;if(r==null||a==null||t.arguments.length!==2||r.type===i.SpreadElement||a.type===i.SpreadElement||t.parent.type!==i.ExpressionStatement)return null;let o=t6(e,n,`hydrateRoot`,`react-dom/client`);return o.kind===`conflict`?null:[...o.kind===`add`?[o.fix]:[],n.replaceText(t,`hydrateRoot(${PZ(e,a)}, ${PZ(e,r)})`)]}}const Vde=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;e<r;e++)n=t[e](n);return n}}},Hde={pipe(){return Vde(this,arguments)}};(function(){function e(){}return e.prototype=Hde,e})();const r6=function(e,t){if(typeof e==`function`)return function(){return e(arguments)?t.apply(this,arguments):(e=>t(e,...arguments))};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}};r6(2,(e,t)=>n=>t(e(n))),r6(2,(e,t)=>n=>e(n)&&t(n)),r6(2,(e,t)=>n=>e(n)||t(n)),r6(2,(e,t)=>n=>e(n)!==t(n)),r6(2,(e,t)=>n=>e(n)===t(n)),r6(2,(e,t)=>n=>!e(n)||t(n)),r6(2,(e,t)=>n=>!e(n)&&!t(n)),r6(2,(e,t)=>n=>!e(n)||!t(n));function i6(e){return typeof e==`string`}function Ude(e){return typeof e==`function`}function Wde(e){return typeof e==`object`&&!!e||Ude(e)}r6(2,(e,t)=>Wde(e)&&t in e);function a6(e,t,n){if(e.has(t))return e.get(t);let r=n(t);return e.set(t,r),r}r6(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(i)}),r6(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(0,i)});function o6(e){let{polymorphicPropName:t}=bX(e);return{resolve(n){let r=bQ(n),a={domElementType:r,jsxElementType:r},o=n.openingElement.name;if(o.type===i.JSXIdentifier&&o.name.charAt(0)===o.name.charAt(0).toLowerCase())return a;let s=nQ(e,n,t);return i6(s)?{...a,domElementType:s.toLowerCase()}:a}}}const Gde=[`button`,`submit`,`reset`];var Kde=Q3({meta:{type:`problem`,docs:{description:`Enforces an explicit 'type' attribute for 'button' elements.`},hasSuggestions:!0,messages:{default:`Missing an explicit type attribute for button.`,suggest:`Add type attribute with value '{{ type }}'.`},schema:[]},name:`no-missing-button-type`,create:qde});function qde(e){let t=o6(e);return{JSXElement(n){let{domElementType:r}=t.resolve(n);if(r!==`button`||ZZ(n,`type`))return;let i=Gde.map(e=>({data:{type:e},fix(t){return t.insertTextAfter(n.openingElement.name,` type="${e}"`)},messageId:`suggest`}));e.report({messageId:`default`,node:n.openingElement,suggest:i})}}}function s6(e){return e.node??e.attribute}var Jde=Q3({meta:{type:`problem`,docs:{description:`Enforces an explicit 'sandbox' attribute for 'iframe' elements.`},fixable:`code`,hasSuggestions:!0,messages:{default:`Missing an explicit sandbox attribute for iframe.`,suggest:`Add sandbox attribute with value '{{ value }}'.`},schema:[]},name:`no-missing-iframe-sandbox`,create:Yde});function Yde(e){let t=o6(e);return{JSXElement(n){let{domElementType:r}=t.resolve(n);if(r!==`iframe`)return;let i=eQ(n,`sandbox`);i==null?e.report({messageId:`default`,node:n.openingElement,suggest:[{data:{value:``},fix(e){return e.insertTextAfter(n.openingElement.name,` sandbox=""`)},messageId:`suggest`}]}):i6(tQ(e,i))||e.report({messageId:`default`,node:s6(i),suggest:[{data:{value:``},fix(e){return e.replaceText(i.attribute,`sandbox=""`)},messageId:`suggest`}]})}}}var Xde=Q3({meta:{type:`problem`,docs:{description:`Disallows the return value of 'ReactDOM.render'.`},messages:{default:`Do not depend on the return value from 'ReactDOM.render'.`},schema:[]},name:`no-render-return-value`,create:Zde});function Zde(e){if(!e.sourceCode.text.includes(`render`))return{};let t=MQ(e.sourceCode.ast,{builtinNamespaces:[`ReactDOM`],source:`react-dom`});return{CallExpression(n){e6(n,t,`render`)&&$de(n)&&e.report({messageId:`default`,node:n})}}}const Qde=[i.VariableDeclarator,i.Property,i.ReturnStatement,i.ArrowFunctionExpression,i.AssignmentExpression];function $de(e){let t=e.parent;for(;Z.isTypeExpression(t);)t=t.parent;return Qde.includes(t.type)}var efe=Q3({meta:{type:`problem`,docs:{description:`Replaces usage of 'ReactDOM.render()' with 'createRoot(node).render()'.`},fixable:`code`,messages:{default:`[Deprecated] Use 'createRoot(node).render()' instead.`},schema:[]},name:`no-render`,create:tfe});function tfe(e){if(!e.sourceCode.text.includes(`render`))return{};let{version:t}=bX(e);if((0,s0.compare)(t,`18.0.0`,`<`))return{};let n=MQ(e.sourceCode.ast,{builtinNamespaces:[`ReactDOM`],source:`react-dom`});return{CallExpression(t){e6(t,n,`render`)&&e.report({fix:nfe(e,t),messageId:`default`,node:t})}}}function nfe(e,t){return n=>{let[r,a]=t.arguments;if(r==null||a==null||t.arguments.length!==2||r.type===i.SpreadElement||a.type===i.SpreadElement||t.parent.type!==i.ExpressionStatement)return null;let o=t6(e,n,`createRoot`,`react-dom/client`);return o.kind===`conflict`?null:[...o.kind===`add`?[o.fix]:[],n.replaceText(t,`createRoot(${PZ(e,a)}).render(${PZ(e,r)})`)]}}var rfe=Q3({meta:{type:`problem`,docs:{description:`Disallows 'javascript:' URLs as attribute values.`},messages:{default:"Using a `javascript:` URL is a security risk and should be avoided."},schema:[]},name:`no-script-url`,create:ife});function ife(e){return{JSXAttribute(t){if(t.value==null)return;let n=tQ(e,$Z(t));i6(n)&&iX.test(n)&&e.report({messageId:`default`,node:t.value})}}}var afe=Q3({meta:{type:`problem`,docs:{description:`Disallows the use of string style prop in JSX. Use an object instead.`},messages:{default:`Do not use string style prop. Use an object instead.`},schema:[]},name:`no-string-style-prop`,create:ofe});function ofe(e){return{JSXElement(t){if(!wQ(t))return;let n=eQ(t,`style`);n!=null&&i6(tQ(e,n))&&e.report({messageId:`default`,node:s6(n)})}}}const sfe={"accept-charset":`acceptCharset`,class:`className`,crossorigin:`crossOrigin`,for:`htmlFor`,"http-equiv":`httpEquiv`,nomodule:`noModule`},c6={"accent-height":`accentHeight`,"alignment-baseline":`alignmentBaseline`,"arabic-form":`arabicForm`,"baseline-shift":`baselineShift`,"cap-height":`capHeight`,"clip-path":`clipPath`,"clip-rule":`clipRule`,"color-interpolation":`colorInterpolation`,"color-interpolation-filters":`colorInterpolationFilters`,"color-profile":`colorProfile`,"color-rendering":`colorRendering`,"dominant-baseline":`dominantBaseline`,"enable-background":`enableBackground`,"fill-opacity":`fillOpacity`,"fill-rule":`fillRule`,"flood-color":`floodColor`,"flood-opacity":`floodOpacity`,"font-family":`fontFamily`,"font-size":`fontSize`,"font-size-adjust":`fontSizeAdjust`,"font-stretch":`fontStretch`,"font-style":`fontStyle`,"font-variant":`fontVariant`,"font-weight":`fontWeight`,"glyph-name":`glyphName`,"glyph-orientation-horizontal":`glyphOrientationHorizontal`,"glyph-orientation-vertical":`glyphOrientationVertical`,"horiz-adv-x":`horizAdvX`,"horiz-origin-x":`horizOriginX`,"image-rendering":`imageRendering`,"letter-spacing":`letterSpacing`,"lighting-color":`lightingColor`,"marker-end":`markerEnd`,"marker-mid":`markerMid`,"marker-start":`markerStart`,"overline-position":`overlinePosition`,"overline-thickness":`overlineThickness`,"paint-order":`paintOrder`,"panose-1":`panose1`,"pointer-events":`pointerEvents`,"rendering-intent":`renderingIntent`,"shape-rendering":`shapeRendering`,"stop-color":`stopColor`,"stop-opacity":`stopOpacity`,"strikethrough-position":`strikethroughPosition`,"strikethrough-thickness":`strikethroughThickness`,"stroke-dasharray":`strokeDasharray`,"stroke-dashoffset":`strokeDashoffset`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"stroke-miterlimit":`strokeMiterlimit`,"stroke-opacity":`strokeOpacity`,"stroke-width":`strokeWidth`,"text-anchor":`textAnchor`,"text-decoration":`textDecoration`,"text-rendering":`textRendering`,"underline-position":`underlinePosition`,"underline-thickness":`underlineThickness`,"unicode-bidi":`unicodeBidi`,"unicode-range":`unicodeRange`,"units-per-em":`unitsPerEm`,"v-alphabetic":`vAlphabetic`,"v-hanging":`vHanging`,"v-ideographic":`vIdeographic`,"v-mathematical":`vMathematical`,"vector-effect":`vectorEffect`,"vert-adv-y":`vertAdvY`,"vert-origin-x":`vertOriginX`,"vert-origin-y":`vertOriginY`,"word-spacing":`wordSpacing`,"writing-mode":`writingMode`,"x-height":`xHeight`,"xlink:actuate":`xlinkActuate`,"xlink:arcrole":`xlinkArcrole`,"xlink:href":`xlinkHref`,"xlink:role":`xlinkRole`,"xlink:show":`xlinkShow`,"xlink:title":`xlinkTitle`,"xlink:type":`xlinkType`,"xml:base":`xmlBase`,"xml:lang":`xmlLang`,"xml:space":`xmlSpace`},cfe={abbr:[`th`,`td`],align:[`applet`,`caption`,`col`,`colgroup`,`hr`,`iframe`,`img`,`table`,`tbody`,`td`,`tfoot`,`th`,`thead`,`tr`],allowFullScreen:[`iframe`,`video`],as:[`link`],autoPictureInPicture:[`video`],charset:[`meta`],checked:[`input`],closedby:[`dialog`],controls:[`audio`,`video`],controlsList:[`audio`,`video`],crossOrigin:[`script`,`img`,`video`,`audio`,`link`,`image`],disablePictureInPicture:[`video`],disableRemotePlayback:[`audio`,`video`],displaystyle:[`math`],download:[`a`,`area`],fill:[`altGlyph`,`circle`,`ellipse`,`g`,`line`,`marker`,`mask`,`path`,`polygon`,`polyline`,`rect`,`svg`,`symbol`,`text`,`textPath`,`tref`,`tspan`,`use`,`animate`,`animateColor`,`animateMotion`,`animateTransform`,`set`],focusable:[`svg`],imageSizes:[`link`],imageSrcSet:[`link`],loop:[`audio`,`video`],mozAllowFullScreen:[`iframe`,`video`],muted:[`audio`,`video`],noModule:[`script`],onAbort:[`audio`,`video`],onCancel:[`dialog`],onCanPlay:[`audio`,`video`],onCanPlayThrough:[`audio`,`video`],onClose:[`dialog`],onDurationChange:[`audio`,`video`],onEmptied:[`audio`,`video`],onEncrypted:[`audio`,`video`],onEnded:[`audio`,`video`],onError:[`audio`,`video`,`img`,`link`,`source`,`script`,`picture`,`iframe`],onLoad:[`script`,`img`,`link`,`picture`,`iframe`,`object`,`source`,`body`],onLoadedData:[`audio`,`video`],onLoadedMetadata:[`audio`,`video`],onLoadStart:[`audio`,`video`],onPause:[`audio`,`video`],onPlay:[`audio`,`video`],onPlaying:[`audio`,`video`],onProgress:[`audio`,`video`],onRateChange:[`audio`,`video`],onResize:[`audio`,`video`],onSeeked:[`audio`,`video`],onSeeking:[`audio`,`video`],onStalled:[`audio`,`video`],onSuspend:[`audio`,`video`],onTimeUpdate:[`audio`,`video`],onVolumeChange:[`audio`,`video`],onWaiting:[`audio`,`video`],playsInline:[`video`],poster:[`video`],preload:[`audio`,`video`],property:[`meta`],returnValue:[`dialog`],scrolling:[`iframe`],shadowrootclonable:[`template`],shadowrootdelegatesfocus:[`template`],shadowrootmode:[`template`],shadowrootserializable:[`template`],valign:[`tr`,`td`,`th`,`thead`,`tbody`,`tfoot`,`colgroup`,`col`],viewBox:[`marker`,`pattern`,`svg`,`symbol`,`view`],webkitAllowFullScreen:[`iframe`,`video`],webkitDirectory:[`input`]},lfe=/* @__PURE__ */ `dir.draggable.hidden.id.lang.nonce.part.slot.style.title.translate.inert.accept.action.allow.alt.as.async.buffered.capture.challenge.cite.code.cols.content.coords.csp.data.decoding.default.defer.disabled.form.headers.height.high.href.icon.importance.integrity.kind.label.language.loading.list.loop.low.manifest.max.media.method.min.multiple.muted.name.open.optimum.pattern.ping.placeholder.poster.preload.profile.rel.required.reversed.role.rows.sandbox.scope.seamless.selected.shape.size.sizes.span.src.start.step.summary.target.type.value.width.wmode.wrap.accumulate.additive.alphabetic.amplitude.ascent.azimuth.bbox.begin.bias.by.clip.color.cursor.cx.cy.d.decelerate.descent.direction.display.divisor.dur.dx.dy.elevation.end.exponent.fill.filter.format.from.fr.fx.fy.g1.g2.hanging.height.hreflang.ideographic.in.in2.intercept.k.k1.k2.k3.k4.kerning.local.mask.mode.offset.opacity.operator.order.orient.orientation.origin.overflow.path.ping.points.r.radius.rel.restart.result.rotate.rx.ry.scale.seed.slope.spacing.speed.stemh.stemv.string.stroke.to.transform.u1.u2.unicode.values.version.visibility.widths.x.x1.x2.xmlns.y.y1.y2.z.property.ref.key.children.results.security.controls`.split(`.`),ufe=/* @__PURE__ */ `accessKey.autoCapitalize.autoFocus.contentEditable.enterKeyHint.exportParts.inputMode.itemID.itemRef.itemProp.itemScope.itemType.spellCheck.tabIndex.acceptCharset.autoComplete.autoPlay.border.cellPadding.cellSpacing.classID.codeBase.colSpan.contextMenu.dateTime.encType.formAction.formEncType.formMethod.formNoValidate.formTarget.frameBorder.hrefLang.httpEquiv.imageSizes.imageSrcSet.isMap.keyParams.keyType.marginHeight.marginWidth.maxLength.mediaGroup.minLength.noValidate.onAnimationEnd.onAnimationIteration.onAnimationStart.onBlur.onChange.onClick.onContextMenu.onCopy.onCompositionEnd.onCompositionStart.onCompositionUpdate.onCut.onDoubleClick.onDrag.onDragEnd.onDragEnter.onDragExit.onDragLeave.onError.onFocus.onInput.onKeyDown.onKeyPress.onKeyUp.onLoad.onWheel.onDragOver.onDragStart.onDrop.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onPaste.onScroll.onScrollEnd.onSelect.onSubmit.onToggle.onTransitionEnd.radioGroup.readOnly.referrerPolicy.rowSpan.srcDoc.srcLang.srcSet.useMap.fetchPriority.crossOrigin.accentHeight.alignmentBaseline.arabicForm.attributeName.attributeType.baseFrequency.baselineShift.baseProfile.calcMode.capHeight.clipPathUnits.clipPath.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.diffuseConstant.dominantBaseline.edgeMode.enableBackground.fillOpacity.fillRule.filterRes.filterUnits.floodColor.floodOpacity.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.horizAdvX.horizOriginX.imageRendering.kernelMatrix.kernelUnitLength.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.markerEnd.markerMid.markerStart.markerHeight.markerUnits.markerWidth.maskContentUnits.maskUnits.mathematical.numOctaves.overlinePosition.overlineThickness.panose1.paintOrder.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.referrerPolicy.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.shapeRendering.specularConstant.specularExponent.spreadMethod.startOffset.stdDeviation.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textRendering.textLength.transformOrigin.underlinePosition.underlineThickness.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.vHanging.vIdeographic.vMathematical.vectorEffect.vertAdvY.vertOriginX.vertOriginY.viewBox.viewTarget.wordSpacing.writingMode.xHeight.xChannelSelector.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlnsXlink.xmlSpace.yChannelSelector.zoomAndPan.autoCorrect.autoSave.className.dangerouslySetInnerHTML.defaultValue.defaultChecked.htmlFor.onBeforeInput.onChange.onInvalid.onReset.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.suppressContentEditableWarning.suppressHydrationWarning.onAbort.onCanPlay.onCanPlayThrough.onDurationChange.onEmptied.onEncrypted.onEnded.onLoadedData.onLoadedMetadata.onLoadStart.onPause.onPlay.onPlaying.onProgress.onRateChange.onResize.onSeeked.onSeeking.onStalled.onSuspend.onTimeUpdate.onVolumeChange.onWaiting.onCopyCapture.onCutCapture.onPasteCapture.onCompositionEndCapture.onCompositionStartCapture.onCompositionUpdateCapture.onFocusCapture.onBlurCapture.onChangeCapture.onBeforeInputCapture.onInputCapture.onResetCapture.onSubmitCapture.onInvalidCapture.onLoadCapture.onErrorCapture.onKeyDownCapture.onKeyPressCapture.onKeyUpCapture.onAbortCapture.onCanPlayCapture.onCanPlayThroughCapture.onDurationChangeCapture.onEmptiedCapture.onEncryptedCapture.onEndedCapture.onLoadedDataCapture.onLoadedMetadataCapture.onLoadStartCapture.onPauseCapture.onPlayCapture.onPlayingCapture.onProgressCapture.onRateChangeCapture.onSeekedCapture.onSeekingCapture.onStalledCapture.onSuspendCapture.onTimeUpdateCapture.onVolumeChangeCapture.onWaitingCapture.onSelectCapture.onTouchCancelCapture.onTouchEndCapture.onTouchMoveCapture.onTouchStartCapture.onScrollCapture.onScrollEndCapture.onWheelCapture.onAnimationEndCapture.onAnimationIteration.onAnimationStartCapture.onTransitionEndCapture.onAuxClick.onAuxClickCapture.onClickCapture.onContextMenuCapture.onDoubleClickCapture.onDragCapture.onDragEndCapture.onDragEnterCapture.onDragExitCapture.onDragLeaveCapture.onDragOverCapture.onDragStartCapture.onDropCapture.onMouseDown.onMouseDownCapture.onMouseMoveCapture.onMouseOutCapture.onMouseOverCapture.onMouseUpCapture.autoPictureInPicture.controlsList.disablePictureInPicture.disableRemotePlayback`.split(`.`),dfe=[`charset`,`allowFullScreen`,`webkitAllowFullScreen`,`mozAllowFullScreen`,`webkitDirectory`],ffe=/* @__PURE__ */ `aria-atomic.aria-braillelabel.aria-brailleroledescription.aria-busy.aria-controls.aria-current.aria-describedby.aria-description.aria-details.aria-disabled.aria-dropeffect.aria-errormessage.aria-flowto.aria-grabbed.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-live.aria-owns.aria-relevant.aria-roledescription.aria-autocomplete.aria-checked.aria-expanded.aria-level.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-placeholder.aria-pressed.aria-readonly.aria-required.aria-selected.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.aria-activedescendant.aria-colcount.aria-colindex.aria-colindextext.aria-colspan.aria-posinset.aria-rowcount.aria-rowindex.aria-rowindextext.aria-rowspan.aria-setsize`.split(`.`),pfe=[`onGotPointerCapture`,`onGotPointerCaptureCapture`,`onLostPointerCapture`,`onLostPointerCapture`,`onLostPointerCaptureCapture`,`onPointerCancel`,`onPointerCancelCapture`,`onPointerDown`,`onPointerDownCapture`,`onPointerEnter`,`onPointerEnterCapture`,`onPointerLeave`,`onPointerLeaveCapture`,`onPointerMove`,`onPointerMoveCapture`,`onPointerOut`,`onPointerOutCapture`,`onPointerOver`,`onPointerOverCapture`,`onPointerUp`,`onPointerUpCapture`],l6=[`popover`,`popoverTarget`,`popoverTargetAction`,`onToggle`,`onBeforeToggle`],mfe={blocking:[`link`,`script`,`style`],precedence:[`link`,`style`]},hfe=[`credentialless`,`maskType`,`onFullscreenChange`,`onFullscreenChangeCapture`,`onFullscreenError`,`onFullscreenErrorCapture`],gfe={credentialless:[`iframe`]},_fe={"mask-type":`maskType`},vfe=/* @__PURE__ */ new Map;function u6(e){return a6(vfe,e,e=>[(0,s0.compare)(e,`16.1.0`,`<=`),(0,s0.compare)(e,`16.4.0`,`>=`),(0,s0.compare)(e,`19.0.0-rc.0`,`>=`),(0,s0.compare)(e,`19.3.0`,`>=`)].map(Number).join(``))}function yfe(e){let t=ufe.concat(lfe);return(0,s0.compare)(e,`16.1.0`,`<=`)?(t.push(`allowTransparency`),t):((0,s0.compare)(e,`16.4.0`,`>=`)&&t.push(...pfe),(0,s0.compare)(e,`19.0.0-rc.0`,`>=`)?t.push(...l6):t.push(...l6.map(e=>e.toLowerCase())),(0,s0.compare)(e,`19.3.0`,`>=`)&&t.push(...hfe),t)}const bfe=/* @__PURE__ */ new Map;function xfe(e){let t=cfe;return(0,s0.compare)(e,`19.0.0-rc.0`,`>=`)&&(t={...t,...mfe}),(0,s0.compare)(e,`19.3.0`,`>=`)&&(t={...t,...gfe}),t}function Sfe(e){return a6(bfe,u6(e),()=>xfe(e))}function Cfe(e){let{version:t}=bX(e);return Sfe(t)}const d6=/* @__PURE__ */ new WeakMap;function wfe(e){let t=e.parent,n=d6.get(t);if(n!=null)return n;let r=t.name.type===i.JSXIdentifier&&/^[a-z][^-]*$/.test(t.name.name)&&!t.attributes.some(qZ(`is`));return d6.set(t,r),r}function Tfe(e){return dfe.find(t=>t.toLowerCase()===e.toLowerCase())??e}function Efe(e){return!/^data-xml/i.test(e)&&/^data-[^:]*$/.test(e)}function Dfe(e){return e.toLowerCase()!==e}function Ofe(e){return ffe.some(t=>t===e)}function kfe(e){return e.parent.name.type===i.JSXIdentifier?e.parent.name.name:null}function Afe(e){return e.parent.name.type===i.JSXMemberExpression}function jfe(e,t){return Object.hasOwn(e,t)}const Mfe=/* @__PURE__ */ new Map;function Nfe(e){return a6(Mfe,u6(e),()=>{let t=(0,s0.compare)(e,`19.3.0`,`>=`)?{...c6,..._fe}:c6,n=new Map([...Object.entries(t),...Object.entries(sfe)]),r=/* @__PURE__ */ new Map;for(let t of yfe(e)){let e=t.toLowerCase();r.has(e)||r.set(e,t)}return{exact:n,lower:r}})}function Pfe(e,t){let{version:n}=bX(t),r=Nfe(n);return r.exact.get(e)??r.lower.get(e.toLowerCase())??null}var Ffe=Q3({meta:{type:`problem`,defaultOptions:[{}],docs:{description:`Disallows unknown 'DOM' properties.`},fixable:`code`,messages:{"data-lowercase-required":`React does not recognize data-* props with uppercase characters on a DOM element. Found '{{name}}', use '{{lowerCaseName}}' instead`,"invalid-prop-on-tag":`Invalid property '{{name}}' found on tag '{{tagName}}', but it is only allowed on: {{allowedTags}}`,"unknown-prop":`Unknown property '{{name}}' found`,"unknown-prop-with-standard-name":`Unknown property '{{name}}' found, use '{{standardName}}' instead`},schema:[{type:`object`,additionalProperties:!1,properties:{ignore:{type:`array`,description:`Property names to ignore.`,items:{type:`string`}},requireDataLowercase:{type:`boolean`,description:`Require lowercase names for data-* attributes.`}}}]},name:`no-unknown-property`,create:Ife});function Ife(e){let t=e.options[0]??{},n=t.ignore??[],r=t.requireDataLowercase??!1,i=null;return{JSXAttribute(t){let a=PZ(e,t.name);if(n.includes(a))return;let o=Tfe(a);if(Afe(t))return;if(Efe(o)){r&&Dfe(o)&&e.report({data:{name:a,lowerCaseName:a.toLowerCase()},messageId:`data-lowercase-required`,node:t});return}if(Ofe(o))return;let s=kfe(t);if(s===`fbt`||s===`fbs`||!wfe(t))return;let c=i??=Cfe(e),l=jfe(c,o)?c[o]:null;if(s!=null&&l!=null){l.includes(s)||e.report({data:{name:a,allowedTags:l.join(`, `),tagName:s},messageId:`invalid-prop-on-tag`,node:t});return}let u=Pfe(o,e);u==null?e.report({data:{name:a},messageId:`unknown-prop`,node:t}):u!==o&&e.report({data:{name:a,standardName:u},fix(e){return e.replaceText(t.name,u)},messageId:`unknown-prop-with-standard-name`,node:t})}}}const Lfe=[`allow-scripts`,`allow-same-origin`];var Rfe=Q3({meta:{type:`problem`,docs:{description:`Enforces that the 'sandbox' attribute for 'iframe' elements is not set to unsafe combinations.`},messages:{default:`Unsafe 'sandbox' attribute value on 'iframe' component.`},schema:[]},name:`no-unsafe-iframe-sandbox`,create:zfe});function zfe(e){let t=o6(e);return{JSXElement(n){let{domElementType:r}=t.resolve(n);if(r!==`iframe`)return;let i=eQ(n,`sandbox`);if(i==null)return;let a=tQ(e,i);if(!i6(a))return;let o=new Set(a.split(/\s+/u));Lfe.every(e=>o.has(e))&&e.report({messageId:`default`,node:s6(i)})}}}function Bfe(e){return i6(e)?e.startsWith(`https://`)||/^(?:\w+:|\/\/)/u.test(e):!1}function Vfe(e,t){return i6(e)?/\bnoreferrer\b/u.test(e)?!0:t&&/\bnoopener\b/u.test(e):!1}var Hfe=Q3({meta:{type:`problem`,defaultOptions:[{}],docs:{description:`Disallows 'target="_blank"' without 'rel="noreferrer"'.`},fixable:`code`,hasSuggestions:!0,messages:{default:`Using 'target="_blank"' on an external link without '{{rel}}' is a security risk.`,suggest:`Add '{{rel}}' to the link to prevent security risks.`},schema:[{type:`object`,additionalProperties:!1,properties:{allowReferrer:{type:`boolean`,description:`Allow 'rel="noopener"' without 'noreferrer' so referrer information is preserved.`}}}]},name:`no-unsafe-target-blank`,create:Ufe});function Ufe(e){let t=(e.options[0]??{}).allowReferrer??!1,n=o6(e),r=`rel="${t?`noopener`:`noreferrer`}"`;return{JSXElement(i){let{domElementType:a}=n.resolve(i);if(a!==`a`||nQ(e,i,`target`)!==`_blank`||!Bfe(nQ(e,i,`href`)))return;let o=eQ(i,`rel`);if(o==null){let t=i.openingElement.attributes.at(-1);e.report({messageId:`default`,data:{rel:r},node:i.openingElement,suggest:f6(r,e=>e.insertTextAfter(t??i.openingElement.name,` ${r}`))});return}let s=o.attribute;Vfe(tQ(e,o),t)||e.report({messageId:`default`,data:{rel:r},node:s,suggest:f6(r,e=>e.replaceText(s,r))})}}}function f6(e,t){return[{data:{rel:e},fix:t,messageId:`suggest`}]}var Wfe=Q3({meta:{type:`problem`,docs:{description:`Replaces usage of 'useFormState' with 'useActionState'.`},fixable:`code`,messages:{default:`[Deprecated] Use 'useActionState' from 'react' package instead.`},schema:[]},name:`no-use-form-state`,create:Gfe});function Gfe(e){if(!e.sourceCode.text.includes(`useFormState`))return{};let{importSource:t,version:n}=bX(e);if((0,s0.compare)(n,`19.0.0`,`<`))return{};let r=MQ(e.sourceCode.ast,{source:`react-dom`});return{CallExpression(n){e6(n,r,`useFormState`)&&e.report({fix:Kfe(e,n,t),messageId:`default`,node:n})}}}function Kfe(e,t,n){return r=>{let i=t6(e,r,`useActionState`,n);return i.kind===`conflict`?null:[...i.kind===`add`?[i.fix]:[],r.replaceText(t.callee,`useActionState`)]}}const qfe=/* @__PURE__ */ new Set([`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`keygen`,`link`,`menuitem`,`meta`,`param`,`source`,`track`,`wbr`]);var Jfe=Q3({meta:{type:`problem`,docs:{description:`Disallows 'children' in void DOM elements.`},messages:{default:`'{{elementType}}' is a void element tag and must not have children.`},schema:[]},name:`no-void-elements-with-children`,create:Yfe});function Yfe(e){let t=o6(e);return{JSXElement(n){let{domElementType:r}=t.resolve(n);qfe.has(r)&&(n.children.some($3)||QZ(n,[`children`,`dangerouslySetInnerHTML`]))&&e.report({data:{elementType:r},messageId:`default`,node:n})}}}const p6={meta:{name:Ede,version:Dde},rules:{"no-dangerously-set-innerhtml":jde,"no-dangerously-set-innerhtml-with-children":kde,"no-find-dom-node":Nde,"no-flush-sync":Fde,"no-hydrate":Rde,"no-missing-button-type":Kde,"no-missing-iframe-sandbox":Jde,"no-render":efe,"no-render-return-value":Xde,"no-script-url":rfe,"no-string-style-prop":afe,"no-unknown-property":Ffe,"no-unsafe-iframe-sandbox":Rfe,"no-unsafe-target-blank":Hfe,"no-use-form-state":Wfe,"no-void-elements-with-children":Jfe}};var Xfe=/* @__PURE__ */ Z3({name:()=>Zfe,plugins:()=>h6,rules:()=>m6,settings:()=>g6});const Zfe=`react-dom/recommended`,m6={"react-dom/no-dangerously-set-innerhtml":`warn`,"react-dom/no-dangerously-set-innerhtml-with-children":`error`,"react-dom/no-find-dom-node":`error`,"react-dom/no-flush-sync":`error`,"react-dom/no-hydrate":`error`,"react-dom/no-render":`error`,"react-dom/no-render-return-value":`error`,"react-dom/no-script-url":`warn`,"react-dom/no-unsafe-iframe-sandbox":`warn`,"react-dom/no-use-form-state":`error`,"react-dom/no-void-elements-with-children":`error`},h6={"react-dom":p6},g6={"react-x":mX};var Qfe=/* @__PURE__ */ Z3({name:()=>$fe,plugins:()=>tpe,rules:()=>epe,settings:()=>npe});const $fe=`react-dom/strict`,epe={...m6,"react-dom/no-missing-button-type":`warn`,"react-dom/no-missing-iframe-sandbox":`warn`,"react-dom/no-unsafe-target-blank":`warn`},tpe={...h6},npe={...g6};function _6(e){return{...e,plugins:{...e.plugins,get"react-dom"(){return v6}}}}const v6={...p6,configs:{recommended:_6(Xfe),strict:_6(Qfe)}};var y6=Object.defineProperty,rpe=(e,t)=>{let n=Object.setPrototypeOf({},null);for(var r in e)y6(n,r,{get:e[r],enumerable:!0});return t&1||y6(n,Symbol.toStringTag,{value:`Module`}),t&2?n:Object.preventExtensions(n)},ipe=`eslint-plugin-react-web-api`,ape=`5.30.6`;function ope(e){return`https://eslint-react.xyz/docs/rules/web-api-${e}`}const b6=xX.RuleCreator(ope),spe=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;e<r;e++)n=t[e](n);return n}}},cpe={pipe(){return spe(this,arguments)}};(function(){function e(){}return e.prototype=cpe,e})();const x6=function(e,t){if(typeof e==`function`)return function(){return e(arguments)?t.apply(this,arguments):(e=>t(e,...arguments))};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}};x6(2,(e,t)=>n=>t(e(n)));const S6=x6(2,(e,t)=>n=>e(n)&&t(n)),C6=x6(2,(e,t)=>n=>e(n)||t(n));x6(2,(e,t)=>n=>e(n)!==t(n)),x6(2,(e,t)=>n=>e(n)===t(n)),x6(2,(e,t)=>n=>!e(n)||t(n)),x6(2,(e,t)=>n=>!e(n)&&!t(n)),x6(2,(e,t)=>n=>!e(n)||!t(n));function lpe(e){return typeof e==`function`}function upe(e){return typeof e==`object`&&!!e||lpe(e)}x6(2,(e,t)=>upe(e)&&t in e);function dpe(e,t,n){if(e.has(t))return e.get(t);let r=n(t);return e.set(t,r),r}x6(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(i)}),x6(2,(e,t)=>{let n=Array.isArray(e)?e:Array.from(e),r=n.length,i=0;for(;i<r&&t(n[i],i);)i++;return n.slice(0,i)});const fpe=C6(O1,k1);function ppe(e){let t=uZ.findParent(e,fpe);if(t==null)return null;let n=O1(t)?`setup`:`cleanup`,r=n===`setup`?t:uZ.findParent(t,Z.isFunction);return{effect:r==null?null:Q.unwrap(r).parent??null,phase:n}}function mpe(e){let t=Q.getCalleeName(e);return t!=null&&tW(vW.union(`addEventListener`,`removeEventListener`))(t)?t:`other`}function w6(e){return Z.isIdentifier(e)&&(e.name===`window`||e.name===`globalThis`||e.name===`self`)}function hpe(e,t,n=cZ.isEqual){switch(!0){case e.type===i.MemberExpression&&t.type===i.MemberExpression:return n(e.object,t.object);case e.type===i.MemberExpression:return w6(e.object);case t.type===i.MemberExpression:return w6(t.object);default:return!0}}function gpe(){let e={calls:[]};return{facts:e,visitor:{CallExpression(t){let n=ppe(t);n!=null&&e.calls.push({callee:Q.unwrap(t.callee),effect:n.effect,enclosingFunction:uZ.findParent(t,Z.isFunction),kind:mpe(t),node:t,phase:n.phase})}}}}function T6(e){let t=Q.unwrap(e.property);return e.computed?t.type===i.Literal&&typeof t.value==`string`?t.value:t.type===i.TemplateLiteral&&t.expressions.length===0?t.quasis[0]?.value.cooked??t.quasis[0]?.value.raw??null:null:Z.isIdentifier(t)?t.name:null}function E6(e,t,n=cZ.isEqual){let r=Q.unwrap(e),a=Q.unwrap(t);if(r.type!==i.MemberExpression||a.type!==i.MemberExpression||r.optional!==a.optional)return n(r,a);let o=T6(r),s=T6(a);return o==null||s==null||o!==s?n(r,a):E6(r.object,a.object,n)}function _pe({context:e,addEntry:t,remEntry:n,cleanupCalleeEntries:r}){let{type:a,callee:o,capture:s,effect:c,listener:l,phase:u}=t,{type:d,callee:f,capture:p,effect:m,listener:h,phase:g}=n;if(u!==`setup`||!hpe(o,f,E6)||!E6(l,h)||!E6(a,d,(t,n)=>zQ(e,t,n))||s!==p)return!1;if(g===`cleanup`)return!0;if(c==null||c!==m)return!1;let _=n.enclosingFunction;if(_==null)return!1;let v=r.get(c);if(v==null)return!1;let{functions:y,names:b}=v;if(y.has(_))return!0;let x=Q$(_);return x==null||x.type!==i.Identifier?!1:b.has(x.name)}function vpe(e,t){let n=[],r=[],a=[];for(let e of t.entries)e.signal==null&&Z.isFunction(e.listener)&&n.push({kind:`unexpected-inline-function`,data:{eventMethodKind:e.kind},node:e.listener}),e.kind===`addEventListener`?r.push(e):a.push(e);for(let o of r){if(o.signal!=null||a.some(n=>_pe({context:e,addEntry:o,remEntry:n,cleanupCalleeEntries:t.cleanupCalleeEntries})))continue;let r=o.effect,s=r!=null&&r.type===i.CallExpression?Q.getCalleeName(r)??`useEffect`:`useEffect`;n.push({kind:`expected-remove-event-listener-in-cleanup`,data:{effectMethodKind:s},node:o.node})}return n.toSorted((e,t)=>e.node.range[0]-t.node.range[0]||e.node.range[1]-t.node.range[1])}function ype({context:e,node:t}){let n=Q.unwrap(t.callee);if(n.type===i.Identifier){let t=KQ(e,n,{at:-1}),r=t==null?null:Q.unwrap(t);return r!=null&&Z.isFunction(r)?{kind:`function`,node:r}:{kind:`name`,name:n.name}}if(n.type!==i.MemberExpression||n.computed)return null;let r=Q.unwrap(n.object),a=Q.unwrap(n.property);if(r.type!==i.Identifier||a.type!==i.Identifier)return null;let o=KQ(e,r,{at:-1}),s=o==null?null:Q.unwrap(o);if(s?.type!==i.ObjectExpression)return null;for(let e of s.properties){if(e.type!==i.Property||e.computed)continue;let t=Q.unwrap(e.key);if(Z.isIdentifier(t)?t.name!==a.name:t.value!==a.name)continue;let n=Q.unwrap(e.value);if(Z.isFunction(n))return{kind:`function`,node:n}}return null}const D6={capture:!1,signal:null};function bpe(e,t){let n=(0,wX.findVariable)(e.sourceCode.getScope(t),t)?.defs.at(-1)?.node;if(n?.type!==i.VariableDeclarator||n.id.type!==i.ObjectPattern)return!1;for(let e of n.id.properties){if(e.type!==i.Property||e.computed)continue;let n=Q.unwrap(e.key);if(n.type!==i.Identifier||n.name!==`signal`)continue;let r=Q.unwrap(e.value);return r.type===i.Identifier&&r.name===t.name}return!1}function xpe(e){if(e?.type!==i.NewExpression)return!1;let t=Q.unwrap(e.callee);return t.type===i.Identifier&&t.name===`AbortController`}function Spe({context:e,node:t}){let n=/* @__PURE__ */ new Set;function r(t){if(t==null||n.has(t))return null;switch(n.add(t),t.type){case i.Identifier:{let n=$Q(e,t),a=n==null?null:Q.unwrap(n);return a!=null&&Z.isFunction(a)||a!=null&&bpe(e,t)&&xpe(a.type===i.Identifier?e$(e,a):a)?t:r(a)}case i.MemberExpression:return t;default:return null}}return r(t)}function Cpe({context:e,node:t}){function n(t){switch(t.type){case i.Identifier:{let r=KQ(e,t);return r?.type===i.ObjectExpression?n(r):D6}case i.Literal:return{...D6,capture:!!t.value};case i.ObjectExpression:{let n=(e,t)=>{for(let r of e){if(r.type===i.Property){let e=Q.unwrap(r.key);if((!r.computed&&Z.isIdentifier(e)?e.name:e.type===i.Literal&&typeof e.value==`string`?e.value:e.type===i.TemplateLiteral&&e.expressions.length===0?e.quasis[0]?.value.cooked??e.quasis[0]?.value.raw??null:null)===t)return r}if(r.type===i.SpreadElement&&r.argument.type===i.ObjectExpression){let e=n(r.argument.properties,t);if(e!=null)return e}}return null},r=bW(n(t.properties,`capture`)).with(vW.nullish,()=>!1).with({type:i.Property},n=>{let r=n.value;switch(r.type){case i.Literal:return!!r.value;default:return!!(0,wX.getStaticValue)(r,e.sourceCode.getScope(t))?.value}}).otherwise(()=>!1),a=n(t.properties,`signal`);return{capture:r,signal:a?.type===i.Property?Spe({context:e,node:a.value}):null}}default:return D6}}return n(t)}function wpe({context:e,node:t}){let[n,r,i]=t.arguments;return n==null||r==null?null:{type:n,listener:r,options:i==null?D6:Cpe({context:e,node:i})}}function Tpe(e,t){return t.type===i.MemberExpression&&Z.isIdentifier(t.object)&&GQ(t.object.name,e.sourceCode.getScope(t))}function Epe(e,t){let n=[],r=/* @__PURE__ */ new Map;for(let i of t.calls){let{callee:t,effect:a,enclosingFunction:o,kind:s,node:c,phase:l}=i;if(s===`other`){if(l!==`cleanup`||a==null)continue;let t=ype({context:e,node:c});if(t==null)continue;let{functions:n,names:i}=dpe(r,a,()=>({functions:/* @__PURE__ */ new Set,names:/* @__PURE__ */ new Set}));t.kind===`function`?n.add(t.node):i.add(t.name);continue}if(s===`addEventListener`&&Tpe(e,t))continue;let u=wpe({context:e,node:c});u!=null&&n.push({type:u.type,callee:t,capture:u.options.capture,effect:a,enclosingFunction:o,kind:s,listener:u.listener,node:c,phase:l,signal:u.options.signal})}return{entries:n,cleanupCalleeEntries:r}}var Dpe=b6({meta:{type:`problem`,docs:{description:`Enforces that every 'addEventListener' in a component or custom hook has a corresponding 'removeEventListener'.`},messages:{"unexpected-inline-function":`A/an '{{eventMethodKind}}' should not have an inline listener function.`,"expected-remove-event-listener-in-cleanup":`An 'addEventListener' in '{{effectMethodKind}}' should have a corresponding 'removeEventListener' in its cleanup function.`},schema:[]},name:`no-leaked-event-listener`,create:Ope});function Ope(e){if(!e.sourceCode.text.includes(`addEventListener`)||!/use\w*Effect/u.test(e.sourceCode.text))return{};let{facts:t,visitor:n}=gpe();return LZ(n,{"Program:exit"(){let n=Epe(e,t);for(let t of vpe(e,n))e.report({data:t.data,messageId:t.kind,node:t.node})}})}function kpe(e,t){switch(t=Q.unwrap(t),t.type){case i.ObjectExpression:return t;case i.Identifier:{let n=KQ(e,t);return n=n==null?null:Q.unwrap(n),n?.type===i.ObjectExpression?n:null}default:return null}}function Ape(e){return Z.isIdentifier(e)&&(e.name===`window`||e.name===`globalThis`||e.name===`self`)}function jpe(e,t){switch(t.type){case i.FunctionDeclaration:case i.ArrowFunctionExpression:return t.params.some(t=>k6(e,t));case i.FunctionExpression:return t.id?.name===e||t.params.some(t=>k6(e,t));case i.CatchClause:return t.param!=null&&k6(e,t.param);case i.BlockStatement:case i.Program:case i.StaticBlock:return t.body.some(t=>O6(e,t));case i.ForStatement:return t.init?.type===i.VariableDeclaration&&O6(e,t.init);case i.ForInStatement:case i.ForOfStatement:return t.left.type===i.VariableDeclaration&&O6(e,t.left);default:return!1}}function O6(e,t){switch(t.type){case i.FunctionDeclaration:case i.ClassDeclaration:return t.id?.name===e;case i.VariableDeclaration:return t.declarations.some(t=>k6(e,t.id));case i.ImportDeclaration:return t.specifiers.some(t=>t.local.name===e);case i.ExportNamedDeclaration:return t.declaration!=null&&O6(e,t.declaration);case i.ExportDefaultDeclaration:return(t.declaration.type===i.FunctionDeclaration||t.declaration.type===i.ClassDeclaration)&&t.declaration.id?.name===e;case i.TSImportEqualsDeclaration:case i.TSEnumDeclaration:return t.id.name===e;case i.TSModuleDeclaration:return t.id.type===i.Identifier&&t.id.name===e;default:return!1}}function k6(e,t){switch(t.type){case i.Identifier:return t.name===e;case i.ArrayPattern:return t.elements.some(t=>t!=null&&k6(e,t));case i.ObjectPattern:return t.properties.some(t=>t.type===i.RestElement?k6(e,t.argument):k6(e,t.value));case i.AssignmentPattern:return k6(e,t.left);case i.RestElement:return k6(e,t.argument);case i.TSParameterProperty:return k6(e,t.parameter);default:return!1}}var Mpe=b6({meta:{type:`problem`,docs:{description:`Enforces that every 'fetch' in a component or custom hook has a corresponding 'AbortController' abort in the cleanup function.`},messages:{"expected-abort-controller":`A 'fetch' must be provided with an 'AbortController' for proper cleanup.`,"expected-abort-in-cleanup":`A 'fetch' started in effect must be aborted with 'AbortController.abort' in the cleanup function.`},schema:[]},name:`no-leaked-fetch`,create:Npe});function Npe(e){if(!e.sourceCode.text.includes(`fetch`)||!/use\w*Effect/u.test(e.sourceCode.text))return{};let t=[],n=[];return{CallExpression(r){bW(Fpe(r)).with(`fetch`,()=>{let n=uZ.findParent(r,Z.isFunction);if(n==null||!O1(n))return;let{controller:i,isParamSignal:a}=Ipe(e,r);t.push({controller:i,isParamSignal:a,node:r})}).with(`abort`,()=>{let e=uZ.findParent(r,Ppe);if(e==null||!k1(e))return;let t=Lpe(r);t!=null&&n.push({controller:t,node:r})}).otherwise(()=>null)},"Program:exit"(){for(let r of t){let t=r.controller;t==null?e.report({messageId:`expected-abort-controller`,node:r.node}):r.isParamSignal||n.some(n=>BQ(e,n.controller,t))||e.report({messageId:`expected-abort-in-cleanup`,node:r.node})}}}}const Ppe=C6(O1,k1);function Fpe(e){let t=Q.unwrap(e.callee);switch(!0){case Z.isIdentifier(t,`fetch`)&&!uZ.hasParent(e,e=>jpe(`fetch`,e)):case t.type===i.MemberExpression&&!t.computed&&Z.isIdentifier(t.property,`fetch`)&&Ape(Q.unwrap(t.object)):return`fetch`;case Q.getCalleeName(e)===`abort`:return`abort`;default:return`other`}}function Ipe(e,t){let[,n]=t.arguments;if(n==null)return{controller:null,isParamSignal:!1};let r=kpe(e,n);if(r==null)return{controller:null,isParamSignal:!1};let a=j6(r.properties);return a?.type===i.Property?A6(e,a.value):{controller:null,isParamSignal:!1}}function A6(e,t,n=/* @__PURE__ */ new Set){switch(t=Q.unwrap(t),t.type){case i.MemberExpression:return{controller:t.object,isParamSignal:!1};case i.Identifier:{if(n.has(t))return{controller:null,isParamSignal:!1};n.add(t);let r=$Q(e,t),a=r==null?null:Q.unwrap(r);return a?.type===i.MemberExpression?{controller:a.object,isParamSignal:!1}:r!=null&&Z.isFunction(r)?{controller:t,isParamSignal:!0}:a==null?{controller:null,isParamSignal:!1}:A6(e,a,n)}default:return{controller:null,isParamSignal:!1}}}function j6(e){for(let t of e){if(t.type===i.Property){let e=Q.unwrap(t.key);if((!t.computed&&Z.isIdentifier(e)?e.name:e.type===i.Literal&&typeof e.value==`string`?e.value:e.type===i.TemplateLiteral&&e.expressions.length===0?e.quasis[0]?.value.cooked??e.quasis[0]?.value.raw??null:null)===`signal`)return t}if(t.type===i.SpreadElement&&t.argument.type===i.ObjectExpression){let e=j6(t.argument.properties);if(e!=null)return e}}return null}function Lpe(e){let t=Q.unwrap(e.callee);return t.type===i.MemberExpression?t.object:null}function M6(e,t){if(e?.type!==i.NewExpression)return!1;let n=Q.unwrap(e.callee);return Z.isIdentifier(n,t)}function N6(e,t,n){switch(!0){case Z.isIdentifier(t):{let r=KQ(e,t),a=r==null?null:Q.unwrap(r);if(a==null)return!1;if(M6(a,n))return!0;if(a.type===i.CallExpression&&T1(a)){let e=a.arguments.at(0);return e!=null&&M6(Q.unwrap(e),n)}return a.type===i.MemberExpression&&N6(e,a,n)}case t.type===i.MemberExpression:return N6(e,t.object,n);default:return!1}}function Rpe(e,t,n){let r=Z.isTypeExpression(t)?Q.unwrap(t):t;if(Z.isIdentifier(r)){let t=KQ(e,r);t!=null&&(r=Q.unwrap(t))}return r.type===i.MemberExpression&&!r.computed&&Z.isIdentifier(Q.unwrap(r.property),`current`)&&BQ(e,r.object,n)}const P6=C6(O1,k1);function zpe(e,t){let n=Q.unwrap(t.callee);if(n.type!==i.MemberExpression)return`other`;let r=Q.getCalleeName(t);return r==null||!tW(vW.union(`observe`,`unobserve`,`disconnect`))(r)||!N6(e,n,`IntersectionObserver`)?`other`:r}function Bpe(e){let t=e,n=e.parent;for(;Z.isTypeExpression(n);)t=n,n=n.parent;return n.type===i.CallExpression&&n.arguments.at(0)===t&&T1(n)}function F6(e,t,n){let r=(0,wX.findVariable)(e.sourceCode.getScope(t),n)?.defs.at(-1)?.node,a=r==null?null:r.type===i.FunctionDeclaration?r:r.type===i.VariableDeclarator&&r.init!=null?Q.unwrap(r.init):null;return a!=null&&Z.isFunction(a)?a:null}var Vpe=b6({meta:{type:`problem`,docs:{description:`Enforces that every 'IntersectionObserver' created in a component or custom hook has a corresponding 'IntersectionObserver.disconnect()'.`},messages:{"unexpected-floating-instance":`An 'IntersectionObserver' instance created in component or custom hook must be assigned to a variable for proper cleanup.`,"expected-disconnect-in-control-flow":`Dynamically added 'IntersectionObserver.observe' should be cleared all at once using 'IntersectionObserver.disconnect' in the cleanup function.`,"expected-disconnect-or-unobserve-in-cleanup":`An 'IntersectionObserver' instance created in 'useEffect' must be disconnected in the cleanup function.`},schema:[]},name:`no-leaked-intersection-observer`,create:Hpe});function Hpe(e){if(!e.sourceCode.text.includes(`IntersectionObserver`))return{};let t=[],n=[],r=[],a=[],o=/* @__PURE__ */ new Set,s=/* @__PURE__ */ new Set;function c(e){if(uZ.hasParent(e,k1))return!0;for(let t of[...o,...s])if(uZ.hasParent(e,e=>e===t))return!0;return!1}return{CallExpression(t){let o=uZ.findParent(t,P6);if(o==null)return;let c=Q.unwrap(t.callee);if(c.type===i.Identifier){if(k1(o)){let n=F6(e,t,c);n!=null&&s.add(n)}return}if(c.type!==i.MemberExpression)return;let{object:l}=c;bW(zpe(e,t)).with(`disconnect`,()=>{a.push({method:`disconnect`,node:t,observer:l})}).with(`observe`,()=>{let[e]=t.arguments;e!=null&&n.push({element:e,method:`observe`,node:t,observer:l})}).with(`unobserve`,()=>{let[e]=t.arguments;e!=null&&r.push({element:e,method:`unobserve`,node:t,observer:l})}).otherwise(()=>null)},NewExpression(n){if(!M6(n,`IntersectionObserver`))return;let r=uZ.findParent(n,S6(Z.isFunction,P6));if(r==null&&!Bpe(n))return;let i=YQ(n);i==null?e.report({messageId:`unexpected-floating-instance`,node:n}):t.push({id:i,node:n,phaseNode:r})},ReturnStatement(t){let n=t.argument==null?null:Q.unwrap(t.argument);if(n==null||n.type!==i.Identifier)return;let r=uZ.findParent(t,Z.isFunction);if(r==null||!O1(r))return;let a=F6(e,t,n);a!=null&&o.add(a)},"Program:exit"(){for(let{id:i,node:o,phaseNode:s}of t){let t=s==null?t=>Rpe(e,t,i):t=>BQ(e,t,i),l=e=>uZ.hasParent(e,e=>e===o);if(a.some(e=>!l(e.node)&&c(e.node)&&t(e.observer)))continue;let u=n.filter(e=>t(e.observer)),d=r.filter(e=>t(e.observer)),f=C6(Z.isCallExpression,Z.isConditionalOrLoop);if(u.some(e=>{let t=s??uZ.findParent(e.node,P6),n=e=>e===t;return!n(uZ.findParent(e.node,C6(f,n)))}))e.report({messageId:`expected-disconnect-in-control-flow`,node:o});else for(let t of u)d.some(n=>!l(n.node)&&c(n.node)&&BQ(e,n.element,t.element))||e.report({messageId:`expected-disconnect-or-unobserve-in-cleanup`,node:t.node})}}}}const Upe=C6(O1,k1);function Wpe(e){let t=Q.getCalleeName(e);return t!=null&&tW(vW.union(`setInterval`,`clearInterval`))(t)?t:`other`}function I6(e){let t=uZ.findParent(Q.unwrap(e),e=>!Z.isTypeOrChainExpression(e));return t?.type===i.CallExpression?Q.getCalleeName(t)??`useEffect`:`useEffect`}var Gpe=b6({meta:{type:`problem`,docs:{description:`Enforces that every 'setInterval' in a component or custom hook has a corresponding 'clearInterval'.`},messages:{"expected-interval-id":`A 'setInterval' must be assigned to a variable for proper cleanup.`,"expected-clear-interval-in-cleanup":`A 'setInterval' created in '{{ kind }}' must be cleared with 'clearInterval' in the cleanup function.`},schema:[]},name:`no-leaked-interval`,create:Kpe});function Kpe(e){if(!e.sourceCode.text.includes(`setInterval`))return{};let t=[],n=[];function r(t,n){return BQ(e,t.timerId,n.timerId)}return{CallExpression(r){let i=uZ.findParent(r,Upe);i!=null&&bW(Wpe(r)).with(`setInterval`,()=>{let n=YQ(r);n==null?e.report({messageId:`expected-interval-id`,node:r}):t.push({effectKind:I6(i),node:r,timerId:n})}).with(`clearInterval`,()=>{let[e]=r.arguments;e!=null&&n.push({effectKind:I6(i),node:r,timerId:e})}).otherwise(()=>null)},"Program:exit"(){for(let i of t)n.some(e=>r(i,e))||e.report({data:{kind:i.effectKind},messageId:`expected-clear-interval-in-cleanup`,node:i.node})}}}function L6(e,t){if(e?.type!==i.NewExpression)return!1;let n=Q.unwrap(e.callee);return Z.isIdentifier(n,t)}function R6(e,t,n){switch(!0){case Z.isIdentifier(t):{let r=KQ(e,t),a=r==null?null:Q.unwrap(r);if(a==null)return!1;if(L6(a,n))return!0;if(a.type===i.CallExpression&&T1(a)){let e=a.arguments.at(0);return e!=null&&L6(Q.unwrap(e),n)}return a.type===i.MemberExpression&&R6(e,a,n)}case t.type===i.MemberExpression:return R6(e,t.object,n);default:return!1}}function qpe(e,t,n){let r=Z.isTypeExpression(t)?Q.unwrap(t):t;if(Z.isIdentifier(r)){let t=KQ(e,r);t!=null&&(r=Q.unwrap(t))}return r.type===i.MemberExpression&&!r.computed&&Z.isIdentifier(Q.unwrap(r.property),`current`)&&BQ(e,r.object,n)}const z6=C6(O1,k1);function Jpe(e,t){let n=Q.unwrap(t.callee);if(n.type!==i.MemberExpression)return`other`;let r=Q.getCalleeName(t);return r==null||!tW(vW.union(`observe`,`unobserve`,`disconnect`))(r)||!R6(e,n,`ResizeObserver`)?`other`:r}function Ype(e){let t=e,n=e.parent;for(;Z.isTypeExpression(n);)t=n,n=n.parent;return n.type===i.CallExpression&&n.arguments.at(0)===t&&T1(n)}function B6(e,t,n){let r=(0,wX.findVariable)(e.sourceCode.getScope(t),n)?.defs.at(-1)?.node,a=r==null?null:r.type===i.FunctionDeclaration?r:r.type===i.VariableDeclarator&&r.init!=null?Q.unwrap(r.init):null;return a!=null&&Z.isFunction(a)?a:null}var Xpe=b6({meta:{type:`problem`,docs:{description:`Enforces that every 'ResizeObserver' created in a component or custom hook has a corresponding 'ResizeObserver.disconnect()'.`},messages:{"unexpected-floating-instance":`A 'ResizeObserver' instance created in component or custom hook must be assigned to a variable for proper cleanup.`,"expected-disconnect-in-control-flow":`Dynamically added 'ResizeObserver.observe' should be cleared all at once using 'ResizeObserver.disconnect' in the cleanup function.`,"expected-disconnect-or-unobserve-in-cleanup":`A 'ResizeObserver' instance created in 'useEffect' must be disconnected in the cleanup function.`},schema:[]},name:`no-leaked-resize-observer`,create:Zpe});function Zpe(e){if(!e.sourceCode.text.includes(`ResizeObserver`))return{};let t=[],n=[],r=[],a=[],o=/* @__PURE__ */ new Set,s=/* @__PURE__ */ new Set;function c(e){if(uZ.hasParent(e,k1))return!0;for(let t of[...o,...s])if(uZ.hasParent(e,e=>e===t))return!0;return!1}return{CallExpression(t){let o=uZ.findParent(t,z6);if(o==null)return;let c=Q.unwrap(t.callee);if(c.type===i.Identifier){if(k1(o)){let n=B6(e,t,c);n!=null&&s.add(n)}return}if(c.type!==i.MemberExpression)return;let{object:l}=c;bW(Jpe(e,t)).with(`disconnect`,()=>{a.push({method:`disconnect`,node:t,observer:l})}).with(`observe`,()=>{let[e]=t.arguments;e!=null&&n.push({element:e,method:`observe`,node:t,observer:l})}).with(`unobserve`,()=>{let[e]=t.arguments;e!=null&&r.push({element:e,method:`unobserve`,node:t,observer:l})}).otherwise(()=>null)},NewExpression(n){if(!L6(n,`ResizeObserver`))return;let r=uZ.findParent(n,S6(Z.isFunction,z6));if(r==null&&!Ype(n))return;let i=YQ(n);i==null?e.report({messageId:`unexpected-floating-instance`,node:n}):t.push({id:i,node:n,phaseNode:r})},ReturnStatement(t){let n=t.argument==null?null:Q.unwrap(t.argument);if(n==null||n.type!==i.Identifier)return;let r=uZ.findParent(t,Z.isFunction);if(r==null||!O1(r))return;let a=B6(e,t,n);a!=null&&o.add(a)},"Program:exit"(){for(let{id:o,node:s,phaseNode:l}of t){let t=l==null?t=>qpe(e,t,o):t=>BQ(e,t,o),u=e=>uZ.hasParent(e,e=>e===s);if(a.some(e=>!u(e.node)&&c(e.node)&&t(e.observer)))continue;let d=n.filter(e=>t(e.observer)),f=r.filter(e=>t(e.observer)),p=e=>e?.type===i.CallExpression||Z.isConditionalOrLoop(e);if(d.some(e=>{let t=l??uZ.findParent(e.node,z6),n=e=>e===t;return!n(uZ.findParent(e.node,C6(p,n)))}))e.report({messageId:`expected-disconnect-in-control-flow`,node:s});else for(let t of d)f.some(n=>!u(n.node)&&c(n.node)&&BQ(e,n.element,t.element))||e.report({messageId:`expected-disconnect-or-unobserve-in-cleanup`,node:t.node})}}}}const Qpe=C6(O1,k1);function $pe(e){let t=Q.getCalleeName(e);return t!=null&&tW(vW.union(`setTimeout`,`clearTimeout`))(t)?t:`other`}function V6(e){let t=uZ.findParent(Q.unwrap(e),e=>!Z.isTypeOrChainExpression(e));return t?.type===i.CallExpression?Q.getCalleeName(t)??`useEffect`:`useEffect`}var eme=b6({meta:{type:`problem`,docs:{description:`Enforces that every 'setTimeout' in a component or custom hook has a corresponding 'clearTimeout'.`},messages:{"expected-timeout-id":`A 'setTimeout' must be assigned to a variable for proper cleanup.`,"expected-clear-timeout-in-cleanup":`A 'setTimeout' created in '{{ kind }}' must be cleared with 'clearTimeout' in the cleanup function.`},schema:[]},name:`no-leaked-timeout`,create:tme});function tme(e){if(!e.sourceCode.text.includes(`setTimeout`))return{};let t=[],n=[];function r(t,n){return BQ(e,t.timerId,n.timerId)}return{CallExpression(r){let i=uZ.findParent(r,Qpe);i!=null&&bW($pe(r)).with(`setTimeout`,()=>{let n=YQ(r);n==null?e.report({messageId:`expected-timeout-id`,node:r}):t.push({effectKind:V6(i),node:r,timerId:n})}).with(`clearTimeout`,()=>{let[e]=r.arguments;e!=null&&n.push({effectKind:V6(i),node:r,timerId:e})}).otherwise(()=>null)},"Program:exit"(){for(let i of t)n.some(e=>r(i,e))||e.report({data:{kind:i.effectKind},messageId:`expected-clear-timeout-in-cleanup`,node:i.node})}}}const H6={meta:{name:ipe,version:ape},rules:{"no-leaked-event-listener":Dpe,"no-leaked-fetch":Mpe,"no-leaked-intersection-observer":Vpe,"no-leaked-interval":Gpe,"no-leaked-resize-observer":Xpe,"no-leaked-timeout":eme}};var nme=/* @__PURE__ */ rpe({name:()=>rme,plugins:()=>ame,rules:()=>ime,settings:()=>ome});const rme=`react-web-api/recommended`,ime={"react-web-api/no-leaked-event-listener":`warn`,"react-web-api/no-leaked-fetch":`warn`,"react-web-api/no-leaked-intersection-observer":`warn`,"react-web-api/no-leaked-interval":`warn`,"react-web-api/no-leaked-resize-observer":`warn`,"react-web-api/no-leaked-timeout":`warn`},ame={"react-web-api":H6},ome={"react-x":mX};function sme(e){return{...e,plugins:{...e.plugins,get"react-web-api"(){return U6}}}}const U6={...H6,configs:{recommended:sme(nme)}};var W6=Object.defineProperty,cme=(e,t)=>{let n=Object.setPrototypeOf({},null);for(var r in e)W6(n,r,{get:e[r],enumerable:!0});return t&1||W6(n,Symbol.toStringTag,{value:`Module`}),t&2?n:Object.preventExtensions(n)},lme=`eslint-plugin-react-naming-convention`,ume=`5.30.6`;function dme(e){return`https://eslint-react.xyz/docs/rules/naming-convention-${e}`}const G6=xX.RuleCreator(dme);function K6(e){return q6(e,null)}function q6(e,t){let n=e.parent;if(n==null)return null;if(n.type===i.Property){if(n.value!==e)return null;let r=J6(n.key,n.computed);return r==null?null:(t??=r,q6(n,t))}switch(n.type){case i.VariableDeclarator:{let e=pme(n.id);return e==null?null:t??e}case i.AssignmentExpression:{let e=mme(n.left);return e==null?null:t??e}case i.PropertyDefinition:{let e=J6(n.key,n.computed);return e==null?null:t??e}case i.ConditionalExpression:case i.LogicalExpression:case i.AwaitExpression:case i.ChainExpression:case i.TSAsExpression:case i.TSTypeAssertion:case i.TSNonNullExpression:case i.TSSatisfiesExpression:case i.TSInstantiationExpression:case i.ObjectExpression:return q6(n,t);case i.SequenceExpression:return n.expressions[n.expressions.length-1]===e?q6(n,t):null;case i.CallExpression:case i.NewExpression:return n.arguments.some(t=>t===e)?q6(n,t):null;default:return null}}function fme(e,t){return!t&&e.type===i.Identifier?e.name:e.type===i.Literal&&typeof e.value==`string`?e.value:null}function pme(e){return e.type===i.Identifier?[e,e.name]:null}function mme(e){return e.type===i.Identifier?[e,e.name]:e.type===i.MemberExpression?J6(e.property,e.computed,e):null}function J6(e,t,n=e){let r=fme(e,t);return r==null?null:[n,r]}var hme=G6({meta:{type:`suggestion`,docs:{description:"Enforces identifier names assigned from `createContext` calls to be a valid component name with the suffix `Context`."},messages:{"invalid-context-name":`A context name must be a valid component name with the suffix 'Context'.`},schema:[]},name:`context-name`,create:gme});function gme(e){return e.sourceCode.text.includes(`createContext`)?{CallExpression(t){if(!f$(e,t))return;let n=K6(t);if(n==null)return;let[r,i]=n;h1(i)&&i.endsWith(`Context`)||e.report({messageId:`invalid-context-name`,node:r})}}:{}}var _me=G6({meta:{type:`suggestion`,docs:{description:`Enforces identifier names assigned from 'useId' calls to be either 'id' or end with 'Id'.`},messages:{"invalid-id-name":`An identifier assigned from 'useId' must be named 'id' or end with 'Id'.`},schema:[]},name:`id-name`,create:vme});function vme(e){return e.sourceCode.text.includes(`useId`)?{CallExpression(t){if(!x$(e,t))return;let n=K6(t);if(n==null)return;let[r,i]=n;i.endsWith(`Id`)||i===`id`||e.report({messageId:`invalid-id-name`,node:r})}}:{}}var yme=G6({meta:{type:`suggestion`,docs:{description:`Enforces identifier names assigned from 'useRef' calls to be either 'ref' or end with 'Ref'.`},messages:{"invalid-ref-name":`A ref identifier must be named 'ref' or ending in 'Ref'.`},schema:[]},name:`ref-name`,create:bme});function bme(e){let{additionalRefHooks:t}=bX(e);return{CallExpression(n){if(!T1(n,t))return;let r=n.parent;for(;Z.isTypeExpression(r);)r=r.parent;if(r.type===i.MemberExpression)return;let a=K6(n);if(a==null)return;let[o,s]=a;s.endsWith(`Ref`)||s===`ref`||e.report({messageId:`invalid-ref-name`,node:o})}}}const Y6={meta:{name:lme,version:ume},rules:{"context-name":hme,"id-name":_me,"ref-name":yme}};var xme=/* @__PURE__ */ cme({name:()=>Sme,plugins:()=>wme,rules:()=>Cme});const Sme=`react-naming-convention/recommended`,Cme={"react-naming-convention/context-name":`warn`,"react-naming-convention/id-name":`warn`,"react-naming-convention/ref-name":`warn`},wme={"react-naming-convention":Y6};function Tme(e){return{...e,plugins:{...e.plugins,get"react-naming-convention"(){return X6}}}}const X6={...Y6,configs:{recommended:Tme(xme)}};var Z6=/^[A-Z][a-zA-Z0-9_]*$/u,Eme={meta:{messages:{exportAll:"This rule can't verify that `export *` only exports components.",namedExport:`Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components.`,anonymousExport:`Fast refresh can't handle anonymous components. Add a name to your export.`,localComponents:"Fast refresh only works when a file only exports components. Move your component(s) to a separate file. If all exports are HOCs, add them to the `extraHOCs` option.",noExport:`Fast refresh only works when a file has exports. Move your component(s) to a separate file.`,reactContext:`Fast refresh only works when a file only exports components. Move your React context(s) to a separate file.`},type:`problem`,schema:[{type:`object`,properties:{extraHOCs:{type:`array`,items:{type:`string`}},allowExportNames:{type:`array`,items:{type:`string`}},allowConstantExport:{type:`boolean`},allowCompoundComponents:{type:`boolean`},checkJS:{type:`boolean`}},additionalProperties:!1}]},defaultOptions:[],create:e=>{let{extraHOCs:t=[],allowExportNames:n,allowConstantExport:r=!1,allowCompoundComponents:i=!1,checkJS:a=!1}=e.options[0]??{},o=e.filename;if(o.includes(`.test.`)||o.includes(`.spec.`)||o.includes(`.cy.`)||o.includes(`.stories.`)||!(o.endsWith(`.jsx`)||o.endsWith(`.tsx`)||a&&o.endsWith(`.js`)))return{};let s=n?new Set(n):void 0,c=[`memo`,`forwardRef`,`lazy`,...t],l=e=>{let t=e.type===`CallExpression`?e.callee:e.tag;if(t.type===`CallExpression`)return l(t);if(t.type===`MemberExpression`){if(t.property.type===`Identifier`&&c.includes(t.property.name))return t.property.name;if(t.object.type===`Identifier`&&c.includes(t.object.name))return t.object.name;if(t.object.type===`CallExpression`)return l(t.object)}if(t.type===`Identifier`)return t.name},u=e=>{let t=l(e);if(!t||!c.includes(t))return!1;if(t!==`memo`&&t!==`forwardRef`)return!0;if(e.arguments.length===0)return!1;let n=Q6(e.arguments[0]);switch(n.type){case`Identifier`:return Z6.test(n.name);case`FunctionExpression`:case`ArrowFunctionExpression`:return n.id?Z6.test(n.id.name):`needName`;case`CallExpression`:return u(n);default:return!1}},d=e=>{let t=Q6(e);if(t.type===`Identifier`)return Z6.test(t.name);if(t.type===`ArrowFunctionExpression`||t.type===`FunctionExpression`)return t.params.length>2?!1:t.id?.name?Z6.test(t.id.name):`needName`;if(t.type===`ConditionalExpression`){let e=d(t.consequent),n=d(t.alternate);return e===!1||n===!1?!1:e===`needName`||n===`needName`?`needName`:!0}if(t.type===`CallExpression`)return u(t);if(t.type===`TaggedTemplateExpression`){let e=l(t);return!e||!c.includes(e)?!1:`needName`}return t.type===`MemberExpression`&&!t.computed?Z6.test(t.property.name):i&&t.type===`ObjectExpression`?t.properties.length!==0&&t.properties.every(e=>{if(e.type!==`Property`||e.kind!==`init`)return!1;let t=Q6(e.value);if(t.type===`ObjectExpression`||t.type===`AssignmentPattern`||t.type===`TSEmptyBodyFunctionExpression`)return!1;let n=d(t);if(n===`needName`){if(e.computed)return!1;let t=e.key.type===`Identifier`?e.key.name:e.key.value;return typeof t==`string`&&Z6.test(t)}return n}):!1};return{Program(t){let n=!1,o=!1,c=!1,l=[],f=[],p=[],m=(e,t)=>{if(e.type!==`Identifier`){f.push(e);return}if(s?.has(e.name))return;if(!t){Z6.test(e.name)?o=!0:f.push(e);return}let n=Q6(t);r&&$6.has(n.type)||(n.type===`CallExpression`&&(n.callee.type===`Identifier`&&n.callee.name===`createContext`||n.callee.type===`MemberExpression`&&n.callee.property.type===`Identifier`&&n.callee.property.name===`createContext`)?p.push(e):(Z6.test(e.name)&&d(n))===!1?f.push(e):o=!0)},h=t=>{if(t.type===`VariableDeclaration`)for(let e of t.declarations)e.init===null?f.push(e.id):m(e.id,e.init);else if(t.type===`FunctionDeclaration`)t.id===null?e.report({messageId:`anonymousExport`,node:t}):m(t.id);else if(t.type===`ClassDeclaration`)t.id===null?e.report({messageId:`anonymousExport`,node:t}):Z6.test(t.id.name)&&t.superClass!==null&&t.body.body.some(e=>e.type===`MethodDefinition`&&e.key.type===`Identifier`&&e.key.name===`render`)?o=!0:f.push(t.id);else if(t.type===`CallExpression`){let n=u(t);n===!1?f.push(t):n===`needName`?e.report({messageId:`anonymousExport`,node:t}):o=!0}else t.type===`ObjectExpression`?d(t)===!1?f.push(t):o=!0:f.push(t)};for(let a of t.body)if(a.type===`ExportAllDeclaration`){if(a.exportKind===`type`)continue;n=!0,e.report({messageId:`exportAll`,node:a})}else if(a.type===`ExportDefaultDeclaration`){n=!0;let t=Q6(a.declaration);if(t.type===`VariableDeclaration`||t.type===`FunctionDeclaration`||t.type===`ClassDeclaration`||t.type===`CallExpression`||i&&t.type===`ObjectExpression`)h(t);else if(t.type===`Identifier`)m(t);else if(t.type===`ArrowFunctionExpression`)e.report({messageId:`anonymousExport`,node:a});else{if(r&&$6.has(t.type))return;f.push(t)}}else if(a.type===`ExportNamedDeclaration`){if(a.exportKind===`type`)continue;let t=a.declaration?Q6(a.declaration):null;if(t?.type===`TSDeclareFunction`)continue;n=!0,t&&h(t);for(let t of a.specifiers){let n=t.exported.type===`Identifier`&&t.exported.name==="default"?t.local:t.exported;if(t.local.type===`Identifier`){let r=e.sourceCode.getScope(a),i=t.local.name,o=r.variables.find(e=>e.name===i)?.defs[0];if(o?.type===`ClassName`){h(o.node);continue}if(o?.type===`Variable`&&o.node.init!==null){m(n,o.node.init);continue}}m(n)}}else if(a.type===`VariableDeclaration`)for(let e of a.declarations)e.id.type===`Identifier`&&Z6.test(e.id.name)&&e.init!==null&&d(e.init)!==!1&&l.push(e.id);else a.type===`FunctionDeclaration`?Z6.test(a.id.name)&&l.push(a.id):a.type===`ImportDeclaration`&&a.source.value===`react`&&(c=!0);if(!a||c){if(n){if(o){for(let t of f)e.report({messageId:`namedExport`,node:t});for(let t of p)e.report({messageId:`reactContext`,node:t})}else if(l.length>0)for(let t of l)e.report({messageId:`localComponents`,node:t})}else if(l.length>0)for(let t of l)e.report({messageId:`noExport`,node:t})}}}}},Q6=e=>e.type===`TSAsExpression`||e.type===`TSSatisfiesExpression`||e.type===`TSNonNullExpression`||e.type===`TSTypeAssertion`||e.type===`TSInstantiationExpression`?e.expression:e,$6=/* @__PURE__ */ new Set([`Literal`,`UnaryExpression`,`TemplateLiteral`,`BinaryExpression`]),e8={"only-export-components":Eme},Dme={rules:e8},t8=({name:e,baseOptions:t})=>n=>({name:`react-refresh/${e}`,plugins:{"react-refresh":Dme},rules:{"react-refresh/only-export-components":[`error`,{...t,...n}]}}),n8={recommended:t8({name:`recommended`,baseOptions:{}}),vite:t8({name:`vite`,baseOptions:{allowConstantExport:!0,allowCompoundComponents:!0}}),next:t8({name:`next`,baseOptions:{allowExportNames:[`experimental_ppr`,`dynamic`,`dynamicParams`,`revalidate`,`fetchCache`,`runtime`,`preferredRegion`,`maxDuration`,`metadata`,`generateMetadata`,`viewport`,`generateViewport`,`generateImageMetadata`,`generateSitemaps`,`generateStaticParams`,`instant`,`contentType`,`size`]}})},Ome={rules:e8,configs:{recommended:n8.recommended(),vite:n8.vite(),next:n8.next()}},kme=/* @__PURE__ */ I(((e,t)=>{let n=/* @__PURE__ */ new Set([`h1`,`h2`,`h3`,`h4`,`h5`,`h6`]),r=/* @__PURE__ */ new Set([]),{onlyValidChildren:i,onlyValidParents:a,knownInvalidChildren:o,knownInvalidParents:s}={onlyValidChildren:{head:/* @__PURE__ */ new Set([`base`,`basefront`,`bgsound`,`link`,`meta`,`title`,`noscript`,`noframes`,`style`,`script`,`template`]),optgroup:/* @__PURE__ */ new Set([`option`]),select:/* @__PURE__ */ new Set([`optgroup`,`option`]),math:/* @__PURE__ */ new Set([`mrow`]),script:/* @__PURE__ */ new Set,table:/* @__PURE__ */ new Set([`caption`,`colgroup`,`tbody`,`tfoot`,`thead`]),tr:/* @__PURE__ */ new Set([`td`,`th`]),colgroup:/* @__PURE__ */ new Set([`col`]),tbody:/* @__PURE__ */ new Set([`tr`]),thead:/* @__PURE__ */ new Set([`tr`]),tfoot:/* @__PURE__ */ new Set([`tr`]),iframe:r,option:r,textarea:r,style:r,title:r},onlyValidParents:{html:r,body:/* @__PURE__ */ new Set([`html`]),head:/* @__PURE__ */ new Set([`html`]),td:/* @__PURE__ */ new Set([`tr`]),colgroup:/* @__PURE__ */ new Set([`table`]),caption:/* @__PURE__ */ new Set([`table`]),tbody:/* @__PURE__ */ new Set([`table`]),tfoot:/* @__PURE__ */ new Set([`table`]),col:/* @__PURE__ */ new Set([`colgroup`]),th:/* @__PURE__ */ new Set([`tr`]),thead:/* @__PURE__ */ new Set([`table`]),tr:/* @__PURE__ */ new Set([`tbody`,`thead`,`tfoot`]),dd:/* @__PURE__ */ new Set([`dl`,`div`]),dt:/* @__PURE__ */ new Set([`dl`,`div`]),figcaption:/* @__PURE__ */ new Set([`figure`]),summary:/* @__PURE__ */ new Set([`details`]),area:/* @__PURE__ */ new Set([`map`])},knownInvalidChildren:{p:/* @__PURE__ */ new Set(/* @__PURE__ */ `address.article.aside.blockquote.center.details.dialog.dir.div.dl.fieldset.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.li.main.nav.menu.ol.p.pre.section.table.ul`.split(`.`)),svg:/* @__PURE__ */ new Set(/* @__PURE__ */ `b.blockquote.br.code.dd.div.dl.dt.em.embed.h1.h2.h3.h4.h5.h6.hr.i.img.li.menu.meta.ol.p.pre.ruby.s.small.span.strong.sub.sup.table.u.ul.var`.split(`.`))},knownInvalidParents:{a:/* @__PURE__ */ new Set([`a`]),button:/* @__PURE__ */ new Set([`button`]),dd:/* @__PURE__ */ new Set([`dd`,`dt`]),dt:/* @__PURE__ */ new Set([`dd`,`dt`]),form:/* @__PURE__ */ new Set([`form`]),li:/* @__PURE__ */ new Set([`li`]),h1:n,h2:n,h3:n,h4:n,h5:n,h6:n}};function c(e,t){return e in i?i[e].has(t):t in a?a[t].has(e):!(e in o&&o[e].has(t)||t in s&&s[t].has(e))}var l={isValidHTMLNesting:c};function u(e){return e[0]===e[0].toUpperCase()}function d(e){return typeof e==`object`&&!!e&&e.type===`JSXElement`}t.exports={rules:{"no-invalid-jsx-nesting":{meta:{type:`problem`},create(e){return{JSXElement(t){let n=t,r=t.parent,i=n.openingElement.name;if(i.type!==`JSXIdentifier`||u(i.name)||!d(r))return;let a=r.openingElement.name;a.type===`JSXIdentifier`&&(u(a.name)||l.isValidHTMLNesting(a.name,i.name)||e.report({node:t,message:`Invalid HTML nesting: <${i.name}> can not be child of <${a.name}>`}))}}}}}}})),Ame=/* @__PURE__ */ I(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/adjacent-overload-signatures":`error`,"@typescript-eslint/array-type":`error`,"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/ban-ts-comment":`error`,"@typescript-eslint/ban-tslint-comment":`error`,"@typescript-eslint/class-literal-property-style":`error`,"class-methods-use-this":`off`,"@typescript-eslint/class-methods-use-this":`error`,"@typescript-eslint/consistent-generic-constructors":`error`,"@typescript-eslint/consistent-indexed-object-style":`error`,"consistent-return":`off`,"@typescript-eslint/consistent-return":`error`,"@typescript-eslint/consistent-type-assertions":`error`,"@typescript-eslint/consistent-type-definitions":`error`,"@typescript-eslint/consistent-type-exports":`error`,"@typescript-eslint/consistent-type-imports":`error`,"default-param-last":`off`,"@typescript-eslint/default-param-last":`error`,"dot-notation":`off`,"@typescript-eslint/dot-notation":`error`,"@typescript-eslint/explicit-function-return-type":`error`,"@typescript-eslint/explicit-member-accessibility":`error`,"@typescript-eslint/explicit-module-boundary-types":`error`,"init-declarations":`off`,"@typescript-eslint/init-declarations":`error`,"max-params":`off`,"@typescript-eslint/max-params":`error`,"@typescript-eslint/member-ordering":`error`,"@typescript-eslint/method-signature-style":`error`,"@typescript-eslint/naming-convention":`error`,"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-confusing-non-null-assertion":`error`,"@typescript-eslint/no-confusing-void-expression":`error`,"@typescript-eslint/no-deprecated":`error`,"no-dupe-class-members":`off`,"@typescript-eslint/no-dupe-class-members":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-dynamic-delete":`error`,"no-empty-function":`off`,"@typescript-eslint/no-empty-function":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-extraneous-class":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"@typescript-eslint/no-generated-empty-object-type":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-import-type-side-effects":`error`,"@typescript-eslint/no-inferrable-types":`error`,"no-invalid-this":`off`,"@typescript-eslint/no-invalid-this":`error`,"@typescript-eslint/no-invalid-void-type":`error`,"no-magic-numbers":`off`,"@typescript-eslint/no-magic-numbers":`error`,"@typescript-eslint/no-meaningless-void-operator":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-misused-spread":`error`,"@typescript-eslint/no-mixed-enums":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-nullish-coalescing":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-non-null-assertion":`error`,"no-redeclare":`off`,"@typescript-eslint/no-redeclare":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-restricted-types":`error`,"no-shadow":`off`,"@typescript-eslint/no-shadow":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`error`,"@typescript-eslint/no-unnecessary-condition":`error`,"@typescript-eslint/no-unnecessary-parameter-property-assignment":`error`,"@typescript-eslint/no-unnecessary-qualifier":`error`,"@typescript-eslint/no-unnecessary-template-expression":`error`,"@typescript-eslint/no-unnecessary-type-arguments":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unnecessary-type-conversion":`error`,"@typescript-eslint/no-unnecessary-type-parameters":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-class-instance-assignment":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-enum-assignment":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-type-assertion":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-private-class-members":`off`,"@typescript-eslint/no-unused-private-class-members":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"no-use-before-define":`off`,"@typescript-eslint/no-use-before-define":`error`,"no-useless-constructor":`off`,"@typescript-eslint/no-useless-constructor":`error`,"@typescript-eslint/no-useless-default-assignment":`error`,"@typescript-eslint/no-useless-empty-export":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"@typescript-eslint/non-nullable-type-assertion-style":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"@typescript-eslint/parameter-properties":`error`,"@typescript-eslint/prefer-as-const":`error`,"prefer-destructuring":`off`,"@typescript-eslint/prefer-destructuring":`error`,"@typescript-eslint/prefer-enum-initializers":`error`,"@typescript-eslint/prefer-find":`error`,"@typescript-eslint/prefer-for-of":`error`,"@typescript-eslint/prefer-function-type":`error`,"@typescript-eslint/prefer-includes":`error`,"@typescript-eslint/prefer-literal-enum-member":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"@typescript-eslint/prefer-nullish-coalescing":`error`,"@typescript-eslint/prefer-optional-chain":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"@typescript-eslint/prefer-readonly":`error`,"@typescript-eslint/prefer-readonly-parameter-types":`error`,"@typescript-eslint/prefer-reduce-type-parameter":`error`,"@typescript-eslint/prefer-regexp-exec":`error`,"@typescript-eslint/prefer-return-this-type":`error`,"@typescript-eslint/prefer-string-starts-ends-with":`error`,"@typescript-eslint/promise-function-async":`error`,"@typescript-eslint/related-getter-setter-pairs":`error`,"@typescript-eslint/require-array-sort-compare":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":`error`,"@typescript-eslint/restrict-template-expressions":`error`,"no-return-await":`off`,"@typescript-eslint/return-await":`error`,"@typescript-eslint/strict-boolean-expressions":`error`,"@typescript-eslint/strict-void-return":`error`,"@typescript-eslint/switch-exhaustiveness-check":`error`,"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unbound-method":`error`,"@typescript-eslint/unified-signatures":`error`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`error`}}})),jme=/* @__PURE__ */ I(((e,t)=>{t.exports={parser:`@typescript-eslint/parser`,parserOptions:{sourceType:`module`},plugins:[`@typescript-eslint`]}})),Mme=/* @__PURE__ */ I(((e,t)=>{t.exports={parserOptions:{program:null,project:!1,projectService:!1},rules:{"@typescript-eslint/await-thenable":`off`,"@typescript-eslint/consistent-return":`off`,"@typescript-eslint/consistent-type-exports":`off`,"@typescript-eslint/dot-notation":`off`,"@typescript-eslint/naming-convention":`off`,"@typescript-eslint/no-array-delete":`off`,"@typescript-eslint/no-base-to-string":`off`,"@typescript-eslint/no-confusing-void-expression":`off`,"@typescript-eslint/no-deprecated":`off`,"@typescript-eslint/no-duplicate-type-constituents":`off`,"@typescript-eslint/no-floating-promises":`off`,"@typescript-eslint/no-for-in-array":`off`,"@typescript-eslint/no-generated-empty-object-type":`off`,"@typescript-eslint/no-implied-eval":`off`,"@typescript-eslint/no-meaningless-void-operator":`off`,"@typescript-eslint/no-misused-promises":`off`,"@typescript-eslint/no-misused-spread":`off`,"@typescript-eslint/no-mixed-enums":`off`,"@typescript-eslint/no-redundant-type-constituents":`off`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`off`,"@typescript-eslint/no-unnecessary-condition":`off`,"@typescript-eslint/no-unnecessary-qualifier":`off`,"@typescript-eslint/no-unnecessary-template-expression":`off`,"@typescript-eslint/no-unnecessary-type-arguments":`off`,"@typescript-eslint/no-unnecessary-type-assertion":`off`,"@typescript-eslint/no-unnecessary-type-conversion":`off`,"@typescript-eslint/no-unnecessary-type-parameters":`off`,"@typescript-eslint/no-unsafe-argument":`off`,"@typescript-eslint/no-unsafe-assignment":`off`,"@typescript-eslint/no-unsafe-call":`off`,"@typescript-eslint/no-unsafe-class-instance-assignment":`off`,"@typescript-eslint/no-unsafe-enum-assignment":`off`,"@typescript-eslint/no-unsafe-enum-comparison":`off`,"@typescript-eslint/no-unsafe-member-access":`off`,"@typescript-eslint/no-unsafe-return":`off`,"@typescript-eslint/no-unsafe-type-assertion":`off`,"@typescript-eslint/no-unsafe-unary-minus":`off`,"@typescript-eslint/no-useless-default-assignment":`off`,"@typescript-eslint/non-nullable-type-assertion-style":`off`,"@typescript-eslint/only-throw-error":`off`,"@typescript-eslint/prefer-destructuring":`off`,"@typescript-eslint/prefer-find":`off`,"@typescript-eslint/prefer-includes":`off`,"@typescript-eslint/prefer-nullish-coalescing":`off`,"@typescript-eslint/prefer-optional-chain":`off`,"@typescript-eslint/prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-readonly":`off`,"@typescript-eslint/prefer-readonly-parameter-types":`off`,"@typescript-eslint/prefer-reduce-type-parameter":`off`,"@typescript-eslint/prefer-regexp-exec":`off`,"@typescript-eslint/prefer-return-this-type":`off`,"@typescript-eslint/prefer-string-starts-ends-with":`off`,"@typescript-eslint/promise-function-async":`off`,"@typescript-eslint/related-getter-setter-pairs":`off`,"@typescript-eslint/require-array-sort-compare":`off`,"@typescript-eslint/require-await":`off`,"@typescript-eslint/restrict-plus-operands":`off`,"@typescript-eslint/restrict-template-expressions":`off`,"@typescript-eslint/return-await":`off`,"@typescript-eslint/strict-boolean-expressions":`off`,"@typescript-eslint/strict-void-return":`off`,"@typescript-eslint/switch-exhaustiveness-check":`off`,"@typescript-eslint/unbound-method":`off`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`off`}}})),r8=/* @__PURE__ */ I(((e,t)=>{t.exports=e=>({files:e===`glob`?[`*.ts`,`*.tsx`,`*.mts`,`*.cts`]:[`**/*.ts`,`**/*.tsx`,`**/*.mts`,`**/*.cts`],rules:{"constructor-super":`off`,"getter-return":`off`,"no-class-assign":`off`,"no-const-assign":`off`,"no-dupe-args":`off`,"no-dupe-class-members":`off`,"no-dupe-keys":`off`,"no-func-assign":`off`,"no-import-assign":`off`,"no-new-native-nonconstructor":`off`,"no-new-symbol":`off`,"no-obj-calls":`off`,"no-redeclare":`off`,"no-setter-return":`off`,"no-this-before-super":`off`,"no-undef":`off`,"no-unreachable":`off`,"no-unsafe-negation":`off`,"no-var":`error`,"no-with":`off`,"prefer-const":`error`,"prefer-rest-params":`error`,"prefer-spread":`error`}})})),Nme=/* @__PURE__ */ I(((e,t,n)=>{t.exports={overrides:[(0,(n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(r8()).default)(`glob`)]}})),Pme=/* @__PURE__ */ I(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/ban-ts-comment":`error`,"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"@typescript-eslint/triple-slash-reference":`error`}}})),Fme=/* @__PURE__ */ I(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/ban-ts-comment":`error`,"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":`error`,"@typescript-eslint/restrict-template-expressions":`error`,"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unbound-method":`error`}}})),Ime=/* @__PURE__ */ I(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":`error`,"@typescript-eslint/restrict-template-expressions":`error`,"@typescript-eslint/unbound-method":`error`}}})),Lme=/* @__PURE__ */ I(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/ban-ts-comment":[`error`,{minimumDescriptionLength:10}],"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-dynamic-delete":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-extraneous-class":`error`,"@typescript-eslint/no-invalid-void-type":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-nullish-coalescing":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-non-null-assertion":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"no-useless-constructor":`off`,"@typescript-eslint/no-useless-constructor":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-literal-enum-member":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unified-signatures":`error`}}})),Rme=/* @__PURE__ */ I(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/ban-ts-comment":[`error`,{minimumDescriptionLength:10}],"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-confusing-void-expression":`error`,"@typescript-eslint/no-deprecated":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-dynamic-delete":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-extraneous-class":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"@typescript-eslint/no-generated-empty-object-type":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-invalid-void-type":`error`,"@typescript-eslint/no-meaningless-void-operator":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-misused-spread":`error`,"@typescript-eslint/no-mixed-enums":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-nullish-coalescing":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-non-null-assertion":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`error`,"@typescript-eslint/no-unnecessary-condition":`error`,"@typescript-eslint/no-unnecessary-template-expression":`error`,"@typescript-eslint/no-unnecessary-type-arguments":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unnecessary-type-conversion":`error`,"@typescript-eslint/no-unnecessary-type-parameters":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-class-instance-assignment":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-enum-assignment":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"no-useless-constructor":`off`,"@typescript-eslint/no-useless-constructor":`error`,"@typescript-eslint/no-useless-default-assignment":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-literal-enum-member":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"@typescript-eslint/prefer-reduce-type-parameter":`error`,"@typescript-eslint/prefer-return-this-type":`error`,"@typescript-eslint/related-getter-setter-pairs":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":[`error`,{allowAny:!1,allowBoolean:!1,allowNullish:!1,allowNumberAndString:!1,allowRegExp:!1}],"@typescript-eslint/restrict-template-expressions":[`error`,{allowAny:!1,allowBoolean:!1,allowNever:!1,allowNullish:!1,allowNumber:!1,allowRegExp:!1}],"no-return-await":`off`,"@typescript-eslint/return-await":[`error`,`error-handling-correctness-only`],"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unbound-method":`error`,"@typescript-eslint/unified-signatures":`error`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`error`}}})),zme=/* @__PURE__ */ I(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-confusing-void-expression":`error`,"@typescript-eslint/no-deprecated":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"@typescript-eslint/no-generated-empty-object-type":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-meaningless-void-operator":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-misused-spread":`error`,"@typescript-eslint/no-mixed-enums":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`error`,"@typescript-eslint/no-unnecessary-condition":`error`,"@typescript-eslint/no-unnecessary-template-expression":`error`,"@typescript-eslint/no-unnecessary-type-arguments":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-conversion":`error`,"@typescript-eslint/no-unnecessary-type-parameters":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-class-instance-assignment":`error`,"@typescript-eslint/no-unsafe-enum-assignment":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"@typescript-eslint/no-useless-default-assignment":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"@typescript-eslint/prefer-reduce-type-parameter":`error`,"@typescript-eslint/prefer-return-this-type":`error`,"@typescript-eslint/related-getter-setter-pairs":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":[`error`,{allowAny:!1,allowBoolean:!1,allowNullish:!1,allowNumberAndString:!1,allowRegExp:!1}],"@typescript-eslint/restrict-template-expressions":[`error`,{allowAny:!1,allowBoolean:!1,allowNever:!1,allowNullish:!1,allowNumber:!1,allowRegExp:!1}],"no-return-await":`off`,"@typescript-eslint/return-await":[`error`,`error-handling-correctness-only`],"@typescript-eslint/unbound-method":`error`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`error`}}})),Bme=/* @__PURE__ */ I(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/adjacent-overload-signatures":`error`,"@typescript-eslint/array-type":`error`,"@typescript-eslint/ban-tslint-comment":`error`,"@typescript-eslint/class-literal-property-style":`error`,"@typescript-eslint/consistent-generic-constructors":`error`,"@typescript-eslint/consistent-indexed-object-style":`error`,"@typescript-eslint/consistent-type-assertions":`error`,"@typescript-eslint/consistent-type-definitions":`error`,"@typescript-eslint/no-confusing-non-null-assertion":`error`,"no-empty-function":`off`,"@typescript-eslint/no-empty-function":`error`,"@typescript-eslint/no-inferrable-types":`error`,"@typescript-eslint/prefer-for-of":`error`,"@typescript-eslint/prefer-function-type":`error`}}})),Vme=/* @__PURE__ */ I(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"@typescript-eslint/adjacent-overload-signatures":`error`,"@typescript-eslint/array-type":`error`,"@typescript-eslint/ban-tslint-comment":`error`,"@typescript-eslint/class-literal-property-style":`error`,"@typescript-eslint/consistent-generic-constructors":`error`,"@typescript-eslint/consistent-indexed-object-style":`error`,"@typescript-eslint/consistent-type-assertions":`error`,"@typescript-eslint/consistent-type-definitions":`error`,"dot-notation":`off`,"@typescript-eslint/dot-notation":`error`,"@typescript-eslint/no-confusing-non-null-assertion":`error`,"no-empty-function":`off`,"@typescript-eslint/no-empty-function":`error`,"@typescript-eslint/no-inferrable-types":`error`,"@typescript-eslint/non-nullable-type-assertion-style":`error`,"@typescript-eslint/prefer-find":`error`,"@typescript-eslint/prefer-for-of":`error`,"@typescript-eslint/prefer-function-type":`error`,"@typescript-eslint/prefer-includes":`error`,"@typescript-eslint/prefer-nullish-coalescing":`error`,"@typescript-eslint/prefer-optional-chain":`error`,"@typescript-eslint/prefer-regexp-exec":`error`,"@typescript-eslint/prefer-string-starts-ends-with":`error`}}})),Hme=/* @__PURE__ */ I(((e,t)=>{t.exports={extends:[`./configs/eslintrc/base`,`./configs/eslintrc/eslint-recommended`],rules:{"dot-notation":`off`,"@typescript-eslint/dot-notation":`error`,"@typescript-eslint/non-nullable-type-assertion-style":`error`,"@typescript-eslint/prefer-find":`error`,"@typescript-eslint/prefer-includes":`error`,"@typescript-eslint/prefer-nullish-coalescing":`error`,"@typescript-eslint/prefer-optional-chain":`error`,"@typescript-eslint/prefer-regexp-exec":`error`,"@typescript-eslint/prefer-string-starts-ends-with":`error`}}})),i8=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=(e,t)=>({name:`typescript-eslint/base`,languageOptions:{parser:t,sourceType:`module`},plugins:{"@typescript-eslint":e}})})),a8=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(r8());e.default=(e,t)=>({...(0,i.default)(`minimatch`),name:`typescript-eslint/eslint-recommended`})})),Ume=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(i8()),a=r(a8());e.default=(e,t)=>[(0,i.default)(e,t),(0,a.default)(e,t),{name:`typescript-eslint/all`,rules:{"@typescript-eslint/adjacent-overload-signatures":`error`,"@typescript-eslint/array-type":`error`,"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/ban-ts-comment":`error`,"@typescript-eslint/ban-tslint-comment":`error`,"@typescript-eslint/class-literal-property-style":`error`,"class-methods-use-this":`off`,"@typescript-eslint/class-methods-use-this":`error`,"@typescript-eslint/consistent-generic-constructors":`error`,"@typescript-eslint/consistent-indexed-object-style":`error`,"consistent-return":`off`,"@typescript-eslint/consistent-return":`error`,"@typescript-eslint/consistent-type-assertions":`error`,"@typescript-eslint/consistent-type-definitions":`error`,"@typescript-eslint/consistent-type-exports":`error`,"@typescript-eslint/consistent-type-imports":`error`,"default-param-last":`off`,"@typescript-eslint/default-param-last":`error`,"dot-notation":`off`,"@typescript-eslint/dot-notation":`error`,"@typescript-eslint/explicit-function-return-type":`error`,"@typescript-eslint/explicit-member-accessibility":`error`,"@typescript-eslint/explicit-module-boundary-types":`error`,"init-declarations":`off`,"@typescript-eslint/init-declarations":`error`,"max-params":`off`,"@typescript-eslint/max-params":`error`,"@typescript-eslint/member-ordering":`error`,"@typescript-eslint/method-signature-style":`error`,"@typescript-eslint/naming-convention":`error`,"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-confusing-non-null-assertion":`error`,"@typescript-eslint/no-confusing-void-expression":`error`,"@typescript-eslint/no-deprecated":`error`,"no-dupe-class-members":`off`,"@typescript-eslint/no-dupe-class-members":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-dynamic-delete":`error`,"no-empty-function":`off`,"@typescript-eslint/no-empty-function":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-extraneous-class":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"@typescript-eslint/no-generated-empty-object-type":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-import-type-side-effects":`error`,"@typescript-eslint/no-inferrable-types":`error`,"no-invalid-this":`off`,"@typescript-eslint/no-invalid-this":`error`,"@typescript-eslint/no-invalid-void-type":`error`,"no-magic-numbers":`off`,"@typescript-eslint/no-magic-numbers":`error`,"@typescript-eslint/no-meaningless-void-operator":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-misused-spread":`error`,"@typescript-eslint/no-mixed-enums":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-nullish-coalescing":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-non-null-assertion":`error`,"no-redeclare":`off`,"@typescript-eslint/no-redeclare":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-restricted-types":`error`,"no-shadow":`off`,"@typescript-eslint/no-shadow":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`error`,"@typescript-eslint/no-unnecessary-condition":`error`,"@typescript-eslint/no-unnecessary-parameter-property-assignment":`error`,"@typescript-eslint/no-unnecessary-qualifier":`error`,"@typescript-eslint/no-unnecessary-template-expression":`error`,"@typescript-eslint/no-unnecessary-type-arguments":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unnecessary-type-conversion":`error`,"@typescript-eslint/no-unnecessary-type-parameters":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-class-instance-assignment":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-enum-assignment":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-type-assertion":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-private-class-members":`off`,"@typescript-eslint/no-unused-private-class-members":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"no-use-before-define":`off`,"@typescript-eslint/no-use-before-define":`error`,"no-useless-constructor":`off`,"@typescript-eslint/no-useless-constructor":`error`,"@typescript-eslint/no-useless-default-assignment":`error`,"@typescript-eslint/no-useless-empty-export":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"@typescript-eslint/non-nullable-type-assertion-style":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"@typescript-eslint/parameter-properties":`error`,"@typescript-eslint/prefer-as-const":`error`,"prefer-destructuring":`off`,"@typescript-eslint/prefer-destructuring":`error`,"@typescript-eslint/prefer-enum-initializers":`error`,"@typescript-eslint/prefer-find":`error`,"@typescript-eslint/prefer-for-of":`error`,"@typescript-eslint/prefer-function-type":`error`,"@typescript-eslint/prefer-includes":`error`,"@typescript-eslint/prefer-literal-enum-member":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"@typescript-eslint/prefer-nullish-coalescing":`error`,"@typescript-eslint/prefer-optional-chain":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"@typescript-eslint/prefer-readonly":`error`,"@typescript-eslint/prefer-readonly-parameter-types":`error`,"@typescript-eslint/prefer-reduce-type-parameter":`error`,"@typescript-eslint/prefer-regexp-exec":`error`,"@typescript-eslint/prefer-return-this-type":`error`,"@typescript-eslint/prefer-string-starts-ends-with":`error`,"@typescript-eslint/promise-function-async":`error`,"@typescript-eslint/related-getter-setter-pairs":`error`,"@typescript-eslint/require-array-sort-compare":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":`error`,"@typescript-eslint/restrict-template-expressions":`error`,"no-return-await":`off`,"@typescript-eslint/return-await":`error`,"@typescript-eslint/strict-boolean-expressions":`error`,"@typescript-eslint/strict-void-return":`error`,"@typescript-eslint/switch-exhaustiveness-check":`error`,"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unbound-method":`error`,"@typescript-eslint/unified-signatures":`error`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`error`}}]})),Wme=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=(e,t)=>({name:`typescript-eslint/disable-type-checked`,rules:{"@typescript-eslint/await-thenable":`off`,"@typescript-eslint/consistent-return":`off`,"@typescript-eslint/consistent-type-exports":`off`,"@typescript-eslint/dot-notation":`off`,"@typescript-eslint/naming-convention":`off`,"@typescript-eslint/no-array-delete":`off`,"@typescript-eslint/no-base-to-string":`off`,"@typescript-eslint/no-confusing-void-expression":`off`,"@typescript-eslint/no-deprecated":`off`,"@typescript-eslint/no-duplicate-type-constituents":`off`,"@typescript-eslint/no-floating-promises":`off`,"@typescript-eslint/no-for-in-array":`off`,"@typescript-eslint/no-generated-empty-object-type":`off`,"@typescript-eslint/no-implied-eval":`off`,"@typescript-eslint/no-meaningless-void-operator":`off`,"@typescript-eslint/no-misused-promises":`off`,"@typescript-eslint/no-misused-spread":`off`,"@typescript-eslint/no-mixed-enums":`off`,"@typescript-eslint/no-redundant-type-constituents":`off`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`off`,"@typescript-eslint/no-unnecessary-condition":`off`,"@typescript-eslint/no-unnecessary-qualifier":`off`,"@typescript-eslint/no-unnecessary-template-expression":`off`,"@typescript-eslint/no-unnecessary-type-arguments":`off`,"@typescript-eslint/no-unnecessary-type-assertion":`off`,"@typescript-eslint/no-unnecessary-type-conversion":`off`,"@typescript-eslint/no-unnecessary-type-parameters":`off`,"@typescript-eslint/no-unsafe-argument":`off`,"@typescript-eslint/no-unsafe-assignment":`off`,"@typescript-eslint/no-unsafe-call":`off`,"@typescript-eslint/no-unsafe-class-instance-assignment":`off`,"@typescript-eslint/no-unsafe-enum-assignment":`off`,"@typescript-eslint/no-unsafe-enum-comparison":`off`,"@typescript-eslint/no-unsafe-member-access":`off`,"@typescript-eslint/no-unsafe-return":`off`,"@typescript-eslint/no-unsafe-type-assertion":`off`,"@typescript-eslint/no-unsafe-unary-minus":`off`,"@typescript-eslint/no-useless-default-assignment":`off`,"@typescript-eslint/non-nullable-type-assertion-style":`off`,"@typescript-eslint/only-throw-error":`off`,"@typescript-eslint/prefer-destructuring":`off`,"@typescript-eslint/prefer-find":`off`,"@typescript-eslint/prefer-includes":`off`,"@typescript-eslint/prefer-nullish-coalescing":`off`,"@typescript-eslint/prefer-optional-chain":`off`,"@typescript-eslint/prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-readonly":`off`,"@typescript-eslint/prefer-readonly-parameter-types":`off`,"@typescript-eslint/prefer-reduce-type-parameter":`off`,"@typescript-eslint/prefer-regexp-exec":`off`,"@typescript-eslint/prefer-return-this-type":`off`,"@typescript-eslint/prefer-string-starts-ends-with":`off`,"@typescript-eslint/promise-function-async":`off`,"@typescript-eslint/related-getter-setter-pairs":`off`,"@typescript-eslint/require-array-sort-compare":`off`,"@typescript-eslint/require-await":`off`,"@typescript-eslint/restrict-plus-operands":`off`,"@typescript-eslint/restrict-template-expressions":`off`,"@typescript-eslint/return-await":`off`,"@typescript-eslint/strict-boolean-expressions":`off`,"@typescript-eslint/strict-void-return":`off`,"@typescript-eslint/switch-exhaustiveness-check":`off`,"@typescript-eslint/unbound-method":`off`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`off`},languageOptions:{parserOptions:{program:null,project:!1,projectService:!1}}})})),Gme=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(i8()),a=r(a8());e.default=(e,t)=>[(0,i.default)(e,t),(0,a.default)(e,t),{name:`typescript-eslint/recommended`,rules:{"@typescript-eslint/ban-ts-comment":`error`,"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"@typescript-eslint/triple-slash-reference":`error`}}]})),Kme=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(i8()),a=r(a8());e.default=(e,t)=>[(0,i.default)(e,t),(0,a.default)(e,t),{name:`typescript-eslint/recommended-type-checked`,rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/ban-ts-comment":`error`,"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":`error`,"@typescript-eslint/restrict-template-expressions":`error`,"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unbound-method":`error`}}]})),qme=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(i8()),a=r(a8());e.default=(e,t)=>[(0,i.default)(e,t),(0,a.default)(e,t),{name:`typescript-eslint/recommended-type-checked-only`,rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":`error`,"@typescript-eslint/restrict-template-expressions":`error`,"@typescript-eslint/unbound-method":`error`}}]})),Jme=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(i8()),a=r(a8());e.default=(e,t)=>[(0,i.default)(e,t),(0,a.default)(e,t),{name:`typescript-eslint/strict`,rules:{"@typescript-eslint/ban-ts-comment":[`error`,{minimumDescriptionLength:10}],"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-dynamic-delete":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-extraneous-class":`error`,"@typescript-eslint/no-invalid-void-type":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-nullish-coalescing":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-non-null-assertion":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"no-useless-constructor":`off`,"@typescript-eslint/no-useless-constructor":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-literal-enum-member":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unified-signatures":`error`}}]})),Yme=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(i8()),a=r(a8());e.default=(e,t)=>[(0,i.default)(e,t),(0,a.default)(e,t),{name:`typescript-eslint/strict-type-checked`,rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/ban-ts-comment":[`error`,{minimumDescriptionLength:10}],"no-array-constructor":`off`,"@typescript-eslint/no-array-constructor":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-confusing-void-expression":`error`,"@typescript-eslint/no-deprecated":`error`,"@typescript-eslint/no-duplicate-enum-values":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-dynamic-delete":`error`,"@typescript-eslint/no-empty-object-type":`error`,"@typescript-eslint/no-explicit-any":`error`,"@typescript-eslint/no-extra-non-null-assertion":`error`,"@typescript-eslint/no-extraneous-class":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"@typescript-eslint/no-generated-empty-object-type":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-invalid-void-type":`error`,"@typescript-eslint/no-meaningless-void-operator":`error`,"@typescript-eslint/no-misused-new":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-misused-spread":`error`,"@typescript-eslint/no-mixed-enums":`error`,"@typescript-eslint/no-namespace":`error`,"@typescript-eslint/no-non-null-asserted-nullish-coalescing":`error`,"@typescript-eslint/no-non-null-asserted-optional-chain":`error`,"@typescript-eslint/no-non-null-assertion":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-require-imports":`error`,"@typescript-eslint/no-this-alias":`error`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`error`,"@typescript-eslint/no-unnecessary-condition":`error`,"@typescript-eslint/no-unnecessary-template-expression":`error`,"@typescript-eslint/no-unnecessary-type-arguments":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-constraint":`error`,"@typescript-eslint/no-unnecessary-type-conversion":`error`,"@typescript-eslint/no-unnecessary-type-parameters":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-class-instance-assignment":`error`,"@typescript-eslint/no-unsafe-declaration-merging":`error`,"@typescript-eslint/no-unsafe-enum-assignment":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-function-type":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"no-unused-expressions":`off`,"@typescript-eslint/no-unused-expressions":`error`,"no-unused-vars":`off`,"@typescript-eslint/no-unused-vars":`error`,"no-useless-constructor":`off`,"@typescript-eslint/no-useless-constructor":`error`,"@typescript-eslint/no-useless-default-assignment":`error`,"@typescript-eslint/no-wrapper-object-types":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"@typescript-eslint/prefer-as-const":`error`,"@typescript-eslint/prefer-literal-enum-member":`error`,"@typescript-eslint/prefer-namespace-keyword":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"@typescript-eslint/prefer-reduce-type-parameter":`error`,"@typescript-eslint/prefer-return-this-type":`error`,"@typescript-eslint/related-getter-setter-pairs":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":[`error`,{allowAny:!1,allowBoolean:!1,allowNullish:!1,allowNumberAndString:!1,allowRegExp:!1}],"@typescript-eslint/restrict-template-expressions":[`error`,{allowAny:!1,allowBoolean:!1,allowNever:!1,allowNullish:!1,allowNumber:!1,allowRegExp:!1}],"no-return-await":`off`,"@typescript-eslint/return-await":[`error`,`error-handling-correctness-only`],"@typescript-eslint/triple-slash-reference":`error`,"@typescript-eslint/unbound-method":`error`,"@typescript-eslint/unified-signatures":`error`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`error`}}]})),Xme=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(i8()),a=r(a8());e.default=(e,t)=>[(0,i.default)(e,t),(0,a.default)(e,t),{name:`typescript-eslint/strict-type-checked-only`,rules:{"@typescript-eslint/await-thenable":`error`,"@typescript-eslint/no-array-delete":`error`,"@typescript-eslint/no-base-to-string":`error`,"@typescript-eslint/no-confusing-void-expression":`error`,"@typescript-eslint/no-deprecated":`error`,"@typescript-eslint/no-duplicate-type-constituents":`error`,"@typescript-eslint/no-floating-promises":`error`,"@typescript-eslint/no-for-in-array":`error`,"@typescript-eslint/no-generated-empty-object-type":`error`,"no-implied-eval":`off`,"@typescript-eslint/no-implied-eval":`error`,"@typescript-eslint/no-meaningless-void-operator":`error`,"@typescript-eslint/no-misused-promises":`error`,"@typescript-eslint/no-misused-spread":`error`,"@typescript-eslint/no-mixed-enums":`error`,"@typescript-eslint/no-redundant-type-constituents":`error`,"@typescript-eslint/no-unnecessary-boolean-literal-compare":`error`,"@typescript-eslint/no-unnecessary-condition":`error`,"@typescript-eslint/no-unnecessary-template-expression":`error`,"@typescript-eslint/no-unnecessary-type-arguments":`error`,"@typescript-eslint/no-unnecessary-type-assertion":`error`,"@typescript-eslint/no-unnecessary-type-conversion":`error`,"@typescript-eslint/no-unnecessary-type-parameters":`error`,"@typescript-eslint/no-unsafe-argument":`error`,"@typescript-eslint/no-unsafe-assignment":`error`,"@typescript-eslint/no-unsafe-call":`error`,"@typescript-eslint/no-unsafe-class-instance-assignment":`error`,"@typescript-eslint/no-unsafe-enum-assignment":`error`,"@typescript-eslint/no-unsafe-enum-comparison":`error`,"@typescript-eslint/no-unsafe-member-access":`error`,"@typescript-eslint/no-unsafe-return":`error`,"@typescript-eslint/no-unsafe-unary-minus":`error`,"@typescript-eslint/no-useless-default-assignment":`error`,"no-throw-literal":`off`,"@typescript-eslint/only-throw-error":`error`,"prefer-promise-reject-errors":`off`,"@typescript-eslint/prefer-promise-reject-errors":`error`,"@typescript-eslint/prefer-reduce-type-parameter":`error`,"@typescript-eslint/prefer-return-this-type":`error`,"@typescript-eslint/related-getter-setter-pairs":`error`,"require-await":`off`,"@typescript-eslint/require-await":`error`,"@typescript-eslint/restrict-plus-operands":[`error`,{allowAny:!1,allowBoolean:!1,allowNullish:!1,allowNumberAndString:!1,allowRegExp:!1}],"@typescript-eslint/restrict-template-expressions":[`error`,{allowAny:!1,allowBoolean:!1,allowNever:!1,allowNullish:!1,allowNumber:!1,allowRegExp:!1}],"no-return-await":`off`,"@typescript-eslint/return-await":[`error`,`error-handling-correctness-only`],"@typescript-eslint/unbound-method":`error`,"@typescript-eslint/use-unknown-in-catch-callback-variable":`error`}}]})),Zme=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(i8()),a=r(a8());e.default=(e,t)=>[(0,i.default)(e,t),(0,a.default)(e,t),{name:`typescript-eslint/stylistic`,rules:{"@typescript-eslint/adjacent-overload-signatures":`error`,"@typescript-eslint/array-type":`error`,"@typescript-eslint/ban-tslint-comment":`error`,"@typescript-eslint/class-literal-property-style":`error`,"@typescript-eslint/consistent-generic-constructors":`error`,"@typescript-eslint/consistent-indexed-object-style":`error`,"@typescript-eslint/consistent-type-assertions":`error`,"@typescript-eslint/consistent-type-definitions":`error`,"@typescript-eslint/no-confusing-non-null-assertion":`error`,"no-empty-function":`off`,"@typescript-eslint/no-empty-function":`error`,"@typescript-eslint/no-inferrable-types":`error`,"@typescript-eslint/prefer-for-of":`error`,"@typescript-eslint/prefer-function-type":`error`}}]})),Qme=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(i8()),a=r(a8());e.default=(e,t)=>[(0,i.default)(e,t),(0,a.default)(e,t),{name:`typescript-eslint/stylistic-type-checked`,rules:{"@typescript-eslint/adjacent-overload-signatures":`error`,"@typescript-eslint/array-type":`error`,"@typescript-eslint/ban-tslint-comment":`error`,"@typescript-eslint/class-literal-property-style":`error`,"@typescript-eslint/consistent-generic-constructors":`error`,"@typescript-eslint/consistent-indexed-object-style":`error`,"@typescript-eslint/consistent-type-assertions":`error`,"@typescript-eslint/consistent-type-definitions":`error`,"dot-notation":`off`,"@typescript-eslint/dot-notation":`error`,"@typescript-eslint/no-confusing-non-null-assertion":`error`,"no-empty-function":`off`,"@typescript-eslint/no-empty-function":`error`,"@typescript-eslint/no-inferrable-types":`error`,"@typescript-eslint/non-nullable-type-assertion-style":`error`,"@typescript-eslint/prefer-find":`error`,"@typescript-eslint/prefer-for-of":`error`,"@typescript-eslint/prefer-function-type":`error`,"@typescript-eslint/prefer-includes":`error`,"@typescript-eslint/prefer-nullish-coalescing":`error`,"@typescript-eslint/prefer-optional-chain":`error`,"@typescript-eslint/prefer-regexp-exec":`error`,"@typescript-eslint/prefer-string-starts-ends-with":`error`}}]})),$me=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(i8()),a=r(a8());e.default=(e,t)=>[(0,i.default)(e,t),(0,a.default)(e,t),{name:`typescript-eslint/stylistic-type-checked-only`,rules:{"dot-notation":`off`,"@typescript-eslint/dot-notation":`error`,"@typescript-eslint/non-nullable-type-assertion-style":`error`,"@typescript-eslint/prefer-find":`error`,"@typescript-eslint/prefer-includes":`error`,"@typescript-eslint/prefer-nullish-coalescing":`error`,"@typescript-eslint/prefer-optional-chain":`error`,"@typescript-eslint/prefer-regexp-exec":`error`,"@typescript-eslint/prefer-string-starts-ends-with":`error`}}]})),ehe=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.lazyRules=t;function t(e){let t={};for(let[n,r]of Object.entries(e)){let e;Object.defineProperty(t,n,{enumerable:!0,get:()=>(e??=r().default,e)})}return t}})),the=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.escapeRegExp=r;let t=/[\\^$.*+?()[\]{}|]/g,n=RegExp(t.source);function r(e=``){return e&&n.test(e)?e.replaceAll(t,`\\$&`):e}})),o8=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=n&&n.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!=="default"&&r(n,t,a[o]);return i(n,t),n}})(),o=n&&n.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.getNameLocationInGlobalDirectiveComment=u,e.forEachReturnStatement=d,e.forEachChildESTree=p;let s=Ie(),c=a(z(`typescript`)),l=the();o(DT(),e);function u(e,t,n){let r=RegExp(`[\\s,]${(0,l.escapeRegExp)(n)}(?:$|[\\s,:])`,`gu`);r.lastIndex=t.value.indexOf(`global`)+6;let i=r.exec(t.value),a=e.getLocFromIndex(t.range[0]+2+(i?i.index+1:0));return{end:{column:a.column+(i?n.length:1),line:a.line},start:a}}function d(e,t){return n(e);function n(e){switch(e.kind){case c.SyntaxKind.ReturnStatement:return t(e);case c.SyntaxKind.CaseBlock:case c.SyntaxKind.Block:case c.SyntaxKind.IfStatement:case c.SyntaxKind.DoStatement:case c.SyntaxKind.WhileStatement:case c.SyntaxKind.ForStatement:case c.SyntaxKind.ForInStatement:case c.SyntaxKind.ForOfStatement:case c.SyntaxKind.WithStatement:case c.SyntaxKind.SwitchStatement:case c.SyntaxKind.CaseClause:case c.SyntaxKind.DefaultClause:case c.SyntaxKind.LabeledStatement:case c.SyntaxKind.TryStatement:case c.SyntaxKind.CatchClause:return c.forEachChild(e,n)}}}function f(e){return typeof e==`object`&&!!e&&`type`in e&&typeof e.type==`string`}function p(e,t){function n(e){let r=t(e);if(r)return r;let i=s.visitorKeys[e.type];if(i)for(let t of i){let r=e[t];if(Array.isArray(r)){for(let e of r)if(f(e)){let t=n(e);if(t)return t}}else if(f(r)){let e=n(r);if(e)return e}}}return n(e)}})),s8=/* @__PURE__ */ I((e=>{var t=z(`typescript`);function n(e){return e&&e.__esModule?e:{default:e}}var r=/*#__PURE__*/ n(t);function*i(e,t=e.getSourceFile()){let n=[];for(;;){if(r.default.isTokenKind(e.kind))yield e;else{let r=e.getChildren(t);if(r.length===1){e=r[0];continue}for(let e=r.length-1;e>=0;--e)n.push(r[e])}if(n.length===0)break;e=n.pop()}}function*a(e,t=e.getSourceFile()){let n=t.text,a=t.languageVariant!==r.default.LanguageVariant.JSX;for(let c of i(e,t))c.pos!==c.end&&(c.kind!==r.default.SyntaxKind.JsxText&&(yield*s(e=>{r.default.forEachLeadingCommentRange(n,c.pos===0?(r.default.getShebang(n)??``).length:c.pos,e)},n)),(a||o(c))&&(yield*s(e=>{r.default.forEachTrailingCommentRange(n,c.end,e)},n)))}function o(e){switch(e.kind){case r.default.SyntaxKind.CloseBraceToken:return e.parent.kind!==r.default.SyntaxKind.JsxExpression||!c(e.parent.parent);case r.default.SyntaxKind.GreaterThanToken:switch(e.parent.kind){case r.default.SyntaxKind.JsxClosingElement:case r.default.SyntaxKind.JsxClosingFragment:return!c(e.parent.parent.parent);case r.default.SyntaxKind.JsxOpeningElement:return e.end!==e.parent.end;case r.default.SyntaxKind.JsxOpeningFragment:return!1;case r.default.SyntaxKind.JsxSelfClosingElement:return e.end!==e.parent.end||!c(e.parent.parent)}}return!0}function s(e,t){let n=[];return e((e,i,a)=>{let o=t.slice(e,i),s=o.slice(2,a===r.default.SyntaxKind.SingleLineCommentTrivia?void 0:-2);n.push({end:i,kind:a,pos:e,text:o,value:s})}),n}function c(e){return e.kind===r.default.SyntaxKind.JsxElement||e.kind===r.default.SyntaxKind.JsxFragment}var[l,u]=r.default.versionMajorMinor.split(`.`).map(e=>Number.parseInt(e,10));function d(e,t=0){return l>e||l===e&&u>=t}function f(e,t){switch(t){case`allowJs`:return e.allowJs===void 0?f(e,`checkJs`):e.allowJs;case`allowSyntheticDefaultImports`:return e.allowSyntheticDefaultImports===void 0?f(e,`esModuleInterop`)||e.module===r.default.ModuleKind.System:e.allowSyntheticDefaultImports;case`alwaysStrict`:case`noImplicitAny`:case`noImplicitThis`:case`strictBindCallApply`:case`strictFunctionTypes`:case`strictNullChecks`:case`strictPropertyInitialization`:return p(e,t);case`declaration`:return e.declaration||f(e,`composite`);case`declarationMap`:case`emitDeclarationOnly`:case`stripInternal`:return e[t]===!0&&f(e,`declaration`);case`incremental`:return e.incremental===void 0?f(e,`composite`):e.incremental;case`noUncheckedIndexedAccess`:return e.noUncheckedIndexedAccess===!0&&f(e,`strictNullChecks`);case`skipDefaultLibCheck`:return e.skipDefaultLibCheck||f(e,`skipLibCheck`);case`suppressImplicitAnyIndexErrors`:return e.suppressImplicitAnyIndexErrors===!0&&f(e,`noImplicitAny`)}return e[t]===!0}function p(e,t){return t===`strictPropertyInitialization`&&!p(e,`strictNullChecks`)?!1:e[t]??e.strict??d(6)}function m(e,t){return h(r.default.getCombinedModifierFlags(e),t)}function h(e,t){return(e&t)!==0}function g(e,t){return h(e.flags,t)}var _=g;function v(e,t){return h(e.objectFlags,t)}var y=g;function b(e,t){return h(e.checkFlags,t)}var x=g;function S(e,...t){if(e===void 0)return!1;for(let n of e)if(t.includes(n.kind))return!0;return!1}function C(e){return e>=r.default.SyntaxKind.FirstAssignment&&e<=r.default.SyntaxKind.LastAssignment}function w(e){return String(+e)===e}function T(e){return e>=65536?2:1}var E=/* @__PURE__ */ (e=>(e[e.None=0]=`None`,e[e.Read=1]=`Read`,e[e.Write=2]=`Write`,e[e.Delete=4]=`Delete`,e[e.ReadWrite=3]=`ReadWrite`,e))(E||{});function D(e){let t=e.parent;switch(t.kind){case r.default.SyntaxKind.ArrayLiteralExpression:case r.default.SyntaxKind.SpreadAssignment:case r.default.SyntaxKind.SpreadElement:return O(t)?2:1;case r.default.SyntaxKind.ArrowFunction:return t.body===e?1:2;case r.default.SyntaxKind.AsExpression:case r.default.SyntaxKind.NonNullExpression:case r.default.SyntaxKind.ParenthesizedExpression:case r.default.SyntaxKind.TypeAssertionExpression:return D(t);case r.default.SyntaxKind.AwaitExpression:case r.default.SyntaxKind.CallExpression:case r.default.SyntaxKind.CaseClause:case r.default.SyntaxKind.ComputedPropertyName:case r.default.SyntaxKind.ConditionalExpression:case r.default.SyntaxKind.Decorator:case r.default.SyntaxKind.DoStatement:case r.default.SyntaxKind.ElementAccessExpression:case r.default.SyntaxKind.ExpressionStatement:case r.default.SyntaxKind.ForStatement:case r.default.SyntaxKind.IfStatement:case r.default.SyntaxKind.JsxElement:case r.default.SyntaxKind.JsxExpression:case r.default.SyntaxKind.JsxOpeningElement:case r.default.SyntaxKind.JsxSelfClosingElement:case r.default.SyntaxKind.JsxSpreadAttribute:case r.default.SyntaxKind.NewExpression:case r.default.SyntaxKind.ReturnStatement:case r.default.SyntaxKind.SwitchStatement:case r.default.SyntaxKind.TaggedTemplateExpression:case r.default.SyntaxKind.TemplateSpan:case r.default.SyntaxKind.ThrowStatement:case r.default.SyntaxKind.TypeOfExpression:case r.default.SyntaxKind.VoidExpression:case r.default.SyntaxKind.WhileStatement:case r.default.SyntaxKind.WithStatement:case r.default.SyntaxKind.YieldExpression:return 1;case r.default.SyntaxKind.BinaryExpression:return t.right===e?1:C(t.operatorToken.kind)?t.operatorToken.kind===r.default.SyntaxKind.EqualsToken?2:3:1;case r.default.SyntaxKind.BindingElement:case r.default.SyntaxKind.EnumMember:case r.default.SyntaxKind.JsxAttribute:case r.default.SyntaxKind.Parameter:case r.default.SyntaxKind.PropertyDeclaration:case r.default.SyntaxKind.VariableDeclaration:return+(t.initializer===e);case r.default.SyntaxKind.DeleteExpression:return 4;case r.default.SyntaxKind.ExportAssignment:return+!!t.isExportEquals;case r.default.SyntaxKind.ExpressionWithTypeArguments:return+(t.parent.token===r.default.SyntaxKind.ExtendsKeyword&&t.parent.parent.kind!==r.default.SyntaxKind.InterfaceDeclaration);case r.default.SyntaxKind.ForInStatement:case r.default.SyntaxKind.ForOfStatement:return t.initializer===e?2:1;case r.default.SyntaxKind.PostfixUnaryExpression:return 3;case r.default.SyntaxKind.PrefixUnaryExpression:return t.operator===r.default.SyntaxKind.PlusPlusToken||t.operator===r.default.SyntaxKind.MinusMinusToken?3:1;case r.default.SyntaxKind.PropertyAccessExpression:return+(t.expression===e);case r.default.SyntaxKind.PropertyAssignment:return t.name===e?0:O(t)?2:1;case r.default.SyntaxKind.ShorthandPropertyAssignment:return t.objectAssignmentInitializer===e?1:O(t)?2:1}return 0}function O(e){switch(e.kind){case r.default.SyntaxKind.ShorthandPropertyAssignment:if(e.objectAssignmentInitializer!==void 0)return!0;case r.default.SyntaxKind.PropertyAssignment:case r.default.SyntaxKind.SpreadAssignment:e=e.parent;break;case r.default.SyntaxKind.SpreadElement:if(e.parent.kind!==r.default.SyntaxKind.ArrayLiteralExpression)return!1;e=e.parent}for(;;)switch(e.parent.kind){case r.default.SyntaxKind.ArrayLiteralExpression:case r.default.SyntaxKind.ObjectLiteralExpression:e=e.parent;break;case r.default.SyntaxKind.BinaryExpression:return e.parent.left===e&&e.parent.operatorToken.kind===r.default.SyntaxKind.EqualsToken;case r.default.SyntaxKind.ForOfStatement:return e.parent.initializer===e;case r.default.SyntaxKind.PropertyAssignment:case r.default.SyntaxKind.SpreadAssignment:e=e.parent.parent;break;case r.default.SyntaxKind.SpreadElement:if(e.parent.parent.kind!==r.default.SyntaxKind.ArrayLiteralExpression)return!1;e=e.parent.parent;break;default:return!1}}function k(e){return e.kind===r.default.SyntaxKind.AccessorKeyword}function A(e){return e.kind===r.default.SyntaxKind.EndOfFileToken}function j(e){return e.kind===r.default.SyntaxKind.FalseKeyword}function M(e){return e.kind===r.default.SyntaxKind.JSDocText}function ee(e){return e.kind===r.default.SyntaxKind.PrefixUnaryExpression}function N(e){return e.kind===r.default.SyntaxKind.NullKeyword}function te(e){return e.kind===r.default.SyntaxKind.PrivateKeyword}function P(e){return e.kind===r.default.SyntaxKind.ProtectedKeyword}function F(e){return e.kind===r.default.SyntaxKind.PublicKeyword}function ne(e){return e.kind===r.default.SyntaxKind.ReadonlyKeyword}function I(e){return e.kind===r.default.SyntaxKind.StaticKeyword}function L(e){return e.kind===r.default.SyntaxKind.SuperKeyword}function R(e){return e.kind===r.default.SyntaxKind.ThisKeyword}function B(e){return e.kind===r.default.SyntaxKind.TrueKeyword}function V(e){return r.default.isVariableDeclaration(e)||r.default.isParameter(e)||r.default.isBindingElement(e)||r.default.isPropertyDeclaration(e)||r.default.isPropertyAssignment(e)||r.default.isEnumMember(e)}function re(e){return F(e)||te(e)||P(e)}function ie(e){return r.default.isGetAccessorDeclaration(e)||r.default.isSetAccessorDeclaration(e)}function ae(e){return r.default.isArrayBindingPattern(e)||r.default.isArrayLiteralExpression(e)}function oe(e){return pe(e)||ae(e)}function se(e){return r.default.isObjectBindingPattern(e)||r.default.isArrayBindingPattern(e)}function ce(e){return B(e)||j(e)}function H(e){return r.default.isClassDeclaration(e)||r.default.isClassExpression(e)}function U(e){return r.default.isIdentifier(e)||r.default.isPrivateIdentifier(e)||r.default.isStringLiteralLike(e)||r.default.isNumericLiteral(e)||r.default.isComputedPropertyName(e)||r.default.isElementAccessExpression(e)||se(e)||ue(e)}function le(e){return me(e)||H(e)||r.default.isInterfaceDeclaration(e)||r.default.isTypeAliasDeclaration(e)||r.default.isJSDocTemplateTag(e)}function ue(e){return r.default.isIdentifier(e)||xe(e)}function de(e){return r.default.isIdentifier(e)||ge(e)}function fe(e){return r.default.isIdentifier(e)||R(e)||_e(e)}function W(e){return r.default.isModuleBlock(e)||ye(e)}function pe(e){return r.default.isObjectBindingPattern(e)||r.default.isObjectLiteralExpression(e)}function me(e){return r.default.isCallSignatureDeclaration(e)||r.default.isConstructSignatureDeclaration(e)||r.default.isMethodSignature(e)||r.default.isIndexSignatureDeclaration(e)||r.default.isFunctionTypeNode(e)||r.default.isConstructorTypeNode(e)||r.default.isJSDocFunctionType(e)||r.default.isFunctionDeclaration(e)||r.default.isMethodDeclaration(e)||r.default.isConstructorDeclaration(e)||ie(e)||r.default.isFunctionExpression(e)||r.default.isArrowFunction(e)}function he(e){return r.default.isTypeReferenceNode(e.type)&&r.default.isIdentifier(e.type.typeName)&&e.type.typeName.escapedText===`const`}function ge(e){return r.default.isModuleDeclaration(e)&&r.default.isIdentifier(e.name)&&(e.body===void 0||de(e.body))}function _e(e){return r.default.isPropertyAccessExpression(e)&&fe(e.expression)}function ve(e){return`name`in e&&e.name!==void 0&&e.name!==null&&U(e.name)}function ye(e){return r.default.isModuleDeclaration(e)&&r.default.isIdentifier(e.name)&&e.body!==void 0&&W(e.body)}function be(e){switch(e.kind){case r.default.SyntaxKind.NoSubstitutionTemplateLiteral:case r.default.SyntaxKind.NumericLiteral:case r.default.SyntaxKind.StringLiteral:return!0;default:return!1}}function xe(e){return r.default.isPropertyAccessExpression(e)&&r.default.isIdentifier(e.name)&&ue(e.expression)}function Se(e){return r.default.isElementAccessExpression(e)&&L(e.expression)}function Ce(e){return r.default.isPropertyAccessExpression(e)&&L(e.expression)}function we(e){switch(e.kind){case r.default.SyntaxKind.ArrowFunction:case r.default.SyntaxKind.CallSignature:case r.default.SyntaxKind.ClassDeclaration:case r.default.SyntaxKind.ClassExpression:case r.default.SyntaxKind.Constructor:case r.default.SyntaxKind.ConstructorType:case r.default.SyntaxKind.ConstructSignature:case r.default.SyntaxKind.EnumDeclaration:case r.default.SyntaxKind.FunctionDeclaration:case r.default.SyntaxKind.FunctionExpression:case r.default.SyntaxKind.FunctionType:case r.default.SyntaxKind.GetAccessor:case r.default.SyntaxKind.MethodDeclaration:case r.default.SyntaxKind.MethodSignature:case r.default.SyntaxKind.ModuleDeclaration:case r.default.SyntaxKind.SetAccessor:return!0;case r.default.SyntaxKind.SourceFile:return r.default.isExternalModule(e);default:return!1}}var Te=r.default.TypeFlags.Intrinsic??r.default.TypeFlags.Any|r.default.TypeFlags.Unknown|r.default.TypeFlags.String|r.default.TypeFlags.Number|r.default.TypeFlags.BigInt|r.default.TypeFlags.Boolean|r.default.TypeFlags.BooleanLiteral|r.default.TypeFlags.ESSymbol|r.default.TypeFlags.Void|r.default.TypeFlags.Undefined|r.default.TypeFlags.Null|r.default.TypeFlags.Never|r.default.TypeFlags.NonPrimitive;function Ee(e){return x(e,Te)}function De(e){return x(e,r.default.TypeFlags.Freshable)}function Oe(e){return x(e,r.default.TypeFlags.Intersection)}function ke(e){return x(e,r.default.TypeFlags.Object)}function Ae(e){return x(e,r.default.TypeFlags.Union)}function je(e){return x(e,r.default.TypeFlags.UniqueESSymbol)}function Me(e){return ke(e)&&v(e,r.default.ObjectFlags.Tuple)}function Ne(e){return ke(e)&&v(e,r.default.ObjectFlags.Reference)}function Pe(e){return Ne(e)&&Me(e.target)}function Fe(e){return x(e,r.default.TypeFlags.BooleanLiteral)}function Ie(e){return Fe(e)&&e.intrinsicName===`false`}function Le(e){if(Ae(e)){let t=[];for(let n of e.types)t.push(...Le(n));return t}if(Oe(e)){let t;for(let n of e.types){let e=Le(n);if(e.length!==0){if(t!==void 0)return[];t=e}}return t===void 0?[]:t}return e.getCallSignatures()}function Re(e,t){return t.startsWith(`__`)?e.getProperties().find(e=>e.escapedName===t):e.getProperty(t)}function ze(e,t,n){let r=t&&e.getTypeOfSymbolAtLocation(t,t.valueDeclaration).getProperty(n),i=r&&e.getTypeOfSymbolAtLocation(r,r.valueDeclaration);return i&&je(i)?i.escapedName:`__@`+n}function Be(e){return e.arguments.length===3&&ue(e.arguments[0])&&be(e.arguments[1])&&r.default.isPropertyAccessExpression(e.expression)&&e.expression.name.escapedText===`defineProperty`&&r.default.isIdentifier(e.expression.expression)&&e.expression.expression.escapedText===`Object`}function Ve(e,t){let n=e;for(;;){let e=n.parent;e:switch(e.kind){case r.default.SyntaxKind.ArrayLiteralExpression:case r.default.SyntaxKind.ObjectLiteralExpression:case r.default.SyntaxKind.ParenthesizedExpression:case r.default.SyntaxKind.TemplateExpression:n=e;break;case r.default.SyntaxKind.AsExpression:case r.default.SyntaxKind.TypeAssertionExpression:return he(e);case r.default.SyntaxKind.CallExpression:{if(!r.default.isExpression(n))return!1;let i=t.getResolvedSignature(e);if(i===void 0)return!1;let a=e.arguments.indexOf(n);if(a<0)return!1;let o=i.getParameters()[a];if(o===void 0||!(`links`in o))return!1;let s=o.links.type?.getProperties()?.[a];return s===void 0||!(`links`in s)?!1:!!s.links&&b(s.links,r.default.CheckFlags.Readonly)}case r.default.SyntaxKind.PrefixUnaryExpression:if(n.kind!==r.default.SyntaxKind.NumericLiteral)return!1;switch(e.operator){case r.default.SyntaxKind.MinusToken:case r.default.SyntaxKind.PlusToken:n=e;break e;default:return!1}case r.default.SyntaxKind.PropertyAssignment:if(e.initializer!==n)return!1;n=e.parent;break;case r.default.SyntaxKind.ShorthandPropertyAssignment:n=e.parent;break;default:return!1}}}function He(e){return Oe(e)?e.types:[e]}var Ue=He;function We(e,t,n){let i=!1,a=!1;for(let o of Ye(e))if(Re(o,t)===void 0){if(((w(t)?n.getIndexInfoOfType(o,r.default.IndexKind.Number):void 0)??n.getIndexInfoOfType(o,r.default.IndexKind.String))?.isReadonly){if(i)return!0;a=!0}}else if(a||et(o,t,n))return!0;else i=!0;return!1}function Ge(e,t){return!!((e.flags&r.default.SymbolFlags.Accessor)===r.default.SymbolFlags.GetAccessor||e.declarations?.some(e=>m(e,r.default.ModifierFlags.Readonly)||r.default.isVariableDeclaration(e)&&_(e.parent,r.default.NodeFlags.Const)||r.default.isCallExpression(e)&&Qe(e,t)||r.default.isEnumMember(e)||(r.default.isPropertyAssignment(e)||r.default.isShorthandPropertyAssignment(e))&&Ve(e,t)))}function Ke(e){return Oe(e)||Ae(e)?e.types:[e]}function qe(e){return d(5,0)?e.isLiteral():x(e,r.default.TypeFlags.StringLiteral|r.default.TypeFlags.NumberLiteral|r.default.TypeFlags.BigIntLiteral)}var Je=Ke;function Ye(e){return Ae(e)?e.types:[e]}var Xe=Ye;function Ze(e,t,n){let r=e.getApparentType(e.getTypeOfSymbolAtLocation(t,n));if(t.valueDeclaration.dotDotDotToken&&(r=r.getNumberIndexType(),r===void 0))return!1;for(let e of Ye(r))if(e.getCallSignatures().length!==0)return!0;return!1}function Qe(e,t){if(!Be(e))return!1;let n=t.getTypeAtLocation(e.arguments[2]);if(n.getProperty(`value`)===void 0)return n.getProperty(`set`)===void 0;let i=n.getProperty(`writable`);return i!==void 0&&Ie(i.valueDeclaration!==void 0&&r.default.isPropertyAssignment(i.valueDeclaration)?t.getTypeAtLocation(i.valueDeclaration.initializer):t.getTypeOfSymbolAtLocation(i,e.arguments[2]))}function $e(e,t,n){if(!ke(e)||!v(e,r.default.ObjectFlags.Mapped))return;let i=e.symbol.declarations[0];if(i.readonlyToken!==void 0&&!/^__@[^@]+$/.test(t))return i.readonlyToken.kind!==r.default.SyntaxKind.MinusToken;let{modifiersType:a}=e;return a&&We(a,t,n)}function et(e,t,n){return He(e).some(e=>{let i=Re(e,t);if(i===void 0)return!1;if(i.flags&r.default.SymbolFlags.Transient){if(/^(?:[1-9]\d*|0)$/.test(t)&&Pe(e))return e.target.readonly;switch($e(e,t,n)){case!1:return!1;case!0:return!0}}return y(i,r.default.SymbolFlags.ValueModule)||Ge(i,n)})}function tt(e){return`originalKeywordKind`in e?e.originalKeywordKind:r.default.identifierToKeywordKind(e)}var nt=/* @__PURE__ */ (e=>(e[e.Namespace=1]=`Namespace`,e[e.Type=2]=`Type`,e[e.Value=4]=`Value`,e[e.Any=7]=`Any`,e[e.Import=8]=`Import`,e))(nt||{});function G(e){switch(e.parent.kind){case r.default.SyntaxKind.ClassDeclaration:case r.default.SyntaxKind.ClassExpression:return 6;case r.default.SyntaxKind.EnumDeclaration:return 7;case r.default.SyntaxKind.FunctionDeclaration:case r.default.SyntaxKind.FunctionExpression:return 4;case r.default.SyntaxKind.ImportClause:case r.default.SyntaxKind.NamespaceImport:return 15;case r.default.SyntaxKind.ImportEqualsDeclaration:case r.default.SyntaxKind.ImportSpecifier:return e.parent.name===e?15:void 0;case r.default.SyntaxKind.InterfaceDeclaration:case r.default.SyntaxKind.TypeAliasDeclaration:case r.default.SyntaxKind.TypeParameter:return 2;case r.default.SyntaxKind.ModuleDeclaration:return 1;case r.default.SyntaxKind.Parameter:if(e.parent.parent.kind===r.default.SyntaxKind.IndexSignature||tt(e)===r.default.SyntaxKind.ThisKeyword)return;case r.default.SyntaxKind.BindingElement:case r.default.SyntaxKind.VariableDeclaration:return e.parent.name===e?4:void 0}}function rt(e){if(e.kind===r.default.SyntaxKind.ComputedPropertyName){let t=it(e.expression);if(r.default.isPrefixUnaryExpression(t)){let e=!1;switch(t.operator){case r.default.SyntaxKind.MinusToken:e=!0;case r.default.SyntaxKind.PlusToken:return r.default.isNumericLiteral(t.operand)?`${e?`-`:``}${t.operand.text}`:r.default.isBigIntLiteral(t.operand)?`${e?`-`:``}${t.operand.text.slice(0,-1)}`:void 0;default:return}}return r.default.isBigIntLiteral(t)?t.text.slice(0,-1):be(t)?t.text:void 0}return e.kind===r.default.SyntaxKind.PrivateIdentifier?void 0:e.text}function it(e){for(;e.kind===r.default.SyntaxKind.ParenthesizedExpression;)e=e.expression;return e}var at=/* @__PURE__ */ (e=>(e[e.Namespace=1]=`Namespace`,e[e.Type=2]=`Type`,e[e.Value=4]=`Value`,e[e.Any=7]=`Any`,e[e.TypeQuery=8]=`TypeQuery`,e[e.ValueOrNamespace=5]=`ValueOrNamespace`,e))(at||{});function ot(e){let t=e.parent;switch(t.kind){case r.default.SyntaxKind.BindingElement:if(t.initializer===e)return 5;break;case r.default.SyntaxKind.BreakStatement:case r.default.SyntaxKind.ClassDeclaration:case r.default.SyntaxKind.ClassExpression:case r.default.SyntaxKind.ContinueStatement:case r.default.SyntaxKind.EnumDeclaration:case r.default.SyntaxKind.FunctionDeclaration:case r.default.SyntaxKind.FunctionExpression:case r.default.SyntaxKind.GetAccessor:case r.default.SyntaxKind.ImportClause:case r.default.SyntaxKind.ImportSpecifier:case r.default.SyntaxKind.InterfaceDeclaration:case r.default.SyntaxKind.JsxAttribute:case r.default.SyntaxKind.LabeledStatement:case r.default.SyntaxKind.MethodDeclaration:case r.default.SyntaxKind.MethodSignature:case r.default.SyntaxKind.ModuleDeclaration:case r.default.SyntaxKind.NamedTupleMember:case r.default.SyntaxKind.NamespaceExport:case r.default.SyntaxKind.NamespaceExportDeclaration:case r.default.SyntaxKind.NamespaceImport:case r.default.SyntaxKind.PropertySignature:case r.default.SyntaxKind.SetAccessor:case r.default.SyntaxKind.TypeAliasDeclaration:case r.default.SyntaxKind.TypeParameter:case r.default.SyntaxKind.TypePredicate:break;case r.default.SyntaxKind.EnumMember:case r.default.SyntaxKind.ImportEqualsDeclaration:case r.default.SyntaxKind.Parameter:case r.default.SyntaxKind.PropertyAccessExpression:case r.default.SyntaxKind.PropertyAssignment:case r.default.SyntaxKind.PropertyDeclaration:case r.default.SyntaxKind.VariableDeclaration:if(t.name!==e)return 5;break;case r.default.SyntaxKind.ExportAssignment:return 7;case r.default.SyntaxKind.ExportSpecifier:if(t.propertyName===void 0||t.propertyName===e)return 7;break;case r.default.SyntaxKind.ExpressionWithTypeArguments:return t.parent.token===r.default.SyntaxKind.ImplementsKeyword||t.parent.parent.kind===r.default.SyntaxKind.InterfaceDeclaration?2:4;case r.default.SyntaxKind.QualifiedName:if(t.left===e)return st(t).kind===r.default.SyntaxKind.TypeQuery?9:1;break;case r.default.SyntaxKind.TypeQuery:return 13;case r.default.SyntaxKind.TypeReference:return tt(e)===r.default.SyntaxKind.ConstKeyword?void 0:2;default:return 5}}function st(e){let t=e.parent;for(;t.kind===r.default.SyntaxKind.QualifiedName;)t=t.parent;return t}function ct(e){switch(e.kind){case r.default.SyntaxKind.Block:{let t=e.parent;return t.kind!==r.default.SyntaxKind.CatchClause&&(t.kind===r.default.SyntaxKind.SourceFile||!we(t))?2:0}case r.default.SyntaxKind.CaseBlock:case r.default.SyntaxKind.CatchClause:case r.default.SyntaxKind.ForInStatement:case r.default.SyntaxKind.ForOfStatement:case r.default.SyntaxKind.ForStatement:case r.default.SyntaxKind.WithStatement:return 2;default:return 0}}var lt=class{constructor(e){this.global=e}namespaceScopes=void 0;uses=[];variables=/* @__PURE__ */ new Map;#e=void 0;addUse(e){this.uses.push(e)}addVariable(e,t,n,r,i){let a=this.getDestinationScope(n).getVariables(),o={declaration:t,domain:i,exported:r},s=a.get(e);s===void 0?a.set(e,{declarations:[o],domain:i,uses:[]}):(s.domain|=i,s.declarations.push(o))}createOrReuseEnumScope(e,t){let n;return this.#e===void 0?this.#e=/* @__PURE__ */ new Map:n=this.#e.get(e),n===void 0&&(n=new ht(this),this.#e.set(e,n)),n}createOrReuseNamespaceScope(e,t,n,r){let i;return this.namespaceScopes===void 0?this.namespaceScopes=/* @__PURE__ */ new Map:i=this.namespaceScopes.get(e),i===void 0?(i=new vt(n,r,this),this.namespaceScopes.set(e,i)):i.refresh(n,r),i}end(e){this.namespaceScopes!==void 0&&this.namespaceScopes.forEach(t=>t.finish(e)),this.namespaceScopes=this.#e=void 0,this.applyUses(),this.variables.forEach(t=>{for(let n of t.declarations){let r={declarations:[],domain:n.domain,exported:n.exported,inGlobalScope:this.global,uses:[]};for(let e of t.declarations)e.domain&n.domain&&r.declarations.push(e.declaration);for(let e of t.uses)e.domain&n.domain&&r.uses.push(e);e(r,n.declaration,this)}})}getFunctionScope(){return this}getVariables(){return this.variables}markExported(e){}addUseToParent(e){}applyUse(e,t=this.variables){let n=t.get(e.location.text);return n===void 0||(n.domain&e.domain)===0?!1:(n.uses.push(e),!0)}applyUses(){for(let e of this.uses)this.applyUse(e)||this.addUseToParent(e);this.uses=[]}},ut=class extends lt{constructor(e,t){super(!1),this.parent=e,this.boundary=t}getDestinationScope(e){return this.boundary&e?this:this.parent.getDestinationScope(e)}addUseToParent(e){return this.parent.addUse(e,this)}},dt=class extends ut{#e;#t;constructor(e,t,n){super(n,1),this.#t=e,this.#e=t}addUse(e,t){if(t!==this.innerScope)return this.innerScope.addUse(e);if(e.domain&this.#e&&e.location.text===this.#t.text)this.uses.push(e);else return this.parent.addUse(e,this)}end(e){return this.innerScope.end(e),e({declarations:[this.#t],domain:this.#e,exported:!1,inGlobalScope:!1,uses:this.uses},this.#t,this)}getDestinationScope(){return this.innerScope}getFunctionScope(){return this.innerScope}},ft=class extends ut{#e;constructor(e,t){super(t,2),this.#e=e}getFunctionScope(){return this.#e}},pt=class extends dt{innerScope=new ut(this,1);constructor(e,t){super(e,6,t)}},mt=class extends ut{#e=0;constructor(e){super(e,8)}addUse(e){if(this.#e===2)this.uses.push(e);else return this.parent.addUse(e,this)}updateState(e){this.#e=e}},ht=class extends ut{constructor(e){super(e,1)}end(){this.applyUses()}},gt=class extends ut{constructor(e){super(e,1)}beginBody(){this.applyUses()}},_t=class extends dt{innerScope=new gt(this);constructor(e,t){super(e,4,t)}beginBody(){return this.innerScope.beginBody()}},vt=class extends ut{#e;#t=void 0;#n;#r=new ut(this,1);constructor(e,t,n){super(n,1),this.#e=e,this.#n=t}addUse(e,t){if(t!==this.#r)return this.#r.addUse(e);this.uses.push(e)}createOrReuseEnumScope(e,t){return!t&&(!this.#e||this.#n)?this.#r.createOrReuseEnumScope(e,t):super.createOrReuseEnumScope(e,t)}createOrReuseNamespaceScope(e,t,n,r){return!t&&(!this.#e||this.#n)?this.#r.createOrReuseNamespaceScope(e,t,n||this.#e,r):super.createOrReuseNamespaceScope(e,t,n||this.#e,r)}end(e){this.#r.end((t,n,r)=>{if(r!==this.#r||!t.exported&&(!this.#e||this.#t!==void 0&&!this.#t.has(n.text)))return e(t,n,r);let i=this.variables.get(n.text);if(i===void 0)this.variables.set(n.text,{declarations:t.declarations.map(bt),domain:t.domain,uses:[...t.uses]});else{e:for(let e of t.declarations)for(let t of i.declarations){if(t.declaration===e)continue e;i.declarations.push(bt(e))}i.domain|=t.domain;for(let e of t.uses)i.uses.includes(e)||i.uses.push(e)}}),this.applyUses(),this.#r=new ut(this,1)}finish(e){return super.end(e)}getDestinationScope(){return this.#r}markExported(e){this.#t===void 0&&(this.#t=/* @__PURE__ */ new Set),this.#t.add(e.text)}refresh(e,t){this.#e=e,this.#n=t}},yt=class extends lt{#e;#t=void 0;#n=new ut(this,1);constructor(e,t){super(t),this.#e=e}addUse(e,t){return t===this.#n?super.addUse(e):this.#n.addUse(e)}addVariable(e,t,n,r,i){return i&8?super.addVariable(e,t,n,r,i):this.#n.addVariable(e,t,n,r,i)}end(e){return this.#n.end((t,n)=>(t.exported||=this.#e||this.#t!==void 0&&this.#t.includes(n.text),t.inGlobalScope=this.global,e(t,n,this))),super.end((t,n,r)=>(t.exported||=r===this&&this.#t!==void 0&&this.#t.includes(n.text),e(t,n,r)))}getDestinationScope(){return this}markExported(e){this.#t===void 0?this.#t=[e.text]:this.#t.push(e.text)}};function bt(e){return{declaration:e,domain:G(e),exported:!0}}var xt=class{#e=/* @__PURE__ */ new Map;#t;getUsage(e){let t=(e,t)=>{this.#e.set(t,e)},n=r.default.isExternalModule(e);this.#t=new yt(e.isDeclarationFile&&n&&!St(e),!n);let i=e=>{if(ct(e))return a(e,new ft(this.#t.getFunctionScope(),this.#t),o);switch(e.kind){case r.default.SyntaxKind.ArrowFunction:case r.default.SyntaxKind.CallSignature:case r.default.SyntaxKind.Constructor:case r.default.SyntaxKind.ConstructorType:case r.default.SyntaxKind.ConstructSignature:case r.default.SyntaxKind.FunctionDeclaration:case r.default.SyntaxKind.FunctionExpression:case r.default.SyntaxKind.FunctionType:case r.default.SyntaxKind.GetAccessor:case r.default.SyntaxKind.MethodDeclaration:case r.default.SyntaxKind.MethodSignature:case r.default.SyntaxKind.SetAccessor:return this.#a(e,i,t);case r.default.SyntaxKind.ClassDeclaration:return this.#i(e,!0,6),a(e,new ut(this.#t,1));case r.default.SyntaxKind.ClassExpression:return a(e,e.name===void 0?new ut(this.#t,1):new pt(e.name,this.#t));case r.default.SyntaxKind.ConditionalType:return this.#r(e,i,t);case r.default.SyntaxKind.EnumDeclaration:return this.#i(e,!0,7),a(e,this.#t.createOrReuseEnumScope(e.name.text,S(e.modifiers,r.default.SyntaxKind.ExportKeyword)));case r.default.SyntaxKind.EnumMember:this.#t.addVariable(rt(e.name),e.name,1,!0,4);break;case r.default.SyntaxKind.ExportAssignment:if(e.expression.kind===r.default.SyntaxKind.Identifier)return this.#t.markExported(e.expression);break;case r.default.SyntaxKind.ExportSpecifier:return e.propertyName===void 0?this.#t.markExported(e.name):this.#t.markExported(e.propertyName,e.name);case r.default.SyntaxKind.Identifier:{let t=ot(e);t!==void 0&&this.#t.addUse({domain:t,location:e});return}case r.default.SyntaxKind.ImportClause:case r.default.SyntaxKind.ImportEqualsDeclaration:case r.default.SyntaxKind.ImportSpecifier:case r.default.SyntaxKind.NamespaceImport:this.#i(e,!1,15);break;case r.default.SyntaxKind.InterfaceDeclaration:case r.default.SyntaxKind.TypeAliasDeclaration:return this.#i(e,!0,2),a(e,new ut(this.#t,4));case r.default.SyntaxKind.MappedType:return a(e,new ut(this.#t,4));case r.default.SyntaxKind.ModuleDeclaration:return this.#o(e,a);case r.default.SyntaxKind.Parameter:e.parent.kind!==r.default.SyntaxKind.IndexSignature&&(e.name.kind!==r.default.SyntaxKind.Identifier||tt(e.name)!==r.default.SyntaxKind.ThisKeyword)&&this.#n(e.name,!1,!1);break;case r.default.SyntaxKind.TypeParameter:this.#t.addVariable(e.name.text,e.name,e.parent.kind===r.default.SyntaxKind.InferType?8:7,!1,2);break;case r.default.SyntaxKind.VariableDeclarationList:this.#s(e)}return r.default.forEachChild(e,i)},a=(e,n,r=s)=>{let i=this.#t;this.#t=n,r(e),this.#t.end(t),this.#t=i},o=e=>(e.kind===r.default.SyntaxKind.CatchClause&&e.variableDeclaration!==void 0&&this.#n(e.variableDeclaration.name,!0,!1),r.default.forEachChild(e,i));return r.default.forEachChild(e,i),this.#t.end(t),this.#e;function s(e){return r.default.forEachChild(e,i)}}#n(e,t,n){if(e.kind===r.default.SyntaxKind.Identifier)return this.#t.addVariable(e.text,e,t?3:1,n,4);Ct(e,e=>{this.#t.addVariable(e.name.text,e.name,t?3:1,n,4)})}#r(e,t,n){let r=this.#t,i=this.#t=new mt(r);t(e.checkType),i.updateState(1),t(e.extendsType),i.updateState(2),t(e.trueType),i.updateState(3),t(e.falseType),i.end(n),this.#t=r}#i(e,t,n){e.name!==void 0&&this.#t.addVariable(e.name.text,e.name,t?3:1,S(e.modifiers,r.default.SyntaxKind.ExportKeyword),n)}#a(e,t,n){r.default.canHaveDecorators(e)&&r.default.getDecorators(e)?.forEach(t);let i=this.#t;e.kind===r.default.SyntaxKind.FunctionDeclaration&&this.#i(e,!1,4);let a=this.#t=e.kind===r.default.SyntaxKind.FunctionExpression&&e.name!==void 0?new _t(e.name,i):new gt(i);e.name!==void 0&&t(e.name),e.typeParameters!==void 0&&e.typeParameters.forEach(t),e.parameters.forEach(t),e.type!==void 0&&t(e.type),e.body!==void 0&&(a.beginBody(),t(e.body)),a.end(n),this.#t=i}#o(e,t){if(e.flags&r.default.NodeFlags.GlobalAugmentation)return t(e,this.#t.createOrReuseNamespaceScope(`-global`,!1,!0,!1));if(e.name.kind===r.default.SyntaxKind.Identifier){let n=Tt(e);this.#t.addVariable(e.name.text,e.name,1,n,5);let i=S(e.modifiers,r.default.SyntaxKind.DeclareKeyword);return t(e,this.#t.createOrReuseNamespaceScope(e.name.text,n,i,i&&K(e)))}return t(e,this.#t.createOrReuseNamespaceScope(`"${e.name.text}"`,!1,!0,K(e)))}#s(e){let t=wt(e),n=e.parent.kind===r.default.SyntaxKind.VariableStatement&&S(e.parent.modifiers,r.default.SyntaxKind.ExportKeyword);for(let r of e.declarations)this.#n(r.name,t,n)}};function St(e){for(let t of e.statements)if(t.kind===r.default.SyntaxKind.ExportDeclaration||t.kind===r.default.SyntaxKind.ExportAssignment)return!0;return!1}function Ct(e,t){for(let n of e.elements){if(n.kind!==r.default.SyntaxKind.BindingElement)continue;let e;if(e=n.name.kind===r.default.SyntaxKind.Identifier?t(n):Ct(n.name,t),e)return e}}function wt(e){return(e.flags&r.default.NodeFlags.BlockScoped)!==0}function Tt(e){return e.parent.kind===r.default.SyntaxKind.ModuleDeclaration||S(e.modifiers,r.default.SyntaxKind.ExportKeyword)}function K(e){return e.body?.kind===r.default.SyntaxKind.ModuleBlock&&St(e.body)}e.AccessKind=E,e.DeclarationDomain=nt,e.UsageDomain=at,e.collectVariableUsage=function(e){return new xt().getUsage(e)},e.forEachComment=function(e,t,n=e.getSourceFile()){let r=n.text;for(let{end:i,kind:o,pos:s}of a(e,n))t(r,{end:i,kind:o,pos:s})},e.forEachToken=function(e,t,n=e.getSourceFile()){for(let r of i(e,n))t(r)},e.getAccessKind=D,e.getCallSignaturesOfType=Le,e.getPropertyOfType=Re,e.getWellKnownSymbolPropertyOfType=function(e,t,n){let i=`__@`+t;for(let a of e.getProperties()){if(!a.name.startsWith(i))continue;let e=a.valueDeclaration??a.getDeclarations()?.[0];if(!e||!ve(e)||e.name===void 0||!r.default.isComputedPropertyName(e.name))continue;let o=n.getApparentType(n.getTypeAtLocation(e.name.expression)).symbol;if(a.escapedName===ze(n,o,t))return a}},e.hasDecorators=function(e){return r.default.isParameter(e)||r.default.isPropertyDeclaration(e)||r.default.isMethodDeclaration(e)||r.default.isGetAccessorDeclaration(e)||r.default.isSetAccessorDeclaration(e)||r.default.isClassExpression(e)||r.default.isClassDeclaration(e)},e.hasExpressionInitializer=V,e.hasInitializer=function(e){return V(e)||r.default.isForStatement(e)||r.default.isForInStatement(e)||r.default.isForOfStatement(e)||r.default.isJsxAttribute(e)},e.hasJSDoc=function(e){return!!(ie(e)||r.default.isArrowFunction(e)||r.default.isBlock(e)||r.default.isBreakStatement(e)||r.default.isCallSignatureDeclaration(e)||r.default.isCaseClause(e)||H(e)||r.default.isConstructorDeclaration(e)||r.default.isConstructorTypeNode(e)||r.default.isConstructSignatureDeclaration(e)||r.default.isContinueStatement(e)||r.default.isDebuggerStatement(e)||r.default.isDoStatement(e)||r.default.isEmptyStatement(e)||A(e)||r.default.isEnumDeclaration(e)||r.default.isEnumMember(e)||r.default.isExportAssignment(e)||r.default.isExportDeclaration(e)||r.default.isExportSpecifier(e)||r.default.isExpressionStatement(e)||r.default.isForInStatement(e)||r.default.isForOfStatement(e)||r.default.isForStatement(e)||r.default.isFunctionDeclaration(e)||r.default.isFunctionExpression(e)||r.default.isFunctionTypeNode(e)||r.default.isIfStatement(e)||r.default.isImportDeclaration(e)||r.default.isImportEqualsDeclaration(e)||r.default.isIndexSignatureDeclaration(e)||r.default.isInterfaceDeclaration(e)||r.default.isJSDocFunctionType(e)||r.default.isLabeledStatement(e)||r.default.isMethodDeclaration(e)||r.default.isMethodSignature(e)||r.default.isModuleDeclaration(e)||r.default.isNamedTupleMember(e)||r.default.isNamespaceExportDeclaration(e)||r.default.isParameter(e)||r.default.isParenthesizedExpression(e)||r.default.isPropertyAssignment(e)||r.default.isPropertyDeclaration(e)||r.default.isPropertySignature(e)||r.default.isReturnStatement(e)||r.default.isShorthandPropertyAssignment(e)||r.default.isSpreadAssignment(e)||r.default.isSwitchStatement(e)||r.default.isThrowStatement(e)||r.default.isTryStatement(e)||r.default.isTypeAliasDeclaration(e)||r.default.isVariableDeclaration(e)||r.default.isVariableStatement(e)||r.default.isWhileStatement(e)||r.default.isWithStatement(e)||d(4,4)&&r.default.isClassStaticBlockDeclaration(e)||d(5,0)&&(r.default.isBinaryExpression(e)||r.default.isElementAccessExpression(e)||r.default.isIdentifier(e)||r.default.isJSDocSignature(e)||r.default.isObjectLiteralExpression(e)||r.default.isPropertyAccessExpression(e)||r.default.isTypeParameterDeclaration(e)))},e.hasModifiers=function(e){return r.default.isTypeParameterDeclaration(e)||r.default.isParameter(e)||r.default.isConstructorTypeNode(e)||r.default.isPropertySignature(e)||r.default.isPropertyDeclaration(e)||r.default.isMethodSignature(e)||r.default.isMethodDeclaration(e)||r.default.isConstructorDeclaration(e)||r.default.isGetAccessorDeclaration(e)||r.default.isSetAccessorDeclaration(e)||r.default.isIndexSignatureDeclaration(e)||r.default.isFunctionExpression(e)||r.default.isArrowFunction(e)||r.default.isClassExpression(e)||r.default.isVariableStatement(e)||r.default.isFunctionDeclaration(e)||r.default.isClassDeclaration(e)||r.default.isInterfaceDeclaration(e)||r.default.isTypeAliasDeclaration(e)||r.default.isEnumDeclaration(e)||r.default.isModuleDeclaration(e)||r.default.isImportEqualsDeclaration(e)||r.default.isImportDeclaration(e)||r.default.isExportAssignment(e)||r.default.isExportDeclaration(e)},e.hasType=function(e){return me(e)||r.default.isVariableDeclaration(e)||r.default.isParameter(e)||r.default.isPropertySignature(e)||r.default.isPropertyDeclaration(e)||r.default.isTypePredicateNode(e)||r.default.isParenthesizedTypeNode(e)||r.default.isTypeOperatorNode(e)||r.default.isMappedTypeNode(e)||r.default.isAssertionExpression(e)||r.default.isTypeAliasDeclaration(e)||r.default.isJSDocTypeExpression(e)||r.default.isJSDocNonNullableType(e)||r.default.isJSDocNullableType(e)||r.default.isJSDocOptionalType(e)||r.default.isJSDocVariadicType(e)},e.hasTypeArguments=function(e){return r.default.isCallExpression(e)||r.default.isNewExpression(e)||r.default.isTaggedTemplateExpression(e)||r.default.isJsxOpeningElement(e)||r.default.isJsxSelfClosingElement(e)},e.includesModifier=S,e.intersectionConstituents=He,e.intersectionTypeParts=Ue,e.isAbstractKeyword=function(e){return e.kind===r.default.SyntaxKind.AbstractKeyword},e.isAccessExpression=function(e){return r.default.isPropertyAccessExpression(e)||r.default.isElementAccessExpression(e)},e.isAccessibilityModifier=re,e.isAccessorDeclaration=ie,e.isAccessorKeyword=k,e.isAnyKeyword=function(e){return e.kind===r.default.SyntaxKind.AnyKeyword},e.isArrayBindingElement=function(e){return r.default.isBindingElement(e)||r.default.isOmittedExpression(e)},e.isArrayBindingOrAssignmentPattern=ae,e.isAssertKeyword=function(e){return e.kind===r.default.SyntaxKind.AssertKeyword},e.isAssertsKeyword=function(e){return e.kind===r.default.SyntaxKind.AssertsKeyword},e.isAssignmentKind=C,e.isAssignmentPattern=function(e){return r.default.isObjectLiteralExpression(e)||r.default.isArrayLiteralExpression(e)},e.isAsyncKeyword=function(e){return e.kind===r.default.SyntaxKind.AsyncKeyword},e.isAwaitKeyword=function(e){return e.kind===r.default.SyntaxKind.AwaitKeyword},e.isBigIntKeyword=function(e){return e.kind===r.default.SyntaxKind.BigIntKeyword},e.isBigIntLiteralType=function(e){return x(e,r.default.TypeFlags.BigIntLiteral)},e.isBindingOrAssignmentElementRestIndicator=function(e){return r.default.isSpreadElement(e)||r.default.isSpreadAssignment(e)?!0:d(4,4)?r.default.isDotDotDotToken(e):!1},e.isBindingOrAssignmentElementTarget=function(e){return oe(e)||r.default.isIdentifier(e)||r.default.isPropertyAccessExpression(e)||r.default.isElementAccessExpression(e)||r.default.isOmittedExpression(e)},e.isBindingOrAssignmentPattern=oe,e.isBindingPattern=se,e.isBlockLike=function(e){return r.default.isSourceFile(e)||r.default.isBlock(e)||r.default.isModuleBlock(e)||r.default.isCaseOrDefaultClause(e)},e.isBooleanKeyword=function(e){return e.kind===r.default.SyntaxKind.BooleanKeyword},e.isBooleanLiteral=ce,e.isBooleanLiteralType=Fe,e.isClassLikeDeclaration=H,e.isClassMemberModifier=function(e){return re(e)||ne(e)||I(e)||k(e)},e.isColonToken=function(e){return e.kind===r.default.SyntaxKind.ColonToken},e.isCompilerOptionEnabled=f,e.isConditionalType=function(e){return x(e,r.default.TypeFlags.Conditional)},e.isConstAssertionExpression=he,e.isConstKeyword=function(e){return e.kind===r.default.SyntaxKind.ConstKeyword},e.isDeclarationName=U,e.isDeclarationWithTypeParameterChildren=le,e.isDeclarationWithTypeParameters=function(e){return le(e)||r.default.isJSDocTypedefTag(e)||r.default.isJSDocCallbackTag(e)||r.default.isJSDocSignature(e)},e.isDeclareKeyword=function(e){return e.kind===r.default.SyntaxKind.DeclareKeyword},e.isDefaultKeyword=function(e){return e.kind===r.default.SyntaxKind.DefaultKeyword},e.isDestructuringPattern=function(e){return se(e)||r.default.isObjectLiteralExpression(e)||r.default.isArrayLiteralExpression(e)},e.isDotToken=function(e){return e.kind===r.default.SyntaxKind.DotToken},e.isEndOfFileToken=A,e.isEntityNameExpression=ue,e.isEntityNameOrEntityNameExpression=function(e){return r.default.isEntityName(e)||ue(e)},e.isEnumType=function(e){return x(e,r.default.TypeFlags.Enum)},e.isEqualsGreaterThanToken=function(e){return e.kind===r.default.SyntaxKind.EqualsGreaterThanToken},e.isEqualsToken=function(e){return e.kind===r.default.SyntaxKind.EqualsToken},e.isEvolvingArrayType=function(e){return ke(e)&&v(e,r.default.ObjectFlags.EvolvingArray)},e.isExclamationToken=function(e){return e.kind===r.default.SyntaxKind.ExclamationToken},e.isExportKeyword=function(e){return e.kind===r.default.SyntaxKind.ExportKeyword},e.isFalseKeyword=function(e){return e.kind===r.default.SyntaxKind.FalseKeyword},e.isFalseLiteral=j,e.isFalseLiteralType=Ie,e.isFalsyType=function(e){return x(e,r.default.TypeFlags.Undefined|r.default.TypeFlags.Null|r.default.TypeFlags.Void)?!0:qe(e)?typeof e.value==`object`?e.value.base10Value===`0`:!e.value:Ie(e)},e.isForInOrOfStatement=function(e){return r.default.isForInStatement(e)||r.default.isForOfStatement(e)},e.isFreshableIntrinsicType=function(e){return Ee(e)&&De(e)},e.isFreshableType=De,e.isFunctionLikeDeclaration=function(e){return r.default.isFunctionDeclaration(e)||r.default.isMethodDeclaration(e)||r.default.isGetAccessorDeclaration(e)||r.default.isSetAccessorDeclaration(e)||r.default.isConstructorDeclaration(e)||r.default.isFunctionExpression(e)||r.default.isArrowFunction(e)},e.isFunctionScopeBoundary=we,e.isImportExpression=function(e){return e.kind===r.default.SyntaxKind.ImportKeyword},e.isImportKeyword=function(e){return e.kind===r.default.SyntaxKind.ImportKeyword},e.isInKeyword=function(e){return e.kind===r.default.SyntaxKind.InKeyword},e.isIndexType=function(e){return x(e,r.default.TypeFlags.Index)},e.isIndexedAccessType=function(e){return x(e,r.default.TypeFlags.IndexedAccess)},e.isInstantiableType=function(e){return x(e,r.default.TypeFlags.Instantiable)},e.isIntersectionType=Oe,e.isIntrinsicAnyType=function(e){return x(e,r.default.TypeFlags.Any)},e.isIntrinsicBigIntType=function(e){return x(e,r.default.TypeFlags.BigInt)},e.isIntrinsicBooleanType=function(e){return x(e,r.default.TypeFlags.Boolean)},e.isIntrinsicESSymbolType=function(e){return x(e,r.default.TypeFlags.ESSymbol)},e.isIntrinsicErrorType=function(e){return Ee(e)&&e.intrinsicName===`error`},e.isIntrinsicNeverType=function(e){return x(e,r.default.TypeFlags.Never)},e.isIntrinsicNonPrimitiveType=function(e){return x(e,r.default.TypeFlags.NonPrimitive)},e.isIntrinsicNullType=function(e){return x(e,r.default.TypeFlags.Null)},e.isIntrinsicNumberType=function(e){return x(e,r.default.TypeFlags.Number)},e.isIntrinsicStringType=function(e){return x(e,r.default.TypeFlags.String)},e.isIntrinsicType=Ee,e.isIntrinsicUndefinedType=function(e){return x(e,r.default.TypeFlags.Undefined)},e.isIntrinsicUnknownType=function(e){return x(e,r.default.TypeFlags.Unknown)},e.isIntrinsicVoidType=function(e){return x(e,r.default.TypeFlags.Void)},e.isIterationStatement=function(e){switch(e.kind){case r.default.SyntaxKind.DoStatement:case r.default.SyntaxKind.ForInStatement:case r.default.SyntaxKind.ForOfStatement:case r.default.SyntaxKind.ForStatement:case r.default.SyntaxKind.WhileStatement:return!0;default:return!1}},e.isJSDocComment=function(e){return M(e)?!0:d(4,4)?r.default.isJSDocLink(e)||r.default.isJSDocLinkCode(e)||r.default.isJSDocLinkPlain(e):!1},e.isJSDocNamespaceBody=de,e.isJSDocNamespaceDeclaration=ge,e.isJSDocText=M,e.isJSDocTypeReferencingNode=function(e){return r.default.isJSDocVariadicType(e)||r.default.isJSDocOptionalType(e)||r.default.isJSDocNullableType(e)||r.default.isJSDocNonNullableType(e)},e.isJsonMinusNumericLiteral=ee,e.isJsonObjectExpression=function(e){return r.default.isObjectLiteralExpression(e)||r.default.isArrayLiteralExpression(e)||ee(e)||r.default.isNumericLiteral(e)||r.default.isStringLiteral(e)||ce(e)||N(e)},e.isJsxAttributeLike=function(e){return r.default.isJsxAttribute(e)||r.default.isJsxSpreadAttribute(e)},e.isJsxAttributeValue=function(e){return r.default.isStringLiteral(e)||r.default.isJsxExpression(e)||r.default.isJsxElement(e)||r.default.isJsxSelfClosingElement(e)||r.default.isJsxFragment(e)},e.isJsxChild=function(e){return r.default.isJsxText(e)||r.default.isJsxExpression(e)||r.default.isJsxElement(e)||r.default.isJsxSelfClosingElement(e)||r.default.isJsxFragment(e)},e.isJsxTagNameExpression=fe,e.isJsxTagNamePropertyAccess=_e,e.isLiteralToken=function(e){return r.default.isNumericLiteral(e)||r.default.isBigIntLiteral(e)||r.default.isStringLiteral(e)||r.default.isJsxText(e)||r.default.isRegularExpressionLiteral(e)||r.default.isNoSubstitutionTemplateLiteral(e)},e.isLiteralType=function(e){return x(e,r.default.TypeFlags.Literal)},e.isModifierFlagSet=m,e.isModuleBody=function(e){return W(e)||de(e)},e.isModuleName=function(e){return r.default.isIdentifier(e)||r.default.isStringLiteral(e)},e.isModuleReference=function(e){return r.default.isEntityName(e)||r.default.isExternalModuleReference(e)},e.isNamedDeclarationWithName=ve,e.isNamedImportBindings=function(e){return r.default.isNamespaceImport(e)||r.default.isNamedImports(e)},e.isNamedImportsOrExports=function(e){return r.default.isNamedImports(e)||r.default.isNamedExports(e)},e.isNamespaceBody=W,e.isNamespaceDeclaration=ye,e.isNeverKeyword=function(e){return e.kind===r.default.SyntaxKind.NeverKeyword},e.isNodeFlagSet=_,e.isNullKeyword=function(e){return e.kind===r.default.SyntaxKind.NullKeyword},e.isNullLiteral=N,e.isNumberKeyword=function(e){return e.kind===r.default.SyntaxKind.NumberKeyword},e.isNumberLiteralType=function(e){return x(e,r.default.TypeFlags.NumberLiteral)},e.isNumericOrStringLikeLiteral=be,e.isNumericPropertyName=w,e.isObjectBindingOrAssignmentElement=function(e){return r.default.isBindingElement(e)||r.default.isPropertyAssignment(e)||r.default.isShorthandPropertyAssignment(e)||r.default.isSpreadAssignment(e)},e.isObjectBindingOrAssignmentPattern=pe,e.isObjectFlagSet=v,e.isObjectKeyword=function(e){return e.kind===r.default.SyntaxKind.ObjectKeyword},e.isObjectType=ke,e.isObjectTypeDeclaration=function(e){return H(e)||r.default.isInterfaceDeclaration(e)||r.default.isTypeLiteralNode(e)},e.isOutKeyword=function(e){return e.kind===r.default.SyntaxKind.OutKeyword},e.isOverrideKeyword=function(e){return e.kind===r.default.SyntaxKind.OverrideKeyword},e.isParameterPropertyModifier=function(e){return re(e)||ne(e)},e.isPrivateKeyword=te,e.isPropertyAccessEntityNameExpression=xe,e.isPropertyNameLiteral=function(e){return r.default.isIdentifier(e)||r.default.isStringLiteralLike(e)||r.default.isNumericLiteral(e)},e.isPropertyReadonlyInType=We,e.isProtectedKeyword=P,e.isPseudoLiteralToken=function(e){return r.default.isTemplateHead(e)||r.default.isTemplateMiddle(e)||r.default.isTemplateTail(e)},e.isPublicKeyword=F,e.isQuestionDotToken=function(e){return e.kind===r.default.SyntaxKind.QuestionDotToken},e.isQuestionToken=function(e){return e.kind===r.default.SyntaxKind.QuestionToken},e.isReadonlyKeyword=ne,e.isSignatureDeclaration=me,e.isStaticKeyword=I,e.isStrictCompilerOptionEnabled=p,e.isStringKeyword=function(e){return e.kind===r.default.SyntaxKind.StringKeyword},e.isStringLiteralType=function(e){return x(e,r.default.TypeFlags.StringLiteral)},e.isStringMappingType=function(e){return x(e,r.default.TypeFlags.StringMapping)},e.isSubstitutionType=function(e){return x(e,r.default.TypeFlags.Substitution)},e.isSuperElementAccessExpression=Se,e.isSuperExpression=L,e.isSuperKeyword=function(e){return e.kind===r.default.SyntaxKind.SuperKeyword},e.isSuperProperty=function(e){return Ce(e)||Se(e)},e.isSuperPropertyAccessExpression=Ce,e.isSymbolFlagSet=y,e.isSymbolKeyword=function(e){return e.kind===r.default.SyntaxKind.SymbolKeyword},e.isSyntaxList=function(e){return e.kind===r.default.SyntaxKind.SyntaxList},e.isTemplateLiteralType=function(e){return x(e,r.default.TypeFlags.TemplateLiteral)},e.isThenableType=function(e,t,n=e.getTypeAtLocation(t)){for(let r of Ye(e.getApparentType(n))){let n=r.getProperty(`then`);if(n===void 0)continue;let i=e.getTypeOfSymbolAtLocation(n,t);for(let n of Ye(i))for(let r of n.getCallSignatures())if(r.parameters.length!==0&&Ze(e,r.parameters[0],t))return!0}return!1},e.isThisExpression=R,e.isThisKeyword=function(e){return e.kind===r.default.SyntaxKind.ThisKeyword},e.isTransientSymbolLinksFlagSet=b,e.isTrueKeyword=function(e){return e.kind===r.default.SyntaxKind.TrueKeyword},e.isTrueLiteral=B,e.isTrueLiteralType=function(e){return Fe(e)&&e.intrinsicName===`true`},e.isTupleType=Me,e.isTupleTypeReference=Pe,e.isTypeFlagSet=x,e.isTypeOnlyCompatibleAliasDeclaration=function(e){return!!(r.default.isImportClause(e)||r.default.isImportEqualsDeclaration(e)||r.default.isNamespaceImport(e)||r.default.isImportOrExportSpecifier(e)||d(5,0)&&(r.default.isExportDeclaration(e)||r.default.isNamespaceExport(e)))},e.isTypeParameter=function(e){return x(e,r.default.TypeFlags.TypeParameter)},e.isTypeReference=Ne,e.isTypeReferenceType=function(e){return r.default.isTypeReferenceNode(e)||r.default.isExpressionWithTypeArguments(e)},e.isTypeVariable=function(e){return x(e,r.default.TypeFlags.TypeVariable)},e.isUndefinedKeyword=function(e){return e.kind===r.default.SyntaxKind.UndefinedKeyword},e.isUnionOrIntersectionType=function(e){return x(e,r.default.TypeFlags.UnionOrIntersection)},e.isUnionOrIntersectionTypeNode=function(e){return r.default.isUnionTypeNode(e)||r.default.isIntersectionTypeNode(e)},e.isUnionType=Ae,e.isUniqueESSymbolType=je,e.isUnknownKeyword=function(e){return e.kind===r.default.SyntaxKind.UnknownKeyword},e.isValidPropertyAccess=function(e,t=r.default.ScriptTarget.Latest){if(e.length===0)return!1;let n=e.codePointAt(0);if(!r.default.isIdentifierStart(n,t))return!1;for(let i=T(n);i<e.length;i+=T(n))if(n=e.codePointAt(i),!r.default.isIdentifierPart(n,t))return!1;return!0},e.isVariableLikeDeclaration=function(e){return r.default.isVariableDeclaration(e)||r.default.isParameter(e)||r.default.isBindingElement(e)||r.default.isPropertyDeclaration(e)||r.default.isPropertyAssignment(e)||r.default.isPropertySignature(e)||r.default.isJsxAttribute(e)||r.default.isShorthandPropertyAssignment(e)||r.default.isEnumMember(e)||r.default.isJSDocPropertyTag(e)||r.default.isJSDocParameterTag(e)},e.isVoidKeyword=function(e){return e.kind===r.default.SyntaxKind.VoidKeyword},e.iterateComments=a,e.iterateTokens=i,e.symbolHasReadonlyDeclaration=Ge,e.typeConstituents=Ke,e.typeIsLiteral=qe,e.typeParts=Je,e.unionConstituents=Ye,e.unionTypeParts=Xe})),nhe=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=n&&n.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!=="default"&&r(n,t,a[o]);return i(n,t),n}})();Object.defineProperty(e,"__esModule",{value:!0}),e.hasBaseTypes=u,e.isNumberLike=d,e.isStringLike=f,e.matchesTypeOrBaseType=p;let o=s8(),s=a(s8()),c=a(z(`typescript`));function l(e,t){if(!s.isObjectType(t))return[];let n=s.isTypeReference(t)?t.target:t,r=s.isObjectFlagSet(n,c.ObjectFlags.Interface|c.ObjectFlags.Class)&&n;return r?e.getBaseTypes(r):[]}function u(e){return(0,o.isObjectType)(e)&&(0,o.isObjectFlagSet)(e,c.ObjectFlags.Interface|c.ObjectFlags.Class)}function d(e){return s.unionConstituents(e).every(e=>s.intersectionConstituents(e).some(e=>s.isTypeFlagSet(e,c.TypeFlags.NumberLike)))}function f(e){return s.unionConstituents(e).every(e=>s.intersectionConstituents(e).some(e=>s.isTypeFlagSet(e,c.TypeFlags.StringLike)))}function p(e,t,n,r=/* @__PURE__ */ new Set){return!r.has(n)&&(r.add(n),t(n)?!0:l(e.program.getTypeChecker(),n).some(n=>p(e,t,n,r)))}})),c8=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isTypeImport=r;let t=lk(),n=Y();function r(e){return e?.type===t.DefinitionType.ImportBinding&&(e.parent.importKind===`type`||e.node.type===n.AST_NODE_TYPES.ImportSpecifier&&e.node.importKind===`type`)}})),rhe=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.referenceContainsTypePredicate=n;let t=Y();function n(e){switch(e.type){case t.AST_NODE_TYPES.TSTypePredicate:return!0;case t.AST_NODE_TYPES.TSQualifiedName:case t.AST_NODE_TYPES.Identifier:return n(e.parent);default:return!1}}})),l8=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.referenceContainsTypeQuery=n;let t=Y();function n(e){switch(e.type){case t.AST_NODE_TYPES.TSTypeQuery:return!0;case t.AST_NODE_TYPES.TSQualifiedName:case t.AST_NODE_TYPES.Identifier:return n(e.parent);default:return!1}}})),u8=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isMergedTypeValueVariable=i,e.isTypeOnlyReference=a;let t=lk(),n=rhe(),r=l8();function i(e){return`isTypeVariable`in e&&`isValueVariable`in e&&e.isTypeVariable&&e.isValueVariable}function a(e,i){return(0,r.referenceContainsTypeQuery)(i.identifier)||(0,n.referenceContainsTypePredicate)(i.identifier)?!0:e.defs.some(e=>e.type===t.DefinitionType.Variable)&&i.isValueReference===!1}})),ihe=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.collectVariables=m;let t=lk(),n=Y(),r=c8(),i=u8();var a=class extends t.Visitor{static RESULTS_CACHE=/* @__PURE__ */ new WeakMap;ClassDeclaration=this.visitClass;ClassExpression=this.visitClass;ForInStatement=this.visitForInForOf;ForOfStatement=this.visitForInForOf;FunctionDeclaration=this.visitFunction;FunctionExpression=this.visitFunction;MethodDefinition=this.visitSetter;Property=this.visitSetter;TSCallSignatureDeclaration=this.visitFunctionTypeSignature;TSConstructorType=this.visitFunctionTypeSignature;TSConstructSignatureDeclaration=this.visitFunctionTypeSignature;TSDeclareFunction=this.visitFunctionTypeSignature;TSEmptyBodyFunctionExpression=this.visitFunctionTypeSignature;TSFunctionType=this.visitFunctionTypeSignature;TSMethodSignature=this.visitFunctionTypeSignature;#e;constructor(e){super({visitChildrenEvenIfSelectorExists:!0}),this.#e=e}static collectUnusedVariables(e,t){let n=this.RESULTS_CACHE.get(e);if(n)return n;let r=new this(t);r.visit(e);let i=r.collectUnusedVariables(r.getScope(e));return this.RESULTS_CACHE.set(e,i),i}Identifier(e){let t=this.getScope(e);t.type===n.TSESLint.Scope.ScopeType.function&&e.name===`this`&&`params`in t.block&&t.block.params.includes(e)&&this.markVariableAsUsed(e)}TSEnumDeclaration(e){let t=this.getScope(e);for(let e of t.variables)this.markVariableAsUsed(e)}TSMappedType(e){this.markVariableAsUsed(e.key)}TSModuleDeclaration(e){e.kind===`global`&&this.markVariableAsUsed(`global`,e.parent)}TSParameterProperty(e){let t;switch(e.parameter.type){case n.AST_NODE_TYPES.AssignmentPattern:t=e.parameter.left;break;case n.AST_NODE_TYPES.Identifier:t=e.parameter}this.markVariableAsUsed(t)}collectUnusedVariables(e,n={unusedVariables:/* @__PURE__ */ new Set,usedVariables:/* @__PURE__ */ new Set}){if(!e.functionExpressionScope)for(let r of e.variables)r instanceof t.ImplicitLibVariable||(r.eslintUsed||d(r)||u(r)||p(r)?n.usedVariables.add(r):n.unusedVariables.add(r));for(let t of e.childScopes)this.collectUnusedVariables(t,n);return n}getScope(e){let r=e.type!==n.AST_NODE_TYPES.Program,i=e;for(;i;){let e=this.#e.acquire(i,r);if(e)return e.type===t.ScopeType.functionExpressionName?e.childScopes[0]:e;i=i.parent}return this.#e.scopes[0]}markVariableAsUsed(e,t){if(typeof e!=`string`&&!(`type`in e)){e.eslintUsed=!0;return}let n,r;typeof e==`string`?(n=e,r=t):(n=e.name,r=e);let i=this.getScope(r);for(;i;){let e=i.variables.find(e=>e.name===n);if(e){e.eslintUsed=!0;return}i=i.upper}}visitClass(e){let t=this.getScope(e);for(let e of t.variables)if(e.identifiers[0]===t.block.id){this.markVariableAsUsed(e);return}}visitForInForOf(e){let t;if(e.left.type===n.AST_NODE_TYPES.VariableDeclaration){let n=this.#e.getDeclaredVariables(e.left).at(0);if(!n)return;t=n}if(e.left.type===n.AST_NODE_TYPES.Identifier&&(t=e.left),t==null)return;let r=e.body;if(e.body.type===n.AST_NODE_TYPES.BlockStatement){if(e.body.body.length!==1)return;r=e.body.body[0]}r.type===n.AST_NODE_TYPES.ReturnStatement&&this.markVariableAsUsed(t)}visitFunction(e){let t=this.getScope(e).set.get(`arguments`);t?.defs.length===0&&this.markVariableAsUsed(t)}visitFunctionTypeSignature(e){for(let t of e.params)this.visitPattern(t,e=>{this.markVariableAsUsed(e)})}visitSetter(e){if(e.kind===`set`)for(let t of e.value.params)this.visitPattern(t,e=>{this.markVariableAsUsed(e)})}};function o(e,t){return e.range[0]>=t.range[0]&&e.range[1]<=t.range[1]}function s(e,t){let n=e.from;for(;n;){if(t.has(n.block))return!0;n=n.upper}return!1}let c=/* @__PURE__ */ new Set([n.AST_NODE_TYPES.ClassDeclaration,n.AST_NODE_TYPES.FunctionDeclaration,n.AST_NODE_TYPES.TSInterfaceDeclaration,n.AST_NODE_TYPES.TSModuleDeclaration,n.AST_NODE_TYPES.TSTypeAliasDeclaration]);function l(e,t){return(t.type===n.AST_NODE_TYPES.TSTypeAliasDeclaration||t.type===n.AST_NODE_TYPES.TSInterfaceDeclaration)&&(0,i.isMergedTypeValueVariable)(e)}function u(e){for(let t of e.defs)if(t.type!==n.TSESLint.Scope.DefinitionType.Parameter&&(c.has(t.node.type)&&t.node.parent.type===n.AST_NODE_TYPES.ExportNamedDeclaration||t.node.parent.type===n.AST_NODE_TYPES.ExportDefaultDeclaration))return!l(e,t.node);return!1}function d(e){return e.defs.some(t=>{let r=t.node;if(r.type===n.AST_NODE_TYPES.VariableDeclarator)r=r.parent;else if(t.type===n.TSESLint.Scope.DefinitionType.Parameter)return!1;return!l(e,r)&&r.parent.type.startsWith(`Export`)})}let f=/* @__PURE__ */ new Set([`??=`,`&&=`,`||=`]);function p(e){function t(e){let t=/* @__PURE__ */ new Set;return e.defs.forEach(e=>{e.type===n.TSESLint.Scope.DefinitionType.FunctionName&&t.add(e.node),e.type===n.TSESLint.Scope.DefinitionType.Variable&&(e.node.init?.type===n.AST_NODE_TYPES.FunctionExpression||e.node.init?.type===n.AST_NODE_TYPES.ArrowFunctionExpression)&&t.add(e.node.init)}),t}function a(e){let t=/* @__PURE__ */ new Set;return e.defs.forEach(e=>{(e.node.type===n.AST_NODE_TYPES.TSInterfaceDeclaration||e.node.type===n.AST_NODE_TYPES.TSTypeAliasDeclaration)&&t.add(e.node)}),t}function c(e){let t=/* @__PURE__ */ new Set;return e.defs.forEach(e=>{e.node.type===n.AST_NODE_TYPES.TSModuleDeclaration&&t.add(e.node)}),t}function l(e){let t=/* @__PURE__ */ new Set;return e.defs.forEach(e=>{e.node.type===n.AST_NODE_TYPES.TSEnumDeclaration&&t.add(e.node)}),t}function u(e,t){for(let n of t)if(o(e.identifier,n))return!0;return!1}function d(e){let t=e.parent;return t.type===n.AST_NODE_TYPES.ExpressionStatement?!0:t.type===n.AST_NODE_TYPES.SequenceExpression?t.expressions[t.expressions.length-1]!==e||d(t):!1}function p(e,t){function r(e){let t=e;for(;t&&!n.ASTUtils.isFunction(t);){if(n.ASTUtils.isLoop(t))return!0;t=t.parent}return!1}let i=e.identifier,a=i.parent,s=e.from.variableScope!==e.resolved.scope.variableScope||r(i);return t&&o(i,t)?t:a.type===n.AST_NODE_TYPES.AssignmentExpression&&d(a)&&i===a.left&&!s?a.right:null}function m(e,t){function r(e,t){function r(e){let t=e;for(;t;){if(n.ASTUtils.isFunction(t))return t;t=t.parent}return null}function i(e,t){let r=e,i=e.parent;for(;i&&o(i,t);){switch(i.type){case n.AST_NODE_TYPES.SequenceExpression:if(i.expressions[i.expressions.length-1]!==r)return!1;break;case n.AST_NODE_TYPES.CallExpression:case n.AST_NODE_TYPES.NewExpression:return i.callee!==r;case n.AST_NODE_TYPES.AssignmentExpression:case n.AST_NODE_TYPES.TaggedTemplateExpression:case n.AST_NODE_TYPES.YieldExpression:return!0;default:if(i.type.endsWith(`Statement`)||i.type.endsWith(`Declaration`))return!0}r=i,i=i.parent}return!1}let a=r(e);return!!a&&o(a,t)&&i(a,t)}let i=e.identifier,a=i.parent;return e.isRead()&&(a.type===n.AST_NODE_TYPES.AssignmentExpression&&!f.has(a.operator)&&d(a)&&a.left===i||a.type===n.AST_NODE_TYPES.UpdateExpression&&d(a)||!!t&&o(i,t)&&!r(i,t))}let h=t(e),g=h.size>0,_=a(e),v=_.size>0,y=c(e),b=y.size>0,x=l(e),S=x.size>0,C=e.defs.every(r.isTypeImport),w=null;return e.references.some(t=>{let n=m(t,w);return w=p(t,w),t.isRead()&&!n&&!(!C&&(0,i.isTypeOnlyReference)(e,t))&&!(g&&s(t,h))&&!(v&&u(t,_))&&!(b&&s(t,y))&&!(S&&s(t,x))})}function m(e){return a.collectUnusedVariables(e.sourceCode.ast,n.ESLintUtils.nullThrows(e.sourceCode.scopeManager,`Missing required scope manager`))}})),ahe=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createRule=void 0,e.createRule=Y().ESLintUtils.RuleCreator(e=>`https://typescript-eslint.io/rules/${e}`)})),d8=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isSymbolFromDefaultLibrary=t;function t(e,t){if(!t)return!1;let n=t.getDeclarations()??[];for(let t of n){let n=t.getSourceFile();if(e.isSourceFileDefaultLibrary(n))return!0}return!1}})),ohe=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=n&&n.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!=="default"&&r(n,t,a[o]);return i(n,t),n}})();Object.defineProperty(e,"__esModule",{value:!0}),e.isPromiseLike=l,e.isPromiseConstructorLike=u,e.isErrorLike=d,e.isReadonlyErrorLike=f,e.isReadonlyTypeLike=p,e.isBuiltinTypeAliasLike=m,e.isBuiltinSymbolLike=h,e.isBuiltinSymbolLikeRecurser=g;let o=a(s8()),s=a(z(`typescript`)),c=d8();function l(e,t){return h(e,t,`Promise`)}function u(e,t){return h(e,t,`PromiseConstructor`)}function d(e,t){return h(e,t,`Error`)}function f(e,t){return p(e,t,t=>{let[n]=t.aliasTypeArguments;return d(e,n)||f(e,n)})}function p(e,t,n){return m(e,t,e=>e.aliasSymbol.getName()===`Readonly`&&!!n?.(e))}function m(e,t,n){return g(e,t,t=>{let{aliasSymbol:r,aliasTypeArguments:i}=t;return!r||!i?!1:(0,c.isSymbolFromDefaultLibrary)(e,r)&&n(t)?!0:null})}function h(e,t,n){return g(e,t,t=>{let r=t.getSymbol();if(!r)return!1;let i=r.getName();return(Array.isArray(n)?n.some(e=>i===e):i===n)&&(0,c.isSymbolFromDefaultLibrary)(e,r)?!0:null})}function g(e,t,n){if(t.isIntersection())return t.types.some(t=>g(e,t,n));if(t.isUnion())return t.types.every(t=>g(e,t,n));if(o.isTypeParameter(t)){let r=t.getConstraint();return r?g(e,r,n):!1}let r=n(t);if(typeof r==`boolean`)return r;let i=t.getSymbol();if(i&&o.isSymbolFlagSet(i,s.SymbolFlags.Class|s.SymbolFlags.Interface)){let t=e.getTypeChecker(),r=t.getDeclaredTypeOfSymbol(i);for(let i of t.getBaseTypes(r))if(g(e,i,n))return!0}return!1}})),f8=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=n&&n.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!=="default"&&r(n,t,a[o]);return i(n,t),n}})();Object.defineProperty(e,"__esModule",{value:!0}),e.getTypeFlags=l,e.isTypeFlagSet=u;let o=a(s8()),s=a(z(`typescript`)),c=s.TypeFlags.Any|s.TypeFlags.Unknown;function l(e){let t=0;for(let n of o.unionConstituents(e))t|=n.flags;return t}function u(e,t,n){let r=l(e);return n&&r&c?!0:(r&t)!==0}})),she=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=n&&n.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!=="default"&&r(n,t,a[o]);return i(n,t),n}})();Object.defineProperty(e,"__esModule",{value:!0}),e.containsAllTypesByName=l;let o=a(s8()),s=a(z(`typescript`)),c=f8();function l(e,t,n,r=!1){if((0,c.isTypeFlagSet)(e,s.TypeFlags.Any|s.TypeFlags.Unknown))return!t;o.isTypeReference(e)&&(e=e.target);let i=e.getSymbol();if(i&&n.has(i.name))return!0;let a=e=>l(e,t,n,r);if(o.isUnionOrIntersectionType(e))return r?e.types.some(a):e.types.every(a);let u=e.getBaseTypes();return u!=null&&(r?u.some(a):u.length>0&&u.every(a))}})),che=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getConstrainedTypeAtLocation=t;function t(e,t){let n=e.getTypeAtLocation(t);return e.program.getTypeChecker().getBaseConstraintOfType(n)??n}})),lhe=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=n&&n.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!=="default"&&r(n,t,a[o]);return i(n,t),n}})();Object.defineProperty(e,"__esModule",{value:!0}),e.getContextualType=s;let o=a(z(`typescript`));function s(e,t){let n=t.parent;if(o.isCallExpression(n)||o.isNewExpression(n)){if(t===n.expression)return}else if(o.isVariableDeclaration(n)||o.isPropertyDeclaration(n)||o.isParameter(n))return n.type?e.getTypeFromTypeNode(n.type):void 0;else if(o.isJsxExpression(n))return e.getContextualType(n);else if(o.isIdentifier(t)&&(o.isPropertyAssignment(n)||o.isShorthandPropertyAssignment(n)))return e.getContextualType(t);else if(o.isBinaryExpression(n)&&n.operatorToken.kind===o.SyntaxKind.EqualsToken&&n.right===t)return e.getTypeAtLocation(n.left);else if(![o.SyntaxKind.JsxExpression,o.SyntaxKind.TemplateSpan].includes(n.kind))return;return e.getContextualType(t)}})),uhe=/* @__PURE__ */ I((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getDeclaration=t;function t(e,t){let n=e.getSymbolAtLocation(t);return n?n.getDeclarations()?.[0]??null:null}})),dhe=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=n&&n.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!=="default"&&r(n,t,a[o]);return i(n,t),n}})();Object.defineProperty(e,"__esModule",{value:!0}),e.getSourceFileOfNode=s;let o=a(z(`typescript`));function s(e){for(;e.kind!==o.SyntaxKind.SourceFile;)e=e.parent;return e}})),fhe=/* @__PURE__ */ I(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=n&&n.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!=="default"&&r(n,t,a[o]);return i(n,t),n}})();Object.defineProperty(e,"__esModule",{value:!0}),e.getTypeName=c;let o=a(s8()),s=a(z(`typescript`));function c(e,t){if(o.isTypeFlagSet(t,s.TypeFlags.StringLike))return`string`;if(o.isTypeFlagSet(t,s.TypeFlags.TypeParameter)){let n=t.getSymbol()?.getDeclarations()?.[0];if(n!=null&&s.isTypeParameterDeclaration(n)&&n.constraint!=null)return c(e,e.getTypeFromTypeNode(n.constraint))}return t.isUnion()&&t.types.map(t=>c(e,t)).every(e=>e===`string`)||t.isIntersection()&&t.types.map(t=>c(e,t)).some(e=>e===`string`)?`string`:e.typeToString(t)}})),phe=/* @__PURE__ */ I(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),p8=/* @__PURE__ */ I(((e,t)=>{t.exports=function(e){t.debug=t,t.default=t,t.coerce=s,t.disable=a,t.enable=r,t.enabled=o,t.humanize=phe(),t.destroy=c,Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]};function t(e){let r,i=null,a,o;function s(...e){if(!s.enabled)return;let n=s,i=Number(/* @__PURE__ */ new Date);n.diff=i-(r||i),n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,i)=>{if(r===`%%`)return`%`;a++;let o=t.formatters[i];if(typeof o==`function`){let t=e[a];r=o.call(n,t),e.splice(a,1),a--}return r}),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>i===null?(a!==t.namespaces&&(a=t.namespaces,o=t.enabled(e)),o):i,set:e=>{i=e}}),typeof t.init==`function`&&t.init(s),s}function n(e,n){let r=t(this.namespace+(n===void 0?`:`:n)+e);return r.log=this.log,r}function r(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];let n=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of n)e[0]===`-`?t.skips.push(e.slice(1)):t.names.push(e)}function i(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function a(){let e=[...t.names,...t.skips.map(e=>`-`+e)].join(`,`);return t.enable(``),e}function o(e){for(let n of t.skips)if(i(e,n))return!1;for(let n of t.names)if(i(e,n))return!0;return!1}function s(e){return e instanceof Error?e.stack||e.message:e}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}})),mhe=/* @__PURE__ */ I(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=/* @__PURE__ */ `#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=p8()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),hhe=/* @__PURE__ */ I(((e,t)=>{t.exports=(e,t=process.argv)=>{let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}})),ghe=/* @__PURE__ */ I(((e,t)=>{let n=z(`os`),r=z(`tty`),i=hhe(),{env:a}=process,o;i(`no-color`)||i(`no-colors`)||i(`color=false`)||i(`color=never`)?o=0:(i(`color`)||i(`colors`)||i(`color=true`)||i(`color=always`))&&(o=1),`FORCE_COLOR`in a&&(o=a.FORCE_COLOR===`true`?1:a.FORCE_COLOR===`false`?0:a.FORCE_COLOR.length===0?1:Math.min(parseInt(a.FORCE_COLOR,10),3));function s(e){return e!==0&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function c(e,t){if(o===0)return 0;if(i(`color=16m`)||i(`color=full`)||i(`color=truecolor`))return 3;if(i(`color=256`))return 2;if(e&&!t&&o===void 0)return 0;let r=o||0;if(a.TERM===`dumb`)return r;if(process.platform===`win32`){let e=n.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in a)return[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`,`GITHUB_ACTIONS`,`BUILDKITE`].some(e=>e in a)||a.CI_NAME===`codeship`?1:r;if(`TEAMCITY_VERSION`in a)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION);if(a.COLORTERM===`truecolor`)return 3;if(`TERM_PROGRAM`in a){let e=parseInt((a.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(a.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||`COLORTERM`in a?1:r}function l(e){return s(c(e,e&&e.isTTY))}t.exports={supportsColor:l,stdout:s(c(!0,r.isatty(1))),stderr:s(c(!0,r.isatty(2)))}})),_he=/* @__PURE__ */ I(((e,t)=>{let n=z(`tty`),r=z(`util`);e.init=u,e.log=s,e.formatArgs=a,e.save=c,e.load=l,e.useColors=i,e.destroy=r.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let t=ghe();t&&(t.stderr||t).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function i(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:n.isatty(process.stderr.fd)}function a(e){let{namespace:n,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${n} \u001B[0m`;e[0]=a+e[0].split(`
406
406
  `).join(`
407
407
  `+a),e.push(i+`m+`+t.exports.humanize(this.diff)+`\x1B[0m`)}else e[0]=o()+n+` `+e[0]}function o(){return e.inspectOpts.hideDate?``:(/* @__PURE__ */ new Date()).toISOString()+` `}function s(...t){return process.stderr.write(r.formatWithOptions(e.inspectOpts,...t)+`
408
408
  `)}function c(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function l(){return process.env.DEBUG}function u(t){t.inspectOpts={};let n=Object.keys(e.inspectOpts);for(let r=0;r<n.length;r++)t.inspectOpts[n[r]]=e.inspectOpts[n[r]]}t.exports=p8()(e);let{formatters:d}=t.exports;d.o=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts).split(`
@@ -510,7 +510,7 @@ See also https://github.com/typescript-eslint/typescript-eslint/issues/10940 for
510
510
  `)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(`
511
511
  `)&&(o=String(e).split(`
512
512
  `).map(function(e,t){return t===0?e:``+i+e}).join(`
513
- `)),a+=o+n[t+1]}),a}e.dedent=t,e.default=t}}),rbe=`eslint-plugin-storybook`,ibe=`10.6.7`,abe={plugins:[`storybook`],overrides:[{files:[`**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)`,`**/*.story.@(ts|tsx|js|jsx|mjs|cjs)`],rules:{"react-hooks/rules-of-hooks":`off`,"import-x/no-anonymous-default-export":`off`,"storybook/csf-component":`warn`,"storybook/default-exports":`error`,"storybook/hierarchy-separator":`warn`,"storybook/no-redundant-story-name":`warn`,"storybook/story-exports":`error`}},{files:[`.storybook/main.@(js|cjs|mjs|ts)`],rules:{"storybook/no-uninstalled-addons":`error`}}]},obe={extends:`./configs/csf`,overrides:[{files:[`**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)`,`**/*.story.@(ts|tsx|js|jsx|mjs|cjs)`],rules:{"react-hooks/rules-of-hooks":`off`,"import-x/no-anonymous-default-export":`off`,"storybook/no-stories-of":`error`,"storybook/no-title-property-in-meta":`error`}}]},sbe={plugins:[`storybook`],overrides:[{files:[`**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)`,`**/*.story.@(ts|tsx|js|jsx|mjs|cjs)`],rules:{"react-hooks/rules-of-hooks":`off`,"import-x/no-anonymous-default-export":`off`,"storybook/await-interactions":`error`,"storybook/context-in-play-function":`error`,"storybook/use-storybook-expect":`error`,"storybook/use-storybook-testing-library":`error`}},{files:[`.storybook/main.@(js|cjs|mjs|ts)`],rules:{"storybook/no-uninstalled-addons":`error`}}]},cbe={plugins:[`storybook`],overrides:[{files:[`**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)`,`**/*.story.@(ts|tsx|js|jsx|mjs|cjs)`],rules:{"react-hooks/rules-of-hooks":`off`,"import-x/no-anonymous-default-export":`off`,"storybook/await-interactions":`error`,"storybook/context-in-play-function":`error`,"storybook/default-exports":`error`,"storybook/hierarchy-separator":`warn`,"storybook/no-redundant-story-name":`warn`,"storybook/no-renderer-packages":`error`,"storybook/prefer-pascal-case":`warn`,"storybook/story-exports":`error`,"storybook/use-storybook-expect":`error`,"storybook/use-storybook-testing-library":`error`}},{files:[`.storybook/main.@(js|cjs|mjs|ts)`],rules:{"storybook/no-uninstalled-addons":`error`}}]},W5=[{name:`storybook:csf:setup`,plugins:{get storybook(){return h7}}},{name:`storybook:csf:stories-rules`,files:[`**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)`,`**/*.story.@(ts|tsx|js|jsx|mjs|cjs)`],rules:{"react-hooks/rules-of-hooks":`off`,"import-x/no-anonymous-default-export":`off`,"storybook/csf-component":`warn`,"storybook/default-exports":`error`,"storybook/hierarchy-separator":`warn`,"storybook/no-redundant-story-name":`warn`,"storybook/story-exports":`error`}},{name:`storybook:csf:main-rules`,files:[`.storybook/main.@(js|cjs|mjs|ts)`],rules:{"storybook/no-uninstalled-addons":`error`}}],lbe=[...W5,{name:`storybook:csf-strict:rules`,files:[`**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)`,`**/*.story.@(ts|tsx|js|jsx|mjs|cjs)`],rules:{"react-hooks/rules-of-hooks":`off`,"import-x/no-anonymous-default-export":`off`,"storybook/no-stories-of":`error`,"storybook/no-title-property-in-meta":`error`}}],ube=[{name:`storybook:addon-interactions:setup`,plugins:{get storybook(){return h7}}},{name:`storybook:addon-interactions:stories-rules`,files:[`**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)`,`**/*.story.@(ts|tsx|js|jsx|mjs|cjs)`],rules:{"react-hooks/rules-of-hooks":`off`,"import-x/no-anonymous-default-export":`off`,"storybook/await-interactions":`error`,"storybook/context-in-play-function":`error`,"storybook/use-storybook-expect":`error`,"storybook/use-storybook-testing-library":`error`}},{name:`storybook:addon-interactions:main-rules`,files:[`.storybook/main.@(js|cjs|mjs|ts)`],rules:{"storybook/no-uninstalled-addons":`error`}}],dbe=[{name:`storybook:recommended:setup`,plugins:{get storybook(){return h7}}},{name:`storybook:recommended:stories-rules`,files:[`**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)`,`**/*.story.@(ts|tsx|js|jsx|mjs|cjs)`],rules:{"react-hooks/rules-of-hooks":`off`,"import-x/no-anonymous-default-export":`off`,"storybook/await-interactions":`error`,"storybook/context-in-play-function":`error`,"storybook/default-exports":`error`,"storybook/hierarchy-separator":`warn`,"storybook/no-redundant-story-name":`warn`,"storybook/no-renderer-packages":`error`,"storybook/prefer-pascal-case":`warn`,"storybook/story-exports":`error`,"storybook/use-storybook-expect":`error`,"storybook/use-storybook-testing-library":`error`}},{name:`storybook:recommended:main-rules`,files:[`.storybook/main.@(js|cjs|mjs|ts)`],rules:{"storybook/no-uninstalled-addons":`error`}}],G5=e=>t=>t?.type===e,K5=G5(i.AwaitExpression),q5=G5(i.Identifier),J5=G5(i.VariableDeclarator),Y5=G5(i.ArrayExpression),X5=G5(i.ArrowFunctionExpression);i.BlockStatement;var fbe=G5(i.CallExpression),pbe=G5(i.ExpressionStatement),Z5=G5(i.VariableDeclaration);i.AssignmentExpression,i.SequenceExpression;var Q5=G5(i.ImportDeclaration),mbe=G5(i.ImportDefaultSpecifier);i.ImportNamespaceSpecifier;var $5=G5(i.ImportSpecifier);i.JSXAttribute;var e7=G5(i.Literal),t7=G5(i.MemberExpression);i.NewExpression;var n7=G5(i.ObjectExpression),hbe=G5(i.ObjectPattern),r7=G5(i.Property),i7=G5(i.SpreadElement),gbe=G5(i.RestElement),_be=G5(i.ReturnStatement),a7=G5(i.FunctionDeclaration),vbe=G5(i.FunctionExpression),ybe=G5(i.Program);i.TSTypeAliasDeclaration,i.TSInterfaceDeclaration;var bbe=G5(i.TSAsExpression),o7=G5(i.TSSatisfiesExpression),s7=G5(i.TSNonNullExpression),xbe=G5(i.MetaProperty);function Sbe(e){return e.replace(/_/g,` `).replace(/-/g,` `).replace(/\./g,` `).replace(/([^\n])([A-Z])([a-z])/g,(e,t,n,r)=>`${t} ${n}${r}`).replace(/([a-z])([A-Z])/g,(e,t,n)=>`${t} ${n}`).replace(/([a-z])([0-9])/gi,(e,t,n)=>`${t} ${n}`).replace(/([0-9])([a-z])/gi,(e,t,n)=>`${t} ${n}`).replace(/(\s|^)(\w)/g,(e,t,n)=>`${t}${n.toUpperCase()}`).replace(/ +/g,` `).trim()}function c7(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}var l7=e=>Sbe(e);function u7(e,{includeStories:t,excludeStories:n}){return e!=="__esModule"&&(!t||c7(e,t))&&(!n||!c7(e,n))}var Cbe=e=>`https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/${e}.md`,d7=(e,t)=>{let n=e.declaration,{sourceCode:r}=t;if(q5(n)){let i=r.getScope?r.getScope(e):t.getScope(),a=wX.findVariable(i,n.name),o=a&&a.defs.find(e=>J5(e.node));o&&J5(o.node)&&(n=o.node.init)}return(bbe(n)||o7(n))&&(n=n.expression),n7(n)?n:null},f7=(e,t)=>{let n=e&&e.properties.find(e=>`key`in e&&`name`in e.key&&e.key.name===t);if(!n||i7(n))return;let{type:r}=n.value;switch(r){case`ArrayExpression`:return n.value.elements.map(e=>{if(e===null)throw Error(`Unexpected descriptor element: null`);if(![`StringLiteral`,`Literal`].includes(e.type))throw Error(`Unexpected descriptor element: ${e.type}`);return e.value});case`Literal`:case`RegExpLiteral`:return n.value.value;default:throw Error(`Unexpected descriptor: ${r}`)}},wbe=(e,t)=>u7(e.name,t)&&e.name!==`__namedExportsOrder`,Tbe=e=>{if(!e.declaration&&e.specifiers)return e.specifiers.reduce((e,t)=>(q5(t.exported)&&e.push(t.exported),e),[]);let t=e.declaration;if(Z5(t)){let e=t.declarations[0];if(e){let{id:t}=e;if(q5(t))return[t]}}return a7(t)&&q5(t.id)?[t.id]:[]};function p7({create:e,meta:t,...n}){return(0,xX.RuleCreator)(Cbe)({...n,create:e,meta:{...t,docs:{...t.docs},defaultOptions:n.defaultOptions}})}var Ebe=p7({name:`await-interactions`,defaultOptions:[],meta:{severity:`error`,docs:{description:`Interactions should be awaited`,categories:[`addon-interactions`,`recommended`]},messages:{interactionShouldBeAwaited:`Interaction should be awaited: {{method}}`,fixSuggestion:"Add `await` to method"},type:`problem`,fixable:`code`,hasSuggestions:!0,schema:[]},create(e){let t=[`waitFor`,`waitForElementToBeRemoved`,`wait`,`waitForElement`,`waitForDomChange`,`userEvent`,`play`],n=e=>{let n=e=>t.includes(e)||e.startsWith(`findBy`);return X5(e.parent)||_be(e.parent)?null:t7(e.callee)&&q5(e.callee.object)&&n(e.callee.object.name)?e.callee.object:s7(e.callee)&&t7(e.callee.expression)&&q5(e.callee.expression.property)&&n(e.callee.expression.property.name)?e.callee.expression.property:t7(e.callee)&&q5(e.callee.property)&&n(e.callee.property.name)||t7(e.callee)&&fbe(e.callee.object)&&q5(e.callee.object.callee)&&q5(e.callee.property)&&e.callee.object.callee.name===`expect`?e.callee.property:q5(e.callee)&&n(e.callee.name)?e.callee:null},r=e=>{let t=e.parent;if(t&&!ybe(t))return X5(t)||vbe(t)||a7(t)?e.parent:r(t)},i=e=>(e.source.value===`@storybook/testing-library`||e.source.value===`@storybook/test`)&&e.specifiers.find(e=>$5(e)&&`name`in e.imported&&e.imported.name===`userEvent`&&e.local.name===`userEvent`)!==void 0,a=e=>(e.source.value===`@storybook/jest`||e.source.value===`@storybook/test`)&&e.specifiers.find(e=>$5(e)&&`name`in e.imported&&e.imported.name===`expect`)!==void 0,o=!0,s=[];return{ImportDeclaration(e){o=i(e)||a(e)},VariableDeclarator(e){o=o&&q5(e.id)&&e.id.name!==`userEvent`},CallExpression(e){let t=n(e);t&&!K5(e.parent)&&!K5(e.parent?.parent)&&s.push({node:e,method:t})},"Program:exit":function(){o&&s.length&&s.forEach(({node:t,method:n})=>{let i=r(t),a=i&&!(`async`in i&&i.async),o=e=>{let n=[e.insertTextBefore(t,`await `)];return a&&n.push(e.insertTextBefore(i,`async `)),n};e.report({node:t,messageId:`interactionShouldBeAwaited`,data:{method:n.name},fix:o,suggest:[{messageId:`fixSuggestion`,fix:o}]})})}}}}),Dbe=p7({name:`context-in-play-function`,defaultOptions:[],meta:{type:`problem`,severity:`error`,docs:{description:`Pass a context when invoking play function of another story`,categories:[`recommended`,`addon-interactions`]},messages:{passContextToPlayFunction:`Pass a context when invoking play function of another story`},fixable:void 0,schema:[]},create(e){let t=e=>!!(s7(e.callee)&&t7(e.callee.expression)&&q5(e.callee.expression.property)&&e.callee.expression.property.name===`play`||t7(e.callee)&&q5(e.callee.property)&&e.callee.property.name===`play`),n=e=>{if(!X5(e))return e.parent?n(e.parent):void 0;if(e.params.length!==0&&e.params.length>=1){let t=e.params[0];if(q5(t))return t.name;if(hbe(t)){if(t.properties.find(e=>e.type===`Property`&&e.key.type===`Identifier`&&e.key.name===`context`))return`context`;let e=t.properties.find(gbe);return!e||!q5(e.argument)?void 0:e.argument.name}}},r=e=>{let t=e.arguments[0];if(!t)return!0;let r=n(e);return!r||!(e.arguments.length===1&&q5(t)&&t.name===r||n7(t)&&t.properties.some(e=>i7(e)&&q5(e.argument)&&e.argument.name===r))},i=[];return{CallExpression(e){t(e)&&r(e)&&i.push(e)},"Program:exit":function(){i.forEach(t=>{e.report({node:t,messageId:`passContextToPlayFunction`})})}}}}),Obe=p7({name:`csf-component`,defaultOptions:[],meta:{type:`suggestion`,severity:`warn`,docs:{description:`The component property should be set`,categories:[`csf`]},messages:{missingComponentProperty:`Missing component property.`},schema:[]},create(e){return{ExportDefaultDeclaration(t){let n=d7(t,e);if(!n)return null;n.properties.find(e=>!i7(e)&&`name`in e.key&&e.key.name===`component`)||e.report({node:t,messageId:`missingComponentProperty`})}}}}),kbe=p7({name:`default-exports`,defaultOptions:[],meta:{type:`problem`,severity:`error`,docs:{description:`Story files should have a default export`,categories:[`csf`,`recommended`]},messages:{shouldHaveDefaultExport:`The file should have a default export.`,fixSuggestion:`Add default export`},fixable:`code`,hasSuggestions:!0,schema:[]},create(e){let t=(e,t)=>{let n=O.basename(t).split(`.`)[0];return e.body.find(e=>{if(Q5(e)&&e7(e.source)&&e.source.value.startsWith(`./${n}`))return!!e.specifiers.find(e=>q5(e.local)&&e.local.name===n)})?n:null},n=!1,r=!1,i=!1;return{ImportSpecifier(e){`name`in e.imported&&e.imported.name===`storiesOf`&&(i=!0)},VariableDeclaration(e){e.parent.type===`Program`&&e.declarations.forEach(e=>{let t=e.init;if(t&&t.type===`CallExpression`){let e=t.callee;e.type===`MemberExpression`&&e.property.type===`Identifier`&&e.property.name===`meta`&&(r=!0)}})},ExportDefaultSpecifier:function(){n=!0},ExportDefaultDeclaration:function(){n=!0},"Program:exit":function(a){if(!r&&!n&&!i){let n=t(a,e.filename),r=a.body.find(e=>!Q5(e))||a.body[0]||a,i={node:r,messageId:`shouldHaveDefaultExport`},o=e=>{let t=n?`export default { component: ${n} }
513
+ `)),a+=o+n[t+1]}),a}e.dedent=t,e.default=t}}),rbe=`eslint-plugin-storybook`,ibe=`10.6.8`,abe={plugins:[`storybook`],overrides:[{files:[`**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)`,`**/*.story.@(ts|tsx|js|jsx|mjs|cjs)`],rules:{"react-hooks/rules-of-hooks":`off`,"import-x/no-anonymous-default-export":`off`,"storybook/csf-component":`warn`,"storybook/default-exports":`error`,"storybook/hierarchy-separator":`warn`,"storybook/no-redundant-story-name":`warn`,"storybook/story-exports":`error`}},{files:[`.storybook/main.@(js|cjs|mjs|ts)`],rules:{"storybook/no-uninstalled-addons":`error`}}]},obe={extends:`./configs/csf`,overrides:[{files:[`**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)`,`**/*.story.@(ts|tsx|js|jsx|mjs|cjs)`],rules:{"react-hooks/rules-of-hooks":`off`,"import-x/no-anonymous-default-export":`off`,"storybook/no-stories-of":`error`,"storybook/no-title-property-in-meta":`error`}}]},sbe={plugins:[`storybook`],overrides:[{files:[`**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)`,`**/*.story.@(ts|tsx|js|jsx|mjs|cjs)`],rules:{"react-hooks/rules-of-hooks":`off`,"import-x/no-anonymous-default-export":`off`,"storybook/await-interactions":`error`,"storybook/context-in-play-function":`error`,"storybook/use-storybook-expect":`error`,"storybook/use-storybook-testing-library":`error`}},{files:[`.storybook/main.@(js|cjs|mjs|ts)`],rules:{"storybook/no-uninstalled-addons":`error`}}]},cbe={plugins:[`storybook`],overrides:[{files:[`**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)`,`**/*.story.@(ts|tsx|js|jsx|mjs|cjs)`],rules:{"react-hooks/rules-of-hooks":`off`,"import-x/no-anonymous-default-export":`off`,"storybook/await-interactions":`error`,"storybook/context-in-play-function":`error`,"storybook/default-exports":`error`,"storybook/hierarchy-separator":`warn`,"storybook/no-redundant-story-name":`warn`,"storybook/no-renderer-packages":`error`,"storybook/prefer-pascal-case":`warn`,"storybook/story-exports":`error`,"storybook/use-storybook-expect":`error`,"storybook/use-storybook-testing-library":`error`}},{files:[`.storybook/main.@(js|cjs|mjs|ts)`],rules:{"storybook/no-uninstalled-addons":`error`}}]},W5=[{name:`storybook:csf:setup`,plugins:{get storybook(){return h7}}},{name:`storybook:csf:stories-rules`,files:[`**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)`,`**/*.story.@(ts|tsx|js|jsx|mjs|cjs)`],rules:{"react-hooks/rules-of-hooks":`off`,"import-x/no-anonymous-default-export":`off`,"storybook/csf-component":`warn`,"storybook/default-exports":`error`,"storybook/hierarchy-separator":`warn`,"storybook/no-redundant-story-name":`warn`,"storybook/story-exports":`error`}},{name:`storybook:csf:main-rules`,files:[`.storybook/main.@(js|cjs|mjs|ts)`],rules:{"storybook/no-uninstalled-addons":`error`}}],lbe=[...W5,{name:`storybook:csf-strict:rules`,files:[`**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)`,`**/*.story.@(ts|tsx|js|jsx|mjs|cjs)`],rules:{"react-hooks/rules-of-hooks":`off`,"import-x/no-anonymous-default-export":`off`,"storybook/no-stories-of":`error`,"storybook/no-title-property-in-meta":`error`}}],ube=[{name:`storybook:addon-interactions:setup`,plugins:{get storybook(){return h7}}},{name:`storybook:addon-interactions:stories-rules`,files:[`**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)`,`**/*.story.@(ts|tsx|js|jsx|mjs|cjs)`],rules:{"react-hooks/rules-of-hooks":`off`,"import-x/no-anonymous-default-export":`off`,"storybook/await-interactions":`error`,"storybook/context-in-play-function":`error`,"storybook/use-storybook-expect":`error`,"storybook/use-storybook-testing-library":`error`}},{name:`storybook:addon-interactions:main-rules`,files:[`.storybook/main.@(js|cjs|mjs|ts)`],rules:{"storybook/no-uninstalled-addons":`error`}}],dbe=[{name:`storybook:recommended:setup`,plugins:{get storybook(){return h7}}},{name:`storybook:recommended:stories-rules`,files:[`**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)`,`**/*.story.@(ts|tsx|js|jsx|mjs|cjs)`],rules:{"react-hooks/rules-of-hooks":`off`,"import-x/no-anonymous-default-export":`off`,"storybook/await-interactions":`error`,"storybook/context-in-play-function":`error`,"storybook/default-exports":`error`,"storybook/hierarchy-separator":`warn`,"storybook/no-redundant-story-name":`warn`,"storybook/no-renderer-packages":`error`,"storybook/prefer-pascal-case":`warn`,"storybook/story-exports":`error`,"storybook/use-storybook-expect":`error`,"storybook/use-storybook-testing-library":`error`}},{name:`storybook:recommended:main-rules`,files:[`.storybook/main.@(js|cjs|mjs|ts)`],rules:{"storybook/no-uninstalled-addons":`error`}}],G5=e=>t=>t?.type===e,K5=G5(i.AwaitExpression),q5=G5(i.Identifier),J5=G5(i.VariableDeclarator),Y5=G5(i.ArrayExpression),X5=G5(i.ArrowFunctionExpression);i.BlockStatement;var fbe=G5(i.CallExpression),pbe=G5(i.ExpressionStatement),Z5=G5(i.VariableDeclaration);i.AssignmentExpression,i.SequenceExpression;var Q5=G5(i.ImportDeclaration),mbe=G5(i.ImportDefaultSpecifier);i.ImportNamespaceSpecifier;var $5=G5(i.ImportSpecifier);i.JSXAttribute;var e7=G5(i.Literal),t7=G5(i.MemberExpression);i.NewExpression;var n7=G5(i.ObjectExpression),hbe=G5(i.ObjectPattern),r7=G5(i.Property),i7=G5(i.SpreadElement),gbe=G5(i.RestElement),_be=G5(i.ReturnStatement),a7=G5(i.FunctionDeclaration),vbe=G5(i.FunctionExpression),ybe=G5(i.Program);i.TSTypeAliasDeclaration,i.TSInterfaceDeclaration;var bbe=G5(i.TSAsExpression),o7=G5(i.TSSatisfiesExpression),s7=G5(i.TSNonNullExpression),xbe=G5(i.MetaProperty);function Sbe(e){return e.replace(/_/g,` `).replace(/-/g,` `).replace(/\./g,` `).replace(/([^\n])([A-Z])([a-z])/g,(e,t,n,r)=>`${t} ${n}${r}`).replace(/([a-z])([A-Z])/g,(e,t,n)=>`${t} ${n}`).replace(/([a-z])([0-9])/gi,(e,t,n)=>`${t} ${n}`).replace(/([0-9])([a-z])/gi,(e,t,n)=>`${t} ${n}`).replace(/(\s|^)(\w)/g,(e,t,n)=>`${t}${n.toUpperCase()}`).replace(/ +/g,` `).trim()}function c7(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}var l7=e=>Sbe(e);function u7(e,{includeStories:t,excludeStories:n}){return e!=="__esModule"&&(!t||c7(e,t))&&(!n||!c7(e,n))}var Cbe=e=>`https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/${e}.md`,d7=(e,t)=>{let n=e.declaration,{sourceCode:r}=t;if(q5(n)){let i=r.getScope?r.getScope(e):t.getScope(),a=wX.findVariable(i,n.name),o=a&&a.defs.find(e=>J5(e.node));o&&J5(o.node)&&(n=o.node.init)}return(bbe(n)||o7(n))&&(n=n.expression),n7(n)?n:null},f7=(e,t)=>{let n=e&&e.properties.find(e=>`key`in e&&`name`in e.key&&e.key.name===t);if(!n||i7(n))return;let{type:r}=n.value;switch(r){case`ArrayExpression`:return n.value.elements.map(e=>{if(e===null)throw Error(`Unexpected descriptor element: null`);if(![`StringLiteral`,`Literal`].includes(e.type))throw Error(`Unexpected descriptor element: ${e.type}`);return e.value});case`Literal`:case`RegExpLiteral`:return n.value.value;default:throw Error(`Unexpected descriptor: ${r}`)}},wbe=(e,t)=>u7(e.name,t)&&e.name!==`__namedExportsOrder`,Tbe=e=>{if(!e.declaration&&e.specifiers)return e.specifiers.reduce((e,t)=>(q5(t.exported)&&e.push(t.exported),e),[]);let t=e.declaration;if(Z5(t)){let e=t.declarations[0];if(e){let{id:t}=e;if(q5(t))return[t]}}return a7(t)&&q5(t.id)?[t.id]:[]};function p7({create:e,meta:t,...n}){return(0,xX.RuleCreator)(Cbe)({...n,create:e,meta:{...t,docs:{...t.docs},defaultOptions:n.defaultOptions}})}var Ebe=p7({name:`await-interactions`,defaultOptions:[],meta:{severity:`error`,docs:{description:`Interactions should be awaited`,categories:[`addon-interactions`,`recommended`]},messages:{interactionShouldBeAwaited:`Interaction should be awaited: {{method}}`,fixSuggestion:"Add `await` to method"},type:`problem`,fixable:`code`,hasSuggestions:!0,schema:[]},create(e){let t=[`waitFor`,`waitForElementToBeRemoved`,`wait`,`waitForElement`,`waitForDomChange`,`userEvent`,`play`],n=e=>{let n=e=>t.includes(e)||e.startsWith(`findBy`);return X5(e.parent)||_be(e.parent)?null:t7(e.callee)&&q5(e.callee.object)&&n(e.callee.object.name)?e.callee.object:s7(e.callee)&&t7(e.callee.expression)&&q5(e.callee.expression.property)&&n(e.callee.expression.property.name)?e.callee.expression.property:t7(e.callee)&&q5(e.callee.property)&&n(e.callee.property.name)||t7(e.callee)&&fbe(e.callee.object)&&q5(e.callee.object.callee)&&q5(e.callee.property)&&e.callee.object.callee.name===`expect`?e.callee.property:q5(e.callee)&&n(e.callee.name)?e.callee:null},r=e=>{let t=e.parent;if(t&&!ybe(t))return X5(t)||vbe(t)||a7(t)?e.parent:r(t)},i=e=>(e.source.value===`@storybook/testing-library`||e.source.value===`@storybook/test`)&&e.specifiers.find(e=>$5(e)&&`name`in e.imported&&e.imported.name===`userEvent`&&e.local.name===`userEvent`)!==void 0,a=e=>(e.source.value===`@storybook/jest`||e.source.value===`@storybook/test`)&&e.specifiers.find(e=>$5(e)&&`name`in e.imported&&e.imported.name===`expect`)!==void 0,o=!0,s=[];return{ImportDeclaration(e){o=i(e)||a(e)},VariableDeclarator(e){o=o&&q5(e.id)&&e.id.name!==`userEvent`},CallExpression(e){let t=n(e);t&&!K5(e.parent)&&!K5(e.parent?.parent)&&s.push({node:e,method:t})},"Program:exit":function(){o&&s.length&&s.forEach(({node:t,method:n})=>{let i=r(t),a=i&&!(`async`in i&&i.async),o=e=>{let n=[e.insertTextBefore(t,`await `)];return a&&n.push(e.insertTextBefore(i,`async `)),n};e.report({node:t,messageId:`interactionShouldBeAwaited`,data:{method:n.name},fix:o,suggest:[{messageId:`fixSuggestion`,fix:o}]})})}}}}),Dbe=p7({name:`context-in-play-function`,defaultOptions:[],meta:{type:`problem`,severity:`error`,docs:{description:`Pass a context when invoking play function of another story`,categories:[`recommended`,`addon-interactions`]},messages:{passContextToPlayFunction:`Pass a context when invoking play function of another story`},fixable:void 0,schema:[]},create(e){let t=e=>!!(s7(e.callee)&&t7(e.callee.expression)&&q5(e.callee.expression.property)&&e.callee.expression.property.name===`play`||t7(e.callee)&&q5(e.callee.property)&&e.callee.property.name===`play`),n=e=>{if(!X5(e))return e.parent?n(e.parent):void 0;if(e.params.length!==0&&e.params.length>=1){let t=e.params[0];if(q5(t))return t.name;if(hbe(t)){if(t.properties.find(e=>e.type===`Property`&&e.key.type===`Identifier`&&e.key.name===`context`))return`context`;let e=t.properties.find(gbe);return!e||!q5(e.argument)?void 0:e.argument.name}}},r=e=>{let t=e.arguments[0];if(!t)return!0;let r=n(e);return!r||!(e.arguments.length===1&&q5(t)&&t.name===r||n7(t)&&t.properties.some(e=>i7(e)&&q5(e.argument)&&e.argument.name===r))},i=[];return{CallExpression(e){t(e)&&r(e)&&i.push(e)},"Program:exit":function(){i.forEach(t=>{e.report({node:t,messageId:`passContextToPlayFunction`})})}}}}),Obe=p7({name:`csf-component`,defaultOptions:[],meta:{type:`suggestion`,severity:`warn`,docs:{description:`The component property should be set`,categories:[`csf`]},messages:{missingComponentProperty:`Missing component property.`},schema:[]},create(e){return{ExportDefaultDeclaration(t){let n=d7(t,e);if(!n)return null;n.properties.find(e=>!i7(e)&&`name`in e.key&&e.key.name===`component`)||e.report({node:t,messageId:`missingComponentProperty`})}}}}),kbe=p7({name:`default-exports`,defaultOptions:[],meta:{type:`problem`,severity:`error`,docs:{description:`Story files should have a default export`,categories:[`csf`,`recommended`]},messages:{shouldHaveDefaultExport:`The file should have a default export.`,fixSuggestion:`Add default export`},fixable:`code`,hasSuggestions:!0,schema:[]},create(e){let t=(e,t)=>{let n=O.basename(t).split(`.`)[0];return e.body.find(e=>{if(Q5(e)&&e7(e.source)&&e.source.value.startsWith(`./${n}`))return!!e.specifiers.find(e=>q5(e.local)&&e.local.name===n)})?n:null},n=!1,r=!1,i=!1;return{ImportSpecifier(e){`name`in e.imported&&e.imported.name===`storiesOf`&&(i=!0)},VariableDeclaration(e){e.parent.type===`Program`&&e.declarations.forEach(e=>{let t=e.init;if(t&&t.type===`CallExpression`){let e=t.callee;e.type===`MemberExpression`&&e.property.type===`Identifier`&&e.property.name===`meta`&&(r=!0)}})},ExportDefaultSpecifier:function(){n=!0},ExportDefaultDeclaration:function(){n=!0},"Program:exit":function(a){if(!r&&!n&&!i){let n=t(a,e.filename),r=a.body.find(e=>!Q5(e))||a.body[0]||a,i={node:r,messageId:`shouldHaveDefaultExport`},o=e=>{let t=n?`export default { component: ${n} }
514
514
  `:`export default {}
515
515
  `;return e.insertTextBefore(r,t)};e.report({...i,fix:o,suggest:[{messageId:`fixSuggestion`,fix:o}]})}}}}}),Abe=p7({name:`hierarchy-separator`,defaultOptions:[],meta:{type:`problem`,fixable:`code`,hasSuggestions:!0,severity:`warn`,docs:{description:`Deprecated hierarchy separator in title property`,categories:[`csf`,`recommended`]},messages:{useCorrectSeparators:`Use correct separators`,deprecatedHierarchySeparator:`Deprecated hierarchy separator in title property: {{metaTitle}}.`},schema:[]},create:function(e){return{ExportDefaultDeclaration:function(t){let n=d7(t,e);if(!n)return null;let r=n.properties.find(e=>!i7(e)&&`name`in e.key&&e.key?.name===`title`);if(!r||!e7(r.value))return;let i=r.value.raw||``;i.includes(`|`)&&e.report({node:r,messageId:`deprecatedHierarchySeparator`,data:{metaTitle:i},fix:function(e){return e.replaceTextRange(r.value.range,i.replace(/\|/g,`/`))},suggest:[{messageId:`useCorrectSeparators`,fix:function(e){return e.replaceTextRange(r.value.range,i.replace(/\|/g,`/`))}}]})}}}}),jbe=p7({name:`meta-inline-properties`,defaultOptions:[{csfVersion:3}],meta:{type:`problem`,severity:`error`,docs:{description:`Meta should only have inline properties`,categories:[`csf`,`recommended`],excludeFromConfig:!0},messages:{metaShouldHaveInlineProperties:`Meta should only have inline properties: {{property}}`},schema:[{type:`object`,properties:{csfVersion:{type:`number`}},additionalProperties:!1}]},create(e){let t=e=>e&&typeof e==`object`&&`value`in e?e.value.type===`ObjectExpression`||e.value.type===`Literal`||e.value.type===`ArrayExpression`:!1;return{ExportDefaultDeclaration(n){let r=d7(n,e);if(!r)return null;let i=[`title`,`args`],a=[];r.properties.filter(e=>`key`in e&&`name`in e.key&&i.includes(e.key.name)).forEach(e=>{t(e)||a.push(e)}),a.length>0&&a.forEach(t=>{e.report({node:t,messageId:`metaShouldHaveInlineProperties`,data:{property:t.key?.name}})})}}}}),Mbe=p7({name:`meta-satisfies-type`,defaultOptions:[],meta:{type:`problem`,fixable:`code`,severity:`error`,docs:{description:"Meta should use `satisfies Meta`",categories:[],excludeFromConfig:!0},messages:{metaShouldSatisfyType:"CSF Meta should use `satisfies` for type safety"},schema:[]},create(e){let t=e.sourceCode,n=e=>{let n=0,r=0;if(wX.isParenthesized(e,t)){let i=t.getTokenBefore(e,wX.isOpeningParenToken),a=t.getTokenAfter(e,wX.isClosingParenToken);i&&a&&(n=e.range[0]-i.range[0],r=a.range[1]-e.range[1])}return t.getText(e,n,r)},r=e=>{let{parent:t}=e;if(t)switch(t.type){case i.TSAsExpression:return r=>[r.replaceText(t,n(e)),r.insertTextAfter(t,` satisfies ${n(t.typeAnnotation)}`)];case i.VariableDeclarator:{let{typeAnnotation:r}=t.id;return r?t=>[t.remove(r),t.insertTextAfter(e,` satisfies ${n(r.typeAnnotation)}`)]:void 0}default:return}};return{ExportDefaultDeclaration(t){let n=d7(t,e);if(!n)return null;n.parent&&o7(n.parent)||e.report({node:n,messageId:`metaShouldSatisfyType`,fix:r(n)})}}}}),Nbe=p7({name:`no-redundant-story-name`,defaultOptions:[],meta:{type:`suggestion`,fixable:`code`,hasSuggestions:!0,severity:`warn`,docs:{description:`A story should not have a redundant name property`,categories:[`csf`,`recommended`]},messages:{removeRedundantName:`Remove redundant name`,storyNameIsRedundant:`Named exports should not use the name annotation if it is redundant to the name that would be generated by the export name`},schema:[]},create(e){return{ExportNamedDeclaration:function(t){if(!t.declaration)return;let n=t.declaration;if(Z5(n)){let t=n.declarations[0];if(t==null)return;let{id:r,init:i}=t;if(q5(r)&&n7(i)){let t=i.properties.find(e=>r7(e)&&q5(e.key)&&(e.key?.name===`name`||e.key?.name===`storyName`));if(!t)return;let{name:n}=r,a=l7(n);!i7(t)&&e7(t.value)&&t.value.value===a&&e.report({node:t,messageId:`storyNameIsRedundant`,suggest:[{messageId:`removeRedundantName`,fix:function(e){return e.remove(t)}}]})}}},AssignmentExpression:function(t){if(!pbe(t.parent))return;let{left:n,right:r}=t;if(`property`in n&&q5(n.property)&&!xbe(n)&&n.property.name===`storyName`){if(!(`name`in n.object&&`value`in r))return;let i=n.object.name;r.value===l7(i)&&e.report({node:t,messageId:`storyNameIsRedundant`,suggest:[{messageId:`removeRedundantName`,fix:function(e){return e.remove(t)}}]})}}}}}),m7={"@storybook/html":[`@storybook/html-vite`,`@storybook/html-webpack5`],"@storybook/preact":[`@storybook/preact-vite`,`@storybook/preact-webpack5`],"@storybook/react":[`@storybook/nextjs`,`@storybook/react-vite`,`@storybook/nextjs-vite`,`@storybook/react-webpack5`,`@storybook/react-native-web-vite`],"@storybook/server":[`@storybook/server-webpack5`],"@storybook/svelte":[`@storybook/svelte-vite`,`@storybook/svelte-webpack5`,`@storybook/sveltekit`],"@storybook/vue3":[`@storybook/vue3-vite`,`@storybook/vue3-webpack5`],"@storybook/web-components":[`@storybook/web-components-vite`,`@storybook/web-components-webpack5`]},Pbe=p7({name:`no-renderer-packages`,defaultOptions:[],meta:{type:`problem`,severity:`error`,docs:{description:`Do not import renderer packages directly in stories`,categories:[`recommended`]},schema:[],messages:{noRendererPackages:`Do not import renderer package "{{rendererPackage}}" directly. Use a framework package instead (e.g. {{suggestions}}).`}},create(e){return{ImportDeclaration(t){let n=t.source.value;if(typeof n==`string`&&n in m7){let r=m7[n];e.report({node:t,messageId:`noRendererPackages`,data:{rendererPackage:n,suggestions:r.join(`, `)}})}}}}}),Fbe=p7({name:`no-stories-of`,defaultOptions:[],meta:{type:`problem`,severity:`error`,docs:{description:`storiesOf is deprecated and should not be used`,categories:[`csf-strict`]},messages:{doNotUseStoriesOf:`storiesOf is deprecated and should not be used`},schema:[]},create(e){return{ImportSpecifier(t){`name`in t.imported&&t.imported.name===`storiesOf`&&e.report({node:t,messageId:`doNotUseStoriesOf`})}}}}),Ibe=p7({name:`no-title-property-in-meta`,defaultOptions:[],meta:{type:`problem`,fixable:`code`,hasSuggestions:!0,severity:`error`,docs:{description:`Do not define a title in meta`,categories:[`csf-strict`]},messages:{removeTitleInMeta:`Remove title property from meta`,noTitleInMeta:`CSF3 does not need a title in meta`},schema:[]},create:function(e){return{ExportDefaultDeclaration:function(t){let n=d7(t,e);if(!n)return null;let r=n.properties.find(e=>!i7(e)&&`name`in e.key&&e.key?.name===`title`);r&&e.report({node:r,messageId:`noTitleInMeta`,suggest:[{messageId:`removeTitleInMeta`,fix(t){let n=e.sourceCode.text.slice(r.range[0],r.range[1]+1).slice(-1)===`,`,i=[r.range[0],n?r.range[1]+1:r.range[1]];return t.removeRange(i)}}]})}}}}),Lbe=tbe(nbe(),1),Rbe=p7({name:`no-uninstalled-addons`,defaultOptions:[{packageJsonLocation:``,ignore:[]}],meta:{type:`problem`,severity:`error`,docs:{description:`This rule identifies storybook addons that are invalid because they are either not installed or contain a typo in their name.`,categories:[`recommended`]},messages:{addonIsNotInstalled:`The {{ addonName }} is not installed in {{packageJsonPath}}. Did you forget to install it or is your package.json in a different location?`},schema:[{type:`object`,properties:{packageJsonLocation:{type:`string`},ignore:{type:`array`,items:{type:`string`}}},additionalProperties:!1}]},create(e){let{packageJsonLocation:t,ignore:n}=e.options.reduce((e,t)=>({packageJsonLocation:t.packageJsonLocation||e.packageJsonLocation,ignore:t.ignore||e.ignore}),{packageJsonLocation:``,ignore:[]});function r(e){return!!e}let i=e=>{let t=Object.keys(e.dependencies||{}),n=Object.keys(e.devDependencies||{});return[...t,...n]},a=(e,t)=>{let n=e.replace(/\.[mc]?js$/,``).replace(/\/register$/,``).replace(/\/preset$/,``);return t.includes(n)},o=e=>!(e=>e.startsWith(`.`)||e.startsWith(`/`)||/\w:.*/.test(e)||e.startsWith(`\\`))(e),s=(e,t)=>{let r=e.filter(o).filter(e=>!a(e,t)&&!n.includes(e)).map(e=>({name:e}));return r.length?r:!1},c=e=>{let t={devDependencies:{},dependencies:{}};try{let n=M(e,`utf8`),r=JSON.parse(n);t.dependencies=r.dependencies||{},t.devDependencies=r.devDependencies||{}}catch{throw Error(Lbe.dedent`The provided path in your eslintrc.json - ${e} is not a valid path to a package.json file or your package.json file is not in the same folder as ESLint is running from.
516
516
 
@@ -521,4 +521,4 @@ See also https://github.com/typescript-eslint/typescript-eslint/issues/10940 for
521
521
  `),c=s[o.loc.start.line-1]?.match(/^\s*/)?.[0]??``,l=s.slice(i.loc.start.line-1,i.loc.end.line).join(`
522
522
  `).trimStart();if(n.length===t.body.length&&n.length===1){let t=r.getTokenAfter(o);return[e.insertTextBefore(o,l),t?.value===`;`?e.removeRange([o.range[0],t.range[1]]):e.remove(o)]}let u=r.getIndexFromLoc({line:i.loc.start.line,column:0}),d=r.getIndexFromLoc({line:i.loc.end.line+1,column:0});return[e.insertTextBefore(o,l+`
523
523
  `+c),e.removeRange([u,d])]}}))}function p(t){if(!i(t))return;let a=S7(t)?K7(t.callee):null;(a||c(t)||l(t))&&(!a||n.isFireEventUtil(a)||n.isUserEventUtil(a)||n.isRenderUtil(a))&&e.report({node:t,messageId:`noSideEffectsWaitFor`,fix:e=>{let{parent:n}=t.parent,i=(0,wX.isAwaitExpression)(n.parent)?n.parent:n;return e.replaceText(i,r.getText(t))}})}return{"CallExpression > ArrowFunctionExpression > BlockStatement":f,"CallExpression > ArrowFunctionExpression > CallExpression":p,"CallExpression > ArrowFunctionExpression > AssignmentExpression":p,"CallExpression > ArrowFunctionExpression > SequenceExpression":p,"CallExpression > FunctionExpression > BlockStatement":f}}});const $xe=/^(toMatchSnapshot|toMatchInlineSnapshot)$/;var eSe=O9({name:`no-wait-for-snapshot`,meta:{type:`problem`,docs:{description:"Ensures no snapshot is generated inside of a `waitFor` call",recommendedConfig:{dom:`error`,angular:`error`,react:`error`,vue:`error`,svelte:`error`,marko:`error`}},messages:{noWaitForSnapshot:"A snapshot can't be generated inside of a `{{ name }}` call"},schema:[]},defaultOptions:[],create(e,t,n){function r(e){let t=e;do{let e=L7(t);if(!e)return null;if(X.ASTUtils.isIdentifier(e.callee)&&n.isAsyncUtil(e.callee))return e.callee;if(j7(e.callee)&&X.ASTUtils.isIdentifier(e.callee.property)&&n.isAsyncUtil(e.callee.property))return e.callee.property;e.parent&&(t=L7(e.parent))}while(t!==null);return null}return{[`Identifier[name=${String($xe)}]`](t){let n=r(t);n!==null&&e.report({node:t,messageId:`noWaitForSnapshot`,data:{name:n.name}})}}}});const L9=e=>!!e.parent?.parent&&e.parent.parent.type===X.TSESTree.AST_NODE_TYPES.ExpressionStatement||e.parent?.parent?.type===X.TSESTree.AST_NODE_TYPES.AwaitExpression&&!!e.parent.parent.parent&&e.parent.parent.parent.type===X.TSESTree.AST_NODE_TYPES.ExpressionStatement,tSe=e=>!!(S7(e.parent)&&X.ASTUtils.isAwaitExpression(e.parent.parent)&&X.ASTUtils.isVariableDeclarator(e.parent.parent.parent)||S7(e.parent)&&X.ASTUtils.isVariableDeclarator(e.parent.parent)||j7(e.parent)&&S7(e.parent.parent)&&X.ASTUtils.isAwaitExpression(e.parent.parent.parent)&&X.ASTUtils.isVariableDeclarator(e.parent.parent.parent.parent)||j7(e.parent)&&S7(e.parent.parent)&&X.ASTUtils.isVariableDeclarator(e.parent.parent.parent));var nSe=O9({name:`prefer-explicit-assert`,meta:{type:`suggestion`,docs:{description:`Suggest using explicit assertions rather than standalone queries`,recommendedConfig:{dom:!1,angular:!1,react:!1,vue:!1,svelte:!1,marko:!1}},messages:{preferExplicitAssert:"Wrap stand-alone `{{queryType}}` query with `expect` function for better explicit assertion",preferExplicitAssertAssertion:"`getBy*` queries must be asserted with `{{assertion}}`"},schema:[{type:`object`,additionalProperties:!1,properties:{assertion:{type:`string`,enum:[...S9]},includeFindQueries:{type:`boolean`}}}]},defaultOptions:[{includeFindQueries:!0}],create(e,[t],n){let{assertion:r,includeFindQueries:i}=t,a=[],o=[];return{"CallExpression Identifier"(e){n.isGetQueryVariant(e)&&a.push(e),n.isFindQueryVariant(e)&&o.push(e)},"Program:exit"(){i&&o.forEach(t=>{let n=j7(t.parent)?t.parent:t;!tSe(t)&&L9(n)&&e.report({node:t,messageId:`preferExplicitAssert`,data:{queryType:`findBy*`}})}),a.forEach(t=>{let n=j7(t.parent)?t.parent:t;if(L9(n)&&e.report({node:t,messageId:`preferExplicitAssert`,data:{queryType:`getBy*`}}),r){let t=B7(n,`expect`);if(!t)return;let i=t.parent;if(!j7(i))return;let a=i.property;if(!X.ASTUtils.isIdentifier(a))return;let o=a.name,s=!1;o===`not`&&j7(i.parent)&&X.ASTUtils.isIdentifier(i.parent.property)&&(s=!0,o=i.parent.property.name),(!s&&S9.some(e=>e===o)||s&&C9.some(e=>e===o))&&o!==r&&e.report({node:a,messageId:`preferExplicitAssertAssertion`,data:{assertion:r}})}})}}}});function R9(e){return e.includes(`All`)?`findAllBy`:`findBy`}function z9(e,t){if(!e)return null;let n=e.variables.find(e=>e.name===t);return n?n.defs.map(({name:e})=>e).filter(X.ASTUtils.isIdentifier).find(({name:e})=>e===t)??null:z9(e.upper,t)}var rSe=O9({name:`prefer-find-by`,meta:{type:`suggestion`,docs:{description:"Suggest using `find(All)By*` query instead of `waitFor` + `get(All)By*` to wait for elements",recommendedConfig:{dom:`error`,angular:`error`,react:`error`,vue:`error`,svelte:`error`,marko:`error`}},messages:{preferFindBy:"Prefer `{{queryVariant}}{{queryMethod}}` query over using `waitFor` + `{{prevQuery}}`"},fixable:`code`,schema:[]},defaultOptions:[],create(e,t,n){let r=_7(e);function i(t,n){let{queryMethod:r,queryVariant:i,prevQuery:a,fix:o}=n;e.report({node:t,messageId:`preferFindBy`,data:{queryVariant:i,queryMethod:r,prevQuery:a},fix:o})}function a(e){return!S7(e.body)||!j7(e.body.callee)?null:S7(e.body.callee.object)&&S7(e.body.callee.object.arguments[0])&&X.ASTUtils.isIdentifier(e.body.callee.object.arguments[0].callee)?e.body.callee.object.arguments[0].callee:X.ASTUtils.isIdentifier(e.body.callee.property)?S7(e.body.callee.object)&&S7(e.body.callee.object.arguments[0])&&j7(e.body.callee.object.arguments[0].callee)&&X.ASTUtils.isIdentifier(e.body.callee.object.arguments[0].callee.property)?e.body.callee.object.arguments[0].callee.property:j7(e.body.callee.object)&&S7(e.body.callee.object.object)&&S7(e.body.callee.object.object.arguments[0])&&j7(e.body.callee.object.object.arguments[0].callee)&&X.ASTUtils.isIdentifier(e.body.callee.object.object.arguments[0].callee.property)?e.body.callee.object.object.arguments[0].callee.property:j7(e.body.callee.object)&&S7(e.body.callee.object.object)&&S7(e.body.callee.object.object.arguments[0])&&X.ASTUtils.isIdentifier(e.body.callee.object.object.arguments[0].callee)?e.body.callee.object.object.arguments[0].callee:e.body.callee.property:null}function o(e){return S7(e.body)?X.ASTUtils.isIdentifier(e.body.callee)&&n.isSyncQuery(e.body.callee)?e.body.callee:a(e):null}function s(e){return!S7(e.body)||!j7(e.body.callee)?null:X.ASTUtils.isIdentifier(e.body.callee.object)?e.body.callee.object.name:S7(e.body.callee.object)&&X.ASTUtils.isIdentifier(e.body.callee.object.callee)&&S7(e.body.callee.object.arguments[0])&&j7(e.body.callee.object.arguments[0].callee)&&X.ASTUtils.isIdentifier(e.body.callee.object.arguments[0].callee.object)?e.body.callee.object.arguments[0].callee.object.name:j7(e.body.callee.object)&&S7(e.body.callee.object.object)&&S7(e.body.callee.object.object.arguments[0])&&j7(e.body.callee.object.object.arguments[0].callee)&&X.ASTUtils.isIdentifier(e.body.callee.object.object.arguments[0].callee.object)?e.body.callee.object.object.arguments[0].callee.object.name:null}function c(e){if(!S7(e.body))return!1;let t=X.ASTUtils.isIdentifier(e.body.callee)&&n.isSyncQuery(e.body.callee),r=j7(e.body.callee)&&S7(e.body.callee.object)&&S7(e.body.callee.object.arguments[0])&&X.ASTUtils.isIdentifier(e.body.callee.object.arguments[0].callee)&&n.isSyncQuery(e.body.callee.object.arguments[0].callee)&&n.isPresenceAssert(e.body.callee),i=j7(e.body.callee)&&j7(e.body.callee.object)&&S7(e.body.callee.object.object)&&S7(e.body.callee.object.object.arguments[0])&&X.ASTUtils.isIdentifier(e.body.callee.object.object.arguments[0].callee)&&n.isSyncQuery(e.body.callee.object.object.arguments[0].callee)&&n.isPresenceAssert(e.body.callee.object);return t||r||i}function l(e){if(!b7(e)||!S7(e.body)||!j7(e.body.callee)||!X.ASTUtils.isIdentifier(e.body.callee.property)||!X.ASTUtils.isIdentifier(e.body.callee.object)&&!S7(e.body.callee.object)&&!j7(e.body.callee.object))return!1;let t=n.isPresenceAssert(e.body.callee)&&S7(e.body.callee.object)&&S7(e.body.callee.object.arguments[0])&&j7(e.body.callee.object.arguments[0].callee)&&X.ASTUtils.isIdentifier(e.body.callee.object.arguments[0].callee.object),r=j7(e.body.callee.object)&&n.isPresenceAssert(e.body.callee.object)&&S7(e.body.callee.object.object)&&S7(e.body.callee.object.object.arguments[0])&&j7(e.body.callee.object.object.arguments[0].callee);return n.isSyncQuery(e.body.callee.property)||t||r}function u(e){return j7(e.callee)&&S7(e.callee.object)&&S7(e.callee.object.arguments[0])?e.callee.object.arguments[0].arguments:j7(e.callee)&&j7(e.callee.object)&&S7(e.callee.object.object)&&S7(e.callee.object.object.arguments[0])?e.callee.object.object.arguments[0].arguments:e.arguments}return{"AwaitExpression > CallExpression"(t){if(!X.ASTUtils.isIdentifier(t.callee)||!n.isAsyncUtil(t.callee,[`waitFor`]))return;let a=t.arguments[0];if(!b7(a))return;if(x7(a.body)&&a.async){let{body:e}=a.body,o=(e.filter(w7)?.flatMap(e=>e.declarations)).find(e=>{if(!X.ASTUtils.isAwaitExpression(e.init)||!S7(e.init.argument))return!1;let{callee:t}=e.init.argument,r=q7(t);return r?n.isFindQueryVariant(r):!1}),s=X.ASTUtils.isAwaitExpression(o?.init)?o.init.argument:null;if(!S7(s))return;let c=q7(s.callee);if(!c||!n.isAsyncQuery(c))return;let l=c.name,u=l.split(`By`)[1],d=R9(l);if(!u)throw Error(`Query method could not be determined.`);i(t,{queryMethod:u,queryVariant:d,prevQuery:l,fix(e){let{parent:n}=t.parent,i=r.getText(a.body).slice(1,-1).trim(),{line:o,column:s}=n.loc.start,c=r.getLines()[o-1]?.slice(0,s),l=i.split(`
524
- `).map(e=>e.trim()).join(`\n${c}`);return e.replaceText(n,l)}});return}let d=a.body;if(!S7(d))return;if(l(a)){let e=s(a);if(!e)return;let c=o(a);if(!c)return;let l=c.name,f=t.arguments[1],p=``;M7(f)&&(p=`, ${r.getText(f)}`);let m=R9(l),h=u(d),g=l.split(`By`)[1];if(!g)return;i(t,{queryMethod:g,queryVariant:m,prevQuery:l,fix(i){let a=`${e}.${m}${g}(${h.map(e=>r.getText(e)).join(`, `)}${p})`;if(!j7(d.callee))return null;let{property:o,object:s}=d.callee;if(X.ASTUtils.isVariableDeclarator(t.parent.parent))return(0,wX.isIdentifier)(o)&&n.isCustomQuery(o)?null:i.replaceText(t,a);if(!S7(s))return null;let c=r.getText(d),l=`await ${a}`,u=c.replace(r.getText(s.arguments[0]),l),f=c.replace(c,u);return i.replaceText(t.parent,f)}});return}if(!c(a))return;let f=o(a);if(!f)return;let p=f.name,m=p.split(`By`)[1],h=R9(p),g=u(d);if(!m)throw Error(`Query method could not be determined.`);i(t,{queryMethod:m,queryVariant:h,prevQuery:p,fix(i){if(n.isCustomQuery(d.callee))return null;let a=`${h}${m}`,o=[],s=`${a}(${g.map(e=>r.getText(e)).join(`, `)})`;o.push(i.replaceText(t,s));let c=z9(v7(e,f),p);if(!c)return o;if(c.parent&&N7(c.parent.parent)){let e=c.parent.parent;if(e.properties.some(e=>P7(e)&&X.ASTUtils.isIdentifier(e.key)&&e.key.name===a))return o;let t=r.getText(e).replace(/(\s*})$/,`, ${a}$1`);o.push(i.replaceText(e,t))}return o}})}}}});const B9=e=>j7(e.parent)&&e.parent.object.type===X.AST_NODE_TYPES.Identifier,V9=(e,t)=>t?S7(e.parent)&&X.ASTUtils.isAwaitExpression(e.parent.parent)&&S7(e.parent.parent.parent)&&X.ASTUtils.isIdentifier(e.parent.parent.parent.callee)&&e.parent.parent.parent.callee.name===`expect`:S7(e.parent)&&S7(e.parent.parent)&&X.ASTUtils.isIdentifier(e.parent.parent.callee)&&e.parent.parent.callee.name===`expect`,H9=(e,t,n)=>{if(t)return e.report({node:t,messageId:`preferImplicitAssert`,data:{queryType:n}})};var iSe=O9({name:`prefer-implicit-assert`,meta:{type:`suggestion`,docs:{description:`Suggest using implicit assertions for getBy* & findBy* queries`,recommendedConfig:{dom:!1,angular:!1,react:!1,vue:!1,svelte:!1,marko:!1}},messages:{preferImplicitAssert:"Don't wrap `{{queryType}}` query with `expect` & presence matchers like `toBeInTheDocument` or `not.toBeNull` as `{{queryType}}` queries fail implicitly when element is not found"},schema:[]},defaultOptions:[],create(e,t,n){let r=[],i=[];return{"CallExpression Identifier"(e){n.isFindQueryVariant(e)&&r.push(e),n.isGetQueryVariant(e)&&i.push(e)},"Program:exit"(){r.forEach(t=>{let r=B9(t)?t.parent:t;if(r&&V9(r,!0)&&j7(r.parent?.parent?.parent?.parent)&&r.parent?.parent?.parent?.parent.property.type===X.AST_NODE_TYPES.Identifier&&n.isPresenceAssert(r.parent.parent.parent.parent))return H9(e,r,`findBy*`)}),i.forEach(t=>{let r=B9(t)?t.parent:t;if(r&&V9(r,!1)&&j7(r.parent?.parent?.parent)&&r.parent?.parent?.parent.property.type===X.AST_NODE_TYPES.Identifier&&n.isPresenceAssert(r.parent.parent.parent))return H9(e,r,`getBy*`)})}}}}),aSe=O9({name:`prefer-presence-queries`,meta:{docs:{description:"Ensure appropriate `get*`/`query*` queries are used with their respective matchers",recommendedConfig:{dom:`error`,angular:`error`,react:`error`,vue:`error`,svelte:`error`,marko:`error`}},messages:{wrongPresenceQuery:"Use `getBy*` queries rather than `queryBy*` for checking element is present",wrongAbsenceQuery:"Use `queryBy*` queries rather than `getBy*` for checking element is NOT present"},fixable:`code`,schema:[{type:`object`,additionalProperties:!1,properties:{presence:{type:`boolean`},absence:{type:`boolean`}}}],type:`suggestion`},defaultOptions:[{presence:!0,absence:!0}],create(e,[{absence:t=!0,presence:n=!0}],r){return{"CallExpression Identifier"(i){let a=B7(i,`expect`),o=B7(i,`within`);if(!j7(a?.parent)||!r.isSyncQuery(i))return;let s=r.isGetQueryVariant(i),c=a.parent,l=r.isPresenceAssert(c),u=r.isAbsenceAssert(c);if(l||u){if(n&&(o||l)&&!s){let t=i.name.replace(/^query/,`get`);e.report({node:i,messageId:`wrongPresenceQuery`,fix:e=>e.replaceText(i,t)})}else if(!o&&t&&u&&s){let t=i.name.replace(/^get/,`query`);e.report({node:i,messageId:`wrongAbsenceQuery`,fix:e=>e.replaceText(i,t)})}}}}}}),oSe=O9({name:`prefer-query-by-disappearance`,meta:{type:`problem`,docs:{description:"Suggest using `queryBy*` queries when waiting for disappearance",recommendedConfig:{dom:`error`,angular:`error`,react:`error`,vue:`error`,svelte:`error`,marko:`error`}},messages:{preferQueryByDisappearance:`Prefer using queryBy* when waiting for disappearance`},schema:[]},defaultOptions:[],create(e,t,n){function r(e){let t=K7(e);return t?n.isAsyncUtil(t,[`waitForElementToBeRemoved`]):!1}function i(t){let r=j7(t)?K7(t.property):K7(t);return r&&(n.isGetQueryVariant(r)||n.isFindQueryVariant(r))?(e.report({node:r,messageId:`preferQueryByDisappearance`}),!0):!1}function a(e){return!S7(e)||!j7(e.callee)&&!K7(e.callee)?!1:i(e.callee)}function o(e){return!F7(e)||!S7(e.argument)?!1:i(e.argument.callee)}function s(e){return!C7(e)||!S7(e.expression)||!j7(e.expression.callee)&&!K7(e.expression.callee)?!1:i(e.expression.callee)}function c(e){return o(e)||s(e)}function l(e){return I7(e)?e.body.body.some(e=>c(e)):!1}function u(e){return!b7(e)||!x7(e.body)?!1:e.body.body.some(e=>c(e))}function d(e){return!b7(e)||!S7(e.body)||!j7(e.body.callee)&&!K7(e.body.callee)?!1:i(e.body.callee)}function f(e){return u(e)||d(e)}function p(e){if(!r(e))return;let t=e.arguments[0];t&&(a(t),f(t),l(t))}return{CallExpression:p}}}),sSe=O9({name:`prefer-query-matchers`,meta:{docs:{description:"Ensure the configured `get*`/`query*` query is used with the corresponding matchers",recommendedConfig:{dom:!1,angular:!1,react:!1,vue:!1,svelte:!1,marko:!1}},messages:{wrongQueryForMatcher:"Use `{{ query }}By*` queries for {{ matcher }}"},schema:[{type:`object`,additionalProperties:!1,properties:{validEntries:{type:`array`,items:{type:`object`,properties:{query:{type:`string`,enum:[`get`,`query`]},matcher:{type:`string`}},additionalProperties:!1}}}}],type:`suggestion`},defaultOptions:[{validEntries:[]}],create(e,[{validEntries:t}],n){return{"CallExpression Identifier"(r){let i=B7(r,`expect`);if(!i||!j7(i.parent)||!n.isSyncQuery(r))return;let a=n.isGetQueryVariant(r),o=i.parent;for(let i of t){let{query:t,matcher:s}=i;n.isMatchingAssert(o,s)&&t!==(a?`get`:`query`)&&e.report({node:r,messageId:`wrongQueryForMatcher`,data:{query:t,matcher:s}})}}}}});const cSe=[`container`,`baseElement`];function U9(e){let t=e.arguments[1];return M7(t)&&t.properties.some(e=>P7(e)&&X.ASTUtils.isIdentifier(e.key)&&cSe.includes(e.key.name))}var lSe=O9({name:`prefer-screen-queries`,meta:{type:`suggestion`,docs:{description:"Suggest using `screen` while querying",recommendedConfig:{dom:`error`,angular:`error`,react:`error`,vue:`error`,svelte:`error`,marko:`error`}},messages:{preferScreenQueries:"Avoid destructuring queries from `render` result, use `screen.{{ name }}` instead"},schema:[]},defaultOptions:[],create(e,t,n){let r=[];function i(t){let n=$7(e,t);n&&r.push(Y7(n))}function a(e){return n.isRenderUtil(e)||r.includes(e.name)}function o(t){e.report({node:t,messageId:`preferScreenQueries`,data:{name:t.name}})}function s(e){if(N7(e.id))for(let t of e.id.properties)P7(t)&&X.ASTUtils.isIdentifier(t.key)&&n.isBuiltInQuery(t.key)&&l.push(t.key.name)}function c(e){return[`screen`,...u].includes(e)}let l=[],u=[];return{VariableDeclarator(e){if(!S7(e.init)||!X.ASTUtils.isIdentifier(e.init.callee))return;let t=a(e.init.callee);t||s(e);let n=e.init.callee.name===`within`,r=t&&U9(e.init);(n||r)&&(N7(e.id)?s(e):X.ASTUtils.isIdentifier(e.id)&&u.push(e.id.name))},CallExpression(t){let r=q7(t);if(!r||(n.isRenderUtil(r)&&i(r),!n.isBuiltInQuery(r)))return;if(!j7(r.parent)){if(l.some(e=>e===r.name))return;o(r);return}let s=r.parent;if(S7(s.object)&&X.ASTUtils.isIdentifier(s.object.callee)&&s.object.callee.name!==`within`&&a(s.object.callee)&&!U9(s.object)){o(r);return}let u=p9(t,e);X.ASTUtils.isIdentifier(s.object)&&!c(s.object.name)&&!c(u?.original??``)&&o(r)}}}});const W9={click:[`click`,`type`,`selectOptions`,`deselectOptions`],change:[`upload`,`type`,`clear`,`selectOptions`,`deselectOptions`],dblClick:[`dblClick`],input:[`type`,`upload`,`selectOptions`,`deselectOptions`,`paste`],keyDown:[`type`,`tab`],keyPress:[`type`],keyUp:[`type`,`tab`],mouseDown:[`click`,`dblClick`,`selectOptions`,`deselectOptions`],mouseEnter:[`hover`,`selectOptions`,`deselectOptions`],mouseLeave:[`unhover`],mouseMove:[`hover`,`unhover`,`selectOptions`,`deselectOptions`],mouseOut:[`unhover`],mouseOver:[`hover`,`selectOptions`,`deselectOptions`],mouseUp:[`click`,`dblClick`,`selectOptions`,`deselectOptions`],paste:[`paste`],pointerDown:[`click`,`dblClick`,`selectOptions`,`deselectOptions`],pointerEnter:[`hover`,`selectOptions`,`deselectOptions`],pointerLeave:[`unhover`],pointerMove:[`hover`,`unhover`,`selectOptions`,`deselectOptions`],pointerOut:[`unhover`],pointerOver:[`hover`,`selectOptions`,`deselectOptions`],pointerUp:[`click`,`dblClick`,`selectOptions`,`deselectOptions`]};function uSe(e){return(W9[e]?.map(e=>`userEvent.${e}`)??[]).join(`, `).replace(/, ([a-zA-Z.]+)$/,`, or $1`)}const dSe=Object.keys(W9);var fSe=O9({name:`prefer-user-event`,meta:{type:`suggestion`,docs:{description:"Suggest using `userEvent` over `fireEvent` for simulating user interactions",recommendedConfig:{dom:!1,angular:!1,react:!1,vue:!1,svelte:!1,marko:!1}},messages:{preferUserEvent:`Prefer using {{userEventMethods}} over fireEvent.{{fireEventMethod}}`},schema:[{type:`object`,properties:{allowedMethods:{type:`array`}},additionalProperties:!1}]},defaultOptions:[{allowedMethods:[]}],create(e,[t],n){let{allowedMethods:r}=t,i={},a=e=>!dSe.includes(e)||r.includes(e),o=(e,t)=>{if(!X.ASTUtils.isIdentifier(e.callee)&&!j7(e.callee))return t.name;let r=e.arguments[1];return X.ASTUtils.isIdentifier(r)&&i[r.name]!==void 0?i[r.name]:!S7(r)||!n.isCreateEventUtil(r)?t.name:X.ASTUtils.isIdentifier(r.callee)?r.arguments[0].value:r.callee.property.name};return{"CallExpression Identifier"(t){if(!n.isFireEventMethod(t))return;let r=L7(t,!0);if(!r)return;let i=o(r,t);i&&!a(i)&&e.report({node:r.callee,messageId:`preferUserEvent`,data:{userEventMethods:uSe(i),fireEventMethod:i}})},VariableDeclarator(e){if(!S7(e.init)||!n.isCreateEventUtil(e.init)||!X.ASTUtils.isIdentifier(e.id))return;let t=``;j7(e.init.callee)&&X.ASTUtils.isIdentifier(e.init.callee.property)?t=e.init.callee.property.name:e.init.arguments.length>0&&(t=e.init.arguments[0].value),a(t)||(i[e.id.name]=t)}}}});const G9=`setup`;var pSe=O9({name:`prefer-user-event-setup`,meta:{type:`suggestion`,docs:{description:`Suggest using userEvent with setup() instead of direct methods`,recommendedConfig:{dom:!1,angular:!1,react:!1,vue:!1,svelte:!1,marko:!1}},messages:{preferUserEventSetup:`Prefer using userEvent with setup() instead of direct {{method}}() call. Use: const user = userEvent.setup(); await user.{{method}}(...)`},schema:[]},defaultOptions:[],create(e,t,n){let r=/* @__PURE__ */ new Set,i=/* @__PURE__ */ new Map,a=null;function o(e){return e.type===X.AST_NODE_TYPES.CallExpression&&e.callee.type===X.AST_NODE_TYPES.MemberExpression&&e.callee.object.type===X.AST_NODE_TYPES.Identifier&&e.callee.object.name===a&&e.callee.property.type===X.AST_NODE_TYPES.Identifier&&e.callee.property.name===G9}return{ImportDeclaration(e){if(e.source.value===`@testing-library/user-event`){let t=e.specifiers.find(e=>e.type===X.AST_NODE_TYPES.ImportDefaultSpecifier);t&&(a=t.local.name);let n=e.specifiers.find(e=>e.type===X.AST_NODE_TYPES.ImportSpecifier&&e.imported.type===X.AST_NODE_TYPES.Identifier&&e.imported.name===`userEvent`);n&&n.type===X.AST_NODE_TYPES.ImportSpecifier&&(a=n.local.name)}},VariableDeclarator(e){if(a&&e.init&&(o(e.init)&&e.id.type===X.AST_NODE_TYPES.Identifier&&r.add(e.id.name),e.id.type===X.AST_NODE_TYPES.ObjectPattern&&e.init.type===X.AST_NODE_TYPES.CallExpression&&e.init.callee.type===X.AST_NODE_TYPES.Identifier)){let t=e.init.callee.name,n=i.get(t);if(n)for(let t of e.id.properties)t.type===X.AST_NODE_TYPES.Property&&t.key.type===X.AST_NODE_TYPES.Identifier&&n.has(t.key.name)&&t.value.type===X.AST_NODE_TYPES.Identifier&&r.add(t.value.name)}},FunctionDeclaration(e){if(a&&e.id&&e.body&&e.body.type===X.AST_NODE_TYPES.BlockStatement){for(let t of e.body.body)if(t.type===X.AST_NODE_TYPES.ReturnStatement){let n=t;if(n.argument&&n.argument.type===X.AST_NODE_TYPES.ObjectExpression){let t=/* @__PURE__ */ new Set;for(let e of n.argument.properties)e.type===X.AST_NODE_TYPES.Property&&e.key.type===X.AST_NODE_TYPES.Identifier&&e.value&&o(e.value)&&t.add(e.key.name);t.size>0&&i.set(e.id.name,t)}}}},CallExpression(t){if(a&&t.callee.type===X.AST_NODE_TYPES.MemberExpression&&t.callee.property.type===X.AST_NODE_TYPES.Identifier&&n.isUserEventMethod(t.callee.property)){let n=t.callee.property.name;if(n===G9)return;t.callee.object.type===X.AST_NODE_TYPES.Identifier&&r.has(t.callee.object.name)||e.report({node:t.callee,messageId:`preferUserEventSetup`,data:{method:n}})}}}}});const K9=[`view`,`utils`],mSe={"await-async-events":kxe,"await-async-queries":Axe,"await-async-utils":jxe,"consistent-data-testid":Mxe,"no-await-sync-events":Fxe,"no-await-sync-queries":Ixe,"no-container":Lxe,"no-debugging-utils":Rxe,"no-dom-import":Hxe,"no-global-regexp-flag-in-query":Uxe,"no-manual-cleanup":Gxe,"no-node-access":Kxe,"no-promise-in-fire-event":qxe,"no-render-in-lifecycle":Jxe,"no-test-id-queries":Yxe,"no-unnecessary-act":Xxe,"no-wait-for-multiple-assertions":Zxe,"no-wait-for-side-effects":Qxe,"no-wait-for-snapshot":eSe,"prefer-explicit-assert":nSe,"prefer-find-by":rSe,"prefer-implicit-assert":iSe,"prefer-presence-queries":aSe,"prefer-query-by-disappearance":oSe,"prefer-query-matchers":sSe,"prefer-screen-queries":lSe,"prefer-user-event":fSe,"prefer-user-event-setup":pSe,"render-result-naming-convention":O9({name:`render-result-naming-convention`,meta:{type:`suggestion`,docs:{description:"Enforce a valid naming for return value from `render`",recommendedConfig:{dom:!1,angular:`error`,react:`error`,vue:`error`,svelte:`error`,marko:`error`}},messages:{renderResultNamingConvention:`\`{{ renderResultName }}\` is not a recommended name for \`render\` returned value. Instead, you should destructure it, or name it using one of: ${K9.map(e=>`\`${e}\``).join(`, `).replace(/, ([^,]*)$/,`, or $1`)}`},schema:[]},defaultOptions:[],create(e,t,n){let r=[];function i(t){let n=$7(e,t);n&&r.push(Y7(n))}return{CallExpression(e){let t=q7(e);t&&n.isRenderUtil(t)&&i(t)},VariableDeclarator(t){if(!t.init)return;let i=q7(t.init);if(!i||!n.isRenderVariableDeclarator(t)&&!r.includes(i.name)||N7(t.id))return;let a=X.ASTUtils.isIdentifier(t.id)&&t.id.name;a&&(K9.includes(a)||e.report({node:t,messageId:`renderResultNamingConvention`,data:{renderResultName:a}}))}}}})},{name:hSe,version:gSe}=t(import.meta.url)(S(y(D(import.meta.url)),`../package.json`)),q9=`testing-library`;function _Se(){return Object.entries(g7).reduce((e,[t,n])=>{let r=`flat/${t}`;return{...e,[r]:{name:`${q9}/${t}`,plugins:{get"testing-library"(){return J9}},rules:n.rules}}},{})}function vSe(){return Object.entries(g7).reduce((e,[t,n])=>({...e,[t]:{plugins:[q9],rules:n.rules}}),{})}const J9={meta:{name:hSe,version:gSe},rules:mSe,configs:{..._Se(),...vSe()}},Y9=[`js`,`jsx`,`mjs`,`cjs`],X9=[`ts`,`tsx`,`mts`,`cts`],Z9=[...Y9,...X9],Q9=`{${Z9.join(`,`)}}`,ySe=[`jsx`,`tsx`],bSe=[`WithStatement`,`ForInStatement`,{selector:`MemberExpression[object.name='React'], TSQualifiedName[left.name='React']`,message:`Import from 'react' by name instead of the React namespace.`},{selector:`JSXAttribute[value=null]`,message:"Set boolean JSX props explicitly, e.g. `prop={true}`."}],xSe={paths:[{name:`punycode`},{name:`assert`}]},$9=vl.rules[`list-style`],SSe={meta:$9.meta,create:e=>$9.create(Object.create(e,{report:{value:t=>t.messageId.endsWith(`Spacing`)&&e.report(t)}}))},CSe={react:I3,"react-web-api":U6},wSe={"react-web-api/no-leaked-event-listener":[0],"react-web-api/no-leaked-fetch":[0],"react-web-api/no-leaked-intersection-observer":[2],"react-web-api/no-leaked-interval":[2],"react-web-api/no-leaked-resize-observer":[2],"react-web-api/no-leaked-timeout":[0],"react/error-boundaries":[2],"react/exhaustive-deps":[2],"react/globals":[2],"react/immutability":[2],"react/no-create-ref":[2],"react/no-missing-context-display-name":[2],"react/no-misused-capture-owner-stack":[2],"react/no-unnecessary-use-prefix":[2],"react/no-unused-state":[2],"react/no-use-context":[2],"react/purity":[2],"react/refs":[2],"react/rules-of-hooks":[2],"react/set-state-in-effect":[2],"react/set-state-in-render":[2],"react/unsupported-syntax":[2],"react/use-memo":[2],"react/use-state":[2,{enforceAssignment:!0,enforceSetterName:!0}]},TSe={"react-jsx":Y3,"react-dom":v6,"react-naming-convention":X6,"react-refresh":Ome,"jsx-a11y":GU,"validate-jsx-nesting":qye.default},ESe={"react-dom/no-dangerously-set-innerhtml":[0],"react-dom/no-dangerously-set-innerhtml-with-children":[2],"react-dom/no-find-dom-node":[2],"react-dom/no-flush-sync":[2],"react-dom/no-hydrate":[2],"react-dom/no-missing-button-type":[0],"react-dom/no-missing-iframe-sandbox":[0],"react-dom/no-render":[2],"react-dom/no-render-return-value":[2],"react-dom/no-script-url":[2],"react-dom/no-string-style-prop":[2],"react-dom/no-unknown-property":[2,{ignore:[`css`],requireDataLowercase:!0}],"react-dom/no-unsafe-iframe-sandbox":[2],"react-dom/no-unsafe-target-blank":[2],"react-dom/no-use-form-state":[2],"react-dom/no-void-elements-with-children":[2],"react-jsx/no-children-prop":[2],"react-jsx/no-children-prop-with-children":[2],"react-jsx/no-comment-textnodes":[2],"react-jsx/no-key-after-spread":[2],"react-jsx/no-leaked-dollar":[2],"react-jsx/no-leaked-semicolon":[2],"react-jsx/no-namespace":[2],"react-jsx/no-useless-fragment":[0],"react-naming-convention/context-name":[0],"react-naming-convention/id-name":[0],"react-naming-convention/ref-name":[0],"react/no-access-state-in-setstate":[0],"react/no-array-index-key":[0],"react/no-children-count":[0],"react/no-children-for-each":[0],"react/no-children-map":[0],"react/no-children-only":[0],"react/no-children-to-array":[0],"react/no-class-component":[2],"react/no-clone-element":[0],"react/no-component-will-mount":[0],"react/no-component-will-receive-props":[0],"react/no-component-will-update":[0],"react/no-context-provider":[2],"react/no-direct-mutation-state":[0],"react/no-duplicate-key":[2],"react/no-forward-ref":[2],"react/no-implicit-children":[0],"react/no-implicit-key":[2],"react/no-implicit-ref":[0],"react/no-leaked-conditional-rendering":[2],"react/no-missing-component-display-name":[0],"react/no-missing-key":[2],"react/no-nested-component-definitions":[2],"react/no-nested-lazy-component-declarations":[2],"react/no-set-state-in-component-did-mount":[0],"react/no-set-state-in-component-did-update":[0],"react/no-set-state-in-component-will-update":[0],"react/no-unsafe-component-will-mount":[0],"react/no-unsafe-component-will-receive-props":[0],"react/no-unsafe-component-will-update":[0],"react/no-unstable-context-value":[2],"react/no-unstable-default-props":[2],"react/no-unused-class-component-members":[0],"react/no-unused-props":[2],"react/static-components":[0],"@stylistic/exp-jsx-props-style":[0],"@stylistic/jsx-child-element-spacing":[0],"@stylistic/jsx-closing-bracket-location":[0],"@stylistic/jsx-closing-tag-location":[2],"@stylistic/jsx-curly-brace-presence":[0],"@stylistic/jsx-curly-newline":[2,`consistent`],"@stylistic/jsx-curly-spacing":[2,{when:`never`}],"@stylistic/jsx-equals-spacing":[2,`never`],"@stylistic/jsx-first-prop-new-line":[0],"@stylistic/jsx-function-call-newline":[0],"@stylistic/jsx-indent-props":[0],"@stylistic/jsx-max-props-per-line":[0],"@stylistic/jsx-newline":[0],"@stylistic/jsx-one-expression-per-line":[0],"@stylistic/jsx-pascal-case":[2,{allowAllCaps:!0}],"@stylistic/jsx-quotes":[0],"@stylistic/jsx-self-closing-comp":[2],"@stylistic/jsx-shorthand-boolean":[0],"@stylistic/jsx-shorthand-fragment":[0],"@stylistic/jsx-tag-spacing":[2,{beforeSelfClosing:`never`,beforeClosing:`never`}],"@stylistic/jsx-wrap-multilines":[2],"jsx-a11y/alt-text":[0],"jsx-a11y/anchor-ambiguous-text":[2],"jsx-a11y/anchor-has-content":[2],"jsx-a11y/anchor-is-valid":[2],"jsx-a11y/aria-activedescendant-has-tabindex":[2],"jsx-a11y/aria-props":[2],"jsx-a11y/aria-proptypes":[2],"jsx-a11y/aria-role":[2],"jsx-a11y/aria-unsupported-elements":[2],"jsx-a11y/autocomplete-valid":[2],"jsx-a11y/click-events-have-key-events":[0],"jsx-a11y/control-has-associated-label":[0],"jsx-a11y/heading-has-content":[2],"jsx-a11y/html-has-lang":[0],"jsx-a11y/iframe-has-title":[0],"jsx-a11y/img-redundant-alt":[0],"jsx-a11y/interactive-supports-focus":[2],"jsx-a11y/label-has-associated-control":[2],"jsx-a11y/lang":[2],"jsx-a11y/media-has-caption":[0],"jsx-a11y/mouse-events-have-key-events":[0],"jsx-a11y/no-access-key":[2],"jsx-a11y/no-aria-hidden-on-focusable":[0],"jsx-a11y/no-autofocus":[0],"jsx-a11y/no-distracting-elements":[2],"jsx-a11y/no-interactive-element-to-noninteractive-role":[0],"jsx-a11y/no-noninteractive-element-interactions":[0],"jsx-a11y/no-noninteractive-element-to-interactive-role":[0],"jsx-a11y/no-noninteractive-tabindex":[0],"jsx-a11y/no-redundant-roles":[2],"jsx-a11y/no-static-element-interactions":[0],"jsx-a11y/prefer-tag-over-role":[2],"jsx-a11y/role-has-required-aria-props":[2],"jsx-a11y/role-supports-aria-props":[2],"jsx-a11y/scope":[0],"jsx-a11y/tabindex-no-positive":[2],"react-refresh/only-export-components":[2,{allowConstantExport:!0}],"validate-jsx-nesting/no-invalid-jsx-nesting":[2]},DSe=[{ignores:[`**/*.snap`,`**/.air/`,`**/.claude/`,`**/.codex/`,`**/.git/`,`**/.playwright-mcp/`,`**/.ruff_cache/`,`**/.swc/`,`**/.venv/`,`**/build/`,`**/dist/`,`**/fixtures/`,`**/node_modules/`,`**/persistent/`,`**/vendor/`]},{files:[`**/*.${Q9}`],languageOptions:{ecmaVersion:`latest`,sourceType:`module`,globals:{...qP.default.browser,...qP.default.node},parser:T,parserOptions:{ecmaFeatures:{jsx:!0,impliedStrict:!0},projectService:!0}},linterOptions:{reportUnusedDisableDirectives:2,reportUnusedInlineConfigs:2},plugins:{"@eslint-community/eslint-comments":ve.default,"@stylistic":vl,"@typescript-eslint":Jye.default.plugin,"import-x":s,regexp:gT,silverwind:{rules:{"list-spacing":SSe}},unicorn:_},settings:{"import-x/extensions":Z9.map(e=>`.${e}`),"import-x/parsers":{"@typescript-eslint/parser":Z9.map(e=>`.${e}`)},"import-x/resolver":{"eslint-import-resolver-typescript":!0},"react-x":{additionalEffectHooks:`/^(useEffectOnce|useLayoutEffectOnce)$/`,additionalRefHooks:`/^(useLazyRef|useMounted|useModifierKeyRef)$/`}},rules:{"@eslint-community/eslint-comments/disable-enable-pair":[2,{allowWholeFile:!0}],"@eslint-community/eslint-comments/no-aggregating-enable":[2],"@eslint-community/eslint-comments/no-duplicate-disable":[2],"@eslint-community/eslint-comments/no-restricted-disable":[0],"@eslint-community/eslint-comments/no-unlimited-disable":[2],"@eslint-community/eslint-comments/no-unused-enable":[2],"@eslint-community/eslint-comments/no-use":[0],"@eslint-community/eslint-comments/require-description":[2,{additionalDirectives:[`oxlint-disable`,`oxlint-disable-line`,`oxlint-disable-next-line`],ignore:[`eslint`,`eslint-enable`,`eslint-env`,`exported`,`global`,`globals`]}],"@stylistic/arrow-parens":[0],"@stylistic/arrow-spacing":[2,{before:!0,after:!0}],"@stylistic/block-spacing":[0],"@stylistic/brace-style":[2,`1tbs`,{allowSingleLine:!0}],"@stylistic/comma-dangle":[2,`only-multiline`],"@stylistic/comma-spacing":[2,{before:!1,after:!0}],"@stylistic/comma-style":[2,`last`],"@stylistic/computed-property-spacing":[2,`never`],"@stylistic/curly-newline":[0],"@stylistic/dot-location":[2,`property`],"@stylistic/eol-last":[2],"@stylistic/function-call-spacing":[2,`never`],"@stylistic/generator-star-spacing":[0],"@stylistic/implicit-arrow-linebreak":[0],"@stylistic/indent":[2,2,{ignoreComments:!0,SwitchCase:1,ignoredNodes:[`TSTypeAnnotation`]}],"@stylistic/indent-binary-ops":[0],"@stylistic/key-spacing":[2],"@stylistic/keyword-spacing":[2],"@stylistic/line-comment-position":[0],"@stylistic/linebreak-style":[2,`unix`],"@stylistic/lines-around-comment":[0],"@stylistic/lines-between-class-members":[0],"@stylistic/list-style":[0],"@stylistic/max-len":[0],"@stylistic/max-statements-per-line":[0],"@stylistic/member-delimiter-style":[0],"@stylistic/multiline-comment-style":[0],"@stylistic/multiline-ternary":[0],"@stylistic/new-parens":[2],"@stylistic/newline-per-chained-call":[0],"@stylistic/no-confusing-arrow":[0],"@stylistic/no-extra-parens":[0],"@stylistic/no-extra-semi":[2],"@stylistic/no-floating-decimal":[0],"@stylistic/no-mixed-operators":[0],"@stylistic/no-mixed-spaces-and-tabs":[2],"@stylistic/no-multi-spaces":[2,{ignoreEOLComments:!0,exceptions:{Property:!0}}],"@stylistic/no-multiple-empty-lines":[2,{max:2,maxEOF:1,maxBOF:0}],"@stylistic/no-tabs":[0],"@stylistic/no-trailing-spaces":[2],"@stylistic/no-whitespace-before-property":[2],"@stylistic/nonblock-statement-body-position":[2],"@stylistic/one-var-declaration-per-line":[0],"@stylistic/operator-linebreak":[2,`after`],"@stylistic/padded-blocks":[2,`never`],"@stylistic/padding-line-between-statements":[0],"@stylistic/quote-props":[0],"@stylistic/quotes":[2,`double`,{avoidEscape:!0,allowTemplateLiterals:`always`}],"@stylistic/rest-spread-spacing":[2,`never`],"@stylistic/semi":[2,`always`],"@stylistic/semi-spacing":[2,{before:!1,after:!0}],"@stylistic/semi-style":[2,`last`],"@stylistic/space-before-blocks":[2,`always`],"@stylistic/space-before-function-paren":[0],"@stylistic/space-in-parens":[2,`never`],"@stylistic/space-infix-ops":[2],"@stylistic/space-unary-ops":[2],"@stylistic/spaced-comment":[0],"@stylistic/switch-colon-spacing":[2],"@stylistic/template-curly-spacing":[2,`never`],"@stylistic/template-tag-spacing":[2,`never`],"@stylistic/type-annotation-spacing":[0],"@stylistic/type-generic-spacing":[0],"@stylistic/type-named-tuple-spacing":[0],"@stylistic/wrap-iife":[2,`inside`],"@stylistic/wrap-regex":[0],"@stylistic/yield-star-spacing":[2,`after`],"@typescript-eslint/adjacent-overload-signatures":[0],"@typescript-eslint/array-type":[0],"@typescript-eslint/await-thenable":[2],"@typescript-eslint/ban-ts-comment":[2,{"ts-expect-error":!1,"ts-ignore":!0,"ts-nocheck":!1,"ts-check":!1}],"@typescript-eslint/ban-tslint-comment":[0],"@typescript-eslint/class-literal-property-style":[0],"@typescript-eslint/class-methods-use-this":[0],"@typescript-eslint/consistent-generic-constructors":[2,`constructor`],"@typescript-eslint/consistent-indexed-object-style":[0],"@typescript-eslint/consistent-return":[0],"@typescript-eslint/consistent-type-assertions":[2,{assertionStyle:`as`,objectLiteralTypeAssertions:`allow`}],"@typescript-eslint/consistent-type-definitions":[0],"@typescript-eslint/consistent-type-exports":[2,{fixMixedExportsWithInlineTypeSpecifier:!1}],"@typescript-eslint/consistent-type-imports":[2,{prefer:`type-imports`,fixStyle:`separate-type-imports`,disallowTypeAnnotations:!0}],"@typescript-eslint/default-param-last":[0],"@typescript-eslint/dot-notation":[0],"@typescript-eslint/explicit-function-return-type":[0],"@typescript-eslint/explicit-member-accessibility":[0],"@typescript-eslint/explicit-module-boundary-types":[0],"@typescript-eslint/init-declarations":[0],"@typescript-eslint/max-params":[0],"@typescript-eslint/member-ordering":[0],"@typescript-eslint/method-signature-style":[0],"@typescript-eslint/naming-convention":[0],"@typescript-eslint/no-array-constructor":[2],"@typescript-eslint/no-array-delete":[2],"@typescript-eslint/no-base-to-string":[2],"@typescript-eslint/no-confusing-non-null-assertion":[2],"@typescript-eslint/no-confusing-void-expression":[0],"@typescript-eslint/no-deprecated":[2],"@typescript-eslint/no-dupe-class-members":[0],"@typescript-eslint/no-duplicate-enum-values":[2],"@typescript-eslint/no-duplicate-type-constituents":[2,{ignoreUnions:!0}],"@typescript-eslint/no-dynamic-delete":[0],"@typescript-eslint/no-empty-function":[0],"@typescript-eslint/no-empty-object-type":[2],"@typescript-eslint/no-explicit-any":[0],"@typescript-eslint/no-extra-non-null-assertion":[2],"@typescript-eslint/no-extraneous-class":[0],"@typescript-eslint/no-floating-promises":[0],"@typescript-eslint/no-for-in-array":[0],"@typescript-eslint/no-generated-empty-object-type":[2],"@typescript-eslint/no-implied-eval":[2],"@typescript-eslint/no-import-type-side-effects":[0],"@typescript-eslint/no-inferrable-types":[0],"@typescript-eslint/no-invalid-this":[0],"@typescript-eslint/no-invalid-void-type":[0],"@typescript-eslint/no-magic-numbers":[0],"@typescript-eslint/no-meaningless-void-operator":[0],"@typescript-eslint/no-misused-new":[2],"@typescript-eslint/no-misused-promises":[2,{checksVoidReturn:{arguments:!1,attributes:!1,properties:!1}}],"@typescript-eslint/no-misused-spread":[2],"@typescript-eslint/no-mixed-enums":[0],"@typescript-eslint/no-namespace":[2],"@typescript-eslint/no-non-null-asserted-nullish-coalescing":[2],"@typescript-eslint/no-non-null-asserted-optional-chain":[2],"@typescript-eslint/no-non-null-assertion":[0],"@typescript-eslint/no-redeclare":[2],"@typescript-eslint/no-redundant-type-constituents":[0],"@typescript-eslint/no-require-imports":[2],"@typescript-eslint/no-restricted-types":[0],"@typescript-eslint/no-shadow":[0],"@typescript-eslint/no-this-alias":[2],"@typescript-eslint/no-unnecessary-boolean-literal-compare":[0],"@typescript-eslint/no-unnecessary-condition":[0],"@typescript-eslint/no-unnecessary-parameter-property-assignment":[2],"@typescript-eslint/no-unnecessary-qualifier":[0],"@typescript-eslint/no-unnecessary-template-expression":[0],"@typescript-eslint/no-unnecessary-type-arguments":[0],"@typescript-eslint/no-unnecessary-type-assertion":[2],"@typescript-eslint/no-unnecessary-type-constraint":[2],"@typescript-eslint/no-unnecessary-type-conversion":[0],"@typescript-eslint/no-unnecessary-type-parameters":[0],"@typescript-eslint/no-unsafe-argument":[0],"@typescript-eslint/no-unsafe-assignment":[0],"@typescript-eslint/no-unsafe-call":[0],"@typescript-eslint/no-unsafe-class-instance-assignment":[0],"@typescript-eslint/no-unsafe-declaration-merging":[2],"@typescript-eslint/no-unsafe-enum-assignment":[0],"@typescript-eslint/no-unsafe-enum-comparison":[0],"@typescript-eslint/no-unsafe-function-type":[2],"@typescript-eslint/no-unsafe-member-access":[0],"@typescript-eslint/no-unsafe-return":[0],"@typescript-eslint/no-unsafe-type-assertion":[0],"@typescript-eslint/no-unsafe-unary-minus":[2],"@typescript-eslint/no-unused-expressions":[2],"@typescript-eslint/no-unused-private-class-members":[2],"@typescript-eslint/no-unused-vars":[2,{vars:`all`,args:`all`,caughtErrors:`all`,ignoreRestSiblings:!1,argsIgnorePattern:`^_`,varsIgnorePattern:`^_[^_]*$`,caughtErrorsIgnorePattern:`^_`,destructuredArrayIgnorePattern:`^_`}],"@typescript-eslint/no-use-before-define":[2,{functions:!1,classes:!0,variables:!0,allowNamedExports:!0,typedefs:!1,enums:!1,ignoreTypeReferences:!0}],"@typescript-eslint/no-useless-constructor":[0],"@typescript-eslint/no-useless-default-assignment":[2],"@typescript-eslint/no-useless-empty-export":[0],"@typescript-eslint/no-wrapper-object-types":[2],"@typescript-eslint/non-nullable-type-assertion-style":[0],"@typescript-eslint/only-throw-error":[2],"@typescript-eslint/parameter-properties":[0],"@typescript-eslint/prefer-as-const":[2],"@typescript-eslint/prefer-destructuring":[0],"@typescript-eslint/prefer-enum-initializers":[0],"@typescript-eslint/prefer-find":[2],"@typescript-eslint/prefer-for-of":[2],"@typescript-eslint/prefer-function-type":[2],"@typescript-eslint/prefer-includes":[2],"@typescript-eslint/prefer-literal-enum-member":[0],"@typescript-eslint/prefer-namespace-keyword":[0],"@typescript-eslint/prefer-nullish-coalescing":[0],"@typescript-eslint/prefer-optional-chain":[2,{requireNullish:!0}],"@typescript-eslint/prefer-promise-reject-errors":[2],"@typescript-eslint/prefer-readonly":[0],"@typescript-eslint/prefer-readonly-parameter-types":[0],"@typescript-eslint/prefer-reduce-type-parameter":[0],"@typescript-eslint/prefer-regexp-exec":[0],"@typescript-eslint/prefer-return-this-type":[0],"@typescript-eslint/prefer-string-starts-ends-with":[2,{allowSingleElementEquality:`always`}],"@typescript-eslint/promise-function-async":[0],"@typescript-eslint/related-getter-setter-pairs":[2],"@typescript-eslint/require-array-sort-compare":[2],"@typescript-eslint/require-await":[2],"@typescript-eslint/restrict-plus-operands":[2],"@typescript-eslint/restrict-template-expressions":[2],"@typescript-eslint/return-await":[2,`error-handling-correctness-only`],"@typescript-eslint/strict-boolean-expressions":[0],"@typescript-eslint/strict-void-return":[0],"@typescript-eslint/switch-exhaustiveness-check":[2],"@typescript-eslint/triple-slash-reference":[2],"@typescript-eslint/unbound-method":[0],"@typescript-eslint/unified-signatures":[2],"@typescript-eslint/use-unknown-in-catch-callback-variable":[0],"accessor-pairs":[2],"array-callback-return":[2,{checkForEach:!0}],"arrow-body-style":[0],"block-scoped-var":[2],camelcase:[0],"capitalized-comments":[0],"class-methods-use-this":[0],complexity:[0],"consistent-return":[0],"consistent-this":[0],"constructor-super":[2],curly:[0],"default-case":[0],"default-case-last":[2],"default-param-last":[0],"dot-notation":[0],eqeqeq:[2],"for-direction":[2],"func-name-matching":[2],"func-names":[0],"func-style":[0],"getter-return":[2],"grouped-accessor-pairs":[2],"guard-for-in":[0],"id-denylist":[0],"id-length":[0],"id-match":[0],"import-x/avoid-barrel-files":[0],"import-x/avoid-importing-barrel-files":[0],"import-x/avoid-namespace-import":[0],"import-x/avoid-re-export-all":[0],"import-x/consistent-type-specifier-style":[0],"import-x/default":[0],"import-x/dynamic-import-chunkname":[0],"import-x/export":[2],"import-x/exports-last":[0],"import-x/extensions":[2,`ignorePackages`,{checkTypeImports:!0}],"import-x/first":[2],"import-x/group-exports":[0],"import-x/max-dependencies":[0],"import-x/named":[0],"import-x/namespace":[0],"import-x/newline-after-import":[0],"import-x/no-absolute-path":[2],"import-x/no-amd":[2],"import-x/no-anonymous-default-export":[0],"import-x/no-commonjs":[2,{allowConditionalRequire:!1}],"import-x/no-cycle":[2,{ignoreExternal:!0,maxDepth:1}],"import-x/no-default-export":[0],"import-x/no-deprecated":[0],"import-x/no-duplicates":[2],"import-x/no-dynamic-require":[0],"import-x/no-empty-named-blocks":[2],"import-x/no-extraneous-dependencies":[2],"import-x/no-import-module-exports":[0],"import-x/no-internal-modules":[0],"import-x/no-mutable-exports":[0],"import-x/no-named-as-default":[0],"import-x/no-named-as-default-member":[0],"import-x/no-named-default":[0],"import-x/no-named-export":[0],"import-x/no-namespace":[0],"import-x/no-nodejs-modules":[0],"import-x/no-relative-packages":[0],"import-x/no-relative-parent-imports":[0],"import-x/no-rename-default":[0],"import-x/no-restricted-paths":[0],"import-x/no-self-import":[2],"import-x/no-unassigned-import":[0],"import-x/no-unresolved":[2,{commonjs:!0,ignore:[`\\?.+$`]}],"import-x/no-unused-modules":[0,{unusedExports:!0,ignoreUnusedTypeExports:!0}],"import-x/no-useless-path-segments":[2,{commonjs:!0}],"import-x/no-webpack-loader-syntax":[2],"import-x/order":[0],"import-x/prefer-default-export":[0],"import-x/prefer-namespace-import":[0],"import-x/unambiguous":[0],"init-declarations":[0],"logical-assignment-operators":[0],"max-classes-per-file":[0],"max-depth":[0],"max-lines":[0],"max-lines-per-function":[0],"max-nested-callbacks":[0],"max-params":[0],"max-statements":[0],"new-cap":[0],"no-alert":[0],"no-array-constructor":[0],"no-async-promise-executor":[0],"no-await-in-loop":[0],"no-bitwise":[0],"no-caller":[2],"no-case-declarations":[2],"no-class-assign":[2],"no-compare-neg-zero":[2],"no-cond-assign":[2,`except-parens`],"no-console":[1,{allow:[`debug`,`info`,`warn`,`error`]}],"no-const-assign":[2],"no-constant-binary-expression":[2],"no-constant-condition":[2],"no-constructor-return":[2],"no-continue":[0],"no-control-regex":[0],"no-debugger":[1],"no-delete-var":[2],"no-div-regex":[0],"no-dupe-args":[2],"no-dupe-class-members":[2],"no-dupe-else-if":[2],"no-dupe-keys":[2],"no-duplicate-case":[2],"no-duplicate-imports":[0],"no-else-return":[0],"no-empty":[2,{allowEmptyCatch:!0}],"no-empty-character-class":[2],"no-empty-function":[0],"no-empty-pattern":[2],"no-empty-static-block":[2],"no-eq-null":[0],"no-eval":[2],"no-ex-assign":[2],"no-extend-native":[2],"no-extra-bind":[2],"no-extra-boolean-cast":[2],"no-extra-label":[0],"no-fallthrough":[2],"no-func-assign":[2],"no-global-assign":[2],"no-implicit-coercion":[2],"no-implicit-globals":[0],"no-implied-eval":[0],"no-import-assign":[2],"no-inline-comments":[0],"no-inner-declarations":[2],"no-invalid-regexp":[0],"no-invalid-this":[0],"no-irregular-whitespace":[2],"no-iterator":[2],"no-label-var":[2],"no-labels":[0],"no-lone-blocks":[2],"no-lonely-if":[0],"no-loop-func":[0],"no-loss-of-precision":[2],"no-magic-numbers":[0],"no-misleading-character-class":[2],"no-multi-assign":[0],"no-multi-str":[2],"no-negated-condition":[0],"no-nested-ternary":[0],"no-new":[0],"no-new-func":[0],"no-new-native-nonconstructor":[2],"no-new-wrappers":[2],"no-nonoctal-decimal-escape":[2],"no-obj-calls":[2],"no-object-constructor":[2],"no-octal":[0],"no-octal-escape":[0],"no-param-reassign":[0],"no-plusplus":[0],"no-promise-executor-return":[0],"no-proto":[2],"no-prototype-builtins":[2],"no-redeclare":[2],"no-regex-spaces":[2],"no-restricted-exports":[0],"no-restricted-globals":[2,`self`],"no-restricted-imports":[2,xSe],"no-restricted-properties":[0],"no-restricted-syntax":[2,...bSe],"no-return-assign":[0],"no-script-url":[2],"no-self-assign":[2,{props:!0}],"no-self-compare":[2],"no-sequences":[2],"no-setter-return":[2],"no-shadow":[0],"no-shadow-restricted-names":[2],"no-sparse-arrays":[2],"no-template-curly-in-string":[2],"no-ternary":[0],"no-this-before-super":[2],"no-throw-literal":[0],"no-undef":[2,{typeof:!0}],"no-undef-init":[2],"no-unassigned-vars":[2],"no-undefined":[0],"no-underscore-dangle":[0],"no-unexpected-multiline":[2],"no-unmodified-loop-condition":[2],"no-unneeded-ternary":[0],"no-unreachable":[2],"no-unreachable-loop":[2],"no-unsafe-finally":[2],"no-unsafe-negation":[2],"no-unsafe-optional-chaining":[2],"no-unused-expressions":[0],"no-unused-labels":[2],"no-unused-private-class-members":[0],"no-unused-vars":[0],"no-use-before-define":[0],"no-useless-assignment":[0],"no-useless-backreference":[0],"no-useless-call":[2],"no-useless-catch":[2],"no-useless-computed-key":[2],"no-useless-concat":[0],"no-useless-constructor":[2],"no-useless-escape":[2],"no-useless-rename":[2],"no-useless-return":[0],"no-var":[2],"no-void":[2],"no-warning-comments":[0],"no-with":[0],"object-shorthand":[2,`always`],"one-var":[0],"operator-assignment":[0],"prefer-arrow-callback":[2,{allowNamedFunctions:!0,allowUnboundThis:!0}],"prefer-const":[2,{destructuring:`all`,ignoreReadBeforeAssign:!0}],"prefer-destructuring":[0],"prefer-exponentiation-operator":[2],"prefer-named-capture-group":[0],"prefer-numeric-literals":[2],"prefer-object-has-own":[2],"prefer-object-spread":[2],"prefer-promise-reject-errors":[0],"prefer-regex-literals":[2,{disallowRedundantWrapping:!0}],"prefer-rest-params":[2],"prefer-spread":[2],"prefer-template":[2],"preserve-caught-error":[0],radix:[0],"regexp/confusing-quantifier":[2],"regexp/control-character-escape":[2],"regexp/grapheme-string-literal":[0],"regexp/hexadecimal-escape":[0],"regexp/letter-case":[0],"regexp/match-any":[0],"regexp/negation":[2],"regexp/no-contradiction-with-assertion":[2],"regexp/no-control-character":[0],"regexp/no-dupe-characters-character-class":[2],"regexp/no-dupe-disjunctions":[2],"regexp/no-empty-alternative":[2],"regexp/no-empty-capturing-group":[2],"regexp/no-empty-character-class":[0],"regexp/no-empty-group":[2],"regexp/no-empty-lookarounds-assertion":[2],"regexp/no-empty-string-literal":[2],"regexp/no-escape-backspace":[2],"regexp/no-extra-lookaround-assertions":[0],"regexp/no-invalid-regexp":[2],"regexp/no-invisible-character":[2],"regexp/no-lazy-ends":[2],"regexp/no-legacy-features":[2],"regexp/no-misleading-capturing-group":[2],"regexp/no-misleading-unicode-character":[2],"regexp/no-missing-g-flag":[2],"regexp/no-non-standard-flag":[2],"regexp/no-obscure-range":[2],"regexp/no-octal":[2],"regexp/no-optional-assertion":[2],"regexp/no-potentially-useless-backreference":[2],"regexp/no-standalone-backslash":[2],"regexp/no-super-linear-backtracking":[0],"regexp/no-super-linear-move":[0],"regexp/no-trivially-nested-assertion":[2],"regexp/no-trivially-nested-quantifier":[2],"regexp/no-unused-capturing-group":[0],"regexp/no-useless-assertions":[2],"regexp/no-useless-backreference":[2],"regexp/no-useless-character-class":[0],"regexp/no-useless-dollar-replacements":[2],"regexp/no-useless-escape":[2],"regexp/no-useless-flag":[2],"regexp/no-useless-lazy":[2],"regexp/no-useless-non-capturing-group":[2],"regexp/no-useless-quantifier":[2],"regexp/no-useless-range":[2],"regexp/no-useless-set-operand":[2],"regexp/no-useless-string-literal":[2],"regexp/no-useless-two-nums-quantifier":[2],"regexp/no-zero-quantifier":[2],"regexp/optimal-lookaround-quantifier":[2],"regexp/optimal-quantifier-concatenation":[0],"regexp/prefer-character-class":[0],"regexp/prefer-d":[0],"regexp/prefer-escape-replacement-dollar-char":[0],"regexp/prefer-lookaround":[0],"regexp/prefer-named-backreference":[0],"regexp/prefer-named-capture-group":[0],"regexp/prefer-named-replacement":[0],"regexp/prefer-plus-quantifier":[2],"regexp/prefer-predefined-assertion":[2],"regexp/prefer-quantifier":[0],"regexp/prefer-question-quantifier":[2],"regexp/prefer-range":[2],"regexp/prefer-regexp-exec":[2],"regexp/prefer-regexp-test":[0],"regexp/prefer-result-array-groups":[0],"regexp/prefer-set-operation":[2],"regexp/prefer-star-quantifier":[2],"regexp/prefer-unicode-codepoint-escapes":[2],"regexp/prefer-w":[0],"regexp/require-unicode-regexp":[0],"regexp/require-unicode-sets-regexp":[0],"regexp/simplify-set-operations":[2],"regexp/sort-alternatives":[0],"regexp/sort-character-class-elements":[0],"regexp/sort-flags":[0],"regexp/strict":[2],"regexp/unicode-escape":[0],"regexp/unicode-property":[0],"regexp/use-ignore-case":[0],"require-atomic-updates":[0],"require-await":[0],"require-unicode-regexp":[0],"require-yield":[2],"silverwind/list-spacing":[2,{singleLine:{spacing:`never`},overrides:{"()":`off`,"{}":{singleLine:{spacing:`never`}}}}],"sort-imports":[0],"sort-keys":[0],"sort-vars":[0],strict:[0],"symbol-description":[2],"unicode-bom":[2,`never`],"unicorn/better-dom-traversing":[0],"unicorn/catch-error-name":[0],"unicorn/class-reference-in-static-methods":[2],"unicorn/comma-spacing":[0],"unicorn/comment-content":[0],"unicorn/consistent-arrow-return-style":[0],"unicorn/consistent-assert":[0],"unicorn/consistent-boolean-name":[0],"unicorn/consistent-class-member-order":[0],"unicorn/consistent-compound-words":[0],"unicorn/consistent-conditional-object-spread":[2],"unicorn/consistent-date-clone":[2],"unicorn/consistent-destructuring":[2],"unicorn/consistent-empty-array-spread":[2],"unicorn/consistent-existence-index-check":[0],"unicorn/consistent-export-decorator-position":[2],"unicorn/consistent-function-scoping":[2],"unicorn/consistent-function-style":[2],"unicorn/consistent-json-file-read":[2],"unicorn/consistent-optional-chaining":[2],"unicorn/consistent-template-literal-escape":[2],"unicorn/consistent-tuple-labels":[2],"unicorn/custom-error-definition":[0],"unicorn/default-export-style":[2],"unicorn/dom-node-dataset":[2,{preferAttributes:!0}],"unicorn/empty-brace-spaces":[2],"unicorn/error-message":[0],"unicorn/escape-case":[0],"unicorn/expiring-todo-comments":[0],"unicorn/explicit-length-check":[0],"unicorn/explicit-timer-delay":[2],"unicorn/filename-case":[0],"unicorn/id-match":[2],"unicorn/import-style":[0],"unicorn/indent":[0],"unicorn/isolated-functions":[2,{functions:[]}],"unicorn/iteration-fallback-style":[2,`fallback`],"unicorn/key-name-casing":[0],"unicorn/logical-assignment-operators":[0],"unicorn/max-nested-calls":[0],"unicorn/name-replacements":[0],"unicorn/new-for-builtins":[2],"unicorn/no-abusive-eslint-disable":[0],"unicorn/no-accessor-recursion":[2],"unicorn/no-accidental-bitwise-operator":[2],"unicorn/no-anonymous-default-export":[0],"unicorn/no-array-callback-reference":[0],"unicorn/no-array-concat-in-loop":[2],"unicorn/no-array-fill-with-reference-type":[2],"unicorn/no-array-from-fill":[2],"unicorn/no-array-front-mutation":[0],"unicorn/no-array-method-this-argument":[2],"unicorn/no-array-reduce":[0],"unicorn/no-array-reverse":[0],"unicorn/no-array-sort":[0],"unicorn/no-array-sort-for-min-max":[2],"unicorn/no-array-splice":[0],"unicorn/no-asterisk-prefix-in-documentation-comments":[0],"unicorn/no-async-iterator-callback":[2],"unicorn/no-async-promise-finally":[0],"unicorn/no-await-expression-member":[0],"unicorn/no-await-in-promise-methods":[2],"unicorn/no-barrel-files":[0],"unicorn/no-blob-to-file":[2],"unicorn/no-boolean-sort-comparator":[2],"unicorn/no-break-in-nested-loop":[0],"unicorn/no-canvas-to-image":[2],"unicorn/no-chained-comparison":[2],"unicorn/no-collection-bracket-access":[2],"unicorn/no-computed-property-existence-check":[0],"unicorn/no-conflicting-constraints":[2],"unicorn/no-confusing-array-splice":[2],"unicorn/no-confusing-array-with":[2],"unicorn/no-console-spaces":[0],"unicorn/no-constant-zero-expression":[2],"unicorn/no-declarations-before-early-exit":[0],"unicorn/no-document-cookie":[2],"unicorn/no-double-comparison":[2],"unicorn/no-duplicate-if-branches":[2],"unicorn/no-duplicate-logical-operands":[2],"unicorn/no-duplicate-loops":[0],"unicorn/no-duplicate-set-values":[2],"unicorn/no-empty-file":[0],"unicorn/no-empty-link-text":[0],"unicorn/no-error-property-assignment":[0],"unicorn/no-exports-in-scripts":[2],"unicorn/no-for-each":[2],"unicorn/no-for-loop":[0],"unicorn/no-global-object-property-assignment":[2],"unicorn/no-immediate-mutation":[0],"unicorn/no-impossible-length-comparison":[2],"unicorn/no-incomplete-accessor-override":[2],"unicorn/no-incorrect-query-selector":[2],"unicorn/no-incorrect-template-string-interpolation":[0],"unicorn/no-ineffective-csp-directives":[2],"unicorn/no-instanceof-builtins":[2],"unicorn/no-invalid-argument-count":[2],"unicorn/no-invalid-boolean-attribute-value":[2],"unicorn/no-invalid-character-comparison":[2],"unicorn/no-invalid-dom-token":[2],"unicorn/no-invalid-fetch-options":[2],"unicorn/no-invalid-file-input-accept":[2],"unicorn/no-invalid-integrity":[2],"unicorn/no-invalid-intl-options":[2],"unicorn/no-invalid-property-descriptor":[2],"unicorn/no-invalid-remove-event-listener":[2],"unicorn/no-invalid-response-options":[2],"unicorn/no-invalid-style-set-property":[2],"unicorn/no-invalid-temporal-arithmetic":[2],"unicorn/no-invalid-url-protocol-comparison":[2],"unicorn/no-invalid-well-known-symbol-methods":[2],"unicorn/no-javascript-url":[0],"unicorn/no-keyword-prefix":[0],"unicorn/no-late-current-target-access":[2],"unicorn/no-late-event-control":[2],"unicorn/no-leading-empty-lines":[0],"unicorn/no-lonely-if":[2],"unicorn/no-loop-iterable-mutation":[0],"unicorn/no-loss-of-precision":[0],"unicorn/no-magic-array-flat-depth":[0],"unicorn/no-manually-wrapped-comments":[0],"unicorn/no-mismatched-map-key":[2],"unicorn/no-misrefactored-assignment":[2],"unicorn/no-missing-local-resource":[0],"unicorn/no-multiple-promise-resolver-calls":[2],"unicorn/no-named-default":[2],"unicorn/no-negated-array-predicate":[2],"unicorn/no-negated-comparison":[2],"unicorn/no-negated-condition":[0],"unicorn/no-negation-in-equality-check":[2],"unicorn/no-nested-ternary":[0],"unicorn/no-new-array":[0],"unicorn/no-new-buffer":[2],"unicorn/no-non-function-verb-prefix":[0],"unicorn/no-nonstandard-builtin-properties":[2],"unicorn/no-null":[0],"unicorn/no-object-as-default-parameter":[0],"unicorn/no-object-methods-with-collections":[2],"unicorn/no-optional-chaining-on-undeclared-variable":[2],"unicorn/no-prevent-default-in-passive-listener":[2],"unicorn/no-process-exit":[0],"unicorn/no-redundant-comparison":[2],"unicorn/no-repeated-call-wrappers":[0],"unicorn/no-return-array-push":[2],"unicorn/no-selector-as-dom-name":[2],"unicorn/no-shorthand-property-overrides":[0],"unicorn/no-single-promise-in-promise-methods":[2],"unicorn/no-static-only-class":[2],"unicorn/no-subtraction-comparison":[2],"unicorn/no-thenable":[0],"unicorn/no-this-assignment":[2],"unicorn/no-this-outside-of-class":[0],"unicorn/no-top-level-assignment-in-function":[0],"unicorn/no-top-level-side-effects":[0],"unicorn/no-transition-all":[2],"unicorn/no-typeof-undefined":[2],"unicorn/no-uncalled-method":[2],"unicorn/no-undeclared-class-members":[2],"unicorn/no-unnecessary-array-flat-depth":[2],"unicorn/no-unnecessary-array-flat-map":[2],"unicorn/no-unnecessary-array-splice-count":[2],"unicorn/no-unnecessary-await":[2],"unicorn/no-unnecessary-boolean-comparison":[0],"unicorn/no-unnecessary-default-arguments":[0],"unicorn/no-unnecessary-fetch-options":[0],"unicorn/no-unnecessary-global-this":[0],"unicorn/no-unnecessary-nested-ternary":[2],"unicorn/no-unnecessary-parameters":[0],"unicorn/no-unnecessary-polyfills":[0],"unicorn/no-unnecessary-slice-end":[2],"unicorn/no-unnecessary-splice":[2],"unicorn/no-unnecessary-string-trim":[2],"unicorn/no-unreadable-array-destructuring":[2,{maximumIgnoredElements:0}],"unicorn/no-unreadable-for-of-expression":[0],"unicorn/no-unreadable-iife":[0],"unicorn/no-unreadable-new-expression":[0],"unicorn/no-unreadable-object-destructuring":[0],"unicorn/no-unsafe-buffer-conversion":[2],"unicorn/no-unsafe-dom-html":[0],"unicorn/no-unsafe-json-serialization":[2],"unicorn/no-unsafe-sqlite-interpolation":[2],"unicorn/no-unsafe-promise-all-settled-values":[2],"unicorn/no-unsafe-property-key":[0],"unicorn/no-unsafe-string-replacement":[2],"unicorn/no-unused-builtin-method-return":[2],"unicorn/no-unused-iterator-helper":[2],"unicorn/no-unused-properties":[2],"unicorn/no-url-in-search-params":[2],"unicorn/no-useless-boolean-cast":[2],"unicorn/no-useless-coercion":[2],"unicorn/no-useless-collection-argument":[2],"unicorn/no-useless-compound-assignment":[2],"unicorn/no-useless-concat":[2],"unicorn/no-useless-continue":[2],"unicorn/no-useless-delete-check":[2],"unicorn/no-useless-else":[0],"unicorn/no-useless-error-capture-stack-trace":[2],"unicorn/no-useless-fallback-in-spread":[2],"unicorn/no-useless-iterator-to-array":[2],"unicorn/no-useless-length-check":[2],"unicorn/no-useless-logical-operand":[2],"unicorn/no-useless-override":[2],"unicorn/no-useless-promise-resolve-reject":[2],"unicorn/no-useless-re-export":[2],"unicorn/no-useless-recursion":[0],"unicorn/no-useless-set-construction":[2],"unicorn/no-useless-spread":[2],"unicorn/no-useless-switch-case":[2],"unicorn/no-useless-template-literals":[0],"unicorn/no-useless-undefined":[0],"unicorn/no-using-resource-escape":[2],"unicorn/no-xor-as-exponentiation":[2],"unicorn/no-zero-fractions":[0],"unicorn/number-literal-case":[0],"unicorn/numeric-separators-style":[0],"unicorn/operator-assignment":[2],"unicorn/prefer-abort-signal-any":[2],"unicorn/prefer-abort-signal-timeout":[2],"unicorn/prefer-add-event-listener":[2],"unicorn/prefer-add-event-listener-options":[2],"unicorn/prefer-aggregate-error":[2],"unicorn/prefer-array-find":[0],"unicorn/prefer-array-flat":[2],"unicorn/prefer-array-flat-map":[2],"unicorn/prefer-array-from-async":[2],"unicorn/prefer-array-from-map":[2],"unicorn/prefer-array-from-range":[2],"unicorn/prefer-array-index-of":[2],"unicorn/prefer-array-iterable-methods":[2],"unicorn/prefer-array-last-methods":[2],"unicorn/prefer-array-slice":[2],"unicorn/prefer-array-some":[2],"unicorn/prefer-at":[0],"unicorn/prefer-await":[2],"unicorn/prefer-bigint-literals":[2],"unicorn/prefer-blob-reading-methods":[2],"unicorn/prefer-block-statement-over-iife":[0],"unicorn/prefer-boolean-return":[0],"unicorn/prefer-class-fields":[2],"unicorn/prefer-classlist-toggle":[2],"unicorn/prefer-code-point":[0],"unicorn/prefer-combined-guards":[0],"unicorn/prefer-continue":[0],"unicorn/prefer-date-now":[2],"unicorn/prefer-default-parameters":[0],"unicorn/prefer-direct-iteration":[2],"unicorn/prefer-dispose":[2],"unicorn/prefer-dom-node-append":[2],"unicorn/prefer-dom-node-html-methods":[0],"unicorn/prefer-dom-node-remove":[2],"unicorn/prefer-dom-node-replace-children":[2],"unicorn/prefer-dom-node-text-content":[2],"unicorn/prefer-early-return":[0],"unicorn/prefer-else-if":[2],"unicorn/prefer-error-is-error":[0],"unicorn/prefer-escaped-irregular-whitespace":[2],"unicorn/prefer-event-target":[2],"unicorn/prefer-export-from":[0],"unicorn/prefer-flat-math-min-max":[2],"unicorn/prefer-get-or-insert-computed":[2],"unicorn/prefer-global-number-constants":[2],"unicorn/prefer-global-this":[0],"unicorn/prefer-group-by":[2],"unicorn/prefer-has-check":[2],"unicorn/prefer-hoisting-branch-code":[2],"unicorn/prefer-https":[0],"unicorn/prefer-identifier-import-export-specifiers":[2],"unicorn/prefer-import-meta-properties":[2],"unicorn/prefer-includes":[0],"unicorn/prefer-includes-over-repeated-comparisons":[0],"unicorn/prefer-iterable-in-constructor":[2],"unicorn/prefer-iterator-concat":[0],"unicorn/prefer-iterator-helpers":[2],"unicorn/prefer-iterator-to-array":[2],"unicorn/prefer-iterator-to-array-at-end":[2],"unicorn/prefer-iterator-zip":[0],"unicorn/prefer-json-import":[0],"unicorn/prefer-keyboard-event-key":[2],"unicorn/prefer-literal-ascii":[2],"unicorn/prefer-location-assign":[2],"unicorn/prefer-logical-operator-over-ternary":[0],"unicorn/prefer-map-from-entries":[0],"unicorn/prefer-math-abs":[2],"unicorn/prefer-math-constants":[2],"unicorn/prefer-math-min-max":[2],"unicorn/prefer-math-trunc":[2],"unicorn/prefer-minimal-ternary":[0],"unicorn/prefer-modern-dom-apis":[0],"unicorn/prefer-modern-math-apis":[2],"unicorn/prefer-module":[0],"unicorn/prefer-native-coercion-functions":[2],"unicorn/prefer-negative-index":[2],"unicorn/prefer-node-protocol":[2],"unicorn/prefer-number-coercion":[0],"unicorn/prefer-number-is-safe-integer":[0],"unicorn/prefer-number-properties":[0],"unicorn/prefer-object-define-properties":[2],"unicorn/prefer-object-destructuring-defaults":[2],"unicorn/prefer-object-from-entries":[2],"unicorn/prefer-object-iterable-methods":[2],"unicorn/prefer-observer-apis":[2],"unicorn/prefer-optional-catch-binding":[2],"unicorn/prefer-options-parameter":[0],"unicorn/prefer-path2d":[2],"unicorn/prefer-private-class-fields":[0],"unicorn/prefer-promise-static-methods":[2],"unicorn/prefer-promise-try":[2],"unicorn/prefer-promise-with-resolvers":[2],"unicorn/prefer-prototype-methods":[2],"unicorn/prefer-query-selector":[0],"unicorn/prefer-queue-microtask":[2],"unicorn/prefer-reflect-apply":[0],"unicorn/prefer-regexp-escape":[0],"unicorn/prefer-regexp-exec":[0],"unicorn/prefer-regexp-test":[2],"unicorn/prefer-response-static-json":[2],"unicorn/prefer-scoped-selector":[0],"unicorn/prefer-set-has":[0],"unicorn/prefer-set-methods":[0],"unicorn/prefer-set-size":[2],"unicorn/prefer-short-arrow-method":[2],"unicorn/prefer-short-escape-sequences":[2],"unicorn/prefer-simple-condition-first":[0],"unicorn/prefer-simple-sort-comparator":[0],"unicorn/prefer-simplified-conditions":[0],"unicorn/prefer-single-array-predicate":[2],"unicorn/prefer-single-call":[2],"unicorn/prefer-single-object-destructuring":[2],"unicorn/prefer-single-replace":[2],"unicorn/prefer-smaller-scope":[0],"unicorn/prefer-split-limit":[0],"unicorn/prefer-spread":[0],"unicorn/prefer-string-match-all":[2],"unicorn/prefer-string-pad-start-end":[2],"unicorn/prefer-string-raw":[0],"unicorn/prefer-string-repeat":[2],"unicorn/prefer-string-replace-all":[0],"unicorn/prefer-string-slice":[0],"unicorn/prefer-string-starts-ends-with":[0],"unicorn/prefer-string-trim-start-end":[2],"unicorn/prefer-structured-clone":[2],"unicorn/prefer-switch":[0],"unicorn/prefer-temporal":[0],"unicorn/prefer-temporal-conversion":[2],"unicorn/prefer-ternary":[0],"unicorn/prefer-then-catch":[2],"unicorn/prefer-toggle-attribute":[0],"unicorn/prefer-top-level-await":[0],"unicorn/prefer-type-error":[0],"unicorn/prefer-type-literal-last":[0],"unicorn/prefer-uint8array-base64":[0],"unicorn/prefer-uint8array-hex":[0],"unicorn/prefer-unary-minus":[2],"unicorn/prefer-unicode-code-point-escapes":[0],"unicorn/prefer-url-can-parse":[2],"unicorn/prefer-url-href":[2],"unicorn/prefer-url-search-parameters":[2],"unicorn/prefer-while-loop-condition":[2],"unicorn/relative-url-style":[2],"unicorn/require-array-join-separator":[2],"unicorn/require-array-sort-compare":[0],"unicorn/require-css-escape":[2],"unicorn/require-frontmatter-fields":[0],"unicorn/require-module-attributes":[2],"unicorn/require-module-specifiers":[0],"unicorn/require-number-to-fixed-digits-argument":[2],"unicorn/require-passive-events":[2],"unicorn/require-post-message-target-origin":[0],"unicorn/require-proxy-trap-boolean-return":[2],"unicorn/require-spread-parentheses":[0],"unicorn/require-text-decoder-streaming":[2],"unicorn/single-line-block-comment-style":[0],"unicorn/string-content":[0],"unicorn/switch-case-braces":[0],"unicorn/switch-case-break-position":[2],"unicorn/template-indent":[2],"unicorn/text-encoding-identifier-case":[0],"unicorn/throw-new-error":[2],"unicorn/try-complexity":[0],"use-isnan":[2],"valid-typeof":[2,{requireStringLiterals:!0}],"vars-on-top":[0],yoda:[2,`never`]}},{files:[`**/*.{${Y9.join(`,`)}}`],rules:{"@typescript-eslint/no-redeclare":[0],"@typescript-eslint/no-base-to-string":[0],"@typescript-eslint/only-throw-error":[0],"@typescript-eslint/restrict-template-expressions":[0]}},{files:[`**/*.{${X9.join(`,`)}}`],rules:{"constructor-super":[0],"getter-return":[0],"import-x/export":[0],"import-x/no-extraneous-dependencies":[0],"import-x/no-unresolved":[0],"no-const-assign":[0],"no-dupe-args":[0],"no-dupe-class-members":[0],"no-dupe-keys":[0],"no-func-assign":[0],"no-import-assign":[0],"no-new-native-nonconstructor":[0],"no-obj-calls":[0],"no-redeclare":[0],"no-setter-return":[0],"no-this-before-super":[0],"no-undef":[0],"no-unreachable":[0],"no-unsafe-negation":[0],"valid-typeof":[0]}},{files:[`**/*.d.ts`],rules:{"@typescript-eslint/consistent-type-imports":[0],"@typescript-eslint/no-unused-vars":[0],"no-var":[0]}},{files:[`**/*.worker.${Q9}`,`**/*.sharedworker.${Q9}`],languageOptions:{globals:qP.default.worker},rules:{"no-restricted-globals":[2,`window`]}},{files:[`**/e2e/**/*.test.${Q9}`,`**/*.e2e.${Q9}`],plugins:{playwright:KP},languageOptions:{globals:{...qP.default.nodeBuiltin,...qP.default.browser}},rules:{"@typescript-eslint/no-deprecated":[0],"no-empty-pattern":[0],"playwright/consistent-spacing-between-blocks":[2],"playwright/expect-expect":[0],"playwright/max-expects":[0],"playwright/max-nested-describe":[2],"playwright/missing-playwright-await":[2],"playwright/no-action-timeout":[0],"playwright/no-commented-out-tests":[0],"playwright/no-conditional-expect":[2],"playwright/no-conditional-in-test":[0],"playwright/no-duplicate-hooks":[2],"playwright/no-duplicate-slow":[2],"playwright/no-element-handle":[2],"playwright/no-eval":[2],"playwright/no-export":[2],"playwright/no-focused-test":[2],"playwright/no-force-option":[2],"playwright/no-get-by-title":[0],"playwright/no-hooks":[0],"playwright/no-identical-title":[2],"playwright/no-magic-timeouts":[0],"playwright/no-nested-step":[2],"playwright/no-networkidle":[0],"playwright/no-nth-methods":[0],"playwright/no-page-pause":[2],"playwright/no-raw-locators":[0],"playwright/no-restricted-locators":[0],"playwright/no-restricted-matchers":[0],"playwright/no-restricted-roles":[0],"playwright/no-skipped-test":[2],"playwright/no-slowed-test":[0],"playwright/no-standalone-expect":[2],"playwright/no-template-literal-title":[0],"playwright/no-test-return-statement":[2],"playwright/no-unnecessary-assertions":[2],"playwright/no-unsafe-references":[2],"playwright/no-unused-locators":[2],"playwright/no-useless-await":[2],"playwright/no-useless-not":[2],"playwright/no-wait-for-navigation":[2],"playwright/no-wait-for-selector":[2],"playwright/no-wait-for-timeout":[2],"playwright/prefer-comparison-matcher":[0],"playwright/prefer-ending-with-an-expect":[0],"playwright/prefer-equality-matcher":[0],"playwright/prefer-hooks-in-order":[2],"playwright/prefer-hooks-on-top":[2],"playwright/prefer-locator":[2],"playwright/prefer-lowercase-title":[0],"playwright/prefer-native-locators":[0],"playwright/prefer-strict-equal":[0],"playwright/prefer-to-be":[0],"playwright/prefer-to-contain":[0],"playwright/prefer-to-have-count":[2],"playwright/prefer-to-have-length":[2],"playwright/prefer-web-first-assertions":[2],"playwright/require-annotation-reason":[0],"playwright/require-hook":[0],"playwright/require-soft-assertions":[0],"playwright/require-tags":[0],"playwright/require-to-pass-timeout":[0],"playwright/require-to-throw-message":[0],"playwright/require-top-level-describe":[0],"playwright/valid-describe-callback":[2],"playwright/valid-expect":[2],"playwright/valid-expect-in-promise":[2],"playwright/valid-test-tags":[2],"playwright/valid-title":[2]}},{plugins:CSe,files:[`**/*.${Q9}`],rules:wSe},{plugins:TSe,files:[`**/*.{${ySe.join(`,`)}}`],rules:ESe},{plugins:{vitest:UP,"testing-library":J9},files:[`**/*.test.${Q9}`,`vitest.setup*.${Q9}`,`integration/**/*.${Q9}`],ignores:[`**/e2e/**`,`**/*.e2e.*`],languageOptions:{globals:qP.default.vitest},rules:{"@typescript-eslint/no-deprecated":[0],"react/immutability":[0],"unicorn/consistent-function-scoping":[0],"unicorn/no-global-object-property-assignment":[0],"vitest/consistent-each-for":[0],"vitest/consistent-test-filename":[0],"vitest/consistent-test-it":[0],"vitest/consistent-vitest-vi":[0],"vitest/expect-expect":[0],"vitest/hoisted-apis-on-top":[2],"vitest/max-expects":[0],"vitest/max-nested-describe":[0],"vitest/no-alias-methods":[0],"vitest/no-commented-out-tests":[0],"vitest/no-conditional-expect":[0],"vitest/no-conditional-in-test":[0],"vitest/no-conditional-tests":[0],"vitest/no-disabled-tests":[0],"vitest/no-duplicate-hooks":[0],"vitest/no-focused-tests":[2],"vitest/no-hooks":[0],"vitest/no-identical-title":[2],"vitest/no-import-node-test":[2],"vitest/no-importing-vitest-globals":[0],"vitest/no-interpolation-in-snapshots":[0],"vitest/no-large-snapshots":[0],"vitest/no-mocks-import":[0],"vitest/no-restricted-matchers":[0],"vitest/no-restricted-vi-methods":[0],"vitest/no-standalone-expect":[0],"vitest/no-test-prefixes":[0],"vitest/no-test-return-statement":[0],"vitest/no-unneeded-async-expect-function":[2],"vitest/padding-around-after-all-blocks":[0],"vitest/padding-around-after-each-blocks":[0],"vitest/padding-around-all":[0],"vitest/padding-around-before-all-blocks":[0],"vitest/padding-around-before-each-blocks":[0],"vitest/padding-around-describe-blocks":[0],"vitest/padding-around-expect-groups":[0],"vitest/padding-around-test-blocks":[0],"vitest/prefer-called-exactly-once-with":[0],"vitest/prefer-called-once":[0],"vitest/prefer-called-times":[0],"vitest/prefer-called-with":[0],"vitest/prefer-comparison-matcher":[0],"vitest/prefer-describe-function-title":[0],"vitest/prefer-each":[0],"vitest/prefer-equality-matcher":[0],"vitest/prefer-expect-assertions":[0],"vitest/prefer-expect-resolves":[0],"vitest/prefer-expect-type-of":[0],"vitest/prefer-hooks-in-order":[0],"vitest/prefer-hooks-on-top":[2],"vitest/prefer-import-in-mock":[0],"vitest/prefer-importing-vitest-globals":[0],"vitest/prefer-lowercase-title":[0],"vitest/prefer-mock-promise-shorthand":[0],"vitest/prefer-mock-return-shorthand":[0],"vitest/prefer-snapshot-hint":[0],"vitest/prefer-spy-on":[0],"vitest/prefer-strict-boolean-matchers":[0],"vitest/prefer-strict-equal":[0],"vitest/prefer-to-be":[0],"vitest/prefer-to-be-falsy":[0],"vitest/prefer-to-be-object":[0],"vitest/prefer-to-be-truthy":[0],"vitest/prefer-to-contain":[0],"vitest/prefer-to-have-been-called-times":[0],"vitest/prefer-to-have-length":[0],"vitest/prefer-todo":[0],"vitest/prefer-vi-mocked":[0],"vitest/require-awaited-expect-poll":[2],"vitest/require-hook":[0],"vitest/require-local-test-context-for-concurrent-snapshots":[2],"vitest/require-mock-type-parameters":[0],"vitest/require-test-timeout":[0],"vitest/require-to-throw-message":[0],"vitest/require-top-level-describe":[0],"vitest/unbound-method":[0],"vitest/valid-describe-callback":[2],"vitest/valid-expect":[2],"vitest/valid-expect-in-promise":[2],"vitest/valid-title":[2],"vitest/warn-todo":[0],"testing-library/await-async-events":[2,{eventModule:`userEvent`}],"testing-library/await-async-queries":[2],"testing-library/await-async-utils":[2],"testing-library/consistent-data-testid":[0],"testing-library/no-await-sync-events":[2,{eventModules:[`fire-event`]}],"testing-library/no-await-sync-queries":[2],"testing-library/no-container":[0],"testing-library/no-debugging-utils":[2],"testing-library/no-dom-import":[2,`react`],"testing-library/no-global-regexp-flag-in-query":[2],"testing-library/no-manual-cleanup":[2],"testing-library/no-node-access":[0],"testing-library/no-promise-in-fire-event":[2],"testing-library/no-render-in-lifecycle":[2],"testing-library/no-test-id-queries":[0],"testing-library/no-unnecessary-act":[2],"testing-library/no-wait-for-multiple-assertions":[2],"testing-library/no-wait-for-side-effects":[2],"testing-library/no-wait-for-snapshot":[2],"testing-library/prefer-explicit-assert":[0],"testing-library/prefer-find-by":[2],"testing-library/prefer-implicit-assert":[0],"testing-library/prefer-presence-queries":[2],"testing-library/prefer-query-by-disappearance":[2],"testing-library/prefer-query-matchers":[0],"testing-library/prefer-screen-queries":[2],"testing-library/prefer-user-event":[0],"testing-library/prefer-user-event-setup":[0],"testing-library/render-result-naming-convention":[2]}},{files:[`**/*.test.${Q9}`],rules:{"react/error-boundaries":[0]}},{files:[`**/*.stories.${Q9}`],plugins:{storybook:h7},rules:{"@typescript-eslint/no-deprecated":[0],"react/no-nested-component-definitions":[0],"storybook/await-interactions":[2],"storybook/context-in-play-function":[2],"storybook/csf-component":[0],"storybook/default-exports":[2],"storybook/hierarchy-separator":[2],"storybook/meta-inline-properties":[0],"storybook/meta-satisfies-type":[0],"storybook/no-redundant-story-name":[2],"storybook/no-renderer-packages":[0],"storybook/no-stories-of":[0],"storybook/no-title-property-in-meta":[0],"storybook/no-uninstalled-addons":[0],"storybook/prefer-pascal-case":[2],"storybook/story-exports":[2],"storybook/use-storybook-expect":[2],"storybook/use-storybook-testing-library":[2]}}];export{DSe as default};
524
+ `).map(e=>e.trim()).join(`\n${c}`);return e.replaceText(n,l)}});return}let d=a.body;if(!S7(d))return;if(l(a)){let e=s(a);if(!e)return;let c=o(a);if(!c)return;let l=c.name,f=t.arguments[1],p=``;M7(f)&&(p=`, ${r.getText(f)}`);let m=R9(l),h=u(d),g=l.split(`By`)[1];if(!g)return;i(t,{queryMethod:g,queryVariant:m,prevQuery:l,fix(i){let a=`${e}.${m}${g}(${h.map(e=>r.getText(e)).join(`, `)}${p})`;if(!j7(d.callee))return null;let{property:o,object:s}=d.callee;if(X.ASTUtils.isVariableDeclarator(t.parent.parent))return(0,wX.isIdentifier)(o)&&n.isCustomQuery(o)?null:i.replaceText(t,a);if(!S7(s))return null;let c=r.getText(d),l=`await ${a}`,u=c.replace(r.getText(s.arguments[0]),l),f=c.replace(c,u);return i.replaceText(t.parent,f)}});return}if(!c(a))return;let f=o(a);if(!f)return;let p=f.name,m=p.split(`By`)[1],h=R9(p),g=u(d);if(!m)throw Error(`Query method could not be determined.`);i(t,{queryMethod:m,queryVariant:h,prevQuery:p,fix(i){if(n.isCustomQuery(d.callee))return null;let a=`${h}${m}`,o=[],s=`${a}(${g.map(e=>r.getText(e)).join(`, `)})`;o.push(i.replaceText(t,s));let c=z9(v7(e,f),p);if(!c)return o;if(c.parent&&N7(c.parent.parent)){let e=c.parent.parent;if(e.properties.some(e=>P7(e)&&X.ASTUtils.isIdentifier(e.key)&&e.key.name===a))return o;let t=r.getText(e).replace(/(\s*})$/,`, ${a}$1`);o.push(i.replaceText(e,t))}return o}})}}}});const B9=e=>j7(e.parent)&&e.parent.object.type===X.AST_NODE_TYPES.Identifier,V9=(e,t)=>t?S7(e.parent)&&X.ASTUtils.isAwaitExpression(e.parent.parent)&&S7(e.parent.parent.parent)&&X.ASTUtils.isIdentifier(e.parent.parent.parent.callee)&&e.parent.parent.parent.callee.name===`expect`:S7(e.parent)&&S7(e.parent.parent)&&X.ASTUtils.isIdentifier(e.parent.parent.callee)&&e.parent.parent.callee.name===`expect`,H9=(e,t,n)=>{if(t)return e.report({node:t,messageId:`preferImplicitAssert`,data:{queryType:n}})};var iSe=O9({name:`prefer-implicit-assert`,meta:{type:`suggestion`,docs:{description:`Suggest using implicit assertions for getBy* & findBy* queries`,recommendedConfig:{dom:!1,angular:!1,react:!1,vue:!1,svelte:!1,marko:!1}},messages:{preferImplicitAssert:"Don't wrap `{{queryType}}` query with `expect` & presence matchers like `toBeInTheDocument` or `not.toBeNull` as `{{queryType}}` queries fail implicitly when element is not found"},schema:[]},defaultOptions:[],create(e,t,n){let r=[],i=[];return{"CallExpression Identifier"(e){n.isFindQueryVariant(e)&&r.push(e),n.isGetQueryVariant(e)&&i.push(e)},"Program:exit"(){r.forEach(t=>{let r=B9(t)?t.parent:t;if(r&&V9(r,!0)&&j7(r.parent?.parent?.parent?.parent)&&r.parent?.parent?.parent?.parent.property.type===X.AST_NODE_TYPES.Identifier&&n.isPresenceAssert(r.parent.parent.parent.parent))return H9(e,r,`findBy*`)}),i.forEach(t=>{let r=B9(t)?t.parent:t;if(r&&V9(r,!1)&&j7(r.parent?.parent?.parent)&&r.parent?.parent?.parent.property.type===X.AST_NODE_TYPES.Identifier&&n.isPresenceAssert(r.parent.parent.parent))return H9(e,r,`getBy*`)})}}}}),aSe=O9({name:`prefer-presence-queries`,meta:{docs:{description:"Ensure appropriate `get*`/`query*` queries are used with their respective matchers",recommendedConfig:{dom:`error`,angular:`error`,react:`error`,vue:`error`,svelte:`error`,marko:`error`}},messages:{wrongPresenceQuery:"Use `getBy*` queries rather than `queryBy*` for checking element is present",wrongAbsenceQuery:"Use `queryBy*` queries rather than `getBy*` for checking element is NOT present"},fixable:`code`,schema:[{type:`object`,additionalProperties:!1,properties:{presence:{type:`boolean`},absence:{type:`boolean`}}}],type:`suggestion`},defaultOptions:[{presence:!0,absence:!0}],create(e,[{absence:t=!0,presence:n=!0}],r){return{"CallExpression Identifier"(i){let a=B7(i,`expect`),o=B7(i,`within`);if(!j7(a?.parent)||!r.isSyncQuery(i))return;let s=r.isGetQueryVariant(i),c=a.parent,l=r.isPresenceAssert(c),u=r.isAbsenceAssert(c);if(l||u){if(n&&(o||l)&&!s){let t=i.name.replace(/^query/,`get`);e.report({node:i,messageId:`wrongPresenceQuery`,fix:e=>e.replaceText(i,t)})}else if(!o&&t&&u&&s){let t=i.name.replace(/^get/,`query`);e.report({node:i,messageId:`wrongAbsenceQuery`,fix:e=>e.replaceText(i,t)})}}}}}}),oSe=O9({name:`prefer-query-by-disappearance`,meta:{type:`problem`,docs:{description:"Suggest using `queryBy*` queries when waiting for disappearance",recommendedConfig:{dom:`error`,angular:`error`,react:`error`,vue:`error`,svelte:`error`,marko:`error`}},messages:{preferQueryByDisappearance:`Prefer using queryBy* when waiting for disappearance`},schema:[]},defaultOptions:[],create(e,t,n){function r(e){let t=K7(e);return t?n.isAsyncUtil(t,[`waitForElementToBeRemoved`]):!1}function i(t){let r=j7(t)?K7(t.property):K7(t);return r&&(n.isGetQueryVariant(r)||n.isFindQueryVariant(r))?(e.report({node:r,messageId:`preferQueryByDisappearance`}),!0):!1}function a(e){return!S7(e)||!j7(e.callee)&&!K7(e.callee)?!1:i(e.callee)}function o(e){return!F7(e)||!S7(e.argument)?!1:i(e.argument.callee)}function s(e){return!C7(e)||!S7(e.expression)||!j7(e.expression.callee)&&!K7(e.expression.callee)?!1:i(e.expression.callee)}function c(e){return o(e)||s(e)}function l(e){return I7(e)?e.body.body.some(e=>c(e)):!1}function u(e){return!b7(e)||!x7(e.body)?!1:e.body.body.some(e=>c(e))}function d(e){return!b7(e)||!S7(e.body)||!j7(e.body.callee)&&!K7(e.body.callee)?!1:i(e.body.callee)}function f(e){return u(e)||d(e)}function p(e){if(!r(e))return;let t=e.arguments[0];t&&(a(t),f(t),l(t))}return{CallExpression:p}}}),sSe=O9({name:`prefer-query-matchers`,meta:{docs:{description:"Ensure the configured `get*`/`query*` query is used with the corresponding matchers",recommendedConfig:{dom:!1,angular:!1,react:!1,vue:!1,svelte:!1,marko:!1}},messages:{wrongQueryForMatcher:"Use `{{ query }}By*` queries for {{ matcher }}"},schema:[{type:`object`,additionalProperties:!1,properties:{validEntries:{type:`array`,items:{type:`object`,properties:{query:{type:`string`,enum:[`get`,`query`]},matcher:{type:`string`}},additionalProperties:!1}}}}],type:`suggestion`},defaultOptions:[{validEntries:[]}],create(e,[{validEntries:t}],n){return{"CallExpression Identifier"(r){let i=B7(r,`expect`);if(!i||!j7(i.parent)||!n.isSyncQuery(r))return;let a=n.isGetQueryVariant(r),o=i.parent;for(let i of t){let{query:t,matcher:s}=i;n.isMatchingAssert(o,s)&&t!==(a?`get`:`query`)&&e.report({node:r,messageId:`wrongQueryForMatcher`,data:{query:t,matcher:s}})}}}}});const cSe=[`container`,`baseElement`];function U9(e){let t=e.arguments[1];return M7(t)&&t.properties.some(e=>P7(e)&&X.ASTUtils.isIdentifier(e.key)&&cSe.includes(e.key.name))}var lSe=O9({name:`prefer-screen-queries`,meta:{type:`suggestion`,docs:{description:"Suggest using `screen` while querying",recommendedConfig:{dom:`error`,angular:`error`,react:`error`,vue:`error`,svelte:`error`,marko:`error`}},messages:{preferScreenQueries:"Avoid destructuring queries from `render` result, use `screen.{{ name }}` instead"},schema:[]},defaultOptions:[],create(e,t,n){let r=[];function i(t){let n=$7(e,t);n&&r.push(Y7(n))}function a(e){return n.isRenderUtil(e)||r.includes(e.name)}function o(t){e.report({node:t,messageId:`preferScreenQueries`,data:{name:t.name}})}function s(e){if(N7(e.id))for(let t of e.id.properties)P7(t)&&X.ASTUtils.isIdentifier(t.key)&&n.isBuiltInQuery(t.key)&&l.push(t.key.name)}function c(e){return[`screen`,...u].includes(e)}let l=[],u=[];return{VariableDeclarator(e){if(!S7(e.init)||!X.ASTUtils.isIdentifier(e.init.callee))return;let t=a(e.init.callee);t||s(e);let n=e.init.callee.name===`within`,r=t&&U9(e.init);(n||r)&&(N7(e.id)?s(e):X.ASTUtils.isIdentifier(e.id)&&u.push(e.id.name))},CallExpression(t){let r=q7(t);if(!r||(n.isRenderUtil(r)&&i(r),!n.isBuiltInQuery(r)))return;if(!j7(r.parent)){if(l.some(e=>e===r.name))return;o(r);return}let s=r.parent;if(S7(s.object)&&X.ASTUtils.isIdentifier(s.object.callee)&&s.object.callee.name!==`within`&&a(s.object.callee)&&!U9(s.object)){o(r);return}let u=p9(t,e);X.ASTUtils.isIdentifier(s.object)&&!c(s.object.name)&&!c(u?.original??``)&&o(r)}}}});const W9={click:[`click`,`type`,`selectOptions`,`deselectOptions`],change:[`upload`,`type`,`clear`,`selectOptions`,`deselectOptions`],dblClick:[`dblClick`],input:[`type`,`upload`,`selectOptions`,`deselectOptions`,`paste`],keyDown:[`type`,`tab`],keyPress:[`type`],keyUp:[`type`,`tab`],mouseDown:[`click`,`dblClick`,`selectOptions`,`deselectOptions`],mouseEnter:[`hover`,`selectOptions`,`deselectOptions`],mouseLeave:[`unhover`],mouseMove:[`hover`,`unhover`,`selectOptions`,`deselectOptions`],mouseOut:[`unhover`],mouseOver:[`hover`,`selectOptions`,`deselectOptions`],mouseUp:[`click`,`dblClick`,`selectOptions`,`deselectOptions`],paste:[`paste`],pointerDown:[`click`,`dblClick`,`selectOptions`,`deselectOptions`],pointerEnter:[`hover`,`selectOptions`,`deselectOptions`],pointerLeave:[`unhover`],pointerMove:[`hover`,`unhover`,`selectOptions`,`deselectOptions`],pointerOut:[`unhover`],pointerOver:[`hover`,`selectOptions`,`deselectOptions`],pointerUp:[`click`,`dblClick`,`selectOptions`,`deselectOptions`]};function uSe(e){return(W9[e]?.map(e=>`userEvent.${e}`)??[]).join(`, `).replace(/, ([a-zA-Z.]+)$/,`, or $1`)}const dSe=Object.keys(W9);var fSe=O9({name:`prefer-user-event`,meta:{type:`suggestion`,docs:{description:"Suggest using `userEvent` over `fireEvent` for simulating user interactions",recommendedConfig:{dom:!1,angular:!1,react:!1,vue:!1,svelte:!1,marko:!1}},messages:{preferUserEvent:`Prefer using {{userEventMethods}} over fireEvent.{{fireEventMethod}}`},schema:[{type:`object`,properties:{allowedMethods:{type:`array`}},additionalProperties:!1}]},defaultOptions:[{allowedMethods:[]}],create(e,[t],n){let{allowedMethods:r}=t,i={},a=e=>!dSe.includes(e)||r.includes(e),o=(e,t)=>{if(!X.ASTUtils.isIdentifier(e.callee)&&!j7(e.callee))return t.name;let r=e.arguments[1];return X.ASTUtils.isIdentifier(r)&&i[r.name]!==void 0?i[r.name]:!S7(r)||!n.isCreateEventUtil(r)?t.name:X.ASTUtils.isIdentifier(r.callee)?r.arguments[0].value:r.callee.property.name};return{"CallExpression Identifier"(t){if(!n.isFireEventMethod(t))return;let r=L7(t,!0);if(!r)return;let i=o(r,t);i&&!a(i)&&e.report({node:r.callee,messageId:`preferUserEvent`,data:{userEventMethods:uSe(i),fireEventMethod:i}})},VariableDeclarator(e){if(!S7(e.init)||!n.isCreateEventUtil(e.init)||!X.ASTUtils.isIdentifier(e.id))return;let t=``;j7(e.init.callee)&&X.ASTUtils.isIdentifier(e.init.callee.property)?t=e.init.callee.property.name:e.init.arguments.length>0&&(t=e.init.arguments[0].value),a(t)||(i[e.id.name]=t)}}}});const G9=`setup`;var pSe=O9({name:`prefer-user-event-setup`,meta:{type:`suggestion`,docs:{description:`Suggest using userEvent with setup() instead of direct methods`,recommendedConfig:{dom:!1,angular:!1,react:!1,vue:!1,svelte:!1,marko:!1}},messages:{preferUserEventSetup:`Prefer using userEvent with setup() instead of direct {{method}}() call. Use: const user = userEvent.setup(); await user.{{method}}(...)`},schema:[]},defaultOptions:[],create(e,t,n){let r=/* @__PURE__ */ new Set,i=/* @__PURE__ */ new Map,a=null;function o(e){return e.type===X.AST_NODE_TYPES.CallExpression&&e.callee.type===X.AST_NODE_TYPES.MemberExpression&&e.callee.object.type===X.AST_NODE_TYPES.Identifier&&e.callee.object.name===a&&e.callee.property.type===X.AST_NODE_TYPES.Identifier&&e.callee.property.name===G9}return{ImportDeclaration(e){if(e.source.value===`@testing-library/user-event`){let t=e.specifiers.find(e=>e.type===X.AST_NODE_TYPES.ImportDefaultSpecifier);t&&(a=t.local.name);let n=e.specifiers.find(e=>e.type===X.AST_NODE_TYPES.ImportSpecifier&&e.imported.type===X.AST_NODE_TYPES.Identifier&&e.imported.name===`userEvent`);n&&n.type===X.AST_NODE_TYPES.ImportSpecifier&&(a=n.local.name)}},VariableDeclarator(e){if(a&&e.init&&(o(e.init)&&e.id.type===X.AST_NODE_TYPES.Identifier&&r.add(e.id.name),e.id.type===X.AST_NODE_TYPES.ObjectPattern&&e.init.type===X.AST_NODE_TYPES.CallExpression&&e.init.callee.type===X.AST_NODE_TYPES.Identifier)){let t=e.init.callee.name,n=i.get(t);if(n)for(let t of e.id.properties)t.type===X.AST_NODE_TYPES.Property&&t.key.type===X.AST_NODE_TYPES.Identifier&&n.has(t.key.name)&&t.value.type===X.AST_NODE_TYPES.Identifier&&r.add(t.value.name)}},FunctionDeclaration(e){if(a&&e.id&&e.body&&e.body.type===X.AST_NODE_TYPES.BlockStatement){for(let t of e.body.body)if(t.type===X.AST_NODE_TYPES.ReturnStatement){let n=t;if(n.argument&&n.argument.type===X.AST_NODE_TYPES.ObjectExpression){let t=/* @__PURE__ */ new Set;for(let e of n.argument.properties)e.type===X.AST_NODE_TYPES.Property&&e.key.type===X.AST_NODE_TYPES.Identifier&&e.value&&o(e.value)&&t.add(e.key.name);t.size>0&&i.set(e.id.name,t)}}}},CallExpression(t){if(a&&t.callee.type===X.AST_NODE_TYPES.MemberExpression&&t.callee.property.type===X.AST_NODE_TYPES.Identifier&&n.isUserEventMethod(t.callee.property)){let n=t.callee.property.name;if(n===G9)return;t.callee.object.type===X.AST_NODE_TYPES.Identifier&&r.has(t.callee.object.name)||e.report({node:t.callee,messageId:`preferUserEventSetup`,data:{method:n}})}}}}});const K9=[`view`,`utils`],mSe={"await-async-events":kxe,"await-async-queries":Axe,"await-async-utils":jxe,"consistent-data-testid":Mxe,"no-await-sync-events":Fxe,"no-await-sync-queries":Ixe,"no-container":Lxe,"no-debugging-utils":Rxe,"no-dom-import":Hxe,"no-global-regexp-flag-in-query":Uxe,"no-manual-cleanup":Gxe,"no-node-access":Kxe,"no-promise-in-fire-event":qxe,"no-render-in-lifecycle":Jxe,"no-test-id-queries":Yxe,"no-unnecessary-act":Xxe,"no-wait-for-multiple-assertions":Zxe,"no-wait-for-side-effects":Qxe,"no-wait-for-snapshot":eSe,"prefer-explicit-assert":nSe,"prefer-find-by":rSe,"prefer-implicit-assert":iSe,"prefer-presence-queries":aSe,"prefer-query-by-disappearance":oSe,"prefer-query-matchers":sSe,"prefer-screen-queries":lSe,"prefer-user-event":fSe,"prefer-user-event-setup":pSe,"render-result-naming-convention":O9({name:`render-result-naming-convention`,meta:{type:`suggestion`,docs:{description:"Enforce a valid naming for return value from `render`",recommendedConfig:{dom:!1,angular:`error`,react:`error`,vue:`error`,svelte:`error`,marko:`error`}},messages:{renderResultNamingConvention:`\`{{ renderResultName }}\` is not a recommended name for \`render\` returned value. Instead, you should destructure it, or name it using one of: ${K9.map(e=>`\`${e}\``).join(`, `).replace(/, ([^,]*)$/,`, or $1`)}`},schema:[]},defaultOptions:[],create(e,t,n){let r=[];function i(t){let n=$7(e,t);n&&r.push(Y7(n))}return{CallExpression(e){let t=q7(e);t&&n.isRenderUtil(t)&&i(t)},VariableDeclarator(t){if(!t.init)return;let i=q7(t.init);if(!i||!n.isRenderVariableDeclarator(t)&&!r.includes(i.name)||N7(t.id))return;let a=X.ASTUtils.isIdentifier(t.id)&&t.id.name;a&&(K9.includes(a)||e.report({node:t,messageId:`renderResultNamingConvention`,data:{renderResultName:a}}))}}}})},{name:hSe,version:gSe}=t(import.meta.url)(S(y(D(import.meta.url)),`../package.json`)),q9=`testing-library`;function _Se(){return Object.entries(g7).reduce((e,[t,n])=>{let r=`flat/${t}`;return{...e,[r]:{name:`${q9}/${t}`,plugins:{get"testing-library"(){return J9}},rules:n.rules}}},{})}function vSe(){return Object.entries(g7).reduce((e,[t,n])=>({...e,[t]:{plugins:[q9],rules:n.rules}}),{})}const ySe={..._Se(),...vSe()},J9={meta:{name:hSe,version:gSe},rules:mSe,configs:ySe},Y9=[`js`,`jsx`,`mjs`,`cjs`],X9=[`ts`,`tsx`,`mts`,`cts`],Z9=[...Y9,...X9],Q9=`{${Z9.join(`,`)}}`,bSe=[`jsx`,`tsx`],xSe=[`WithStatement`,`ForInStatement`,{selector:`MemberExpression[object.name='React'], TSQualifiedName[left.name='React']`,message:`Import from 'react' by name instead of the React namespace.`},{selector:`JSXAttribute[value=null]`,message:"Set boolean JSX props explicitly, e.g. `prop={true}`."}],SSe={paths:[{name:`punycode`},{name:`assert`}]},$9=vl.rules[`list-style`],CSe={meta:$9.meta,create:e=>$9.create(Object.create(e,{report:{value:t=>t.messageId.endsWith(`Spacing`)&&e.report(t)}}))},wSe={react:I3,"react-web-api":U6},TSe={"react-web-api/no-leaked-event-listener":[0],"react-web-api/no-leaked-fetch":[0],"react-web-api/no-leaked-intersection-observer":[2],"react-web-api/no-leaked-interval":[2],"react-web-api/no-leaked-resize-observer":[2],"react-web-api/no-leaked-timeout":[0],"react/error-boundaries":[2],"react/exhaustive-deps":[2],"react/globals":[2],"react/immutability":[2],"react/no-create-ref":[2],"react/no-missing-context-display-name":[2],"react/no-misused-capture-owner-stack":[2],"react/no-unnecessary-use-prefix":[2],"react/no-unused-state":[2],"react/no-use-context":[2],"react/purity":[2],"react/refs":[2],"react/rules-of-hooks":[2],"react/set-state-in-effect":[2],"react/set-state-in-render":[2],"react/unsupported-syntax":[2],"react/use-memo":[2],"react/use-state":[2,{enforceAssignment:!0,enforceSetterName:!0}]},ESe={"react-jsx":Y3,"react-dom":v6,"react-naming-convention":X6,"react-refresh":Ome,"jsx-a11y":GU,"validate-jsx-nesting":qye.default},DSe={"react-dom/no-dangerously-set-innerhtml":[0],"react-dom/no-dangerously-set-innerhtml-with-children":[2],"react-dom/no-find-dom-node":[2],"react-dom/no-flush-sync":[2],"react-dom/no-hydrate":[2],"react-dom/no-missing-button-type":[0],"react-dom/no-missing-iframe-sandbox":[0],"react-dom/no-render":[2],"react-dom/no-render-return-value":[2],"react-dom/no-script-url":[2],"react-dom/no-string-style-prop":[2],"react-dom/no-unknown-property":[2,{ignore:[`css`],requireDataLowercase:!0}],"react-dom/no-unsafe-iframe-sandbox":[2],"react-dom/no-unsafe-target-blank":[2],"react-dom/no-use-form-state":[2],"react-dom/no-void-elements-with-children":[2],"react-jsx/no-children-prop":[2],"react-jsx/no-children-prop-with-children":[2],"react-jsx/no-comment-textnodes":[2],"react-jsx/no-key-after-spread":[2],"react-jsx/no-leaked-dollar":[2],"react-jsx/no-leaked-semicolon":[2],"react-jsx/no-namespace":[2],"react-jsx/no-useless-fragment":[0],"react-naming-convention/context-name":[0],"react-naming-convention/id-name":[0],"react-naming-convention/ref-name":[0],"react/no-access-state-in-setstate":[0],"react/no-array-index-key":[0],"react/no-children-count":[0],"react/no-children-for-each":[0],"react/no-children-map":[0],"react/no-children-only":[0],"react/no-children-to-array":[0],"react/no-class-component":[2],"react/no-clone-element":[0],"react/no-component-will-mount":[0],"react/no-component-will-receive-props":[0],"react/no-component-will-update":[0],"react/no-context-provider":[2],"react/no-direct-mutation-state":[0],"react/no-duplicate-key":[2],"react/no-forward-ref":[2],"react/no-implicit-children":[0],"react/no-implicit-key":[2],"react/no-implicit-ref":[0],"react/no-leaked-conditional-rendering":[2],"react/no-missing-component-display-name":[0],"react/no-missing-key":[2],"react/no-nested-component-definitions":[2],"react/no-nested-lazy-component-declarations":[2],"react/no-set-state-in-component-did-mount":[0],"react/no-set-state-in-component-did-update":[0],"react/no-set-state-in-component-will-update":[0],"react/no-unsafe-component-will-mount":[0],"react/no-unsafe-component-will-receive-props":[0],"react/no-unsafe-component-will-update":[0],"react/no-unstable-context-value":[2],"react/no-unstable-default-props":[2],"react/no-unused-class-component-members":[0],"react/no-unused-props":[2],"react/static-components":[0],"@stylistic/exp-jsx-props-style":[0],"@stylistic/jsx-child-element-spacing":[0],"@stylistic/jsx-closing-bracket-location":[0],"@stylistic/jsx-closing-tag-location":[2],"@stylistic/jsx-curly-brace-presence":[0],"@stylistic/jsx-curly-newline":[2,`consistent`],"@stylistic/jsx-curly-spacing":[2,{when:`never`}],"@stylistic/jsx-equals-spacing":[2,`never`],"@stylistic/jsx-first-prop-new-line":[0],"@stylistic/jsx-function-call-newline":[0],"@stylistic/jsx-indent-props":[0],"@stylistic/jsx-max-props-per-line":[0],"@stylistic/jsx-newline":[0],"@stylistic/jsx-one-expression-per-line":[0],"@stylistic/jsx-pascal-case":[2,{allowAllCaps:!0}],"@stylistic/jsx-quotes":[0],"@stylistic/jsx-self-closing-comp":[2],"@stylistic/jsx-shorthand-boolean":[0],"@stylistic/jsx-shorthand-fragment":[0],"@stylistic/jsx-tag-spacing":[2,{beforeSelfClosing:`never`,beforeClosing:`never`}],"@stylistic/jsx-wrap-multilines":[2],"jsx-a11y/alt-text":[0],"jsx-a11y/anchor-ambiguous-text":[2],"jsx-a11y/anchor-has-content":[2],"jsx-a11y/anchor-is-valid":[2],"jsx-a11y/aria-activedescendant-has-tabindex":[2],"jsx-a11y/aria-props":[2],"jsx-a11y/aria-proptypes":[2],"jsx-a11y/aria-role":[2],"jsx-a11y/aria-unsupported-elements":[2],"jsx-a11y/autocomplete-valid":[2],"jsx-a11y/click-events-have-key-events":[0],"jsx-a11y/control-has-associated-label":[0],"jsx-a11y/heading-has-content":[2],"jsx-a11y/html-has-lang":[0],"jsx-a11y/iframe-has-title":[0],"jsx-a11y/img-redundant-alt":[0],"jsx-a11y/interactive-supports-focus":[2],"jsx-a11y/label-has-associated-control":[2],"jsx-a11y/lang":[2],"jsx-a11y/media-has-caption":[0],"jsx-a11y/mouse-events-have-key-events":[0],"jsx-a11y/no-access-key":[2],"jsx-a11y/no-aria-hidden-on-focusable":[0],"jsx-a11y/no-autofocus":[0],"jsx-a11y/no-distracting-elements":[2],"jsx-a11y/no-interactive-element-to-noninteractive-role":[0],"jsx-a11y/no-noninteractive-element-interactions":[0],"jsx-a11y/no-noninteractive-element-to-interactive-role":[0],"jsx-a11y/no-noninteractive-tabindex":[0],"jsx-a11y/no-redundant-roles":[2],"jsx-a11y/no-static-element-interactions":[0],"jsx-a11y/prefer-tag-over-role":[2],"jsx-a11y/role-has-required-aria-props":[2],"jsx-a11y/role-supports-aria-props":[2],"jsx-a11y/scope":[0],"jsx-a11y/tabindex-no-positive":[2],"react-refresh/only-export-components":[2,{allowConstantExport:!0}],"validate-jsx-nesting/no-invalid-jsx-nesting":[2]},OSe=[{ignores:[`**/*.snap`,`**/.air/`,`**/.claude/`,`**/.codex/`,`**/.git/`,`**/.playwright-mcp/`,`**/.ruff_cache/`,`**/.swc/`,`**/.venv/`,`**/build/`,`**/dist/`,`**/fixtures/`,`**/node_modules/`,`**/persistent/`,`**/vendor/`]},{files:[`**/*.${Q9}`],languageOptions:{ecmaVersion:`latest`,sourceType:`module`,globals:{...qP.default.browser,...qP.default.node},parser:T,parserOptions:{ecmaFeatures:{jsx:!0,impliedStrict:!0},projectService:!0}},linterOptions:{reportUnusedDisableDirectives:2,reportUnusedInlineConfigs:2},plugins:{"@eslint-community/eslint-comments":ve.default,"@stylistic":vl,"@typescript-eslint":Jye.default.plugin,"import-x":s,regexp:gT,silverwind:{rules:{"list-spacing":CSe}},unicorn:_},settings:{"import-x/extensions":Z9.map(e=>`.${e}`),"import-x/parsers":{"@typescript-eslint/parser":Z9.map(e=>`.${e}`)},"import-x/resolver":{"eslint-import-resolver-typescript":!0},"react-x":{additionalEffectHooks:`/^(useEffectOnce|useLayoutEffectOnce)$/`,additionalRefHooks:`/^(useLazyRef|useMounted|useModifierKeyRef)$/`}},rules:{"@eslint-community/eslint-comments/disable-enable-pair":[2,{allowWholeFile:!0}],"@eslint-community/eslint-comments/no-aggregating-enable":[2],"@eslint-community/eslint-comments/no-duplicate-disable":[2],"@eslint-community/eslint-comments/no-restricted-disable":[0],"@eslint-community/eslint-comments/no-unlimited-disable":[2],"@eslint-community/eslint-comments/no-unused-enable":[2],"@eslint-community/eslint-comments/no-use":[0],"@eslint-community/eslint-comments/require-description":[2,{additionalDirectives:[`oxlint-disable`,`oxlint-disable-line`,`oxlint-disable-next-line`],ignore:[`eslint`,`eslint-enable`,`eslint-env`,`exported`,`global`,`globals`]}],"@stylistic/arrow-parens":[0],"@stylistic/arrow-spacing":[2,{before:!0,after:!0}],"@stylistic/block-spacing":[0],"@stylistic/brace-style":[2,`1tbs`,{allowSingleLine:!0}],"@stylistic/comma-dangle":[2,`only-multiline`],"@stylistic/comma-spacing":[2,{before:!1,after:!0}],"@stylistic/comma-style":[2,`last`],"@stylistic/computed-property-spacing":[2,`never`],"@stylistic/curly-newline":[0],"@stylistic/dot-location":[2,`property`],"@stylistic/eol-last":[2],"@stylistic/function-call-spacing":[2,`never`],"@stylistic/generator-star-spacing":[0],"@stylistic/implicit-arrow-linebreak":[0],"@stylistic/indent":[2,2,{ignoreComments:!0,SwitchCase:1,ignoredNodes:[`TSTypeAnnotation`]}],"@stylistic/indent-binary-ops":[0],"@stylistic/key-spacing":[2],"@stylistic/keyword-spacing":[2],"@stylistic/line-comment-position":[0],"@stylistic/linebreak-style":[2,`unix`],"@stylistic/lines-around-comment":[0],"@stylistic/lines-between-class-members":[0],"@stylistic/list-style":[0],"@stylistic/max-len":[0],"@stylistic/max-statements-per-line":[0],"@stylistic/member-delimiter-style":[0],"@stylistic/multiline-comment-style":[0],"@stylistic/multiline-ternary":[0],"@stylistic/new-parens":[2],"@stylistic/newline-per-chained-call":[0],"@stylistic/no-confusing-arrow":[0],"@stylistic/no-extra-parens":[0],"@stylistic/no-extra-semi":[2],"@stylistic/no-floating-decimal":[0],"@stylistic/no-mixed-operators":[0],"@stylistic/no-mixed-spaces-and-tabs":[2],"@stylistic/no-multi-spaces":[2,{ignoreEOLComments:!0,exceptions:{Property:!0}}],"@stylistic/no-multiple-empty-lines":[2,{max:2,maxEOF:1,maxBOF:0}],"@stylistic/no-tabs":[0],"@stylistic/no-trailing-spaces":[2],"@stylistic/no-whitespace-before-property":[2],"@stylistic/nonblock-statement-body-position":[2],"@stylistic/one-var-declaration-per-line":[0],"@stylistic/operator-linebreak":[2,`after`],"@stylistic/padded-blocks":[2,`never`],"@stylistic/padding-line-between-statements":[0],"@stylistic/quote-props":[0],"@stylistic/quotes":[2,`double`,{avoidEscape:!0,allowTemplateLiterals:`always`}],"@stylistic/rest-spread-spacing":[2,`never`],"@stylistic/semi":[2,`always`],"@stylistic/semi-spacing":[2,{before:!1,after:!0}],"@stylistic/semi-style":[2,`last`],"@stylistic/space-before-blocks":[2,`always`],"@stylistic/space-before-function-paren":[0],"@stylistic/space-in-parens":[2,`never`],"@stylistic/space-infix-ops":[2],"@stylistic/space-unary-ops":[2],"@stylistic/spaced-comment":[0],"@stylistic/switch-colon-spacing":[2],"@stylistic/template-curly-spacing":[2,`never`],"@stylistic/template-tag-spacing":[2,`never`],"@stylistic/type-annotation-spacing":[0],"@stylistic/type-generic-spacing":[0],"@stylistic/type-named-tuple-spacing":[0],"@stylistic/wrap-iife":[2,`inside`],"@stylistic/wrap-regex":[0],"@stylistic/yield-star-spacing":[2,`after`],"@typescript-eslint/adjacent-overload-signatures":[0],"@typescript-eslint/array-type":[0],"@typescript-eslint/await-thenable":[2],"@typescript-eslint/ban-ts-comment":[2,{"ts-expect-error":!1,"ts-ignore":!0,"ts-nocheck":!1,"ts-check":!1}],"@typescript-eslint/ban-tslint-comment":[0],"@typescript-eslint/class-literal-property-style":[0],"@typescript-eslint/class-methods-use-this":[0],"@typescript-eslint/consistent-generic-constructors":[2,`constructor`],"@typescript-eslint/consistent-indexed-object-style":[0],"@typescript-eslint/consistent-return":[0],"@typescript-eslint/consistent-type-assertions":[2,{assertionStyle:`as`,objectLiteralTypeAssertions:`allow`}],"@typescript-eslint/consistent-type-definitions":[0],"@typescript-eslint/consistent-type-exports":[2,{fixMixedExportsWithInlineTypeSpecifier:!1}],"@typescript-eslint/consistent-type-imports":[2,{prefer:`type-imports`,fixStyle:`separate-type-imports`,disallowTypeAnnotations:!0}],"@typescript-eslint/default-param-last":[0],"@typescript-eslint/dot-notation":[0],"@typescript-eslint/explicit-function-return-type":[0],"@typescript-eslint/explicit-member-accessibility":[0],"@typescript-eslint/explicit-module-boundary-types":[0],"@typescript-eslint/init-declarations":[0],"@typescript-eslint/max-params":[0],"@typescript-eslint/member-ordering":[0],"@typescript-eslint/method-signature-style":[0],"@typescript-eslint/naming-convention":[0],"@typescript-eslint/no-array-constructor":[2],"@typescript-eslint/no-array-delete":[2],"@typescript-eslint/no-base-to-string":[2],"@typescript-eslint/no-confusing-non-null-assertion":[2],"@typescript-eslint/no-confusing-void-expression":[0],"@typescript-eslint/no-deprecated":[2],"@typescript-eslint/no-dupe-class-members":[0],"@typescript-eslint/no-duplicate-enum-values":[2],"@typescript-eslint/no-duplicate-type-constituents":[2,{ignoreUnions:!0}],"@typescript-eslint/no-dynamic-delete":[0],"@typescript-eslint/no-empty-function":[0],"@typescript-eslint/no-empty-object-type":[2],"@typescript-eslint/no-explicit-any":[0],"@typescript-eslint/no-extra-non-null-assertion":[2],"@typescript-eslint/no-extraneous-class":[0],"@typescript-eslint/no-floating-promises":[0],"@typescript-eslint/no-for-in-array":[0],"@typescript-eslint/no-generated-empty-object-type":[2],"@typescript-eslint/no-implied-eval":[2],"@typescript-eslint/no-import-type-side-effects":[0],"@typescript-eslint/no-inferrable-types":[0],"@typescript-eslint/no-invalid-this":[0],"@typescript-eslint/no-invalid-void-type":[0],"@typescript-eslint/no-magic-numbers":[0],"@typescript-eslint/no-meaningless-void-operator":[0],"@typescript-eslint/no-misused-new":[2],"@typescript-eslint/no-misused-promises":[2,{checksVoidReturn:{arguments:!1,attributes:!1,properties:!1}}],"@typescript-eslint/no-misused-spread":[2],"@typescript-eslint/no-mixed-enums":[0],"@typescript-eslint/no-namespace":[2],"@typescript-eslint/no-non-null-asserted-nullish-coalescing":[2],"@typescript-eslint/no-non-null-asserted-optional-chain":[2],"@typescript-eslint/no-non-null-assertion":[0],"@typescript-eslint/no-redeclare":[2],"@typescript-eslint/no-redundant-type-constituents":[0],"@typescript-eslint/no-require-imports":[2],"@typescript-eslint/no-restricted-types":[0],"@typescript-eslint/no-shadow":[0],"@typescript-eslint/no-this-alias":[2],"@typescript-eslint/no-unnecessary-boolean-literal-compare":[0],"@typescript-eslint/no-unnecessary-condition":[0],"@typescript-eslint/no-unnecessary-parameter-property-assignment":[2],"@typescript-eslint/no-unnecessary-qualifier":[0],"@typescript-eslint/no-unnecessary-template-expression":[0],"@typescript-eslint/no-unnecessary-type-arguments":[0],"@typescript-eslint/no-unnecessary-type-assertion":[2],"@typescript-eslint/no-unnecessary-type-constraint":[2],"@typescript-eslint/no-unnecessary-type-conversion":[0],"@typescript-eslint/no-unnecessary-type-parameters":[0],"@typescript-eslint/no-unsafe-argument":[0],"@typescript-eslint/no-unsafe-assignment":[0],"@typescript-eslint/no-unsafe-call":[0],"@typescript-eslint/no-unsafe-class-instance-assignment":[0],"@typescript-eslint/no-unsafe-declaration-merging":[2],"@typescript-eslint/no-unsafe-enum-assignment":[0],"@typescript-eslint/no-unsafe-enum-comparison":[0],"@typescript-eslint/no-unsafe-function-type":[2],"@typescript-eslint/no-unsafe-member-access":[0],"@typescript-eslint/no-unsafe-return":[0],"@typescript-eslint/no-unsafe-type-assertion":[0],"@typescript-eslint/no-unsafe-unary-minus":[2],"@typescript-eslint/no-unused-expressions":[2],"@typescript-eslint/no-unused-private-class-members":[2],"@typescript-eslint/no-unused-vars":[2,{vars:`all`,args:`all`,caughtErrors:`all`,ignoreRestSiblings:!1,argsIgnorePattern:`^_`,varsIgnorePattern:`^_[^_]*$`,caughtErrorsIgnorePattern:`^_`,destructuredArrayIgnorePattern:`^_`}],"@typescript-eslint/no-use-before-define":[2,{functions:!1,classes:!0,variables:!0,allowNamedExports:!0,typedefs:!1,enums:!1,ignoreTypeReferences:!0}],"@typescript-eslint/no-useless-constructor":[0],"@typescript-eslint/no-useless-default-assignment":[2],"@typescript-eslint/no-useless-empty-export":[0],"@typescript-eslint/no-wrapper-object-types":[2],"@typescript-eslint/non-nullable-type-assertion-style":[0],"@typescript-eslint/only-throw-error":[2],"@typescript-eslint/parameter-properties":[0],"@typescript-eslint/prefer-as-const":[2],"@typescript-eslint/prefer-destructuring":[0],"@typescript-eslint/prefer-enum-initializers":[0],"@typescript-eslint/prefer-find":[2],"@typescript-eslint/prefer-for-of":[2],"@typescript-eslint/prefer-function-type":[2],"@typescript-eslint/prefer-includes":[2],"@typescript-eslint/prefer-literal-enum-member":[0],"@typescript-eslint/prefer-namespace-keyword":[0],"@typescript-eslint/prefer-nullish-coalescing":[0],"@typescript-eslint/prefer-optional-chain":[2,{requireNullish:!0}],"@typescript-eslint/prefer-promise-reject-errors":[2],"@typescript-eslint/prefer-readonly":[0],"@typescript-eslint/prefer-readonly-parameter-types":[0],"@typescript-eslint/prefer-reduce-type-parameter":[0],"@typescript-eslint/prefer-regexp-exec":[0],"@typescript-eslint/prefer-return-this-type":[0],"@typescript-eslint/prefer-string-starts-ends-with":[2,{allowSingleElementEquality:`always`}],"@typescript-eslint/promise-function-async":[0],"@typescript-eslint/related-getter-setter-pairs":[2],"@typescript-eslint/require-array-sort-compare":[2],"@typescript-eslint/require-await":[2],"@typescript-eslint/restrict-plus-operands":[2],"@typescript-eslint/restrict-template-expressions":[2],"@typescript-eslint/return-await":[2,`error-handling-correctness-only`],"@typescript-eslint/strict-boolean-expressions":[0],"@typescript-eslint/strict-void-return":[0],"@typescript-eslint/switch-exhaustiveness-check":[2],"@typescript-eslint/triple-slash-reference":[2],"@typescript-eslint/unbound-method":[0],"@typescript-eslint/unified-signatures":[2],"@typescript-eslint/use-unknown-in-catch-callback-variable":[0],"accessor-pairs":[2],"array-callback-return":[2,{checkForEach:!0}],"arrow-body-style":[0],"block-scoped-var":[2],camelcase:[0],"capitalized-comments":[0],"class-methods-use-this":[0],complexity:[0],"consistent-return":[0],"consistent-this":[0],"constructor-super":[2],curly:[0],"default-case":[0],"default-case-last":[2],"default-param-last":[0],"dot-notation":[0],eqeqeq:[2],"for-direction":[2],"func-name-matching":[2],"func-names":[0],"func-style":[0],"getter-return":[2],"grouped-accessor-pairs":[2],"guard-for-in":[0],"id-denylist":[0],"id-length":[0],"id-match":[0],"import-x/avoid-barrel-files":[0],"import-x/avoid-importing-barrel-files":[0],"import-x/avoid-namespace-import":[0],"import-x/avoid-re-export-all":[0],"import-x/consistent-type-specifier-style":[0],"import-x/default":[0],"import-x/dynamic-import-chunkname":[0],"import-x/export":[2],"import-x/exports-last":[0],"import-x/extensions":[2,`ignorePackages`,{checkTypeImports:!0}],"import-x/first":[2],"import-x/group-exports":[0],"import-x/max-dependencies":[0],"import-x/named":[0],"import-x/namespace":[0],"import-x/newline-after-import":[0],"import-x/no-absolute-path":[2],"import-x/no-amd":[2],"import-x/no-anonymous-default-export":[0],"import-x/no-commonjs":[2,{allowConditionalRequire:!1}],"import-x/no-cycle":[2,{ignoreExternal:!0,maxDepth:1}],"import-x/no-default-export":[0],"import-x/no-deprecated":[0],"import-x/no-duplicates":[2],"import-x/no-dynamic-require":[0],"import-x/no-empty-named-blocks":[2],"import-x/no-extraneous-dependencies":[2],"import-x/no-import-module-exports":[0],"import-x/no-internal-modules":[0],"import-x/no-mutable-exports":[0],"import-x/no-named-as-default":[0],"import-x/no-named-as-default-member":[0],"import-x/no-named-default":[0],"import-x/no-named-export":[0],"import-x/no-namespace":[0],"import-x/no-nodejs-modules":[0],"import-x/no-relative-packages":[0],"import-x/no-relative-parent-imports":[0],"import-x/no-rename-default":[0],"import-x/no-restricted-paths":[0],"import-x/no-self-import":[2],"import-x/no-unassigned-import":[0],"import-x/no-unresolved":[2,{commonjs:!0,ignore:[`\\?.+$`]}],"import-x/no-unused-modules":[0,{unusedExports:!0,ignoreUnusedTypeExports:!0}],"import-x/no-useless-path-segments":[2,{commonjs:!0}],"import-x/no-webpack-loader-syntax":[2],"import-x/order":[0],"import-x/prefer-default-export":[0],"import-x/prefer-namespace-import":[0],"import-x/unambiguous":[0],"init-declarations":[0],"logical-assignment-operators":[0],"max-classes-per-file":[0],"max-depth":[0],"max-lines":[0],"max-lines-per-function":[0],"max-nested-callbacks":[0],"max-params":[0],"max-statements":[0],"new-cap":[0],"no-alert":[0],"no-array-constructor":[0],"no-async-promise-executor":[0],"no-await-in-loop":[0],"no-bitwise":[0],"no-caller":[2],"no-case-declarations":[2],"no-class-assign":[2],"no-compare-neg-zero":[2],"no-cond-assign":[2,`except-parens`],"no-console":[1,{allow:[`debug`,`info`,`warn`,`error`]}],"no-const-assign":[2],"no-constant-binary-expression":[2],"no-constant-condition":[2],"no-constructor-return":[2],"no-continue":[0],"no-control-regex":[0],"no-debugger":[1],"no-delete-var":[2],"no-div-regex":[0],"no-dupe-args":[2],"no-dupe-class-members":[2],"no-dupe-else-if":[2],"no-dupe-keys":[2],"no-duplicate-case":[2],"no-duplicate-imports":[0],"no-else-return":[0],"no-empty":[2,{allowEmptyCatch:!0}],"no-empty-character-class":[2],"no-empty-function":[0],"no-empty-pattern":[2],"no-empty-static-block":[2],"no-eq-null":[0],"no-eval":[2],"no-ex-assign":[2],"no-extend-native":[2],"no-extra-bind":[2],"no-extra-boolean-cast":[2],"no-extra-label":[0],"no-fallthrough":[2],"no-func-assign":[2],"no-global-assign":[2],"no-implicit-coercion":[2],"no-implicit-globals":[0],"no-implied-eval":[0],"no-import-assign":[2],"no-inline-comments":[0],"no-inner-declarations":[2],"no-invalid-regexp":[0],"no-invalid-this":[0],"no-irregular-whitespace":[2],"no-iterator":[2],"no-label-var":[2],"no-labels":[0],"no-lone-blocks":[2],"no-lonely-if":[0],"no-loop-func":[0],"no-loss-of-precision":[2],"no-magic-numbers":[0],"no-misleading-character-class":[2],"no-multi-assign":[0],"no-multi-str":[2],"no-negated-condition":[0],"no-nested-ternary":[0],"no-new":[0],"no-new-func":[0],"no-new-native-nonconstructor":[2],"no-new-wrappers":[2],"no-nonoctal-decimal-escape":[2],"no-obj-calls":[2],"no-object-constructor":[2],"no-octal":[0],"no-octal-escape":[0],"no-param-reassign":[0],"no-plusplus":[0],"no-promise-executor-return":[0],"no-proto":[2],"no-prototype-builtins":[2],"no-redeclare":[2],"no-regex-spaces":[2],"no-restricted-exports":[0],"no-restricted-globals":[2,`self`],"no-restricted-imports":[2,SSe],"no-restricted-properties":[0],"no-restricted-syntax":[2,...xSe],"no-return-assign":[0],"no-script-url":[2],"no-self-assign":[2,{props:!0}],"no-self-compare":[2],"no-sequences":[2],"no-setter-return":[2],"no-shadow":[0],"no-shadow-restricted-names":[2],"no-sparse-arrays":[2],"no-template-curly-in-string":[2],"no-ternary":[0],"no-this-before-super":[2],"no-throw-literal":[0],"no-undef":[2,{typeof:!0}],"no-undef-init":[2],"no-unassigned-vars":[2],"no-undefined":[0],"no-underscore-dangle":[0],"no-unexpected-multiline":[2],"no-unmodified-loop-condition":[2],"no-unneeded-ternary":[0],"no-unreachable":[2],"no-unreachable-loop":[2],"no-unsafe-finally":[2],"no-unsafe-negation":[2],"no-unsafe-optional-chaining":[2],"no-unused-expressions":[0],"no-unused-labels":[2],"no-unused-private-class-members":[0],"no-unused-vars":[0],"no-use-before-define":[0],"no-useless-assignment":[0],"no-useless-backreference":[0],"no-useless-call":[2],"no-useless-catch":[2],"no-useless-computed-key":[2],"no-useless-concat":[0],"no-useless-constructor":[2],"no-useless-escape":[2],"no-useless-rename":[2],"no-useless-return":[0],"no-var":[2],"no-void":[2],"no-warning-comments":[0],"no-with":[0],"object-shorthand":[2,`always`],"one-var":[0],"operator-assignment":[0],"prefer-arrow-callback":[2,{allowNamedFunctions:!0,allowUnboundThis:!0}],"prefer-const":[2,{destructuring:`all`,ignoreReadBeforeAssign:!0}],"prefer-destructuring":[0],"prefer-exponentiation-operator":[2],"prefer-named-capture-group":[0],"prefer-numeric-literals":[2],"prefer-object-has-own":[2],"prefer-object-spread":[2],"prefer-promise-reject-errors":[0],"prefer-regex-literals":[2,{disallowRedundantWrapping:!0}],"prefer-rest-params":[2],"prefer-spread":[2],"prefer-template":[2],"preserve-caught-error":[0],radix:[0],"regexp/confusing-quantifier":[2],"regexp/control-character-escape":[2],"regexp/grapheme-string-literal":[0],"regexp/hexadecimal-escape":[0],"regexp/letter-case":[0],"regexp/match-any":[0],"regexp/negation":[2],"regexp/no-contradiction-with-assertion":[2],"regexp/no-control-character":[0],"regexp/no-dupe-characters-character-class":[2],"regexp/no-dupe-disjunctions":[2],"regexp/no-empty-alternative":[2],"regexp/no-empty-capturing-group":[2],"regexp/no-empty-character-class":[0],"regexp/no-empty-group":[2],"regexp/no-empty-lookarounds-assertion":[2],"regexp/no-empty-string-literal":[2],"regexp/no-escape-backspace":[2],"regexp/no-extra-lookaround-assertions":[0],"regexp/no-invalid-regexp":[2],"regexp/no-invisible-character":[2],"regexp/no-lazy-ends":[2],"regexp/no-legacy-features":[2],"regexp/no-misleading-capturing-group":[2],"regexp/no-misleading-unicode-character":[2],"regexp/no-missing-g-flag":[2],"regexp/no-non-standard-flag":[2],"regexp/no-obscure-range":[2],"regexp/no-octal":[2],"regexp/no-optional-assertion":[2],"regexp/no-potentially-useless-backreference":[2],"regexp/no-standalone-backslash":[2],"regexp/no-super-linear-backtracking":[0],"regexp/no-super-linear-move":[0],"regexp/no-trivially-nested-assertion":[2],"regexp/no-trivially-nested-quantifier":[2],"regexp/no-unused-capturing-group":[0],"regexp/no-useless-assertions":[2],"regexp/no-useless-backreference":[2],"regexp/no-useless-character-class":[0],"regexp/no-useless-dollar-replacements":[2],"regexp/no-useless-escape":[2],"regexp/no-useless-flag":[2],"regexp/no-useless-lazy":[2],"regexp/no-useless-non-capturing-group":[2],"regexp/no-useless-quantifier":[2],"regexp/no-useless-range":[2],"regexp/no-useless-set-operand":[2],"regexp/no-useless-string-literal":[2],"regexp/no-useless-two-nums-quantifier":[2],"regexp/no-zero-quantifier":[2],"regexp/optimal-lookaround-quantifier":[2],"regexp/optimal-quantifier-concatenation":[0],"regexp/prefer-character-class":[0],"regexp/prefer-d":[0],"regexp/prefer-escape-replacement-dollar-char":[0],"regexp/prefer-lookaround":[0],"regexp/prefer-named-backreference":[0],"regexp/prefer-named-capture-group":[0],"regexp/prefer-named-replacement":[0],"regexp/prefer-plus-quantifier":[2],"regexp/prefer-predefined-assertion":[2],"regexp/prefer-quantifier":[0],"regexp/prefer-question-quantifier":[2],"regexp/prefer-range":[2],"regexp/prefer-regexp-exec":[2],"regexp/prefer-regexp-test":[0],"regexp/prefer-result-array-groups":[0],"regexp/prefer-set-operation":[2],"regexp/prefer-star-quantifier":[2],"regexp/prefer-unicode-codepoint-escapes":[2],"regexp/prefer-w":[0],"regexp/require-unicode-regexp":[0],"regexp/require-unicode-sets-regexp":[0],"regexp/simplify-set-operations":[2],"regexp/sort-alternatives":[0],"regexp/sort-character-class-elements":[0],"regexp/sort-flags":[0],"regexp/strict":[2],"regexp/unicode-escape":[0],"regexp/unicode-property":[0],"regexp/use-ignore-case":[0],"require-atomic-updates":[0],"require-await":[0],"require-unicode-regexp":[0],"require-yield":[2],"silverwind/list-spacing":[2,{singleLine:{spacing:`never`},overrides:{"()":`off`,"{}":{singleLine:{spacing:`never`}}}}],"sort-imports":[0],"sort-keys":[0],"sort-vars":[0],strict:[0],"symbol-description":[2],"unicode-bom":[2,`never`],"unicorn/better-dom-traversing":[0],"unicorn/catch-error-name":[0],"unicorn/class-reference-in-static-methods":[2],"unicorn/comma-spacing":[0],"unicorn/comment-content":[0],"unicorn/consistent-arrow-return-style":[0],"unicorn/consistent-assert":[0],"unicorn/consistent-boolean-name":[0],"unicorn/consistent-class-member-order":[0],"unicorn/consistent-compound-words":[0],"unicorn/consistent-conditional-object-spread":[2],"unicorn/consistent-date-clone":[2],"unicorn/consistent-destructuring":[2],"unicorn/consistent-empty-array-spread":[2],"unicorn/consistent-existence-index-check":[0],"unicorn/consistent-export-decorator-position":[2],"unicorn/consistent-function-scoping":[2],"unicorn/consistent-function-style":[2],"unicorn/consistent-json-file-read":[2],"unicorn/consistent-optional-chaining":[2],"unicorn/consistent-template-literal-escape":[2],"unicorn/consistent-tuple-labels":[2],"unicorn/custom-error-definition":[0],"unicorn/default-export-style":[2],"unicorn/dom-node-dataset":[2,{preferAttributes:!0}],"unicorn/empty-brace-spaces":[2],"unicorn/error-message":[0],"unicorn/escape-case":[0],"unicorn/expiring-todo-comments":[0],"unicorn/explicit-length-check":[0],"unicorn/explicit-timer-delay":[2],"unicorn/filename-case":[0],"unicorn/id-match":[2],"unicorn/import-style":[0],"unicorn/indent":[0],"unicorn/isolated-functions":[2,{functions:[]}],"unicorn/iteration-fallback-style":[2,`fallback`],"unicorn/key-name-casing":[0],"unicorn/logical-assignment-operators":[0],"unicorn/max-nested-calls":[0],"unicorn/name-replacements":[0],"unicorn/new-for-builtins":[2],"unicorn/no-abusive-eslint-disable":[0],"unicorn/no-accessor-recursion":[2],"unicorn/no-accidental-bitwise-operator":[2],"unicorn/no-anonymous-default-export":[0],"unicorn/no-array-callback-reference":[0],"unicorn/no-array-concat-in-loop":[2],"unicorn/no-array-fill-with-reference-type":[2],"unicorn/no-array-from-fill":[2],"unicorn/no-array-front-mutation":[0],"unicorn/no-array-method-this-argument":[2],"unicorn/no-array-reduce":[0],"unicorn/no-array-reverse":[0],"unicorn/no-array-sort":[0],"unicorn/no-array-sort-for-min-max":[2],"unicorn/no-array-splice":[0],"unicorn/no-asterisk-prefix-in-documentation-comments":[0],"unicorn/no-async-iterator-callback":[2],"unicorn/no-async-promise-finally":[0],"unicorn/no-await-expression-member":[0],"unicorn/no-await-in-promise-methods":[2],"unicorn/no-barrel-files":[0],"unicorn/no-blob-to-file":[2],"unicorn/no-boolean-sort-comparator":[2],"unicorn/no-break-in-nested-loop":[0],"unicorn/no-canvas-to-image":[2],"unicorn/no-chained-comparison":[2],"unicorn/no-collection-bracket-access":[2],"unicorn/no-computed-property-existence-check":[0],"unicorn/no-conflicting-constraints":[2],"unicorn/no-confusing-array-splice":[2],"unicorn/no-confusing-array-with":[2],"unicorn/no-console-spaces":[0],"unicorn/no-constant-zero-expression":[2],"unicorn/no-declarations-before-early-exit":[0],"unicorn/no-document-cookie":[2],"unicorn/no-double-comparison":[2],"unicorn/no-duplicate-if-branches":[2],"unicorn/no-duplicate-logical-operands":[2],"unicorn/no-duplicate-loops":[0],"unicorn/no-duplicate-set-values":[2],"unicorn/no-empty-file":[0],"unicorn/no-empty-link-text":[0],"unicorn/no-error-property-assignment":[0],"unicorn/no-exports-in-scripts":[2],"unicorn/no-for-each":[2],"unicorn/no-for-loop":[0],"unicorn/no-global-object-property-assignment":[2],"unicorn/no-immediate-mutation":[0],"unicorn/no-impossible-length-comparison":[2],"unicorn/no-incomplete-accessor-override":[2],"unicorn/no-incorrect-query-selector":[2],"unicorn/no-incorrect-template-string-interpolation":[0],"unicorn/no-ineffective-csp-directives":[2],"unicorn/no-instanceof-builtins":[2],"unicorn/no-invalid-argument-count":[2],"unicorn/no-invalid-boolean-attribute-value":[2],"unicorn/no-invalid-character-comparison":[2],"unicorn/no-invalid-dom-token":[2],"unicorn/no-invalid-fetch-options":[2],"unicorn/no-invalid-file-input-accept":[2],"unicorn/no-invalid-integrity":[2],"unicorn/no-invalid-intl-options":[2],"unicorn/no-invalid-property-descriptor":[2],"unicorn/no-invalid-remove-event-listener":[2],"unicorn/no-invalid-response-options":[2],"unicorn/no-invalid-style-set-property":[2],"unicorn/no-invalid-temporal-arithmetic":[2],"unicorn/no-invalid-url-protocol-comparison":[2],"unicorn/no-invalid-well-known-symbol-methods":[2],"unicorn/no-javascript-url":[0],"unicorn/no-keyword-prefix":[0],"unicorn/no-late-current-target-access":[2],"unicorn/no-late-event-control":[2],"unicorn/no-leading-empty-lines":[0],"unicorn/no-lonely-if":[2],"unicorn/no-loop-iterable-mutation":[0],"unicorn/no-loss-of-precision":[0],"unicorn/no-magic-array-flat-depth":[0],"unicorn/no-manually-wrapped-comments":[0],"unicorn/no-mismatched-map-key":[2],"unicorn/no-misrefactored-assignment":[2],"unicorn/no-missing-local-resource":[0],"unicorn/no-multiple-promise-resolver-calls":[2],"unicorn/no-named-default":[2],"unicorn/no-negated-array-predicate":[2],"unicorn/no-negated-comparison":[2],"unicorn/no-negated-condition":[0],"unicorn/no-negation-in-equality-check":[2],"unicorn/no-nested-ternary":[0],"unicorn/no-new-array":[0],"unicorn/no-new-buffer":[2],"unicorn/no-non-function-verb-prefix":[0],"unicorn/no-nonstandard-builtin-properties":[2],"unicorn/no-null":[0],"unicorn/no-object-as-default-parameter":[0],"unicorn/no-object-methods-with-collections":[2],"unicorn/no-optional-chaining-on-undeclared-variable":[2],"unicorn/no-prevent-default-in-passive-listener":[2],"unicorn/no-process-exit":[0],"unicorn/no-redundant-comparison":[2],"unicorn/no-repeated-call-wrappers":[0],"unicorn/no-return-array-push":[2],"unicorn/no-selector-as-dom-name":[2],"unicorn/no-shorthand-property-overrides":[0],"unicorn/no-single-promise-in-promise-methods":[2],"unicorn/no-static-only-class":[2],"unicorn/no-subtraction-comparison":[2],"unicorn/no-thenable":[0],"unicorn/no-this-assignment":[2],"unicorn/no-this-outside-of-class":[0],"unicorn/no-top-level-assignment-in-function":[0],"unicorn/no-top-level-side-effects":[0],"unicorn/no-transition-all":[2],"unicorn/no-typeof-undefined":[2],"unicorn/no-uncalled-method":[2],"unicorn/no-undeclared-class-members":[2],"unicorn/no-unnecessary-array-flat-depth":[2],"unicorn/no-unnecessary-array-flat-map":[2],"unicorn/no-unnecessary-array-splice-count":[2],"unicorn/no-unnecessary-await":[2],"unicorn/no-unnecessary-boolean-comparison":[0],"unicorn/no-unnecessary-default-arguments":[0],"unicorn/no-unnecessary-fetch-options":[0],"unicorn/no-unnecessary-global-this":[0],"unicorn/no-unnecessary-nested-ternary":[2],"unicorn/no-unnecessary-parameters":[0],"unicorn/no-unnecessary-polyfills":[0],"unicorn/no-unnecessary-slice-end":[2],"unicorn/no-unnecessary-splice":[2],"unicorn/no-unnecessary-string-trim":[2],"unicorn/no-unreadable-array-destructuring":[2,{maximumIgnoredElements:0}],"unicorn/no-unreadable-for-of-expression":[0],"unicorn/no-unreadable-iife":[0],"unicorn/no-unreadable-new-expression":[0],"unicorn/no-unreadable-object-destructuring":[0],"unicorn/no-unsafe-buffer-conversion":[2],"unicorn/no-unsafe-dom-html":[0],"unicorn/no-unsafe-json-serialization":[2],"unicorn/no-unsafe-sqlite-interpolation":[2],"unicorn/no-unsafe-promise-all-settled-values":[2],"unicorn/no-unsafe-property-key":[0],"unicorn/no-unsafe-string-replacement":[2],"unicorn/no-unused-builtin-method-return":[2],"unicorn/no-unused-iterator-helper":[2],"unicorn/no-unused-properties":[2],"unicorn/no-url-in-search-params":[2],"unicorn/no-useless-boolean-cast":[2],"unicorn/no-useless-coercion":[2],"unicorn/no-useless-collection-argument":[2],"unicorn/no-useless-compound-assignment":[2],"unicorn/no-useless-concat":[2],"unicorn/no-useless-continue":[2],"unicorn/no-useless-delete-check":[2],"unicorn/no-useless-else":[0],"unicorn/no-useless-error-capture-stack-trace":[2],"unicorn/no-useless-fallback-in-spread":[2],"unicorn/no-useless-iterator-to-array":[2],"unicorn/no-useless-length-check":[2],"unicorn/no-useless-logical-operand":[2],"unicorn/no-useless-override":[2],"unicorn/no-useless-promise-resolve-reject":[2],"unicorn/no-useless-re-export":[2],"unicorn/no-useless-recursion":[0],"unicorn/no-useless-set-construction":[2],"unicorn/no-useless-spread":[2],"unicorn/no-useless-switch-case":[2],"unicorn/no-useless-template-literals":[0],"unicorn/no-useless-undefined":[0],"unicorn/no-using-resource-escape":[2],"unicorn/no-xor-as-exponentiation":[2],"unicorn/no-zero-fractions":[0],"unicorn/number-literal-case":[0],"unicorn/numeric-separators-style":[0],"unicorn/operator-assignment":[2],"unicorn/prefer-abort-signal-any":[2],"unicorn/prefer-abort-signal-timeout":[2],"unicorn/prefer-add-event-listener":[2],"unicorn/prefer-add-event-listener-options":[2],"unicorn/prefer-aggregate-error":[2],"unicorn/prefer-array-find":[0],"unicorn/prefer-array-flat":[2],"unicorn/prefer-array-flat-map":[2],"unicorn/prefer-array-from-async":[2],"unicorn/prefer-array-from-map":[2],"unicorn/prefer-array-from-range":[2],"unicorn/prefer-array-index-of":[2],"unicorn/prefer-array-iterable-methods":[2],"unicorn/prefer-array-last-methods":[2],"unicorn/prefer-array-slice":[2],"unicorn/prefer-array-some":[2],"unicorn/prefer-at":[0],"unicorn/prefer-await":[2],"unicorn/prefer-bigint-literals":[2],"unicorn/prefer-blob-reading-methods":[2],"unicorn/prefer-block-statement-over-iife":[0],"unicorn/prefer-boolean-return":[0],"unicorn/prefer-class-fields":[2],"unicorn/prefer-classlist-toggle":[2],"unicorn/prefer-code-point":[0],"unicorn/prefer-combined-guards":[0],"unicorn/prefer-continue":[0],"unicorn/prefer-date-now":[2],"unicorn/prefer-default-parameters":[0],"unicorn/prefer-direct-iteration":[2],"unicorn/prefer-dispose":[2],"unicorn/prefer-dom-node-append":[2],"unicorn/prefer-dom-node-html-methods":[0],"unicorn/prefer-dom-node-remove":[2],"unicorn/prefer-dom-node-replace-children":[2],"unicorn/prefer-dom-node-text-content":[2],"unicorn/prefer-early-return":[0],"unicorn/prefer-else-if":[2],"unicorn/prefer-error-is-error":[0],"unicorn/prefer-escaped-irregular-whitespace":[2],"unicorn/prefer-event-target":[2],"unicorn/prefer-export-from":[0],"unicorn/prefer-flat-math-min-max":[2],"unicorn/prefer-get-or-insert-computed":[2],"unicorn/prefer-global-number-constants":[2],"unicorn/prefer-global-this":[0],"unicorn/prefer-group-by":[2],"unicorn/prefer-has-check":[2],"unicorn/prefer-hoisting-branch-code":[2],"unicorn/prefer-https":[0],"unicorn/prefer-identifier-import-export-specifiers":[2],"unicorn/prefer-import-meta-properties":[2],"unicorn/prefer-includes":[0],"unicorn/prefer-includes-over-repeated-comparisons":[0],"unicorn/prefer-iterable-in-constructor":[2],"unicorn/prefer-iterator-concat":[0],"unicorn/prefer-iterator-helpers":[2],"unicorn/prefer-iterator-to-array":[2],"unicorn/prefer-iterator-to-array-at-end":[2],"unicorn/prefer-iterator-zip":[0],"unicorn/prefer-json-import":[0],"unicorn/prefer-keyboard-event-key":[2],"unicorn/prefer-literal-ascii":[2],"unicorn/prefer-location-assign":[2],"unicorn/prefer-logical-operator-over-ternary":[0],"unicorn/prefer-map-from-entries":[0],"unicorn/prefer-math-abs":[2],"unicorn/prefer-math-constants":[2],"unicorn/prefer-math-min-max":[2],"unicorn/prefer-math-trunc":[2],"unicorn/prefer-minimal-ternary":[0],"unicorn/prefer-modern-dom-apis":[0],"unicorn/prefer-modern-math-apis":[2],"unicorn/prefer-module":[0],"unicorn/prefer-native-coercion-functions":[2],"unicorn/prefer-negative-index":[2],"unicorn/prefer-node-protocol":[2],"unicorn/prefer-number-coercion":[0],"unicorn/prefer-number-is-safe-integer":[0],"unicorn/prefer-number-properties":[0],"unicorn/prefer-object-define-properties":[2],"unicorn/prefer-object-destructuring-defaults":[2],"unicorn/prefer-object-from-entries":[2],"unicorn/prefer-object-iterable-methods":[2],"unicorn/prefer-observer-apis":[2],"unicorn/prefer-optional-catch-binding":[2],"unicorn/prefer-options-parameter":[0],"unicorn/prefer-path2d":[2],"unicorn/prefer-private-class-fields":[0],"unicorn/prefer-promise-static-methods":[2],"unicorn/prefer-promise-try":[2],"unicorn/prefer-promise-with-resolvers":[2],"unicorn/prefer-prototype-methods":[2],"unicorn/prefer-query-selector":[0],"unicorn/prefer-queue-microtask":[2],"unicorn/prefer-reflect-apply":[0],"unicorn/prefer-regexp-escape":[0],"unicorn/prefer-regexp-exec":[0],"unicorn/prefer-regexp-test":[2],"unicorn/prefer-response-static-json":[2],"unicorn/prefer-scoped-selector":[0],"unicorn/prefer-set-has":[0],"unicorn/prefer-set-methods":[0],"unicorn/prefer-set-size":[2],"unicorn/prefer-short-arrow-method":[2],"unicorn/prefer-short-escape-sequences":[2],"unicorn/prefer-simple-condition-first":[0],"unicorn/prefer-simple-sort-comparator":[0],"unicorn/prefer-simplified-conditions":[0],"unicorn/prefer-single-array-predicate":[2],"unicorn/prefer-single-call":[2],"unicorn/prefer-single-object-destructuring":[2],"unicorn/prefer-single-replace":[2],"unicorn/prefer-smaller-scope":[0],"unicorn/prefer-split-limit":[0],"unicorn/prefer-spread":[0],"unicorn/prefer-string-match-all":[2],"unicorn/prefer-string-pad-start-end":[2],"unicorn/prefer-string-raw":[0],"unicorn/prefer-string-repeat":[2],"unicorn/prefer-string-replace-all":[0],"unicorn/prefer-string-slice":[0],"unicorn/prefer-string-starts-ends-with":[0],"unicorn/prefer-string-trim-start-end":[2],"unicorn/prefer-structured-clone":[2],"unicorn/prefer-switch":[0],"unicorn/prefer-temporal":[0],"unicorn/prefer-temporal-conversion":[2],"unicorn/prefer-ternary":[0],"unicorn/prefer-then-catch":[2],"unicorn/prefer-toggle-attribute":[0],"unicorn/prefer-top-level-await":[0],"unicorn/prefer-type-error":[0],"unicorn/prefer-type-literal-last":[0],"unicorn/prefer-uint8array-base64":[0],"unicorn/prefer-uint8array-hex":[0],"unicorn/prefer-unary-minus":[2],"unicorn/prefer-unicode-code-point-escapes":[0],"unicorn/prefer-url-can-parse":[2],"unicorn/prefer-url-href":[2],"unicorn/prefer-url-search-parameters":[2],"unicorn/prefer-while-loop-condition":[2],"unicorn/relative-url-style":[2],"unicorn/require-array-join-separator":[2],"unicorn/require-array-sort-compare":[0],"unicorn/require-css-escape":[2],"unicorn/require-frontmatter-fields":[0],"unicorn/require-module-attributes":[2],"unicorn/require-module-specifiers":[0],"unicorn/require-number-to-fixed-digits-argument":[2],"unicorn/require-passive-events":[2],"unicorn/require-post-message-target-origin":[0],"unicorn/require-proxy-trap-boolean-return":[2],"unicorn/require-spread-parentheses":[2],"unicorn/require-text-decoder-streaming":[2],"unicorn/single-line-block-comment-style":[0],"unicorn/string-content":[0],"unicorn/switch-case-braces":[0],"unicorn/switch-case-break-position":[2],"unicorn/template-indent":[2],"unicorn/text-encoding-identifier-case":[0],"unicorn/throw-new-error":[2],"unicorn/try-complexity":[0],"use-isnan":[2],"valid-typeof":[2,{requireStringLiterals:!0}],"vars-on-top":[0],yoda:[2,`never`]}},{files:[`**/*.{${Y9.join(`,`)}}`],rules:{"@typescript-eslint/no-redeclare":[0],"@typescript-eslint/no-base-to-string":[0],"@typescript-eslint/only-throw-error":[0],"@typescript-eslint/restrict-template-expressions":[0]}},{files:[`**/*.{${X9.join(`,`)}}`],rules:{"constructor-super":[0],"getter-return":[0],"import-x/export":[0],"import-x/no-extraneous-dependencies":[0],"import-x/no-unresolved":[0],"no-const-assign":[0],"no-dupe-args":[0],"no-dupe-class-members":[0],"no-dupe-keys":[0],"no-func-assign":[0],"no-import-assign":[0],"no-new-native-nonconstructor":[0],"no-obj-calls":[0],"no-redeclare":[0],"no-setter-return":[0],"no-this-before-super":[0],"no-undef":[0],"no-unreachable":[0],"no-unsafe-negation":[0],"valid-typeof":[0]}},{files:[`**/*.d.ts`],rules:{"@typescript-eslint/consistent-type-imports":[0],"@typescript-eslint/no-unused-vars":[0],"no-var":[0]}},{files:[`**/*.worker.${Q9}`,`**/*.sharedworker.${Q9}`],languageOptions:{globals:qP.default.worker},rules:{"no-restricted-globals":[2,`window`]}},{files:[`**/e2e/**/*.test.${Q9}`,`**/*.e2e.${Q9}`],plugins:{playwright:KP},languageOptions:{globals:{...qP.default.nodeBuiltin,...qP.default.browser}},rules:{"@typescript-eslint/no-deprecated":[0],"no-empty-pattern":[0],"playwright/consistent-spacing-between-blocks":[2],"playwright/expect-expect":[0],"playwright/max-expects":[0],"playwright/max-nested-describe":[2],"playwright/missing-playwright-await":[2],"playwright/no-action-timeout":[0],"playwright/no-commented-out-tests":[0],"playwright/no-conditional-expect":[2],"playwright/no-conditional-in-test":[0],"playwright/no-duplicate-hooks":[2],"playwright/no-duplicate-slow":[2],"playwright/no-element-handle":[2],"playwright/no-eval":[2],"playwright/no-export":[2],"playwright/no-focused-test":[2],"playwright/no-force-option":[2],"playwright/no-get-by-title":[0],"playwright/no-hooks":[0],"playwright/no-identical-title":[2],"playwright/no-magic-timeouts":[0],"playwright/no-nested-step":[2],"playwright/no-networkidle":[0],"playwright/no-nth-methods":[0],"playwright/no-page-pause":[2],"playwright/no-raw-locators":[0],"playwright/no-restricted-locators":[0],"playwright/no-restricted-matchers":[0],"playwright/no-restricted-roles":[0],"playwright/no-skipped-test":[2],"playwright/no-slowed-test":[0],"playwright/no-standalone-expect":[2],"playwright/no-template-literal-title":[0],"playwright/no-test-return-statement":[2],"playwright/no-unnecessary-assertions":[2],"playwright/no-unsafe-references":[2],"playwright/no-unused-locators":[2],"playwright/no-useless-await":[2],"playwright/no-useless-not":[2],"playwright/no-wait-for-navigation":[2],"playwright/no-wait-for-selector":[2],"playwright/no-wait-for-timeout":[2],"playwright/prefer-comparison-matcher":[0],"playwright/prefer-ending-with-an-expect":[0],"playwright/prefer-equality-matcher":[0],"playwright/prefer-hooks-in-order":[2],"playwright/prefer-hooks-on-top":[2],"playwright/prefer-locator":[2],"playwright/prefer-lowercase-title":[0],"playwright/prefer-native-locators":[0],"playwright/prefer-strict-equal":[0],"playwright/prefer-to-be":[0],"playwright/prefer-to-contain":[0],"playwright/prefer-to-have-count":[2],"playwright/prefer-to-have-length":[2],"playwright/prefer-web-first-assertions":[2],"playwright/require-annotation-reason":[0],"playwright/require-hook":[0],"playwright/require-soft-assertions":[0],"playwright/require-tags":[0],"playwright/require-to-pass-timeout":[0],"playwright/require-to-throw-message":[0],"playwright/require-top-level-describe":[0],"playwright/valid-describe-callback":[2],"playwright/valid-expect":[2],"playwright/valid-expect-in-promise":[2],"playwright/valid-test-tags":[2],"playwright/valid-title":[2]}},{plugins:wSe,files:[`**/*.${Q9}`],rules:TSe},{plugins:ESe,files:[`**/*.{${bSe.join(`,`)}}`],rules:DSe},{plugins:{vitest:UP,"testing-library":J9},files:[`**/*.test.${Q9}`,`vitest.setup*.${Q9}`,`integration/**/*.${Q9}`],ignores:[`**/e2e/**`,`**/*.e2e.*`],languageOptions:{globals:qP.default.vitest},rules:{"@typescript-eslint/no-deprecated":[0],"react/immutability":[0],"unicorn/consistent-function-scoping":[0],"unicorn/no-global-object-property-assignment":[0],"vitest/consistent-each-for":[0],"vitest/consistent-test-filename":[0],"vitest/consistent-test-it":[0],"vitest/consistent-vitest-vi":[0],"vitest/expect-expect":[0],"vitest/hoisted-apis-on-top":[2],"vitest/max-expects":[0],"vitest/max-nested-describe":[0],"vitest/no-alias-methods":[0],"vitest/no-commented-out-tests":[0],"vitest/no-conditional-expect":[0],"vitest/no-conditional-in-test":[0],"vitest/no-conditional-tests":[0],"vitest/no-disabled-tests":[0],"vitest/no-duplicate-hooks":[0],"vitest/no-focused-tests":[2],"vitest/no-hooks":[0],"vitest/no-identical-title":[2],"vitest/no-import-node-test":[2],"vitest/no-importing-vitest-globals":[0],"vitest/no-interpolation-in-snapshots":[0],"vitest/no-large-snapshots":[0],"vitest/no-mocks-import":[0],"vitest/no-restricted-matchers":[0],"vitest/no-restricted-vi-methods":[0],"vitest/no-standalone-expect":[0],"vitest/no-test-prefixes":[0],"vitest/no-test-return-statement":[0],"vitest/no-unneeded-async-expect-function":[2],"vitest/padding-around-after-all-blocks":[0],"vitest/padding-around-after-each-blocks":[0],"vitest/padding-around-all":[0],"vitest/padding-around-before-all-blocks":[0],"vitest/padding-around-before-each-blocks":[0],"vitest/padding-around-describe-blocks":[0],"vitest/padding-around-expect-groups":[0],"vitest/padding-around-test-blocks":[0],"vitest/prefer-called-exactly-once-with":[0],"vitest/prefer-called-once":[0],"vitest/prefer-called-times":[0],"vitest/prefer-called-with":[0],"vitest/prefer-comparison-matcher":[0],"vitest/prefer-describe-function-title":[0],"vitest/prefer-each":[0],"vitest/prefer-equality-matcher":[0],"vitest/prefer-expect-assertions":[0],"vitest/prefer-expect-resolves":[0],"vitest/prefer-expect-type-of":[0],"vitest/prefer-hooks-in-order":[0],"vitest/prefer-hooks-on-top":[2],"vitest/prefer-import-in-mock":[0],"vitest/prefer-importing-vitest-globals":[0],"vitest/prefer-lowercase-title":[0],"vitest/prefer-mock-promise-shorthand":[0],"vitest/prefer-mock-return-shorthand":[0],"vitest/prefer-snapshot-hint":[0],"vitest/prefer-spy-on":[0],"vitest/prefer-strict-boolean-matchers":[0],"vitest/prefer-strict-equal":[0],"vitest/prefer-to-be":[0],"vitest/prefer-to-be-falsy":[0],"vitest/prefer-to-be-object":[0],"vitest/prefer-to-be-truthy":[0],"vitest/prefer-to-contain":[0],"vitest/prefer-to-have-been-called-times":[0],"vitest/prefer-to-have-length":[0],"vitest/prefer-todo":[0],"vitest/prefer-vi-mocked":[0],"vitest/require-awaited-expect-poll":[2],"vitest/require-hook":[0],"vitest/require-local-test-context-for-concurrent-snapshots":[2],"vitest/require-mock-type-parameters":[0],"vitest/require-test-timeout":[0],"vitest/require-to-throw-message":[0],"vitest/require-top-level-describe":[0],"vitest/unbound-method":[0],"vitest/valid-describe-callback":[2],"vitest/valid-expect":[2],"vitest/valid-expect-in-promise":[2],"vitest/valid-title":[2],"vitest/warn-todo":[0],"testing-library/await-async-events":[2,{eventModule:`userEvent`}],"testing-library/await-async-queries":[2],"testing-library/await-async-utils":[2],"testing-library/consistent-data-testid":[0],"testing-library/no-await-sync-events":[2,{eventModules:[`fire-event`]}],"testing-library/no-await-sync-queries":[2],"testing-library/no-container":[0],"testing-library/no-debugging-utils":[2],"testing-library/no-dom-import":[2,`react`],"testing-library/no-global-regexp-flag-in-query":[2],"testing-library/no-manual-cleanup":[2],"testing-library/no-node-access":[0],"testing-library/no-promise-in-fire-event":[2],"testing-library/no-render-in-lifecycle":[2],"testing-library/no-test-id-queries":[0],"testing-library/no-unnecessary-act":[2],"testing-library/no-wait-for-multiple-assertions":[2],"testing-library/no-wait-for-side-effects":[2],"testing-library/no-wait-for-snapshot":[2],"testing-library/prefer-explicit-assert":[0],"testing-library/prefer-find-by":[2],"testing-library/prefer-implicit-assert":[0],"testing-library/prefer-presence-queries":[2],"testing-library/prefer-query-by-disappearance":[2],"testing-library/prefer-query-matchers":[0],"testing-library/prefer-screen-queries":[2],"testing-library/prefer-user-event":[0],"testing-library/prefer-user-event-setup":[0],"testing-library/render-result-naming-convention":[2]}},{files:[`**/*.test.${Q9}`],rules:{"react/error-boundaries":[0]}},{files:[`**/*.stories.${Q9}`],plugins:{storybook:h7},rules:{"@typescript-eslint/no-deprecated":[0],"react/no-nested-component-definitions":[0],"storybook/await-interactions":[2],"storybook/context-in-play-function":[2],"storybook/csf-component":[0],"storybook/default-exports":[2],"storybook/hierarchy-separator":[2],"storybook/meta-inline-properties":[0],"storybook/meta-satisfies-type":[0],"storybook/no-redundant-story-name":[2],"storybook/no-renderer-packages":[0],"storybook/no-stories-of":[0],"storybook/no-title-property-in-meta":[0],"storybook/no-uninstalled-addons":[0],"storybook/prefer-pascal-case":[2],"storybook/story-exports":[2],"storybook/use-storybook-expect":[2],"storybook/use-storybook-testing-library":[2]}}];export{OSe as default};