@eslint-sukka/react 8.0.1 → 8.0.2
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.
- package/dist/index.cjs +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -398,4 +398,4 @@ If you absolutely need more files included, set parserOptions.projectService.max
|
|
|
398
398
|
`)}return s;function l(){return i.service.openClientFile(n,r.codeFullText,void 0,r.tsconfigRootDir)}}(r,k,E,t,e);return p("Opened project service file: %o",P),p("Retrieving script info and then program for: %s",E),S=e.service.getScriptInfo(E),(x=e.service.getDefaultProjectForFile(S.fileName,!0).getLanguageService(!0).getProgram())?(p("Found project service program for: %s",E),(0,c.createProjectProgram)(t,[x])):void p("Could not find project service program for: %s",E)};let a=i(bl()),o=i(bv()),s=i(xb("node:util")),l=r(ym()),c=Ts(),u=Tc(),_=bT(),d=Tv(),p=(0,a.default)("typescript-eslint:typescript-estree:useProgramFromProjectService"),f=new WeakMap;return SU}(),p=(0,t.default)("typescript-eslint:typescript-estree:parser"),f=new Map,m=new Set,g={};return bx}var xS={};function xx(){var e,t,n,r,i,a,o,s,l,c,u;return o$?v9:(o$=1,e=v9&&v9.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),t=v9&&v9.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)},Object.defineProperty(v9,"__esModule",{value:!0}),v9.withoutProjectParserOptions=v9.version=v9.typescriptVersionIsAtLeast=v9.simpleTraverse=v9.clearCandidateTSConfigRootDirs=v9.addCandidateTSConfigRootDir=v9.parseAndGenerateServices=v9.parse=v9.TSError=v9.createProgram=v9.getCanonicalFileName=void 0,t(function(){if(oz)return be;oz=1,Object.defineProperty(be,"__esModule",{value:!0}),be.clearProgramCache=void 0,be.clearCaches=a;let e=bS(),t=xT(),n=TT(),r=Sj(),i=SI();function a(){(0,n.clearCandidateTSConfigRootDirs)(),(0,t.clearDefaultProjectMatchedFiles)(),(0,t.clearProgramCache)(),(0,e.clearWatchCaches)(),(0,r.clearTSConfigMatchCache)(),(0,r.clearTSServerProjectService)(),(0,i.clearGlobCache)()}return be.clearProgramCache=a,be}(),v9),t(Tr(),v9),n=bT(),Object.defineProperty(v9,"getCanonicalFileName",{enumerable:!0,get:function(){return n.getCanonicalFileName}}),r=T_(),Object.defineProperty(v9,"createProgram",{enumerable:!0,get:function(){return r.createProgramFromConfigFile}}),t(bQ(),v9),i=b4(),Object.defineProperty(v9,"TSError",{enumerable:!0,get:function(){return i.TSError}}),a=xT(),Object.defineProperty(v9,"parse",{enumerable:!0,get:function(){return a.parse}}),Object.defineProperty(v9,"parseAndGenerateServices",{enumerable:!0,get:function(){return a.parseAndGenerateServices}}),o=TT(),Object.defineProperty(v9,"addCandidateTSConfigRootDir",{enumerable:!0,get:function(){return o.addCandidateTSConfigRootDir}}),Object.defineProperty(v9,"clearCandidateTSConfigRootDirs",{enumerable:!0,get:function(){return o.clearCandidateTSConfigRootDirs}}),s=Te(),Object.defineProperty(v9,"simpleTraverse",{enumerable:!0,get:function(){return s.simpleTraverse}}),t(b6(),v9),l=bX(),Object.defineProperty(v9,"typescriptVersionIsAtLeast",{enumerable:!0,get:function(){return l.typescriptVersionIsAtLeast}}),c=SR(),Object.defineProperty(v9,"version",{enumerable:!0,get:function(){return c.version}}),oq||(oq=1,Object.defineProperty(xS,"__esModule",{value:!0}),xS.withoutProjectParserOptions=function(e){let{EXPERIMENTAL_useProjectService:t,project:n,projectService:r,...i}=e;return i}),u=xS,Object.defineProperty(v9,"withoutProjectParserOptions",{enumerable:!0,get:function(){return u.withoutProjectParserOptions}}),v9)}var xE=xx();let xk=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 xP(e,t=!0){if(e.type!==_W.AST_NODE_TYPES.CallExpression||e.callee.type!==_W.AST_NODE_TYPES.MemberExpression||e.callee.property.type!==_W.AST_NODE_TYPES.Identifier)return!1;let n=e.callee.property.name;return"from"===n||t&&n.startsWith("from")}function xC(e,t=!0){if(e.type!==_W.AST_NODE_TYPES.CallExpression||e.callee.type!==_W.AST_NODE_TYPES.MemberExpression||e.callee.property.type!==_W.AST_NODE_TYPES.Identifier)return!1;let n=e.callee.property.name;return"map"===n||t&&n.endsWith("Map")}function xw(t){return null!=t.id?t.id:t.parent.type===_W.AST_NODE_TYPES.VariableDeclarator&&t.parent.id.type===_W.AST_NODE_TYPES.Identifier?t.parent.id:e}let xA=lt(2,(e,t)=>{switch(!0){case e===t:return!0;case e.type!==t.type:return!1;case e.type===_W.AST_NODE_TYPES.Literal&&t.type===_W.AST_NODE_TYPES.Literal:return e.value===t.value;case e.type===_W.AST_NODE_TYPES.TemplateElement&&t.type===_W.AST_NODE_TYPES.TemplateElement:return e.value.raw===t.value.raw;case e.type===_W.AST_NODE_TYPES.TemplateLiteral&&t.type===_W.AST_NODE_TYPES.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--;)if(!xA(e.expressions[n],t.expressions[n]))return!1;return!0}case e.type===_W.AST_NODE_TYPES.Identifier&&t.type===_W.AST_NODE_TYPES.Identifier:case e.type===_W.AST_NODE_TYPES.PrivateIdentifier&&t.type===_W.AST_NODE_TYPES.PrivateIdentifier:return e.name===t.name;case e.type===_W.AST_NODE_TYPES.MemberExpression&&t.type===_W.AST_NODE_TYPES.MemberExpression:return xA(e.property,t.property)&&xA(e.object,t.object);case e.type===_W.AST_NODE_TYPES.JSXAttribute&&t.type===_W.AST_NODE_TYPES.JSXAttribute:if(e.name.name!==t.name.name)return!1;if(null==e.value||null==t.value)return e.value===t.value;return xA(e.value,t.value);case e.type===_W.AST_NODE_TYPES.ThisExpression&&t.type===_W.AST_NODE_TYPES.ThisExpression:return!0;default:return!1}}),xD=h3.ASTUtils.isNodeOfType,xN=h3.ASTUtils.isNodeOfTypes,xF=xN([_W.AST_NODE_TYPES.ArrowFunctionExpression,_W.AST_NODE_TYPES.FunctionDeclaration,_W.AST_NODE_TYPES.FunctionExpression]);xN([_W.AST_NODE_TYPES.ArrowFunctionExpression,_W.AST_NODE_TYPES.FunctionDeclaration,_W.AST_NODE_TYPES.FunctionExpression,_W.AST_NODE_TYPES.TSCallSignatureDeclaration,_W.AST_NODE_TYPES.TSConstructSignatureDeclaration,_W.AST_NODE_TYPES.TSDeclareFunction,_W.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,_W.AST_NODE_TYPES.TSFunctionType,_W.AST_NODE_TYPES.TSMethodSignature]);let xO=xN([_W.AST_NODE_TYPES.ClassDeclaration,_W.AST_NODE_TYPES.ClassExpression]),xI=xN([_W.AST_NODE_TYPES.PropertyDefinition,_W.AST_NODE_TYPES.MethodDefinition]);xN([_W.AST_NODE_TYPES.PropertyDefinition,_W.AST_NODE_TYPES.TSIndexSignature,_W.AST_NODE_TYPES.TSParameterProperty,_W.AST_NODE_TYPES.TSPropertySignature]);let xL=xD(_W.AST_NODE_TYPES.JSXElement);xD(_W.AST_NODE_TYPES.JSXFragment);let xM=xN([_W.AST_NODE_TYPES.JSXIdentifier,_W.AST_NODE_TYPES.JSXMemberExpression,_W.AST_NODE_TYPES.JSXNamespacedName]),xR=xN([_W.AST_NODE_TYPES.JSXAttribute,_W.AST_NODE_TYPES.JSXClosingElement,_W.AST_NODE_TYPES.JSXClosingFragment,_W.AST_NODE_TYPES.JSXElement,_W.AST_NODE_TYPES.JSXEmptyExpression,_W.AST_NODE_TYPES.JSXExpressionContainer,_W.AST_NODE_TYPES.JSXFragment,_W.AST_NODE_TYPES.JSXIdentifier,_W.AST_NODE_TYPES.JSXMemberExpression,_W.AST_NODE_TYPES.JSXNamespacedName,_W.AST_NODE_TYPES.JSXOpeningElement,_W.AST_NODE_TYPES.JSXOpeningFragment,_W.AST_NODE_TYPES.JSXSpreadAttribute,_W.AST_NODE_TYPES.JSXSpreadChild,_W.AST_NODE_TYPES.JSXText]),xj=s7(xN([_W.AST_NODE_TYPES.DoWhileStatement,_W.AST_NODE_TYPES.ForInStatement,_W.AST_NODE_TYPES.ForOfStatement,_W.AST_NODE_TYPES.ForStatement,_W.AST_NODE_TYPES.WhileStatement]),xN([_W.AST_NODE_TYPES.IfStatement,_W.AST_NODE_TYPES.SwitchStatement])),xY=s7(xj,xN([_W.AST_NODE_TYPES.LogicalExpression,_W.AST_NODE_TYPES.ConditionalExpression])),xU=xN([_W.AST_NODE_TYPES.TSAsExpression,_W.AST_NODE_TYPES.TSTypeAssertion,_W.AST_NODE_TYPES.TSNonNullExpression,_W.AST_NODE_TYPES.TSSatisfiesExpression,_W.AST_NODE_TYPES.TSInstantiationExpression]),xB=xN([_W.AST_NODE_TYPES.TSAsExpression,_W.AST_NODE_TYPES.TSTypeAssertion,_W.AST_NODE_TYPES.TSNonNullExpression,_W.AST_NODE_TYPES.TSSatisfiesExpression]);function xV(e,t=" "){if(e.type===_W.AST_NODE_TYPES.Literal){var n;return"regex"in e?"RegExp literal":`${null===(n=e.value)?"null":typeof n} literal`}return xR(e)?`JSX ${vZ(v5(function(e,t,n=""){return e.replace("JSX",n)}(e.type,0,""),t))}`:vZ(v5(e.type,t))}function xJ(e,t){switch(e.type){case _W.AST_NODE_TYPES.Identifier:case _W.AST_NODE_TYPES.JSXIdentifier:case _W.AST_NODE_TYPES.PrivateIdentifier:return e.name;case _W.AST_NODE_TYPES.MemberExpression:case _W.AST_NODE_TYPES.JSXMemberExpression:return`${xJ(e.object,t)}.${xJ(e.property,t)}`;case _W.AST_NODE_TYPES.JSXNamespacedName:return`${e.namespace.name}:${e.name.name}`;case _W.AST_NODE_TYPES.JSXText:return e.value;case _W.AST_NODE_TYPES.Literal:return e.raw;default:return t(e)}}function xz(e){return xU(e)?xz(e.expression):e}function xq(e){return xz(e).type===_W.AST_NODE_TYPES.ThisExpression}function x$(t,n){if(null==t)return e;let r=t.parent;for(;null!=r&&r.type!==_W.AST_NODE_TYPES.Program;){if(n(r))return r;r=r.parent}return e}function xW(e){let t=[],n=xF(e)?e:x$(e,xF);return xE.simpleTraverse(e,{enter(e){e.type!==_W.AST_NODE_TYPES.ReturnStatement||x$(e,xF)===n&&t.push(e)}}),t}function xK(e){let t=xD(e);return function(n){let r=xK(e),i=[];if(t(n)&&i.push(n),"arguments"in n){let t=n.arguments.map(xK(e)).flat(1);i.push(...t)}if("expression"in n&&!0!==n.expression&&!1!==n.expression){let e=r(n.expression);i.push(...e)}if("left"in n){let e=r(n.left);i.push(...e)}if("right"in n){let e=r(n.right);i.push(...e)}if("test"in n&&null!=n.test){let e=r(n.test);i.push(...e)}if("consequent"in n){let e=Array.isArray(n.consequent)?n.consequent.map(r).flat(1):r(n.consequent);i.push(...e)}if("alternate"in n&&null!=n.alternate){let e=Array.isArray(n.alternate)?n.alternate.map(r).flat(1):r(n.alternate);i.push(...e)}if("elements"in n){let t=n.elements.filter(e=>null!=e).map(xK(e)).flat(1);i.push(...t)}if("properties"in n){let e=n.properties.map(r).flat(1);i.push(...e)}if("expressions"in n){let e=n.expressions.map(r).flat(1);i.push(...e)}if(n.type===_W.AST_NODE_TYPES.Property){let e=r(n.value);i.push(...e)}if(n.type===_W.AST_NODE_TYPES.SpreadElement){let e=r(n.argument);i.push(...e)}if(n.type===_W.AST_NODE_TYPES.MemberExpression){let e=r(n.object);i.push(...e)}if(n.type===_W.AST_NODE_TYPES.UnaryExpression){let e=r(n.argument);i.push(...e)}if(n.type===_W.AST_NODE_TYPES.ChainExpression){let e=r(n.expression);i.push(...e)}if(n.type===_W.AST_NODE_TYPES.TSNonNullExpression){let e=r(n.expression);i.push(...e)}if(n.type===_W.AST_NODE_TYPES.TSAsExpression){let e=r(n.expression);i.push(...e)}if(n.type===_W.AST_NODE_TYPES.TSSatisfiesExpression){let e=r(n.expression);i.push(...e)}return i}}let xH=xK(_W.AST_NODE_TYPES.NewExpression),xG=xK(_W.AST_NODE_TYPES.CallExpression);function xX(t){switch(!0){case"id"in t&&null!=t.id:return t.id;case t.parent.type===_W.AST_NODE_TYPES.VariableDeclarator&&t.parent.init===t&&t.parent.id.type===_W.AST_NODE_TYPES.Identifier:return t.parent.id;case t.parent.type===_W.AST_NODE_TYPES.AssignmentExpression&&t.parent.right===t&&"="===t.parent.operator&&t.parent.left.type===_W.AST_NODE_TYPES.Identifier:return t.parent.left;case t.parent.type===_W.AST_NODE_TYPES.Property&&t.parent.value===t&&!t.parent.computed&&t.parent.key.type===_W.AST_NODE_TYPES.Identifier:case xI(t.parent)&&t.parent.value===t&&t.parent.key.type===_W.AST_NODE_TYPES.Identifier:return t.parent.key;case t.parent.type===_W.AST_NODE_TYPES.AssignmentPattern&&t.parent.right===t&&t.parent.left.type===_W.AST_NODE_TYPES.Identifier:return t.parent.left;case xB(t.parent):return xX(t.parent)}return e}function xQ(t){if(t.type===_W.AST_NODE_TYPES.FunctionDeclaration)return[t];let{parent:n}=t;switch(!0){case n.type===_W.AST_NODE_TYPES.VariableDeclarator:return[n.parent,n,t];case n.type===_W.AST_NODE_TYPES.CallExpression&&n.parent.type===_W.AST_NODE_TYPES.VariableDeclarator:return[n.parent.parent,n.parent,n,t];case n.type===_W.AST_NODE_TYPES.CallExpression&&n.parent.type===_W.AST_NODE_TYPES.CallExpression&&n.parent.parent.type===_W.AST_NODE_TYPES.VariableDeclarator:case n.type===_W.AST_NODE_TYPES.Property&&n.parent.type===_W.AST_NODE_TYPES.ObjectExpression&&n.parent.parent.type===_W.AST_NODE_TYPES.VariableDeclarator:return[n.parent.parent.parent,n.parent.parent,n.parent,n,t];case n.type===_W.AST_NODE_TYPES.MethodDefinition&&n.parent.parent.type===_W.AST_NODE_TYPES.ClassDeclaration:case n.type===_W.AST_NODE_TYPES.PropertyDefinition&&n.parent.parent.type===_W.AST_NODE_TYPES.ClassDeclaration:return[n.parent.parent,n.parent,n,t]}return e}function xZ(e,t){return t.some(t=>{if(t.type!==_W.AST_NODE_TYPES.CallExpression)return!1;let{callee:n}=t;return n.type===_W.AST_NODE_TYPES.Identifier?n.name===e:n.type===_W.AST_NODE_TYPES.MemberExpression&&"name"in n.property&&n.property.name===e})}function x0(e,t){if(e.type!==_W.AST_NODE_TYPES.Literal)return!1;switch(t){case"boolean":return"boolean"==typeof e.value;case"null":return null===e.value;case"number":return"number"==typeof e.value;case"regexp":return"regex"in e;case"string":return"string"==typeof e.value}}let x1="AssignmentExpression[operator='='][left.type='MemberExpression'][left.property.name='displayName']";function x2(e){return null!=e&&e.type===_W.AST_NODE_TYPES.MemberExpression&&e.object.type===_W.AST_NODE_TYPES.MemberExpression&&e.object.object.type===_W.AST_NODE_TYPES.Identifier&&"process"===e.object.object.name&&e.object.property.type===_W.AST_NODE_TYPES.Identifier&&"env"===e.object.property.name&&e.property.type===_W.AST_NODE_TYPES.Identifier&&"NODE_ENV"===e.property.name}function x3(e){return e.callee.type===_W.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===_W.AST_NODE_TYPES.Identifier&&"then"===e.callee.property.name}function x6(t){return xU(t)?x6(xz(t)):t.type===_W.AST_NODE_TYPES.Identifier||t.type===_W.AST_NODE_TYPES.PrivateIdentifier?t.name:t.type===_W.AST_NODE_TYPES.Literal?String(t.value):t.type===_W.AST_NODE_TYPES.TemplateLiteral&&0===t.expressions.length?t.quasis[0]?.value.raw:e}function x4(e){var t;return null!=e&&xF(e)&&e.parent.type===_W.AST_NODE_TYPES.CallExpression&&null!=(t=e.parent.callee)&&t.type===_W.AST_NODE_TYPES.MemberExpression&&t.object.type===_W.AST_NODE_TYPES.Identifier&&"vi"===t.object.name&&t.property.type===_W.AST_NODE_TYPES.Identifier&&"mock"===t.property.name&&e.parent.arguments[1]===e}var x8=hX(),x5=d9();function x7(t,n){if(null==t)return e;let r=t.defs.at(n);if(null==r)return e;switch(!0){case r.type===x8.DefinitionType.FunctionName&&r.node.type===_W.AST_NODE_TYPES.FunctionDeclaration:case r.type===x8.DefinitionType.ClassName&&r.node.type===_W.AST_NODE_TYPES.ClassDeclaration:return r.node;case"init"in r.node&&null!=r.node.init&&!("declarations"in r.node.init):return r.node.init;default:return e}}function x9(t,n){if(null==t)return e;let r=x7(t,n);if(null!=r)return r;let i=t.defs.at(n);return i?.type===x8.DefinitionType.Parameter&&xF(i.node)?i.node:e}let Ee={None:0n,StrictCallExpression:1n<<0n};function Et(t,n,r=Ee.None){if(null==t)return e;switch(t.type){case _W.AST_NODE_TYPES.JSXElement:case _W.AST_NODE_TYPES.JSXFragment:return{kind:"JSXElement",node:t};case _W.AST_NODE_TYPES.ArrayExpression:return{kind:"ArrayExpression",node:t};case _W.AST_NODE_TYPES.ObjectExpression:return{kind:"ObjectExpression",node:t};case _W.AST_NODE_TYPES.ClassExpression:return{kind:"ClassExpression",node:t};case _W.AST_NODE_TYPES.NewExpression:return{kind:"NewExpression",node:t};case _W.AST_NODE_TYPES.FunctionExpression:case _W.AST_NODE_TYPES.ArrowFunctionExpression:return{kind:"FunctionExpression",node:t};case _W.AST_NODE_TYPES.CallExpression:if(r&Ee.StrictCallExpression)return{kind:"CallExpression",node:t};return e;case _W.AST_NODE_TYPES.MemberExpression:if(!("object"in t))return e;return Et(t.object,n,r);case _W.AST_NODE_TYPES.AssignmentExpression:case _W.AST_NODE_TYPES.AssignmentPattern:if(!("right"in t))return e;return Et(t.right,n,r);case _W.AST_NODE_TYPES.LogicalExpression:if(null==Et(t.left,n,r))return e;return Et(t.right,n,r);case _W.AST_NODE_TYPES.ConditionalExpression:if(null==Et(t.consequent,n,r))return e;return Et(t.alternate,n,r);case _W.AST_NODE_TYPES.Identifier:if(!("name"in t)||"string"!=typeof t.name)return e;return Et(x7(n.set.get(t.name),-1),n,r);case _W.AST_NODE_TYPES.Literal:if("regex"in t)return{kind:"RegExpLiteral",node:t};return e;default:if(!("expression"in t)||"object"!=typeof t.expression)return e;return Et(t.expression,n,r)}}function En(t,n){if(null==t)return e;switch(!0){case t.type===_W.AST_NODE_TYPES.VariableDeclarator&&t.init===n:return t.id;case t.type===_W.AST_NODE_TYPES.AssignmentExpression&&t.right===n:return t.left;case t.type===_W.AST_NODE_TYPES.BlockStatement||t.type===_W.AST_NODE_TYPES.Program||t.parent===t:return e;default:return En(t.parent,t)}}let Er=lt(2,(t,n)=>null==t?e:x5.findVariable(n,t)??e);function Ei(e,t,n,r=new Set){return t.findLast(t=>{if(t.type===_W.AST_NODE_TYPES.Property)return"name"in t.key&&t.key.name===e;if(t.type===_W.AST_NODE_TYPES.SpreadElement)switch(t.argument.type){case _W.AST_NODE_TYPES.Identifier:{if(r.has(t.argument.name))return!1;let i=x7(Er(t.argument.name,n),0);if(i?.type===_W.AST_NODE_TYPES.ObjectExpression)return r.add(t.argument.name),null!=Ei(e,i.properties,n,r);break}case _W.AST_NODE_TYPES.ObjectExpression:return null!=Ei(e,t.argument.properties,n,r)}return!1})}function Ea(e){let t=[e];for(let n of e.childScopes)t.push(...Ea(n));return t}let Eo=[_W.AST_NODE_TYPES.FunctionDeclaration,_W.AST_NODE_TYPES.FunctionExpression,_W.AST_NODE_TYPES.ClassBody,_W.AST_NODE_TYPES.Program];function Es(e,t,n){let[r,i]=n;switch(!0){case e===t:return!0;case e.type===_W.AST_NODE_TYPES.Literal&&t.type===_W.AST_NODE_TYPES.Literal:return e.value===t.value;case e.type===_W.AST_NODE_TYPES.TemplateElement&&t.type===_W.AST_NODE_TYPES.TemplateElement:return e.value.cooked===t.value.cooked;case e.type===_W.AST_NODE_TYPES.Identifier&&t.type===_W.AST_NODE_TYPES.Identifier:{let n=Er(e,r),a=Er(t,i),o=x9(n,0),s=x9(a,0),l=o?.parent,c=s?.parent,u=n?.defs.at(0),_=a?.defs.at(0),d=u?.parent?.parent,p=_?.parent?.parent;switch(!0){case l?.type===_W.AST_NODE_TYPES.CallExpression&&c?.type===_W.AST_NODE_TYPES.CallExpression&&xF(o)&&xF(s):{if(!xA(l.callee,c.callee))return!1;let n=o.params,r=s.params,i=n.findIndex(t=>xA(t,e)),a=r.findIndex(e=>xA(e,t));return -1!==i&&-1!==a&&i===a}case d?.type===_W.AST_NODE_TYPES.ForOfStatement&&p?.type===_W.AST_NODE_TYPES.ForOfStatement:{let e=d.left,t=p.left;if(e.type!==t.type)return!1;return xA(d.right,p.right)}default:return null!=n&&null!=a&&n===a}}case e.type===_W.AST_NODE_TYPES.MemberExpression&&t.type===_W.AST_NODE_TYPES.MemberExpression:return xA(e.property,t.property)&&Es(e.object,t.object,n);case e.type===_W.AST_NODE_TYPES.ThisExpression&&t.type===_W.AST_NODE_TYPES.ThisExpression:if(r.block===i.block)return!0;return x$(e,xN(Eo))===x$(t,xN(Eo));default:{let n=x5.getStaticValue(e,r),a=x5.getStaticValue(t,i);return null!=n&&null!=a&&n.value===a.value}}}var El=s2(function(){if(oK)return oW;oK=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i={},a={BiRecord:()=>l,default:()=>s,reverse:()=>c};for(var o in a)e(i,o,{get:a[o],enumerable:!0});function s(e){return new l(e)}oW=((i,a,o,s)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let l of n(a))r.call(i,l)||l===o||e(i,l,{get:()=>a[l],enumerable:!(s=t(a,l))||s.enumerable});return i})(e({},"__esModule",{value:!0}),i);var l=class{constructor(e,t=c(e)){this.original=e,this.reversed=t}get(e){return this.original[e]??this.reversed[e]}has(e){return e in this.original||e in this.reversed}};function c(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[t,e]))}return oW}());function Ec(e){return lt(2,(t,n)=>{if(null==n)return!1;let r=xJ(n,e=>t.sourceCode.getText(e));return r===e||r.substring(r.indexOf(".")+1)===e})}function Eu(e){return lt(2,(t,n)=>null!=n&&n.type===_W.AST_NODE_TYPES.CallExpression&&Ec(e)(t,n.callee))}Ec("captureOwnerStack");let E_=Ec("Children.count"),Ed=Ec("Children.forEach"),Ep=Ec("Children.map"),Ef=Ec("Children.only"),Em=Ec("Children.toArray");Ec("cloneElement"),Ec("createContext"),Ec("createElement"),Ec("createRef"),Ec("forwardRef"),Ec("memo"),Ec("lazy");let Eg=Eu("captureOwnerStack");Eu("Children.count"),Eu("Children.forEach"),Eu("Children.map"),Eu("Children.only");let Eh=Eu("Children.toArray"),Ey=Eu("cloneElement"),Ev=Eu("createContext"),Eb=Eu("createElement"),ET=Eu("createRef"),ES=Eu("forwardRef"),Ex=Eu("memo"),EE=Eu("lazy");function Ek(e){return"use"===e||/^use[A-Z0-9]/.test(e)}function EP(e){return null!=e&&e.type===_W.AST_NODE_TYPES.CallExpression&&(e.callee.type===_W.AST_NODE_TYPES.Identifier?Ek(e.callee.name):e.callee.type===_W.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===_W.AST_NODE_TYPES.Identifier&&Ek(e.callee.property.name))}function EC(e){return null==e||e.type!==_W.AST_NODE_TYPES.CallExpression?li:t=>{switch(e.callee.type){case _W.AST_NODE_TYPES.Identifier:return e.callee.name===t;case _W.AST_NODE_TYPES.MemberExpression:return e.callee.property.type===_W.AST_NODE_TYPES.Identifier&&e.callee.property.name===t;default:return!1}}}function Ew(e){if(null==e||e.type!==_W.AST_NODE_TYPES.CallExpression)return!1;switch(e.callee.type){case _W.AST_NODE_TYPES.Identifier:return/^use\w*Effect$/u.test(e.callee.name);case _W.AST_NODE_TYPES.MemberExpression:return e.callee.property.type===_W.AST_NODE_TYPES.Identifier&&/^use\w*Effect$/u.test(e.callee.property.name);default:return!1}}let EA=la(EC)("use"),ED=la(EC)("useCallback"),EN=la(EC)("useContext"),EF=la(EC)("useMemo"),EO=la(EC)("useState");function EI(e){return null!=e&&e.parent?.type===_W.AST_NODE_TYPES.CallExpression&&e.parent.arguments.at(0)===e&&Ew(e.parent)}function EL(e){if(null==e)return!1;let t=x$(e,xD(_W.AST_NODE_TYPES.ReturnStatement)),n=x$(e,xF);return n===x$(t,xF)&&EI(n)}function EM(e){switch(e.type){case _W.AST_NODE_TYPES.JSXIdentifier:return e.name;case _W.AST_NODE_TYPES.JSXNamespacedName:return`${e.namespace.name}:${e.name.name}`;case _W.AST_NODE_TYPES.JSXMemberExpression:return`${EM(e.object)}.${EM(e.property)}`;case _W.AST_NODE_TYPES.JSXText:return e.value;case _W.AST_NODE_TYPES.JSXOpeningElement:return`<${EM(e.name)}>`;case _W.AST_NODE_TYPES.JSXClosingElement:return`</${EM(e.name)}>`;case _W.AST_NODE_TYPES.JSXOpeningFragment:return"<>";case _W.AST_NODE_TYPES.JSXClosingFragment:return"</>"}}function ER(e,t,n){let r=n??e.sourceCode.getScope(t),i=t.openingElement.attributes;return e=>i.findLast(t=>{if(t.type===_W.AST_NODE_TYPES.JSXAttribute)return EM(t.name)===e;switch(t.argument.type){case _W.AST_NODE_TYPES.Identifier:{let n=x7(Er(t.argument.name,r),0);if(n?.type===_W.AST_NODE_TYPES.ObjectExpression)return null!=Ei(e,n.properties,r);break}case _W.AST_NODE_TYPES.ObjectExpression:return null!=Ei(e,t.argument.properties,r)}return!1})}function Ej(t,n){let r=t.sourceCode.getScope(n);switch(n.type){case _W.AST_NODE_TYPES.JSXAttribute:if(null==n.value)return{kind:"boolean",toStatic:()=>!0};switch(n.value.type){case _W.AST_NODE_TYPES.Literal:{let e=n.value.value;return{kind:"literal",node:n.value,toStatic:()=>e}}case _W.AST_NODE_TYPES.JSXExpressionContainer:{let e=n.value.expression;return{kind:"expression",node:e,toStatic:()=>x5.getStaticValue(e,r)?.value}}case _W.AST_NODE_TYPES.JSXElement:return{kind:"element",node:n.value,toStatic:()=>e};case _W.AST_NODE_TYPES.JSXSpreadChild:return{kind:"spreadChild",node:n.value.expression,toStatic:()=>e}}return;case _W.AST_NODE_TYPES.JSXSpreadAttribute:return{kind:"spreadProps",node:n.argument,toStatic:t=>null==t?e:ll.match(x5.getStaticValue(n.argument,r)?.value).with({[t]:ll.P.select(ll.P.any)},le).otherwise(()=>e)}}}function EY(e){let t=e.sourceCode.parserServices?.program?.getCompilerOptions()??{};return{jsx:t.jsx??4,jsxFactory:t.jsxFactory??"React.createElement",jsxFragmentFactory:t.jsxFragmentFactory??"React.Fragment",jsxImportSource:t.jsxImportSource??"react"}}let EU=new WeakMap;function EB(e){return lo(EU,e.sourceCode,()=>{let t,n,r,i,a={};if(!e.sourceCode.text.includes("@jsx"))return a;for(let a of e.sourceCode.getAllComments().reverse()){let e=a.value;t??=e.match(_w)?.[1],n??=e.match(_A)?.[1],r??=e.match(_D)?.[1],i??=e.match(_N)?.[1]}return null!=t&&(a.jsxFactory=t),null!=n&&(a.jsxFragmentFactory=n),null!=r&&(a.jsx="classic"===r?2:4),null!=i&&(a.jsxImportSource=i),a})}let EV={None:0n,SkipUndefined:1n<<0n,SkipNullLiteral:1n<<1n,SkipBooleanLiteral:1n<<2n,SkipStringLiteral:1n<<3n,SkipNumberLiteral:1n<<4n,SkipBigIntLiteral:1n<<5n,SkipEmptyArray:1n<<6n,SkipCreateElement:1n<<7n,StrictArray:1n<<8n,StrictLogical:1n<<9n,StrictConditional:1n<<10n},EJ=0n|EV.SkipUndefined|EV.SkipBooleanLiteral;function Ez(e){return null!=e&&(e.type===_W.AST_NODE_TYPES.JSXText||e.type===_W.AST_NODE_TYPES.Literal)}function Eq(e,t,n=EJ){if(null==t)return!1;if(xR(t))return!0;switch(t.type){case _W.AST_NODE_TYPES.Literal:switch(typeof t.value){case"boolean":return!(n&EV.SkipBooleanLiteral);case"string":return!(n&EV.SkipStringLiteral);case"number":return!(n&EV.SkipNumberLiteral);case"bigint":return!(n&EV.SkipBigIntLiteral)}if(null==t.value)return!(n&EV.SkipNullLiteral);break;case _W.AST_NODE_TYPES.TemplateLiteral:return!(n&EV.SkipStringLiteral);case _W.AST_NODE_TYPES.ArrayExpression:if(0===t.elements.length)return!(n&EV.SkipEmptyArray);if(n&EV.StrictArray)return t.elements.every(t=>Eq(e,t,n));return t.elements.some(t=>Eq(e,t,n));case _W.AST_NODE_TYPES.LogicalExpression:if(n&EV.StrictLogical)return Eq(e,t.left,n)&&Eq(e,t.right,n);return Eq(e,t.left,n)||Eq(e,t.right,n);case _W.AST_NODE_TYPES.ConditionalExpression:function r(t){return Array.isArray(t.consequent)?0===t.consequent.length?!(n&EV.SkipEmptyArray):n&EV.StrictArray?t.consequent.every(t=>Eq(e,t,n)):t.consequent.some(t=>Eq(e,t,n)):Eq(e,t.consequent,n)}function i(t){return Eq(e,t.alternate,n)}if(n&EV.StrictConditional)return r(t)&&i(t);return r(t)||i(t);case _W.AST_NODE_TYPES.SequenceExpression:return Eq(e,t.expressions.at(-1),n);case _W.AST_NODE_TYPES.CallExpression:if(n&EV.SkipCreateElement)break;switch(t.callee.type){case _W.AST_NODE_TYPES.Identifier:return"createElement"===t.callee.name;case _W.AST_NODE_TYPES.MemberExpression:return t.callee.property.type===_W.AST_NODE_TYPES.Identifier&&"createElement"===t.callee.property.name}break;case _W.AST_NODE_TYPES.Identifier:{let{name:r}=t;if("undefined"===r)return!(n&EV.SkipUndefined);if(xM(t))return!0;let i=Er(r,e.getScope(t)),a=i&&x7(i,0);return!!a&&Eq(e,a,n)}}return!1}function E$(e,t){return t.type===_W.AST_NODE_TYPES.JSXFragment?"":EM(t.openingElement.name)}function EW(e,t){return t.type===_W.AST_NODE_TYPES.JSXElement&&t.openingElement.name.type===_W.AST_NODE_TYPES.JSXIdentifier&&/^[a-z]/u.test(t.openingElement.name.name)}function EK(e,t){return t.type===_W.AST_NODE_TYPES.JSXElement&&"Fragment"===E$(e,t).split(".").at(-1)}let EH={...EV,SkipArrayMapArgument:1n<<66n,SkipObjectMethod:1n<<67n,SkipClassMethod:1n<<68n,SkipClassProperty:1n<<69n},EG=0n|EH.SkipBooleanLiteral|EH.SkipEmptyArray|EH.SkipArrayMapArgument|EH.SkipNumberLiteral|EH.SkipStringLiteral|EH.SkipUndefined|EH.StrictArray|EH.StrictConditional|EH.StrictLogical;function EX(e){if("superClass"in e&&null!=e.superClass){let t=/^(?:Pure)?Component$/u;switch(!0){case e.superClass.type===_W.AST_NODE_TYPES.Identifier:return t.test(e.superClass.name);case e.superClass.type===_W.AST_NODE_TYPES.MemberExpression&&e.superClass.property.type===_W.AST_NODE_TYPES.Identifier:return t.test(e.superClass.property.name)}}return!1}function EQ(e){return xI(e)&&e.key.type===_W.AST_NODE_TYPES.Identifier&&e.key.name.startsWith("render")&&e.parent.parent.type===_W.AST_NODE_TYPES.ClassDeclaration}let EZ={classMethod:{type:ll.P.union(_W.AST_NODE_TYPES.ArrowFunctionExpression,_W.AST_NODE_TYPES.FunctionExpression),parent:_W.AST_NODE_TYPES.MethodDefinition},classProperty:{type:ll.P.union(_W.AST_NODE_TYPES.ArrowFunctionExpression,_W.AST_NODE_TYPES.FunctionExpression),parent:_W.AST_NODE_TYPES.Property},objectMethod:{type:ll.P.union(_W.AST_NODE_TYPES.ArrowFunctionExpression,_W.AST_NODE_TYPES.FunctionExpression),parent:{type:_W.AST_NODE_TYPES.Property,parent:{type:_W.AST_NODE_TYPES.ObjectExpression}}}};function E0(e,t,n){let r;if(null!=(r=t.parent)&&r.type===_W.AST_NODE_TYPES.CallExpression&&Eb(e,r)&&r.arguments.slice(2).some(e=>e===t)||EQ(t.parent)&&EX(t.parent.parent.parent)||n&EH.SkipObjectMethod&&ll.isMatching(EZ.objectMethod)(t)||n&EH.SkipClassMethod&&ll.isMatching(EZ.classMethod)(t)||n&EH.SkipClassProperty&&ll.isMatching(EZ.classProperty)(t)||n&EH.SkipArrayMapArgument&&xC(t.parent))return!1;let i=x$(t,xN([_W.AST_NODE_TYPES.JSXExpressionContainer,_W.AST_NODE_TYPES.ArrowFunctionExpression,_W.AST_NODE_TYPES.FunctionExpression,_W.AST_NODE_TYPES.Property,_W.AST_NODE_TYPES.ClassBody]));return null==i||i.type!==_W.AST_NODE_TYPES.JSXExpressionContainer}function E1(t,n){switch(!0){case t.type===_W.AST_NODE_TYPES.VariableDeclarator&&t.init===n:return t.id;case t.type===_W.AST_NODE_TYPES.AssignmentExpression&&t.right===n:return t.left;case t.type===_W.AST_NODE_TYPES.PropertyDefinition&&t.value===n:return t.key;case t.type===_W.AST_NODE_TYPES.BlockStatement||t.type===_W.AST_NODE_TYPES.Program||t.parent===t:return e;default:return E1(t.parent,t)}}function E2(e,t,n){if("react"===e.toLowerCase())return!0;let r=Er(e,n)?.defs.at(-1);if(null==r)return!1;let{node:i,parent:a}=r;if(i.type===_W.AST_NODE_TYPES.VariableDeclarator&&null!=i.init){let{init:e}=i;if(e.type===_W.AST_NODE_TYPES.MemberExpression&&e.object.type===_W.AST_NODE_TYPES.Identifier)return E2(e.object.name,t,n);if(e.type===_W.AST_NODE_TYPES.Identifier)return E2(e.name,t,n);let r=function e(t){return ll.match(t).with({type:_W.AST_NODE_TYPES.CallExpression,arguments:ll.P.select(),callee:{type:_W.AST_NODE_TYPES.Identifier,name:"require"}},le).with({type:_W.AST_NODE_TYPES.MemberExpression,object:ll.P.select()},e).otherwise(()=>null)}(e)?.[0];return null!=r&&!!x0(r,"string")&&(r.value===t||r.value.startsWith(`${t}/`))}return a?.type===_W.AST_NODE_TYPES.ImportDeclaration&&a.source.value===t}function E3(e,t,n){return xA(t,n)||Es(t,n,[e.sourceCode.getScope(t),e.sourceCode.getScope(n)])}function E6(e,t){return t.type===_W.AST_NODE_TYPES.CallExpression&&(t.type===_W.AST_NODE_TYPES.CallExpression&&(Ex(e,t)||ES(e,t))||ED(t))}function E4(t,n){let r=xX(n);if(null!=r)return r;let{parent:i}=n;return i.type===_W.AST_NODE_TYPES.CallExpression&&E6(t,i)&&i.parent.type===_W.AST_NODE_TYPES.VariableDeclarator&&i.parent.id.type===_W.AST_NODE_TYPES.Identifier?i.parent.id:i.type===_W.AST_NODE_TYPES.CallExpression&&E6(t,i)&&i.parent.type===_W.AST_NODE_TYPES.CallExpression&&E6(t,i.parent)&&i.parent.parent.type===_W.AST_NODE_TYPES.VariableDeclarator&&i.parent.parent.id.type===_W.AST_NODE_TYPES.Identifier?i.parent.parent.id:e}let E8={None:0n,PureComponent:1n<<0n,Memo:1n<<2n,ForwardRef:1n<<3n};function E5(e){let t=E8.None;return null!=e&&xZ("memo",e)&&(t|=E8.Memo),null!=e&&xZ("forwardRef",e)&&(t|=E8.ForwardRef),t}function E7(e){return _O.test(e)}function E9(t){return null==t?e:Array.isArray(t)?t.map(e=>e.name).join("."):t.name}function ke(e,t){let n=E4(e,t);if(null==n)return!0;let r=Array.isArray(n)?n.at(-1)?.name:n.name;return null!=r&&E7(r)}function kt(t,n={}){let{collectDisplayName:r=!1,collectHookCalls:i=!1,hint:a=EG}=n,o=new Map,s=[],l=()=>s.at(-1);return{ctx:{getAllComponents:e=>o,getCurrentEntries:()=>[...s],getCurrentEntry:l},listeners:{":function[type]":e=>{let t=_h();s.push({key:t,node:e,hookCalls:[],isComponent:!1})},":function[type]:exit":()=>{let e=s.at(-1);if(null==e)return;if(!e.isComponent)return s.pop();let n=xW(e.node.body);for(let r=n.length-1;r>=0;r--){let i=n[r];if(null!=i&&t.sourceCode.getScope(i).block===e.node&&null!=i.argument&&!Eq(t.sourceCode,i.argument,a)){o.delete(e.key);break}}return s.pop()},"ArrowFunctionExpression[body.type!='BlockStatement']"(){let n=l();if(null==n)return;let{body:r}=n.node;if(!(ke(t,n.node)&&Eq(t.sourceCode,r,a)&&E0(t,n.node,a)))return;let i=xQ(n.node),s=E4(t,n.node),c=E9(s),u=_h();o.set(u,{id:s,key:u,kind:"function",name:c,node:n.node,displayName:e,flag:E5(i),hint:a,hookCalls:n.hookCalls,initPath:i})},...r?{[x1](t){let{left:n,right:r}=t;if(n.type!==_W.AST_NODE_TYPES.MemberExpression)return;let i=n.object.type===_W.AST_NODE_TYPES.Identifier?n.object.name:e,a=[...o.values()].findLast(({name:e})=>null!=e&&e===i);null!=a&&(a.displayName=r)}}:{},...i?{"CallExpression[type]:exit"(e){if(!EP(e))return;let t=l();null!=t&&t.hookCalls.push(e)}}:{},"ReturnStatement[type]"(n){let r=l();if(null==r||!(ke(t,r.node)&&Eq(t.sourceCode,n.argument,a)&&E0(t,r.node,a)))return;r.isComponent=!0;let i=xQ(r.node),s=E4(t,r.node),c=E9(s);o.set(r.key,{id:s,key:r.key,kind:"function",name:c,node:r.node,displayName:e,flag:E5(i),hint:a,hookCalls:r.hookCalls,initPath:i})}}}}function kn(){let t=new Map,n=n=>{if(!EX(n))return;let r=xw(n),i=_h(),a=!function(e){if("superClass"in e&&null!=e.superClass){let t=/^PureComponent$/u;switch(!0){case e.superClass.type===_W.AST_NODE_TYPES.Identifier:return t.test(e.superClass.name);case e.superClass.type===_W.AST_NODE_TYPES.MemberExpression&&e.superClass.property.type===_W.AST_NODE_TYPES.Identifier:return t.test(e.superClass.property.name)}}return!1}(n)?E8.None:E8.PureComponent;t.set(i,{id:r,key:i,kind:"class",name:r?.name,node:n,displayName:e,flag:a,hint:0n,methods:[]})};return{ctx:{getAllComponents:e=>t},listeners:{"ClassDeclaration[type]":n,"ClassExpression[type]":n}}}function kr(e,t){return function(n){return xI(n)&&n.static===t&&n.key.type===_W.AST_NODE_TYPES.Identifier&&n.key.name===e}}let ki=kr("componentDidCatch",!1),ka=kr("componentDidMount",!1),ko=kr("componentDidUpdate",!1),ks=kr("componentWillMount",!1),kl=kr("componentWillReceiveProps",!1),kc=kr("componentWillUnmount",!1),ku=kr("componentWillUpdate",!1),k_=kr("UNSAFE_componentWillMount",!1),kd=kr("UNSAFE_componentWillReceiveProps",!1),kp=kr("UNSAFE_componentWillUpdate",!1),kf=kr("getDerivedStateFromProps",!0),km=kr("getDerivedStateFromError",!0);function kg(e){return xF(e)&&ka(e.parent)&&e.parent.value===e}function kh(e){return xF(e)&&kc(e.parent)&&e.parent.value===e}let ky=El({mount:"unmount",setup:"cleanup"}),kv=lt(2,(e,t)=>ky.get(e)===t);function kb(e){return ll.match(e).when(EI,()=>"setup").when(EL,()=>"cleanup").when(kg,()=>"mount").when(kh,()=>"unmount").otherwise(()=>null)}function kT(e){let t=e=>e.type===_W.AST_NODE_TYPES.Property&&e.key.type===_W.AST_NODE_TYPES.Identifier&&e.key.name.startsWith("render");return t(e)||null!=e.parent&&t(e.parent)}function kS(e){let{callee:t}=e;return t.type===_W.AST_NODE_TYPES.MemberExpression&&xq(t.object)&&t.property.type===_W.AST_NODE_TYPES.Identifier&&"setState"===t.property.name}function kx(e){let{left:t}=e;return t.type===_W.AST_NODE_TYPES.MemberExpression&&xq(t.object)&&"state"===x6(t.property)}let kE=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,kk=e=>{if("string"!=typeof e)throw TypeError("Invalid argument expected string");let t=e.match(kE);if(!t)throw Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},kP=e=>"*"===e||"x"===e||"X"===e,kC=e=>{let t=parseInt(e,10);return isNaN(t)?e:t},kw=(e,t)=>{let n,r;if(kP(e)||kP(t))return 0;let[i,a]=typeof(n=kC(e))!=typeof(r=kC(t))?[String(n),String(r)]:[n,r];return i>a?1:i<a?-1:0},kA=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){let r=kw(e[n]||"0",t[n]||"0");if(0!==r)return r}return 0},kD=(e,t,n)=>{let r,i,a,o,s;kO(n);let l=(r=kk(e),i=kk(t),a=r.pop(),o=i.pop(),0!==(s=kA(r,i))?s:a&&o?kA(a.split("."),o.split(".")):a||o?a?-1:1:0);return kN[n].includes(l)},kN={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},kF=Object.keys(kN),kO=e=>{if("string"!=typeof e)throw TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(-1===kF.indexOf(e))throw Error(`Invalid operator, expected one of ${kF.join("|")}`)};var kI={},kL={},kM={};function kR(){return oH||(oH=1,Object.defineProperty(kM,"__esModule",{value:!0}),kM.isSymbolFromDefaultLibrary=function(e,t){if(!t)return!1;for(let n of t.getDeclarations()??[]){let t=n.getSourceFile();if(e.isSourceFileDefaultLibrary(t))return!0}return!1}),kM}var kj={},kY={};function kU(){if(oX)return kY;oX=1;var e,t=kY&&kY.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),n=kY&&kY.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=kY&&kY.__importStar||(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})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(kY,"__esModule",{value:!0}),kY.getTypeFlags=s,kY.isTypeFlagSet=function(e,t,n){let r=s(e);return!!n&&!!(r&o)||(r&t)!=0};let i=r(b7),a=r(ym()),o=a.TypeFlags.Any|a.TypeFlags.Unknown;function s(e){let t=0;for(let n of i.unionConstituents(e))t|=n.flags;return t}return kY}var kB={},kV={},kJ={},kz={},kq={},k$={},kW={},kK={};function kH(){if(o4)return kK;function e(e,t,n,r){var i;if(!r||!((i=r).startsWith("__@")||i.startsWith("__#")))return e.getTypeOfPropertyOfType(t,n);let a=t.getProperties().find(e=>e.escapedName===r);return a?e.getDeclaredTypeOfSymbol(a):void 0}return o4=1,Object.defineProperty(kK,"__esModule",{value:!0}),kK.getTypeOfPropertyOfName=e,kK.getTypeOfPropertyOfType=function(t,n,r){return e(t,n,r.getName(),r.getEscapedName())},kK}var kG={},kX={},kQ={},kZ={},k0={};function k1(){if(se)return kG;se=1;var e,t=kG&&kG.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),n=kG&&kG.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=kG&&kG.__importStar||(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})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(kG,"__esModule",{value:!0}),kG.valueMatchesSomeSpecifier=kG.typeMatchesSomeSpecifier=kG.typeOrValueSpecifiersSchema=void 0,kG.typeMatchesSpecifier=u,kG.valueMatchesSpecifier=_;let i=_$(),a=r(b7),o=(o8||(o8=1,Object.defineProperty(kX,"__esModule",{value:!0}),kX.specifierNameMatches=function(e,t){"string"==typeof t&&(t=[t]);let n=e.aliasSymbol??e.getSymbol(),r=n?[n.escapedName,e.intrinsicName]:[e.intrinsicName];return!!t.some(e=>r.includes(e))}),kX),s=function(){if(o5)return kQ;o5=1;var e=kQ&&kQ.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(kQ,"__esModule",{value:!0}),kQ.typeDeclaredInFile=function(e,r,i){if(null==e){let e=(0,t.getCanonicalFileName)(i.getCurrentDirectory());return r.some(n=>(0,t.getCanonicalFileName)(n.fileName).startsWith(e))}let a=(0,t.getCanonicalFileName)(n.default.join(i.getCurrentDirectory(),e));return r.some(e=>(0,t.getCanonicalFileName)(e.fileName)===a)};let t=xx(),n=e(bv());return kQ}(),l=(o7||(o7=1,Object.defineProperty(kZ,"__esModule",{value:!0}),kZ.typeDeclaredInLib=function(e,t){return 0===e.length||e.some(e=>t.isSourceFileDefaultLibrary(e))}),kZ),c=function(){if(o9)return k0;o9=1;var e,t=k0&&k0.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),n=k0&&k0.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=k0&&k0.__importStar||(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})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(k0,"__esModule",{value:!0}),k0.typeDeclaredInPackageDeclarationFile=function(e,t,n,r){let a,o;return t.some(t=>(function e(t){switch(t.kind){case i.SyntaxKind.ModuleDeclaration:if(t.flags&i.NodeFlags.Namespace)break;return i.isStringLiteral(t.name)?t:void 0;case i.SyntaxKind.SourceFile:return}return e(t.parent)})(t)?.name.text===e)||(a=e.replace(/^@([^/]+)\//,"$1__"),o=RegExp(`${e}|${a}`),n.some(e=>{let t=r.sourceFileToPackageName.get(e.path);return null!=t&&o.test(t)&&r.isSourceFileFromExternalLibrary(e)}))};let i=r(ym());return k0}();function u(e,t,n){return a.isUnionType(e)?e.types.every(e=>u(e,t,n)):!!((()=>{if(a.isIntrinsicErrorType(e))return!1;if("string"==typeof t)return(0,o.specifierNameMatches)(e,t);if(!(0,o.specifierNameMatches)(e,t.name))return!1;let r=e.getSymbol()??e.aliasSymbol,i=r?.getDeclarations()??[],u=i.map(e=>e.getSourceFile());switch(t.from){case"file":return(0,s.typeDeclaredInFile)(t.path,u,n);case"lib":return(0,l.typeDeclaredInLib)(u,n);case"package":return(0,c.typeDeclaredInPackageDeclarationFile)(t.package,i,u,n)}})()||a.isIntersectionType(e)&&a.intersectionConstituents(e).some(e=>u(e,t,n)))}function _(e,t,n,r){let a,o=e.type===i.AST_NODE_TYPES.Identifier||e.type===i.AST_NODE_TYPES.JSXIdentifier||e.type===i.AST_NODE_TYPES.PrivateIdentifier?e.name:e.type===i.AST_NODE_TYPES.Literal&&"string"==typeof e.value?e.value:void 0;if(!o)return!1;if("string"==typeof t)return t===o;if(!("string"==typeof(a=t.name)?[a]:a).includes(o))return!1;if("package"===t.from){let e=r.getSymbol()??r.aliasSymbol,i=e?.getDeclarations()??[],a=i.map(e=>e.getSourceFile());return(0,c.typeDeclaredInPackageDeclarationFile)(t.package,i,a,n)}return!0}return kG.typeOrValueSpecifiersSchema={items:{oneOf:[{type:"string"},{additionalProperties:!1,properties:{from:{enum:["file"],type:"string"},name:{oneOf:[{type:"string"},{items:{type:"string"},minItems:1,type:"array",uniqueItems:!0}]},path:{type:"string"}},required:["from","name"],type:"object"},{additionalProperties:!1,properties:{from:{enum:["lib"],type:"string"},name:{oneOf:[{type:"string"},{items:{type:"string"},minItems:1,type:"array",uniqueItems:!0}]}},required:["from","name"],type:"object"},{additionalProperties:!1,properties:{from:{enum:["package"],type:"string"},name:{oneOf:[{type:"string"},{items:{type:"string"},minItems:1,type:"array",uniqueItems:!0}]},package:{type:"string"}},required:["from","name","package"],type:"object"}]},type:"array"},kG.typeMatchesSomeSpecifier=(e,t=[],n)=>t.some(t=>u(e,t,n)),kG.valueMatchesSomeSpecifier=(e,t=[],n,r)=>t.some(t=>_(e,t,n,r)),kG}var k2={},k3={};function k6(){if(sn)return k3;sn=1;var e,t=k3&&k3.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),n=k3&&k3.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=k3&&k3.__importStar||(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})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i}),i=k3&&k3.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(k3,"__esModule",{value:!0}),k3.isNullableType=function(e){return(0,l.isTypeFlagSet)(e,s.TypeFlags.Any|s.TypeFlags.Unknown|s.TypeFlags.Null|s.TypeFlags.Undefined|s.TypeFlags.Void)},k3.isTypeArrayTypeOrUnionOfArrayTypes=function(e,t){for(let n of o.unionConstituents(e))if(!t.isArrayType(n))return!1;return!0},k3.isTypeNeverType=function(e){return(0,l.isTypeFlagSet)(e,s.TypeFlags.Never)},k3.isTypeUnknownType=u,k3.isTypeReferenceType=function(e){return(e.flags&d)!=0&&(e.objectFlags&s.ObjectFlags.Reference)!=0},k3.isTypeAnyType=p,k3.isTypeAnyArrayType=function(e,t){return t.isArrayType(e)&&p(t.getTypeArguments(e)[0])},k3.isTypeUnknownArrayType=function(e,t){return t.isArrayType(e)&&u(t.getTypeArguments(e)[0])},k3.typeIsOrHasBaseType=function(e,t){let n=t.getSymbol();if(!e.getSymbol()||!n)return!1;let r=[e],i=e.getBaseTypes();for(let e of(i&&r.push(...i),r)){let t=e.getSymbol();if(t&&t.name===n.name)return!0}return!1},k3.isTypeBigIntLiteralType=function(e){return(0,l.isTypeFlagSet)(e,s.TypeFlags.BigIntLiteral)},k3.isTypeTemplateLiteralType=function(e){return(0,l.isTypeFlagSet)(e,s.TypeFlags.TemplateLiteral)};let a=i(bl()),o=r(b7),s=r(ym()),l=kU(),c=(0,a.default)("typescript-eslint:type-utils:predicates");function u(e){return(0,l.isTypeFlagSet)(e,s.TypeFlags.Unknown)}let _=s.TypeFlags.Undefined|s.TypeFlags.Null,d=s.TypeFlags.Any|_|s.TypeFlags.Never|s.TypeFlags.Object|s.TypeFlags.Union|s.TypeFlags.Intersection;function p(e){return!!(0,l.isTypeFlagSet)(e,s.TypeFlags.Any)&&("error"===e.intrinsicName&&c('Found an "error" any type'),!0)}return k3}var k4={},k8={},k5=function(){var e,t,n;return so?kI:(so=1,e=kI&&kI.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),t=kI&&kI.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)},Object.defineProperty(kI,"__esModule",{value:!0}),kI.typescriptVersionIsAtLeast=kI.getModifiers=kI.getDecorators=void 0,t(function(){if(oG)return kL;oG=1;var e,t=kL&&kL.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),n=kL&&kL.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=kL&&kL.__importStar||(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})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(kL,"__esModule",{value:!0}),kL.isPromiseLike=function(e,t){return u(e,t,"Promise")},kL.isPromiseConstructorLike=function(e,t){return u(e,t,"PromiseConstructor")},kL.isErrorLike=s,kL.isReadonlyErrorLike=function e(t,n){return l(t,n,n=>{let[r]=n.aliasTypeArguments;return s(t,r)||e(t,r)})},kL.isReadonlyTypeLike=l,kL.isBuiltinTypeAliasLike=c,kL.isBuiltinSymbolLike=u,kL.isBuiltinSymbolLikeRecurser=_;let i=r(b7),a=r(ym()),o=kR();function s(e,t){return u(e,t,"Error")}function l(e,t,n){return c(e,t,e=>"Readonly"===e.aliasSymbol.getName()&&!!n?.(e))}function c(e,t,n){return _(e,t,t=>{let{aliasSymbol:r,aliasTypeArguments:i}=t;return!!r&&!!i&&(!!((0,o.isSymbolFromDefaultLibrary)(e,r)&&n(t))||null)})}function u(e,t,n){return _(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,o.isSymbolFromDefaultLibrary)(e,r))||null})}function _(e,t,n){if(t.isIntersection())return t.types.some(t=>_(e,t,n));if(t.isUnion())return t.types.every(t=>_(e,t,n));if(i.isTypeParameter(t)){let r=t.getConstraint();return!!r&&_(e,r,n)}let r=n(t);if("boolean"==typeof r)return r;let o=t.getSymbol();if(o&&o.flags&(a.SymbolFlags.Class|a.SymbolFlags.Interface)){for(let r of e.getTypeChecker().getBaseTypes(t))if(_(e,r,n))return!0}return!1}return kL}(),kI),t(function(){if(oQ)return kj;oQ=1;var e,t=kj&&kj.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),n=kj&&kj.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=kj&&kj.__importStar||(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})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(kj,"__esModule",{value:!0}),kj.containsAllTypesByName=function e(t,n,r,s=!1){if((0,o.isTypeFlagSet)(t,a.TypeFlags.Any|a.TypeFlags.Unknown))return!n;i.isTypeReference(t)&&(t=t.target);let l=t.getSymbol();if(l&&r.has(l.name))return!0;let c=t=>e(t,n,r,s);if(i.isUnionOrIntersectionType(t))return s?t.types.some(c):t.types.every(c);let u=t.getBaseTypes();return null!=u&&(s?u.some(c):u.length>0&&u.every(c))};let i=r(b7),a=r(ym()),o=kU();return kj}(),kI),t((oZ||(oZ=1,Object.defineProperty(kB,"__esModule",{value:!0}),kB.getConstrainedTypeAtLocation=function(e,t){let n=e.getTypeAtLocation(t);return e.program.getTypeChecker().getBaseConstraintOfType(n)??n}),kB),kI),t(function(){if(o0)return kV;o0=1;var e,t=kV&&kV.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),n=kV&&kV.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=kV&&kV.__importStar||(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})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(kV,"__esModule",{value:!0}),kV.getContextualType=function(e,t){let n=t.parent;if(i.isCallExpression(n)||i.isNewExpression(n)){if(t===n.expression)return}else if(i.isVariableDeclaration(n)||i.isPropertyDeclaration(n)||i.isParameter(n))return n.type?e.getTypeFromTypeNode(n.type):void 0;else if(i.isJsxExpression(n))return e.getContextualType(n);else if(i.isIdentifier(t)&&(i.isPropertyAssignment(n)||i.isShorthandPropertyAssignment(n)));else if(i.isBinaryExpression(n)&&n.operatorToken.kind===i.SyntaxKind.EqualsToken&&n.right===t)return e.getTypeAtLocation(n.left);else if(![i.SyntaxKind.JsxExpression,i.SyntaxKind.TemplateSpan].includes(n.kind))return;return e.getContextualType(t)};let i=r(ym());return kV}(),kI),t((o1||(o1=1,Object.defineProperty(kJ,"__esModule",{value:!0}),kJ.getDeclaration=function(e,t){let n=e.getSymbolAtLocation(t);if(!n)return null;let r=n.getDeclarations();return r?.[0]??null}),kJ),kI),t(function(){if(o2)return kz;o2=1;var e,t=kz&&kz.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),n=kz&&kz.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=kz&&kz.__importStar||(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})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(kz,"__esModule",{value:!0}),kz.getSourceFileOfNode=function(e){for(;e.kind!==i.SyntaxKind.SourceFile;)e=e.parent;return e};let i=r(ym());return kz}(),kI),t(function(){if(o3)return kq;o3=1;var e,t=kq&&kq.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),n=kq&&kq.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=kq&&kq.__importStar||(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})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(kq,"__esModule",{value:!0}),kq.getTypeName=function e(t,n){if((n.flags&i.TypeFlags.StringLike)!=0)return"string";if((n.flags&i.TypeFlags.TypeParameter)!=0){let r=n.getSymbol(),a=r?.getDeclarations(),o=a?.[0];if(null!=o&&i.isTypeParameterDeclaration(o)&&null!=o.constraint)return e(t,t.getTypeFromTypeNode(o.constraint))}return n.isUnion()&&n.types.map(n=>e(t,n)).every(e=>"string"===e)||n.isIntersection()&&n.types.map(n=>e(t,n)).some(e=>"string"===e)?"string":t.typeToString(n)};let i=r(ym());return kq}(),kI),t(kR(),kI),t(function(){if(o6)return k$;o6=1;var e,t=k$&&k$.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),n=k$&&k$.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=k$&&k$.__importStar||(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})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(k$,"__esModule",{value:!0}),k$.isTypeBrandedLiteralLike=function(e){return e.isUnion()?e.types.every(o):o(e)};let i=r(b7),a=r(ym());function o(e){if(!e.isIntersection())return!1;let t=!1,n=!1;for(let r of e.types)if(!r.getCallSignatures().length&&!r.getConstructSignatures().length&&i.isObjectType(r))n=!0;else{if(!(r.isLiteral()||i.isTypeFlagSet(r,a.TypeFlags.BigInt|a.TypeFlags.Number|a.TypeFlags.String|a.TypeFlags.TemplateLiteral)))return!1;t=!0}return n&&t}return k$}(),kI),t((st||(st=1,!function(e){var t,n,r,i=kW&&kW.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),a=kW&&kW.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=kW&&kW.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var r=t(e),o=0;o<r.length;o++)"default"!==r[o]&&i(n,e,r[o]);return a(n,e),n});Object.defineProperty(e,"__esModule",{value:!0}),e.readonlynessOptionsDefaults=e.readonlynessOptionsSchema=void 0,e.isTypeReadonly=function(t,n,i=e.readonlynessOptionsDefaults){return f(t,n,i,new Set)===r.Readonly};let s=h2(),l=o(b7),c=o(ym()),u=kH(),_=k1();function d(e){return Object.hasOwn(e,"symbol")}function p(e,t,n,i){let a=e.getTypeChecker();function o(o){let s=a.getIndexInfoOfType(t,o);return s?s.isReadonly?s.type===t||i.has(s.type)?r.Readonly:f(e,s.type,n,i):r.Mutable:r.UnknownType}let _=t.getProperties();if(_.length){for(let e of _){if(n.treatMethodsAsReadonly){if(null!=e.valueDeclaration&&d(e.valueDeclaration)&&l.isSymbolFlagSet(e.valueDeclaration.symbol,c.SymbolFlags.Method))continue;let t=e.getDeclarations(),n=null!=t&&t.length>0?t[t.length-1]:void 0;if(null!=n&&d(n)&&l.isSymbolFlagSet(n.symbol,c.SymbolFlags.Method))continue}if(l.isPropertyReadonlyInType(t,e.getEscapedName(),a))continue;let i=c.getNameOfDeclaration(e.valueDeclaration);if(!(i&&c.isPrivateIdentifier(i)))return r.Mutable}for(let o of _){let l=s.ESLintUtils.nullThrows((0,u.getTypeOfPropertyOfType)(a,t,o),s.ESLintUtils.NullThrowsReasons.MissingToken(`property "${o.name}"`,"type"));if(!i.has(l)&&f(e,l,n,i)===r.Mutable)return r.Mutable}}let p=o(c.IndexKind.String);if(p===r.Mutable)return p;let m=o(c.IndexKind.Number);return m===r.Mutable?m:r.Readonly}function f(e,t,n,i){let a=e.getTypeChecker();if(i.add(t),(0,_.typeMatchesSomeSpecifier)(t,n.allow,e))return r.Readonly;if(l.isUnionType(t))return l.unionConstituents(t).every(t=>i.has(t)||f(e,t,n,i)===r.Readonly)?r.Readonly:r.Mutable;if(l.isIntersectionType(t)){if(t.types.some(e=>a.isArrayType(e)||a.isTupleType(e)))return t.types.every(t=>i.has(t)||f(e,t,n,i)===r.Readonly)?r.Readonly:r.Mutable;let o=p(e,t,n,i);if(o!==r.UnknownType)return o}if(l.isConditionalType(t))return[t.root.node.trueType,t.root.node.falseType].map(a.getTypeFromTypeNode).every(t=>i.has(t)||f(e,t,n,i)===r.Readonly)?r.Readonly:r.Mutable;if(!l.isObjectType(t)||t.getCallSignatures().length>0&&0===t.getProperties().length)return r.Readonly;let o=function(e,t,n,i){let a=e.getTypeChecker();function o(t){let o=a.getTypeArguments(t);return 0===o.length?r.Readonly:o.some(t=>f(e,t,n,i)===r.Mutable)?r.Mutable:r.Readonly}return a.isArrayType(t)?"Array"===s.ESLintUtils.nullThrows(t.getSymbol(),s.ESLintUtils.NullThrowsReasons.MissingToken("symbol","array type")).getEscapedName()?r.Mutable:o(t):a.isTupleType(t)?t.target.readonly?o(t):r.Mutable:r.UnknownType}(e,t,n,i);if(o!==r.UnknownType)return o;let c=p(e,t,n,i);if(c!==r.UnknownType)return c;throw Error("Unhandled type")}(n=r||(r={}))[n.UnknownType=1]="UnknownType",n[n.Mutable=2]="Mutable",n[n.Readonly=3]="Readonly",e.readonlynessOptionsSchema={additionalProperties:!1,properties:{allow:_.typeOrValueSpecifiersSchema,treatMethodsAsReadonly:{type:"boolean"}},type:"object"},e.readonlynessOptionsDefaults={allow:[],treatMethodsAsReadonly:!1}}(kW)),kW),kI),t(function(){if(sr)return k2;sr=1;var e,t=k2&&k2.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),n=k2&&k2.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=k2&&k2.__importStar||(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})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(k2,"__esModule",{value:!0}),k2.isUnsafeAssignment=function(e,t,n,r){return function e(t,n,r,s,l){if((0,o.isTypeAnyType)(t)){if((0,o.isTypeUnknownType)(n))return!1;if(!(0,o.isTypeAnyType)(n))return{receiver:n,sender:t}}let c=l.get(t);if(c){if(c.has(n))return!1;c.add(n)}else l.set(t,new Set([n]));if(a.isTypeReference(t)&&a.isTypeReference(n)){if(t.target!==n.target||s?.type===i.AST_NODE_TYPES.NewExpression&&s.callee.type===i.AST_NODE_TYPES.Identifier&&"Map"===s.callee.name&&0===s.arguments.length&&null==s.typeArguments)return!1;let a=t.typeArguments??[],o=n.typeArguments??[];for(let i=0;i<a.length;i+=1)if(e(a[i],o[i],r,s,l))return{receiver:n,sender:t}}return!1}(e,t,n,r,new Map)};let i=h2(),a=r(b7),o=k6();return k2}(),kI),t(k6(),kI),t(kH(),kI),t(function(){if(si)return k4;si=1;var e,t=k4&&k4.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),n=k4&&k4.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=k4&&k4.__importStar||(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})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(k4,"__esModule",{value:!0}),k4.requiresQuoting=function(e,t=i.ScriptTarget.ESNext){if(0===e.length||!i.isIdentifierStart(e.charCodeAt(0),t))return!0;for(let n=1;n<e.length;n+=1)if(!i.isIdentifierPart(e.charCodeAt(n),t))return!0;return!1};let i=r(ym());return k4}(),kI),t(kU(),kI),t(k1(),kI),t(function(){if(sa)return k8;sa=1;var e,t,n,r=k8&&k8.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(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){void 0===r&&(r=n),e[r]=t[n]}),i=k8&&k8.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=k8&&k8.__importStar||(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})(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var a=e(t),o=0;o<a.length;o++)"default"!==a[o]&&r(n,t,a[o]);return i(n,t),n});Object.defineProperty(k8,"__esModule",{value:!0}),k8.AnyType=void 0,k8.discriminateAnyType=function(e,t,r,i){return function e(t,r,i,a,l){if(l.has(t))return n.Safe;if(l.add(t),(0,s.isTypeAnyType)(t))return n.Any;if((0,s.isTypeAnyArrayType)(t,r))return n.AnyArray;for(let s of o.typeConstituents(t))if(o.isThenableType(r,a,s)){let t=r.getAwaitedType(s);if(t&&e(t,r,i,a,l)===n.Any)return n.PromiseAny}return n.Safe}(e,t,r,i,new Set)};let o=a(b7),s=k6();return(t=n||(k8.AnyType=n={}))[t.Any=0]="Any",t[t.PromiseAny=1]="PromiseAny",t[t.AnyArray=2]="AnyArray",t[t.Safe=3]="Safe",k8}(),kI),n=xx(),Object.defineProperty(kI,"getDecorators",{enumerable:!0,get:function(){return n.getDecorators}}),Object.defineProperty(kI,"getModifiers",{enumerable:!0,get:function(){return n.getModifiers}}),Object.defineProperty(kI,"typescriptVersionIsAtLeast",{enumerable:!0,get:function(){return n.typescriptVersionIsAtLeast}}),kI)}(),k7={};function k9(){if(sl)return ss;sl=1;let e="[^\\\\/]",t="[^/]",n="(?:\\/|$)",r="(?:^|\\/)",i=`\\.{1,2}${n}`,a=`(?!${r}${i})`,o=`(?!\\.{0,1}${n})`,s=`(?!${i})`,l=`${t}*?`,c={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:t,END_ANCHOR:n,DOTS_SLASH:i,NO_DOT:"(?!\\.)",NO_DOTS:a,NO_DOT_SLASH:o,NO_DOTS_SLASH:s,QMARK_NO_DOT:"[^.\\/]",STAR:l,START_ANCHOR:r,SEP:"/"},u={...c,SLASH_LITERAL:"[\\\\/]",QMARK:e,STAR:`${e}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"};return ss={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?u:c}}function Pe(){return sc||(sc=1,!function(e){let{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=k9();e.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),e.hasRegexChars=e=>r.test(e),e.isRegexChar=t=>1===t.length&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(i,"\\$1"),e.toPosixSlashes=e=>e.replace(t,"/"),e.isWindows=()=>{if("undefined"!=typeof navigator&&navigator.platform){let e=navigator.platform.toLowerCase();return"win32"===e||"windows"===e}return"undefined"!=typeof process&&!!process.platform&&"win32"===process.platform},e.removeBackslashes=e=>e.replace(n,e=>"\\"===e?"":e),e.escapeLast=(t,n,r)=>{let i=t.lastIndexOf(n,r);return -1===i?t:"\\"===t[i-1]?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},e.wrapOutput=(e,t={},n={})=>{let r=n.contains?"":"^",i=n.contains?"":"$",a=`${r}(?:${e})${i}`;return!0===t.negated&&(a=`(?:^(?!${a}).*$)`),a},e.basename=(e,{windows:t}={})=>{let n=e.split(t?/[\\/]/:"/"),r=n[n.length-1];return""===r?n[n.length-2]:r}}(k7)),k7}var Pt=s2(function(){if(sh)return sg;sh=1;let e=function(){if(sm)return sf;sm=1;let e=function(){if(s_)return su;s_=1;let e=Pe(),{CHAR_ASTERISK:t,CHAR_AT:n,CHAR_BACKWARD_SLASH:r,CHAR_COMMA:i,CHAR_DOT:a,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:s,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:c,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:_,CHAR_QUESTION_MARK:d,CHAR_RIGHT_CURLY_BRACE:p,CHAR_RIGHT_PARENTHESES:f,CHAR_RIGHT_SQUARE_BRACKET:m}=k9(),g=e=>e===s||e===r,h=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};return su=(y,b)=>{let T,S,x=b||{},E=y.length-1,k=!0===x.parts||!0===x.scanToEnd,P=[],C=[],w=[],A=y,D=-1,N=0,F=0,O=!1,I=!1,L=!1,M=!1,R=!1,j=!1,Y=!1,U=!1,B=!1,V=!1,J=0,z={value:"",depth:0,isGlob:!1},q=()=>D>=E,$=()=>A.charCodeAt(D+1),W=()=>(T=S,A.charCodeAt(++D));for(;D<E;){let e;if((S=W())===r){Y=z.backslashes=!0,(S=W())===l&&(j=!0);continue}if(!0===j||S===l){for(J++;!0!==q()&&(S=W());){if(S===r){Y=z.backslashes=!0,W();continue}if(S===l){J++;continue}if(!0!==j&&S===a&&(S=W())===a||!0!==j&&S===i){if(O=z.isBrace=!0,L=z.isGlob=!0,V=!0,!0===k)continue;break}if(S===p&&0==--J){j=!1,O=z.isBrace=!0,V=!0;break}}if(!0===k)continue;break}if(S===s){if(P.push(D),C.push(z),z={value:"",depth:0,isGlob:!1},!0===V)continue;if(T===a&&D===N+1){N+=2;continue}F=D+1;continue}if(!0!==x.noext&&!0==(S===_||S===n||S===t||S===d||S===o)&&$()===c){if(L=z.isGlob=!0,M=z.isExtglob=!0,V=!0,S===o&&D===N&&(B=!0),!0===k){for(;!0!==q()&&(S=W());){if(S===r){Y=z.backslashes=!0,S=W();continue}if(S===f){L=z.isGlob=!0,V=!0;break}}continue}break}if(S===t){if(T===t&&(R=z.isGlobstar=!0),L=z.isGlob=!0,V=!0,!0===k)continue;break}if(S===d){if(L=z.isGlob=!0,V=!0,!0===k)continue;break}if(S===u){for(;!0!==q()&&(e=W());){if(e===r){Y=z.backslashes=!0,W();continue}if(e===m){I=z.isBracket=!0,L=z.isGlob=!0,V=!0;break}}if(!0===k)continue;break}if(!0!==x.nonegate&&S===o&&D===N){U=z.negated=!0,N++;continue}if(!0!==x.noparen&&S===c){if(L=z.isGlob=!0,!0===k){for(;!0!==q()&&(S=W());){if(S===c){Y=z.backslashes=!0,S=W();continue}if(S===f){V=!0;break}}continue}break}if(!0===L){if(V=!0,!0===k)continue;break}}!0===x.noext&&(M=!1,L=!1);let K=A,H="",G="";N>0&&(H=A.slice(0,N),A=A.slice(N),F-=N),K&&!0===L&&F>0?(K=A.slice(0,F),G=A.slice(F)):!0===L?(K="",G=A):K=A,K&&""!==K&&"/"!==K&&K!==A&&g(K.charCodeAt(K.length-1))&&(K=K.slice(0,-1)),!0===x.unescape&&(G&&(G=e.removeBackslashes(G)),K&&!0===Y&&(K=e.removeBackslashes(K)));let X={prefix:H,input:y,start:N,base:K,glob:G,isBrace:O,isBracket:I,isGlob:L,isExtglob:M,isGlobstar:R,negated:U,negatedExtglob:B};if(!0===x.tokens&&(X.maxDepth=0,g(S)||C.push(z),X.tokens=C),!0===x.parts||!0===x.tokens){let e;for(let t=0;t<P.length;t++){let n=e?e+1:N,r=P[t],i=y.slice(n,r);x.tokens&&(0===t&&0!==N?(C[t].isPrefix=!0,C[t].value=H):C[t].value=i,h(C[t]),X.maxDepth+=C[t].depth),(0!==t||""!==i)&&w.push(i),e=r}if(e&&e+1<y.length){let t=y.slice(e+1);w.push(t),x.tokens&&(C[C.length-1].value=t,h(C[C.length-1]),X.maxDepth+=C[C.length-1].depth)}X.slashes=P,X.parts=w}return X}}(),t=function(){if(sp)return sd;sp=1;let e=k9(),t=Pe(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:r,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:a,REPLACEMENTS:o}=e,s=(e,n)=>{if("function"==typeof n.expandRange)return n.expandRange(...e,n);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch(n){return e.map(e=>t.escapeRegex(e)).join("..")}return r},l=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,c=(u,_)=>{let d;if("string"!=typeof u)throw TypeError("Expected a string");u=o[u]||u;let p={..._},f="number"==typeof p.maxLength?Math.min(n,p.maxLength):n,m=u.length;if(m>f)throw SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${f}`);let g={type:"bos",value:"",output:p.prepend||""},h=[g],y=p.capture?"":"?:",b=e.globChars(p.windows),T=e.extglobChars(b),{DOT_LITERAL:S,PLUS_LITERAL:x,SLASH_LITERAL:E,ONE_CHAR:k,DOTS_SLASH:P,NO_DOT:C,NO_DOT_SLASH:w,NO_DOTS_SLASH:A,QMARK:D,QMARK_NO_DOT:N,STAR:F,START_ANCHOR:O}=b,I=e=>`(${y}(?:(?!${O}${e.dot?P:S}).)*?)`,L=p.dot?"":C,M=p.dot?D:N,R=!0===p.bash?I(p):F;p.capture&&(R=`(${R})`),"boolean"==typeof p.noext&&(p.noextglob=p.noext);let j={input:u,index:-1,start:0,dot:!0===p.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};m=(u=t.removePrefix(u,j)).length;let Y=[],U=[],B=[],V=g,J=()=>j.index===m-1,z=j.peek=(e=1)=>u[j.index+e],q=j.advance=()=>u[++j.index]||"",$=()=>u.slice(j.index+1),W=(e="",t=0)=>{j.consumed+=e,j.index+=t},K=e=>{j.output+=null!=e.output?e.output:e.value,W(e.value)},H=()=>{let e=1;for(;"!"===z()&&("("!==z(2)||"?"===z(3));)q(),j.start++,e++;return e%2!=0&&(j.negated=!0,j.start++,!0)},G=e=>{j[e]++,B.push(e)},X=e=>{j[e]--,B.pop()},Q=e=>{if("globstar"===V.type){let t=j.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||Y.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(j.output=j.output.slice(0,-V.output.length),V.type="star",V.value="*",V.output=R,j.output+=V.output)}if(Y.length&&"paren"!==e.type&&(Y[Y.length-1].inner+=e.value),(e.value||e.output)&&K(e),V&&"text"===V.type&&"text"===e.type){V.output=(V.output||V.value)+e.value,V.value+=e.value;return}e.prev=V,h.push(e),V=e},Z=(e,t)=>{let n={...T[t],conditions:1,inner:""};n.prev=V,n.parens=j.parens,n.output=j.output;let r=(p.capture?"(":"")+n.open;G("parens"),Q({type:e,value:t,output:j.output?"":k}),Q({type:"paren",extglob:!0,value:q(),output:r}),Y.push(n)},ee=e=>{let t,n=e.close+(p.capture?")":"");if("negate"===e.type){let r=R;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(r=I(p)),(r!==R||J()||/^\)+$/.test($()))&&(n=e.close=`)$))${r}`),e.inner.includes("*")&&(t=$())&&/^\.[^\\/.]+$/.test(t)){let i=c(t,{..._,fastpaths:!1}).output;n=e.close=`)${i})${r})`}"bos"===e.prev.type&&(j.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:d,output:n}),X("parens")};if(!1!==p.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(u)){let e=!1,n=u.replace(a,(t,n,r,i,a,o)=>"\\"===i?(e=!0,t):"?"===i?n?n+i+(a?D.repeat(a.length):""):0===o?M+(a?D.repeat(a.length):""):D.repeat(r.length):"."===i?S.repeat(r.length):"*"===i?n?n+i+(a?R:""):R:n?t:`\\${t}`);return(!0===e&&(n=!0===p.unescape?n.replace(/\\/g,""):n.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),n===u&&!0===p.contains)?j.output=u:j.output=t.wrapOutput(n,j,_),j}for(;!J();){if("\0"===(d=q()))continue;if("\\"===d){let e=z();if("/"===e&&!0!==p.bash||"."===e||";"===e)continue;if(!e){Q({type:"text",value:d+="\\"});continue}let t=/^\\+/.exec($()),n=0;if(t&&t[0].length>2&&(n=t[0].length,j.index+=n,n%2!=0&&(d+="\\")),!0===p.unescape?d=q():d+=q(),0===j.brackets){Q({type:"text",value:d});continue}}if(j.brackets>0&&("]"!==d||"["===V.value||"[^"===V.value)){if(!1!==p.posix&&":"===d){let e=V.value.slice(1);if(e.includes("[")&&(V.posix=!0,e.includes(":"))){let e=V.value.lastIndexOf("["),t=V.value.slice(0,e),n=r[V.value.slice(e+2)];if(n){V.value=t+n,j.backtrack=!0,q(),g.output||1!==h.indexOf(V)||(g.output=k);continue}}}("["===d&&":"!==z()||"-"===d&&"]"===z())&&(d=`\\${d}`),"]"===d&&("["===V.value||"[^"===V.value)&&(d=`\\${d}`),!0===p.posix&&"!"===d&&"["===V.value&&(d="^"),V.value+=d,K({value:d});continue}if(1===j.quotes&&'"'!==d){d=t.escapeRegex(d),V.value+=d,K({value:d});continue}if('"'===d){j.quotes=+(1!==j.quotes),!0===p.keepQuotes&&Q({type:"text",value:d});continue}if("("===d){G("parens"),Q({type:"paren",value:d});continue}if(")"===d){if(0===j.parens&&!0===p.strictBrackets)throw SyntaxError(l("opening","("));let e=Y[Y.length-1];if(e&&j.parens===e.parens+1){ee(Y.pop());continue}Q({type:"paren",value:d,output:j.parens?")":"\\)"}),X("parens");continue}if("["===d){if(!0!==p.nobracket&&$().includes("]"))G("brackets");else{if(!0!==p.nobracket&&!0===p.strictBrackets)throw SyntaxError(l("closing","]"));d=`\\${d}`}Q({type:"bracket",value:d});continue}if("]"===d){if(!0===p.nobracket||V&&"bracket"===V.type&&1===V.value.length){Q({type:"text",value:d,output:`\\${d}`});continue}if(0===j.brackets){if(!0===p.strictBrackets)throw SyntaxError(l("opening","["));Q({type:"text",value:d,output:`\\${d}`});continue}X("brackets");let e=V.value.slice(1);if(!0===V.posix||"^"!==e[0]||e.includes("/")||(d=`/${d}`),V.value+=d,K({value:d}),!1===p.literalBrackets||t.hasRegexChars(e))continue;let n=t.escapeRegex(V.value);if(j.output=j.output.slice(0,-V.value.length),!0===p.literalBrackets){j.output+=n,V.value=n;continue}V.value=`(${y}${n}|${V.value})`,j.output+=V.value;continue}if("{"===d&&!0!==p.nobrace){G("braces");let e={type:"brace",value:d,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};U.push(e),Q(e);continue}if("}"===d){let e=U[U.length-1];if(!0===p.nobrace||!e){Q({type:"text",value:d,output:d});continue}let t=")";if(!0===e.dots){let e=h.slice(),n=[];for(let t=e.length-1;t>=0&&(h.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&n.unshift(e[t].value);t=s(n,p),j.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){let n=j.output.slice(0,e.outputIndex),r=j.tokens.slice(e.tokensIndex);for(let i of(e.value=e.output="\\{",d=t="\\}",j.output=n,r))j.output+=i.output||i.value}Q({type:"brace",value:d,output:t}),X("braces"),U.pop();continue}if("|"===d){Y.length>0&&Y[Y.length-1].conditions++,Q({type:"text",value:d});continue}if(","===d){let e=d,t=U[U.length-1];t&&"braces"===B[B.length-1]&&(t.comma=!0,e="|"),Q({type:"comma",value:d,output:e});continue}if("/"===d){if("dot"===V.type&&j.index===j.start+1){j.start=j.index+1,j.consumed="",j.output="",h.pop(),V=g;continue}Q({type:"slash",value:d,output:E});continue}if("."===d){if(j.braces>0&&"dot"===V.type){"."===V.value&&(V.output=S);let e=U[U.length-1];V.type="dots",V.output+=d,V.value+=d,e.dots=!0;continue}if(j.braces+j.parens===0&&"bos"!==V.type&&"slash"!==V.type){Q({type:"text",value:d,output:S});continue}Q({type:"dot",value:d,output:S});continue}if("?"===d){if(!(V&&"("===V.value)&&!0!==p.noextglob&&"("===z()&&"?"!==z(2)){Z("qmark",d);continue}if(V&&"paren"===V.type){let e=z(),t=d;("("!==V.value||/[!=<:]/.test(e))&&("<"!==e||/<([!=]|\w+>)/.test($()))||(t=`\\${d}`),Q({type:"text",value:d,output:t});continue}if(!0!==p.dot&&("slash"===V.type||"bos"===V.type)){Q({type:"qmark",value:d,output:N});continue}Q({type:"qmark",value:d,output:D});continue}if("!"===d){if(!0!==p.noextglob&&"("===z()&&("?"!==z(2)||!/[!=<:]/.test(z(3)))){Z("negate",d);continue}if(!0!==p.nonegate&&0===j.index){H();continue}}if("+"===d){if(!0!==p.noextglob&&"("===z()&&"?"!==z(2)){Z("plus",d);continue}if(V&&"("===V.value||!1===p.regex){Q({type:"plus",value:d,output:x});continue}if(V&&("bracket"===V.type||"paren"===V.type||"brace"===V.type)||j.parens>0){Q({type:"plus",value:d});continue}Q({type:"plus",value:x});continue}if("@"===d){if(!0!==p.noextglob&&"("===z()&&"?"!==z(2)){Q({type:"at",extglob:!0,value:d,output:""});continue}Q({type:"text",value:d});continue}if("*"!==d){("$"===d||"^"===d)&&(d=`\\${d}`);let e=i.exec($());e&&(d+=e[0],j.index+=e[0].length),Q({type:"text",value:d});continue}if(V&&("globstar"===V.type||!0===V.star)){V.type="star",V.star=!0,V.value+=d,V.output=R,j.backtrack=!0,j.globstar=!0,W(d);continue}let e=$();if(!0!==p.noextglob&&/^\([^?]/.test(e)){Z("star",d);continue}if("star"===V.type){if(!0===p.noglobstar){W(d);continue}let t=V.prev,n=t.prev,r="slash"===t.type||"bos"===t.type,i=n&&("star"===n.type||"globstar"===n.type);if(!0===p.bash&&(!r||e[0]&&"/"!==e[0])){Q({type:"star",value:d,output:""});continue}let a=j.braces>0&&("comma"===t.type||"brace"===t.type),o=Y.length&&("pipe"===t.type||"paren"===t.type);if(!r&&"paren"!==t.type&&!a&&!o){Q({type:"star",value:d,output:""});continue}for(;"/**"===e.slice(0,3);){let t=u[j.index+4];if(t&&"/"!==t)break;e=e.slice(3),W("/**",3)}if("bos"===t.type&&J()){V.type="globstar",V.value+=d,V.output=I(p),j.output=V.output,j.globstar=!0,W(d);continue}if("slash"===t.type&&"bos"!==t.prev.type&&!i&&J()){j.output=j.output.slice(0,-(t.output+V.output).length),t.output=`(?:${t.output}`,V.type="globstar",V.output=I(p)+(p.strictSlashes?")":"|$)"),V.value+=d,j.globstar=!0,j.output+=t.output+V.output,W(d);continue}if("slash"===t.type&&"bos"!==t.prev.type&&"/"===e[0]){let n=void 0!==e[1]?"|$":"";j.output=j.output.slice(0,-(t.output+V.output).length),t.output=`(?:${t.output}`,V.type="globstar",V.output=`${I(p)}${E}|${E}${n})`,V.value+=d,j.output+=t.output+V.output,j.globstar=!0,W(d+q()),Q({type:"slash",value:"/",output:""});continue}if("bos"===t.type&&"/"===e[0]){V.type="globstar",V.value+=d,V.output=`(?:^|${E}|${I(p)}${E})`,j.output=V.output,j.globstar=!0,W(d+q()),Q({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-V.output.length),V.type="globstar",V.output=I(p),V.value+=d,j.output+=V.output,j.globstar=!0,W(d);continue}let n={type:"star",value:d,output:R};if(!0===p.bash){n.output=".*?",("bos"===V.type||"slash"===V.type)&&(n.output=L+n.output),Q(n);continue}if(V&&("bracket"===V.type||"paren"===V.type)&&!0===p.regex){n.output=d,Q(n);continue}(j.index===j.start||"slash"===V.type||"dot"===V.type)&&("dot"===V.type?(j.output+=w,V.output+=w):!0===p.dot?(j.output+=A,V.output+=A):(j.output+=L,V.output+=L),"*"!==z()&&(j.output+=k,V.output+=k)),Q(n)}for(;j.brackets>0;){if(!0===p.strictBrackets)throw SyntaxError(l("closing","]"));j.output=t.escapeLast(j.output,"["),X("brackets")}for(;j.parens>0;){if(!0===p.strictBrackets)throw SyntaxError(l("closing",")"));j.output=t.escapeLast(j.output,"("),X("parens")}for(;j.braces>0;){if(!0===p.strictBrackets)throw SyntaxError(l("closing","}"));j.output=t.escapeLast(j.output,"{"),X("braces")}if(!0!==p.strictSlashes&&("star"===V.type||"bracket"===V.type)&&Q({type:"maybe_slash",value:"",output:`${E}?`}),!0===j.backtrack)for(let e of(j.output="",j.tokens))j.output+=null!=e.output?e.output:e.value,e.suffix&&(j.output+=e.suffix);return j};return c.fastpaths=(r,i)=>{let a={...i},s="number"==typeof a.maxLength?Math.min(n,a.maxLength):n,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);r=o[r]||r;let{DOT_LITERAL:c,SLASH_LITERAL:u,ONE_CHAR:_,DOTS_SLASH:d,NO_DOT:p,NO_DOTS:f,NO_DOTS_SLASH:m,STAR:g,START_ANCHOR:h}=e.globChars(a.windows),y=a.dot?f:p,b=a.dot?m:p,T=a.capture?"":"?:",S=!0===a.bash?".*?":g;a.capture&&(S=`(${S})`);let x=e=>!0===e.noglobstar?S:`(${T}(?:(?!${h}${e.dot?d:c}).)*?)`,E=e=>{switch(e){case"*":return`${y}${_}${S}`;case".*":return`${c}${_}${S}`;case"*.*":return`${y}${S}${c}${_}${S}`;case"*/*":return`${y}${S}${u}${_}${b}${S}`;case"**":return y+x(a);case"**/*":return`(?:${y}${x(a)}${u})?${b}${_}${S}`;case"**/*.*":return`(?:${y}${x(a)}${u})?${b}${S}${c}${_}${S}`;case"**/.*":return`(?:${y}${x(a)}${u})?${c}${_}${S}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=E(t[1]);if(!n)return;return n+c+t[2]}}},k=E(t.removePrefix(r,{negated:!1,prefix:""}));return k&&!0!==a.strictSlashes&&(k+=`${u}?`),k},sd=c}(),n=Pe(),r=k9(),i=(e,t,n=!1)=>{if(Array.isArray(e)){let r=e.map(e=>i(e,t,n));return e=>{for(let t of r){let n=t(e);if(n)return n}return!1}}let r=e&&"object"==typeof e&&!Array.isArray(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!r)throw TypeError("Expected pattern to be a non-empty string");let a=t||{},o=a.windows,s=r?i.compileRe(e,t):i.makeRe(e,t,!1,!0),l=s.state;delete s.state;let c=()=>!1;if(a.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};c=i(a.ignore,e,n)}let u=(n,r=!1)=>{let{isMatch:u,match:_,output:d}=i.test(n,s,t,{glob:e,posix:o}),p={glob:e,state:l,regex:s,posix:o,input:n,output:d,match:_,isMatch:u};return("function"==typeof a.onResult&&a.onResult(p),!1===u)?(p.isMatch=!1,!!r&&p):c(n)?("function"==typeof a.onIgnore&&a.onIgnore(p),p.isMatch=!1,!!r&&p):("function"==typeof a.onMatch&&a.onMatch(p),!r||p)};return n&&(u.state=l),u};return i.test=(e,t,r,{glob:a,posix:o}={})=>{if("string"!=typeof e)throw TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};let s=r||{},l=s.format||(o?n.toPosixSlashes:null),c=e===a,u=c&&l?l(e):e;return!1===c&&(c=(u=l?l(e):e)===a),(!1===c||!0===s.capture)&&(c=!0===s.matchBase||!0===s.basename?i.matchBase(e,t,r,o):t.exec(u)),{isMatch:!!c,match:c,output:u}},i.matchBase=(e,t,r)=>(t instanceof RegExp?t:i.makeRe(t,r)).test(n.basename(e)),i.isMatch=(e,t,n)=>i(t,n)(e),i.parse=(e,n)=>Array.isArray(e)?e.map(e=>i.parse(e,n)):t(e,{...n,fastpaths:!1}),i.scan=(t,n)=>e(t,n),i.compileRe=(e,t,n=!1,r=!1)=>{if(!0===n)return e.output;let a=t||{},o=a.contains?"":"^",s=a.contains?"":"$",l=`${o}(?:${e.output})${s}`;e&&!0===e.negated&&(l=`^(?!${l}).*$`);let c=i.toRegex(l,t);return!0===r&&(c.state=e),c},i.makeRe=(e,n={},r=!1,a=!1)=>{if(!e||"string"!=typeof e)throw TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return!1!==n.fastpaths&&("."===e[0]||"*"===e[0])&&(o.output=t.fastpaths(e,n)),o.output||(o=t(e,n)),i.compileRe(o,n,r,a)},i.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},i.constants=r,sf=i}(),t=Pe();function n(r,i,a=!1){return i&&(null===i.windows||void 0===i.windows)&&(i={...i,windows:t.isWindows()}),e(r,i,a)}return Object.assign(n,e),sg=n}());function Pn(e,t){return 0===t.length||t.some(t=>e.isSourceFileDefaultLibrary(t))}function Pr(e,t){return e.some(e=>{let n=function e(t){switch(t.kind){case yg.SyntaxKind.ModuleDeclaration:return yg.isStringLiteral(t.name)?t:void 0;case yg.SyntaxKind.SourceFile:return;default:return e(t.parent)}}(e);return void 0!==n&&(void 0===t||n.name.text===t)})}function Pi(e,t,n){let r=n?.replace(/^@([^/]+)\//u,"$1__"),i=void 0===n?void 0:RegExp(`${n}|${r}`,"u");return t.some(t=>{let n=e.sourceFileToPackageName.get(t.path);return void 0!==n&&(void 0===i||i.test(n))&&e.isSourceFileFromExternalLibrary(t)})}function Pa(e,t){return Ps(e)?t:Ps(t)?e:Math.min(e,t)}function Po(e,t){return Ps(e)?t:Ps(t)?e:Math.max(e,t)}function Ps(e){return Number.isNaN(e)}function Pl(e,t){if(vu(e))throw Error("ErrorType encountered.");return{type:e,typeNode:null==t||t.pos<0?null:t}}function Pc(e,t,n,r){let i=e.getTypeChecker().getRecursionIdentity(n.type);null!==n.typeNode&&t.set(n.typeNode,r),t.set(i,r)}function Pu(e,t,n,r){let i="string"==typeof t?[t]:t instanceof RegExp||void 0===t.name?[]:Array.isArray(t.name)?t.name:[t.name],a=t instanceof RegExp?[t]:"string"==typeof t||void 0===t.pattern?[]:Array.isArray(t.pattern)?t.pattern:[t.pattern],o="string"==typeof t||t instanceof RegExp||void 0===t.ignoreName?[]:Array.isArray(t.ignoreName)?t.ignoreName:[t.ignoreName],s="string"==typeof t||t instanceof RegExp||void 0===t.ignorePattern?[]:Array.isArray(t.ignorePattern)?t.ignorePattern:[t.ignorePattern],l=[...i,...a],c=[...o,...s];return r(e,n.type,n.typeNode,l,c)}(i=sy||(sy={}))[i.Unknown=NaN]="Unknown",i[i.Mutable=2]="Mutable",i[i.ReadonlyShallow=3]="ReadonlyShallow",i[i.ReadonlyDeep=4]="ReadonlyDeep",i[i.Immutable=5]="Immutable",i[i.Calculating=1/0]="Calculating";function P_(e){return vb(e)&&void 0!==e.typeArguments&&e.typeArguments.length>0}let Pd=new WeakMap;function Pp(e){return{typeData:e,stage:0,immutability:sy.Calculating}}function Pf(e,t,n){return{typeData:e.typeData,children:t,childrenReducer:n,stage:1,immutability:sy.Calculating}}function Pm(e,t){return{taskState:e,notDoneAction:t,stage:5}}function Pg(e,t,n){t.push(Pm(n,()=>{n.stage=7,n.immutability=Po(n.limits.min,n.limits.max),t.push(n)}),Pm(n,()=>{P_(n.typeData.type)&&Py(t,n)})),Ph(e,t,n)}function Ph(e,t,n){n.stage=2,n.limits={...e.immutabilityLimits},t.push(Pm(n,()=>{if(P_(n.typeData.type)){n.stage=3,t.push(n);return}n.stage=4,t.push(n)}));let r=e.program.getTypeChecker(),i=n.typeData.type.getProperties();if(i.length>0)for(let e of i){if(vC(n.typeData.type,e.getEscapedName(),r)||"length"===e.escapedName&&r.isTupleType(n.typeData.type))continue;let t=yg.getNameOfDeclaration(e.valueDeclaration);if(void 0!==t&&yg.isPrivateIdentifier(t))continue;let i=e.getDeclarations()??[];if(i.length>0&&(i.some(e=>Object.hasOwn(e,"symbol")&&yT(e.symbol,yg.SymbolFlags.Method))||i.every(e=>yg.isPropertySignature(e)&&void 0!==e.type&&yg.isFunctionTypeNode(e.type)))){n.limits.max=Pa(n.limits.max,sy.ReadonlyDeep);continue}n.immutability=sy.Mutable;return}let a=new Map(null!==n.typeData.typeNode&&yK(n.typeData.typeNode)&&void 0!==n.typeData.typeNode.type&&yg.isTypeLiteralNode(n.typeData.typeNode.type)?n.typeData.typeNode.type.members.map(e=>{var t;return void 0!==e.name&&yK(e)&&void 0!==e.type?[(t=e.name,yg.isIdentifier(t)||yg.isPrivateIdentifier(t),t.getText()),e.type]:void 0}).filter(e=>void 0!==e):[]),o=i.map(e=>{let t=k5.getTypeOfPropertyOfType(r,n.typeData.type,e);return void 0===t||vd(t)&&"error"===t.intrinsicName?null:Pp(Pl(t,a.get(e.getEscapedName())))}).filter(e=>null!==e);o.length>0&&(n.limits.min=sy.ReadonlyShallow,t.push(Pf(n,o,Pa),...o))}function Py(e,t){let n=t.typeData.type.typeArguments.map(e=>Pp(Pl(e,void 0)));e.push(Pf(t,n,Pa),...n)}function Pv(e,t,n,r){let i=e.program.getTypeChecker().getIndexInfoOfType(r.type,n);if(void 0===i)return t.immutability=sy.Unknown,[];if(e.immutabilityLimits.max<=sy.ReadonlyShallow)return t.immutability=sy.ReadonlyShallow,[];if(i.isReadonly){if(i.type===r.type)return t.immutability=e.immutabilityLimits.max,[];let n=Pp(Pl(i.type,void 0));return[Pf(t,[{immutability:sy.ReadonlyShallow},n],Po),n]}return t.immutability=sy.Mutable,[]}(a=sv||(sv={}))[a.Triage=0]="Triage",a[a.ReduceChildren=1]="ReduceChildren",a[a.ObjectProperties=2]="ObjectProperties",a[a.ObjectTypeReference=3]="ObjectTypeReference",a[a.ObjectIndexSignature=4]="ObjectIndexSignature",a[a.CheckDone=5]="CheckDone",a[a.ApplyOverride=6]="ApplyOverride",a[a.Done=7]="Done";var Pb=Object.defineProperty,PT=e=>{let t={};for(var n in e)Pb(t,n,{get:e[n],enumerable:!0});return t};let PS=h3.ESLintUtils.RuleCreator(function(e){return`${_b}/docs/rules/${e}`}),Px=e=>yT(e,yg.TypeFlags.TypeParameter|yg.TypeFlags.Any),PE=e=>yT(e,yg.TypeFlags.BigIntLike),Pk=e=>yT(e,yg.TypeFlags.BooleanLike),PP=e=>yT(e,yg.TypeFlags.EnumLike),PC=e=>e.isLiteral()&&ll.isMatching({value:{base10Value:"0"}},e),Pw=e=>e.isNumberLiteral()&&0===e.value,PA=e=>e.isStringLiteral()&&""===e.value,PD=e=>yT(e,yg.TypeFlags.Never),PN=e=>yT(e,yg.TypeFlags.Null|yg.TypeFlags.Undefined|yg.TypeFlags.VoidLike),PF=e=>yT(e,yg.TypeFlags.NumberLike),PO=e=>!yT(e,yg.TypeFlags.Null|yg.TypeFlags.Undefined|yg.TypeFlags.VoidLike|yg.TypeFlags.BooleanLike|yg.TypeFlags.StringLike|yg.TypeFlags.NumberLike|yg.TypeFlags.BigIntLike|yg.TypeFlags.TypeParameter|yg.TypeFlags.Any|yg.TypeFlags.Unknown|yg.TypeFlags.Never),PI=e=>yT(e,yg.TypeFlags.StringLike),PL=e=>e.isLiteral()&&ll.isMatching({value:{base10Value:ll.P.not("0")}},e),PM=e=>e.isNumberLiteral()&&0!==e.value,PR=e=>e.isStringLiteral()&&""!==e.value,Pj=e=>yT(e,yg.TypeFlags.Unknown);var PY=PS({meta:{type:"problem",docs:{description:"Enforces that the 'key' prop is placed before the spread prop in JSX elements.",[Symbol.for("rule_features")]:["EXP"]},messages:{jsxKeyBeforeSpread:"The 'key' prop must be placed before any spread props."},schema:[]},name:"jsx-key-before-spread",create:function(e){return{JSXOpeningElement(t){let n=null;for(let[r,i]of t.attributes.entries()){if(i.type===_W.AST_NODE_TYPES.JSXSpreadAttribute){n??=r;continue}null!=n&&"key"===i.name.name&&r>n&&e.report({messageId:"jsxKeyBeforeSpread",node:i})}}}},defaultOptions:[]}),PU=PS({meta:{type:"problem",docs:{description:"Prevents comments from being inserted as text nodes.",[Symbol.for("rule_features")]:[]},messages:{jsxNoCommentTextnodes:"Possible misused comment in text node. Comments inside children section of tag should be placed inside braces."},schema:[]},name:"jsx-no-comment-textnodes",create:function(e){let t=t=>{xN([_W.AST_NODE_TYPES.JSXElement,_W.AST_NODE_TYPES.JSXFragment])(t.parent)&&!xN([_W.AST_NODE_TYPES.JSXAttribute,_W.AST_NODE_TYPES.JSXExpressionContainer])(t.parent)&&/^\s*\/(?:\/|\*)/mu.test(e.sourceCode.getText(t))&&e.report({messageId:"jsxNoCommentTextnodes",node:t})};return{JSXText:t,Literal:t}},defaultOptions:[]}),PB=PS({meta:{type:"problem",docs:{description:"Disallow duplicate props in JSX elements.",[Symbol.for("rule_features")]:[]},messages:{jsxNoDuplicateProps:"This JSX property is assigned multiple times."},schema:[]},name:"jsx-no-duplicate-props",create:function(e){return{JSXOpeningElement(t){let n=[];for(let r of t.attributes){if(r.type===_W.AST_NODE_TYPES.JSXSpreadAttribute)continue;let t=r.name.name;if("string"==typeof t){if(!n.includes(t)){n.push(t);continue}e.report({messageId:"jsxNoDuplicateProps",node:r})}}}}},defaultOptions:[]}),PV=PS({meta:{type:"problem",docs:{description:"Disallows 'IIFE' in JSX elements.",[Symbol.for("rule_features")]:["EXP"]},messages:{jsxNoIife:"Avoid using IIFE in JSX elements."},schema:[]},name:"jsx-no-iife",create:function(e){return{"JSXElement :function"(t){t.parent.type===_W.AST_NODE_TYPES.CallExpression&&t.parent.callee===t&&e.report({messageId:"jsxNoIife",node:t.parent})},"JSXFragment :function"(t){t.parent.type===_W.AST_NODE_TYPES.CallExpression&&t.parent.callee===t&&e.report({messageId:"jsxNoIife",node:t.parent})}}},defaultOptions:[]}),PJ=PS({meta:{type:"problem",docs:{description:"Disallow undefined variables in JSX.",[Symbol.for("rule_features")]:[]},messages:{jsxNoUndef:"JSX variable '{{name}}' is not defined."},schema:[]},name:"jsx-no-undef",create:function(e){return{JSXOpeningElement(t){let n=ll.match(t.name).with({type:_W.AST_NODE_TYPES.JSXIdentifier},e=>e.name).with({type:_W.AST_NODE_TYPES.JSXMemberExpression,object:{type:_W.AST_NODE_TYPES.JSXIdentifier}},e=>e.object.name).otherwise(()=>null);null==n||"this"===n||/^[a-z]/u.test(n)||null==Er(n,e.sourceCode.getScope(t))&&e.report({messageId:"jsxNoUndef",node:t,data:{name:n}})}}},defaultOptions:[]});let Pz=[1];var Pq=PS({meta:{type:"problem",docs:{description:"Enforces shorthand syntax for boolean attributes.",[Symbol.for("rule_features")]:["CFG","FIX"]},fixable:"code",messages:{jsxShorthandBoolean:"{{message}}"},schema:[{type:"integer",enum:[-1,1]}]},name:"jsx-shorthand-boolean",create:function(e){let t=e.options[0]??Pz[0];return{JSXAttribute(n){let{value:r}=n,i=EM(n.name);switch(!0){case 1===t&&r?.type===_W.AST_NODE_TYPES.JSXExpressionContainer&&r.expression.type===_W.AST_NODE_TYPES.Literal&&!0===r.expression.value:e.report({messageId:"jsxShorthandBoolean",node:n,data:{message:`Omit attribute value for '${i}'.`},fix:e=>e.removeRange([n.name.range[1],r.range[1]])});break;case -1===t&&null===r:e.report({messageId:"jsxShorthandBoolean",node:n.value??n,data:{message:`Set attribute value for '${i}'.`},fix:e=>e.insertTextAfter(n.name,"={true}")})}}}},defaultOptions:Pz});let P$=[1];var PW=PS({meta:{type:"problem",docs:{description:"Enforces shorthand syntax for fragments.",[Symbol.for("rule_features")]:["CFG","FIX"]},fixable:"code",messages:{jsxShorthandFragment:"{{message}}"},schema:[{type:"integer",enum:[-1,1]}]},name:"jsx-shorthand-fragment",create:function(e){let t=e.options[0]??P$[0],{jsxFragmentFactory:n}={...EY(e),...EB(e)};return ll.match(t).with(1,()=>({JSXElement(t){!EK(e,t)||t.openingElement.attributes.length>0||e.report({messageId:"jsxShorthandFragment",node:t,data:{message:"Use fragment shorthand syntax instead of 'Fragment' component."},fix:e=>{let{closingElement:n,openingElement:r}=t;return null==n?[]:[e.replaceTextRange([r.range[0],r.range[1]],"<>"),e.replaceTextRange([n.range[0],n.range[1]],"</>")]}})}})).with(-1,()=>({JSXFragment(t){e.report({messageId:"jsxShorthandFragment",node:t,data:{message:"Use 'Fragment' component instead of fragment shorthand syntax."},fix:e=>{let{closingFragment:r,openingFragment:i}=t;return[e.replaceTextRange([i.range[0],i.range[1]],`<${n}>`),e.replaceTextRange([r.range[0],r.range[1]],`</${n}>`)]}})}})).otherwise(()=>({}))},defaultOptions:P$}),PK=PS({meta:{type:"problem",docs:{description:"Marks React variables as used when JSX is used.",[Symbol.for("rule_features")]:[]},messages:{jsxUsesReact:"Marked {{name}} as used."},schema:[]},name:"jsx-uses-react",create:function(e){let{jsx:t,jsxFactory:n,jsxFragmentFactory:r}={...EY(e),...EB(e)};if(4===t||5===t)return{};function i(t){e.sourceCode.markVariableAsUsed(n,t),PH(e,t,n)}return{JSXFragment:function(t){e.sourceCode.markVariableAsUsed(r,t),PH(e,t,r)},JSXOpeningElement:i,JSXOpeningFragment:i}},defaultOptions:[]});function PH(e,t,n){"1"===process.env.ESLINT_REACT_DEBUG&&e.report({messageId:"jsxUsesReact",node:t,data:{name:n}})}var PG=PS({meta:{type:"problem",docs:{description:"Marks variables used in JSX elements as used.",[Symbol.for("rule_features")]:[]},messages:{jsxUsesVars:"An identifier in JSX is marked as used."},schema:[]},name:"jsx-uses-vars",create:function(e){return{JSXOpeningElement(t){switch(t.name.type){case _W.AST_NODE_TYPES.JSXIdentifier:if(/^[a-z]/u.test(t.name.name))return;e.sourceCode.markVariableAsUsed(t.name.name,t);break;case _W.AST_NODE_TYPES.JSXMemberExpression:{let{object:n}=t.name;n.type===_W.AST_NODE_TYPES.JSXIdentifier&&e.sourceCode.markVariableAsUsed(n.name,t)}}}}},defaultOptions:[]}),PX=PS({meta:{type:"problem",docs:{description:"Disallow accessing `this.state` inside `setState` calls.",[Symbol.for("rule_features")]:[]},messages:{noAccessStateInSetstate:"Do not access 'this.state' within 'setState'. Use the update function instead."},schema:[]},name:"no-access-state-in-setstate",create:function(e){if(!e.sourceCode.text.includes("setState"))return{};let t=[],n=[],r=[];return{CallExpression(e){kS(e)&&r.push([e,!1])},"CallExpression:exit"(e){kS(e)&&r.pop()},ClassDeclaration(e){t.push([e,EX(e)])},"ClassDeclaration:exit"(){t.pop()},ClassExpression(e){t.push([e,EX(e)])},"ClassExpression:exit"(){t.pop()},MemberExpression(i){if(!xq(i.object))return;let[a,o=!1]=t.at(-1)??[];if(null==a||!o)return;let[s,l=!1]=n.at(-1)??[];if(null==s||l)return;let[c,u=!1]=r.at(-1)??[];null==c||u||"state"===x6(i.property)&&e.report({messageId:"noAccessStateInSetstate",node:i})},MethodDefinition(e){n.push([e,e.static])},"MethodDefinition:exit"(){n.pop()},PropertyDefinition(e){n.push([e,e.static])},"PropertyDefinition:exit"(){n.pop()},VariableDeclarator(i){let[a,o=!1]=t.at(-1)??[];if(null==a||!o)return;let[s,l=!1]=n.at(-1)??[];if(null==s||l)return;let[c,u=!1]=r.at(-1)??[];null==c||u||null==i.init||!xq(i.init)||i.id.type!==_W.AST_NODE_TYPES.ObjectPattern||i.id.properties.some(e=>{var t;return e.type===_W.AST_NODE_TYPES.Property&&(t=e.key,ll.match(t).with({type:_W.AST_NODE_TYPES.Literal},lr).with({type:_W.AST_NODE_TYPES.TemplateLiteral,expressions:[]},lr).with({type:_W.AST_NODE_TYPES.Identifier},()=>!e.computed).otherwise(li))&&"state"===x6(e.key)})&&e.report({messageId:"noAccessStateInSetstate",node:i})}}},defaultOptions:[]});let PQ=["forEach","map"];var PZ=PS({meta:{type:"problem",docs:{description:"Disallow an item's index in the array as its key.",[Symbol.for("rule_features")]:[]},messages:{noArrayIndexKey:"Do not use item index in the array as its key."},schema:[]},name:"no-array-index-key",create:function(t){let n=[];function r(e){return e.type===_W.AST_NODE_TYPES.Identifier&&n.some(t=>null!=t&&t===e.name)}function i(e){switch(e.type){case _W.AST_NODE_TYPES.Identifier:if(n.some(t=>null!=t&&t===e.name))return[{messageId:"noArrayIndexKey",node:e}];break;case _W.AST_NODE_TYPES.TemplateLiteral:case _W.AST_NODE_TYPES.BinaryExpression:{let t=[];for(let n of e.type===_W.AST_NODE_TYPES.TemplateLiteral?e.expressions:function e(t){return t.type===_W.AST_NODE_TYPES.Identifier?[t]:t.type===_W.AST_NODE_TYPES.BinaryExpression?[...e(t.left),...e(t.right)]:[]}(e))r(n)&&t.push({messageId:"noArrayIndexKey",node:n});return t}case _W.AST_NODE_TYPES.CallExpression:switch(!0){case e.callee.type===_W.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===_W.AST_NODE_TYPES.Identifier&&"toString"===e.callee.property.name&&r(e.callee.object):return[{messageId:"noArrayIndexKey",node:e.callee.object}];case e.callee.type===_W.AST_NODE_TYPES.Identifier&&"String"===e.callee.name&&null!=e.arguments[0]&&r(e.arguments[0]):return[{messageId:"noArrayIndexKey",node:e.arguments[0]}]}}return[]}return{CallExpression(r){if(n.push(function(t,n){let{callee:r}=n;if(r.type!==_W.AST_NODE_TYPES.MemberExpression||r.property.type!==_W.AST_NODE_TYPES.Identifier)return e;let{name:i}=r.property,a=xk.get(i)??-1;if(-1===a)return e;let o=n.arguments[+!!function(e,t){var n;let{importSource:r="react"}=e.settings,{callee:i}=t;if(!("property"in i)||!("object"in i)||!("name"in i.property)||(n=i.property.name,!PQ.includes(n)))return!1;let a=e.sourceCode.getScope(t);return i.object.type===_W.AST_NODE_TYPES.Identifier&&"Children"===i.object.name||i.object.type===_W.AST_NODE_TYPES.MemberExpression&&"name"in i.object.object&&E2(i.object.object.name,r,a)}(t,n)];if(null==o||!xN([_W.AST_NODE_TYPES.ArrowFunctionExpression,_W.AST_NODE_TYPES.FunctionExpression])(o))return e;let{params:s}=o;if(s.length<a+1)return e;let l=s.at(a);return null!=l&&"name"in l?l.name:e}(t,r)),0===r.arguments.length||!(Eb(t,r)||Ey(t,r)))return;let[,a]=r.arguments;if(a?.type===_W.AST_NODE_TYPES.ObjectExpression){for(let e of a.properties)if(ll.isMatching({key:{name:"key"}})(e)&&"value"in e)for(let n of i(e.value))_L(t)(n)}},"CallExpression:exit"(){n.pop()},JSXAttribute(e){if("key"===e.name.name&&0!==n.length&&e.value?.type===_W.AST_NODE_TYPES.JSXExpressionContainer)for(let n of i(e.value.expression))_L(t)(n)}}},defaultOptions:[]}),P0=PS({meta:{type:"problem",docs:{description:"Disallow `Children.count`.",[Symbol.for("rule_features")]:[]},messages:{noChildrenCount:"Using 'Children.count' is uncommon and can lead to fragile code. Use alternatives instead."},schema:[]},name:"no-children-count",create:function(e){return{MemberExpression(t){E_(e,t)&&e.report({messageId:"noChildrenCount",node:t.property})}}},defaultOptions:[]}),P1=PS({meta:{type:"problem",docs:{description:"Disallow 'Children.forEach'.",[Symbol.for("rule_features")]:[]},messages:{noChildrenForEach:"Using 'Children.forEach' is uncommon and can lead to fragile code. Use alternatives instead."},schema:[]},name:"no-children-for-each",create:function(e){return{MemberExpression(t){Ed(e,t)&&e.report({messageId:"noChildrenForEach",node:t.property})}}},defaultOptions:[]}),P2=PS({meta:{type:"problem",docs:{description:"Disallow `Children.map`.",[Symbol.for("rule_features")]:[]},messages:{noChildrenMap:"Using 'Children.map' is uncommon and can lead to fragile code. Use alternatives instead."},schema:[]},name:"no-children-map",create:function(e){return{MemberExpression(t){Ep(e,t)&&e.report({messageId:"noChildrenMap",node:t.property})}}},defaultOptions:[]}),P3=PS({meta:{type:"problem",docs:{description:"Disallow `Children.only`.",[Symbol.for("rule_features")]:[]},messages:{noChildrenOnly:"Using 'Children.only' is uncommon and can lead to fragile code. Use alternatives instead."},schema:[]},name:"no-children-only",create:function(e){return{MemberExpression(t){Ef(e,t)&&e.report({messageId:"noChildrenOnly",node:t.property})}}},defaultOptions:[]}),P6=PS({meta:{type:"problem",docs:{description:"Disallow passing `children` as a prop.",[Symbol.for("rule_features")]:[]},messages:{noChildrenProp:"Do not pass 'children' as props."},schema:[]},name:"no-children-prop",create:function(e){return{JSXElement(t){let n=ER(e,t)("children");null!=n&&e.report({messageId:"noChildrenProp",node:n})}}},defaultOptions:[]}),P4=PS({meta:{type:"problem",docs:{description:"Disallow `Children.toArray`.",[Symbol.for("rule_features")]:[]},messages:{noChildrenToArray:"Using 'Children.toArray' is uncommon and can lead to fragile code. Use alternatives instead."},schema:[]},name:"no-children-to-array",create:function(e){return{MemberExpression(t){Em(e,t)&&e.report({messageId:"noChildrenToArray",node:t.property})}}},defaultOptions:[]}),P8=PS({meta:{type:"problem",docs:{description:"Disallow class components except for error boundaries.",[Symbol.for("rule_features")]:[]},messages:{noClassComponent:"Avoid using class components. Use function components instead."},schema:[]},name:"no-class-component",create:function(e){if(!e.sourceCode.text.includes("Component"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{name:r="anonymous",node:i}of t.getAllComponents(n).values())i.body.body.some(e=>ki(e)||km(e))||e.report({messageId:"noClassComponent",node:i,data:{name:r}})}}},defaultOptions:[]}),P5=PS({meta:{type:"problem",docs:{description:"Disallow `cloneElement`.",[Symbol.for("rule_features")]:[]},messages:{noCloneElement:"Using 'cloneElement' is uncommon and can lead to fragile code. Use alternatives instead."},schema:[]},name:"no-clone-element",create:function(e){return{CallExpression(t){Ey(e,t)&&e.report({messageId:"noCloneElement",node:t})}}},defaultOptions:[]}),P7=PS({meta:{type:"problem",docs:{description:"Replace usages of `componentWillMount` with `UNSAFE_componentWillMount`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noComponentWillMount:"[Deprecated] Use 'UNSAFE_componentWillMount' instead."},schema:[]},name:"no-component-will-mount",create:function(e){if(!e.sourceCode.text.includes("componentWillMount"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{node:r}of t.getAllComponents(n).values()){let{body:t}=r.body;for(let n of t)ks(n)&&e.report({messageId:"noComponentWillMount",node:n,fix:e=>"key"in n?e.replaceText(n.key,"UNSAFE_componentWillMount"):null})}}}},defaultOptions:[]}),P9=PS({meta:{type:"problem",docs:{description:"Replace usages of `componentWillReceiveProps` with `UNSAFE_componentWillReceiveProps`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noComponentWillReceiveProps:"[Deprecated] Use 'UNSAFE_componentWillReceiveProps' instead."},schema:[]},name:"no-component-will-receive-props",create:function(e){if(!e.sourceCode.text.includes("componentWillReceiveProps"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{node:r}of t.getAllComponents(n).values()){let{body:t}=r.body;for(let n of t)kl(n)&&e.report({messageId:"noComponentWillReceiveProps",node:n,fix:e=>"key"in n?e.replaceText(n.key,"UNSAFE_componentWillReceiveProps"):null})}}}},defaultOptions:[]}),Ce=PS({meta:{type:"problem",docs:{description:"Replace usages of `componentWillUpdate` with `UNSAFE_componentWillUpdate`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noComponentWillUpdate:"[Deprecated] Use 'UNSAFE_componentWillUpdate' instead."},schema:[]},name:"no-component-will-update",create:function(e){if(!e.sourceCode.text.includes("componentWillUpdate"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{node:r}of t.getAllComponents(n).values()){let{body:t}=r.body;for(let n of t)ku(n)&&e.report({messageId:"noComponentWillUpdate",node:n,fix:e=>"key"in n?e.replaceText(n.key,"UNSAFE_componentWillUpdate"):null})}}}},defaultOptions:[]}),Ct=PS({meta:{type:"problem",docs:{description:"Replace usages of `<Context.Provider>` with `<Context>`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noContextProvider:"In React 19, you can render '<Context>' as a provider instead of '<Context.Provider>'."},schema:[]},name:"no-context-provider",create:function(e){if(!e.sourceCode.text.includes("Provider"))return{};let{version:t}=_Y(e);return kD(t,"19.0.0","<")?{}:{JSXElement(t){let n=E$(e,t).split("."),r=n.pop(),i=n.join("."),a=n.pop();"Provider"!==r||null!=a&&e.report({messageId:"noContextProvider",node:t,fix(e){if(!E7(a))return null;let n=t.openingElement,r=t.closingElement;return null==r?e.replaceText(n.name,i):[e.replaceText(n.name,i),e.replaceText(r.name,i)]}})}}},defaultOptions:[]}),Cn=PS({meta:{type:"problem",docs:{description:"Disallow `createRef` in function components.",[Symbol.for("rule_features")]:[]},messages:{noCreateRef:"[Deprecated] Use 'useRef' instead."},schema:[]},name:"no-create-ref",create:function(e){return{CallExpression(t){ET(e,t)&&null==x$(t,EX)&&e.report({messageId:"noCreateRef",node:t})}}},defaultOptions:[]}),Cr=PS({meta:{type:"problem",docs:{description:"Disallow `defaultProps` property in favor of ES6 default parameters.",[Symbol.for("rule_features")]:[]},messages:{noDefaultProps:"[Deprecated] Use ES6 default parameters instead."},schema:[]},name:"no-default-props",create:function(e){return e.sourceCode.text.includes("defaultProps")?{AssignmentExpression(t){if("="!==t.operator||t.left.type!==_W.AST_NODE_TYPES.MemberExpression)return;let{object:n,property:r}=t.left;if(n.type!==_W.AST_NODE_TYPES.Identifier||r.type!==_W.AST_NODE_TYPES.Identifier||"defaultProps"!==r.name||!E7(n.name))return;let i=x7(Er(n.name,e.sourceCode.getScope(t)),0);null==i||xF(i)&&e.report({messageId:"noDefaultProps",node:r})}}:{}},defaultOptions:[]});function Ci(e){return xN([_W.AST_NODE_TYPES.FunctionDeclaration,_W.AST_NODE_TYPES.FunctionExpression])(e)&&xI(e.parent)&&e.parent.key.type===_W.AST_NODE_TYPES.Identifier&&"constructor"===e.parent.key.name}var Ca=PS({meta:{type:"problem",docs:{description:"Disallow direct mutation of `this.state`.",[Symbol.for("rule_features")]:[]},messages:{noDirectMutationState:"Do not mutate state directly. Use 'setState()' instead."},schema:[]},name:"no-direct-mutation-state",create:function(e){return{AssignmentExpression(t){if(!kx(t))return;let n=x$(t,xN([_W.AST_NODE_TYPES.ClassDeclaration,_W.AST_NODE_TYPES.ClassExpression]));null!=n&&EX(n)&&e.sourceCode.getScope(t).block!==x$(t,Ci)&&e.report({messageId:"noDirectMutationState",node:t})}}},defaultOptions:[]}),Co=PS({meta:{type:"problem",docs:{description:"Disallow duplicate `key` on elements in the same array or a list of `children`.",[Symbol.for("rule_features")]:[]},messages:{noDuplicateKey:"A key must be unique. '{{value}}' is duplicated."},schema:[]},name:"no-duplicate-key",create:function(e){if(!e.sourceCode.text.includes("key="))return{};let t=new Map;return{"JSXAttribute[name.name='key']"(e){let n=e.parent.parent;switch(n.parent.type){case _W.AST_NODE_TYPES.ArrayExpression:case _W.AST_NODE_TYPES.JSXElement:case _W.AST_NODE_TYPES.JSXFragment:{let r=n.parent,i=t.get(r)?.keys??[];t.set(r,{hasDuplicate:i.some(t=>{let n,r;return n=t.value,r=e.value,null!=n&&null!=r&&xA(n,r)}),keys:[...i,e],root:n.parent});break}default:{let r=x$(n,xC),i=x$(n,e=>e===r||xF(e));if(!xF(i))return;let a=r?.arguments[0];if(null==r||null==a||xz(a)!==i)return;t.set(r,{hasDuplicate:e.value?.type===_W.AST_NODE_TYPES.Literal,keys:[e],root:r})}}},"Program:exit"(){for(let{hasDuplicate:n,keys:r}of t.values())if(n)for(let t of r)e.report({messageId:"noDuplicateKey",node:t,data:{value:e.sourceCode.getText(t)}})}}},defaultOptions:[]});let Cs="no-forbidden-props",Cl=v8(Cs),Cc=[{forbid:[{prop:"/_/"}]}];var Cu=PS({meta:{type:"problem",defaultOptions:[...Cc],docs:{description:"Disallow certain props on components."},messages:{[Cl]:'Prop "{{name}}" is forbidden.'},schema:[{type:"object",additionalProperties:!1,properties:{forbid:{type:"array",items:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,properties:{excludedNodes:{type:"array",items:{type:"string"},uniqueItems:!0},prop:{type:"string"}},required:["prop"]},{type:"object",additionalProperties:!1,properties:{includedNodes:{type:"array",items:{type:"string"},uniqueItems:!0},prop:{type:"string"}},required:["prop"]}]}}}}]},name:Cs,create:function(e,[t]){let{forbid:n=[{prop:"/_/"}]}=t;return{JSXOpeningElement(t){let r=null;for(let i of(t.name.type===_W.AST_NODE_TYPES.JSXIdentifier?r=t.name.name:t.name.type===_W.AST_NODE_TYPES.JSXNamespacedName&&(r=t.name.name.name),t.attributes)){if(i.type===_W.AST_NODE_TYPES.JSXSpreadAttribute)continue;let t=i.name.name;if("string"==typeof t)for(let a of n)!("string"!=typeof a&&null!=r&&("excludedNodes"in a&&a.excludedNodes.includes(r)||"includedNodes"in a&&!a.includedNodes.includes(r)))&&_I("string"==typeof a?a:a.prop).test(t)&&e.report({messageId:Cl,node:i,data:{name:t}})}}}},defaultOptions:Cc}),C_=PS({meta:{type:"problem",docs:{description:"Replaces usages of `forwardRef` with passing `ref` as a prop.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noForwardRef:"In React 19, 'forwardRef' is no longer necessary. Pass 'ref' as a prop instead."},schema:[]},name:"no-forward-ref",create:function(e){if(!e.sourceCode.text.includes("forwardRef"))return{};let{version:t}=_Y(e);return kD(t,"19.0.0","<")?{}:{CallExpression(t){var n,r;if(!ES(e,t))return;let i=xX(t),a=!function(e,t){let{importSource:n}=_Y(e),r=e.sourceCode.getScope(t);switch(t.callee.type){case _W.AST_NODE_TYPES.Identifier:return E2(t.callee.name,n,r);case _W.AST_NODE_TYPES.MemberExpression:return t.callee.object.type===_W.AST_NODE_TYPES.Identifier&&E2(t.callee.object.name,n,r);default:return!1}}(e,t)?null:(n=e,r=t,e=>{let[t]=r.arguments;return null!=t&&xF(t)?[e.removeRange([r.range[0],t.range[0]]),e.removeRange([t.range[1],r.range[1]]),...function(e,t,n,r){let i=t=>e.sourceCode.getText(t),[a,o]=n.params,[s,l]=r;if(null==a)return[];let c=ll.match(a).with({type:_W.AST_NODE_TYPES.Identifier},e=>`...${e.name}`).with({type:_W.AST_NODE_TYPES.ObjectPattern},e=>e.properties.map(i).join(", ")).otherwise(()=>null),u=ll.match(o).with(ll.P.nullish,()=>"ref").with({type:_W.AST_NODE_TYPES.Identifier,name:"ref"},()=>"ref").with({type:_W.AST_NODE_TYPES.Identifier,name:ll.P.string},e=>`ref: ${e.name}`).otherwise(()=>null);if(null==c||null==u)return[];if(null==s||null==l)return[t.replaceText(a,["{",u+",",c,"}"].join(" ")),...null==o?[]:[t.remove(o),t.removeRange([a.range[1],o.range[0]])]];let _=i(s),d=i(l);return[t.replaceText(a,["{",u+",",c,"}:",d,"& { ref?:",`React.RefObject<${_} | null>`,"}"].join(" ")),...null==o?[]:[t.remove(o),t.removeRange([a.range[1],o.range[0]])]]}(n,e,t,r.typeArguments?.params??[])]:[]});e.report({messageId:"noForwardRef",node:i??t,fix:a})}}},defaultOptions:[]}),Cd=PS({meta:{type:"problem",docs:{description:"Prevents `key` from not being explicitly specified (e.g. spreading `key` from objects).",[Symbol.for("rule_features")]:["EXP"]},messages:{noImplicitKey:"Do not use implicit 'key' props."},schema:[]},name:"no-implicit-key",create:function(e){return{JSXOpeningElement(t){let n=ER(e,t.parent)("key"),r=t.attributes.some(e=>e.type===_W.AST_NODE_TYPES.JSXAttribute&&e.name.type===_W.AST_NODE_TYPES.JSXIdentifier&&"key"===e.name.name);null==n||r||e.report({messageId:"noImplicitKey",node:n})}}},defaultOptions:[]}),Cp=PS({meta:{type:"problem",docs:{description:"Prevents problematic leaked values from being rendered.",[Symbol.for("rule_features")]:["TSC"]},messages:{noLeakedConditionalRendering:"Potential leaked value {{value}} that might cause unintentionally rendered values or rendering crashes."},schema:[]},name:"no-leaked-conditional-rendering",create:function(t){if(!t.sourceCode.text.includes("&&"))return{};let{version:n}=_Y(t),r=["any","boolean","nullish","object","falsy boolean","truthy bigint","truthy boolean","truthy number","truthy string",...kD(n,"18.0.0","<")?[]:["string","falsy string"]],i=h3.ESLintUtils.getParserServices(t,!1);return{JSXExpressionContainer:function(e,t,n,r,i,a,o,s,l){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 l(s(o(a(i(r(n(t(e.apply(this,arguments)))))))))}}}(function n(a){return null==a?e:xD(_W.AST_NODE_TYPES.JSXExpressionContainer)(a)?n(a.expression):xR(a)?e:xU(a)?n(a.expression):ll.match(a).with({type:_W.AST_NODE_TYPES.LogicalExpression,operator:"&&"},({left:e,right:a})=>{if(e.type===_W.AST_NODE_TYPES.UnaryExpression&&"!"===e.operator)return n(a);let o=t.sourceCode.getScope(e);return e.type===_W.AST_NODE_TYPES.Identifier&&"NaN"===e.name||x5.getStaticValue(e,o)?.value==="NaN"?{messageId:"noLeakedConditionalRendering",node:e,data:{value:t.sourceCode.getText(e)}}:Array.from((function(e){let t=new Set;if(e.some(Pj))return t.add("unknown"),t;e.some(PN)&&t.add("nullish");let n=e.filter(Pk),r=n[0];1===n.length&&null!=r?vx(r)?t.add("falsy boolean"):vE(r)&&t.add("truthy boolean"):2===n.length&&t.add("boolean");let i=e.filter(PI);if(i.length>0){let e=ll.match(i).when(e=>e.every(PR),()=>"truthy string").when(e=>e.every(PA),()=>"falsy string").otherwise(()=>"string");t.add(e)}let a=e.filter(PE);if(a.length>0){let e=ll.match(a).when(e=>e.every(PL),()=>"truthy bigint").when(e=>e.every(PC),()=>"falsy bigint").otherwise(()=>"bigint");t.add(e)}let o=e.filter(PF);if(o.length>0){let e=ll.match(o).when(e=>e.every(PM),()=>"truthy number").when(e=>e.every(Pw),()=>"falsy number").otherwise(()=>"number");t.add(e)}return e.some(PP)&&t.add("enum"),e.some(PO)&&t.add("object"),e.some(Px)&&t.add("any"),e.some(PD)&&t.add("never"),t})(vN(k5.getConstrainedTypeAtLocation(i,e))).values()).every(e=>r.some(t=>t===e))?n(a):{messageId:"noLeakedConditionalRendering",node:e,data:{value:t.sourceCode.getText(e)}}}).with({type:_W.AST_NODE_TYPES.ConditionalExpression},({alternate:e,consequent:t})=>n(t)??n(e)).with({type:_W.AST_NODE_TYPES.Identifier},r=>{let i=Er(r.name,t.sourceCode.getScope(r))?.defs.at(0)?.node;return ll.match(i).with({init:ll.P.select({type:ll.P.not(_W.AST_NODE_TYPES.VariableDeclaration)})},n).otherwise(()=>e)}).otherwise(()=>e)},_L(t))}},defaultOptions:[]}),Cf=PS({meta:{type:"problem",docs:{description:"Enforces that all components have a `displayName` which can be used in devtools.",[Symbol.for("rule_features")]:[]},messages:{noMissingComponentDisplayName:"Add missing 'displayName' for component."},schema:[]},name:"no-missing-component-display-name",create:function(e){if(!e.sourceCode.text.includes("memo")&&!e.sourceCode.text.includes("forwardRef"))return{};let{ctx:t,listeners:n}=kt(e,{collectDisplayName:!0,collectHookCalls:!1,hint:EG});return{...n,"Program:exit"(n){for(let{node:r,displayName:i,flag:a}of t.getAllComponents(n).values()){let t=(a&(E8.ForwardRef|E8.Memo))>0n;if(null==xX(r)&&t&&null==i){let t=xX(r);e.report({messageId:"noMissingComponentDisplayName",node:t??r})}}}}},defaultOptions:[]}),Cm=PS({meta:{type:"problem",docs:{description:"Enforces that all contexts have a `displayName` which can be used in devtools.",[Symbol.for("rule_features")]:["FIX"]},fixable:"code",messages:{noMissingContextDisplayName:"Add missing 'displayName' for context."},schema:[]},name:"no-missing-context-display-name",create:function(e){if(!e.sourceCode.text.includes("createContext"))return{};let t=[],n=[];return{[x1](e){n.push(e)},CallExpression(n){Ev(e,n)&&t.push(n)},"Program:exit"(){for(let r of t){let t=E1(r);if(null==t){e.report({messageId:"noMissingContextDisplayName",node:r});continue}n.some(n=>{let r=n.left;return r.type===_W.AST_NODE_TYPES.MemberExpression&&E3(e,t,r.object)})||e.report({messageId:"noMissingContextDisplayName",node:t,fix:n=>t.type!==_W.AST_NODE_TYPES.Identifier||t.parent!==r.parent?[]:n.insertTextAfter(e.sourceCode.getTokenAfter(r)??r,"\n"+t.name+".displayName = "+JSON.stringify(t.name)+";")})}}}},defaultOptions:[]}),Cg=PS({meta:{type:"problem",docs:{description:"Disallow missing `key` on items in list rendering.",[Symbol.for("rule_features")]:[]},messages:{missingKey:"Missing 'key' for element when rendering list.",unexpectedFragmentSyntax:"Use fragment component instead of '<>' because it does not support `key`."},schema:[]},name:"no-missing-key",create:function(e){let t={isWithinChildrenToArray:!1};function n(t){switch(t.type){case _W.AST_NODE_TYPES.JSXElement:if(null==ER(e,t)("key"))return{messageId:"missingKey",node:t};return null;case _W.AST_NODE_TYPES.JSXFragment:return{messageId:"unexpectedFragmentSyntax",node:t};default:return null}}return{ArrayExpression(n){if(t.isWithinChildrenToArray)return;let r=n.elements.filter(xD(_W.AST_NODE_TYPES.JSXElement));if(0===r.length)return;let i=e.sourceCode.getScope(n);for(let t of r)null==ER(e,t,i)("key")&&e.report({messageId:"missingKey",node:t})},CallExpression(r){if(t.isWithinChildrenToArray||=Eh(e,r),t.isWithinChildrenToArray)return;let i=ll.match(r).when(xC,e=>e.arguments[0]).when(xP,e=>e.arguments[1]).otherwise(()=>null);if(!xF(i))return;let a=i.body;a.type===_W.AST_NODE_TYPES.BlockStatement?(function(e){let t=[];for(let r of xW(e)){if(null==r.argument)continue;let e=n(r.argument);null!=e&&t.push(e)}return t})(a).forEach(_L(e)):_L(e)(function(e){switch(e.type){case _W.AST_NODE_TYPES.ConditionalExpression:if("consequent"in e)return n(e.consequent)??n(e.alternate);return null;case _W.AST_NODE_TYPES.JSXElement:case _W.AST_NODE_TYPES.JSXFragment:return n(e);case _W.AST_NODE_TYPES.LogicalExpression:if("left"in e)return n(e.left)??n(e.right);return null;default:return null}}(a))},"CallExpression:exit"(n){Eh(e,n)&&(t.isWithinChildrenToArray=!1)},JSXFragment(n){t.isWithinChildrenToArray||n.parent.type===_W.AST_NODE_TYPES.ArrayExpression&&e.report({messageId:"unexpectedFragmentSyntax",node:n})}}},defaultOptions:[]}),Ch=PS({meta:{type:"problem",docs:{description:"Prevents incorrect usage of `captureOwnerStack`.",[Symbol.for("rule_features")]:["EXP"]},fixable:"code",messages:{missingDevelopmentOnlyCheck:"Don't call 'captureOwnerStack' directly. Use 'if (process.env.NODE_ENV !== \"production\") {...}' to conditionally access it.",useNamespaceImport:"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:function(e){if(!e.sourceCode.text.includes("captureOwnerStack"))return{};let{importSource:t}=_Y(e);return{CallExpression(t){Eg(e,t)&&null==x$(t,Cy)&&e.report({messageId:"missingDevelopmentOnlyCheck",node:t})},ImportDeclaration(n){if(n.source.value===t)for(let t of n.specifiers)t.type===_W.AST_NODE_TYPES.ImportSpecifier&&t.imported.type===_W.AST_NODE_TYPES.Identifier&&"captureOwnerStack"===t.imported.name&&e.report({messageId:"useNamespaceImport",node:t})}}},defaultOptions:[]});function Cy(e){var t,n;return e.type===_W.AST_NODE_TYPES.IfStatement&&(t=e.test,n="production",null!=t&&t.type===_W.AST_NODE_TYPES.BinaryExpression&&"!=="===t.operator&&(x2(t.left)&&x0(t.right,"string")?t.right.value===n:!!(x0(t.left,"string")&&x2(t.right))&&t.left.value===n))}var Cv=PS({meta:{type:"problem",docs:{description:"Disallow nesting component definitions inside other components.",[Symbol.for("rule_features")]:[]},messages:{noNestedComponentDefinitions:"Do not nest component definitions inside other components or props. {{suggestion}}"},schema:[]},name:"no-nested-component-definitions",create:function(e){let t=kt(e,{hint:EH.SkipArrayMapArgument|EH.SkipNullLiteral|EH.SkipUndefined|EH.SkipBooleanLiteral|EH.SkipStringLiteral|EH.SkipNumberLiteral|EH.StrictLogical|EH.StrictConditional}),n=kn();return{...t.listeners,...n.listeners,"Program:exit"(r){let i=[...t.ctx.getAllComponents(r).values()],a=[...n.ctx.getAllComponents(r).values()],o=e=>xF(e)&&i.some(t=>t.node===e),s=e=>xO(e)&&a.some(t=>t.node===e);for(let{name:t,node:n}of i){var l;if(null==t||kT(n))continue;if((l=n).parent.type===_W.AST_NODE_TYPES.JSXAttribute||null!=function(e,t=lr){return x$(e,e=>e.type===_W.AST_NODE_TYPES.JSXAttribute&&t(e))}(l,e=>e.value?.type===_W.AST_NODE_TYPES.JSXExpressionContainer)){!function(e){if(kT(e))return!0;let t=x$(e,xD(_W.AST_NODE_TYPES.JSXExpressionContainer))?.parent;return t?.type===_W.AST_NODE_TYPES.JSXAttribute&&t.name.type===_W.AST_NODE_TYPES.JSXIdentifier&&t.name.name.startsWith("render")}(n)&&e.report({messageId:"noNestedComponentDefinitions",node:n,data:{name:t,suggestion:"Move it to the top level or pass it as a prop."}});continue}if(function(e,t){let n=x$(t,Eb(e));if(null==n)return!1;let r=x$(t,xD(_W.AST_NODE_TYPES.ObjectExpression));return null!=r&&r===n.arguments[1]}(e,n)){e.report({messageId:"noNestedComponentDefinitions",node:n,data:{name:t,suggestion:"Move it to the top level or pass it as a prop."}});continue}let r=x$(n,o);if(null!=r&&!kT(r)){e.report({messageId:"noNestedComponentDefinitions",node:n,data:{name:t,suggestion:n.parent.type===_W.AST_NODE_TYPES.Property?"Move it to the top level or pass it as a prop.":"Move it to the top level."}});continue}null!=x$(n,e=>EQ(e)&&EX(e.parent.parent))&&e.report({messageId:"noNestedComponentDefinitions",node:n,data:{name:t,suggestion:"Move it to the top level."}})}for(let{name:t="unknown",node:n}of a)null!=x$(n,e=>s(e)||o(e))&&e.report({messageId:"noNestedComponentDefinitions",node:n,data:{name:t,suggestion:n.parent.type===_W.AST_NODE_TYPES.Property?"Move it to the top level or pass it as a prop.":"Move it to the top level."}})}}},defaultOptions:[]}),Cb=PS({meta:{type:"problem",docs:{description:"Disallow nesting lazy component declarations inside other components.",[Symbol.for("rule_features")]:[]},messages:{noNestedLazyComponentDeclarations:"Do not declare lazy components inside other components. Instead, always declare them at the top level of your module."},schema:[]},name:"no-nested-lazy-component-declarations",create:function(e){let t=kt(e,{hint:EH.None}),n=kn(),r=new Set;return{...t.listeners,...n.listeners,ImportExpression(t){let n=x$(t,t=>EE(e,t));null!=n&&r.add(n)},"Program:exit"(i){let a=[...t.ctx.getAllComponents(i).values()],o=[...n.ctx.getAllComponents(i).values()];for(let t of r)null!=x$(t,t=>!!xR(t)||(t.type===_W.AST_NODE_TYPES.CallExpression?EP(t)||Eb(e,t)||Ev(e,t):xF(t)?a.some(e=>e.node===t):!!xO(t)&&o.some(e=>e.node===t)))&&e.report({messageId:"noNestedLazyComponentDeclarations",node:t})}}},defaultOptions:[]}),CT=PS({meta:{type:"problem",docs:{description:"Disallow `propTypes` in favor of TypeScript or another type-checking solution.",[Symbol.for("rule_features")]:[]},messages:{noPropTypes:"[Deprecated] Use TypeScript or another type-checking solution instead."},schema:[]},name:"no-prop-types",create:function(e){return e.sourceCode.text.includes("propTypes")?{AssignmentExpression(t){if("="!==t.operator||t.left.type!==_W.AST_NODE_TYPES.MemberExpression)return;let{object:n,property:r}=t.left;if(n.type!==_W.AST_NODE_TYPES.Identifier||r.type!==_W.AST_NODE_TYPES.Identifier||"propTypes"!==r.name||!E7(n.name))return;let i=x7(Er(n.name,e.sourceCode.getScope(t)),0);null!=i&&(xF(i)||EX(i))&&e.report({messageId:"noPropTypes",node:r})},PropertyDefinition(t){!EX(t.parent.parent)||t.static&&t.key.type===_W.AST_NODE_TYPES.Identifier&&"propTypes"===t.key.name&&e.report({messageId:"noPropTypes",node:t})}}:{}},defaultOptions:[]}),CS=PS({meta:{type:"problem",docs:{description:"Disallow `shouldComponentUpdate` when extending `React.PureComponent`.",[Symbol.for("rule_features")]:[]},messages:{noRedundantShouldComponentUpdate:"'{{componentName}}' does not need 'shouldComponentUpdate' when extending 'React.PureComponent'."},schema:[]},name:"no-redundant-should-component-update",create:function(e){if(!e.sourceCode.text.includes("shouldComponentUpdate"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{name:r="PureComponent",node:i,flag:a}of t.getAllComponents(n).values()){if((a&E8.PureComponent)===0n)continue;let{body:t}=i.body;for(let n of t)xI(n)&&n.key.type===_W.AST_NODE_TYPES.Identifier&&"shouldComponentUpdate"===n.key.name&&e.report({messageId:"noRedundantShouldComponentUpdate",node:n,data:{componentName:r}})}}}},defaultOptions:[]}),Cx=PS({meta:{type:"problem",docs:{description:"Disallow calling `this.setState` in `componentDidMount` outside of functions, such as callbacks.",[Symbol.for("rule_features")]:[]},messages:{noSetStateInComponentDidMount:"Do not call `this.setState` in `componentDidMount` outside of functions, such as callbacks."},schema:[]},name:"no-set-state-in-component-did-mount",create:function(e){return e.sourceCode.text.includes("componentDidMount")?{CallExpression(t){if(!kS(t))return;let n=x$(t,EX),r=x$(t,e=>e===n||ka(e));if(null==n||null==r||r===n)return;let i=e.sourceCode.getScope(r),a=e.sourceCode.getScope(t).upper;r.parent===n.body&&a===i&&e.report({messageId:"noSetStateInComponentDidMount",node:t})}}:{}},defaultOptions:[]}),CE=PS({meta:{type:"problem",docs:{description:"Disallow calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks.",[Symbol.for("rule_features")]:[]},messages:{noSetStateInComponentDidUpdate:"Do not call `this.setState` in `componentDidUpdate` outside of functions, such as callbacks."},schema:[]},name:"no-set-state-in-component-did-update",create:function(e){return e.sourceCode.text.includes("componentDidUpdate")?{CallExpression(t){if(!kS(t))return;let n=x$(t,EX),r=x$(t,e=>e===n||ko(e));if(null==n||null==r||r===n)return;let i=e.sourceCode.getScope(r),a=e.sourceCode.getScope(t).upper;r.parent===n.body&&a===i&&e.report({messageId:"noSetStateInComponentDidUpdate",node:t})}}:{}},defaultOptions:[]}),Ck=PS({meta:{type:"problem",docs:{description:"Disallow calling `this.setState` in `componentWillUpdate` outside of functions, such as callbacks.",[Symbol.for("rule_features")]:[]},messages:{noSetStateInComponentWillUpdate:"Do not call `this.setState` in `componentWillUpdate` outside of functions, such as callbacks."},schema:[]},name:"no-set-state-in-component-will-update",create:function(e){return e.sourceCode.text.includes("componentWillUpdate")?{CallExpression(t){if(!kS(t))return;let n=x$(t,EX),r=x$(t,e=>e===n||ku(e));if(null==n||null==r||r===n)return;let i=e.sourceCode.getScope(r),a=e.sourceCode.getScope(t).upper;r.parent===n.body&&a===i&&e.report({messageId:"noSetStateInComponentWillUpdate",node:t})}}:{}},defaultOptions:[]}),CP=PS({meta:{type:"problem",docs:{description:"Replaces string refs with callback refs.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noStringRefs:"[Deprecated] Use callback refs instead."},schema:[]},name:"no-string-refs",create:function(e){let t={isWithinClassComponent:!1};return{ClassBody:function(e){EX(e.parent)&&(t.isWithinClassComponent=!0)},"ClassBody:exit":function(){t.isWithinClassComponent=!1},JSXAttribute(n){if("ref"!==n.name.name)return;let r=function(e,t){if(null==t)return null;switch(!0){case t.type===_W.AST_NODE_TYPES.Literal&&"string"==typeof t.value:return e.sourceCode.getText(t);case t.type===_W.AST_NODE_TYPES.JSXExpressionContainer&&t.expression.type===_W.AST_NODE_TYPES.Literal&&"string"==typeof t.expression.value:case t.type===_W.AST_NODE_TYPES.JSXExpressionContainer&&t.expression.type===_W.AST_NODE_TYPES.TemplateLiteral:return e.sourceCode.getText(t.expression);default:return null}}(e,n.value);null!=r&&e.report({messageId:"noStringRefs",node:n,fix:e=>null!=n.value&&t.isWithinClassComponent?e.replaceText(n.value,`{(ref) => { this.refs[${r}] = ref; }}`):null})}}},defaultOptions:[]}),CC=PS({meta:{type:"problem",docs:{description:"Prevents the use of unnecessary `key` props on JSX elements when rendering lists.",[Symbol.for("rule_features")]:["EXP"]},messages:{noUnnecessaryKey:"Unnecessary `key` prop on this element. The `key` should be on the top-level element returned from the array."},schema:[]},name:"no-unnecessary-key",create:function(e){return e.sourceCode.text.includes("key=")?{JSXAttribute(t){if("key"!==t.name.name)return;let n=t.parent.parent,r=e.sourceCode.getScope(n),i=x$(n,Cw);if(null==i||e.sourceCode.getScope(i)!==r)return;let a=x$(n,e=>e===i||xL(e)&&e.openingElement.attributes.some(e=>e.type===_W.AST_NODE_TYPES.JSXAttribute&&e.name.type===_W.AST_NODE_TYPES.JSXIdentifier&&"key"===e.name.name));null!=a&&a!==i&&e.report({messageId:"noUnnecessaryKey",node:t})}}:{}},defaultOptions:[]});function Cw(e){return null!=e.parent&&!!xC(e.parent)&&xN([_W.AST_NODE_TYPES.ArrowFunctionExpression,_W.AST_NODE_TYPES.FunctionExpression])(xz(e))}var CA=PS({meta:{type:"problem",docs:{description:"Disallow unnecessary usage of `useCallback`.",[Symbol.for("rule_features")]:["EXP"]},messages:{noUnnecessaryUseCallback:"An 'useCallback' with empty deps and no references to the component scope may be unnecessary."},schema:[]},name:"no-unnecessary-use-callback",create:function(e){return e.sourceCode.text.includes("useCallback")?{CallExpression(t){if(!ED(t))return;let n=e.sourceCode.getScope(t),r=e.sourceCode.getScope(t).block;if(!xF(r))return;let[i,a]=t.arguments;if(null==i||null==a||!ll.match(a).with({type:_W.AST_NODE_TYPES.ArrayExpression},e=>0===e.elements.length).with({type:_W.AST_NODE_TYPES.Identifier},e=>{let t=x7(Er(e.name,n),0);return t?.type===_W.AST_NODE_TYPES.ArrayExpression&&0===t.elements.length}).otherwise(()=>!1))return;let o=ll.match(i).with({type:_W.AST_NODE_TYPES.ArrowFunctionExpression},e=>e.body.type===_W.AST_NODE_TYPES.ArrowFunctionExpression?e.body:e).with({type:_W.AST_NODE_TYPES.FunctionExpression},le).with({type:_W.AST_NODE_TYPES.Identifier},e=>{let t=x7(Er(e.name,n),0);return t?.type!==_W.AST_NODE_TYPES.ArrowFunctionExpression&&t?.type!==_W.AST_NODE_TYPES.FunctionExpression?null:t}).otherwise(()=>null);null!=o&&(Ea(e.sourceCode.getScope(o)).flatMap(e=>e.references).some(e=>e.resolved?.scope.block===r)||e.report({messageId:"noUnnecessaryUseCallback",node:t}))}}:{}},defaultOptions:[]}),CD=PS({meta:{type:"problem",docs:{description:"Disallow unnecessary usage of `useMemo`.",[Symbol.for("rule_features")]:["EXP"]},messages:{noUnnecessaryUseMemo:"An 'useMemo' with empty deps and no references to the component scope may be unnecessary."},schema:[]},name:"no-unnecessary-use-memo",create:function(e){return e.sourceCode.text.includes("useMemo")?{CallExpression(t){let n=e.sourceCode.getScope(t);if(!EF(t))return;let r=e.sourceCode.getScope(t).block;if(!xF(r))return;let[i,a]=t.arguments;if(null==i||null==a||xF(i)&&[...xG(i.body),...xH(i.body)].length>0||!ll.match(a).with({type:_W.AST_NODE_TYPES.ArrayExpression},e=>0===e.elements.length).with({type:_W.AST_NODE_TYPES.Identifier},e=>{let t=x7(Er(e.name,n),0);return t?.type===_W.AST_NODE_TYPES.ArrayExpression&&0===t.elements.length}).otherwise(()=>!1))return;let o=ll.match(i).with({type:_W.AST_NODE_TYPES.ArrowFunctionExpression},e=>e.body.type===_W.AST_NODE_TYPES.ArrowFunctionExpression?e.body:e).with({type:_W.AST_NODE_TYPES.FunctionExpression},le).with({type:_W.AST_NODE_TYPES.Identifier},e=>{let t=x7(Er(e.name,n),0);return t?.type!==_W.AST_NODE_TYPES.ArrowFunctionExpression&&t?.type!==_W.AST_NODE_TYPES.FunctionExpression?null:t}).otherwise(()=>null);null!=o&&(Ea(e.sourceCode.getScope(o)).flatMap(e=>e.references).some(e=>e.resolved?.scope.block===r)||e.report({messageId:"noUnnecessaryUseMemo",node:t}))}}:{}},defaultOptions:[]});let CN=["useMDXComponents"];var CF=PS({meta:{type:"problem",docs:{description:"Enforces that a function with the `use` prefix should use at least one Hook inside of it.",[Symbol.for("rule_features")]:["EXP"]},messages:{noUnnecessaryUsePrefix:"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:function(e){let t,n,{ctx:r,listeners:i}=(t=new Map,n=[],{ctx:{getAllHooks:e=>t},listeners:{":function[type]":e=>{let r=xX(e),i=_h(),a=r?.name;if(null!=a&&Ek(a)){n.push({key:i,node:e,isHook:!0}),t.set(i,{id:r,key:i,kind:"function",name:a,node:e,flag:0n,hint:0n,hookCalls:[]});return}n.push({key:i,node:e,isHook:!1})},":function[type]:exit":()=>{n.pop()},"CallExpression[type]"(e){if(!EP(e))return;let r=n.at(-1);if(r?.key==null)return;let i=t.get(r.key);null!=i&&i.hookCalls.push(e)}}});return{...i,"Program:exit"(t){for(let{id:n,name:i,node:a,hookCalls:o}of r.getAllHooks(t).values()){if(!(o.length>0||a.body.type===_W.AST_NODE_TYPES.BlockStatement&&0===a.body.body.length||CN.includes(i)))e.sourceCode.getCommentsInside(a).some(({value:e})=>/use\([\s\S]*?\)/u.test(e)||/use[A-Z0-9]\w*\([\s\S]*?\)/u.test(e))||null==x$(a,x4)&&e.report({messageId:"noUnnecessaryUsePrefix",node:n??a,data:{name:i}})}}}},defaultOptions:[]}),CO=PS({meta:{type:"problem",docs:{description:"Warns the usage of `UNSAFE_componentWillMount` in class components.",[Symbol.for("rule_features")]:[]},messages:{noUnsafeComponentWillMount:"Do not use 'UNSAFE_componentWillMount'."},schema:[]},name:"no-unsafe-component-will-mount",create:function(e){if(!e.sourceCode.text.includes("UNSAFE_componentWillMount"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{node:r}of t.getAllComponents(n).values()){let{body:t}=r.body;for(let n of t)k_(n)&&e.report({messageId:"noUnsafeComponentWillMount",node:n})}}}},defaultOptions:[]}),CI=PS({meta:{type:"problem",docs:{description:"Warns the usage of `UNSAFE_componentWillReceiveProps` in class components.",[Symbol.for("rule_features")]:[]},messages:{noUnsafeComponentWillReceiveProps:"Do not use 'UNSAFE_componentWillReceiveProps'."},schema:[]},name:"no-unsafe-component-will-receive-props",create:function(e){if(!e.sourceCode.text.includes("UNSAFE_componentWillReceiveProps"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{node:r}of t.getAllComponents(n).values()){let{body:t}=r.body;for(let n of t)kd(n)&&e.report({messageId:"noUnsafeComponentWillReceiveProps",node:n})}}}},defaultOptions:[]}),CL=PS({meta:{type:"problem",docs:{description:"Warns the usage of `UNSAFE_componentWillUpdate` in class components.",[Symbol.for("rule_features")]:[]},messages:{noUnsafeComponentWillUpdate:"Do not use 'UNSAFE_componentWillUpdate'."},schema:[]},name:"no-unsafe-component-will-update",create:function(e){if(!e.sourceCode.text.includes("UNSAFE_componentWillUpdate"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{node:r}of t.getAllComponents(n).values()){let{body:t}=r.body;for(let n of t)kp(n)&&e.report({messageId:"noUnsafeComponentWillUpdate",node:n})}}}},defaultOptions:[]}),CM=PS({meta:{type:"problem",docs:{description:"Prevents non-stable values (i.e. object literals) from being used as a value for `Context.Provider`.",[Symbol.for("rule_features")]:[]},messages:{unstableContextValue:"A/an '{{type}}' 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:function(e){let{version:t}=_Y(e),n=kD(t,"19.0.0","<"),{ctx:r,listeners:i}=kt(e),a=new WeakMap;return{...i,JSXOpeningElement(t){var i,o;let s=E$(e,t.parent).split(".").at(-1);if(null==s||(i=s,o=n,!("Provider"===i||!o&&(i.endsWith("Context")||i.endsWith("CONTEXT")))))return;let l=r.getCurrentEntry();if(null==l)return;let c=t.attributes.find(e=>e.type===_W.AST_NODE_TYPES.JSXAttribute&&"value"===e.name.name);if(null==c||!("value"in c))return;let u=c.value;if(u?.type!==_W.AST_NODE_TYPES.JSXExpressionContainer)return;let _=u.expression,d=Et(_,e.sourceCode.getScope(_));null==d||EP(d.node)||lo(a,l.node,()=>[]).push(d)},"Program:exit"(t){for(let{node:n}of r.getAllComponents(t).values())for(let t of a.get(n)??[]){let{kind:n,node:r}=t,i=n.startsWith("Function")?"Consider wrapping it in a useCallback hook.":"Consider wrapping it in a useMemo hook.";e.report({messageId:"unstableContextValue",node:r,data:{type:xV(r),suggestion:i}})}}}},defaultOptions:[]}),CR=PS({meta:{type:"problem",docs:{description:"Prevents using referential-type values as default props in object destructuring.",[Symbol.for("rule_features")]:[]},messages:{noUnstableDefaultProps:"A/an '{{forbiddenType}}' as default prop. This could lead to potential infinite render loop in React. Use a variable instead of '{{forbiddenType}}'."},schema:[]},name:"no-unstable-default-props",create:function(e){let{ctx:t,listeners:n}=kt(e),r=new WeakMap;return{...n,"VariableDeclarator[id.type='ObjectPattern'][init.type='Identifier']"(e){let n=t.getCurrentEntry();null!=n&&lo(r,n.node,()=>[]).push(e)},"Program:exit"(n){for(let{node:i}of t.getAllComponents(n).values()){let{params:t}=i,[n]=t;if(null!=n)for(let t of ll.match(n).with({type:_W.AST_NODE_TYPES.ObjectPattern},({properties:e})=>e).with({type:_W.AST_NODE_TYPES.Identifier},({name:e})=>r.get(i)?.filter(t=>t.init.name===e).flatMap(e=>e.id.properties)??[]).otherwise(()=>[])){if(t.type!==_W.AST_NODE_TYPES.Property||t.value.type!==_W.AST_NODE_TYPES.AssignmentPattern)continue;let{value:n}=t,{right:r}=n,i=Et(n,e.sourceCode.getScope(n),Ee.StrictCallExpression);if(null==i||EP(i.node))continue;let a=xV(r);e.report({messageId:"noUnstableDefaultProps",node:r,data:{forbiddenType:a}})}}}}},defaultOptions:[]});let Cj=new Set(["componentDidCatch","componentDidMount","componentDidUpdate","componentWillMount","componentWillReceiveProps","componentWillUnmount","componentWillUpdate","constructor","getSnapshotBeforeUpdate","render","shouldComponentUpdate","state","UNSAFE_componentWillMount","UNSAFE_componentWillReceiveProps","UNSAFE_componentWillUpdate"]);function CY(e,t){return ll.match(t).with({type:_W.AST_NODE_TYPES.Literal},lr).with({type:_W.AST_NODE_TYPES.TemplateLiteral,expressions:[]},lr).with({type:_W.AST_NODE_TYPES.Identifier},()=>!e.computed).otherwise(li)}var CU=PS({meta:{type:"problem",docs:{description:"Warns unused class component methods and properties.",[Symbol.for("rule_features")]:[]},messages:{noUnusedClassComponentMembers:"Unused method or property '{{methodName}}'' of class '{{className}}'."},schema:[]},name:"no-unused-class-component-members",create:function(e){let t=[],n=[],r=new WeakMap,i=new WeakMap;function a(e){t.push(e),EX(e)&&(r.set(e,new Set),i.set(e,new Set))}function o(){let n=t.pop();if(null==n||!EX(n))return;let a=xw(n)?.name,o=r.get(n),s=i.get(n);if(null!=o)for(let t of o){let n=x6(t);null!=n&&(s?.has(n)||Cj.has(n)||e.report({messageId:"noUnusedClassComponentMembers",node:t,data:{className:a??"Component",methodName:n}}))}}function s(e){n.push(e);let i=t.at(-1);null!=i&&EX(i)&&!e.static&&CY(e,e.key)&&r.get(i)?.add(e.key)}function l(){n.pop()}return{ClassDeclaration:a,"ClassDeclaration:exit":o,ClassExpression:a,"ClassExpression:exit":o,MemberExpression(e){let a=t.at(-1),o=n.at(-1);if(null==a||null==o||!EX(a)||o.static||!xq(e.object)||!CY(e,e.property))return;if(e.parent.type===_W.AST_NODE_TYPES.AssignmentExpression&&e.parent.left===e)return void r.get(a)?.add(e.property);let s=x6(e.property);null!=s&&i.get(a)?.add(s)},MethodDefinition:s,"MethodDefinition:exit":l,PropertyDefinition:s,"PropertyDefinition:exit":l,VariableDeclarator(e){let r=t.at(-1),a=n.at(-1);if(null!=r&&null!=a&&EX(r)&&!a.static&&null!=e.init&&xq(e.init)&&e.id.type===_W.AST_NODE_TYPES.ObjectPattern){for(let t of e.id.properties)if(t.type===_W.AST_NODE_TYPES.Property&&CY(t,t.key)){let e=x6(t.key);null!=e&&i.get(r)?.add(e)}}}}},defaultOptions:[]}),CB=PS({meta:{type:"problem",docs:{description:"Warns component props that are defined but never used.",[Symbol.for("rule_features")]:["TSC","EXP"]},messages:{noUnusedProps:"Prop `{{name}}` is declared but never used"},schema:[]},name:"no-unused-props",create:function(e){let t=h3.ESLintUtils.getParserServices(e,!1),{ctx:n,listeners:r}=kt(e);return{...r,"Program:exit"(r){let i=t.program.getTypeChecker(),a=n.getAllComponents(r),o=new Set,s=new Set;for(let[,n]of a){let[r]=n.node.params;if(null==r)continue;let a=new Set;if(!function(e,t,n){switch(n.type){case _W.AST_NODE_TYPES.Identifier:return CJ(e,t,n);case _W.AST_NODE_TYPES.ObjectPattern:return CV(e,t,n);default:return!1}}(e,a,r))continue;let l=t.esTreeNodeToTSNodeMap.get(r);for(let e of i.getTypeAtLocation(l).getProperties())o.add(e),a.has(e.name)&&s.add(e)}for(let n of[...o].filter(e=>!s.has(e)))!function(e,t,n){let r=n.getDeclarations()?.[0];if(null==r)return;let i=t.tsNodeToESTreeNodeMap.get(r);if(null==i)return;let a=i.type===_W.AST_NODE_TYPES.TSPropertySignature?i.key:i;e.report({messageId:"noUnusedProps",node:a,data:{name:n.name}})}(e,t,n)}}},defaultOptions:[]});function CV(e,t,n){for(let o of n.properties)switch(o.type){case _W.AST_NODE_TYPES.Property:{let e=Cz(o.key);if(null==e)return!1;t.add(e);break}case _W.AST_NODE_TYPES.RestElement:var r,i,a;if(r=e,i=t,!((a=o).argument.type===_W.AST_NODE_TYPES.Identifier&&CJ(r,i,a.argument)))return!1}return!0}function CJ(e,t,n){let r=e.sourceCode.getScope(n).variables.find(e=>e.name===n.name);if(null==r)return!1;for(let i of r.references)if(i.identifier!==n&&!function(e,t,n,r){let{parent:i}=r.identifier;switch(i.type){case _W.AST_NODE_TYPES.MemberExpression:if(i.object.type===_W.AST_NODE_TYPES.Identifier&&i.object.name===n.name){let e=Cz(i.property);if(null==e)return!1;return t.add(e),!0}break;case _W.AST_NODE_TYPES.VariableDeclarator:if(i.id.type===_W.AST_NODE_TYPES.ObjectPattern&&i.init===r.identifier)return CV(e,t,i.id)}return!1}(e,t,n,i))return!1;return!0}function Cz(e){switch(e.type){case _W.AST_NODE_TYPES.Identifier:return e.name;case _W.AST_NODE_TYPES.Literal:if("string"==typeof e.value)return e.value}return null}var Cq=PS({meta:{type:"problem",docs:{description:"Warns unused class component state.",[Symbol.for("rule_features")]:[]},messages:{noUnusedState:"Unused class component state in '{{className}}'"},schema:[]},name:"no-unused-state",create:function(e){let t=[],n=[],r=[],i=new WeakMap;function a(e){t.push(e)}function o(){let n=t.pop();if(null==n||!EX(n))return;let r=xw(n)?.name,{node:a,isUsed:o=!1}=i.get(n)??{};null==a||o||e.report({messageId:"noUnusedState",node:a,data:{className:r??"Component"}})}function s(e){n.push(e);let r=t.at(-1);if(null!=r&&EX(r)){if(e.static){if(kf(e)&&ll.isMatching({params:[ll.P.nonNullable,...ll.P.array()]})(e.value)){let e=i.get(r)?.node;i.set(r,{node:e,isUsed:!0})}return}"state"===x6(e.key)&&i.set(r,{node:e.key,isUsed:!1})}}function l(){n.pop()}return{AssignmentExpression(e){if(!kx(e))return;let n=t.at(-1);if(null==n||!EX(n))return;let a=r.at(-1);if(null==a||!n.body.body.includes(a))return;let o=i.get(n)?.isUsed??!1;i.set(n,{node:e.left,isUsed:o})},ClassDeclaration:a,"ClassDeclaration:exit":o,ClassExpression:a,"ClassExpression:exit":o,MemberExpression(e){if(!xq(e.object)||"state"!==x6(e.property))return;let a=t.at(-1);if(null==a||!EX(a))return;let o=n.at(-1);if(null==o||o.static||o===r.at(-1)||!a.body.body.includes(o))return;let s=i.get(a)?.node;i.set(a,{node:s,isUsed:!0})},MethodDefinition:s,"MethodDefinition:exit":l,"MethodDefinition[key.name='constructor']":function(e){r.push(e)},"MethodDefinition[key.name='constructor']:exit":function(){r.pop()},PropertyDefinition:s,"PropertyDefinition:exit":l,VariableDeclarator(e){let a=t.at(-1);if(null==a||!EX(a))return;let o=n.at(-1);if(null==o||o.static||o===r.at(-1)||!a.body.body.includes(o)||null==e.init||!xq(e.init)||e.id.type!==_W.AST_NODE_TYPES.ObjectPattern||!e.id.properties.some(e=>{var t;return!!(e.type===_W.AST_NODE_TYPES.Property&&(t=e.key,ll.match(t).with({type:_W.AST_NODE_TYPES.Literal},lr).with({type:_W.AST_NODE_TYPES.TemplateLiteral,expressions:[]},lr).with({type:_W.AST_NODE_TYPES.Identifier},()=>!e.computed).otherwise(li)))&&"state"===x6(e.key)}))return;let s=i.get(a)?.node;i.set(a,{node:s,isUsed:!0})}}},defaultOptions:[]}),C$=PS({meta:{type:"problem",docs:{description:"Replaces usages of `useContext` with `use`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noUseContext:"In React 19, 'use' is preferred over 'useContext' because it is more flexible."},schema:[]},name:"no-use-context",create:function(e){if(!e.sourceCode.text.includes("useContext"))return{};let t=_Y(e);if(kD(t.version,"19.0.0","<"))return{};let n=new Set;return{CallExpression(e){EP(e)&&n.add(e)},ImportDeclaration(n){if(n.source.value!==t.importSource)return;let r=n.specifiers.some(ll.isMatching({local:{type:_W.AST_NODE_TYPES.Identifier,name:"use"}}));for(let t of n.specifiers)t.type===_W.AST_NODE_TYPES.ImportSpecifier&&t.imported.type===_W.AST_NODE_TYPES.Identifier&&"useContext"===t.imported.name&&e.report({messageId:"noUseContext",node:t,fix(n){if(r){let r=e.sourceCode.getTokenBefore(t);return[n.remove(t),...r?.value===","?[n.replaceTextRange([r.range[1],t.range[0]],"")]:[],...(function(e,t){let n=e.sourceCode.getTokenBefore(t),r=e.sourceCode.getTokenAfter(t),i=[];return r?.value!==","&&n?.value===","&&i.push(n),r?.value===","&&i.push(r),i})(e,t).map(e=>n.remove(e))]}return n.replaceText(t.imported,"use")}})},"Program:exit"(){for(let t of n)EN(t)&&e.report({messageId:"noUseContext",node:t.callee,fix(e){switch(t.callee.type){case _W.AST_NODE_TYPES.Identifier:return e.replaceText(t.callee,"use");case _W.AST_NODE_TYPES.MemberExpression:return e.replaceText(t.callee.property,"use")}return null}})}}},defaultOptions:[]}),CW=PS({meta:{type:"problem",docs:{description:"Disallow useless `forwardRef` calls on components that don't use `ref`s.",[Symbol.for("rule_features")]:[]},messages:{noUselessForwardRef:"A 'forwardRef' is used with this component but no 'ref' parameter is set."},schema:[]},name:"no-useless-forward-ref",create:function(e){return{CallExpression(t){if(!ES(e,t))return;let[n]=t.arguments;null!=n&&xF(n)&&null==n.params[1]&&e.report({messageId:"noUselessForwardRef",node:t.callee})}}},defaultOptions:[]});let CK=[{allowExpressions:!0}];var CH=PS({meta:{type:"problem",defaultOptions:[...CK],docs:{description:"Disallow useless fragment elements."},fixable:"code",messages:{uselessFragment:"A fragment {{reason}} is useless."},schema:[{type:"object",additionalProperties:!1,properties:{allowExpressions:{type:"boolean",description:"Allow fragments with a single expression child"}}}]},name:"no-useless-fragment",create:function(e,[t]){let{allowExpressions:n=!0}=t;return{JSXElement(t){EK(e,t)&&CX(e,t,n)},JSXFragment(t){CX(e,t,n)}}},defaultOptions:CK});function CG(e){return"string"==typeof e.value&&""===e.raw.trim()}function CX(e,t,n){if(t.type===_W.AST_NODE_TYPES.JSXElement&&null!=ER(e,t)("key"))return;if(EW(e,t.parent)&&e.report({messageId:"uselessFragment",node:t,data:{reason:"placed inside a host component"},fix:CQ(e,t)}),0===t.children.length)return void e.report({messageId:"uselessFragment",node:t,data:{reason:"contains less than two children"},fix:CQ(e,t)});let r=xN([_W.AST_NODE_TYPES.JSXElement,_W.AST_NODE_TYPES.JSXFragment])(t.parent);switch(!0){case n&&!r&&1===t.children.length&&Ez(t.children.at(0)):return;case!n&&r:case!n&&!r&&1===t.children.length:e.report({messageId:"uselessFragment",node:t,data:{reason:"contains less than two children"},fix:CQ(e,t)});return}let i=t.children.filter(e=>!(Ez(e)&&CG(e)&&e.raw.includes("\n"))),a=i.at(0);(0===i.length||1===i.length&&a?.type!==_W.AST_NODE_TYPES.JSXExpressionContainer)&&e.report({messageId:"uselessFragment",node:t,data:{reason:"contains less than two children"},fix:CQ(e,t)})}function CQ(e,t){var n,r;return(n=e,(r=t).parent.type===_W.AST_NODE_TYPES.JSXElement||r.parent.type===_W.AST_NODE_TYPES.JSXFragment?EW(n,r.parent):0!==r.children.length&&!r.children.some(e=>Ez(e)&&!CG(e)||xD(_W.AST_NODE_TYPES.JSXExpressionContainer)(e)))?n=>{let r,i,a,o,s=t.type===_W.AST_NODE_TYPES.JSXFragment?t.openingFragment:t.openingElement,l=t.type===_W.AST_NODE_TYPES.JSXFragment?t.closingFragment:t.closingElement,c=s.type===_W.AST_NODE_TYPES.JSXOpeningElement&&s.selfClosing?"":e.sourceCode.getText().slice(s.range[1],l?.range[0]);return n.replaceText(t,(r=/^\s*/.exec(c)?.[0]??"",i=/\s*$/.exec(c)?.[0]??"",a=r.includes("\n")?r.length:0,o=i.includes("\n")?c.length-i.length:c.length,c.slice(a,o)))}:null}var CZ=PS({meta:{type:"problem",docs:{description:"Enforces destructuring assignment for component props and context.",[Symbol.for("rule_features")]:[]},messages:{preferDestructuringAssignment:"Use destructuring assignment for {{name}}."},schema:[]},name:"prefer-destructuring-assignment",create:function(e){let{ctx:t,listeners:n}=kt(e),r=[];return{...n,MemberExpression(t){if(t.object.type===_W.AST_NODE_TYPES.Identifier&&"name"in t.object){let n=e.sourceCode.getScope(t);r.push([n,t])}},"Program:exit"(n){let i=[...t.getAllComponents(n).values()];function a(e){if(!xF(e))return!1;let t=xX(e);return null!=t&&E7(t.name)&&i.some(t=>t.node===e)}for(let[t,n]of r){let r=t,i=a(r.block);for(;!i&&null!=r.upper&&r.upper!==r;)i=a((r=r.upper).block);if(!i)continue;let o=r.block;if(!("params"in o))continue;let[s,l]=o.params,c=e=>null!=e&&e.type===_W.AST_NODE_TYPES.Identifier&&e.name===n.object.name;c(s)&&e.report({messageId:"preferDestructuringAssignment",node:n,data:{name:"props"}}),c(l)&&e.report({messageId:"preferDestructuringAssignment",node:n,data:{name:"context"}})}}}},defaultOptions:[]}),C0=PS({meta:{type:"problem",docs:{description:"Enforces React is imported via a namespace import.",[Symbol.for("rule_features")]:["FIX"]},fixable:"code",messages:{preferNamespaceImport:"Prefer importing React as 'import * as React from \"{{importSource}}\"';"},schema:[]},name:"prefer-namespace-import",create:function(e){let{importSource:t}=_Y(e);return{[`ImportDeclaration[source.value="${t}"] ImportDefaultSpecifier`](n){let r=n.parent.specifiers.length>1;e.report({messageId:"preferNamespaceImport",node:r?n:n.parent,data:{importSource:t},fix(i){let a=e.sourceCode.getText(n.parent),o=a.endsWith(";")?";":"",s=n.parent.source.raw.at(0)??"'",l=`import${"type"===n.parent.importKind?" type":""}`,c=`${s}${t}${s}`;if(!r)return i.replaceText(n.parent,`${l} * as ${n.local.name} from ${c}${o}`);let u=a.slice(a.indexOf("{"),a.indexOf("}")+1);return i.replaceText(n.parent,`${l} * as ${n.local.name} from ${c}${o}
|
|
399
399
|
${l} ${u} from ${c}${o}`)}})}}},defaultOptions:[]}),C1=PS({meta:{type:"problem",docs:{description:"Enforces read-only props in components.",[Symbol.for("rule_features")]:["TSC","EXP"]},messages:{preferReadOnlyProps:"A function component's props should be read-only."},schema:[]},name:"prefer-read-only-props",create:function(e){let t=h3.ESLintUtils.getParserServices(e,!1),{ctx:n,listeners:r}=kt(e);return{...r,"Program:exit"(r){for(let[,i]of n.getAllComponents(r)){if(null==i.id||null==i.name)continue;let[n]=i.node.params;null!=n&&!function(e,t){if(k5.isTypeReadonly(e.program,t))return!0;try{let n=function(e,t,n=[{type:{from:"lib",name:"Map"},to:sy.Mutable},{type:{from:"lib",name:"Set"},to:sy.Mutable},{type:{from:"lib",name:"Date"},to:sy.Mutable},{type:{from:"lib",name:"URL"},to:sy.Mutable},{type:{from:"lib",name:"URLSearchParams"},to:sy.Mutable}],r=!0,i=sy.Immutable,a=function(e,t,n,r,i=[]){var a,o,s,l;let c;if(0===r.length)return!1;let u=!1,_=function(e,t){if(null===t){let t="target"in e?e.target:e;return t.aliasSymbol?.getName()??null}return yg.isTypeAliasDeclaration(t.parent)?t.parent.name.getText():null}(t,n);if(null!==_){let e=e=>"string"==typeof e?e===_:e.test(_);if(i.some(e))return!1;u||=r.some(e)}let d=(a=e,o=t,null===(s=n)?a.getTypeChecker().typeToString(o,void 0,yg.TypeFormatFlags.AddUndefined|yg.TypeFormatFlags.NoTruncation|yg.TypeFormatFlags.OmitParameterModifiers|yg.TypeFormatFlags.UseFullyQualifiedType|yg.TypeFormatFlags.WriteArrayAsGenericType|yg.TypeFormatFlags.WriteArrowStyleSignature|yg.TypeFormatFlags.WriteTypeArgumentsOfSignature):s.getText()),p=e=>"string"==typeof e?e===d:e.test(d);if(i.some(p))return!1;u||=r.some(p);let f=(l=d,c=/^([^<]+)<.+>$/u.exec(l),c?.[1]??null);if(null!==f){let e=e=>"string"==typeof e?e===f:e.test(f);if(i.some(e))return!1;u||=r.some(e)}if(e.getTypeChecker().isArrayType(t)&&null!==n)if(yg.isTypeOperatorNode(n)&&n.operator===yg.SyntaxKind.ReadonlyKeyword||yg.isTypeOperatorNode(n.parent)&&n.parent.operator===yg.SyntaxKind.ReadonlyKeyword){let e=e=>"string"==typeof e&&"ReadonlyArray"===e;if(i.some(e))return!1;u||=r.some(e)}else{let e=e=>"string"==typeof e&&"Array"===e;if(i.some(e))return!1;u||=r.some(e)}return u}){let o=Object.hasOwn(t,"kind"),s=o?e.getTypeChecker().getTypeFromTypeNode(t):t;return function(e,t,n,r,i,a){let o,s=!0===r?Pd:!1===r?new WeakMap:r,l={program:e,overrides:n,cache:s,immutabilityLimits:{min:sy.Mutable,max:i},typeMatchesPatternSpecifier:a},c=[Pp(t)],u=sy.Unknown;do{switch((o=c.pop()).stage){case 0:!function(e,t,n){var r,i,a,o,s,l,c,u;let _,d,p=(r=e.program,i=e.cache,a=n.typeData,_=r.getTypeChecker(),d=a.typeNode??_.getRecursionIdentity(a.type),i.get(d));if(void 0!==p){n.immutability=p;return}let f=(o=n.typeData,e.overrides.find(t=>{var n,r,i;return n=e.program,r=t.type,i=e.typeMatchesPatternSpecifier,!vu(o.type)&&("string"==typeof r||r instanceof RegExp?Pu(n,r,o,i):function(e,t,n){var r,i,a,o,s,l,c;let[u,_]=function(e){let t=e.getSymbol()?.getDeclarations()??[],n=t.map(e=>e.getSourceFile());return[t,n]}(n);switch(t.from){case"lib":return Pn(e,_);case"package":return r=e,i=u,a=_,o=t.package,(Pr(i,o)||Pi(r,a,o))&&!Pn(e,_);case"file":return function(e,t,n){let r=e.getCurrentDirectory(),i=yg.getEffectiveTypeRoots(e.getCompilerOptions(),e),a=void 0===i?t:t.filter(e=>!i.some(t=>e.path.startsWith(t)));return void 0===n?a.some(e=>!e.path.includes("/node_modules/")):a.some(e=>{let t=function(e){let t=sz.normalize(e),n=t.endsWith(sz.sep)?t.slice(0,-1):t;return void 0===yg.sys||yg.sys.useCaseSensitiveFileNames?n:n.toLowerCase()}(e.path);return t.startsWith(r)&&(Pt.isMatch(t,n)||Pt.isMatch(`./${sz.relative(r,t)}`,n))})}(e,_,t.path)&&!Pn(e,_)&&(s=e,l=u,c=_,!(Pr(l,void 0)||Pi(s,c,void 0)))}}(n,r,o.type)&&Pu(n,r,o,i))}));if(f?.to!==void 0){if(void 0===f.from){n.immutability=f.to,Pc(e.program,e.cache,n.typeData,n.immutability);return}t.push({taskState:n,override:f,stage:6})}if(Pc(e.program,e.cache,n.typeData,n.immutability),vh(n.typeData.type))return function(e,t){let n=t.typeData.type.types.map((e,n)=>Pp(Pl(e,null!==t.typeData.typeNode&&yg.isUnionTypeNode(t.typeData.typeNode)?t.typeData.typeNode.types[n]:void 0)));e.push(Pf(t,n,Pa),...n)}(t,n);if(vm(n.typeData.type)){return l=e,c=t,u=n,Ph(l,c,u)}if(vp(n.typeData.type))return function(e,t,n){let r=e.program.getTypeChecker(),i=[n.typeData.type.root.node.trueType,n.typeData.type.root.node.falseType].map(e=>Pp(Pl(r.getTypeFromTypeNode(e),e)));t.push(Pf(n,i,Pa),...i)}(e,t,n);if((s=n.typeData.type).getCallSignatures().length>0&&0===s.getProperties().length)return n.immutability=sy.Immutable;let m=e.program.getTypeChecker();m.isTupleType(n.typeData.type)?function(e,t,n){if(!n.typeData.type.target.readonly){n.immutability=sy.Mutable;return}Pg(e,t,n)}(e,t,n):m.isArrayType(n.typeData.type)?Pg(e,t,n):vg(n.typeData.type)?Ph(e,t,n):n.immutability=sy.Immutable}(l,c,o);break;case 1:var _,d=o;d.immutability=d.children[0].immutability;for(let e=1;e<d.children.length;e++)d.immutability=d.childrenReducer(d.immutability,d.children[e].immutability);break;case 3:!function(e,t){e.push(Pm(t,()=>{t.stage=4,e.push(t)})),Py(e,t)}(c,o);break;case 4:!function(e,t,n){let[r,i]=vm(n.typeData.type)?[n.typeData.type.types,n.typeData.typeNode?.types]:[[n.typeData.type],null===n.typeData.typeNode?void 0:[n.typeData.typeNode]];t.push(Pm(n,()=>{n.stage=7,n.immutability=Po(n.limits.min,n.limits.max),t.push(n)}),Pm(n,()=>{let a=r.flatMap((t,r)=>Pv(e,n,yg.IndexKind.Number,Pl(t,i?.[r])));a.length>0&&t.push(Pf(n,a,Po),...a)}));let a=r.flatMap((t,r)=>Pv(e,n,yg.IndexKind.String,Pl(t,i?.[r])));a.length>0&&t.push(Pf(n,a,Po),...a)}(l,c,o);break;case 6:((_=o).override.from<=_.taskState.immutability&&_.taskState.immutability<=_.override.to||_.override.from>=_.taskState.immutability&&_.taskState.immutability>=_.override.to)&&(_.taskState.immutability=_.override.to),o=o.taskState;break;case 5:(function(e,t){if(t!==sy.Calculating&&(e.taskState.limits.max=Pa(e.taskState.limits.max,t),e.taskState.limits.min>=e.taskState.limits.max)){e.taskState.immutability=e.taskState.limits.min;return}e.notDoneAction()})(o,u),o=o.taskState}o.immutability!==sy.Calculating&&(Pc(e,s,o.typeData,o.immutability),u=o.immutability)}while(c.length>0);return o.immutability===sy.Calculating?sy.Unknown:o.immutability}(e,Pl(s,o?t:void 0),n,r,i,a)}(e.program,t);return Ps(n)||n>=sy.Immutable||n>=sy.ReadonlyShallow||n>=sy.ReadonlyDeep}catch{return!0}}(t,k5.getConstrainedTypeAtLocation(t,n))&&e.report({messageId:"preferReadOnlyProps",node:n})}}}},defaultOptions:[]});let C2=["Boolean","String","Number"],C3={meta:{name:"eslint-plugin-react-x",version:"2.2.3"},rules:{"jsx-key-before-spread":PY,"jsx-no-comment-textnodes":PU,"jsx-no-duplicate-props":PB,"jsx-no-iife":PV,"jsx-no-undef":PJ,"jsx-shorthand-boolean":Pq,"jsx-shorthand-fragment":PW,"jsx-uses-react":PK,"jsx-uses-vars":PG,"no-access-state-in-setstate":PX,"no-array-index-key":PZ,"no-children-count":P0,"no-children-for-each":P1,"no-children-map":P2,"no-children-only":P3,"no-children-prop":P6,"no-children-to-array":P4,"no-class-component":P8,"no-clone-element":P5,"no-component-will-mount":P7,"no-component-will-receive-props":P9,"no-component-will-update":Ce,"no-context-provider":Ct,"no-create-ref":Cn,"no-default-props":Cr,"no-direct-mutation-state":Ca,"no-duplicate-key":Co,"no-forbidden-props":Cu,"no-forward-ref":C_,"no-implicit-key":Cd,"no-leaked-conditional-rendering":Cp,"no-missing-component-display-name":Cf,"no-missing-context-display-name":Cm,"no-missing-key":Cg,"no-misused-capture-owner-stack":Ch,"no-nested-component-definitions":Cv,"no-nested-lazy-component-declarations":Cb,"no-prop-types":CT,"no-redundant-should-component-update":CS,"no-set-state-in-component-did-mount":Cx,"no-set-state-in-component-did-update":CE,"no-set-state-in-component-will-update":Ck,"no-string-refs":CP,"no-unnecessary-key":CC,"no-unnecessary-use-callback":CA,"no-unnecessary-use-memo":CD,"no-unnecessary-use-prefix":CF,"no-unsafe-component-will-mount":CO,"no-unsafe-component-will-receive-props":CI,"no-unsafe-component-will-update":CL,"no-unstable-context-value":CM,"no-unstable-default-props":CR,"no-unused-class-component-members":CU,"no-unused-props":CB,"no-unused-state":Cq,"no-use-context":C$,"no-useless-forward-ref":CW,"no-useless-fragment":CH,"prefer-destructuring-assignment":CZ,"prefer-namespace-import":C0,"prefer-read-only-props":C1,"prefer-use-state-lazy-initialization":PS({meta:{type:"problem",docs:{description:"Enforces function calls made inside `useState` to be wrapped in an `initializer function`.",[Symbol.for("rule_features")]:["EXP"]},messages:{preferUseStateLazyInitialization:"To prevent re-computation, consider using lazy initial state for useState calls that involve function calls. Ex: 'useState(() => getValue())'."},schema:[]},name:"prefer-use-state-lazy-initialization",create:function(e){return{CallExpression(t){if(!EO(t))return;let[n]=t.arguments;if(null!=n){for(let t of xH(n))!("name"in t.callee)||C2.includes(t.callee.name)||null==x$(t,EA)&&e.report({messageId:"preferUseStateLazyInitialization",node:t});for(let t of xG(n))!("name"in t.callee)||Ek(t.callee.name)||C2.includes(t.callee.name)||null==x$(t,EA)&&e.report({messageId:"preferUseStateLazyInitialization",node:t})}}}},defaultOptions:[]})}};var C6=PT({name:()=>C4,plugins:()=>C5,rules:()=>C8,settings:()=>C7});let C4="react-x/recommended",C8={"react-x/jsx-key-before-spread":"warn","react-x/jsx-no-comment-textnodes":"warn","react-x/jsx-no-duplicate-props":"warn","react-x/jsx-uses-react":"warn","react-x/jsx-uses-vars":"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-default-props":"error","react-x/no-direct-mutation-state":"error","react-x/no-duplicate-key":"error","react-x/no-forward-ref":"warn","react-x/no-implicit-key":"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-prop-types":"error","react-x/no-redundant-should-component-update":"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-string-refs":"error","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-use-context":"warn","react-x/no-useless-forward-ref":"warn","react-x/prefer-use-state-lazy-initialization":"warn"},C5={"react-x":C3},C7={"react-x":_R},C9={"react-x/jsx-no-duplicate-props":"off","react-x/jsx-no-undef":"off","react-x/jsx-uses-react":"off","react-x/jsx-uses-vars":"off"};var we=PT({name:()=>wt,plugins:()=>wr,rules:()=>wn,settings:()=>wi});let wt="react-x/recommended-typescript",wn={...C8,...C9},wr={...C5},wi={...C7};var wa=PT({name:()=>wo,plugins:()=>wl,rules:()=>ws,settings:()=>wc});let wo="react-x/recommended-type-checked",ws={...wn,"react-x/no-leaked-conditional-rendering":"error"},wl={...wr},wc={...wi};var wu=PT({name:()=>w_,plugins:()=>wp,rules:()=>wd,settings:()=>wf});let w_="react-x/strict",wd={...C8,"react-x/jsx-no-iife":"error","react-x/no-children-prop":"error","react-x/no-class-component":"error","react-x/no-misused-capture-owner-stack":"error","react-x/no-unnecessary-key":"warn","react-x/no-unnecessary-use-callback":"warn","react-x/no-unnecessary-use-memo":"warn","react-x/no-unstable-context-value":"warn","react-x/no-unstable-default-props":"warn","react-x/no-unused-class-component-members":"warn","react-x/no-unused-state":"warn","react-x/no-useless-fragment":"warn","react-x/prefer-destructuring-assignment":"warn"},wp={...C5},wf={...C7};var wm=PT({name:()=>wg,plugins:()=>wy,rules:()=>wh,settings:()=>wv});let wg="react-x/strict-typescript",wh={...wd,...C9},wy={...wp},wv={...wf};var wb=PT({name:()=>wT,plugins:()=>wx,rules:()=>wS,settings:()=>wE});let wT="react-x/strict-type-checked",wS={...wh,"react-x/no-leaked-conditional-rendering":"error","react-x/no-unused-props":"warn"},wx={...wy},wE={...wv},{toFlatConfig:wk}=_v("react-x",C3);var wP={...C3,configs:{recommended:wk(C6),"recommended-typescript":wk(we),"recommended-type-checked":wk(wa),strict:wk(wu),"strict-typescript":wk(wm),"strict-type-checked":wk(wb)}},wC=Object.defineProperty,ww=(e=>{let t={};for(var n in e)wC(t,n,{get:e[n],enumerable:!0});return t})({name:()=>wA,rules:()=>wD});let wA="react-hooks-extra/recommended",wD={"react-hooks-extra/no-direct-set-state-in-use-effect":"warn"};function wN(e){if(e.type!==_W.AST_NODE_TYPES.VariableDeclarator||e.id.type!==_W.AST_NODE_TYPES.Identifier)return!1;var t=e.init;if(t?.type!==_W.AST_NODE_TYPES.CallExpression)return!1;switch(t.callee.type){case _W.AST_NODE_TYPES.Identifier:return Ek(t.callee.name);case _W.AST_NODE_TYPES.MemberExpression:return t.callee.property.type===_W.AST_NODE_TYPES.Identifier&&Ek(t.callee.property.name);default:return!1}}let wF={meta:{name:"eslint-plugin-react-hooks-extra",version:"2.2.3"},rules:{"no-direct-set-state-in-use-effect":h3.ESLintUtils.RuleCreator(function(e){return`${_b}/docs/rules/hooks-extra-${e}`})({meta:{type:"problem",docs:{description:"Disallow direct calls to the `set` function of `useState` in `useEffect`.",[Symbol.for("rule_features")]:["EXP"]},messages:{noDirectSetStateInUseEffect:"Do not call the 'set' function '{{name}}' of 'useState' directly in 'useEffect'."},schema:[]},name:"no-direct-set-state-in-use-effect",create:function(e){if(!/use\w*Effect/u.test(e.sourceCode.text))return{};let t=[],n={current:null},r=[],i=[],a=new WeakMap,o=new WeakMap,s=new Map,l=new WeakMap,c=t=>e.sourceCode.getText(t);function u(e){return e.type===_W.AST_NODE_TYPES.CallExpression?xJ(e.callee,c):xJ(e,c)}function _(t,n){let r=x7(Er(t,e.sourceCode.getScope(t)),0);if(null==r||r.type!==_W.AST_NODE_TYPES.CallExpression||!EO(r))return!1;let i=r.parent;return!("id"in i)||i.id?.type!==_W.AST_NODE_TYPES.ArrayPattern||i.id.elements.findIndex(e=>e?.type===_W.AST_NODE_TYPES.Identifier&&e.name===t.name)===n}function d(t){switch(t.callee.type){case _W.AST_NODE_TYPES.CallExpression:{let{callee:n}=t.callee;if(n.type!==_W.AST_NODE_TYPES.MemberExpression||!("name"in n.object))return!1;let r=n.property.type===_W.AST_NODE_TYPES.Identifier&&"at"===n.property.name,[i]=t.callee.arguments;if(!r||null==i)return!1;return x5.getStaticValue(i,e.sourceCode.getScope(t))?.value===1&&_(n.object)}case _W.AST_NODE_TYPES.Identifier:return _(t.callee,1);case _W.AST_NODE_TYPES.MemberExpression:{if(!("name"in t.callee.object))return!1;let n=t.callee.property;return x5.getStaticValue(n,e.sourceCode.getScope(t))?.value===1&&_(t.callee.object,1)}default:return!1}}return{":function"(e){let r=function(e){let t=x$(e,e=>!xU(e))??e.parent;switch(!0){case e.async:case t.type===_W.AST_NODE_TYPES.CallExpression&&x3(t):return"deferred";case e.type!==_W.AST_NODE_TYPES.FunctionDeclaration&&t.type===_W.AST_NODE_TYPES.CallExpression&&t.callee===e:return"immediate";case e.parent?.type===_W.AST_NODE_TYPES.CallExpression&&e.parent.callee!==e&&Ew(e.parent):return"setup";default:return"other"}}(e);t.push({kind:r,node:e}),"setup"===r&&(n.current=e)},":function:exit"(e){let{kind:r}=t.at(-1)??{};"setup"===r&&n.current===e&&(n.current=null),t.pop()},CallExpression(o){let s=n.current,c=t.at(-1);null!=c&&!c.node.async&&ll.match(ll.match(o).when(EO,()=>"useState").when(Ew,()=>"useEffect").when(d,()=>"setState").when(x3,()=>"then").otherwise(()=>"other")).with("setState",()=>{switch(!0){case"deferred"===c.kind:case c.node.async:break;case c.node===s:case"immediate"===c.kind&&x$(c.node,xF)===s:e.report({messageId:"noDirectSetStateInUseEffect",node:o,data:{name:e.sourceCode.getText(o.callee)}});return;default:{let e=x$(o,wN)?.init;null==e?lo(a,c.node,()=>[]).push(o):lo(l,e,()=>[]).push(o)}}}).with("useEffect",()=>{xF(o.arguments.at(0))||r.push(...function e(t){let n=[];if(t.type===_W.AST_NODE_TYPES.Identifier&&n.push(t),"arguments"in t){let r=t.arguments.map(e).flat(1);n.push(...r)}if("elements"in t){let r=t.elements.filter(e=>null!=e).map(e).flat(1);n.push(...r)}if("properties"in t){let r=t.properties.map(e).flat(1);n.push(...r)}if("expressions"in t){let r=t.expressions.map(e).flat(1);n.push(...r)}if("left"in t){let r=e(t.left);n.push(...r)}if("right"in t){let r=e(t.right);n.push(...r)}if(t.type===_W.AST_NODE_TYPES.Property){let r=e(t.value);n.push(...r)}if(t.type===_W.AST_NODE_TYPES.SpreadElement){let r=e(t.argument);n.push(...r)}if(t.type===_W.AST_NODE_TYPES.MemberExpression){let r=e(t.object);n.push(...r)}if(t.type===_W.AST_NODE_TYPES.UnaryExpression){let r=e(t.argument);n.push(...r)}if(t.type===_W.AST_NODE_TYPES.ChainExpression){let r=e(t.expression);n.push(...r)}if(t.type===_W.AST_NODE_TYPES.TSNonNullExpression){let r=e(t.expression);n.push(...r)}if(t.type===_W.AST_NODE_TYPES.TSAsExpression){let r=e(t.expression);n.push(...r)}if(t.type===_W.AST_NODE_TYPES.TSSatisfiesExpression){let r=e(t.expression);n.push(...r)}return n}(o))}).with("other",()=>{c.node===s&&i.push(o)}).otherwise(ln)},Identifier(e){if((e.parent.type!==_W.AST_NODE_TYPES.CallExpression||e.parent.callee!==e)&&_(e,1))switch(e.parent.type){case _W.AST_NODE_TYPES.ArrowFunctionExpression:{let t=e.parent.parent;if(t.type!==_W.AST_NODE_TYPES.CallExpression||!EF(t))break;let n=x$(t,wN)?.init;null!=n&&lo(o,n,()=>[]).push(e);break}case _W.AST_NODE_TYPES.CallExpression:if(e!==e.parent.arguments.at(0))break;if(ED(e.parent)){let t=x$(e.parent,wN)?.init;null!=t&&lo(o,t,()=>[]).push(e);break}Ew(e.parent)&&lo(s,e.parent,()=>[]).push(e)}},"Program:exit"(){let t=(e,t)=>{let n=x7(Er(e,t),0);switch(n?.type){case _W.AST_NODE_TYPES.ArrowFunctionExpression:case _W.AST_NODE_TYPES.FunctionDeclaration:case _W.AST_NODE_TYPES.FunctionExpression:return a.get(n)??[];case _W.AST_NODE_TYPES.CallExpression:return l.get(n)??o.get(n)??[]}return[]};for(let[,t]of s)for(let n of t)e.report({messageId:"noDirectSetStateInUseEffect",node:n,data:{name:n.name}});for(let{callee:n}of i){if(!("name"in n))continue;let{name:r}=n;for(let i of t(r,e.sourceCode.getScope(n)))e.report({messageId:"noDirectSetStateInUseEffect",node:i,data:{name:u(i)}})}for(let n of r)for(let r of t(n.name,e.sourceCode.getScope(n)))e.report({messageId:"noDirectSetStateInUseEffect",node:r,data:{name:u(r)}})}}},defaultOptions:[]})}},{toFlatConfig:wO}=_v("react-hooks-extra",wF);var wI={...wF,configs:{recommended:wO(ww)}},wL=Object.defineProperty,wM=(e=>{let t={};for(var n in e)wL(t,n,{get:e[n],enumerable:!0});return t})({name:()=>wR,rules:()=>wj});let wR="react-naming-convention/recommended",wj={"react-naming-convention/context-name":"warn","react-naming-convention/use-state":"warn"},wY=h3.ESLintUtils.RuleCreator(function(e){return`${_b}/docs/rules/naming-convention-${e}`}),wU=[{allowAllCaps:!1,excepts:[],rule:"PascalCase"}];var wB=wY({meta:{type:"problem",defaultOptions:[...wU],docs:{description:"Enforces naming conventions for components."},messages:{invalidComponentName:"A component name '{{name}}' does not match {{rule}}."},schema:[{anyOf:[{type:"string",enum:["PascalCase","CONSTANT_CASE"]},{type:"object",additionalProperties:!1,properties:{allowAllCaps:{type:"boolean"},excepts:{type:"array",items:{type:"string",format:"regex"}},rule:{type:"string",enum:["PascalCase","CONSTANT_CASE"]}}}]}]},name:"component-name",create:function(e){let t,n,r=(t=e.options[0],n=wU[0],null==t?n:{...n,..."string"==typeof t?{rule:t}:{...t,excepts:t.excepts?.map(e=>_I(e))??[]}}),{rule:i}=r,a=kt(e),o=kn();return{...a.listeners,...o.listeners,"Program:exit"(t){let n=a.ctx.getAllComponents(t),s=o.ctx.getAllComponents(t);for(let{node:t}of n.values()){let n=xX(t);if(n?.name==null)continue;let a=n.name;wV(a,r)||e.report({messageId:"invalidComponentName",node:n,data:{name:a,rule:i}})}for(let{node:t}of s.values()){let n=xw(t);if(n?.name==null)continue;let a=n.name;wV(a,r)||e.report({messageId:"invalidComponentName",node:n,data:{name:a,rule:i}})}}}},defaultOptions:wU});function wV(e,t){if(null==e||t.excepts.some(t=>t.test(e)))return!0;let n=e.split(".").at(-1)??e;switch(t.rule){case"CONSTANT_CASE":return _k.test(n);case"PascalCase":if(n.length>3&&/^[A-Z]+$/u.test(n))return t.allowAllCaps;return _T.test(n)}}var wJ=wY({meta:{type:"problem",docs:{description:"Enforces context name to be a valid component name with the suffix `Context`."},messages:{invalidContextName:"A context name must be a valid component name with the suffix 'Context'."},schema:[]},name:"context-name",create:function(e){return e.sourceCode.text.includes("createContext")?{CallExpression(t){if(!Ev(e,t))return;let n=E1(t);if(null==n)return;let r=ll.match(n).with({type:_W.AST_NODE_TYPES.Identifier,name:ll.P.select()},le).with({type:_W.AST_NODE_TYPES.MemberExpression,property:{name:ll.P.select(ll.P.string)}},le).otherwise(()=>null);null!=r&&_F.test(r)&&r.endsWith("Context")||e.report({messageId:"invalidContextName",node:n})}}:{}},defaultOptions:[]});let wz=[{excepts:["index",String.raw`/^_/`,String.raw`/^\$/`,String.raw`/^[0-9]+$/`,String.raw`/^\[[^\]]+\]$/`],rule:"PascalCase"}];var wq=wY({meta:{type:"problem",defaultOptions:[...wz],docs:{description:"Enforces consistent file naming conventions."},messages:{empty:"A file must have non-empty name.",invalidCase:"A file with name '{{name}}' does not match {{rule}}. Rename it to '{{suggestion}}'."},schema:[{anyOf:[{type:"string",enum:["PascalCase","camelCase","kebab-case","snake_case"]},{type:"object",additionalProperties:!1,properties:{excepts:{type:"array",items:{type:"string",format:"regex"}},extensions:{type:"array",items:{type:"string"},uniqueItems:!0},rule:{type:"string",enum:["PascalCase","camelCase","kebab-case","snake_case"]}}}]}]},name:"filename",create:function(e){let t=e.options[0]??wz[0],n="string"==typeof t?t:t.rule??"PascalCase",r="string"==typeof t?[]:(t.excepts??[]).map(e=>_I(e));return{Program(t){let[i="",...a]=sP.basename(e.filename).split(".");0===i.length?e.report({messageId:"empty",node:t}):!function(e,t=n,i=r){if(i.some(t=>t.test(e)))return!0;let a=e.match(/[\w.-]/gu)?.join("")??"";return 0===a.length||ll.match(t).with("PascalCase",()=>_T.test(a)).with("camelCase",()=>_S.test(a)).with("kebab-case",()=>_x.test(a)).with("snake_case",()=>_E.test(a)).exhaustive()}(i)&&e.report({messageId:"invalidCase",node:t,data:{name:e.filename,rule:n,suggestion:[function(e,t=n){return ll.match(t).with("PascalCase",()=>v4(e)).with("camelCase",()=>v8(e)).with("kebab-case",()=>vZ(v5(v6(e),"-"))).with("snake_case",()=>v7(e)).exhaustive()}(i),...a].join(".")}})}}},defaultOptions:wz});let w$=[{allow:"as-needed",extensions:[".jsx",".tsx"],ignoreFilesWithoutCode:!1}],wW={meta:{name:"eslint-plugin-react-naming-convention",version:"2.2.3"},rules:{"component-name":wB,"context-name":wJ,filename:wq,"filename-extension":wY({meta:{type:"problem",defaultOptions:[...w$],docs:{description:"Enforces consistent file naming conventions."},messages:{missingJSXExtension:"Use {{extensions}} file extension for JSX files.",unnecessaryJSXExtension:"Do not use {{extensions}} file extension for files without JSX."},schema:[{anyOf:[{type:"string",enum:["always","as-needed"]},{type:"object",additionalProperties:!1,properties:{allow:{type:"string",enum:["always","as-needed"]},extensions:{type:"array",items:{type:"string"},uniqueItems:!0},ignoreFilesWithoutCode:{type:"boolean"}}}]}]},name:"filename-extension",create:function(e){let t=e.options[0]??w$[0],n=s9(t)?t.allow:t,r=s9(t)&&"extensions"in t?t.extensions:w$[0].extensions,i=r.map(e=>`'${e}'`).join(", "),a=e.filename,o=!1;return{JSXElement(){o=!0},JSXFragment(){o=!0},"Program:exit"(s){let l=a.slice(a.lastIndexOf(".")),c=r.includes(l);if(o&&!c)return void e.report({messageId:"missingJSXExtension",node:s,data:{extensions:i}});let u=s.body.length>0,_=s9(t)&&!0===t.ignoreFilesWithoutCode;(u||!_)&&!o&&c&&"as-needed"===n&&e.report({messageId:"unnecessaryJSXExtension",node:s,data:{extensions:i}})}}},defaultOptions:w$}),"use-state":wY({meta:{type:"problem",docs:{description:"Enforces destructuring and symmetric naming of `useState` hook value and setter.",[Symbol.for("rule_features")]:[]},messages:{invalidAssignment:"useState should be destructured into a value and setter pair, e.g., const [state, setState] = useState(...).",invalidSetterName:"The setter should be named 'set' followed by the capitalized state variable name, e.g., 'setState' for 'state'."},schema:[]},name:"use-state",create:function(e){return{CallExpression(t){if(!EO(t))return;if(t.parent.type!==_W.AST_NODE_TYPES.VariableDeclarator)return void e.report({messageId:"invalidAssignment",node:t});let n=E1(t);if(n?.type!==_W.AST_NODE_TYPES.ArrayPattern)return void e.report({messageId:"invalidAssignment",node:n??t});let[r,i]=n.elements;if(null==r||null==i)return void e.report({messageId:"invalidAssignment",node:n});let a=ll.match(i).with({type:_W.AST_NODE_TYPES.Identifier},e=>e.name).otherwise(()=>null);if(null==a||!a.startsWith("set"))return void e.report({messageId:"invalidSetterName",node:i});let o=ll.match(r).with({type:_W.AST_NODE_TYPES.Identifier},({name:e})=>v7(e)).with({type:_W.AST_NODE_TYPES.ObjectPattern},({properties:e})=>e.reduce((e,t)=>t.type===_W.AST_NODE_TYPES.Property&&t.key.type===_W.AST_NODE_TYPES.Identifier?[...e,t.key.name]:e,[]).join("_")).otherwise(()=>null);null==o?e.report({messageId:"invalidSetterName",node:r}):v7(a)!==`set_${o}`&&e.report({messageId:"invalidSetterName",node:i})}}},defaultOptions:[]})}},{toFlatConfig:wK}=_v("react-naming-convention",wW);var wH={...wW,configs:{recommended:wK(wM)}},wG=Object.defineProperty,wX=(e=>{let t={};for(var n in e)wG(t,n,{get:e[n],enumerable:!0});return t})({name:()=>wQ,rules:()=>wZ,settings:()=>w0});let wQ="react-web-api/recommended",wZ={"react-web-api/no-leaked-event-listener":"warn","react-web-api/no-leaked-interval":"warn","react-web-api/no-leaked-resize-observer":"warn","react-web-api/no-leaked-timeout":"warn"},w0={"react-x":_R},w1=h3.ESLintUtils.RuleCreator(function(e){return`${_b}/docs/rules/web-api-${e}`}),w2={capture:!1,signal:e};function w3(t,n){return function t(r){switch(r.type){case h3.AST_NODE_TYPES.Identifier:{let e=x7(Er(r,n),0);if(e?.type===h3.AST_NODE_TYPES.ObjectExpression)return t(e);return w2}case h3.AST_NODE_TYPES.Literal:return{...w2,capture:!!r.value};case h3.AST_NODE_TYPES.ObjectExpression:{let t=!!function(t,r=e=>!0){if(t?.type!==h3.AST_NODE_TYPES.Property)return e;let{value:i}=t,a=i;return r(a=i.type===h3.AST_NODE_TYPES.Literal?i.value:x5.getStaticValue(i,n)?.value)?a:e}(Ei("capture",r.properties,n)),i=Ei("signal",r.properties,n);return{capture:t,signal:i?.type===h3.AST_NODE_TYPES.Property?function t(n,r){if(null==n)return e;switch(n.type){case h3.AST_NODE_TYPES.Identifier:return t(x7(Er(n,r),0),r);case h3.AST_NODE_TYPES.MemberExpression:return n;default:return e}}(i.value,n):e}}default:return w2}}(t)}function w6(e){return e?.type===h3.AST_NODE_TYPES.NewExpression&&e.callee.type===h3.AST_NODE_TYPES.Identifier&&"ResizeObserver"===e.callee.name}function w4(e,t){switch(!0){case t.type===h3.AST_NODE_TYPES.Identifier:return w6(x7(Er(t,e.sourceCode.getScope(t)),0));case t.type===h3.AST_NODE_TYPES.MemberExpression:return w4(e,t.object);default:return!1}}let w8={meta:{name:"eslint-plugin-react-web-api",version:"2.2.3"},rules:{"no-leaked-event-listener":w1({meta:{type:"problem",docs:{description:"Prevents leaked `addEventListener` in a component or custom Hook.",[Symbol.for("rule_features")]:[]},messages:{expectedRemoveEventListenerInCleanup:"An 'addEventListener' in '{{effectMethodKind}}' should have a corresponding 'removeEventListener' in its cleanup function.",expectedRemoveEventListenerInUnmount:"An 'addEventListener' in 'componentDidMount' should have a corresponding 'removeEventListener' in 'componentWillUnmount' method.",unexpectedInlineFunction:"A/an '{{eventMethodKind}}' should not have an inline listener function."},schema:[]},name:"no-leaked-event-listener",create:function(e){if(!e.sourceCode.text.includes("addEventListener")||!/use\w*Effect|componentDidMount|componentWillUnmount/u.test(e.sourceCode.text))return{};let t=[],n=[],r=[],i=[];function a(e,t){return!0==(e.type===h3.AST_NODE_TYPES.MemberExpression&&t.type===h3.AST_NODE_TYPES.MemberExpression)&&xA(e.object,t.object)}function o(t,n,r){let i=t.arguments.at(1);xF(i)&&null==r.signal&&e.report({messageId:"unexpectedInlineFunction",node:i,data:{eventMethodKind:n}})}return{":function"(e){let n=kb(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(a){let s=t.findLast(e=>"other"!==e.kind)?.kind;null==s||ky.has(s)&&ll.match(function(e){switch(!0){case e.callee.type===h3.AST_NODE_TYPES.Identifier&&ll.isMatching(ll.P.union("addEventListener","removeEventListener","abort"))(e.callee.name):return e.callee.name;case e.callee.type===h3.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===h3.AST_NODE_TYPES.Identifier&&ll.isMatching(ll.P.union("addEventListener","removeEventListener","abort"))(e.callee.property.name):return e.callee.property.name;default:return"other"}}(a)).with("addEventListener",t=>{let[r,i,l]=a.arguments;if(null==r||null==i)return;let c=null==l?w2:w3(l,e.sourceCode.getScope(l)),{callee:u}=a;o(a,t,c),n.push({...c,type:r,node:a,callee:u,listener:i,method:"addEventListener",phase:s})}).with("removeEventListener",t=>{let[n,i,l]=a.arguments;if(null==n||null==i)return;let c=null==l?w2:w3(l,e.sourceCode.getScope(l)),{callee:u}=a;o(a,t,c),r.push({...c,type:n,node:a,callee:u,listener:i,method:"removeEventListener",phase:s})}).with("abort",()=>{i.push(a.callee)}).otherwise(()=>null)},"Program:exit"(){for(let t of n){let n=t.signal;if(!(null!=n&&i.some(e=>a(e,n)))&&!r.some(n=>(function(t,n){let{type:r,callee:i,capture:o,listener:s,phase:l}=t,{type:c,callee:u,capture:_,listener:d,phase:p}=n;return!!kv(l,p)&&a(i,u)&&xA(s,d)&&Es(r,c,[e.sourceCode.getScope(r),e.sourceCode.getScope(c)])&&o===_})(t,n)))switch(t.phase){case"setup":case"cleanup":e.report({messageId:"expectedRemoveEventListenerInCleanup",node:t.node,data:{effectMethodKind:"useEffect"}});continue;case"mount":case"unmount":e.report({messageId:"expectedRemoveEventListenerInUnmount",node:t.node});continue}}}}},defaultOptions:[]}),"no-leaked-interval":w1({meta:{type:"problem",docs:{description:"Prevents leaked `setInterval` in a component or custom Hook.",[Symbol.for("rule_features")]:[]},messages:{expectedClearIntervalInCleanup:"A 'setInterval' created in '{{ kind }}' must be cleared with 'clearInterval' in the cleanup function.",expectedClearIntervalInUnmount:"A 'setInterval' created in '{{ kind }}' must be cleared with 'clearInterval' in the 'componentWillUnmount' method.",expectedIntervalId:"A 'setInterval' must be assigned to a variable for proper cleanup."},schema:[]},name:"no-leaked-interval",create:function(e){if(!e.sourceCode.text.includes("setInterval"))return{};let t=[],n=[],r=[];return{":function"(e){let n=kb(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(i){switch(function(e){switch(!0){case e.callee.type===h3.AST_NODE_TYPES.Identifier&&ll.isMatching(ll.P.union("setInterval","clearInterval"))(e.callee.name):return e.callee.name;case e.callee.type===h3.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===h3.AST_NODE_TYPES.Identifier&&ll.isMatching(ll.P.union("setInterval","clearInterval"))(e.callee.property.name):return e.callee.property.name;default:return"other"}}(i)){case"setInterval":{let r=t.findLast(e=>"other"!==e.kind);if(null==r||!ky.has(r.kind))break;let a=En(i);if(null==a){e.report({messageId:"expectedIntervalId",node:i});break}n.push({kind:"interval",node:i,callee:i.callee,phase:r.kind,timerId:a});break}case"clearInterval":{let e=t.findLast(e=>"other"!==e.kind);if(null==e||!ky.has(e.kind))break;let[n]=i.arguments;if(null==n)break;r.push({kind:"interval",node:i,callee:i.callee,phase:e.kind,timerId:n})}}},"Program:exit"(){for(let t of n)if(!r.some(n=>E3(e,t.timerId,n.timerId)))switch(t.phase){case"setup":case"cleanup":e.report({messageId:"expectedClearIntervalInCleanup",node:t.node,data:{kind:"useEffect"}});continue;case"mount":case"unmount":e.report({messageId:"expectedClearIntervalInUnmount",node:t.node,data:{kind:"componentDidMount"}});continue}}}},defaultOptions:[]}),"no-leaked-resize-observer":w1({meta:{type:"problem",docs:{description:"Prevents leaked `ResizeObserver` in a component or custom Hook.",[Symbol.for("rule_features")]:[]},messages:{expectedDisconnectInControlFlow:"Dynamically added 'ResizeObserver.observe' should be cleared all at once using 'ResizeObserver.disconnect' in the cleanup function.",expectedDisconnectOrUnobserveInCleanup:"A 'ResizeObserver' instance created in 'useEffect' must be disconnected in the cleanup function.",unexpectedFloatingInstance:"A 'ResizeObserver' instance created in component or custom Hook must be assigned to a variable for proper cleanup."},schema:[]},name:"no-leaked-resize-observer",create:function(e){if(!e.sourceCode.text.includes("ResizeObserver"))return{};let t=[],n=[],r=[],i=[],a=[];return{":function"(e){let n=kb(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(n){if(n.callee.type!==h3.AST_NODE_TYPES.MemberExpression)return;let o=t.findLast(e=>"other"!==e.kind)?.kind;if(null==o||!ky.has(o))return;let{object:s}=n.callee;ll.match(function(e,t){switch(!0){case t.callee.type===h3.AST_NODE_TYPES.Identifier&&ll.isMatching(ll.P.union("observe","unobserve","disconnect"))(t.callee.name)&&w4(e,t.callee):return t.callee.name;case t.callee.type===h3.AST_NODE_TYPES.MemberExpression&&t.callee.property.type===h3.AST_NODE_TYPES.Identifier&&ll.isMatching(ll.P.union("observe","unobserve","disconnect"))(t.callee.property.name)&&w4(e,t.callee):return t.callee.property.name;default:return"other"}}(e,n)).with("disconnect",()=>{a.push({kind:"ResizeObserver",node:n,callee:n.callee,method:"disconnect",observer:s,phase:o})}).with("observe",()=>{let[e]=n.arguments;null!=e&&r.push({kind:"ResizeObserver",node:n,callee:n.callee,element:e,method:"observe",observer:s,phase:o})}).with("unobserve",()=>{let[e]=n.arguments;null!=e&&i.push({kind:"ResizeObserver",node:n,callee:n.callee,element:e,method:"unobserve",observer:s,phase:o})}).otherwise(()=>null)},NewExpression(r){let i=t.findLast(e=>"other"!==e.kind);if(null==i||!ky.has(i.kind)||!w6(r))return;let a=E1(r);null==a?e.report({messageId:"unexpectedFloatingInstance",node:r}):n.push({id:a,node:r,phase:i.kind,phaseNode:i.node})},"Program:exit"(){for(let{id:t,node:o,phaseNode:s}of n){if(a.some(n=>E3(e,n.observer,t)))continue;let n=r.filter(n=>E3(e,n.observer,t)),l=i.filter(n=>E3(e,n.observer,t)),c=e=>e?.type===h3.AST_NODE_TYPES.CallExpression||xY(e),u=e=>e===s;if(n.some(e=>!u(x$(e.node,s7(c,u))))){e.report({messageId:"expectedDisconnectInControlFlow",node:o});continue}for(let t of n)l.some(n=>E3(e,n.element,t.element))||e.report({messageId:"expectedDisconnectOrUnobserveInCleanup",node:t.node})}}}},defaultOptions:[]}),"no-leaked-timeout":w1({meta:{type:"problem",docs:{description:"Prevents leaked `setTimeout` in a component or custom Hook.",[Symbol.for("rule_features")]:[]},messages:{expectedClearTimeoutInCleanup:"A 'setTimeout' created in '{{ kind }}' must be cleared with 'clearTimeout' in the cleanup function.",expectedClearTimeoutInUnmount:"A 'setTimeout' created in '{{ kind }}' must be cleared with 'clearTimeout' in the 'componentWillUnmount' method.",expectedTimeoutId:"A 'setTimeout' must be assigned to a variable for proper cleanup."},schema:[]},name:"no-leaked-timeout",create:function(e){if(!e.sourceCode.text.includes("setTimeout"))return{};let t=[],n=[],r=[];return{":function"(e){let n=kb(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(i){let a=t.findLast(e=>"other"!==e.kind);if(ky.has(a?.kind))switch(function(e){switch(!0){case e.callee.type===h3.AST_NODE_TYPES.Identifier&&ll.isMatching(ll.P.union("setTimeout","clearTimeout"))(e.callee.name):return e.callee.name;case e.callee.type===h3.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===h3.AST_NODE_TYPES.Identifier&&ll.isMatching(ll.P.union("setTimeout","clearTimeout"))(e.callee.property.name):return e.callee.property.name;default:return"other"}}(i)){case"setTimeout":{let t=En(i);if(null==t){e.report({messageId:"expectedTimeoutId",node:i});break}n.push({kind:"timeout",node:i,callee:i.callee,phase:a.kind,timerId:t});break}case"clearTimeout":{let[e]=i.arguments;if(null==e)break;r.push({kind:"timeout",node:i,callee:i.callee,phase:a.kind,timerId:e})}}},"Program:exit"(){for(let t of n)if(!r.some(n=>E3(e,t.timerId,n.timerId)))switch(t.phase){case"setup":case"cleanup":e.report({messageId:"expectedClearTimeoutInCleanup",node:t.node,data:{kind:"useEffect"}});continue;case"mount":case"unmount":e.report({messageId:"expectedClearTimeoutInUnmount",node:t.node,data:{kind:"componentDidMount"}});continue}}}},defaultOptions:[]})}},{toFlatConfig:w5}=_v("react-web-api",w8);var w7={...w8,configs:{recommended:w5(wX)}},w9=Object.defineProperty,Ae=e=>{let t={};for(var n in e)w9(t,n,{get:e[n],enumerable:!0});return t};function At(e){let{polymorphicPropName:t}=_Y(e);return{resolve(n){let r=E$(e,n),i={domElementType:r,jsxElementType:r};if(r===r.toLowerCase()||null==t)return i;let a=ER(e,n)(t);if(null!=a){let n=Ej(e,a).toStatic(t);if("string"==typeof n)return{...i,domElementType:n}}return i}}}let An=h3.ESLintUtils.RuleCreator(function(e){return`${_b}/docs/rules/dom-${e}`}),Ar="dangerouslySetInnerHTML";var Ai=An({meta:{type:"problem",docs:{description:"Disallow `dangerouslySetInnerHTML`.",[Symbol.for("rule_features")]:[]},messages:{noDangerouslySetInnerhtml:"Using 'dangerouslySetInnerHTML' may have security implications."},schema:[]},name:"no-dangerously-set-innerhtml",create:function(e){return e.sourceCode.text.includes(Ar)?{JSXElement(t){let n=ER(e,t)(Ar);null!=n&&e.report({messageId:"noDangerouslySetInnerhtml",node:n})}}:{}},defaultOptions:[]}),Aa=An({meta:{type:"problem",docs:{description:"Disallow `dangerouslySetInnerHTML` and `children` at the same time.",[Symbol.for("rule_features")]:[]},messages:{noDangerouslySetInnerhtmlWithChildren:"A DOM component cannot use both children and 'dangerouslySetInnerHTML'."},schema:[]},name:"no-dangerously-set-innerhtml-with-children",create:function(e){return e.sourceCode.text.includes(Ao)?{JSXElement(t){let n=ER(e,t);if(null==n(Ao))return;let r=n("children")??t.children.find(As);null!=r&&e.report({messageId:"noDangerouslySetInnerhtmlWithChildren",node:r})}}:{}},defaultOptions:[]});let Ao="dangerouslySetInnerHTML";function As(e){return!Ez(e)||!(""===e.raw.trim()&&e.raw.includes("\n"))}var Al=An({meta:{type:"problem",docs:{description:"Disallow `findDOMNode`.",[Symbol.for("rule_features")]:[]},messages:{noFindDomNode:"[Deprecated] Use alternatives instead."},schema:[]},name:"no-find-dom-node",create:function(e){return e.sourceCode.text.includes(Ac)?{CallExpression(t){let{callee:n}=t;switch(n.type){case _W.AST_NODE_TYPES.Identifier:n.name===Ac&&e.report({messageId:"noFindDomNode",node:t});return;case _W.AST_NODE_TYPES.MemberExpression:n.property.type===_W.AST_NODE_TYPES.Identifier&&n.property.name===Ac&&e.report({messageId:"noFindDomNode",node:t});return}}}:{}},defaultOptions:[]});let Ac="findDOMNode";var Au=An({meta:{type:"problem",docs:{description:"Disallow `flushSync`.",[Symbol.for("rule_features")]:[]},messages:{noFlushSync:"Using 'flushSync' is uncommon and can hurt the performance of your app."},schema:[]},name:"no-flush-sync",create:function(e){return e.sourceCode.text.includes(A_)?{CallExpression(t){let{callee:n}=t;switch(n.type){case _W.AST_NODE_TYPES.Identifier:n.name===A_&&e.report({messageId:"noFlushSync",node:t});return;case _W.AST_NODE_TYPES.MemberExpression:n.property.type===_W.AST_NODE_TYPES.Identifier&&n.property.name===A_&&e.report({messageId:"noFlushSync",node:t});return}}}:{}},defaultOptions:[]});let A_="flushSync";var Ad=An({meta:{type:"problem",docs:{description:"Replaces usages of `ReactDom.hydrate()` with `hydrateRoot()`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noHydrate:"[Deprecated] Use 'hydrateRoot()' instead."},schema:[]},name:"no-hydrate",create:function(e){if(!e.sourceCode.text.includes(Ap)||kD(_Y(e).version,"18.0.0","<"))return{};let t=new Set,n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===_W.AST_NODE_TYPES.Identifier&&n.has(r.callee.name):case r.callee.type===_W.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===_W.AST_NODE_TYPES.Identifier&&r.callee.property.type===_W.AST_NODE_TYPES.Identifier&&r.callee.property.name===Ap&&t.has(r.callee.object.name):var i,a;e.report({messageId:"noHydrate",node:r,fix:(i=e,a=r,e=>{let[t,n]=a.arguments;return null==t||null==n?null:[e.insertTextBefore(i.sourceCode.ast,'import { hydrateRoot } from "react-dom/client";\n'),e.replaceText(a,`hydrateRoot(${i.sourceCode.getText(n)}, ${i.sourceCode.getText(t)})`)]})});return}},ImportDeclaration(e){let[r]=e.source.value.split("/");if("react-dom"===r)for(let r of e.specifiers)switch(r.type){case _W.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==_W.AST_NODE_TYPES.Identifier)continue;r.imported.name===Ap&&n.add(r.local.name);continue;case _W.AST_NODE_TYPES.ImportDefaultSpecifier:case _W.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]});let Ap="hydrate",Af=["button","submit","reset"];var Am=An({meta:{type:"problem",docs:{description:"Enforces explicit `type` attribute for `button` elements.",[Symbol.for("rule_features")]:["FIX"]},hasSuggestions:!0,messages:{addButtonType:"Add 'type' attribute with value '{{type}}'.",noMissingButtonType:"Add missing 'type' attribute on 'button' component."},schema:[]},name:"no-missing-button-type",create:function(e){let t=At(e);return{JSXElement(n){"button"!==t.resolve(n).domElementType||null==ER(e,n)("type")&&e.report({messageId:"noMissingButtonType",node:n.openingElement,suggest:Af.map(e=>({messageId:"addButtonType",data:{type:e},fix:t=>t.insertTextAfter(n.openingElement.name,` type="${e}"`)}))})}}},defaultOptions:[]}),Ag=An({meta:{type:"problem",docs:{description:"Enforces explicit `sandbox` prop for `iframe` elements.",[Symbol.for("rule_features")]:["FIX"]},fixable:"code",hasSuggestions:!0,messages:{addIframeSandbox:"Add 'sandbox' prop with value '{{value}}'.",noMissingIframeSandbox:"Add missing 'sandbox' prop on 'iframe' component."},schema:[]},name:"no-missing-iframe-sandbox",create:function(e){let t=At(e);return{JSXElement(n){let{domElementType:r}=t.resolve(n);if("iframe"!==r)return;let i=ER(e,n)("sandbox");if(null==i)return void e.report({messageId:"noMissingIframeSandbox",node:n.openingElement,suggest:[{messageId:"addIframeSandbox",data:{value:""},fix:e=>e.insertTextAfter(n.openingElement.name,' sandbox=""')}]});let a=Ej(e,i);"string"!=typeof a.toStatic("sandbox")&&e.report({messageId:"noMissingIframeSandbox",node:a.node??i,suggest:[{messageId:"addIframeSandbox",data:{value:""},fix:e=>a.kind.startsWith("spread")?null:e.replaceText(i,'sandbox=""')}]})}}},defaultOptions:[]}),Ah=An({meta:{type:"problem",docs:{description:"Enforces the absence of a `namespace` in React elements.",[Symbol.for("rule_features")]:[]},messages:{noNamespace:"A React component '{{name}}' must not be in a namespace, as React does not support them."},schema:[]},name:"no-namespace",create:function(e){return{JSXElement(t){let n=E$(e,t);"string"==typeof n&&n.includes(":")&&e.report({messageId:"noNamespace",node:t.openingElement.name,data:{name:n}})}}},defaultOptions:[]}),Ay=An({meta:{type:"problem",docs:{description:"Replaces usages of `ReactDom.render()` with `createRoot(node).render()`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noRender:"[Deprecated] Use 'createRoot(node).render()' instead."},schema:[]},name:"no-render",create:function(e){if(!e.sourceCode.text.includes("render")||kD(_Y(e).version,"18.0.0","<"))return{};let t=new Set(["ReactDOM","ReactDom"]),n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===_W.AST_NODE_TYPES.Identifier&&n.has(r.callee.name):case r.callee.type===_W.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===_W.AST_NODE_TYPES.Identifier&&r.callee.property.type===_W.AST_NODE_TYPES.Identifier&&"render"===r.callee.property.name&&t.has(r.callee.object.name):var i,a;e.report({messageId:"noRender",node:r,fix:(i=e,a=r,e=>{let[t,n]=a.arguments;return null==t||null==n?null:[e.insertTextBefore(i.sourceCode.ast,'import { createRoot } from "react-dom/client";\n'),e.replaceText(a,`createRoot(${i.sourceCode.getText(n)}).render(${i.sourceCode.getText(t)})`)]})});return}},ImportDeclaration(e){let[r]=e.source.value.split("/");if("react-dom"===r)for(let r of e.specifiers)switch(r.type){case _W.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==_W.AST_NODE_TYPES.Identifier)continue;"render"===r.imported.name&&n.add(r.local.name);continue;case _W.AST_NODE_TYPES.ImportDefaultSpecifier:case _W.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]});let Av=[_W.AST_NODE_TYPES.VariableDeclarator,_W.AST_NODE_TYPES.Property,_W.AST_NODE_TYPES.ReturnStatement,_W.AST_NODE_TYPES.ArrowFunctionExpression,_W.AST_NODE_TYPES.AssignmentExpression];var Ab=An({meta:{type:"problem",docs:{description:"Disallow the return value of `ReactDOM.render`.",[Symbol.for("rule_features")]:[]},messages:{noRenderReturnValue:"Do not depend on the return value from 'ReactDOM.render'."},schema:[]},name:"no-render-return-value",create:function(e){let t=new Set(["ReactDOM","ReactDom"]),n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===_W.AST_NODE_TYPES.Identifier&&n.has(r.callee.name)&&Av.includes(r.parent.type):case r.callee.type===_W.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===_W.AST_NODE_TYPES.Identifier&&r.callee.property.type===_W.AST_NODE_TYPES.Identifier&&"render"===r.callee.property.name&&t.has(r.callee.object.name)&&Av.includes(r.parent.type):e.report({messageId:"noRenderReturnValue",node:r});return}},ImportDeclaration(e){let[r]=e.source.value.split("/");if("react-dom"===r)for(let r of e.specifiers)switch(r.type){case _W.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==_W.AST_NODE_TYPES.Identifier)continue;"render"===r.imported.name&&n.add(r.local.name);continue;case _W.AST_NODE_TYPES.ImportDefaultSpecifier:case _W.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]}),AT=An({meta:{type:"problem",docs:{description:"Disallow `javascript:` URLs as attribute values.",[Symbol.for("rule_features")]:[]},messages:{noScriptUrl:"Using a `javascript:` URL is a security risk and should be avoided."},schema:[]},name:"no-script-url",create:function(e){return{JSXAttribute(t){if(t.name.type!==_W.AST_NODE_TYPES.JSXIdentifier||null==t.value)return;let n=Ej(e,t).toStatic();"string"==typeof n&&_P.test(n)&&e.report({messageId:"noScriptUrl",node:t.value})}}},defaultOptions:[]}),AS=An({meta:{type:"problem",docs:{description:"Disallows the use of string style prop.",[Symbol.for("rule_features")]:[]},messages:{noStringStyleProp:"Do not use string style prop. Use an object instead."},schema:[]},name:"no-string-style-prop",create:function(e){return{JSXElement(t){if(!EW(e,t))return;let n=ER(e,t)("style");if(null==n)return;let r=Ej(e,n);"string"==typeof r.toStatic()&&e.report({messageId:"noStringStyleProp",node:r.node??n})}}},defaultOptions:[]});let Ax=[],AE={"accept-charset":"acceptCharset",class:"className",crossorigin:"crossOrigin",for:"htmlFor","http-equiv":"httpEquiv",nomodule:"noModule"},Ak={"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"},AP={as:["link"],abbr:["th","td"],align:["applet","caption","col","colgroup","hr","iframe","img","table","tbody","td","tfoot","th","thead","tr"],allowFullScreen:["iframe","video"],autoPictureInPicture:["video"],charset:["meta"],checked:["input"],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"],onCanPlay:["audio","video"],onCanPlayThrough:["audio","video"],onCancel:["dialog"],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"],onLoadStart:["audio","video"],onLoadedData:["audio","video"],onLoadedMetadata:["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"],valign:["tr","td","th","thead","tbody","tfoot","colgroup","col"],viewBox:["marker","pattern","svg","symbol","view"],webkitAllowFullScreen:["iframe","video"],webkitDirectory:["input"]},AC=["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"],Aw=["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","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","rendering-intent","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","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"],AA=["charset","allowFullScreen","webkitAllowFullScreen","mozAllowFullScreen","webkitDirectory"],AD=["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"],AN=["onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCapture","onLostPointerCaptureCapture","onPointerCancel","onPointerCancelCapture","onPointerDown","onPointerDownCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerMove","onPointerMoveCapture","onPointerOut","onPointerOutCapture","onPointerOver","onPointerOverCapture","onPointerUp","onPointerUpCapture"],AF=["popover","popoverTarget","popoverTargetAction","onToggle","onBeforeToggle"];function AO(e,t){return Object.hasOwn(e,t)}function AI(e,t,n){let{version:r}=_Y(e);return kD(r,n,t)}var AL=An({meta:{type:"problem",docs:{description:"Disallow unknown `DOM` property."},fixable:"code",messages:{dataLowercaseRequired:"React does not recognize data-* props with uppercase characters on a DOM element. Found '{{name}}', use '{{lowerCaseName}}' instead",invalidPropOnTag:"Invalid property '{{name}}' found on tag '{{tagName}}', but it is only allowed on: {{allowedTags}}",unknownProp:"Unknown property '{{name}}' found",unknownPropWithStandardName:"Unknown property '{{name}}' found, use '{{standardName}}' instead"},schema:[{type:"object",additionalProperties:!1,properties:{ignore:{type:"array",items:{type:"string"}},requireDataLowercase:{type:"boolean",default:!1}}}]},name:"no-unknown-property",create:function(e){return{JSXAttribute(t){var n;let r=e.options[0]?.ignore||Ax,i=(n=t.name,e.sourceCode.getText(n));if(r.indexOf(i)>=0)return;let a=AA.find(e=>e.toLowerCase()===i.toLowerCase())||i;if(t.parent?.name&&"JSXMemberExpression"===t.parent.name.type)return;if(!/^data-xml/i.test(a)&&/^data-[^:]*$/.test(a)){e.options[0]&&void 0!==e.options[0].requireDataLowercase&&e.options[0].requireDataLowercase&&a.toLowerCase()!==a&&e.report({node:t,messageId:"dataLowercaseRequired",data:{name:i,lowerCaseName:i.toLowerCase()}});return}if(AD.some(e=>e===a))return;let o=t?.parent?.name?t.parent.name.name:null;if("fbt"===o||"fbs"===o||!/^[a-z][^-]*$/.test(t.parent.name.name)||t.parent.attributes.some(e=>"JSXAttribute"===e.type&&"JSXIdentifier"===e.name.type&&"is"===e.name.name))return;let s=AO(AP,a)?AP[a]:null;if(o&&s){-1===s.indexOf(o)&&e.report({node:t,messageId:"invalidPropOnTag",data:{name:i,allowedTags:s.join(", "),tagName:o}});return}let l=function(e,t){let n;return AO(AE,e)?AE[e]:AO(Ak,e)?Ak[e]:(n=Aw.concat(AC),AI(t,"<=","16.1.0")?n.push("allowTransparency"):(AI(t,">=","16.4.0")&&n.push(...AN),AI(t,">=","19.0.0-rc.0")?n.push(...AF):n.push(...AF.map(e=>e.toLowerCase()))),n).find(t=>t.toLowerCase()===e.toLowerCase())}(a,e),c=!!l&&l!==a;if(!l||l!==a){if(c)return void e.report({node:t,messageId:"unknownPropWithStandardName",data:{name:i,standardName:l},fix:e=>e.replaceText(t.name,l)});e.report({node:t,messageId:"unknownProp",data:{name:i}})}}}},defaultOptions:[]});let AM=["allow-scripts","allow-same-origin"];var AR=An({meta:{type:"problem",docs:{description:"Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations.",[Symbol.for("rule_features")]:[]},messages:{noUnsafeIframeSandbox:"Unsafe 'sandbox' attribute value on 'iframe' component."},schema:[]},name:"no-unsafe-iframe-sandbox",create:function(e){let t=At(e);return{JSXElement(n){var r;if("iframe"!==t.resolve(n).domElementType)return;let i=ER(e,n)("sandbox");if(null==i)return;let a=Ej(e,i);"string"==typeof(r=a.toStatic("sandbox"))&&AM.every(e=>r.includes(e))&&e.report({messageId:"noUnsafeIframeSandbox",node:a.node??i})}}},defaultOptions:[]}),Aj=An({meta:{type:"problem",docs:{description:'Disallow `target="_blank"` without `rel="noreferrer noopener"`.',[Symbol.for("rule_features")]:["FIX"]},fixable:"code",hasSuggestions:!0,messages:{addRelNoreferrerNoopener:"Add 'rel=\"noreferrer noopener\"' to the link to prevent security risks.",noUnsafeTargetBlank:"Using 'target=\"_blank\"' on an external link without 'rel=\"noreferrer noopener\"' is a security risk."},schema:[]},name:"no-unsafe-target-blank",create:function(e){let t=At(e);return{JSXElement(n){var r,i;let{domElementType:a}=t.resolve(n);if("a"!==a)return;let o=ER(e,n),s=o("target");if(null==s||"_blank"!==Ej(e,s).toStatic("target"))return;let l=o("href");if(null==l||!("string"==typeof(r=Ej(e,l).toStatic("href"))&&(r.startsWith("https://")||/^(?:\w+:|\/\/)/u.test(r))))return;let c=o("rel");null==c?e.report({messageId:"noUnsafeTargetBlank",node:n.openingElement,suggest:[{messageId:"addRelNoreferrerNoopener",fix:e=>e.insertTextAfter(n.openingElement.name,' rel="noreferrer noopener"')}]}):"string"==typeof(i=Ej(e,c).toStatic("rel"))&&("noreferrer"===i||/\bnoreferrer\b/u.test(i))||e.report({messageId:"noUnsafeTargetBlank",node:c,suggest:[{messageId:"addRelNoreferrerNoopener",fix:e=>e.replaceText(c,'rel="noreferrer noopener"')}]})}}},defaultOptions:[]}),AY=An({meta:{type:"problem",docs:{description:"Replaces usages of `useFormState` with `useActionState`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noUseFormState:"[Deprecated] Use 'useActionState' from 'react' package instead."},schema:[]},name:"no-use-form-state",create:function(e){if(!e.sourceCode.text.includes("useFormState")||kD(_Y(e).version,"19.0.0","<"))return{};let t=new Set,n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===_W.AST_NODE_TYPES.Identifier&&n.has(r.callee.name):case r.callee.type===_W.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===_W.AST_NODE_TYPES.Identifier&&r.callee.property.type===_W.AST_NODE_TYPES.Identifier&&"useFormState"===r.callee.property.name&&t.has(r.callee.object.name):e.report({messageId:"noUseFormState",node:r,fix:function(e,t){let{importSource:n}=_Y(e);return r=>[r.insertTextBefore(e.sourceCode.ast,`import { useActionState } from "${n}";
|
|
400
400
|
`),r.replaceText(t.callee,"useActionState")]}(e,r)});return}},ImportDeclaration(e){let[r]=e.source.value.split("/");if("react-dom"===r)for(let r of e.specifiers)switch(r.type){case _W.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==_W.AST_NODE_TYPES.Identifier)continue;"useFormState"===r.imported.name&&n.add(r.local.name);continue;case _W.AST_NODE_TYPES.ImportDefaultSpecifier:case _W.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]});let AU=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]);var AB=An({meta:{type:"problem",docs:{description:"Disallow `children` in void DOM elements.",[Symbol.for("rule_features")]:[]},messages:{noVoidElementsWithChildren:"'{{elementType}}' is a void element tag and must not have children."},schema:[]},name:"no-void-elements-with-children",create:function(e){let t=At(e);return{JSXElement(n){let{domElementType:r}=t.resolve(n);if(!AU.has(r))return;let i=ER(e,n),a=null!=i("children"),o=null!=i("dangerouslySetInnerHTML");(n.children.length>0||a||o)&&e.report({messageId:"noVoidElementsWithChildren",node:n,data:{elementType:r}})}}},defaultOptions:[]}),AV=An({meta:{type:"problem",docs:{description:"Enforces React Dom is imported via a namespace import.",[Symbol.for("rule_features")]:["FIX"]},fixable:"code",messages:{preferNamespaceImport:"Prefer importing React DOM via a namespace import."},schema:[]},name:"prefer-namespace-import",create:function(e){return{"ImportDeclaration ImportDefaultSpecifier"(t){let n=t.parent.source.value;if(!AJ.includes(n))return;let r=t.parent.specifiers.length>1;e.report({messageId:"preferNamespaceImport",node:r?t:t.parent,data:{importSource:n},fix(i){let a=e.sourceCode.getText(t.parent),o=a.endsWith(";")?";":"",s=t.parent.source.raw.at(0)??"'",l=`import${"type"===t.parent.importKind?" type":""}`,c=`${s}${n}${s}`;if(!r)return i.replaceText(t.parent,`${l} * as ${t.local.name} from ${c}${o}`);let u=a.slice(a.indexOf("{"),a.indexOf("}")+1);return i.replaceText(t.parent,`${l} * as ${t.local.name} from ${c}${o}
|
|
401
|
-
${l} ${u} from ${c}${o}`)}})}}},defaultOptions:[]});let AJ=["react-dom","react-dom/client","react-dom/server"],Az={meta:{name:"eslint-plugin-react-dom",version:"2.2.3"},rules:{"no-dangerously-set-innerhtml":Ai,"no-dangerously-set-innerhtml-with-children":Aa,"no-find-dom-node":Al,"no-flush-sync":Au,"no-hydrate":Ad,"no-missing-button-type":Am,"no-missing-iframe-sandbox":Ag,"no-namespace":Ah,"no-render":Ay,"no-render-return-value":Ab,"no-script-url":AT,"no-string-style-prop":AS,"no-unknown-property":AL,"no-unsafe-iframe-sandbox":AR,"no-unsafe-target-blank":Aj,"no-use-form-state":AY,"no-void-elements-with-children":AB,"prefer-namespace-import":AV}};var Aq=Ae({name:()=>A$,plugins:()=>AK,rules:()=>AW,settings:()=>AH});let A$="react-dom/recommended",AW={"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-namespace":"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"},AK={"react-dom":Az},AH={"react-x":_R};var AG=Ae({name:()=>AX,plugins:()=>AZ,rules:()=>AQ,settings:()=>A0});let AX="react-dom/strict",AQ={...AW,"react-dom/no-missing-button-type":"warn","react-dom/no-missing-iframe-sandbox":"warn","react-dom/no-unsafe-target-blank":"warn"},AZ={...AK},A0={...AH},{toFlatConfig:A1}=_v("react-dom",Az);var A2={...Az,configs:{recommended:A1(Aq),strict:A1(AG)}},A3=Object.defineProperty,A6=e=>{let t={};for(var n in e)A3(t,n,{get:e[n],enumerable:!0});return t},A4=A6({name:()=>A8,plugins:()=>A7,rules:()=>A5});let A8="@eslint-react/dom",A5={"@eslint-react/dom/no-dangerously-set-innerhtml":"warn","@eslint-react/dom/no-dangerously-set-innerhtml-with-children":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/dom/no-flush-sync":"error","@eslint-react/dom/no-hydrate":"error","@eslint-react/dom/no-namespace":"error","@eslint-react/dom/no-render":"error","@eslint-react/dom/no-render-return-value":"error","@eslint-react/dom/no-script-url":"warn","@eslint-react/dom/no-unsafe-iframe-sandbox":"warn","@eslint-react/dom/no-use-form-state":"error","@eslint-react/dom/no-void-elements-with-children":"error"},A7={"@eslint-react/dom":A2};var A9=A6({name:()=>De,plugins:()=>Dn,rules:()=>Dt,settings:()=>Dr});let De="@eslint-react/x",Dt={"@eslint-react/jsx-key-before-spread":"warn","@eslint-react/jsx-no-comment-textnodes":"warn","@eslint-react/jsx-no-duplicate-props":"warn","@eslint-react/jsx-uses-react":"warn","@eslint-react/jsx-uses-vars":"warn","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/no-array-index-key":"warn","@eslint-react/no-children-count":"warn","@eslint-react/no-children-for-each":"warn","@eslint-react/no-children-map":"warn","@eslint-react/no-children-only":"warn","@eslint-react/no-children-to-array":"warn","@eslint-react/no-clone-element":"warn","@eslint-react/no-component-will-mount":"error","@eslint-react/no-component-will-receive-props":"error","@eslint-react/no-component-will-update":"error","@eslint-react/no-context-provider":"warn","@eslint-react/no-create-ref":"error","@eslint-react/no-default-props":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-forward-ref":"warn","@eslint-react/no-implicit-key":"warn","@eslint-react/no-missing-key":"error","@eslint-react/no-nested-component-definitions":"error","@eslint-react/no-nested-lazy-component-declarations":"error","@eslint-react/no-prop-types":"error","@eslint-react/no-redundant-should-component-update":"error","@eslint-react/no-set-state-in-component-did-mount":"warn","@eslint-react/no-set-state-in-component-did-update":"warn","@eslint-react/no-set-state-in-component-will-update":"warn","@eslint-react/no-string-refs":"error","@eslint-react/no-unnecessary-use-prefix":"warn","@eslint-react/no-unsafe-component-will-mount":"warn","@eslint-react/no-unsafe-component-will-receive-props":"warn","@eslint-react/no-unsafe-component-will-update":"warn","@eslint-react/no-unused-class-component-members":"warn","@eslint-react/no-use-context":"warn","@eslint-react/no-useless-forward-ref":"warn","@eslint-react/prefer-use-state-lazy-initialization":"warn"},Dn={"@eslint-react":wP},Dr={"react-x":_R};var Di=A6({name:()=>Da,plugins:()=>Ds,rules:()=>Do,settings:()=>Dl});let Da="@eslint-react/all",Do={"@eslint-react/jsx-key-before-spread":"warn","@eslint-react/jsx-no-comment-textnodes":"warn","@eslint-react/jsx-no-duplicate-props":"warn","@eslint-react/jsx-no-iife":"warn","@eslint-react/jsx-no-undef":"error","@eslint-react/jsx-shorthand-boolean":"warn","@eslint-react/jsx-shorthand-fragment":"warn","@eslint-react/jsx-uses-react":"warn","@eslint-react/jsx-uses-vars":"warn","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/no-array-index-key":"warn","@eslint-react/no-children-count":"warn","@eslint-react/no-children-for-each":"warn","@eslint-react/no-children-map":"warn","@eslint-react/no-children-only":"warn","@eslint-react/no-children-prop":"warn","@eslint-react/no-children-to-array":"warn","@eslint-react/no-class-component":"warn","@eslint-react/no-clone-element":"warn","@eslint-react/no-component-will-mount":"error","@eslint-react/no-component-will-receive-props":"error","@eslint-react/no-component-will-update":"error","@eslint-react/no-context-provider":"warn","@eslint-react/no-create-ref":"error","@eslint-react/no-default-props":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-forbidden-props":"off","@eslint-react/no-forward-ref":"warn","@eslint-react/no-implicit-key":"warn","@eslint-react/no-leaked-conditional-rendering":"off","@eslint-react/no-missing-component-display-name":"warn","@eslint-react/no-missing-context-display-name":"warn","@eslint-react/no-missing-key":"error","@eslint-react/no-misused-capture-owner-stack":"error","@eslint-react/no-nested-component-definitions":"error","@eslint-react/no-nested-lazy-component-declarations":"error","@eslint-react/no-prop-types":"error","@eslint-react/no-redundant-should-component-update":"error","@eslint-react/no-set-state-in-component-did-mount":"warn","@eslint-react/no-set-state-in-component-did-update":"warn","@eslint-react/no-set-state-in-component-will-update":"warn","@eslint-react/no-string-refs":"error","@eslint-react/no-unnecessary-key":"warn","@eslint-react/no-unnecessary-use-callback":"warn","@eslint-react/no-unnecessary-use-memo":"warn","@eslint-react/no-unnecessary-use-prefix":"warn","@eslint-react/no-unsafe-component-will-mount":"warn","@eslint-react/no-unsafe-component-will-receive-props":"warn","@eslint-react/no-unsafe-component-will-update":"warn","@eslint-react/no-unstable-context-value":"warn","@eslint-react/no-unstable-default-props":"warn","@eslint-react/no-unused-class-component-members":"warn","@eslint-react/no-unused-props":"off","@eslint-react/no-unused-state":"warn","@eslint-react/no-use-context":"warn","@eslint-react/no-useless-forward-ref":"warn","@eslint-react/no-useless-fragment":"warn","@eslint-react/prefer-destructuring-assignment":"warn","@eslint-react/prefer-namespace-import":"warn","@eslint-react/prefer-read-only-props":"off","@eslint-react/prefer-use-state-lazy-initialization":"warn","@eslint-react/dom/no-dangerously-set-innerhtml":"warn","@eslint-react/dom/no-dangerously-set-innerhtml-with-children":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/dom/no-flush-sync":"error","@eslint-react/dom/no-hydrate":"error","@eslint-react/dom/no-missing-button-type":"warn","@eslint-react/dom/no-missing-iframe-sandbox":"warn","@eslint-react/dom/no-namespace":"error","@eslint-react/dom/no-render":"error","@eslint-react/dom/no-render-return-value":"error","@eslint-react/dom/no-script-url":"warn","@eslint-react/dom/no-string-style-prop":"error","@eslint-react/dom/no-unknown-property":"warn","@eslint-react/dom/no-unsafe-iframe-sandbox":"warn","@eslint-react/dom/no-unsafe-target-blank":"warn","@eslint-react/dom/no-use-form-state":"warn","@eslint-react/dom/no-void-elements-with-children":"error","@eslint-react/dom/prefer-namespace-import":"warn","@eslint-react/web-api/no-leaked-event-listener":"warn","@eslint-react/web-api/no-leaked-interval":"warn","@eslint-react/web-api/no-leaked-resize-observer":"warn","@eslint-react/web-api/no-leaked-timeout":"warn","@eslint-react/hooks-extra/no-direct-set-state-in-use-effect":"warn","@eslint-react/naming-convention/component-name":"warn","@eslint-react/naming-convention/context-name":"warn","@eslint-react/naming-convention/filename":"off","@eslint-react/naming-convention/filename-extension":"off","@eslint-react/naming-convention/use-state":"warn"},Ds={...Dn,...A7,"@eslint-react/hooks-extra":wI,"@eslint-react/naming-convention":wH,"@eslint-react/web-api":w7},Dl={...Dr};var Dc=A6({name:()=>Du,rules:()=>D_});let Du="@eslint-react/disable-conflict-eslint-plugin-react",D_=Object.fromEntries(["button-has-type","destructuring-assignment","display-name","forbid-prop-types","forward-ref-uses-ref","hook-use-state","iframe-missing-sandbox","jsx-boolean-value","jsx-filename-extension","jsx-fragments","jsx-key","jsx-no-comment-textnodes","jsx-no-constructed-context-values","jsx-no-duplicate-props","jsx-no-leaked-render","jsx-no-script-url","jsx-no-target-blank","jsx-no-undef","jsx-no-useless-fragment","jsx-pascal-case","jsx-uses-react","jsx-uses-vars","no-access-state-in-setstate","no-array-index-key","no-children-prop","no-danger","no-danger-with-children","no-deprecated","no-did-mount-set-state","no-did-update-set-state","no-direct-mutation-state","no-find-dom-node","no-namespace","no-object-type-as-default-prop","no-redundant-should-component-update","no-render-return-value","no-string-refs","no-unknown-property","no-unsafe","no-unstable-nested-components","no-unused-class-component-members","no-unused-state","no-will-update-set-state","prefer-read-only-props","prop-types","void-dom-elements-no-children"].map(e=>[e,"off"]));var Dd=A6({name:()=>Dp,rules:()=>Df});let Dp="@eslint-react/disable-dom",Df=Object.fromEntries(Object.entries(A5).map(([e])=>[e,"off"]));var Dm=A6({name:()=>Dg,rules:()=>Dh});let Dg="@eslint-react/disable-type-checked",Dh={"@eslint-react/no-leaked-conditional-rendering":"off","@eslint-react/no-unused-props":"off","@eslint-react/prefer-read-only-props":"off"};var Dy=A6({name:()=>Dv,plugins:()=>DT,rules:()=>Db,settings:()=>DS});let Dv="@eslint-react/web-api",Db={"@eslint-react/web-api/no-leaked-event-listener":"warn","@eslint-react/web-api/no-leaked-interval":"warn","@eslint-react/web-api/no-leaked-resize-observer":"warn","@eslint-react/web-api/no-leaked-timeout":"warn"},DT={"@eslint-react/web-api":w7},DS={...Dr};var Dx=A6({name:()=>DE,rules:()=>Dk});let DE="@eslint-react/disable-web-api",Dk=Object.fromEntries(Object.entries(Db).map(([e])=>[e,"off"]));var DP=A6({name:()=>DC,plugins:()=>DA,rules:()=>Dw});let DC="@eslint-react/no-deprecated",Dw={"@eslint-react/no-component-will-mount":"error","@eslint-react/no-component-will-receive-props":"error","@eslint-react/no-component-will-update":"error","@eslint-react/no-create-ref":"error","@eslint-react/no-forward-ref":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/dom/no-hydrate":"error","@eslint-react/dom/no-render":"error","@eslint-react/dom/no-render-return-value":"error"},DA={...Dn,...A7};var DD=A6({name:()=>DN,rules:()=>DF});let DN="@eslint-react/off",DF={...Object.fromEntries(Object.entries(Do).map(([e])=>[e,"off"])),...Dh};var DO=A6({name:()=>DI,plugins:()=>DM,rules:()=>DL,settings:()=>DR});let DI="@eslint-react/recommended",DL={...Dt,...A5,...Db,"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect":"warn","@eslint-react/naming-convention/context-name":"warn","@eslint-react/naming-convention/use-state":"warn"},DM={...Dn,...A7,...DT,"@eslint-react/hooks-extra":wI,"@eslint-react/naming-convention":wH},DR={...Dr};var Dj=A6({name:()=>DY,plugins:()=>DB,rules:()=>DU,settings:()=>DV});let DY="@eslint-react/recommended-typescript",DU={...DL,"@eslint-react/dom/no-string-style-prop":"off","@eslint-react/dom/no-unknown-property":"off","@eslint-react/jsx-no-duplicate-props":"off","@eslint-react/jsx-no-undef":"off","@eslint-react/jsx-uses-react":"off","@eslint-react/jsx-uses-vars":"off"},DB={...DM},DV={...DR};var DJ=A6({name:()=>Dz,plugins:()=>D$,rules:()=>Dq,settings:()=>DW});let Dz="@eslint-react/recommended-type-checked",Dq={...DU,"@eslint-react/no-leaked-conditional-rendering":"error"},D$={...DB},DW={...DV};var DK=A6({name:()=>DH,plugins:()=>DX,rules:()=>DG,settings:()=>DQ});let DH="@eslint-react/strict",DG={...DL,"@eslint-react/jsx-no-iife":"error","@eslint-react/no-children-prop":"error","@eslint-react/no-class-component":"error","@eslint-react/no-misused-capture-owner-stack":"error","@eslint-react/no-unnecessary-key":"warn","@eslint-react/no-unnecessary-use-callback":"warn","@eslint-react/no-unnecessary-use-memo":"warn","@eslint-react/no-unstable-context-value":"warn","@eslint-react/no-unstable-default-props":"warn","@eslint-react/no-unused-state":"warn","@eslint-react/no-useless-fragment":"warn","@eslint-react/prefer-destructuring-assignment":"warn","@eslint-react/dom/no-missing-button-type":"warn","@eslint-react/dom/no-missing-iframe-sandbox":"warn","@eslint-react/dom/no-unsafe-target-blank":"warn"},DX={...DM},DQ={...DR};var DZ=A6({name:()=>D0,plugins:()=>D2,rules:()=>D1,settings:()=>D3});let D0="@eslint-react/strict-typescript",D1={...DG,...DU},D2={...DX},D3={...DQ};var D6=A6({name:()=>D4,plugins:()=>D5,rules:()=>D8,settings:()=>D7});let D4="@eslint-react/strict-type-checked",D8={...D1,"@eslint-react/no-leaked-conditional-rendering":"error","@eslint-react/no-unused-props":"warn"},D5={...D2},D7={...D3},D9={meta:{name:"@eslint-react/eslint-plugin",version:"2.2.3"},configs:{all:Di,"disable-conflict-eslint-plugin-react":Dc,"disable-dom":Dd,"disable-type-checked":Dm,"disable-web-api":Dx,dom:A4,"no-deprecated":DP,off:DD,recommended:DO,"recommended-type-checked":DJ,"recommended-typescript":Dj,strict:DK,"strict-type-checked":D6,"strict-typescript":DZ,"web-api":Dy,x:A9},rules:{...wP.rules}},Ne=sb.memo(D9,"@eslint-react/eslint-plugin"),Nt=sb.memo(sY.fixupPluginRules(sj),"eslint-plugin-ssr-friendly");async function Nn({opt:e={}}={}){return[{plugins:{"@stylexjs":(await import("@stylexjs/eslint-plugin")).default},files:[sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX],rules:{"@stylexjs/valid-styles":["error",e],"@stylexjs/valid-shorthands":["error",e],"@stylexjs/sort-keys":"off"}}]}exports.next=function(){return[{...sT.flatConfig.coreWebVitals,files:[sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX],rules:{...sT.flatConfig.coreWebVitals.rules,"@next/next/no-img-element":"off"}}]},exports.react=function({files:e=[sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX],reactCompiler:t="error",additionalHooks:n="(useIsomorphicLayoutEffect|useSukkaManyOtherCustomEffectHookExample|useAbortableEffect)",nextjs:r=!1,remix:i=!1,reactRefresh:a={},additionalHooksWithType:o={useLayoutEffect:["useIsomorphicLayoutEffect"],useEffect:["useAbortableEffect"]},additionalComponents:s=[{name:"Link",as:"a",attributes:[{name:"to",as:"href"},{name:"rel",as:"rel"}]}]}={}){let{allowConstantExport:l=!1}=a;return e="function"==typeof e?e([sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX]):sB.castArray(e),[sb.UNSAFE_excludeJsonYamlFiles({name:"@eslint-sukka/react base",files:e,plugins:{"react-hooks":sb.memo(sS,"eslint-plugin-react-hooks"),"@stylistic":sb.memo(sR.stylistic_eslint_plugin,"@stylistic/eslint-plugin"),"react-prefer-function-component":sb.memo(s5,"eslint-plugin-react-prefer-function-component"),"react-compiler":sb.memo(sx,"eslint-plugin-react-compiler"),...Ne.configs.recommended.plugins,"ssr-friendly":Nt,"react-refresh":sE},settings:{"react-x":{version:"detect",additionalHooks:o,additionalComponents:s}},languageOptions:{globals:sb.globals.browser},rules:{...sS.configs["recommended-latest"].rules,"react-compiler/react-compiler":t,"react-hooks/exhaustive-deps":["error",{additionalHooks:n}],"@stylistic/jsx-pascal-case":["error",{allowAllCaps:!0,ignore:[]}],...Ne.configs.recommended.rules,"@eslint-react/no-string-refs":"error","@eslint-react/jsx-no-comment-textnodes":"error","@eslint-react/dom/no-unsafe-target-blank":"error","@eslint-react/no-children-prop":"error","@eslint-react/dom/no-dangerously-set-innerhtml-with-children":"error","@eslint-react/dom/no-render-return-value":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/no-unsafe-component-will-mount":"warn","@eslint-react/no-unsafe-component-will-receive-props":"warn","@eslint-react/no-unsafe-component-will-update":"warn","@eslint-react/prefer-destructuring-assignment":"warn","@eslint-react/no-unused-state":"error","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/dom/no-script-url":"error","@eslint-react/no-unused-class-component-members":"error","@eslint-react/naming-convention/component-name":["error",{rule:"PascalCase"}],"@eslint-react/naming-convention/filename":["error",{rule:"kebab-case"}],"@eslint-react/naming-convention/filename-extension":["error",{allow:"as-needed"}],"@eslint-react/naming-convention/use-state":"error","react-prefer-function-component/react-prefer-function-component":"error","@stylistic/jsx-self-closing-comp":"error","@eslint-react/jsx-shorthand-boolean":"error","@stylistic/jsx-curly-spacing":["error","never",{allowMultiline:!0}],"@stylistic/jsx-indent-props":["error",2],"@stylistic/jsx-max-props-per-line":["error",{maximum:1,when:"multiline"}],"@stylistic/jsx-wrap-multilines":["error",{declaration:"parens-new-line",assignment:"parens-new-line",return:"parens-new-line",arrow:"parens-new-line",condition:"ignore",logical:"ignore",prop:"ignore"}],"@stylistic/jsx-first-prop-new-line":["error","multiline-multiprop"],"@stylistic/jsx-function-call-newline":["error","multiline"],"@stylistic/jsx-equals-spacing":["error","never"],"@stylistic/jsx-indent":"off","@stylistic/jsx-child-element-spacing":"error","@stylistic/jsx-closing-bracket-location":["error","line-aligned"],"@stylistic/jsx-tag-spacing":["error",{closingSlash:"never",beforeSelfClosing:"always",afterOpening:"never",beforeClosing:"never"}],"@eslint-react/dom/no-void-elements-with-children":"error","@stylistic/jsx-curly-brace-presence":["error",{props:"never",children:"never"}],"@eslint-react/jsx-shorthand-fragment":"error","@stylistic/jsx-curly-newline":["error",{multiline:"consistent",singleline:"consistent"}],"@eslint-react/no-missing-key":"error","@eslint-react/no-array-index-key":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-implicit-key":"error","@eslint-react/jsx-uses-react":"off","@eslint-react/no-useless-fragment":"error","@eslint-react/no-unstable-context-value":"error","@eslint-react/no-nested-component-definitions":"error","@eslint-react/dom/no-missing-iframe-sandbox":"warn","@eslint-react/dom/no-unsafe-iframe-sandbox":"warn","@eslint-react/no-leaked-conditional-rendering":"error","@eslint-react/no-unstable-default-props":"error","@eslint-react/dom/no-missing-button-type":"error","@eslint-react/dom/no-namespace":"error","@eslint-react/no-unnecessary-use-callback":"error","@eslint-react/no-unnecessary-use-memo":"error","@eslint-react/no-unnecessary-use-prefix":"error","@eslint-react/prefer-use-state-lazy-initialization":"error","@typescript-eslint/class-methods-use-this":["error",{exceptMethods:["render","getInitialState","getDefaultProps","getChildContext","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount","componentDidCatch","getSnapshotBeforeUpdate"],ignoreClassesThatImplementAnInterface:"public-fields"}],"react-refresh/only-export-components":["warn",{allowConstantExport:l,allowExportNames:[...r?["config","generateStaticParams","metadata","generateMetadata","viewport","generateViewport"]:[],...i?["meta","links","headers","loader","action"]:[]]}]}}),sb.withFiles(sb.UNSAFE_excludeJsonYamlFiles(sU.eslint_plugin_jsx_a11y_minimal.configs.minimal),e),{name:"sukka/react next.js/nextra naming convention",files:["**/app/**/_*.cjs",String.raw`**/app/**/\[*.?([cm])[j]s?(x)`,"**/pages/_(app|document).?([cm])[jt]s?(x)"],rules:{"@eslint-react/naming-convention/filename":"off"}}]},exports.stylex=Nn;
|
|
401
|
+
${l} ${u} from ${c}${o}`)}})}}},defaultOptions:[]});let AJ=["react-dom","react-dom/client","react-dom/server"],Az={meta:{name:"eslint-plugin-react-dom",version:"2.2.3"},rules:{"no-dangerously-set-innerhtml":Ai,"no-dangerously-set-innerhtml-with-children":Aa,"no-find-dom-node":Al,"no-flush-sync":Au,"no-hydrate":Ad,"no-missing-button-type":Am,"no-missing-iframe-sandbox":Ag,"no-namespace":Ah,"no-render":Ay,"no-render-return-value":Ab,"no-script-url":AT,"no-string-style-prop":AS,"no-unknown-property":AL,"no-unsafe-iframe-sandbox":AR,"no-unsafe-target-blank":Aj,"no-use-form-state":AY,"no-void-elements-with-children":AB,"prefer-namespace-import":AV}};var Aq=Ae({name:()=>A$,plugins:()=>AK,rules:()=>AW,settings:()=>AH});let A$="react-dom/recommended",AW={"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-namespace":"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"},AK={"react-dom":Az},AH={"react-x":_R};var AG=Ae({name:()=>AX,plugins:()=>AZ,rules:()=>AQ,settings:()=>A0});let AX="react-dom/strict",AQ={...AW,"react-dom/no-missing-button-type":"warn","react-dom/no-missing-iframe-sandbox":"warn","react-dom/no-unsafe-target-blank":"warn"},AZ={...AK},A0={...AH},{toFlatConfig:A1}=_v("react-dom",Az);var A2={...Az,configs:{recommended:A1(Aq),strict:A1(AG)}},A3=Object.defineProperty,A6=e=>{let t={};for(var n in e)A3(t,n,{get:e[n],enumerable:!0});return t},A4=A6({name:()=>A8,plugins:()=>A7,rules:()=>A5});let A8="@eslint-react/dom",A5={"@eslint-react/dom/no-dangerously-set-innerhtml":"warn","@eslint-react/dom/no-dangerously-set-innerhtml-with-children":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/dom/no-flush-sync":"error","@eslint-react/dom/no-hydrate":"error","@eslint-react/dom/no-namespace":"error","@eslint-react/dom/no-render":"error","@eslint-react/dom/no-render-return-value":"error","@eslint-react/dom/no-script-url":"warn","@eslint-react/dom/no-unsafe-iframe-sandbox":"warn","@eslint-react/dom/no-use-form-state":"error","@eslint-react/dom/no-void-elements-with-children":"error"},A7={"@eslint-react/dom":A2};var A9=A6({name:()=>De,plugins:()=>Dn,rules:()=>Dt,settings:()=>Dr});let De="@eslint-react/x",Dt={"@eslint-react/jsx-key-before-spread":"warn","@eslint-react/jsx-no-comment-textnodes":"warn","@eslint-react/jsx-no-duplicate-props":"warn","@eslint-react/jsx-uses-react":"warn","@eslint-react/jsx-uses-vars":"warn","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/no-array-index-key":"warn","@eslint-react/no-children-count":"warn","@eslint-react/no-children-for-each":"warn","@eslint-react/no-children-map":"warn","@eslint-react/no-children-only":"warn","@eslint-react/no-children-to-array":"warn","@eslint-react/no-clone-element":"warn","@eslint-react/no-component-will-mount":"error","@eslint-react/no-component-will-receive-props":"error","@eslint-react/no-component-will-update":"error","@eslint-react/no-context-provider":"warn","@eslint-react/no-create-ref":"error","@eslint-react/no-default-props":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-forward-ref":"warn","@eslint-react/no-implicit-key":"warn","@eslint-react/no-missing-key":"error","@eslint-react/no-nested-component-definitions":"error","@eslint-react/no-nested-lazy-component-declarations":"error","@eslint-react/no-prop-types":"error","@eslint-react/no-redundant-should-component-update":"error","@eslint-react/no-set-state-in-component-did-mount":"warn","@eslint-react/no-set-state-in-component-did-update":"warn","@eslint-react/no-set-state-in-component-will-update":"warn","@eslint-react/no-string-refs":"error","@eslint-react/no-unnecessary-use-prefix":"warn","@eslint-react/no-unsafe-component-will-mount":"warn","@eslint-react/no-unsafe-component-will-receive-props":"warn","@eslint-react/no-unsafe-component-will-update":"warn","@eslint-react/no-unused-class-component-members":"warn","@eslint-react/no-use-context":"warn","@eslint-react/no-useless-forward-ref":"warn","@eslint-react/prefer-use-state-lazy-initialization":"warn"},Dn={"@eslint-react":wP},Dr={"react-x":_R};var Di=A6({name:()=>Da,plugins:()=>Ds,rules:()=>Do,settings:()=>Dl});let Da="@eslint-react/all",Do={"@eslint-react/jsx-key-before-spread":"warn","@eslint-react/jsx-no-comment-textnodes":"warn","@eslint-react/jsx-no-duplicate-props":"warn","@eslint-react/jsx-no-iife":"warn","@eslint-react/jsx-no-undef":"error","@eslint-react/jsx-shorthand-boolean":"warn","@eslint-react/jsx-shorthand-fragment":"warn","@eslint-react/jsx-uses-react":"warn","@eslint-react/jsx-uses-vars":"warn","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/no-array-index-key":"warn","@eslint-react/no-children-count":"warn","@eslint-react/no-children-for-each":"warn","@eslint-react/no-children-map":"warn","@eslint-react/no-children-only":"warn","@eslint-react/no-children-prop":"warn","@eslint-react/no-children-to-array":"warn","@eslint-react/no-class-component":"warn","@eslint-react/no-clone-element":"warn","@eslint-react/no-component-will-mount":"error","@eslint-react/no-component-will-receive-props":"error","@eslint-react/no-component-will-update":"error","@eslint-react/no-context-provider":"warn","@eslint-react/no-create-ref":"error","@eslint-react/no-default-props":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-forbidden-props":"off","@eslint-react/no-forward-ref":"warn","@eslint-react/no-implicit-key":"warn","@eslint-react/no-leaked-conditional-rendering":"off","@eslint-react/no-missing-component-display-name":"warn","@eslint-react/no-missing-context-display-name":"warn","@eslint-react/no-missing-key":"error","@eslint-react/no-misused-capture-owner-stack":"error","@eslint-react/no-nested-component-definitions":"error","@eslint-react/no-nested-lazy-component-declarations":"error","@eslint-react/no-prop-types":"error","@eslint-react/no-redundant-should-component-update":"error","@eslint-react/no-set-state-in-component-did-mount":"warn","@eslint-react/no-set-state-in-component-did-update":"warn","@eslint-react/no-set-state-in-component-will-update":"warn","@eslint-react/no-string-refs":"error","@eslint-react/no-unnecessary-key":"warn","@eslint-react/no-unnecessary-use-callback":"warn","@eslint-react/no-unnecessary-use-memo":"warn","@eslint-react/no-unnecessary-use-prefix":"warn","@eslint-react/no-unsafe-component-will-mount":"warn","@eslint-react/no-unsafe-component-will-receive-props":"warn","@eslint-react/no-unsafe-component-will-update":"warn","@eslint-react/no-unstable-context-value":"warn","@eslint-react/no-unstable-default-props":"warn","@eslint-react/no-unused-class-component-members":"warn","@eslint-react/no-unused-props":"off","@eslint-react/no-unused-state":"warn","@eslint-react/no-use-context":"warn","@eslint-react/no-useless-forward-ref":"warn","@eslint-react/no-useless-fragment":"warn","@eslint-react/prefer-destructuring-assignment":"warn","@eslint-react/prefer-namespace-import":"warn","@eslint-react/prefer-read-only-props":"off","@eslint-react/prefer-use-state-lazy-initialization":"warn","@eslint-react/dom/no-dangerously-set-innerhtml":"warn","@eslint-react/dom/no-dangerously-set-innerhtml-with-children":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/dom/no-flush-sync":"error","@eslint-react/dom/no-hydrate":"error","@eslint-react/dom/no-missing-button-type":"warn","@eslint-react/dom/no-missing-iframe-sandbox":"warn","@eslint-react/dom/no-namespace":"error","@eslint-react/dom/no-render":"error","@eslint-react/dom/no-render-return-value":"error","@eslint-react/dom/no-script-url":"warn","@eslint-react/dom/no-string-style-prop":"error","@eslint-react/dom/no-unknown-property":"warn","@eslint-react/dom/no-unsafe-iframe-sandbox":"warn","@eslint-react/dom/no-unsafe-target-blank":"warn","@eslint-react/dom/no-use-form-state":"warn","@eslint-react/dom/no-void-elements-with-children":"error","@eslint-react/dom/prefer-namespace-import":"warn","@eslint-react/web-api/no-leaked-event-listener":"warn","@eslint-react/web-api/no-leaked-interval":"warn","@eslint-react/web-api/no-leaked-resize-observer":"warn","@eslint-react/web-api/no-leaked-timeout":"warn","@eslint-react/hooks-extra/no-direct-set-state-in-use-effect":"warn","@eslint-react/naming-convention/component-name":"warn","@eslint-react/naming-convention/context-name":"warn","@eslint-react/naming-convention/filename":"off","@eslint-react/naming-convention/filename-extension":"off","@eslint-react/naming-convention/use-state":"warn"},Ds={...Dn,...A7,"@eslint-react/hooks-extra":wI,"@eslint-react/naming-convention":wH,"@eslint-react/web-api":w7},Dl={...Dr};var Dc=A6({name:()=>Du,rules:()=>D_});let Du="@eslint-react/disable-conflict-eslint-plugin-react",D_=Object.fromEntries(["button-has-type","destructuring-assignment","display-name","forbid-prop-types","forward-ref-uses-ref","hook-use-state","iframe-missing-sandbox","jsx-boolean-value","jsx-filename-extension","jsx-fragments","jsx-key","jsx-no-comment-textnodes","jsx-no-constructed-context-values","jsx-no-duplicate-props","jsx-no-leaked-render","jsx-no-script-url","jsx-no-target-blank","jsx-no-undef","jsx-no-useless-fragment","jsx-pascal-case","jsx-uses-react","jsx-uses-vars","no-access-state-in-setstate","no-array-index-key","no-children-prop","no-danger","no-danger-with-children","no-deprecated","no-did-mount-set-state","no-did-update-set-state","no-direct-mutation-state","no-find-dom-node","no-namespace","no-object-type-as-default-prop","no-redundant-should-component-update","no-render-return-value","no-string-refs","no-unknown-property","no-unsafe","no-unstable-nested-components","no-unused-class-component-members","no-unused-state","no-will-update-set-state","prefer-read-only-props","prop-types","void-dom-elements-no-children"].map(e=>[e,"off"]));var Dd=A6({name:()=>Dp,rules:()=>Df});let Dp="@eslint-react/disable-dom",Df=Object.fromEntries(Object.entries(A5).map(([e])=>[e,"off"]));var Dm=A6({name:()=>Dg,rules:()=>Dh});let Dg="@eslint-react/disable-type-checked",Dh={"@eslint-react/no-leaked-conditional-rendering":"off","@eslint-react/no-unused-props":"off","@eslint-react/prefer-read-only-props":"off"};var Dy=A6({name:()=>Dv,plugins:()=>DT,rules:()=>Db,settings:()=>DS});let Dv="@eslint-react/web-api",Db={"@eslint-react/web-api/no-leaked-event-listener":"warn","@eslint-react/web-api/no-leaked-interval":"warn","@eslint-react/web-api/no-leaked-resize-observer":"warn","@eslint-react/web-api/no-leaked-timeout":"warn"},DT={"@eslint-react/web-api":w7},DS={...Dr};var Dx=A6({name:()=>DE,rules:()=>Dk});let DE="@eslint-react/disable-web-api",Dk=Object.fromEntries(Object.entries(Db).map(([e])=>[e,"off"]));var DP=A6({name:()=>DC,plugins:()=>DA,rules:()=>Dw});let DC="@eslint-react/no-deprecated",Dw={"@eslint-react/no-component-will-mount":"error","@eslint-react/no-component-will-receive-props":"error","@eslint-react/no-component-will-update":"error","@eslint-react/no-create-ref":"error","@eslint-react/no-forward-ref":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/dom/no-hydrate":"error","@eslint-react/dom/no-render":"error","@eslint-react/dom/no-render-return-value":"error"},DA={...Dn,...A7};var DD=A6({name:()=>DN,rules:()=>DF});let DN="@eslint-react/off",DF={...Object.fromEntries(Object.entries(Do).map(([e])=>[e,"off"])),...Dh};var DO=A6({name:()=>DI,plugins:()=>DM,rules:()=>DL,settings:()=>DR});let DI="@eslint-react/recommended",DL={...Dt,...A5,...Db,"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect":"warn","@eslint-react/naming-convention/context-name":"warn","@eslint-react/naming-convention/use-state":"warn"},DM={...Dn,...A7,...DT,"@eslint-react/hooks-extra":wI,"@eslint-react/naming-convention":wH},DR={...Dr};var Dj=A6({name:()=>DY,plugins:()=>DB,rules:()=>DU,settings:()=>DV});let DY="@eslint-react/recommended-typescript",DU={...DL,"@eslint-react/dom/no-string-style-prop":"off","@eslint-react/dom/no-unknown-property":"off","@eslint-react/jsx-no-duplicate-props":"off","@eslint-react/jsx-no-undef":"off","@eslint-react/jsx-uses-react":"off","@eslint-react/jsx-uses-vars":"off"},DB={...DM},DV={...DR};var DJ=A6({name:()=>Dz,plugins:()=>D$,rules:()=>Dq,settings:()=>DW});let Dz="@eslint-react/recommended-type-checked",Dq={...DU,"@eslint-react/no-leaked-conditional-rendering":"error"},D$={...DB},DW={...DV};var DK=A6({name:()=>DH,plugins:()=>DX,rules:()=>DG,settings:()=>DQ});let DH="@eslint-react/strict",DG={...DL,"@eslint-react/jsx-no-iife":"error","@eslint-react/no-children-prop":"error","@eslint-react/no-class-component":"error","@eslint-react/no-misused-capture-owner-stack":"error","@eslint-react/no-unnecessary-key":"warn","@eslint-react/no-unnecessary-use-callback":"warn","@eslint-react/no-unnecessary-use-memo":"warn","@eslint-react/no-unstable-context-value":"warn","@eslint-react/no-unstable-default-props":"warn","@eslint-react/no-unused-state":"warn","@eslint-react/no-useless-fragment":"warn","@eslint-react/prefer-destructuring-assignment":"warn","@eslint-react/dom/no-missing-button-type":"warn","@eslint-react/dom/no-missing-iframe-sandbox":"warn","@eslint-react/dom/no-unsafe-target-blank":"warn"},DX={...DM},DQ={...DR};var DZ=A6({name:()=>D0,plugins:()=>D2,rules:()=>D1,settings:()=>D3});let D0="@eslint-react/strict-typescript",D1={...DG,...DU},D2={...DX},D3={...DQ};var D6=A6({name:()=>D4,plugins:()=>D5,rules:()=>D8,settings:()=>D7});let D4="@eslint-react/strict-type-checked",D8={...D1,"@eslint-react/no-leaked-conditional-rendering":"error","@eslint-react/no-unused-props":"warn"},D5={...D2},D7={...D3},D9={meta:{name:"@eslint-react/eslint-plugin",version:"2.2.3"},configs:{all:Di,"disable-conflict-eslint-plugin-react":Dc,"disable-dom":Dd,"disable-type-checked":Dm,"disable-web-api":Dx,dom:A4,"no-deprecated":DP,off:DD,recommended:DO,"recommended-type-checked":DJ,"recommended-typescript":Dj,strict:DK,"strict-type-checked":D6,"strict-typescript":DZ,"web-api":Dy,x:A9},rules:{...wP.rules}},Ne=sb.memo(D9,"@eslint-react/eslint-plugin"),Nt=sb.memo(sY.fixupPluginRules(sj),"eslint-plugin-ssr-friendly");async function Nn({opt:e={}}={}){return[{plugins:{"@stylexjs":(await import("@stylexjs/eslint-plugin")).default},files:[sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX],rules:{"@stylexjs/valid-styles":["error",e],"@stylexjs/valid-shorthands":["error",e],"@stylexjs/sort-keys":"off"}}]}exports.next=function(){return[{...sT.flatConfig.coreWebVitals,files:[sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX],rules:{...sT.flatConfig.coreWebVitals.rules,"@next/next/no-img-element":"off"}}]},exports.react=function({files:e=[sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX],reactCompiler:t,additionalHooks:n="(useIsomorphicLayoutEffect|useSukkaManyOtherCustomEffectHookExample|useAbortableEffect)",nextjs:r=!1,remix:i=!1,reactRefresh:a={},additionalHooksWithType:o={useLayoutEffect:["useIsomorphicLayoutEffect"],useEffect:["useAbortableEffect"]},additionalComponents:s=[{name:"Link",as:"a",attributes:[{name:"to",as:"href"},{name:"rel",as:"rel"}]}]}={}){let{allowConstantExport:l=!1}=a;return e="function"==typeof e?e([sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX]):sB.castArray(e),[sb.UNSAFE_excludeJsonYamlFiles({name:"@eslint-sukka/react base",files:e,plugins:{"@stylistic":sb.memo(sR.stylistic_eslint_plugin,"@stylistic/eslint-plugin"),"react-prefer-function-component":sb.memo(s5,"eslint-plugin-react-prefer-function-component"),...Ne.configs.recommended.plugins,"ssr-friendly":Nt,"react-refresh":sE},settings:{"react-x":{version:"detect",additionalHooks:o,additionalComponents:s}},languageOptions:{globals:sb.globals.browser},rules:{"@stylistic/jsx-pascal-case":["error",{allowAllCaps:!0,ignore:[]}],...Ne.configs.recommended.rules,"@eslint-react/no-string-refs":"error","@eslint-react/jsx-no-comment-textnodes":"error","@eslint-react/dom/no-unsafe-target-blank":"error","@eslint-react/no-children-prop":"error","@eslint-react/dom/no-dangerously-set-innerhtml-with-children":"error","@eslint-react/dom/no-render-return-value":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/no-unsafe-component-will-mount":"warn","@eslint-react/no-unsafe-component-will-receive-props":"warn","@eslint-react/no-unsafe-component-will-update":"warn","@eslint-react/prefer-destructuring-assignment":"warn","@eslint-react/no-unused-state":"error","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/dom/no-script-url":"error","@eslint-react/no-unused-class-component-members":"error","@eslint-react/naming-convention/component-name":["error",{rule:"PascalCase"}],"@eslint-react/naming-convention/filename":["error",{rule:"kebab-case"}],"@eslint-react/naming-convention/filename-extension":["error",{allow:"as-needed"}],"@eslint-react/naming-convention/use-state":"error","react-prefer-function-component/react-prefer-function-component":"error","@stylistic/jsx-self-closing-comp":"error","@eslint-react/jsx-shorthand-boolean":"error","@stylistic/jsx-curly-spacing":["error","never",{allowMultiline:!0}],"@stylistic/jsx-indent-props":["error",2],"@stylistic/jsx-max-props-per-line":["error",{maximum:1,when:"multiline"}],"@stylistic/jsx-wrap-multilines":["error",{declaration:"parens-new-line",assignment:"parens-new-line",return:"parens-new-line",arrow:"parens-new-line",condition:"ignore",logical:"ignore",prop:"ignore"}],"@stylistic/jsx-first-prop-new-line":["error","multiline-multiprop"],"@stylistic/jsx-function-call-newline":["error","multiline"],"@stylistic/jsx-equals-spacing":["error","never"],"@stylistic/jsx-indent":"off","@stylistic/jsx-child-element-spacing":"error","@stylistic/jsx-closing-bracket-location":["error","line-aligned"],"@stylistic/jsx-tag-spacing":["error",{closingSlash:"never",beforeSelfClosing:"always",afterOpening:"never",beforeClosing:"never"}],"@eslint-react/dom/no-void-elements-with-children":"error","@stylistic/jsx-curly-brace-presence":["error",{props:"never",children:"never"}],"@eslint-react/jsx-shorthand-fragment":"error","@stylistic/jsx-curly-newline":["error",{multiline:"consistent",singleline:"consistent"}],"@eslint-react/no-missing-key":"error","@eslint-react/no-array-index-key":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-implicit-key":"error","@eslint-react/jsx-uses-react":"off","@eslint-react/no-useless-fragment":"error","@eslint-react/no-unstable-context-value":"error","@eslint-react/no-nested-component-definitions":"error","@eslint-react/dom/no-missing-iframe-sandbox":"warn","@eslint-react/dom/no-unsafe-iframe-sandbox":"warn","@eslint-react/no-leaked-conditional-rendering":"error","@eslint-react/no-unstable-default-props":"error","@eslint-react/dom/no-missing-button-type":"error","@eslint-react/dom/no-namespace":"error","@eslint-react/no-unnecessary-use-callback":"error","@eslint-react/no-unnecessary-use-memo":"error","@eslint-react/no-unnecessary-use-prefix":"error","@eslint-react/prefer-use-state-lazy-initialization":"error","@typescript-eslint/class-methods-use-this":["error",{exceptMethods:["render","getInitialState","getDefaultProps","getChildContext","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount","componentDidCatch","getSnapshotBeforeUpdate"],ignoreClassesThatImplementAnInterface:"public-fields"}],"react-refresh/only-export-components":["warn",{allowConstantExport:l,allowExportNames:[...r?["config","generateStaticParams","metadata","generateMetadata","viewport","generateViewport"]:[],...i?["meta","links","headers","loader","action"]:[]]}]}}),sb.withFiles(sb.UNSAFE_excludeJsonYamlFiles({...sS.configs.flat["recommended-latest"],rules:{...sS.configs.flat["recommended-latest"].rules,"react-hooks/exhaustive-deps":["error",{additionalHooks:n}]}}),e),sb.withFiles(sb.UNSAFE_excludeJsonYamlFiles(null==t?sx.configs.recommended:{...sx.configs.recommended,rules:Object.entries(sx.configs.recommended.rules).reduce((e,[n,r])=>("string"==typeof r&&(e[n]=t),e),{})}),e),sb.withFiles(sb.UNSAFE_excludeJsonYamlFiles(sU.eslint_plugin_jsx_a11y_minimal.configs.minimal),e),{name:"@eslint-sukka/react next.js/nextra naming convention",files:["**/app/**/_*.cjs",String.raw`**/app/**/\[*.?([cm])[j]s?(x)`,"**/pages/_(app|document).?([cm])[jt]s?(x)"],rules:{"@eslint-react/naming-convention/filename":"off"}}]},exports.stylex=Nn;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-sukka/react",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"description": "Sukka's ESLint config",
|
|
5
5
|
"homepage": "https://github.com/SukkaW/eslint-config-sukka",
|
|
6
6
|
"repository": {
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
"@next/eslint-plugin-next": "^15.5.6",
|
|
31
31
|
"@stylexjs/eslint-plugin": "^0.16.2",
|
|
32
32
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
33
|
-
"eslint-plugin-react-hooks": "^7.0.
|
|
33
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
34
34
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
35
35
|
"eslint-plugin-ssr-friendly": "^1.3.0",
|
|
36
36
|
"foxts": "^5.0.0",
|
|
37
|
-
"@eslint-sukka/eslint-plugin-react-jsx-a11y": "8.0.
|
|
38
|
-
"@eslint-sukka/eslint-plugin-stylistic": "8.0.
|
|
39
|
-
"@eslint-sukka/shared": "8.0.
|
|
37
|
+
"@eslint-sukka/eslint-plugin-react-jsx-a11y": "8.0.2",
|
|
38
|
+
"@eslint-sukka/eslint-plugin-stylistic": "8.0.2",
|
|
39
|
+
"@eslint-sukka/shared": "8.0.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@eslint-react/eslint-plugin": "^2.2.3",
|
|
43
43
|
"eslint-plugin-react-prefer-function-component": "^4.0.1",
|
|
44
|
-
"@eslint-sukka/rollup-config": "8.0.
|
|
44
|
+
"@eslint-sukka/rollup-config": "8.0.2"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "rollup -c rollup.config.ts --configPlugin swc3"
|