eslint-plugin-sukka 6.4.3 → 6.5.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 +24 -24
- package/dist/index.mjs +24 -24
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
"use strict";let e,t;var r,n,u,a,i,o,s,d=require("node:path"),l=require("node:fs"),c=require("module"),f=require("@eslint-sukka/shared"),p=require("@typescript-eslint/utils"),h=require("@typescript-eslint/type-utils");function m(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var g=/*#__PURE__*/m(d),y=/*#__PURE__*/m(l),b=/*#__PURE__*/m(c);function v(e,t){if("string"==typeof t){let e=t;t=t=>t.type===e}for(;e;){if(t(e))return e;e=e.parent}}function x(e){return e?.type==="Identifier"||e?.type==="PrivateIdentifier"}function E(e){return e?.type==="MemberExpression"}function C(e){return e?.type==="AwaitExpression"}function A(e,t){return!!x(e)&&("function"==typeof t?t(e.name):Array.isArray(t)?t.includes(e.name):e.name===t)}function D(e,t){return e?.type==="Literal"&&(Array.isArray(t)?t.includes(e.value):"string"==typeof e.value&&t instanceof RegExp?t.test(e.value):e.value===t)}function S(e){return!!e&&["ArrowFunctionExpression","FunctionDeclaration","FunctionExpression"].includes(e.type)}function _(e,t){return e?.type==="Identifier"&&t?.type===e.type&&e.name===t.name}function w({name:e,meta:t,create:r,resolveOptions:n}){return t?.docs&&(t.docs.url??=new URL(e,"https://dimensiondev.github.io/eslint-plugin/src/rules/").toString()),Object.freeze({name:e,meta:t,create(e){let t=n?.(...e.options)??e.options[0];return Object.fromEntries(Object.entries(r(e,t)).filter(e=>e[1]))}})}function T(e){if(!e?.program)throw Error("see https://typescript-eslint.io/docs/linting/type-linting")}var P=w({name:"array/no-unneeded-flat-map",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow `Array#flatMap((x) => x)` when simpler alternatives exist",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow simple `Array#flatMap()` in array"}},create:e=>({CallExpression(t){var r;if("MemberExpression"!==t.callee.type||!A(t.callee.property,"flatMap")||!(S(r=t.arguments[0])&&1===r.params.length&&"Identifier"===r.params[0].type&&r.body&&(_(r.params[0],r.body)||"BlockStatement"===r.body.type&&1===r.body.body.length&&"ReturnStatement"===r.body.body[0].type&&_(r.params[0],r.body.body[0].argument))))return;let{property:n}=t.callee;e.report({node:t,messageId:"invalid",*fix(e){yield e.replaceText(n,"flat"),yield*t.arguments.map(t=>e.remove(t))}})}})});const k=new Set(["href","pathname","search","hash","origin"]);var F=w({name:"browser/prefer-location-assign",meta:{type:"suggestion",fixable:"code",docs:{description:"Prefer `location.assign(...)` over `location.*`",recommended:"stylistic"},schema:[],messages:{instead:"Use `location.assign(...)` instead of `location.{{name}}`"}},create:e=>({AssignmentExpression(t){let r=function(e,t){if(A(e,t))return e;for(;E(e);){if(A(e.property,t))return e;e=e.object}}(t.left,"location");if(!r)return;let n=I(r.parent);e.report({node:t,messageId:"instead",data:{name:n},fix:function(e,t,r){let n=I(t.parent);if(k.has(n??"href"))return n=>n.replaceText(r,`${e.getText(t)}.assign(${e.getText(r.right)})`)}(e.sourceCode,r,t)})}})});function I(e){if(E(e)&&x(e.property))return e.property.name}var B=w({name:"jsx/no-template-literal",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow use template-literal in JSX",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow use template-literal in JSX"}},create:e=>({JSXExpressionContainer(t){if("TemplateLiteral"!==t.expression.type||t.parent?.type==="JSXAttribute")return;let{expression:r}=t;e.report({node:t,messageId:"invalid",fix(n){let u=[...r.expressions,...r.quasis];u.sort((e,t)=>e.range[0]-t.range[0]);let a=u.map(t=>"TemplateElement"===t.type?t.value.cooked:"{"+e.sourceCode.getText(t)+"}");return n.replaceText(t,a.join(""))}})}})}),j=w({name:"jsx/no-unneeded-nested",meta:{type:"suggestion",fixable:"code",docs:{description:"Reduce unneeded JSXFragment nested",recommended:"stylistic"},schema:[],messages:{invalid:"Reduce unneeded JSXFragment nested"}},create(e){let t=e.sourceCode;return{JSXFragment(r){if(1!==r.children.length)return;let n=r.children[0];e.report({node:r,messageId:"invalid",*fix(e){"JSXExpressionContainer"===n.type?"JSXEmptyExpression"!==n.expression.type&&(yield e.replaceText(r,t.getText(n.expression))):yield e.replaceText(r,t.getText(n))}})}}}});const L=/^toLocale(?<name>Upper|Lower)Case$/g;var O=w({name:"string/no-locale-case",meta:{type:"problem",fixable:"code",docs:{description:"Disallow use `String#toLocale{Upper,Lower}Case()`",recommended:"recommended"},schema:[],messages:{instead:"Use `.to{{name}}Case(...)` instead of `.toLocale{{name}}Case()`"}},create:e=>({CallExpression(t){if(t.arguments.length>0||!E(t.callee)||!x(t.callee.property))return;let{property:r}=t.callee,n=L.exec(r.name);n&&e.report({node:t,data:{name:n.groups?.name},messageId:"instead",fix:e=>e.replaceText(r,r.name.replaceAll("Locale",""))})}})});function N(e){return JSON.stringify(e)}var R=w({name:"string/no-simple-template-literal",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow simple template-literal",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow simple template-literal"}},create:e=>({TemplateLiteral(t){var r;let n=(r=e.sourceCode,t.parent?.type!=="TaggedTemplateExpression"&&1===t.quasis.length&&!function({loc:e}){return!!e&&e.start.line!==e.end.line}(t.quasis[0])&&0===t.expressions.length?e=>{let n=N(t.quasis[0].value.cooked),u=v(t,e=>"Property"===e.type&&e.key===t);return u?e.replaceText(u,`${n}: ${r.getText(u.value)}`):e.replaceText(t,n)}:2===t.quasis.length&&t.quasis.every(({value:e})=>""===e.cooked)&&1===t.expressions.length?e=>e.replaceText(t,r.getText(t.expressions[0])):void 0);n&&e.report({node:t,messageId:"invalid",fix:n})}})});const M=["BigInt","Boolean","Function","Number","Object","String","Symbol","Array"];var $=w({name:"type/no-instanceof-wrapper",meta:{type:"problem",fixable:"code",docs:{description:"Disallow `instanceof` for wrapper objects",recommended:"recommended"},schema:[],messages:{primitive:'Unexpected `instanceof` operator. Use `typeof x === "{{typeName}}"` instead',array:"Unexpected `instanceof` operator. Use `Array.isArray` instead"},replacedBy:["unicorn/no-instanceof-array"]},create(e){let t=e.sourceCode,r=t.scopeManager?.scopes[0]??null,n=M.flatMap(e=>{let t=r?.set.get(e);return!t||t.defs.length>0?[]:t.references??[]});return{Program(){for(let{identifier:r}of n){let n=r.parent;if(n?.type==="BinaryExpression"&&"instanceof"===n.operator&&n.right===r){if("Array"===r.name)e.report({node:n,messageId:"array",fix:e=>e.replaceText(n,`Array.isArray(${t.getText(n.left)})`)});else{let u=r.name.toLowerCase();e.report({node:n,messageId:"primitive",data:{typeName:u},fix:e=>e.replaceText(n,`typeof ${t.getText(n.left)} === ${N(u)}`)})}}}}}}});const U=/\P{ASCII}/u;function z(e,t){return{Program(r){for(let n of r.tokens??[]){let r=function(e){switch(e.type){case"String":case"Template":return e.value.slice(1,-1);case"Identifier":if(e.value.startsWith("#"))return e.value.slice(1);return e.value;case"RegularExpression":return e.regex.pattern;case"JSXText":case"JSXIdentifier":return e.value}return!1}(n);!1!==r&&e.test(r)&&t(n,"code")}for(let n of r.comments??[])e.test(n.value)&&t(n,"comment")}}}function V(e,t){switch(e.type){case"String":case"Template":return r=>{let n=e.value.slice(0,1),u=e.value.slice(-1),a=q(e.value.slice(1,-1),t);return r.replaceText(e,`${n}${a}${u}`)};case"JSXText":return r=>{let n=e.value.replace(t,e=>`&#x${W(e.codePointAt(0))};`);return r.replaceText(e,n)};case"RegularExpression":return r=>{let n=new Set(e.regex.flags);n.add("u");let u=new RegExp(q(e.regex.pattern,t),[...n].join(""));return r.replaceText(e,u.toString())}}}function q(e,t){return e.replace(t,e=>{let t=e.codePointAt(0);return t>65535?`\\u{${W(t)}}`:`\\u${W(t)}`})}function W(e){return e.toString(16).padStart(4,"0").toUpperCase()}w({name:"unicode/specific-set",meta:{type:"problem",fixable:"code",docs:{description:"Limit the range of literal characters"},schema:[{type:"object",properties:{pattern:{type:"string"},flags:{type:"string"},only:{type:"string",enum:["code","comment"]}},additionalProperties:!1}],messages:{illegal:"Illegal character detected"}},resolveOptions:e=>({pattern:e?.pattern?new RegExp(e.pattern,e.flags??"u"):U,only:e?.only}),create:(e,{pattern:t,only:r})=>z(t,(n,u)=>{if(r&&r!==u)return;let a=V(n,RegExp(t.source,"gu"));e.report({node:n,messageId:"illegal",fix:a})})});const G=/[\u061C\u202A-\u202E\u2066-\u2069]/;var Z=w({name:"unicode/no-bidi",meta:{type:"problem",fixable:"code",docs:{description:"Detect and stop Trojan Source attacks",recommended:"recommended"},schema:[],messages:{detected:"Detected potential trojan source attack with unicode bidi introduced in this {{kind}}: {{text}}."}},create:e=>z(G,(t,r)=>{let n=RegExp(G.source,"gu"),u={kind:r,text:q(t.value,n)},a=V(t,n);e.report({node:t,data:u,messageId:"detected",fix:a})})});const H=function(){let e=[/\u00AD\u034F\u061C\u17B4\u17B5\uFEFF\uFFFC/,/\u180B-\u180E/,/\u200B-\u200F/,/\u202A-\u202E/,/\u2060-\u206F/,/\uFE00-\uFE0F/,/\uFFF0-\uFFF8/,/\u{1D173}-\u{1D17A}/u,/\u{E0000}-\u{E007F}/u,/\u{E0100}-\u{E01EF}/u].map(e=>"string"==typeof e?e:e.source).join("");return RegExp(`[${e}]`,"u")}(/\u00AD\u034F\u061C\u17B4\u17B5\uFEFF\uFFFC/,/\u180B-\u180E/,/\u200B-\u200F/,/\u202A-\u202E/,/\u2060-\u206F/,/\uFE00-\uFE0F/,/\uFFF0-\uFFF8/,/\u{1D173}-\u{1D17A}/u,/\u{E0000}-\u{E007F}/u,/\u{E0100}-\u{E01EF}/u);var K=w({name:"unicode/no-invisible",meta:{type:"problem",fixable:"code",docs:{description:"Disallow invisible characters",recommended:"recommended"},schema:[],messages:{illegal:"Illegal character detected"}},create:e=>z(H,t=>{let r=V(t,RegExp(H.source,"gu"));e.report({node:t,messageId:"illegal",fix:r})})}),Y=w({name:"no-redundant-variable",meta:{type:"problem",fixable:"code",docs:{description:"Disallow redundant variable",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow Redundant Variable"}},create:e=>({BlockStatement({body:t}){var r;let n=t.find(J);if(!n)return;let u=t[t.indexOf(n)-1];u&&"VariableDeclaration"===u.type&&1===u.declarations.length&&u.declarations.some(({init:e,id:t})=>null!==e&&_(n.argument,t))&&e.report({node:n,messageId:"invalid",fix:(r=e.sourceCode,e=>{let{init:t,id:a}=u.declarations[0];if(!(t&&a&&n.argument))return null;let i=!C(t)||v(t,"TryStatement")?t:t.argument,o=(e=>{if(!a.typeAnnotation)return e;let n=r.getText(a.typeAnnotation.typeAnnotation);return`(${e}) as ${C(t)?`Promise<${n}>`:n}`})(r.getText(i));return[e.remove(u),e.replaceText(n.argument,o)]})})}})});function J(e){return"ReturnStatement"===e.type&&x(e.argument)}var X=w({name:"no-single-return",meta:{type:"suggestion",docs:{description:"Disallow single-return",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow Single Return"}},create:e=>({BlockStatement({parent:t,body:r}){if(!S(t))return;let n=function(e,t){let r=t.find(Q);if(!r)return;let n=t.find(e=>"VariableDeclaration"===e.type&&"const"!==e.kind&&e.declarations.some(({id:e})=>_(r.argument,e)));if(n)return e.sourceCode.getDeclaredVariables(n).find(({references:e})=>e.every(e=>e.isWriteOnly()||e.identifier.parent===r))}(e,r);for(let{identifier:t}of n?.references??[])t.parent&&e.report({node:t.parent,messageId:"invalid"})}})});function Q(e){return"ReturnStatement"===e.type&&x(e.argument)}var ee=w({name:"prefer-early-return",meta:{type:"problem",fixable:"code",docs:{description:"Prefer early returns over full-body conditional wrapping in function declarations",recommended:"stylistic"},schema:[{type:"object",properties:{maximumStatements:{type:"integer",minimum:0}},additionalProperties:!1}],messages:{prefer:"Prefer an early return to a conditionally-wrapped function body"}},resolveOptions:e=>e?.maximumStatements??1,create:(e,t)=>({BlockStatement:function({body:r,parent:n}){var u;if(!S(n)||!(1===r.length&&function(e,t){if(!("IfStatement"===e.type&&null===e.alternate))return!1;let{consequent:r}=e;return"ExpressionStatement"===r.type&&0===t||"BlockStatement"===r.type&&r.body.length>t}(r[0],t)))return;let a=(u=r[0],function*(t){let r;if("IfStatement"!==u.type)return;let{test:n,consequent:a}=u;yield t.insertTextBefore(n,"!("),yield t.insertTextAfter(n,")"),yield t.replaceText(a,"return;");let i=(r=e.sourceCode.getText(a),"BlockStatement"===a.type?r.slice(1,-1):r);yield t.insertTextAfter(u,i)});e.report({node:r[0],messageId:"prefer",fix:a})}})}),et=w({name:"prefer-fetch",meta:{type:"problem",docs:{description:"Enforce fetch",recommended:"stylistic"},schema:[],messages:{callee:"Should use 'fetch' instead"}},create:e=>({ImportDeclaration(t){let r=t.source.value;("axios"===r||"request"===r)&&e.report({node:t,messageId:"callee"})},NewExpression(t){((function({callee:e}){return A(e,"XMLHttpRequest")})(t)||A(t.callee,"ActiveXObject")&&D(t.arguments[0],/xmlhttp/i))&&e.report({node:t,messageId:"callee"})},CallExpression(t){((function({callee:e}){let t="$http";return A(e,t)||E(e)&&A(e.object,t)})(t)||function({callee:e,parent:t}){let r=["$","jQuery"];return A(e,r)&&E(t)&&A(t.property,"load")||E(e)&&A(e.object,r)&&A(e.property,["ajax","get","post","getJSON","getScript"])}(t)||er(t,"axios")||er(t,"request"))&&e.report({node:t,messageId:"callee"})}})});function er(e,t){return A(e.callee,"require")&&D(e.arguments[0],t)}const en=new Set(["setTimeout","setInterval","requestAnimationFrame","requestIdleCallback"]);var eu=w({name:"prefer-timer-id",meta:{type:"problem",docs:{description:"Enforce best practice with timer function",recommended:"recommended"},schema:[],messages:{assign:"Timer id should assign to an identifier or member for cleaning up, `const timer = {{name}}(...);`",fix:"Assign timer id to a variable"},hasSuggestions:!0},create:e=>({CallExpression(t){"Identifier"===t.callee.type&&(!en.has(t.callee.name)||function(e){if(!A(e.callee,"setTimeout"))return!1;let t=e.arguments[1];return!t||D(t,0)}(t)||t.parent?.type==="AssignmentExpression"&&t.parent.right===t||t.parent?.type==="VariableDeclarator"&&t.parent.init===t||e.report({node:t,messageId:"assign",data:{name:t.callee.name},suggest:[{messageId:"fix",fix:e=>e.insertTextBefore(t,"const timer = ")}]}))}})}),ea=w({name:"string/no-unneeded-to-string",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow `String#toString()` when simpler alternatives exist",recommended:"stylistic",requiresTypeChecking:!0},schema:[],messages:{invalid:"Disallow use `.toString()` in string"}},create(e){T(e.sourceCode.parserServices);let{program:t,esTreeNodeToTSNodeMap:r}=e.sourceCode.parserServices,n=t.getTypeChecker();return{CallExpression(t){if("MemberExpression"!==t.callee.type)return;let{object:u,property:a}=t.callee;(A(a,"toString")||D(a,"toString"))&&function(e,t){let r=e.getTypeAtLocation(t);if(r.isStringLiteral()||"string"===e.typeToString(r))return!0;let n=r.getSymbol();return n&&"String"===e.symbolToString(n)}(n,r.get(u))&&e.report({node:a,messageId:"invalid",fix:r=>r.replaceText(t,e.sourceCode.getText(u))})}}}}),ei=w({name:"type/no-force-cast-via-top-type",meta:{type:"problem",docs:{description:"Disallowing cast a type `T` to unrelated or incompatible type `Q` via `T as any as Q`",recommended:"recommended"},schema:[],messages:{invalid:"Don't cast this expression to another type by `as {{type}} as T`"}},create:e=>({TSAsExpression(t){var r,n;if(!("TSAnyKeyword"===(r=t.typeAnnotation).type||"TSUnknownKeyword"===r.type)||!((n=t.parent)&&"TSAsExpression"===n.type&&"TSTypeReference"===n.typeAnnotation.type))return;let u="TSAnyKeyword"===t.typeAnnotation.type?"any":"unknown";e.report({node:t,messageId:"invalid",data:{type:u}})}})});const eo=new Set(["BigInt","Boolean","Number","String","Symbol"]);var es=w({name:"type/no-wrapper-type-reference",meta:{type:"problem",fixable:"code",docs:{description:"Disallow wrapper type for type reference",recommended:"recommended"},schema:[],messages:{instead:"Use {{name}} instead"}},create:e=>({TSTypeReference(t){if("Identifier"!==t.typeName.type||!eo.has(t.typeName.name))return;let r=t.typeName.name.toLowerCase();e.report({node:t,messageId:"instead",data:{name:r},fix:e=>e.replaceText(t.typeName,r)})}})}),ed=w({name:"no-default-error",meta:{type:"problem",docs:{description:"Restrict the usage of default (unextended) error",recommended:"strict",requiresTypeChecking:!0},schema:[],messages:{invalid:"Default error object should not be used in this project"}},create(e){T(e.sourceCode.parserServices);let{esTreeNodeToTSNodeMap:t,program:r}=e.sourceCode.parserServices,n=r.getTypeChecker();function u(r){"ErrorConstructor"===function(e,t){let r=e.getTypeAtLocation(t).getSymbol();if(!r?.valueDeclaration)return;let n=e.getTypeOfSymbolAtLocation(r,r.valueDeclaration);return e.typeToString(n)}(n,t.get(r))&&e.report({node:r,messageId:"invalid"})}return{ThrowStatement(e){e.argument&&u(e.argument)},NewExpression:u,CallExpression:u}}}),el="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ec(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ef(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var ep=/*@__PURE__*/ef(g),eh=function(e){let t=ep.basename(e,".js");return`https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/${t}.md`},em=/*@__PURE__*/ec(eh);const eg={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]};for(const e of Object.keys(eg))Object.freeze(eg[e]);Object.freeze(eg);const ey=new Set(["parent","leadingComments","trailingComments"]);function eb(e){return!ey.has(e)&&"_"!==e[0]}function ev(e,t){let r=t.range[0],n=e,u=!1;do for(let e of(u=!1,n.childScopes)){let t=e.block.range;if(t[0]<=r&&r<t[1]){n=e,u=!0;break}}while(u);return n}function ex(e,t){let r="",n=e;for("string"==typeof t?r=t:(r=t.name,n=ev(n,t));null!=n;){let e=n.set.get(r);if(null!=e)return e;n=n.upper}return null}function eE(e){return!this(e)}function eC(e){return eE.bind(e)}function eA(e,t){return"Punctuator"===e.type&&e.value===t}function eD(e){return eA(e,"=>")}function eS(e){return eA(e,",")}function e_(e){return eA(e,";")}function ew(e){return eA(e,":")}function eT(e){return eA(e,"(")}function eP(e){return eA(e,")")}function ek(e){return eA(e,"[")}function eF(e){return eA(e,"]")}function eI(e){return eA(e,"{")}function eB(e){return eA(e,"}")}function ej(e){return["Block","Line","Shebang"].includes(e.type)}const eL=eC(eD),eO=eC(eS),eN=eC(e_),eR=eC(ew),eM=eC(eT),e$=eC(eP),eU=eC(ek),ez=eC(eF),eV=eC(eI),eq=eC(eB),eW=eC(ej);function eG(e,t){let r=e.parent,n=null,u=null;if("ArrowFunctionExpression"===e.type){let r=t.getTokenBefore(e.body,eD);n=r.loc.start,u=r.loc.end}else n="Property"===r.type||"MethodDefinition"===r.type||"PropertyDefinition"===r.type?r.loc.start:e.loc.start,u=(e.id?t.getTokenAfter(e.id,eT):t.getFirstToken(e,eT)).loc.start;return{start:{...n},end:{...u}}}const eZ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},eH=Object.freeze(new Set(["Array","ArrayBuffer","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","isFinite","isNaN","isPrototypeOf","JSON","Map","Math","NaN","Number","Object","parseFloat","parseInt","Promise","Proxy","Reflect","RegExp","Set","String","Symbol","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","undefined","unescape","WeakMap","WeakSet"])),eK=new Set([Array.isArray,Array.of,Array.prototype.at,Array.prototype.concat,Array.prototype.entries,Array.prototype.every,Array.prototype.filter,Array.prototype.find,Array.prototype.findIndex,Array.prototype.flat,Array.prototype.includes,Array.prototype.indexOf,Array.prototype.join,Array.prototype.keys,Array.prototype.lastIndexOf,Array.prototype.slice,Array.prototype.some,Array.prototype.toString,Array.prototype.values,"function"==typeof BigInt?BigInt:void 0,Boolean,Date,Date.parse,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,escape,isFinite,isNaN,isPrototypeOf,Map,Map.prototype.entries,Map.prototype.get,Map.prototype.has,Map.prototype.keys,Map.prototype.values,...Object.getOwnPropertyNames(Math).filter(e=>"random"!==e).map(e=>Math[e]).filter(e=>"function"==typeof e),Number,Number.isFinite,Number.isNaN,Number.parseFloat,Number.parseInt,Number.prototype.toExponential,Number.prototype.toFixed,Number.prototype.toPrecision,Number.prototype.toString,Object,Object.entries,Object.is,Object.isExtensible,Object.isFrozen,Object.isSealed,Object.keys,Object.values,parseFloat,parseInt,RegExp,Set,Set.prototype.entries,Set.prototype.has,Set.prototype.keys,Set.prototype.values,String,String.fromCharCode,String.fromCodePoint,String.raw,String.prototype.at,String.prototype.charAt,String.prototype.charCodeAt,String.prototype.codePointAt,String.prototype.concat,String.prototype.endsWith,String.prototype.includes,String.prototype.indexOf,String.prototype.lastIndexOf,String.prototype.normalize,String.prototype.padEnd,String.prototype.padStart,String.prototype.slice,String.prototype.startsWith,String.prototype.substr,String.prototype.substring,String.prototype.toLowerCase,String.prototype.toString,String.prototype.toUpperCase,String.prototype.trim,String.prototype.trimEnd,String.prototype.trimLeft,String.prototype.trimRight,String.prototype.trimStart,Symbol.for,Symbol.keyFor,unescape].filter(e=>"function"==typeof e)),eY=new Set([Object.freeze,Object.preventExtensions,Object.seal]),eJ=[[Map,new Set(["size"])],[RegExp,new Set(["dotAll","flags","global","hasIndices","ignoreCase","multiline","source","sticky","unicode"])],[Set,new Set(["size"])]];function eX(e,t){let r=[];for(let n=0;n<e.length;++n){let u=e[n];if(null==u)r.length=n+1;else if("SpreadElement"===u.type){let e=e0(u.argument,t);if(null==e)return null;r.push(...e.value)}else{let e=e0(u,t);if(null==e)return null;r.push(e.value)}}return r}const eQ=Object.freeze({ArrayExpression(e,t){let r=eX(e.elements,t);return null!=r?{value:r}:null},AssignmentExpression:(e,t)=>"="===e.operator?e0(e.right,t):null,BinaryExpression(e,t){if("in"===e.operator||"instanceof"===e.operator)return null;let r=e0(e.left,t),n=e0(e.right,t);if(null!=r&&null!=n)switch(e.operator){case"==":return{value:r.value==n.value};case"!=":return{value:r.value!=n.value};case"===":return{value:r.value===n.value};case"!==":return{value:r.value!==n.value};case"<":return{value:r.value<n.value};case"<=":return{value:r.value<=n.value};case">":return{value:r.value>n.value};case">=":return{value:r.value>=n.value};case"<<":return{value:r.value<<n.value};case">>":return{value:r.value>>n.value};case">>>":return{value:r.value>>>n.value};case"+":return{value:r.value+n.value};case"-":return{value:r.value-n.value};case"*":return{value:r.value*n.value};case"/":return{value:r.value/n.value};case"%":return{value:r.value%n.value};case"**":return{value:r.value**n.value};case"|":return{value:r.value|n.value};case"^":return{value:r.value^n.value};case"&":return{value:r.value&n.value}}return null},CallExpression(e,t){let r=e.callee,n=eX(e.arguments,t);if(null!=n){if("MemberExpression"===r.type){if("PrivateIdentifier"===r.property.type)return null;let u=e0(r.object,t);if(null!=u){if(null==u.value&&(u.optional||e.optional))return{value:void 0,optional:!0};let a=e1(r,t);if(null!=a){let e=u.value,t=a.value;if(eK.has(e[t]))return{value:e[t](...n)};if(eY.has(e[t]))return{value:n[0]}}}}else{let u=e0(r,t);if(null!=u){if(null==u.value&&e.optional)return{value:void 0,optional:!0};let t=u.value;if(eK.has(t))return{value:t(...n)};if(eY.has(t))return{value:n[0]}}}}return null},ConditionalExpression(e,t){let r=e0(e.test,t);return null!=r?r.value?e0(e.consequent,t):e0(e.alternate,t):null},ExpressionStatement:(e,t)=>e0(e.expression,t),Identifier(e,t){if(null!=t){let r=ex(t,e);if(null!=r&&0===r.defs.length&&eH.has(r.name)&&r.name in eZ)return{value:eZ[r.name]};if(null!=r&&1===r.defs.length){let e=r.defs[0];if(e.parent&&"Variable"===e.type&&("const"===e.parent.kind||function(e){let t=e.references,r=t.filter(e=>e.init).length,n=t.filter(e=>e.isReadOnly()).length;return 1===r&&n+r===t.length}(r))&&"Identifier"===e.node.id.type)return e0(e.node.init,t)}}return null},Literal:e=>(null!=e.regex||null!=e.bigint)&&null==e.value?null:{value:e.value},LogicalExpression(e,t){let r=e0(e.left,t);if(null!=r){if("||"===e.operator&&!0==!!r.value||"&&"===e.operator&&!1==!!r.value||"??"===e.operator&&null!=r.value)return r;let n=e0(e.right,t);if(null!=n)return n}return null},MemberExpression(e,t){if("PrivateIdentifier"===e.property.type)return null;let r=e0(e.object,t);if(null!=r){if(null==r.value&&(r.optional||e.optional))return{value:void 0,optional:!0};let n=e1(e,t);if(null!=n){if(!function(e,t){let r=function(e,t){let r=e;for(;("object"==typeof r||"function"==typeof r)&&null!==r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r)}return null}(e,t);return null!=r&&null!=r.get}(r.value,n.value))return{value:r.value[n.value]};for(let[e,t]of eJ)if(r.value instanceof e&&t.has(n.value))return{value:r.value[n.value]}}}return null},ChainExpression(e,t){let r=e0(e.expression,t);return null!=r?{value:r.value}:null},NewExpression(e,t){let r=e0(e.callee,t),n=eX(e.arguments,t);if(null!=r&&null!=n){let e=r.value;if(eK.has(e))return{value:new e(...n)}}return null},ObjectExpression(e,t){let r={};for(let n of e.properties)if("Property"===n.type){if("init"!==n.kind)return null;let e=e1(n,t),u=e0(n.value,t);if(null==e||null==u)return null;r[e.value]=u.value}else{if("SpreadElement"!==n.type&&"ExperimentalSpreadProperty"!==n.type)return null;let e=e0(n.argument,t);if(null==e)return null;Object.assign(r,e.value)}return{value:r}},SequenceExpression:(e,t)=>e0(e.expressions[e.expressions.length-1],t),TaggedTemplateExpression(e,t){let r=e0(e.tag,t),n=eX(e.quasi.expressions,t);if(null!=r&&null!=n){let t=r.value,u=e.quasi.quasis.map(e=>e.value.cooked);if(u.raw=e.quasi.quasis.map(e=>e.value.raw),t===String.raw)return{value:t(u,...n)}}return null},TemplateLiteral(e,t){let r=eX(e.expressions,t);if(null!=r){let t=e.quasis[0].value.cooked;for(let n=0;n<r.length;++n)t+=r[n]+e.quasis[n+1].value.cooked;return{value:t}}return null},UnaryExpression(e,t){if("delete"===e.operator)return null;if("void"===e.operator)return{value:void 0};let r=e0(e.argument,t);if(null!=r)switch(e.operator){case"-":return{value:-r.value};case"+":return{value:+r.value};case"!":return{value:!r.value};case"~":return{value:~r.value};case"typeof":return{value:typeof r.value}}return null}});function e0(e,t){return null!=e&&Object.hasOwnProperty.call(eQ,e.type)?eQ[e.type](e,t):null}function e1(e,t){let r="Property"===e.type?e.key:e.property;return e.computed?e0(r,t):"Identifier"===r.type?{value:r.name}:"Literal"===r.type?r.bigint?{value:r.bigint}:{value:String(r.value)}:null}function e2(e,t=null){try{return e0(e,t)}catch(e){return null}}function e3(e,t=null){if(e&&"Literal"===e.type&&null===e.value){if(e.regex)return`/${e.regex.pattern}/${e.regex.flags}`;if(e.bigint)return e.bigint}let r=e2(e,t);return r&&String(r.value)}function e4(e,t){switch(e.type){case"MemberExpression":if(e.computed)return e3(e.property,t);if("PrivateIdentifier"===e.property.type)break;return e.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":if(e.computed)return e3(e.key,t);if("Literal"===e.key.type)return String(e.key.value);if("PrivateIdentifier"===e.key.type)break;return e.key.name}return null}function e5(e,t){let r=e.parent,n=[],u="Property"===r.type&&r.value===e,a="MethodDefinition"===r.type&&r.value===e,i="PropertyDefinition"===r.type&&r.value===e;if((a||i)&&(r.static&&n.push("static"),"PrivateIdentifier"===r.key.type&&n.push("private")),e.async&&n.push("async"),e.generator&&n.push("generator"),u||a){if("constructor"===r.kind)return"constructor";"get"===r.kind?n.push("getter"):"set"===r.kind?n.push("setter"):n.push("method")}else i?n.push("method"):("ArrowFunctionExpression"===e.type&&n.push("arrow"),n.push("function"));if(u||a||i){if("PrivateIdentifier"===r.key.type)n.push(`#${r.key.name}`);else{let e=e4(r);if(e)n.push(`'${e}'`);else if(t){let e=t.getText(r.key);e.includes("\n")||n.push(`[${e}]`)}}}else e.id?n.push(`'${e.id.name}'`):"VariableDeclarator"===r.type&&r.id&&"Identifier"===r.id.type?n.push(`'${r.id.name}'`):("AssignmentExpression"===r.type||"AssignmentPattern"===r.type)&&r.left&&"Identifier"===r.left.type?n.push(`'${r.left.name}'`):"ExportDefaultDeclaration"===r.type&&r.declaration===e&&n.push("'default'");return n.join(" ")}const e8=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),e6=Object.freeze(new Set(["-","+","!","~"]));function e9(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}const e7=Object.freeze(Object.assign(Object.create(null),{$visit(e,t,r){let{type:n}=e;return"function"==typeof this[n]?this[n](e,t,r):this.$visitChildren(e,t,r)},$visitChildren(e,t,r){let{type:n}=e;for(let u of r[n]||Object.keys(e).filter(eb)){let n=e[u];if(Array.isArray(n)){for(let e of n)if(e9(e)&&this.$visit(e,t,r))return!0}else if(e9(n)&&this.$visit(n,t,r))return!0}return!1},ArrowFunctionExpression:()=>!1,AssignmentExpression:()=>!0,AwaitExpression:()=>!0,BinaryExpression(e,t,r){return!!(t.considerImplicitTypeConversion&&e8.has(e.operator))&&("Literal"!==e.left.type||"Literal"!==e.right.type)||this.$visitChildren(e,t,r)},CallExpression:()=>!0,FunctionExpression:()=>!1,ImportExpression:()=>!0,MemberExpression(e,t,r){return!!t.considerGetters||!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.property.type||this.$visitChildren(e,t,r)},MethodDefinition(e,t,r){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,r)},NewExpression:()=>!0,Property(e,t,r){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,r)},PropertyDefinition(e,t,r){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,r)},UnaryExpression(e,t,r){return!!("delete"===e.operator||t.considerImplicitTypeConversion&&e6.has(e.operator)&&"Literal"!==e.argument.type)||this.$visitChildren(e,t,r)},UpdateExpression:()=>!0,YieldExpression:()=>!0}));function te(e,t,{considerGetters:r=!1,considerImplicitTypeConversion:n=!1}={}){return e7.$visit(e,{considerGetters:r,considerImplicitTypeConversion:n},t.visitorKeys||eg)}function tt(e,t,r){let n,u,a,i,o;if("number"==typeof e){if(n=0|e,u=t,a=r,!(n>=1))throw TypeError("'times' should be a positive integer.")}else n=1,u=e,a=t;if(null==u||null==u.parent||"CatchClause"===u.parent.type&&u.parent.param===u)return!1;i=o=u;do i=a.getTokenBefore(i),o=a.getTokenAfter(o);while(null!=i&&null!=o&&eT(i)&&eP(o)&&i!==function(e,t){let r=e.parent;switch(r.type){case"CallExpression":case"NewExpression":if(1===r.arguments.length&&r.arguments[0]===e)return t.getTokenAfter(r.callee,eT);return null;case"DoWhileStatement":if(r.test===e)return t.getTokenAfter(r.body,eT);return null;case"IfStatement":case"WhileStatement":if(r.test===e)return t.getFirstToken(r,1);return null;case"ImportExpression":if(r.source===e)return t.getFirstToken(r,1);return null;case"SwitchStatement":if(r.discriminant===e)return t.getFirstToken(r,1);return null;case"WithStatement":if(r.object===e)return t.getFirstToken(r,1);return null;default:return null}}(u,a)&&--n>0);return 0===n}const tr=/\$(?:[$&`']|[1-9][0-9]?)/gu,tn=new WeakMap;class tu{constructor(e,{escaped:t=!1}={}){if(!(e instanceof RegExp))throw TypeError("'pattern' should be a RegExp instance.");if(!e.flags.includes("g"))throw Error("'pattern' should contains 'g' flag.");tn.set(this,{pattern:new RegExp(e.source,e.flags),escaped:!!t})}*execAll(e){let{pattern:t,escaped:r}=tn.get(this),n=null,u=0;for(t.lastIndex=0;null!=(n=t.exec(e));)(r||!function(e,t){let r=!1;for(let n=t-1;n>=0&&92===e.charCodeAt(n);--n)r=!r;return r}(e,n.index))&&(u=t.lastIndex,yield n,t.lastIndex=u)}test(e){return!this.execAll(e).next().done}[Symbol.replace](e,t){return"function"==typeof t?function(e,t,r){let n=[],u=0;for(let a of e.execAll(t))n.push(t.slice(u,a.index)),n.push(String(r(...a,a.index,a.input))),u=a.index+a[0].length;return n.push(t.slice(u)),n.join("")}(this,String(e),t):function(e,t,r){let n=[],u=0,a=null;function i(e){switch(e){case"$$":return"$";case"$&":return a[0];case"$`":return t.slice(0,a.index);case"$'":return t.slice(a.index+a[0].length);default:{let t=e.slice(1);if(t in a)return a[t];return e}}}for(a of e.execAll(t))n.push(t.slice(u,a.index)),n.push(r.replace(tr,i)),u=a.index+a[0].length;return n.push(t.slice(u)),n.join("")}(this,String(e),String(t))}}const ta=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,ti=Function.call.bind(Object.hasOwnProperty),to=Symbol("read"),ts=Symbol("call"),td=Symbol("construct"),tl=Symbol("esm"),tc={require:{[ts]:!0}};function tf(e){return null==e||0!==e.defs.length||e.references.some(e=>e.isWrite())}let tp=class{constructor(e,{mode:t="strict",globalObjectNames:r=["global","globalThis","self","window"]}={}){this.variableStack=[],this.globalScope=e,this.mode=t,this.globalObjectNames=r.slice(0)}*iterateGlobalReferences(e){for(let t of Object.keys(e)){let r=e[t],n=[t],u=this.globalScope.set.get(t);tf(u)||(yield*this._iterateVariableReferences(u,n,r,!0))}for(let t of this.globalObjectNames){let r=[],n=this.globalScope.set.get(t);tf(n)||(yield*this._iterateVariableReferences(n,r,e,!1))}}*iterateCjsReferences(e){for(let{node:t}of this.iterateGlobalReferences(tc)){let r=e3(t.arguments[0]);if(null==r||!ti(e,r))continue;let n=e[r],u=[r];n[to]&&(yield{node:t,path:u,type:to,info:n[to]}),yield*this._iteratePropertyReferences(t,u,n)}}*iterateEsmReferences(e){for(let t of this.globalScope.block.body){if(!ta.test(t.type)||null==t.source)continue;let r=t.source.value;if(!ti(e,r))continue;let n=e[r],u=[r];if(n[to]&&(yield{node:t,path:u,type:to,info:n[to]}),"ExportAllDeclaration"===t.type)for(let e of Object.keys(n)){let r=n[e];r[to]&&(yield{node:t,path:u.concat(e),type:to,info:r[to]})}else for(let e of t.specifiers){let t=ti(n,tl),r=this._iterateImportReferences(e,u,t?n:"legacy"===this.mode?{default:n,...n}:{default:n});if(t)yield*r;else for(let e of r)e.path=e.path.filter(th),(e.path.length>=2||e.type!==to)&&(yield e)}}}*_iterateVariableReferences(e,t,r,n){if(!this.variableStack.includes(e)){this.variableStack.push(e);try{for(let u of e.references){if(!u.isRead())continue;let e=u.identifier;n&&r[to]&&(yield{node:e,path:t,type:to,info:r[to]}),yield*this._iteratePropertyReferences(e,t,r)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,t,r){let n=e;for(;function(e){let t=e.parent;switch(t&&t.type){case"ConditionalExpression":return t.consequent===e||t.alternate===e;case"LogicalExpression":case"ChainExpression":return!0;case"SequenceExpression":return t.expressions[t.expressions.length-1]===e;default:return!1}}(n);)n=n.parent;let u=n.parent;if("MemberExpression"===u.type){if(u.object===n){let e=e4(u);if(null==e||!ti(r,e))return;t=t.concat(e);let n=r[e];n[to]&&(yield{node:u,path:t,type:to,info:n[to]}),yield*this._iteratePropertyReferences(u,t,n)}return}if("CallExpression"===u.type){u.callee===n&&r[ts]&&(yield{node:u,path:t,type:ts,info:r[ts]});return}if("NewExpression"===u.type){u.callee===n&&r[td]&&(yield{node:u,path:t,type:td,info:r[td]});return}if("AssignmentExpression"===u.type){u.right===n&&(yield*this._iterateLhsReferences(u.left,t,r),yield*this._iteratePropertyReferences(u,t,r));return}if("AssignmentPattern"===u.type){u.right===n&&(yield*this._iterateLhsReferences(u.left,t,r));return}"VariableDeclarator"===u.type&&u.init===n&&(yield*this._iterateLhsReferences(u.id,t,r))}*_iterateLhsReferences(e,t,r){if("Identifier"===e.type){let n=ex(this.globalScope,e);null!=n&&(yield*this._iterateVariableReferences(n,t,r,!1));return}if("ObjectPattern"===e.type){for(let n of e.properties){let e=e4(n);if(null==e||!ti(r,e))continue;let u=t.concat(e),a=r[e];a[to]&&(yield{node:n,path:u,type:to,info:a[to]}),yield*this._iterateLhsReferences(n.value,u,a)}return}"AssignmentPattern"===e.type&&(yield*this._iterateLhsReferences(e.left,t,r))}*_iterateImportReferences(e,t,r){let n=e.type;if("ImportSpecifier"===n||"ImportDefaultSpecifier"===n){let u="ImportDefaultSpecifier"===n?"default":e.imported.name;if(!ti(r,u))return;t=t.concat(u);let a=r[u];a[to]&&(yield{node:e,path:t,type:to,info:a[to]}),yield*this._iterateVariableReferences(ex(this.globalScope,e.local),t,a,!1);return}if("ImportNamespaceSpecifier"===n){yield*this._iterateVariableReferences(ex(this.globalScope,e.local),t,r,!1);return}if("ExportSpecifier"===n){let n=e.local.name;if(!ti(r,n))return;t=t.concat(n);let u=r[n];u[to]&&(yield{node:e,path:t,type:to,info:u[to]})}}};function th(e,t){return!(1===t&&"default"===e)}tp.READ=to,tp.CALL=ts,tp.CONSTRUCT=td,tp.ESM=tl;var tm=/*@__PURE__*/ef(/*#__PURE__*/Object.freeze({__proto__:null,CALL:ts,CONSTRUCT:td,ESM:tl,PatternMatcher:tu,READ:to,ReferenceTracker:tp,default:{CALL:ts,CONSTRUCT:td,ESM:tl,findVariable:ex,getFunctionHeadLocation:eG,getFunctionNameWithKind:e5,getInnermostScope:ev,getPropertyName:e4,getStaticValue:e2,getStringIfConstant:e3,hasSideEffect:te,isArrowToken:eD,isClosingBraceToken:eB,isClosingBracketToken:eF,isClosingParenToken:eP,isColonToken:ew,isCommaToken:eS,isCommentToken:ej,isNotArrowToken:eL,isNotClosingBraceToken:eq,isNotClosingBracketToken:ez,isNotClosingParenToken:e$,isNotColonToken:eR,isNotCommaToken:eO,isNotCommentToken:eW,isNotOpeningBraceToken:eV,isNotOpeningBracketToken:eU,isNotOpeningParenToken:eM,isNotSemicolonToken:eN,isOpeningBraceToken:eI,isOpeningBracketToken:ek,isOpeningParenToken:eT,isParenthesized:tt,isSemicolonToken:e_,PatternMatcher:tu,READ:to,ReferenceTracker:tp},findVariable:ex,getFunctionHeadLocation:eG,getFunctionNameWithKind:e5,getInnermostScope:ev,getPropertyName:e4,getStaticValue:e2,getStringIfConstant:e3,hasSideEffect:te,isArrowToken:eD,isClosingBraceToken:eB,isClosingBracketToken:eF,isClosingParenToken:eP,isColonToken:ew,isCommaToken:eS,isCommentToken:ej,isNotArrowToken:eL,isNotClosingBraceToken:eq,isNotClosingBracketToken:ez,isNotClosingParenToken:e$,isNotColonToken:eR,isNotCommaToken:eO,isNotCommentToken:eW,isNotOpeningBraceToken:eV,isNotOpeningBracketToken:eU,isNotOpeningParenToken:eM,isNotSemicolonToken:eN,isOpeningBraceToken:eI,isOpeningBracketToken:ek,isOpeningParenToken:eT,isParenthesized:tt,isSemicolonToken:e_}));const{isParenthesized:tg}=tm,ty="too-deep",tb="should-parenthesized";var tv=/*@__PURE__*/ec({create:e=>({ConditionalExpression(t){if([t.test,t.consequent,t.alternate].some(e=>"ConditionalExpression"===e.type))return;let{sourceCode:r}=e,n=r.getAncestors(t).reverse(),u=n.findIndex(e=>"ConditionalExpression"!==e.type);return 1!==u||tg(t,r)?u>1?{node:u>2?n[u-3]:t,messageId:ty}:void 0:{node:t,messageId:tb,fix:e=>[e.insertTextBefore(t,"("),e.insertTextAfter(t,")")]}}}),meta:{type:"suggestion",docs:{description:"Disallow nested ternary expressions.",recommended:!0},fixable:"code",messages:{[ty]:"Do not nest ternary expressions.",[tb]:"Nest ternary expression should be parenthesized."}}});const{isParenthesized:tx,isOpeningParenToken:tE,isClosingParenToken:tC}=tm;function tA(e,t){let r=0;for(;tx(r+1,e,t);)r++;return r}function tD(e,t){let r=tA(e,t);return 0===r?[]:[...t.getTokensBefore(e,{count:r,filter:tE}),...t.getTokensAfter(e,{count:r,filter:tC})]}function tS(e,t){let r=tD(e,t),[n]=(r[0]||e).range,[,u]=(r.at(-1)||e).range;return[n,u]}var t_={isParenthesized:tx,getParenthesizedTimes:tA,getParentheses:tD,getParenthesizedRange:tS,getParenthesizedText:function(e,t){let[r,n]=tS(e,t);return t.text.slice(r,n)}};function tw(e,t){return e?.type==="Literal"&&(null===t?"null"===e.raw:e.value===t)}var tT={isLiteral:tw,isStringLiteral:e=>e?.type==="Literal"&&"string"==typeof e.value,isNumberLiteral:e=>"Literal"===e.type&&"number"==typeof e.value,isBigIntLiteral:e=>"Literal"===e.type&&!!e.bigint,isNullLiteral:e=>tw(e,null),isRegexLiteral:e=>"Literal"===e.type&&!!e.regex};function tP(e,t,r){if(!r.includes(e?.type))return!1;"string"==typeof t&&(t={names:[t]}),Array.isArray(t)&&(t={names:t});let{name:n,names:u,argumentsLength:a,minimumArguments:i,maximumArguments:o,allowSpreadElement:s,optional:d}={minimumArguments:0,maximumArguments:Number.POSITIVE_INFINITY,allowSpreadElement:!1,...t};if(n&&(u=[n]),!0===d&&e.optional!==d||!1===d&&e.optional||"number"==typeof a&&e.arguments.length!==a||0!==i&&e.arguments.length<i||Number.isFinite(o)&&e.arguments.length>o)return!1;if(!s){let t=Number.isFinite(o)?o:a;if("number"==typeof t&&e.arguments.some((e,r)=>"SpreadElement"===e.type&&r<t))return!1}return!Array.isArray(u)||!(u.length>0)||"Identifier"===e.callee.type&&!!u.includes(e.callee.name)}var tk={isCallExpression:(e,t)=>tP(e,t,["CallExpression"]),isNewExpression:(e,t)=>{if("boolean"==typeof t?.optional)throw TypeError("Cannot check node.optional in `isNewExpression`.");return tP(e,t,["NewExpression"])},isCallOrNewExpression:(e,t)=>tP(e,t,["CallExpression","NewExpression"])},tF=["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"],tI=function(e,t){if(e?.type!=="MemberExpression")return!1;"string"==typeof t&&(t={properties:[t]}),Array.isArray(t)&&(t={properties:t});let{property:r,properties:n,object:u,objects:a,optional:i,computed:o}={property:"",properties:[],object:"",...t};if(r&&(n=[r]),u&&(a=[u]),!0===i&&e.optional!==i||!1===i&&e.optional)return!1;if(Array.isArray(n)&&n.length>0){if("Identifier"!==e.property.type||!n.includes(e.property.name))return!1;o??=!1}return!(!0===o&&e.computed!==o||!1===o&&e.computed||Array.isArray(a)&&a.length>0&&("Identifier"!==e.object.type||!a.includes(e.object.name)))};const{isCallExpression:tB}=tk,{isStringLiteral:tj}=tT,{isCallExpression:tL}=tk;var tO=e=>tL(e,{name:"require",argumentsLength:1,optional:!1})&&tj(e.arguments[0]);function tN(e,t){let r=t.trim().split(".");for(let t=r.length-1;t>=0;t--){let n=r[t];if(!n)return!1;if(0===t)return"Identifier"===e.type&&e.name===n||"this"===n&&"ThisExpression"===e.type;if("MemberExpression"!==e.type||e.optional||e.computed||"Identifier"!==e.property.type||e.property.name!==n)return!1;e=e.object}}var tR={isNodeMatchesNameOrPath:tN,isNodeMatches:function(e,t){return t.some(t=>tN(e,t))}};const{isNodeMatches:tM}=tR,{isLiteral:t$,isStringLiteral:tU,isNumberLiteral:tz,isBigIntLiteral:tV,isNullLiteral:tq,isRegexLiteral:tW}=tT,{isNewExpression:tG,isCallExpression:tZ,isCallOrNewExpression:tH}=tk;var tK={isLiteral:t$,isStringLiteral:tU,isNumberLiteral:tz,isBigIntLiteral:tV,isNullLiteral:tq,isRegexLiteral:tW,isArrowFunctionBody:function(e){return"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e},isCallExpression:tZ,isCallOrNewExpression:tH,isDirective:e=>"ExpressionStatement"===e.type&&"string"==typeof e.directive,isEmptyNode:function e(t,r){let{type:n}=t;return"BlockStatement"===n?t.body.every(t=>e(t,r)):!!("EmptyStatement"===n||r?.(t))},isExpressionStatement:function(e){return"ExpressionStatement"===e.type||"ChainExpression"===e.type&&"ExpressionStatement"===e.parent.type},isFunction:function(e){return tF.includes(e.type)},isMemberExpression:tI,isMethodCall:function(e,t){"string"==typeof t&&(t={methods:[t]}),Array.isArray(t)&&(t={methods:t});let{optionalCall:r,optionalMember:n,method:u,methods:a}={method:"",methods:[],...t};return tB(e,{argumentsLength:t.argumentsLength,minimumArguments:t.minimumArguments,maximumArguments:t.maximumArguments,allowSpreadElement:t.allowSpreadElement,optional:r})&&tI(e.callee,{object:t.object,objects:t.objects,computed:t.computed,property:u,properties:a,optional:n})},isNewExpression:tG,isReferenceIdentifier:function(e,t=[]){if("Identifier"!==e.type)return!1;let r=Array.isArray(t)?t:[t];return(!(r.length>0)||!!r.includes(e.name))&&!function(e){let{parent:t}=e;switch(t.type){case"MemberExpression":return!t.computed&&t.property===e;case"FunctionDeclaration":case"FunctionExpression":return t.params.includes(e)||t.id===e;case"ArrowFunctionExpression":return t.params.includes(e);case"ClassDeclaration":case"ClassExpression":case"VariableDeclarator":case"TSDeclareFunction":case"TSEnumMember":case"TSTypeAliasDeclaration":return t.id===e;case"PropertyDefinition":case"MethodDefinition":return!t.computed&&t.key===e;case"Property":return!t.computed&&t.key===e&&("ObjectExpression"===t.parent.type||"ObjectPattern"===t.parent.type)&&t.parent.properties.includes(t)||t.value===e&&"ObjectPattern"===t.parent.type&&t.parent.properties.includes(t);case"ArrayPattern":return t.elements.includes(e);case"LabeledStatement":case"ContinueStatement":case"BreakStatement":return t.label===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":return t.local===e;case"ExportAllDeclaration":return t.exported===e;case"ImportSpecifier":return t.local===e||t.imported===e;case"ExportSpecifier":return t.local===e||t.exported===e;case"TSIndexSignature":return t.parameters.includes(e);case"TSTypeParameter":return t.name===e;case"TSMappedType":case"TSPropertySignature":return t.key===e}return!1}(e)},isStaticRequire:tO,isTaggedTemplateLiteral:function(e,t){return"TemplateLiteral"===e.type&&"TaggedTemplateExpression"===e.parent.type&&e.parent.quasi===e&&(!t||tM(e.parent.tag,t))},isUndefined:function(e){return"Identifier"===e.type&&"undefined"===e.name},functionTypes:tF};const{isMemberExpression:tY}=tK;function tJ(e,t){let{object:r,property:n,properties:u}={property:"",properties:[],...t};if(!tY(e,{property:n,properties:u,optional:!1}))return;let a=e.object;return tY(a,{object:r,property:"prototype",optional:!1})||"Array"===r&&"ArrayExpression"===a.type&&0===a.elements.length||"Object"===r&&"ObjectExpression"===a.type&&0===a.properties.length}var tX=e=>e?.type==="LogicalExpression"&&("&&"===e.operator||"||"===e.operator);const tQ=e=>e?.type==="UnaryExpression"&&"!"===e.operator,t0=e=>tQ(e.parent)&&e.parent.argument===e,t1=e=>t2(e.parent)&&e.parent.arguments[0]===e,t2=e=>e?.type==="CallExpression"&&"Identifier"===e.callee.type&&"Boolean"===e.callee.name&&1===e.arguments.length,t3=e=>e?.type==="VExpressionContainer"&&"VAttribute"===e.parent.type&&e.parent.directive&&e.parent.value===e&&"VDirectiveKey"===e.parent.key.type&&"VIdentifier"===e.parent.key.name.type&&("if"===e.parent.key.name.rawName||"else-if"===e.parent.key.name.rawName||"show"===e.parent.key.name.rawName);var t4={},t5={};Object.defineProperty(t5,"__esModule",{value:!0}),t5.isIdentifierChar=ru,t5.isIdentifierName=function(e){let t=!0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if((64512&n)==55296&&r+1<e.length){let t=e.charCodeAt(++r);(64512&t)==56320&&(n=65536+((1023&n)<<10)+(1023&t))}if(t){if(t=!1,!rn(n))return!1}else if(!ru(n))return!1}return!t},t5.isIdentifierStart=rn;let t8="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",t6="\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const t9=RegExp("["+t8+"]"),t7=RegExp("["+t8+t6+"]");t8=t6=null;const re=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],rt=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function rr(e,t){let r=65536;for(let n=0,u=t.length;n<u&&!((r+=t[n])>e);n+=2)if((r+=t[n+1])>=e)return!0;return!1}function rn(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&t9.test(String.fromCharCode(e)):rr(e,re)))}function ru(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&t7.test(String.fromCharCode(e)):rr(e,re)||rr(e,rt))))}var ra={};Object.defineProperty(ra,"__esModule",{value:!0}),ra.isKeyword=function(e){return ri.has(e)},ra.isReservedWord=rd,ra.isStrictBindOnlyReservedWord=rc,ra.isStrictBindReservedWord=function(e,t){return rl(e,t)||rc(e)},ra.isStrictReservedWord=rl;const ri=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),ro=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),rs=new Set(["eval","arguments"]);function rd(e,t){return t&&"await"===e||"enum"===e}function rl(e,t){return rd(e,t)||ro.has(e)}function rc(e){return rs.has(e)}Object.defineProperty(t4,"__esModule",{value:!0}),Object.defineProperty(t4,"isIdentifierChar",{enumerable:!0,get:function(){return r.isIdentifierChar}}),Object.defineProperty(t4,"isIdentifierName",{enumerable:!0,get:function(){return r.isIdentifierName}}),Object.defineProperty(t4,"isIdentifierStart",{enumerable:!0,get:function(){return r.isIdentifierStart}}),Object.defineProperty(t4,"isKeyword",{enumerable:!0,get:function(){return n.isKeyword}}),Object.defineProperty(t4,"isReservedWord",{enumerable:!0,get:function(){return n.isReservedWord}}),Object.defineProperty(t4,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return n.isStrictBindOnlyReservedWord}}),Object.defineProperty(t4,"isStrictBindReservedWord",{enumerable:!0,get:function(){return n.isStrictBindReservedWord}}),Object.defineProperty(t4,"isStrictReservedWord",{enumerable:!0,get:function(){return n.isStrictReservedWord}}),r=t5,n=ra;const rf=e=>[e,...e.childScopes.flatMap(e=>rf(e))];var rp=e=>[...new Set(rf(e).flatMap(({references:e})=>e))];const{isIdentifierName:rh,isStrictReservedWord:rm,isKeyword:rg}=t4,ry=function(e,t){for(;t;){let r=t.set.get(e);if(r)return r;t=t.upper}},rb=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with","as","implements","interface","let","package","private","protected","public","static","yield","any","boolean","constructor","declare","get","module","require","number","set","string","symbol","type","from","of"]),rv=e=>"string"==typeof e&&!rg(e)&&!rm(e,!0)&&rh(e)&&"arguments"!==e&&!rb.has(e),rx=(e,t)=>rp(t).some(({identifier:t,resolved:r})=>t?.name===e&&!r),rE=(e,t)=>!t.some(t=>ry(e,t)||rx(e,t)),rC=()=>!0;var rA=function(e,t,r=rC){if(rv(e)||rv(e+="_")){for(;!rE(e,t)||!r(e,t);)e+="_";return e}};const rD={},rS=rD.hasOwnProperty,r_=(e,t)=>{for(let r in e)rS.call(e,r)&&t(r,e[r])},rw=(e,t)=>(t&&r_(t,(t,r)=>{e[t]=r}),e),rT=(e,t)=>{let r=e.length,n=-1;for(;++n<r;)t(e[n])},rP=e=>"\\u"+("0000"+e).slice(-4),rk=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},rF=rD.toString,rI=Array.isArray,rB=e=>"function"==typeof Buffer&&Buffer.isBuffer(e),rj=e=>"[object Object]"==rF.call(e),rL=e=>"string"==typeof e||"[object String]"==rF.call(e),rO=e=>"number"==typeof e||"[object Number]"==rF.call(e),rN=e=>"function"==typeof e,rR=e=>"[object Map]"==rF.call(e),rM=e=>"[object Set]"==rF.call(e),r$={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},rU=/[\\\b\f\n\r\t]/,rz=/[0-9]/,rV=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,rq=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,rW=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,rG=(e,t)=>{let r;let n=()=>{l=d,++t.indentLevel,d=t.indent.repeat(t.indentLevel)},u={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},a=t&&t.json;a&&(u.quotes="double",u.wrap=!0),"single"!=(t=rw(u,t)).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");let i="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",o=t.compact,s=t.lowercaseHex,d=t.indent.repeat(t.indentLevel),l="",c=t.__inline1__,f=t.__inline2__,p=o?"":"\n",h=!0,m="binary"==t.numbers,g="octal"==t.numbers,y="decimal"==t.numbers,b="hexadecimal"==t.numbers;if(a&&e&&rN(e.toJSON)&&(e=e.toJSON()),!rL(e)){if(rR(e))return 0==e.size?"new Map()":(o||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+rG(Array.from(e),t)+")");if(rM(e))return 0==e.size?"new Set()":"new Set("+rG(Array.from(e),t)+")";if(rB(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+rG(Array.from(e),t)+")";if(rI(e))return(r=[],t.wrap=!0,c&&(t.__inline1__=!1,t.__inline2__=!0),f||n(),rT(e,e=>{h=!1,f&&(t.__inline2__=!1),r.push((o||f?"":d)+rG(e,t))}),h)?"[]":f?"["+r.join(", ")+"]":"["+p+r.join(","+p)+p+(o?"":l)+"]";if(rO(e)){if(a)return JSON.stringify(e);if(y)return String(e);if(b){let t=e.toString(16);return s||(t=t.toUpperCase()),"0x"+t}if(m)return"0b"+e.toString(2);if(g)return"0o"+e.toString(8)}else if(rj(e))return(r=[],t.wrap=!0,n(),r_(e,(e,n)=>{h=!1,r.push((o?"":d)+rG(e,t)+":"+(o?"":" ")+rG(n,t))}),h)?"{}":"{"+p+r.join(","+p)+p+(o?"":l)+"}";else return a?JSON.stringify(e)||"null":String(e)}let v=t.escapeEverything?rq:rW;return r=e.replace(v,(e,r,n,u,o,d)=>{if(r){if(t.minimal)return r;let e=r.charCodeAt(0),n=r.charCodeAt(1);return t.es6?"\\u{"+rk((e-55296)*1024+n-56320+65536,s)+"}":rP(rk(e,s))+rP(rk(n,s))}if(n)return rP(rk(n.charCodeAt(0),s));if("\0"==e&&!a&&!rz.test(d.charAt(o+1)))return"\\0";if(u)return u==i||t.escapeEverything?"\\"+u:u;if(rU.test(e))return r$[e];if(t.minimal&&!rV.test(e))return e;let l=rk(e.charCodeAt(0),s);return a||l.length>2?rP(l):"\\x"+("00"+l).slice(-2)}),"`"==i&&(r=r.replace(/\$\{/g,"\\${")),t.isScriptContext&&(r=r.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,a?"\\u003C!--":"\\x3C!--")),t.wrap&&(r=i+r+i),r};rG.version="3.0.2";var rZ=function(e,t="'"){if("string"!=typeof e)throw TypeError("Unexpected string.");return rG(e,{quotes:'"'===t?"double":"single",wrap:!0,es6:!0,minimal:!0,lowercaseHex:!1})};const{isOpeningParenToken:rH,isCommaToken:rK}=tm;var rY=function(e,t){let r=e.getTokenAfter(t.callee,rH),[n,u]=e.getLastTokens(t,2);return{openingParenthesisToken:r,closingParenthesisToken:u,trailingCommaToken:rK(n)?n:void 0}},rJ=({identifiers:e,references:t})=>[...new Set([...e,...t.map(({identifier:e})=>e)])];const rX=e=>"MemberExpression"===e.type||"CallExpression"===e.type,{findVariable:rQ}=tm,r0=(e,t)=>{let{references:r=[]}=rQ(e,t)||{};return r};var r1=e=>("AssignmentExpression"===e.parent.type||"AssignmentPattern"===e.parent.type)&&e.parent.left===e||"UpdateExpression"===e.parent.type&&e.parent.argument===e||"ArrayPattern"===e.parent.type&&e.parent.elements.includes(e)||"Property"===e.parent.type&&e.parent.value===e&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent)||"UnaryExpression"===e.parent.type&&"delete"===e.parent.operator&&e.parent.argument===e;const{isUndefined:r2}=tK,r3=new Set(["ArrayExpression","ArrowFunctionExpression","ClassExpression","FunctionExpression","Literal","ObjectExpression","TemplateLiteral"]),{isUndefined:r4,isCallExpression:r5,isMethodCall:r8}=tK,r6=new Set(["ArrayExpression","BinaryExpression","ClassExpression","Literal","ObjectExpression","TemplateLiteral","UnaryExpression","UpdateExpression"]),r9=new Set(["AssignmentExpression","AwaitExpression","NewExpression","TaggedTemplateExpression","ThisExpression"]);var r7=function(e,t){return e.loc.start.line===t.loc.start.line};const{getStaticValue:ne}=tm;function nt(e){let t;switch(e?.type){case"MemberExpression":t=e.property;break;case"ChainExpression":return nt(e.expression);case"Property":case"MethodDefinition":t=e.key}if(t){if("Identifier"===t.type&&!e.computed)return t.name;let r=ne(t);if(!r)return;return String(r.value)}}var nr=function e(t,r){if(t.type!==r.type)return"ChainExpression"===t.type?e(t.expression,r):"ChainExpression"===r.type&&e(t,r.expression);switch(t.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return t.name===r.name;case"Literal":return t.regex||r.regex?!!(t.regex&&r.regex&&t.regex.pattern===r.regex.pattern&&t.regex.flags===r.regex.flags):t.bigint||r.bigint?t.bigint===r.bigint:t.value===r.value;case"ChainExpression":return e(t.expression,r.expression);case"MemberExpression":{let n=nt(t);if(void 0!==n)return e(t.object,r.object)&&n===nt(r);return t.computed===r.computed&&e(t.object,r.object)&&e(t.property,r.property)}default:return!1}},nn=function(e,t){let r=function(e,t){let r=e.references.filter(e=>e.identifier===t);if(1===r.length)return r[0]}(e,t);return!!r?.resolved&&r.resolved.defs.length>0};const{isExpressionStatement:nu}=tK,na=new Set(["String","Null","Boolean","Numeric","RegularExpression"]),ni=new Set(["[","(","/","`","+","-","*",",","."]);var no=function(e,t,r){if(""===r||r&&!ni.has(r.charAt(0))||!e)return!1;let{type:n,value:u,range:a}=e,i=t.getNodeByRangeIndex(a[0]);if("Punctuator"===n){if(";"===u)return!1;if("]"===u)return!0;if(")"===u){switch(i.type){case"IfStatement":if(t.getTokenBefore(i.consequent)===e)return!1;break;case"ForStatement":case"ForInStatement":case"ForOfStatement":case"WhileStatement":case"DoWhileStatement":case"WithStatement":if(i.body&&t.getTokenBefore(i.body)===e)return!1}return!0}}return!!na.has(n)||("Template"===n?u.endsWith("`"):"ObjectExpression"===i.type||"Identifier"===n&&("of"!==u||"ForOfStatement"!==i.type)&&("await"!==u||"AwaitExpression"!==i.type))};const{isOpeningParenToken:ns,isClosingParenToken:nd}=tm;var nl=function(e,t){if(e.arguments.length>0)return!0;let[r,n]=t.getLastTokens(e,2);return ns(r)&&nd(n)&&e.callee.range[1]<e.range[1]};const{isNumberLiteral:nc,isBigIntLiteral:nf}=tK,np=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,nh=e=>np.test(e);var nm={isDecimalIntegerNode:e=>nc(e)&&nh(e.raw),isDecimalInteger:nh,isNumeric:e=>nc(e)||nf(e),isLegacyOctal:e=>nc(e)&&/^0\d+$/.test(e.raw),getPrefix:function(e){let t="",r=e;return/^0[box]/i.test(e)&&(t=e.slice(0,2),r=e.slice(2)),{prefix:t,data:r}},parseNumber:function(e){let{number:t,mark:r="",sign:n="",power:u=""}=e.match(/^(?<number>[\d._]*?)(?:(?<mark>[Ee])(?<sign>[+-])?(?<power>[\d_]+))?$/).groups;return{number:t,mark:r,sign:n,power:u}},parseFloatNumber:function(e){let t=e.split("."),[r,n=""]=t;return{integer:r,dot:2===t.length?".":"",fractional:n}}};const{isDecimalIntegerNode:ng}=nm;var ny=function(e,t){switch(e.type){case"Identifier":case"MemberExpression":case"CallExpression":case"ChainExpression":case"TemplateLiteral":case"ThisExpression":case"ArrayExpression":case"FunctionExpression":return!1;case"NewExpression":return!nl(e,t);case"Literal":if(ng(e))return!0;return!1;default:return!0}},nb={exports:{}};u=function(){var e=[],t=[],r={},n={},u={};function a(e){return"string"==typeof e?RegExp("^"+e+"$","i"):e}function i(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function o(e,t,n){if(!e.length||r.hasOwnProperty(e))return t;for(var u=n.length;u--;){var a=n[u];if(a[0].test(t))return function(e,t){return e.replace(t[0],function(r,n){var u,a,o=(u=t[1],a=arguments,u.replace(/\$(\d{1,2})/g,function(e,t){return a[t]||""}));return""===r?i(e[n-1],o):i(r,o)})}(t,a)}return t}function s(e,t,r){return function(n){var u=n.toLowerCase();return t.hasOwnProperty(u)?i(n,u):e.hasOwnProperty(u)?i(n,e[u]):o(u,n,r)}}function d(e,t,r,n){return function(n){var u=n.toLowerCase();return!!t.hasOwnProperty(u)||!e.hasOwnProperty(u)&&o(u,u,r)===u}}function l(e,t,r){var n=1===t?l.singular(e):l.plural(e);return(r?t+" ":"")+n}return l.plural=s(u,n,e),l.isPlural=d(u,n,e),l.singular=s(n,u,t),l.isSingular=d(n,u,t),l.addPluralRule=function(t,r){e.push([a(t),r])},l.addSingularRule=function(e,r){t.push([a(e),r])},l.addUncountableRule=function(e){if("string"==typeof e){r[e.toLowerCase()]=!0;return}l.addPluralRule(e,"$0"),l.addSingularRule(e,"$0")},l.addIrregularRule=function(e,t){t=t.toLowerCase(),u[e=e.toLowerCase()]=t,n[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return l.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return l.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return l.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(l.addUncountableRule),l},nb.exports=u();const{singular:nv}=nb.exports;var nx=function(e,t,r=0,n=0){let[u,a]=Array.isArray(e)?e:e.range;return{start:t.getLocFromIndex(u+r),end:t.getLocFromIndex(a+n)}};const{isParenthesized:nE,getParenthesizedTimes:nC,getParentheses:nA,getParenthesizedRange:nD,getParenthesizedText:nS}=t_,{isArrayPrototypeProperty:n_,isObjectPrototypeProperty:nw}={isArrayPrototypeProperty:(e,t)=>tJ(e,{...t,object:"Array"}),isObjectPrototypeProperty:(e,t)=>tJ(e,{...t,object:"Object"})},{isNodeMatches:nT,isNodeMatchesNameOrPath:nP}=tR,{isBooleanNode:nk,getBooleanAncestor:nF}={isBooleanNode:function e(t){if(tQ(t)||t0(t)||t2(t)||t1(t))return!0;let{parent:r}=t;return!!t3(r)||("IfStatement"===r.type||"ConditionalExpression"===r.type||"WhileStatement"===r.type||"DoWhileStatement"===r.type||"ForStatement"===r.type)&&r.test===t||!!tX(r)&&e(r)},getBooleanAncestor:function(e){let t=!1;for(;;)if(t0(e))t=!t,e=e.parent;else if(t1(e))e=e.parent;else break;return{node:e,isNegative:t}}};var nI={avoidCapture:rA,escapeString:rZ,getBooleanAncestor:nF,getCallExpressionArgumentsText:function(e,t){let{openingParenthesisToken:r,closingParenthesisToken:n}=rY(e,t);return e.text.slice(r.range[1],n.range[0])},getCallExpressionTokens:rY,getParentheses:nA,getParenthesizedRange:nD,getParenthesizedText:nS,getParenthesizedTimes:nC,getReferences:rp,getScopes:rf,getVariableIdentifiers:rJ,hasOptionalChainElement:function e(t){return!!rX(t)&&(!!t.optional||"MemberExpression"===t.type&&e(t.object))},isArrayPrototypeProperty:n_,isBooleanNode:nk,isFunctionSelfUsedInside:function(e,t){if(t.block!==e)throw Error('"functionScope" should be the scope of "functionNode".');let{type:r,id:n}=e;return"ArrowFunctionExpression"!==r&&(!!(t.thisFound||r0(t,"arguments").some(({from:e})=>e===t))||!!n&&r0(t,n).length>0)},isLeftHandSide:r1,isLogicalExpression:tX,isMethodNamed:(e,t)=>"CallExpression"===e.type&&"MemberExpression"===e.callee.type&&"Identifier"===e.callee.property.type&&e.callee.property.name===t,isNodeMatches:nT,isNodeMatchesNameOrPath:nP,isNodeValueNotDomNode:e=>r3.has(e.type)||r2(e),isNodeValueNotFunction:e=>r6.has(e.type)||r9.has(e.type)||r4(e)||r5(e)&&!r8(e,{method:"bind",optionalCall:!1,optionalMember:!1}),isObjectPrototypeProperty:nw,isOnSameLine:r7,isParenthesized:nE,isSameIdentifier:(e,t)=>"Identifier"===e.type&&"Identifier"===t.type&&e.name===t.name,isSameReference:nr,isShadowed:nn,isValueNotUsable:e=>nu(e.parent),needsSemicolon:no,shouldAddParenthesesToMemberExpressionObject:ny,shouldAddParenthesesToCallExpressionCallee:function(e){return"SequenceExpression"===e.type||"YieldExpression"===e.type||"ArrowFunctionExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"LogicalExpression"===e.type||"BinaryExpression"===e.type||"UnaryExpression"===e.type||"UpdateExpression"===e.type||"NewExpression"===e.type},shouldAddParenthesesToAwaitExpressionArgument:function(e){return"SequenceExpression"===e.type||"YieldExpression"===e.type||"ArrowFunctionExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"LogicalExpression"===e.type||"BinaryExpression"===e.type},singular:e=>{let t=nv(e);if(t!==e)return t},toLocation:nx,getAncestor:function(e,t){let r=function(e){if("string"==typeof e)return t=>t.type===e}(t);for(;e.parent;e=e.parent)if(r(e))return e}};const{findVariable:nB}=tm,{getAncestor:nj}=nI,{isStaticRequire:nL,isStringLiteral:nO,isMemberExpression:nN}=tK,nR="prefer-event-target",nM=new Set(["@angular/core","eventemitter3"]),n$=e=>"VariableDeclarator"===e.parent.type&&e.parent.id===e&&"VariableDeclaration"===e.parent.parent.type&&"const"===e.parent.parent.kind&&e.parent.parent.declarations.includes(e.parent);function nU(e){let t;return!!e&&(nL(e)?[t]=e.arguments:"AwaitExpression"===e.type&&"ImportExpression"===e.argument.type&&({source:t}=e.argument),!!(nO(t)&&nM.has(t.value)))}var nz=/*@__PURE__*/ec({create:e=>({Identifier(t){if(!("EventEmitter"===t.name&&(("ClassDeclaration"===t.parent.type||"ClassExpression"===t.parent.type)&&t.parent.superClass===t||"NewExpression"===t.parent.type&&t.parent.callee===t)))return;let r=e.sourceCode.getScope(t);if(!function(e){if(!e)return!1;let t=nj(e,"ImportDeclaration");return!!(nM.has(t?.source.value)||"Property"===e.parent.type&&e.parent.value===e&&"Identifier"===e.parent.key.type&&"EventEmitter"===e.parent.key.name&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent)&&n$(e.parent.parent)&&nU(e.parent.parent.parent.init)||n$(e)&&nN(e.parent.init,{property:"EventEmitter",optional:!1,computed:!1})&&nU(e.parent.init.object))}(nB(r,t)?.defs[0]?.name))return{node:t,messageId:nR}}}),meta:{type:"suggestion",docs:{description:"Prefer `EventTarget` over `EventEmitter`.",recommended:!0},messages:{[nR]:"Prefer `EventTarget` over `EventEmitter`."}}});const nV={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",219:"[",220:"\\",221:"]",222:"'",224:"Meta"},{isNumberLiteral:nq}=tK,nW="prefer-keyboard-event-key",nG=new Set(["keyCode","charCode","which"]),nZ=e=>e?.type==="CallExpression"&&"MemberExpression"===e.callee.type&&"addEventListener"===e.callee.property.name,nH=(e,t)=>{let r=nY(t,"CallExpression",nZ),n=r?.arguments[1];switch(n?.type){case"ArrowFunctionExpression":case"FunctionExpression":{let t=e.sourceCode.getDeclaredVariables(n)[0],r=t?.references;return{event:n.params[0],references:r}}default:return{}}},nK=(e,t)=>e?.parent?.type==="MemberExpression"&&e.parent.object===t,nY=(e,t,r=()=>!0)=>{let n=e;for(;n;){if(n.type===t&&r(n))return n;n=n.parent}},nJ=(e,t)=>{let r=e;for(;r&&t;)t--,r=r.parent;if(0===t)return r},nX=e=>t=>{let r=nJ(e,3);if(!r||"IfStatement"!==r.type)return;let{type:n,operator:u,right:a}=r.test;if(!("BinaryExpression"===n&&("=="===u||"==="===u)&&nq(a)))return;let i=nV[a.value]||String.fromCodePoint(a.value);if(i)return[t.replaceText(e,"key"),t.replaceText(a,rZ(i))]},nQ=e=>({messageId:nW,data:{name:e.name},node:e,fix:nX(e)});var n0=/*@__PURE__*/ec({create:e=>({Identifier(t){if("keyCode"!==t.name&&"charCode"!==t.name&&"which"!==t.name)return;let{event:r,references:n}=nH(e,t);if(r&&n&&n.some(e=>nK(t,e.identifier)))return nQ(t)},Property(t){let r=t.value.name;if(!nG.has(r))return;let{event:n,references:u}=nH(e,t);if(!n)return;let a=nY(t,"VariableDeclarator"),i=a?.init;if(u&&u.some(e=>e.identifier===i))return nQ(t.value);if("ObjectPattern"===n.type){for(let e of n.properties)if(e===t)return nQ(t.value)}}}),meta:{type:"suggestion",docs:{description:"Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.",recommended:!0},fixable:"code",messages:{[nW]:"Use `.key` instead of `.{{name}}`."}}});const{isMemberExpression:n1}=tK,n2="error",n3="suggestion";var n4=/*@__PURE__*/ec({create:()=>({MemberExpression(e){if(!n1(e,{property:"innerText"}))return;let t=e.property;return{node:t,messageId:n2,suggest:[{messageId:n3,fix:e=>e.replaceText(t,"textContent")}]}},Identifier(e){if("innerText"===e.name&&"Property"===e.parent.type&&e.parent.key===e&&!e.parent.computed&&"init"===e.parent.kind&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent))return{node:e,messageId:n2,suggest:[{messageId:n3,fix:t=>t.replaceText(e,e.parent.shorthand?"textContent: innerText":"textContent")}]}}}),meta:{type:"suggestion",docs:{description:"Prefer `.textContent` over `.innerText`.",recommended:!0},hasSuggestions:!0,messages:{[n2]:"Prefer `.textContent` over `.innerText`.",[n3]:"Switch to `.textContent`."}}});const{getParentheses:n5}=t_,{isCommaToken:n8}=tm,{isCommaToken:n6}=tm,{getParentheses:n9}=t_,{getParenthesizedRange:n7}=t_,{isSemicolonToken:ue}=tm;var ut=function*(e,t,r){if("ReturnStatement"!==t.type&&"ThrowStatement"!==t.type)return;let n=r.getFirstToken(t);yield e.insertTextAfter(n," (");let u=r.getLastToken(t);if(!ue(u)){yield e.insertTextAfter(t,")");return}yield e.insertTextBefore(u,")")},ur=function(e,t,r){let n=e;"object"==typeof e&&Array.isArray(e.range)&&(n=e.range[1]);let[u]=t.text.slice(n).match(/^\s*/);return r.removeRange([n,n+u.length])};const{isParenthesized:un}=t_,{getParenthesizedRange:uu}=t_,ua=({type:e,value:t})=>"Keyword"===e&&/^[a-z]*$/.test(t)||"Identifier"===e&&"of"===t||"Identifier"===e&&"await"===t;var ui=function*(e,t,r){let n=uu(t,r),u=r.getTokenBefore({range:n},{includeComments:!0});u&&n[0]===u.range[1]&&ua(u)&&(yield e.insertTextAfter(u," "));let a=r.getTokenAfter({range:n},{includeComments:!0});a&&n[1]===a.range[0]&&ua(a)&&(yield e.insertTextBefore(a," "))};const{isParenthesized:uo}=t_,{getParenthesizedRange:us}=t_;var ud=function(e,t,r){let[,n]=us(t.object,r),[,u]=t.range;return e.removeRange([n,u])};const{getParenthesizedRange:ul}=t_;var uc=function*(e,t,r){let n=t.callee;yield ud(e,n,r);let[,u]=ul(n,r),[,a]=t.range;yield e.removeRange([u,a])},uf=e=>"Property"===e.parent.type&&e.parent.shorthand&&e===e.parent.value,up=(e,t)=>e&&t&&e.range[0]===t.range[0]&&e.range[1]===t.range[1];const uh=e=>"AssignmentPattern"===e.parent.type&&e.parent.left===e&&uf(e.parent),um=e=>{let{type:t,local:r,imported:n}=e.parent;return"ImportSpecifier"===t&&up(r,n)&&r===e},ug=e=>{let{type:t,local:r,exported:n}=e.parent;return"ExportSpecifier"===t&&up(r,n)&&r===e};var uy=function(e,t,r){return uf(e)||uh(e)?r.replaceText(e,`${e.name}: ${t}`):um(e)?r.replaceText(e,`${e.name} as ${t}`):ug(e)?r.replaceText(e,`${t} as ${e.name}`):e.typeAnnotation?r.replaceTextRange([e.range[0],e.typeAnnotation.range[0]],`${t}${e.optional?"?":""}`):r.replaceText(e,t)};const{getParentheses:ub}=t_;var uv={extendFixRange:function*(e,t){yield e.insertTextBeforeRange(t,""),yield e.insertTextAfterRange(t,"")},removeParentheses:function*(e,t,r){for(let n of n5(e,r))yield t.remove(n)},appendArgument:function(e,t,r,n){if("CallExpression"!==t.type)throw Error(`Unexpected node "${t.type}".`);let[u,a]=n.getLastTokens(t,2);return t.arguments.length>0&&(r=n8(u)?` ${r},`:`, ${r}`),e.insertTextBefore(a,r)},removeArgument:function(e,t,r){let n=t.parent,u=n.arguments.indexOf(t),a=n9(t,r),i=a[0]||t,o=a.at(-1)||t,[s]=i.range,[,d]=o.range;if(0!==u&&(s=r.getTokenBefore(i).range[0]),1===n.arguments.length){let e=r.getTokenBefore(o);n6(e)&&(d=e[1])}return e.replaceTextRange([s,d],"")},replaceArgument:function(e,t,r,n){return e.replaceTextRange(n7(t,n),r)},switchNewExpressionToCallExpression:function*(e,t,r){let n=t.getFirstToken(e);yield r.remove(n),yield ur(n,t,r),nl(e,t)||(yield r.insertTextAfter(e,"()")),r7(n,e.callee)||un(e,t)||(yield*ut(r,e.parent,t))},switchCallExpressionToNewExpression:function*(e,t,r){var n;yield*ui(r,e,t),yield r.insertTextBefore(e,"new ");let{callee:u}=e;!uo(u,t)&&"MemberExpression"===(n=u).type&&function(e){let t=e.object,r=e.object.type;for(;"MemberExpression"===r;)r=(t=t.object).type;return"CallExpression"===r}(n)&&(yield r.insertTextBefore(u,"("),yield r.insertTextAfter(u,")"))},removeMemberExpressionProperty:ud,removeMethodCall:uc,replaceTemplateElement:(e,t,r)=>{let{range:[n,u],tail:a}=t;return e.replaceTextRange([n+1,u-(a?1:2)],r)},replaceReferenceIdentifier:uy,renameVariable:(e,t,r)=>rJ(e).map(e=>uy(e,t,r)),replaceNodeOrTokenAndSpacesBefore:function* e(t,r,n,u,a=u){for(let r of ub(t,a))yield*e(r,"",n,u,a);let[i,o]=t.range,[s]=u.text.slice(0,i).match(/\s*$/),[d]=s.match(/(?:\r?\n|\r){0,1}/);i-=s.length,yield n.replaceTextRange([i,o],`${d}${r}`)},removeSpacesAfter:ur,fixSpaceAroundKeyword:ui,replaceStringLiteral:function(e,t,r,n,u){let a=t.range[0]+1,i=Number.isInteger(u)?n+a:a,o=Number.isInteger(u)?u+a:t.range[1]-1;return e.replaceTextRange([i,o],r)},addParenthesizesToReturnOrThrowExpression:ut};const{appendArgument:ux}=uv,{isMethodCall:uE}=tK,{isArrayPrototypeProperty:uC}=nI,uA="require-array-join-separator";var uD=/*@__PURE__*/ec({create:e=>({CallExpression(t){if(!(uE(t,{method:"join",argumentsLength:0,optionalCall:!1})||uE(t,{method:"call",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&uC(t.callee.object,{property:"join"})))return;let{sourceCode:r}=e,[n,u]=r.getLastTokens(t,2),a=1===t.arguments.length;return{loc:{start:n.loc[a?"end":"start"],end:u.loc.end},messageId:uA,fix:e=>ux(e,t,"','",r)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the separator argument with `Array#join()`.",recommended:!0},fixable:"code",messages:{[uA]:"Missing the separator argument."}}});const{getStaticValue:uS,getPropertyName:u_}=tm,{isMethodCall:uw}=tK,uT="no-thenable-object",uP="no-thenable-export",uk="no-thenable-class",uF=(e,t)=>uS(e,t.sourceCode.getScope(e))?.value==="then",uI=(e,t)=>{try{return"then"===u_(e,t.sourceCode.getScope(e))}catch{}return!1},uB=[{selector:"ObjectExpression",*getNodes(e,t){for(let r of e.properties)"Property"===r.type&&uI(r,t)&&(yield r.key)},messageId:uT},{selectors:["PropertyDefinition","MethodDefinition"],*getNodes(e,t){"then"===u_(e,t.sourceCode.getScope(e))&&(yield e.key)},messageId:uk},{selector:"MemberExpression",*getNodes(e,t){"AssignmentExpression"===e.parent.type&&e.parent.left===e&&"then"===u_(e,t.sourceCode.getScope(e))&&(yield e.property)},messageId:uT},{selector:"CallExpression",*getNodes(e,t){if(!(uw(e,{objects:["Object","Reflect"],method:"defineProperty",minimumArguments:3,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==e.arguments[0].type))return;let[,r]=e.arguments;uF(r,t)&&(yield r)},messageId:uT},{selector:"CallExpression",*getNodes(e,t){if(uw(e,{object:"Object",method:"fromEntries",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"ArrayExpression"===e.arguments[0].type){for(let r of e.arguments[0].elements)if(r?.type==="ArrayExpression"&&r.elements[0]&&"SpreadElement"!==r.elements[0].type){let[e]=r.elements;uF(e,t)&&(yield e)}}},messageId:uT},{selector:"Identifier",*getNodes(e){"then"===e.name&&"ExportSpecifier"===e.parent.type&&e.parent.exported===e&&(yield e)},messageId:uP},{selector:"Identifier",*getNodes(e){"then"===e.name&&("FunctionDeclaration"===e.parent.type||"ClassDeclaration"===e.parent.type)&&e.parent.id===e&&"ExportNamedDeclaration"===e.parent.parent.type&&e.parent.parent.declaration===e.parent&&(yield e)},messageId:uP},{selector:"VariableDeclaration",*getNodes(e,t){if("ExportNamedDeclaration"===e.parent.type&&e.parent.declaration===e)for(let r of t.sourceCode.getDeclaredVariables(e))"then"===r.name&&(yield*r.identifiers)},messageId:uP}];var uj=/*@__PURE__*/ec({create:e=>{for(let{selector:t,selectors:r,messageId:n,getNodes:u}of uB)e.on(t??r,function*(t){for(let r of u(t,e))yield{node:r,messageId:n}})},meta:{type:"problem",docs:{description:"Disallow `then` property.",recommended:!0},messages:{[uT]:"Do not add `then` to an object.",[uP]:"Do not export `then`.",[uk]:"Do not add `then` to a class."}}});const{getFunctionHeadLocation:uL}=tm,{isMethodCall:uO}=tK,uN="no-invalid-remove-event-listener";var uR=/*@__PURE__*/ec({create:e=>({CallExpression(t){if(!(uO(t,{method:"removeEventListener",minimumArguments:2,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==t.arguments[0].type&&("FunctionExpression"===t.arguments[1].type||"ArrowFunctionExpression"===t.arguments[1].type||uO(t.arguments[1],{method:"bind",optionalCall:!1,optionalMember:!1}))))return;let[,r]=t.arguments;return["ArrowFunctionExpression","FunctionExpression"].includes(r.type)?{node:r,loc:uL(r,e.sourceCode),messageId:uN}:{node:r.callee.property,messageId:uN}}}),meta:{type:"problem",docs:{description:"Prevent calling `EventTarget#removeEventListener()` with the result of an expression.",recommended:!0},messages:{[uN]:"The listener argument should be a function reference."}}});const{getFunctionHeadLocation:uM,getFunctionNameWithKind:u$}=tm,{getReferences:uU,isNodeMatches:uz}=nI,{functionTypes:uV}=tK,uq="consistent-function-scoping",uW=(e,t)=>e&&t&&(e===t||e.block===t.block),uG=["useState","useEffect","useContext","useReducer","useCallback","useMemo","useRef","useImperativeHandle","useLayoutEffect","useDebugValue"].flatMap(e=>[e,`React.${e}`]),uZ=e=>e.block?.parent?.callee&&uz(e.block.parent.callee,uG),uH=e=>"function"===e.type&&e.block?.type==="ArrowFunctionExpression"&&(e.thisFound||e.childScopes.some(e=>uH(e))),uK=new Set(["FunctionExpression","ArrowFunctionExpression"]),uY=e=>uK.has(e.type)&&"CallExpression"===e.parent.type&&e.parent.callee===e;var uJ=/*@__PURE__*/ec({create:e=>{let{checkArrowFunctions:t}={checkArrowFunctions:!0,...e.options[0]},{sourceCode:r}=e,{scopeManager:n}=r,u=[];e.on(uV,()=>{u.push(!1)}),e.on("JSXElement",()=>{u.length>0&&(u[u.length-1]=!0)}),e.onExit(uV,e=>{if(!(u.pop()||"ArrowFunctionExpression"===e.type&&!t||function(e,t){let r=t.acquire(e);if(!r||uH(r))return!0;let n=e.parent;"VariableDeclarator"===n.type&&(n=n.parent),"VariableDeclaration"===n.type&&(n=n.parent),"BlockStatement"===n.type&&(n=n.parent);let u=t.acquire(n);return!!(!u||"global"===u.type||uZ(u)||uY(n))||function(e,t,r){let n=e=>e.some(e=>{if(uW(t,e.from))return!0;let{resolved:r}=e,[n]=r.defs;return(n?.type!=="FunctionName"||r.name!==n.name.name)&&uW(t,r.scope)}),u=e=>e.some(e=>uW(t,r.acquire(e.node))),a=n=>n.some(n=>{if(!n.parent||"FunctionDeclaration"!==n.parent.type||r.acquire(n))return!1;let u=r.acquire(n.parent);return!(!u||uW(e,u))&&uW(t,u.upper)});return uU(e).map(({resolved:e})=>e).filter(Boolean).some(e=>n(e.references)||u(e.defs)||a(e.identifiers))}(r,u,t)}(e,n)))return{node:e,loc:uM(e,r),messageId:uq,data:{functionNameWithKind:u$(e,r)}}})},meta:{type:"suggestion",docs:{description:"Move function definitions to the highest possible scope.",recommended:!0},schema:[{type:"object",additionalProperties:!1,properties:{checkArrowFunctions:{type:"boolean",default:!0}}}],messages:{[uq]:"Move {{functionNameWithKind}} to the outer scope."}}});const{getStaticValue:uX}=tm,{isNumberLiteral:uQ}=tK,u0=(e,t,r)=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.object.type&&e.object.name===t&&"Identifier"===e.property.type&&r.has(e.property.name),u1=(e,t)=>"CallExpression"===e.type&&!e.optional&&"Identifier"===e.callee.type&&e.callee.name===t,u2=new Set(["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"]),u3=e=>u0(e,"Math",u2),u4=new Set(["abs","acos","acosh","asin","asinh","atan","atanh","atan2","cbrt","ceil","clz32","cos","cosh","exp","expm1","floor","fround","hypot","imul","log","log1p","log10","log2","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc"]),u5=e=>"CallExpression"===e.type&&!e.optional&&u0(e.callee,"Math",u4),u8=e=>u1(e,"Number"),u6=new Set(["EPSILON","MAX_SAFE_INTEGER","MAX_VALUE","MIN_SAFE_INTEGER","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]),u9=e=>u0(e,"Number",u6),u7=new Set(["parseFloat","parseInt"]),ae=e=>"CallExpression"===e.type&&!e.optional&&u0(e.callee,"Number",u7),at=e=>u1(e,"parseInt")||u1(e,"parseFloat"),ar=(e,t)=>"number"==typeof uX(e,t)?.value,an=e=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.property.type&&"length"===e.property.name,au=new Set(["-","*","/","%","**","<<",">>","|","^","&"]);var aa=function e(t,r){if(uQ(t)||u3(t)||u5(t)||u8(t)||u9(t)||ae(t)||at(t)||an(t))return!0;switch(t.type){case"AssignmentExpression":{let{operator:n}=t;if("="===n&&e(t.right,r))return!0}case"BinaryExpression":{let{operator:n}=t;if("AssignmentExpression"===t.type&&(n=n.slice(0,-1)),"+"===n&&e(t.left,r)&&e(t.right,r)||">>>"===n||au.has(n)&&(e(t.left,r)||e(t.right,r)))return!0;break}case"UnaryExpression":{let{operator:n}=t;if("+"===n||("-"===n||"~"===n)&&e(t.argument,r))return!0;break}case"UpdateExpression":if(e(t.argument,r))return!0;break;case"ConditionalExpression":{let n=e(t.consequent,r),u=e(t.alternate,r);if(n&&u)return!0;let a=uX(t.test,r);if(null!==a&&(a.value&&n||!a.value&&u))return!0;break}case"SequenceExpression":if(e(t.expressions.at(-1),r))return!0}return ar(t,r)};const{getStaticValue:ai}=tm,{switchNewExpressionToCallExpression:ao}=uv,{isNewExpression:as}=tK,ad="error",al="error-unknown",ac="suggestion",af=(e,t)=>{if(1!==e.length)return"from";let[r]=e;if("SpreadElement"===r.type)return;if("ArrayExpression"===r.type||"TemplateLiteral"===r.type)return"from";if(aa(r,t))return"alloc";let n=ai(r,t);if(n){let{value:e}=n;if("string"==typeof e||Array.isArray(e))return"from"}};function ap(e,t,r){return function*(n){yield n.insertTextAfter(e.callee,`.${r}`),yield*ao(e,t,n)}}var ah=/*@__PURE__*/ec({create:e=>{let{sourceCode:t}=e;return{NewExpression(e){if(!as(e,{name:"Buffer"}))return;let r=af(e.arguments,t.getScope(e));return r?{node:e,messageId:ad,data:{method:r},fix:ap(e,t,r)}:{node:e,messageId:al,suggest:["from","alloc"].map(r=>({messageId:ac,data:{replacement:r},fix:ap(e,t,r)}))}}}},meta:{type:"problem",docs:{description:"Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[ad]:"`new Buffer()` is deprecated, use `Buffer.{{method}}()` instead.",[al]:"`new Buffer()` is deprecated, use `Buffer.alloc()` or `Buffer.from()` instead.",[ac]:"Switch to `Buffer.{{replacement}}()`."}}});const{isStringLiteral:am,isMethodCall:ag}=tK,ay="no-console-spaces",ab=e=>e.length>1&&" "===e.charAt(0)&&" "!==e.charAt(1),av=e=>e.length>1&&" "===e.at(-1)&&" "!==e.at(-2);var ax=/*@__PURE__*/ec({create:e=>{let{sourceCode:t}=e,r=(e,r,n)=>{let u="leading"===n?e.range[0]+1:e.range[1]-2,a=[u,u+1];return{loc:nx(a,t),messageId:ay,data:{method:r,position:n},fix:e=>e.removeRange(a)}};return{*CallExpression(e){if(!ag(e,{object:"console",methods:["log","debug","info","warn","error"],minimumArguments:1,optionalCall:!1,optionalMember:!1}))return;let n=e.callee.property.name,{arguments:u}=e,{length:a}=u;for(let[e,i]of u.entries()){if(!am(i)&&"TemplateLiteral"!==i.type)continue;let u=t.getText(i).slice(1,-1);0!==e&&ab(u)&&(yield r(i,n,"leading")),e!==a-1&&av(u)&&(yield r(i,n,"trailing"))}}}},meta:{type:"suggestion",docs:{description:"Do not use leading/trailing space between `console.log` parameters.",recommended:!0},fixable:"code",messages:{[ay]:"Do not use {{position}} space between `console.{{method}}` parameters."}}});const{isEmptyNode:aE,isDirective:aC}=tK,aA="no-empty-file",aD=e=>aE(e,aC),aS=e=>"Line"===e.type&&e.value.startsWith("/"),a_=e=>e.some(e=>aS(e));var aw=/*@__PURE__*/ec({create:e=>{let t=e.physicalFilename;if(/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/i.test(t))return{Program(t){if(t.body.some(e=>!aD(e)))return;let{sourceCode:r}=e;if(!a_(r.getAllComments()))return{node:t,messageId:aA}}}},meta:{type:"suggestion",docs:{description:"Disallow empty files.",recommended:!0},messages:{[aA]:"Empty files are not allowed."}}});const{isParenthesized:aT,getParenthesizedRange:aP}=t_,{removeParentheses:ak}=uv,aF="no-useless-fallback-in-spread";var aI=/*@__PURE__*/ec({create:e=>({ObjectExpression(t){if(0===t.properties.length&&"LogicalExpression"===t.parent.type&&t.parent.right===t&&("||"===t.parent.operator||"??"===t.parent.operator)&&"SpreadElement"===t.parent.parent.type&&t.parent.parent.argument===t.parent&&"ObjectExpression"===t.parent.parent.parent.type&&t.parent.parent.parent.properties.includes(t.parent.parent))return{node:t,messageId:aF,*fix(r){let{sourceCode:n}=e,u=t.parent,{left:a}=u,i=aT(a,n),[,o]=i?aP(a,n):a.range,[,s]=u.range;yield r.removeRange([o,s]),(i||"SequenceExpression"!==a.type)&&(yield*ak(u,r,n))}}}}),meta:{type:"suggestion",docs:{description:"Disallow useless fallback when spreading in object literals.",recommended:!0},fixable:"code",messages:{[aF]:"The empty object is useless."}}});const{isMethodCall:aB,isMemberExpression:aj}=tK,{getParenthesizedRange:aL,isSameReference:aO,isLogicalExpression:aN}=nI,aR=e=>"BinaryExpression"===e.type&&"Literal"===e.right.type&&"0"===e.right.raw&&aj(e.left,{property:"length",optional:!1})&&aN(e.parent);var aM=/*@__PURE__*/ec({create:e=>{let t=[],r=new Set,n=new Set,u=new Set,a=new Set;return{BinaryExpression(e){if(aR(e)){let{operator:t}=e;"==="===t?r.add(e):(">"===t||"!=="===t)&&n.add(e)}},CallExpression(e){aB(e,{optionalCall:!1,optionalMember:!1,computed:!1})&&"Identifier"===e.callee.property.type&&("some"===e.callee.property.name?u.add(e):"every"===e.callee.property.name&&a.add(e))},LogicalExpression(e){aN(e)&&t.push(e)},*"Program:exit"(){for(let i of new Set(t.flatMap(e=>(function(e){let{operator:t}=e;return(function e(t){return[t.left,t.right].flatMap(r=>"LogicalExpression"===r.type&&r.operator===t.operator?e(r):[r])})(e).filter((e,i,o)=>(function({node:e,operator:t,siblings:i}){return"||"===t&&r.has(e)&&i.some(t=>a.has(t)&&aO(e.left.object,t.callee.object))||"&&"===t&&n.has(e)&&i.some(t=>u.has(t)&&aO(e.left.object,t.callee.object))})({node:e,operator:t,siblings:[o[i-1],o[i+1]].filter(Boolean)}))})(e))))yield{loc:{start:i.left.property.loc.start,end:i.loc.end},messageId:r.has(i)?"zero":"non-zero",fix(t){let{sourceCode:r}=e,{left:n,right:u}=i.parent,a=aL(n,r),o=aL(u,r),s=[];return n===i?(s[0]=a[0],s[1]=o[0]):(s[0]=a[1],s[1]=o[1]),t.removeRange(s)}}}}},meta:{type:"suggestion",docs:{description:"Disallow useless array length check.",recommended:!0},fixable:"code",messages:{"non-zero":"The non-empty check is useless as `Array#some()` returns `false` for an empty array.",zero:"The empty check is useless as `Array#every()` returns `true` for an empty array."}}});const{getParenthesizedRange:a$}=nI,{isFunction:aU,isMethodCall:az}=tK;var aV=/*@__PURE__*/ec({create:e=>{let{sourceCode:t}=e;return{CallExpression(e){if(!(az(e,{object:"Promise",methods:["resolve","reject"],optionalCall:!1,optionalMember:!1})&&("ArrowFunctionExpression"===e.parent.type&&e.parent.body===e||"ReturnStatement"===e.parent.type&&e.parent.argument===e||"YieldExpression"===e.parent.type&&!e.parent.delegate&&e.parent.argument===e)))return;let{functionNode:r,isInTryStatement:n}=function(e){let t,r=!1;for(;e;e=e.parent){if(aU(e)){t=e;break}"TryStatement"===e.type&&(r=!0)}return{functionNode:t,isInTryStatement:r}}(e);if(r&&(r.async||function(e){if("CallExpression"===e.parent.type&&"MemberExpression"===e.parent.callee.type&&!e.parent.callee.computed&&"Identifier"===e.parent.callee.property.type){let{callee:{property:t},arguments:r}=e.parent;if(1===r.length&&("then"===t.name||"catch"===t.name||"finally"===t.name)&&r[0]===e||2===r.length&&"then"===t.name&&(r[0]===e||"SpreadElement"!==r[0].type&&r[1]===e))return!0}return!1}(r)))return function(e,t){let{callee:r,parent:n}=e,u=r.property.name;return{node:r,messageId:u,data:{type:"YieldExpression"===n.type?"yield":"return"},fix:t}}(e,function(e,t,r){if(e.arguments.length>1)return;let{callee:n,parent:u,arguments:[a]}=e;if(a?.type==="SpreadElement")return;let i="reject"===n.property.name,o="YieldExpression"===u.type;if(!i||!t&&(!o||"ExpressionStatement"===u.parent.type))return function(t){let n="ArrowFunctionExpression"===u.type,s=a?r.getText(a):"";if(a?.type==="SequenceExpression"&&(s=`(${s})`),i){if(s||="undefined",s=`throw ${s}`,o)return t.replaceTextRange(a$(u,r),s);if(s+=";",n)return s=`{ ${s} }`,t.replaceTextRange(a$(e,r),s)}else o?s=`yield${s?" ":""}${s}`:"ReturnStatement"===u.type?s=`return${s?" ":""}${s};`:(a?.type==="ObjectExpression"&&(s=`(${s})`),s||="{}");return t.replaceText(n?e:u,s)}}(e,n,t))}}},meta:{type:"suggestion",docs:{description:"Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks",recommended:!0},fixable:"code",messages:{resolve:"Prefer `{{type}} value` over `{{type}} Promise.resolve(value)`.",reject:"Prefer `throw error` over `{{type}} Promise.reject(error)`."}}});const{isParenthesized:aq}=tm,{isDecimalInteger:aW}=nm,{fixSpaceAroundKeyword:aG}=uv,{isNumberLiteral:aZ}=tK,aH="zero-fraction",aK="dangling-dot";var aY=/*@__PURE__*/ec({create:e=>({Literal(t){if(!aZ(t))return;let{raw:r}=t,n=r.match(/^(?<before>[\d_]*)(?<dotAndFractions>\.[\d_]*)(?<after>.*)$/);if(!n)return;let{before:u,dotAndFractions:a,after:i}=n.groups,o=(u+a.replaceAll(/[.0_]+$/g,"")||"0")+i;if(o===r)return;let s="."===a,d=t.range[0]+u.length+a.length,l=d-(r.length-o.length),{sourceCode:c}=e;return{loc:nx([l,d],c),messageId:s?aK:aH,*fix(e){let r=o;"MemberExpression"===t.parent.type&&t.parent.object===t&&aW(o)&&!aq(t,c)&&(r=`(${r})`,no(c.getTokenBefore(t),c,r)&&(r=`;${r}`)),yield e.replaceText(t,r),yield*aG(e,t,c)}}}}),meta:{type:"suggestion",docs:{description:"Disallow number literals with zero fractions or dangling dots.",recommended:!0},fixable:"code",messages:{[aH]:"Don't use a zero fraction in the number.",[aK]:"Don't use a dangling dot in the number."}}});const{isCommaToken:aJ,isOpeningBraceToken:aX,isClosingBraceToken:aQ}=tm,{isStringLiteral:a0}=tK,a1="error",a2="suggestion",a3=Symbol.for("default"),a4=Symbol("NAMESPACE_SPECIFIER_NAME"),a5=e=>{switch(e.type){case"Identifier":return Symbol.for(e.name);case"Literal":return e.value}},a8=e=>"type"===e.exportKind||"type"===e.parent.exportKind,a6=e=>"type"===e.importKind||"type"===e.parent.importKind;function*a9(e,t,r){switch(e.type){case"ImportSpecifier":case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":yield*function*(e,t,r){let{parent:n}=e,{specifiers:u}=n;if(1===u.length){yield*a9(n,t,r);return}switch(e.type){case"ImportSpecifier":if(!u.some(t=>t!==e&&t.type===e.type)){let n=r.getTokenAfter(e,aQ),u=r.getTokenBefore(e,aJ);yield t.replaceTextRange([u.range[0],n.range[1]],"");return}case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ImportDefaultSpecifier":{yield t.remove(e);let n=r.getTokenAfter(e);aJ(n)&&(yield t.remove(n))}}}(e,t,r);return;case"ImportDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":yield t.remove(e)}}function a7(e,t){let[r]=t.getTokenBefore(e.source,e=>"Identifier"===e.type&&"from"===e.value).range,[,n]=e.range;return t.text.slice(r,n)}var ie=/*@__PURE__*/ec({create:function(e){let{sourceCode:t}=e,{ignoreUsedVariables:r}={ignoreUsedVariables:!1,...e.options[0]},n=new Set,u=[];return{ImportDeclaration(e){e.specifiers.length>0&&n.add(e)},ExportNamedDeclaration(e){a0(e.source)&&u.push(e)},*"Program:exit"(e){for(let a of n){let n=t.getDeclaredVariables(a);if(n.some(e=>1!==e.defs.length||e.defs[0].parent!==a)||(n=n.map(e=>{let r=function(e,t){let r=e.defs[0].node,n={node:r,declaration:r.parent,variable:e,isTypeImport:a6(r)};switch(r.type){case"ImportDefaultSpecifier":return{name:a3,text:"default",...n};case"ImportSpecifier":return{name:a5(r.imported),text:t.getText(r.imported),...n};case"ImportNamespaceSpecifier":return{name:a4,text:"*",...n}}}(e,t),n=function(e,t){let r=[];for(let{identifier:n}of e.variable.references){let u=function(e,t){let{parent:r}=e;switch(r.type){case"ExportDefaultDeclaration":return{node:r,name:a3,text:"default",isTypeExport:a8(r)};case"ExportSpecifier":return{node:r,name:a5(r.exported),text:t.getText(r.exported),isTypeExport:a8(r)};case"VariableDeclarator":if(r.init===e&&"Identifier"===r.id.type&&!r.id.typeAnnotation&&"VariableDeclaration"===r.parent.type&&"const"===r.parent.kind&&1===r.parent.declarations.length&&r.parent.declarations[0]===r&&"ExportNamedDeclaration"===r.parent.parent.type&&function(e,t){let r=t.getDeclaredVariables(e);if(1!==r.length)return!1;let[{identifiers:n,references:u}]=r;return 1===n.length&&n[0]===e.id&&1===u.length&&u[0].identifier===e.id}(r,t))return{node:r.parent.parent,name:Symbol.for(r.id.name),text:t.getText(r.id)}}}(n,t);u&&(e.name!==a4||u.name!==a3)&&r.push(u)}return r}(r,t);return{variable:e,imported:r,exports:n}}),r&&n.some(({variable:e,exports:t})=>e.references.length!==t.length)))continue;let i=r&&n.some(({variable:e})=>0===e.references.length);for(let{imported:r,exports:a}of n)for(let n of a){let a={node:n.node,messageId:a1,data:{exported:n.text}},o=function({sourceCode:e,imported:t,exported:r,exportDeclarations:n,program:u}){let a;let i=t.declaration,o=i.source.value,s=t.isTypeImport||r.isTypeExport;return s&&(a=n.find(({source:e,exportKind:t})=>e.value===o&&"type"===t)),a||=n.find(({source:e,exportKind:t})=>e.value===o&&"type"!==t),function*(n){if(t.name===a4)yield n.insertTextAfter(u,`
|
|
2
|
-
export * as ${
|
|
3
|
-
export {${o}} ${a7(i,e)}`)}1===t.variable.references.length&&(yield*a9(t.node,n,e)),yield*a9(r.node,n,e)}}({sourceCode:t,imported:r,exported:n,exportDeclarations:u,program:e});i?a.suggest=[{messageId:a2,fix:o}]:a.fix=o,yield a}}}}},meta:{type:"suggestion",docs:{description:"Prefer `export…from` when re-exporting.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignoreUsedVariables:{type:"boolean",default:!1}}}],messages:{[a1]:"Use `export…from` to re-export `{{exported}}`.",[a2]:"Switch to `export…from`."}}});const{getFunctionHeadLocation:it,getFunctionNameWithKind:ir}=tm,{functionTypes:iu}=tK,ia="prefer-native-coercion-functions",ii=new Set(["String","Number","BigInt","Boolean","Symbol"]),io=new Set(["every","filter","find","findLast","findIndex","findLastIndex","some"]),is=(e,t)=>e?.type==="CallExpression"&&!e.optional&&"Identifier"===e.callee.type&&ii.has(e.callee.name)&&e.arguments[0]?.type==="Identifier"&&e.arguments[0].name===t,id=e=>"ArrowFunctionExpression"===e.type&&"Identifier"===e.body.type&&e.body.name===e.params[0].name||"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&e.body.body[0].argument?.type==="Identifier"&&e.body.body[0].argument.name===e.params[0].name,il=e=>id(e)&&"CallExpression"===e.parent.type&&!e.parent.optional&&e.parent.arguments[0]===e&&"MemberExpression"===e.parent.callee.type&&!e.parent.callee.computed&&!e.parent.callee.optional&&"Identifier"===e.parent.callee.property.type&&io.has(e.parent.callee.property.name);var ic=/*@__PURE__*/ec({create:e=>{e.on(iu,t=>{if(t.async||t.generator||0===t.params.length||"Identifier"!==t.params[0].type||("MethodDefinition"===t.parent.type&&("constructor"===t.parent.kind||"set"===t.parent.kind)||"Property"===t.parent.type&&"set"===t.parent.kind)&&t.parent.value===t)return;let r=function(e){if(il(e))return{replacementFunction:"Boolean",fix:t=>t.replaceText(e,"Boolean")}}(t)||function(e){let t=function(e){let t=e.params[0].name;return"ArrowFunctionExpression"===e.type&&is(e.body,t)?e.body:"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&is(e.body.body[0].argument,t)?e.body.body[0].argument:void 0}(e);if(!t)return;let{name:r}=t.callee,n={replacementFunction:r};return"FunctionDeclaration"===e.type||1!==t.arguments.length||(n.fix=t=>{let n=r;return"Property"===e.parent.type&&e.parent.method&&e.parent.value===e?n=`: ${n}`:"MethodDefinition"===e.parent.type&&(n=` = ${n};`),t.replaceText(e,n)}),n}(t);if(!r)return;let{sourceCode:n}=e,{replacementFunction:u,fix:a}=r;return r={node:t,loc:it(t,n),messageId:ia,data:{functionNameWithKind:ir(t,n),replacementFunction:u}},!a||1!==t.params.length||n.getCommentsInside(t).length>0||(r.fix=a),r})},meta:{type:"suggestion",docs:{description:"Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.",recommended:!0},fixable:"code",messages:{[ia]:"{{functionNameWithKind}} is equivalent to `{{replacementFunction}}`. Use `{{replacementFunction}}` directly."}}});const{ReferenceTracker:ip}=tm,ih=(e,t)=>{let r={[t]:!0};for(let t of e.split(".").reverse())r={[t]:r};return r};let im=class{#e={};#t;#r;constructor({object:e,objects:t=[e],filter:r,handle:n,type:u=ip.READ}){for(let e of t)Object.assign(this.#e,ih(e,u));this.#t=r,this.#r=n}*track(e){for(let t of new ip(e).iterateGlobalReferences(this.#e)){if(this.#t&&!this.#t(t))continue;let e=this.#r(t);e&&(e[Symbol.iterator]?yield*e:yield e)}}createListeners(e){return{"Program:exit":t=>this.track(e.sourceCode.getScope(t))}}};Object.assign(im,{READ:ip.READ,CALL:ip.CALL,CONSTRUCT:ip.CONSTRUCT});var ig={GlobalReferenceTracker:im};const{GlobalReferenceTracker:iy}=ig,ib="no-document-cookie",iv=new iy({object:"document.cookie",filter:({node:e})=>"AssignmentExpression"===e.parent.type&&e.parent.left===e,handle:({node:e})=>({node:e,messageId:ib})});var ix=/*@__PURE__*/ec({create:e=>iv.createListeners(e),meta:{type:"problem",docs:{description:"Do not use `document.cookie` directly.",recommended:!0},messages:{[ib]:"Do not use `document.cookie` directly."}}});const iE=e=>[`webkit${e}`,`o${e.toLowerCase()}`,e.toLowerCase()];var iC=new Set(["click","rightclick","dblclick","auxclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","mousecancel","selectionchange","selectstart","wheel","keypress","keydown","keyup","blur","focus","deactivate","focusin","focusout","change","reset","select","submit","input","propertychange","dragstart","drag","dragenter","dragover","dragleave","drop","dragend","touchstart","touchmove","touchend","touchcancel","beforeunload","consolemessage","contextmenu","devicechange","devicemotion","deviceorientation","DOMContentLoaded","error","help","load","losecapture","orientationchange","readystatechange","resize","scroll","unload","canplay","canplaythrough","durationchange","emptied","ended","loadeddata","loadedmetadata","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","sourceopen","sourceended","sourceclosed","abort","update","updatestart","updateend","hashchange","pagehide","pageshow","popstate","copy","paste","cut","beforecopy","beforecut","beforepaste","online","offline","message","connect","install","activate","fetch","foreignfetch","messageerror","statechange","updatefound","controllerchange",...iE("AnimationStart"),...iE("AnimationEnd"),...iE("AnimationIteration"),...iE("TransitionEnd"),"pointerdown","pointerup","pointercancel","pointermove","pointerover","pointerout","pointerenter","pointerleave","gotpointercapture","lostpointercapture","MSGestureChange","MSGestureEnd","MSGestureHold","MSGestureStart","MSGestureTap","MSGotPointerCapture","MSInertiaStart","MSLostPointerCapture","MSPointerCancel","MSPointerDown","MSPointerEnter","MSPointerHover","MSPointerLeave","MSPointerMove","MSPointerOut","MSPointerOver","MSPointerUp","text","textinput","textInput","compositionstart","compositionupdate","compositionend","beforeinput","exit","loadabort","loadcommit","loadredirect","loadstart","loadstop","responsive","sizechanged","unresponsive","visibilitychange","storage","DOMSubtreeModified","DOMNodeInserted","DOMNodeRemoved","DOMNodeRemovedFromDocument","DOMNodeInsertedIntoDocument","DOMAttrModified","DOMCharacterDataModified","beforeprint","afterprint","beforeinstallprompt","appinstalled","afterblur","beforeblur","cancel","close","dragexit","encrypted","fullscreenchange","invalid","toggle","search","open","show"]);const{isParenthesized:iA}=tm,{isUndefined:iD,isNullLiteral:iS,isStaticRequire:i_}=tK,iw="prefer-add-event-listener",iT={beforeunload:"Use `event.preventDefault(); event.returnValue = 'foo'` to trigger the prompt.",message:"Note that there is difference between `SharedWorker#onmessage` and `SharedWorker#addEventListener('message')`.",error:"Note that there is difference between `{window,element}.onerror` and `{window,element}.addEventListener('error')`."},iP=e=>e.property.name,ik=e=>e.slice(2),iF=(e,t,r,n)=>{let u=ik(iP(n)),a=t.getText(n.object);iA(n.object,t)&&(a=`(${a})`);let i=t.getText(r.right);iA(r.right,t)&&(i=`(${i})`);let o=`${a}.addEventListener('${u}', ${i})`;return e.replaceText(r,o)},iI=(e,t)=>("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type)&&"BlockStatement"===e.body.type&&!t.get(e),iB=e=>iD(e)||iS(e);var ij=/*@__PURE__*/ec({create:e=>{let t,r;let n=new Set((e.options[0]||{}).excludedPackages||["koa","sax"]),u=new WeakMap;return{onCodePathStart(e,t){r={node:t,upper:r,returnsSomething:!1}},onCodePathEnd(){u.set(r.node,r.returnsSomething),r=r.upper},CallExpression(e){i_(e)&&!t&&n.has(e.arguments[0].value)&&(t=!0)},Literal(e){"ImportDeclaration"===e.parent.type&&!t&&n.has(e.value)&&(t=!0)},ReturnStatement(e){r.returnsSomething||=!!e.argument},"AssignmentExpression:exit"(r){let n;if(t)return;let{left:a,right:i,operator:o}=r;if("MemberExpression"!==a.type||a.computed)return;let s=iP(a);if(!s||!s.startsWith("on"))return;let d=ik(s);if(!iC.has(d))return;let l="addEventListener",c="";return iB(i)?l="removeEventListener":"beforeunload"!==d||iI(i,u)?"message"===d?c=iT.message:"error"===d?c=iT.error:"="===o&&"ExpressionStatement"===r.parent.type&&r.parent.expression===r&&(n=t=>iF(t,e.sourceCode,r,a)):c=iT.beforeunload,{node:a.property,messageId:iw,data:{replacement:l,method:s,extra:c?` ${c}`:""},fix:n}}}},meta:{type:"suggestion",docs:{description:"Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{excludedPackages:{type:"array",items:{type:"string"},uniqueItems:!0}}}],messages:{[iw]:"Prefer `{{replacement}}` over `{{method}}`.{{extra}}"}}});const{hasSideEffect:iL,isParenthesized:iO,findVariable:iN}=tm,{isMethodCall:iR}=tK,{isSameIdentifier:iM,isFunctionSelfUsedInside:i$}=nI,iU=(e,t)=>"BinaryExpression"===e.type&&"==="===e.operator&&(iM(e.left,t)||iM(e.right,t)),iz=e=>"ArrowFunctionExpression"===e.type&&!e.async&&1===e.params.length&&iU(e.body,e.params[0])||("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type)&&!e.async&&!e.generator&&1===e.params.length&&"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&iU(e.body.body[0].argument,e.params[0]),iV=({type:e,name:t},r)=>"Identifier"===e&&t===r,iq=function({method:e,replacement:t}){let r=`prefer-${t}-over-${e}/`,n=`${r}error`,u=`${r}suggestion`;return{messages:{[n]:({findIndex:"Use `.indexOf()` instead of `.findIndex()` when looking for the index of an item.",findLastIndex:"Use `.lastIndexOf()` instead of `findLastIndex() when looking for the index of an item.`",some:`Use \`.${t}()\` instead of \`.${e}()\` when checking value existence.`})[e],[u]:`Replace \`.${e}()\` with \`.${t}()\`.`},listen:function(r){let{sourceCode:a}=r,{scopeManager:i}=a;r.on("CallExpression",r=>{let o,s;if(!iR(r,{method:e,argumentsLength:1,optionalCall:!1,optionalMember:!1})||!iz(r.arguments[0]))return;let[d]=r.arguments,l="BinaryExpression"===d.body.type?d.body:d.body.body[0].argument,[c]=d.params,{left:f,right:p}=l,{name:h}=c;if(iV(f,h))o=p,s=f;else{if(!iV(p,h))return;o=f,s=p}let m=i.acquire(d);if(iN(m,c).references.some(({identifier:e})=>e!==s)||i$(d,m))return;let g=r.callee.property,y={node:g,messageId:n,suggest:[]},b=function*(e){let r=a.getText(o);iO(o,a)&&!iO(d,a)&&(r=`(${r})`),yield e.replaceText(g,t),yield e.replaceText(d,r)};return iL(o,a)?y.suggest.push({messageId:u,fix:b}):y.fix=b,y})}}},iW=iq({method:"findIndex",replacement:"indexOf"}),iG=iq({method:"findLastIndex",replacement:"lastIndexOf"});var iZ=/*@__PURE__*/ec({create(e){iW.listen(e),iG.listen(e)},meta:{type:"suggestion",docs:{description:"Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{...iW.messages,...iG.messages}}});const{isMethodCall:iH}=tK,iK="error";var iY=/*@__PURE__*/ec({create:()=>({CallExpression(e){if(!iH(e,{methods:["readAsText","readAsArrayBuffer"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let t=e.callee.property,r=t.name;return{node:t,messageId:iK,data:{method:r,replacement:"readAsArrayBuffer"===r?"arrayBuffer":"text"}}}}),meta:{type:"suggestion",docs:{description:"Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.",recommended:!0},messages:{[iK]:"Prefer `Blob#{{replacement}}()` over `FileReader#{{method}}(blob)`."}}});const{isMethodCall:iJ,isCallExpression:iX,isNewExpression:iQ}=tK,{fixSpaceAroundKeyword:i0}=uv,i1="prefer-date",i2="prefer-date-now-over-methods",i3="prefer-date-now-over-number-data-object",i4=e=>iQ(e,{name:"Date",argumentsLength:0}),i5=(e,t,r)=>({node:e,messageId:i1,*fix(t){yield t.replaceText(e,"Date.now()"),"UnaryExpression"===e.type&&(yield*i0(t,e,r))},...t});var i8=/*@__PURE__*/ec({create:e=>({CallExpression(e){if(iJ(e,{methods:["getTime","valueOf"],argumentsLength:0,optionalCall:!1,optionalMember:!1})&&i4(e.callee.object)){let t=e.callee.property;return i5(e,{node:t,messageId:i2,data:{method:t.name}})}if(iX(e,{names:["Number","BigInt"],argumentsLength:1,optional:!1})&&i4(e.arguments[0])){let{name:t}=e.callee;return"Number"===t?i5(e,{messageId:i3}):i5(e.arguments[0])}},UnaryExpression(t){if(("+"===t.operator||"-"===t.operator)&&i4(t.argument))return i5("-"===t.operator?t.argument:t,{},e.sourceCode)},AssignmentExpression(e){if(("-="===e.operator||"*="===e.operator||"/="===e.operator||"%="===e.operator||"**="===e.operator)&&i4(e.right))return i5(e.right)},*BinaryExpression(e){if("-"===e.operator||"*"===e.operator||"/"===e.operator||"%"===e.operator||"**"===e.operator)for(let t of[e.left,e.right])i4(t)&&(yield i5(t))}}),meta:{type:"suggestion",docs:{description:"Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.",recommended:!0},fixable:"code",messages:{[i1]:"Prefer `Date.now()` over `new Date()`.",[i2]:"Prefer `Date.now()` over `Date#{{method}}()`.",[i3]:"Prefer `Date.now()` over `Number(new Date())`."}}});const{isIdentifierName:i6}=t4,{escapeString:i9,hasOptionalChainElement:i7,isValueNotUsable:oe}=nI,{isMethodCall:ot,isStringLiteral:or,isExpressionStatement:on}=tK,ou="prefer-dom-node-dataset",oa=e=>e.replaceAll(/-[a-z]/g,e=>e[1].toUpperCase());var oi=/*@__PURE__*/ec({create:e=>({CallExpression(t){if(!((ot(t,{method:"setAttribute",argumentsLength:2,optionalCall:!1,optionalMember:!1})||ot(t,{methods:["getAttribute","removeAttribute","hasAttribute"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&or(t.arguments[0])))return;let r=t.callee.property.name;if(("AwaitExpression"!==t.parent.type||t.parent.argument!==t||"getAttribute"!==r)&&t.arguments[0].value.toLowerCase().startsWith("data-"))return{node:t,messageId:ou,data:{method:t.callee.property.name},fix:function(e,t){let r=e.callee.property.name;if(!("setAttribute"===r&&i7(e.callee))&&("setAttribute"!==r||oe(e))&&("removeAttribute"!==r||on(e.parent)))return n=>{let[u]=e.arguments,a=oa(u.value.toLowerCase().slice(5)),{sourceCode:i}=t,o="",s=`${i.getText(e.callee.object)}.dataset`;switch(r){case"setAttribute":case"getAttribute":case"removeAttribute":o=i6(a)?`.${a}`:`[${i9(a,u.raw.charAt(0))}]`,o=`${s}${o}`,"setAttribute"===r?o+=` = ${i.getText(e.arguments[1])}`:"removeAttribute"===r&&(o=`delete ${o}`);break;case"hasAttribute":o=`Object.hasOwn(${s}, ${i9(a,u.raw.charAt(0))})`}return n.replaceText(e,o)}}(t,e)}}}),meta:{type:"suggestion",docs:{description:"Prefer using `.dataset` on DOM elements over calling attribute methods.",recommended:!0},fixable:"code",messages:{[ou]:"Prefer `.dataset` over `{{method}}(…)`."}}});const{getParenthesizedText:oo,getParenthesizedRange:os,isSameReference:od}=nI,{isLiteral:ol,isMethodCall:oc}=tK,{replaceNodeOrTokenAndSpacesBefore:of,removeParentheses:op}=uv,oh="prefer-modern-math-apis",om=(e,t)=>"MemberExpression"===e.type&&!e.optional&&!e.computed&&"Identifier"===e.object.type&&"Math"===e.object.name&&"Identifier"===e.property.type&&e.property.name===t,og=(e,t)=>"CallExpression"===e.type&&!e.optional&&om(e.callee,t)&&1===e.arguments.length&&"SpreadElement"!==e.arguments[0].type;function oy({constantName:e,replacementMethod:t}){let r=`Math.${t}(…)`;return function(n,u){let a,i;if(!("BinaryExpression"===n.type&&"*"===n.operator)||(og(n.left,"log")&&om(n.right,e)?(a=n.left,i=`Math.log(…) * Math.${e}`):og(n.right,"log")&&om(n.left,e)&&(a=n.right,i=`Math.${e} * Math.log(…)`),!a))return;let[o]=a.arguments;return{node:n,messageId:oh,data:{replacement:r,description:i},fix:e=>e.replaceText(n,`Math.${t}(${oo(o,u.sourceCode)})`)}}}function ob({constantName:e,replacementMethod:t}){let r={messageId:oh,data:{replacement:`Math.${t}(…)`,description:`Math.log(…) / Math.${e}`}};return function(n,u){if(!("BinaryExpression"===n.type&&"/"===n.operator&&og(n.left,"log")&&om(n.right,e)))return;let[a]=n.left.arguments;return{...r,node:n,fix:e=>e.replaceText(n,`Math.${t}(${oo(a,u.sourceCode)})`)}}}const ov=[oy({constantName:"LOG10E",replacementMethod:"log10"}),oy({constantName:"LOG2E",replacementMethod:"log2"}),ob({constantName:"LN10",replacementMethod:"log10"}),ob({constantName:"LN2",replacementMethod:"log2"})],ox=e=>"BinaryExpression"===e.type&&"+"===e.operator,oE=e=>"BinaryExpression"===e.type&&("*"===e.operator&&od(e.left,e.right)||"**"===e.operator&&ol(e.right,2)),oC=e=>ox(e)?[e.left,e.right].flatMap(e=>oC(e)):[e];var oA=/*@__PURE__*/ec({create:e=>{let t=[];return{CallExpression(t){if(!oc(t,{object:"Math",method:"sqrt",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let r=oC(t.arguments[0]);if(r.some(e=>!oE(e)))return;let n=1===r.length?"abs":"hypot",u=new Set(1===r.length?[]:r.map(e=>e.parent));return{node:t.callee.property,messageId:oh,data:{replacement:`Math.${n}(…)`,description:"Math.sqrt(…)"},*fix(a){let{sourceCode:i}=e;for(let e of(yield a.replaceText(t.callee.property,n),u)){let t=i.getTokenAfter(e.left,e=>"Punctuator"===e.type&&"+"===e.value);yield*of(t,",",a,i),yield*op(e,a,i)}for(let e of r)yield a.removeRange([os(e.left,i)[1],e.range[1]])}}},BinaryExpression(e){t.push(e)},*"Program:exit"(){for(let r of t)for(let t of ov){let n=t(r,e);n&&(yield n)}}}},meta:{type:"suggestion",docs:{description:"Prefer modern `Math` APIs over legacy patterns.",recommended:!0},fixable:"code",messages:{[oh]:"Prefer `{{replacement}}` over `{{description}}`."}}}),oD=/*@__PURE__*/ef(y);const oS=e=>"function"==typeof e?.[Symbol.iterator];let o_=class extends Error{};const ow={abort(){throw new o_("Fix aborted.")}};function oT(e){return t=>{let r=e(t,ow);if(oS(r))try{return[...r]}catch(e){if(e instanceof o_)return;throw e}return r}}const oP=new Set;function ok(e){if(oP.has(e))return e;let t=t=>{let r={},n=(e,t)=>{r[e]??=[],r[e].push(t)};for(let[r,u]of Object.entries(e(new Proxy(t,{get:(e,t,r)=>"on"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])n(r,t)}:"onExit"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])n(`${r}:exit`,t)}:Reflect.get(e,t,r)}))??{}))n(r,u);return Object.fromEntries(Object.entries(r).map(([e,r])=>[e,(...e)=>{for(let n of r)!function(e,t){if(e){for(let r of(oS(e)||(e=[e]),e))if(r){if(r.fix&&=oT(r.fix),Array.isArray(r.suggest))for(let e of r.suggest)e.fix&&=oT(e.fix),e.data={...r.data,...e.data};t.report(r)}}}(n(...e),t)}]))};return oP.add(t),t}function oF(e){let t=function(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(`../${e}`);return{meta:{schema:[],...t.meta,docs:{...t.meta.docs,url:eh(e)}},create:ok(t.create)}}var oI={loadRule:oF,loadRules:function(){return Object.fromEntries(oD.readdirSync(ep.join(__dirname,".."),{withFileTypes:!0}).filter(e=>e.isFile()).map(e=>{let t=ep.basename(e.name,".js");return[t,oF(t)]}))},checkVueTemplate:function(e,t){let{visitScriptBlock:r}={visitScriptBlock:!0,...t};e=ok(e);let n=t=>{let n=e(t),{parserServices:u}=t.sourceCode;return u?.defineTemplateBodyVisitor?r?u.defineTemplateBodyVisitor(n,n):u.defineTemplateBodyVisitor(n):n};return oP.add(n),n}};const{checkVueTemplate:oB}=oI,{isNumberLiteral:oj,isBigIntLiteral:oL}=tK,oO="number-literal-case",oN=e=>{let t=e.toLowerCase();return t.startsWith("0x")&&(t="0x"+t.slice(2).toUpperCase()),t};var oR=/*@__PURE__*/ec({create:oB(()=>({Literal(e){let{raw:t}=e,r=t;if(oj(e)?r=oN(t):oL(e)&&(r=oN(t.slice(0,-1))+"n"),t!==r)return{node:e,messageId:oO,fix:t=>t.replaceText(e,r)}}})),meta:{type:"suggestion",docs:{description:"Enforce proper case for numeric literals.",recommended:!0},fixable:"code",messages:{[oO]:"Invalid number literal casing."}}});const{GlobalReferenceTracker:oM}=ig,{replaceReferenceIdentifier:o$}=uv,{fixSpaceAroundKeyword:oU}=uv,oz="error",oV="suggestion",oq={parseInt:!0,parseFloat:!0,NaN:!0,Infinity:!0,isNaN:!1,isFinite:!1},oW=e=>{let{parent:t}=e;return"UnaryExpression"===t.type&&"-"===t.operator&&t.argument===e};var oG=/*@__PURE__*/ec({create:e=>{let{checkInfinity:t,checkNaN:r}={checkInfinity:!1,checkNaN:!0,...e.options[0]},{sourceCode:n}=e;return new oM({objects:Object.keys(oq).filter(e=>(!!t||"Infinity"!==e)&&(!!r||"NaN"!==e)),handle:e=>(function({node:e,path:[t]},r){let{parent:n}=e,u=t;"Infinity"===t&&(u=oW(e)?"NEGATIVE_INFINITY":"POSITIVE_INFINITY");let a={node:e,messageId:oz,data:{description:t,property:u}};if("NEGATIVE_INFINITY"===u)return a.node=n,a.data.description="-Infinity",a.fix=function*(e){yield e.replaceText(n,"Number.NEGATIVE_INFINITY"),yield*oU(e,n,r)},a;let i=t=>o$(e,`Number.${u}`,t,r);return oq[t]?a.fix=i:a.suggest=[{messageId:oV,fix:i}],a})(e,n),filter:({node:e})=>!r1(e)}).createListeners(e)},meta:{type:"suggestion",docs:{description:"Prefer `Number` static properties over global ones.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkInfinity:{type:"boolean",default:!1},checkNaN:{type:"boolean",default:!0}}}],messages:{[oz]:"Prefer `Number.{{property}}` over `{{description}}`.",[oV]:"Replace `{{description}}` with `Number.{{property}}`."}}});const{getPropertyName:oZ}=tm,{isNullLiteral:oH,isMethodCall:oK}=tK,oY="prefer-reflect-apply",oJ=(e,t)=>(oH(e)||"ThisExpression"===e.type)&&("ArrayExpression"===t.type||"Identifier"===t.type&&"arguments"===t.name),oX=(e,t,r,n)=>`Reflect.apply(${e.getText(t)}, ${e.getText(r)}, ${e.getText(n)})`,oQ=(e,t)=>{if("apply"===oZ(e.callee)&&2===e.arguments.length&&oJ(e.arguments[0],e.arguments[1]))return r=>r.replaceText(e,oX(t,e.callee.object,e.arguments[0],e.arguments[1]))},o0=(e,t)=>{if("call"===oZ(e.callee)&&"apply"===oZ(e.callee.object)&&"prototype"===oZ(e.callee.object.object)&&e.callee.object.object.object?.type==="Identifier"&&"Function"===e.callee.object.object.object.name&&3===e.arguments.length&&oJ(e.arguments[1],e.arguments[2]))return r=>r.replaceText(e,oX(t,e.arguments[0],e.arguments[1],e.arguments[2]))};var o1=/*@__PURE__*/ec({create:e=>({CallExpression(t){if(!oK(t,{optionalCall:!1,optionalMember:!1})||"Literal"===t.callee.object.type||"ArrayExpression"===t.callee.object.type||"ObjectExpression"===t.callee.object.type)return;let{sourceCode:r}=e,n=oQ(t,r)||o0(t,r);if(n)return{node:t,messageId:oY,fix:n}}}),meta:{type:"suggestion",docs:{description:"Prefer `Reflect.apply()` over `Function#apply()`.",recommended:!0},fixable:"code",messages:{[oY]:"Prefer `Reflect.apply()` over `Function#apply()`."}}});const{findVariable:o2}=tm,{fixSpaceAroundKeyword:o3}=uv,{isNewExpression:o4,isMemberExpression:o5}=tK,o8="prefer-set-size",o6=e=>o4(e,{name:"Set"});var o9=/*@__PURE__*/ec({create:e=>{let{sourceCode:t}=e;return{MemberExpression(e){if(!o5(e,{property:"length",optional:!1})||"ArrayExpression"!==e.object.type||1!==e.object.elements.length||e.object.elements[0]?.type!=="SpreadElement")return;let r=e.object.elements[0].argument;if(function(e,t){if(o6(e))return!0;if("Identifier"!==e.type)return!1;let r=o2(t,e);if(!r||1!==r.defs.length)return!1;let[n]=r.defs;if("Variable"!==n.type||"const"!==n.kind)return!1;let u=n.node;return"VariableDeclarator"===u.type&&"Identifier"===u.id.type&&o6(n.node.init)}(r,t.getScope(r)))return{node:e.property,messageId:o8,fix:function(e,t){let{object:r,property:n}=t,u=r.elements[0].argument;if(!(e.getCommentsInside(r).length>e.getCommentsInside(u).length))return function*(a){yield a.replaceText(n,"size"),yield a.replaceText(r,e.getText(u)),yield*o3(a,t,e)}}(t,e)}}}},meta:{type:"suggestion",docs:{description:"Prefer using `Set#size` instead of `Array#length`.",recommended:!0},fixable:"code",messages:{[o8]:"Prefer using `Set#size` instead of `Array#length`."}}}),o7={exports:{}};o=String.fromCodePoint||(a=String.fromCharCode,i=Math.floor,function(){var e,t,r=[],n=-1,u=arguments.length;if(!u)return"";for(var o="";++n<u;){var s=Number(arguments[n]);if(!isFinite(s)||s<0||s>1114111||i(s)!=s)throw RangeError("Invalid code point: "+s);s<=65535?r.push(s):(s-=65536,e=(s>>10)+55296,t=s%1024+56320,r.push(e,t)),(n+1==u||r.length>16384)&&(o+=a.apply(null,r),r.length=0)}return o}),s={parse:function(e,t,r){function n(t){return t.raw=e.substring(t.range[0],t.range[1]),t}function u(e,t){return e.range[0]=t,n(e)}function a(e,t){return n({type:"anchor",kind:e,range:[Y-t,Y]})}function i(e,t,r,u){return n({type:"value",kind:e,codePoint:t,range:[r,u]})}function s(e,t,r,n){return n=n||0,i(e,t,Y-(r.length+n),Y)}function d(e){var t,r=e[0],n=r.charCodeAt(0);return K&&1===r.length&&n>=55296&&n<=56319&&(t=y().charCodeAt(0))>=56320&&t<=57343?i("symbol",(n-55296)*1024+t-56320+65536,++Y-2,Y):i("symbol",n,Y-1,Y)}function l(e,t,r,u,a){return null==u&&(r=Y-1,u=Y),n({type:"quantifier",min:e,max:t,greedy:!0,body:null,symbol:a,range:[r,u]})}function c(e,t,r,u){return n({type:"characterClass",kind:e.kind,body:e.body,negative:t,range:[r,u]})}function f(e,t,r,u){return e.codePoint>t.codePoint&&z("invalid range in character class",e.raw+"-"+t.raw,r,u),n({type:"characterClassRange",min:e,max:t,range:[r,u]})}function p(e){return"alternative"===e.type?e.body:[e]}function h(t){t=t||1;var r=e.substring(Y,Y+t);return Y+=t||1,r}function m(e){g(e)||z("character",e)}function g(t){if(e.indexOf(t,Y)===Y)return h(t.length)}function y(){return e[Y]}function b(t){return e.indexOf(t,Y)===Y}function v(t){return e[Y+1]===t}function x(t){var r=e.substring(Y).match(t);return r&&(r.range=[],r.range[0]=Y,h(r[0].length),r.range[1]=Y),r}function E(){var e=[],t=Y;for(e.push(C());g("|");)e.push(C());return 1===e.length?e[0]:n({type:"disjunction",body:e,range:[t,Y]})}function C(){for(var t,o=[],s=Y;t=function(){if(Y>=e.length||b("|")||b(")"))return null;var t=g("^")?a("start",1):g("$")?a("end",1):g("\\b")?a("boundary",2):g("\\B")?a("not-boundary",2):A("(?=","lookahead","(?!","negativeLookahead");if(!t){var o=function(){if((t=x(/^[^^$\\.*+?()[\]{}|]/))||!K&&(t=x(/^(?:]|})/)))return d(t);if(g("."))return n({type:"dot",range:[Y-1,Y]});if(g("\\")){if(!(t=w())){if(!K&&"c"==y())return i("symbol",92,Y-1,Y);z("atomEscape")}return t}if(t=L())return t;if(r.lookbehind&&(t=A("(?<=","lookbehind","(?<!","negativeLookbehind")))return t;if(r.namedGroups&&g("(?<")){var t,u,a,o,s,l,c=I();m(">");var f=D("normal",c.range[0]-3);return f.name=c,f}else return r.modifiers&&e.indexOf("(?")==Y&&":"!=e[Y+2]?(a=Y,h(2),o=x(/^[sim]+/),g("-")?(u=x(/^[sim]+/))||z("Invalid flags for modifiers group"):o||z("Invalid flags for modifiers group"),((s=(o=o?o[0]:"")+(u=u?u[0]:"")).length>3||function(e){for(var t=0;t<e.length;){if(-1!=e.indexOf(e[t],t+1))return!0;t++}return!1}(s))&&z("flags cannot be duplicated for modifiers group"),m(":"),(l=D("ignore",a)).modifierFlags={enabling:o,disabling:u},l):A("(?:","ignore","(","normal")}();if(!o){var s,l,c=Y;(s=S()||!1)&&(Y=c,z("Expected atom")),!K&&(l=x(/^{/))?o=d(l):z("Expected atom")}t=o}return(s=S()||!1)?(s.body=p(t),u(s,t.range[0]),s):t}();)o.push(t);return 1===o.length?o[0]:n({type:"alternative",body:o,range:[s,Y]})}function A(e,t,r,n){var u=null,a=Y;if(g(e))u=t;else{if(!g(r))return!1;u=n}return D(u,a)}function D(e,t){var r=E();r||z("Expected disjunction"),m(")");var u=n({type:"group",behavior:e,body:p(r),range:[t,Y]});return"normal"==e&&W&&q++,u}function S(){var e,t,r,n,u=Y;return g("*")?e=l(0,void 0,void 0,void 0,"*"):g("+")?e=l(1,void 0,void 0,void 0,"+"):g("?")?e=l(0,1,void 0,void 0,"?"):(n=x(/^\{([0-9]+)\}/))?e=l(t=parseInt(n[1],10),t,n.range[0],n.range[1]):(n=x(/^\{([0-9]+),\}/))?e=l(t=parseInt(n[1],10),void 0,n.range[0],n.range[1]):(n=x(/^\{([0-9]+),([0-9]+)\}/))&&((t=parseInt(n[1],10))>(r=parseInt(n[2],10))&&z("numbers out of order in {} quantifier","",u,Y),e=l(t,r,n.range[0],n.range[1])),(t&&!Number.isSafeInteger(t)||r&&!Number.isSafeInteger(r))&&z("iterations outside JS safe integer range in quantifier","",u,Y),e&&g("?")&&(e.greedy=!1,e.range[1]+=1),e}function _(e){if(K){var t,r;if("unicodeEscape"==e.kind&&(t=e.codePoint)>=55296&&t<=56319&&b("\\")&&v("u")){var u=Y;Y++;var a=w(!0);"unicodeEscape"==a.kind&&(r=a.codePoint)>=56320&&r<=57343?(e.range[1]=a.range[1],e.codePoint=(t-55296)*1024+r-56320+65536,e.type="value",e.kind="unicodeCodePointEscape",n(e)):Y=u}}return e}function w(e){var t,a,i=Y;if(a=function(e){var t,r,a=Y;if(t=x(/^(?!0)\d+/)){r=t[0];var i,o=parseInt(t[0],10);return o<=q&&!e?n({type:"reference",matchIndex:parseInt(i=t[0],10),range:[Y-1-i.length,Y]}):(V.push(o),W?G=!0:T(a,Y),h(-t[0].length),t=x(/^[0-7]{1,3}/))?s("octal",parseInt(t[0],8),t[0],1):u(t=d(x(/^[89]/)),t.range[0]-1)}return!!(t=x(/^[0-7]{1,3}/))&&(("0"!==(r=t[0])&&T(a,Y),/^0{1,3}$/.test(r))?s("null",0,"0",r.length):s("octal",parseInt(r,8),r,1))}(e)||function(){if(r.namedGroups&&x(/^k<(?=.*?>)/)){var e=I();return m(">"),n({type:"reference",name:e,range:[e.range[0]-3,Y]})}}())return a;if(e){if(g("b"))return s("singleEscape",8,"\\b");if(g("B"))z("\\B not possible inside of CharacterClass","",i);else if(!K&&(a=x(/^c([0-9])/)))return s("controlLetter",a[1]+16,a[1],2);else if(!K&&(a=x(/^c_/)))return s("controlLetter",31,"_",2);if(K&&g("-"))return s("singleEscape",45,"\\-")}return((t=x(/^[dDsSwW]/))?n({type:"characterClassEscape",value:t[0],range:[Y-2,Y]}):r.unicodePropertyEscape&&K&&(t=x(/^([pP])\{([^\}]+)\}/))?n({type:"unicodePropertyEscape",negative:"P"===t[1],value:t[2],range:[t.range[0]-1,t.range[1]],raw:t[0]}):!!(r.unicodeSet&&H&&g("q{"))&&function(){var e=Y-3,t=[];do t.push(function(){for(var e,t=[],r=Y;e=M();)t.push(e);return n({type:"classString",characters:t,range:[r,Y]})}());while(g("|"));return m("}"),n({type:"classStrings",strings:t,range:[e,Y]})}())||k()}function T(e,t){K&&z("Invalid decimal escape in unicode mode",null,e,t)}function P(){var e;return(e=x(/^u([0-9a-fA-F]{4})/))?_(s("unicodeEscape",parseInt(e[1],16),e[1],2)):K&&(e=x(/^u\{([0-9a-fA-F]+)\}/))?s("unicodeCodePointEscape",parseInt(e[1],16),e[1],4):void 0}function k(){var e,t,n,u=Y;if(n=x(/^[fnrtv]/)){var a=0;switch(n[0]){case"t":a=9;break;case"n":a=10;break;case"v":a=11;break;case"f":a=12;break;case"r":a=13}return s("singleEscape",a,"\\"+n[0])}return(n=x(/^c([a-zA-Z])/))?s("controlLetter",n[1].charCodeAt(0)%32,n[1],2):(n=x(/^x([0-9a-fA-F]{2})/))?s("hexadecimalEscape",parseInt(n[1],16),n[1],2):(n=P())?((!n||n.codePoint>1114111)&&z("Invalid escape sequence",null,u,Y),n):(t=y(),K&&/[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/.test(t)||!K&&"c"!==t?"k"===t&&r.lookbehind?null:s("identifier",(e=h()).charCodeAt(0),e,1):null)}function F(t){var r=y(),n=Y;if("\\"===r){h();var u=P();return u&&t(u.codePoint)||z("Invalid escape sequence",null,n,Y),o(u.codePoint)}var a=r.charCodeAt(0);if(a>=55296&&a<=56319){var i=(r+=e[Y+1]).charCodeAt(1);i>=56320&&i<=57343&&(a=(a-55296)*1024+i-56320+65536)}if(t(a))return h(),a>65535&&h(),r}function I(){var e,t=Y,r=F(B);for(r||z("Invalid identifier");e=F(j);)r+=e;return n({type:"identifier",value:r,range:[t,Y]})}function B(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=128&&/[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7B9\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFF1]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/.test(o(e))}function j(e){return B(e)||e>=48&&e<=57||e>=128&&/[0-9_\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD30-\uDD39\uDF46-\uDF50]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC66-\uDC6F\uDC7F-\uDC82\uDCB0-\uDCBA\uDCF0-\uDCF9\uDD00-\uDD02\uDD27-\uDD34\uDD36-\uDD3F\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDD0-\uDDD9\uDE2C-\uDE37\uDE3E\uDEDF-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC50-\uDC59\uDC5E\uDCB0-\uDCC3\uDCD0-\uDCD9\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDE50-\uDE59\uDEAB-\uDEB7\uDEC0-\uDEC9\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC2C-\uDC3A\uDCE0-\uDCE9\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC50-\uDC59\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD50-\uDD59\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDDA0-\uDDA9\uDEF3-\uDEF6]|\uD81A[\uDE60-\uDE69\uDEF0-\uDEF4\uDF30-\uDF36\uDF50-\uDF59]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A\uDD50-\uDD59]|\uDB40[\uDD00-\uDDEF]/.test(o(e))}function L(){var e,t=Y;return(e=x(/^\[\^/))?(e=O(),m("]"),c(e,!0,t,Y)):g("[")?(e=O(),m("]"),c(e,!1,t,Y)):null}function O(){var e,t;return b("]")?{kind:"union",body:[]}:H?function(){var e,t=[],r=R(!0);for(t.push(r),e="classRange"===r.type?"union":b("&")?"intersection":b("-")?"subtraction":"union";!b("]");)"intersection"===e?(m("&"),m("&"),b("&")&&z("&& cannot be followed by &. Wrap it in brackets: &&[&].")):"subtraction"===e&&(m("-"),m("-")),t.push(r=R("union"===e));return{kind:e,body:t}}():((t=N())||z("classAtom"),(e=b("]")?[t]:function e(t){if(b("-")&&!v("]")){r=t.range[0],i=d(g("-")),(a=N())||z("classAtom"),n=Y;var r,n,u,a,i,o,s=O();return(s||z("classRanges"),"codePoint"in t&&"codePoint"in a?u=[f(t,a,r,n)]:K?z("invalid character class"):u=[t,i,a],"empty"===s.type)?u:u.concat(s.body)}return(o=N())||z("classAtom"),(u=b("]")?o:e(o))||z("nonEmptyClassRangesNoDash"),[t].concat(u)}(t))||z("nonEmptyClassRanges"),{kind:"union",body:e})}function N(){var e;return g("-")?d("-"):(e=x(/^[^\\\]-]/))?d(e[0]):g("\\")?((e=w(!0))||z("classEscape"),_(e)):void 0}function R(e){var t,r,n=Y;if(g("\\")){if(r=w(!0))t=r;else{if(r=U())return r;z("Invalid escape","\\"+y(),n)}}else if(r=$())t=r;else{if(r=L())return r;z("Invalid character",y())}if(e&&b("-")&&!v("-")){if(m("-"),r=M())return f(t,r,n,Y);z("Invalid range end",y())}return t}function M(){if(g("\\")){var e,t=Y;if(e=U())return e;z("Invalid escape","\\"+y(),t)}return $()}function $(){var e;if(e=x(/^[^()[\]{}/\-\\|]/))return d(e)}function U(){var e;if(g("b"))return s("singleEscape",8,"\\b");if(g("B"))z("\\B not possible inside of ClassContents","",Y-2);else if(e=x(/^[&\-!#%,:;<=>@_`~]/))return s("identifier",e[0].codePointAt(0),e[0]);else if(e=k())return e;else return null}function z(t,r,n,u){n=null==n?Y:n,u=null==u?n:u;var a=Math.max(0,n-10),i=Math.min(u+10,e.length),o=" "+e.substring(a,i),s=" "+Array(n-a+1).join(" ")+"^";throw SyntaxError(t+" at position "+n+(r?": "+r:"")+"\n"+o+"\n"+s)}r||(r={});var V=[],q=0,W=!0,G=!1,Z=-1!==(t||"").indexOf("u"),H=-1!==(t||"").indexOf("v"),K=Z||H,Y=0;if(H&&!r.unicodeSet)throw Error('The "v" flag is only supported when the .unicodeSet option is enabled.');if(Z&&H)throw Error('The "u" and "v" flags are mutually exclusive.');""===(e=String(e))&&(e="(?:)");var J=E();return(J.range[1]!==e.length&&z("Could not parse entire input - got stuck","",J.range[1]),G=G||V.some(function(e){return e<=q}))?(Y=0,W=!1,E()):J}},o7.exports?o7.exports=s:window.regjsparser=s;var se=o7.exports;const{getStaticValue:st}=tm,{parse:sr}=se,{isRegexLiteral:sn,isNewExpression:su,isMethodCall:sa}=tK,si="method",so="pattern",ss=(e,t)=>{if(sn(e))return e.regex.flags.includes("g");if(su(e,{name:"RegExp"})&&e.arguments[0]?.type!=="SpreadElement"&&e.arguments[1]?.type==="Literal"&&"string"==typeof e.arguments[1].value)return e.arguments[1].value.includes("g");let r=st(e,t);if(!r)return!1;let{value:n}=r;return"[object RegExp]"===Object.prototype.toString.call(n)&&n.global};var sd=/*@__PURE__*/ec({create:e=>({CallExpression(t){if(!sa(t,{methods:["replace","replaceAll"],argumentsLength:2,optionalCall:!1,optionalMember:!1}))return;let{arguments:[r],callee:{property:n}}=t;if(!ss(r,e.sourceCode.getScope(r)))return;let u=n.name,a=function(e){let t;if(!sn(e))return;let{pattern:r,flags:n}=e.regex;if("g"!==n.replace("u","").replace("v",""))return;try{t=sr(r,n,{unicodePropertyEscape:n.includes("u"),unicodeSet:n.includes("v"),namedGroups:!0,lookbehind:!0})}catch{return}let u="alternative"===t.type?t.body:[t];if(!u.some(e=>"value"!==e.type))return rZ(String.fromCodePoint(...u.map(e=>e.codePoint)))}(r);if("replaceAll"===u){if(!a)return;return{node:r,messageId:so,data:{replacement:a.length<20?a:"a string literal"},fix:e=>e.replaceText(r,a)}}return{node:n,messageId:si,*fix(e){yield e.insertTextAfter(n,"All"),a&&(yield e.replaceText(r,a))}}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#replaceAll()` over regex searches with the global flag.",recommended:!0},fixable:"code",messages:{[si]:"Prefer `String#replaceAll()` over `String#replace()`.",[so]:"This pattern can be replaced with {{replacement}}."}}});const{getStaticValue:sl}=tm,{getParenthesizedText:sc,getParenthesizedRange:sf}=t_,{replaceArgument:sp}=uv,{isNumberLiteral:sh,isMethodCall:sm}=tK,sg=e=>sh(e)?e.value:"UnaryExpression"===e.type&&"-"===e.operator?-sg(e.argument):void 0,sy=e=>e?.type==="MemberExpression"&&!1===e.computed&&"Identifier"===e.property.type&&"length"===e.property.name;var sb=/*@__PURE__*/ec({create:e=>({CallExpression(t){if(!sm(t,{methods:["substr","substring"]}))return;let r=t.callee.property.name;return{node:t,messageId:r,*fix(n,{abort:u}){if(yield n.replaceText(t.callee.property,"slice"),0!==t.arguments.length){if(t.arguments.length>2||t.arguments.some(e=>"SpreadElement"===e.type))return u();yield*("substr"===r?function*({node:e,fixer:t,context:r,abort:n}){let u=e.arguments,[a,i]=u;if(!i)return;let{sourceCode:o}=r,s=o.getScope(e),d=sl(a,s),l=sf(i,o),c=e=>sp(t,i,e,o);if(d?.value===0){if(sh(i)||sy(i))return;if("number"==typeof sg(i)){yield c(Math.max(0,sg(i)));return}yield t.insertTextBeforeRange(l,"Math.max(0, "),yield t.insertTextAfterRange(l,")");return}if(u.every(e=>sh(e))){yield c(a.value+i.value);return}if(u.every(e=>aa(e,s))){let e=sc(a,o);yield t.insertTextBeforeRange(l,`${e} + `);return}return n()}:function*({node:e,fixer:t,context:r,abort:n}){let{sourceCode:u}=r,[a,i]=e.arguments,o=a?sg(a):void 0,s=sc(a,u),d=e=>sp(t,a,e,u);if(!i){if(sy(a))return;if(void 0!==o){yield d(Math.max(0,o));return}let e=sf(a,u);yield t.insertTextBeforeRange(e,"Math.max(0, "),yield t.insertTextAfterRange(e,")");return}let l=sg(i),c=sc(i,u),f=e=>sp(t,i,e,u);if(void 0!==o&&void 0!==l){let e=[Math.max(0,o),Math.max(0,l)];o>l&&e.reverse(),e[0]!==o&&(yield d(e[0])),e[1]!==l&&(yield f(e[1]));return}if(0===o||0===l){yield d(0),yield f(`Math.max(0, ${0===o?c:s})`);return}return n()})({node:t,fixer:n,context:e,abort:u})}}}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#slice()` over `String#substr()` and `String#substring()`.",recommended:!0},fixable:"code",messages:{substr:"Prefer `String#slice()` over `String#substr()`.",substring:"Prefer `String#slice()` over `String#substring()`."}}});const{isMethodCall:sv}=tK,sx="prefer-string-trim-start-end";var sE=/*@__PURE__*/ec({create:()=>({CallExpression(e){if(!sv(e,{methods:["trimLeft","trimRight"],argumentsLength:0,optionalCall:!1}))return;let t=e.callee.property,r=t.name,n="trimLeft"===r?"trimStart":"trimEnd";return{node:t,messageId:sx,data:{method:r,replacement:n},fix:e=>e.replaceText(t,n)}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.",recommended:!0},fixable:"code",messages:{[sx]:"Prefer `String#{{replacement}}()` over `String#{{method}}()`."}}});const{isParenthesized:sC,getParenthesizedRange:sA,toLocation:sD}=nI,sS="no-unreadable-iife";var s_=/*@__PURE__*/ec({create:e=>({CallExpression(t){let{sourceCode:r}=e;if("ArrowFunctionExpression"===t.callee.type&&"BlockStatement"!==t.callee.body.type&&sC(t.callee.body,r))return{node:t,loc:sD(sA(t.callee.body,r),r),messageId:sS}}}),meta:{type:"suggestion",docs:{description:"Disallow unreadable IIFEs.",recommended:!0},hasSuggestions:!1,messages:{[sS]:"IIFE with parenthesized arrow function body is considered unreadable."}}});const{switchCallExpressionToNewExpression:sw}=uv,sT="throw-new-error",sP=/^(?:[A-Z][\da-z]*)*Error$/;var sk=/*@__PURE__*/ec({create:e=>({CallExpression(t){let{callee:r}=t;if("Identifier"===r.type&&sP.test(r.name)||"MemberExpression"===r.type&&!r.computed&&"Identifier"===r.property.type&&sP.test(r.property.name))return{node:t,messageId:sT,fix:r=>sw(t,e.sourceCode,r)}}}),meta:{type:"suggestion",docs:{description:"Require `new` when creating an error.",recommended:!0},fixable:"code",messages:{[sT]:"Use `new` when creating an error."}}}),sF=/[|\\{}()[\]^$+*?.]/g,sI=new Map([["[0-9]",{value:"\\d"}],["[^0-9]",{value:"\\D"}],["[a-zA-Z0-9_]",{value:"\\w"}],["[a-zA-Z_0-9]",{value:"\\w"}],["[a-z0-9A-Z_]",{value:"\\w"}],["[a-z0-9_A-Z]",{value:"\\w"}],["[a-z_A-Z0-9]",{value:"\\w"}],["[a-z_0-9A-Z]",{value:"\\w"}],["[A-Za-z0-9_]",{value:"\\w"}],["[A-Za-z_0-9]",{value:"\\w"}],["[A-Z0-9a-z_]",{value:"\\w"}],["[A-Z0-9_a-z]",{value:"\\w"}],["[A-Z_a-z0-9]",{value:"\\w"}],["[A-Z_0-9a-z]",{value:"\\w"}],["[0-9a-zA-Z_]",{value:"\\w"}],["[0-9a-z_A-Z]",{value:"\\w"}],["[0-9A-Za-z_]",{value:"\\w"}],["[0-9A-Z_a-z]",{value:"\\w"}],["[0-9_a-zA-Z]",{value:"\\w"}],["[0-9_A-Za-z]",{value:"\\w"}],["[_a-zA-Z0-9]",{value:"\\w"}],["[_a-z0-9A-Z]",{value:"\\w"}],["[_A-Za-z0-9]",{value:"\\w"}],["[_A-Z0-9a-z]",{value:"\\w"}],["[_0-9a-zA-Z]",{value:"\\w"}],["[_0-9A-Za-z]",{value:"\\w"}],["[a-zA-Z\\d_]",{value:"\\w"}],["[a-zA-Z_\\d]",{value:"\\w"}],["[a-z\\dA-Z_]",{value:"\\w"}],["[a-z\\d_A-Z]",{value:"\\w"}],["[a-z_A-Z\\d]",{value:"\\w"}],["[a-z_\\dA-Z]",{value:"\\w"}],["[A-Za-z\\d_]",{value:"\\w"}],["[A-Za-z_\\d]",{value:"\\w"}],["[A-Z\\da-z_]",{value:"\\w"}],["[A-Z\\d_a-z]",{value:"\\w"}],["[A-Z_a-z\\d]",{value:"\\w"}],["[A-Z_\\da-z]",{value:"\\w"}],["[\\da-zA-Z_]",{value:"\\w"}],["[\\da-z_A-Z]",{value:"\\w"}],["[\\dA-Za-z_]",{value:"\\w"}],["[\\dA-Z_a-z]",{value:"\\w"}],["[\\d_a-zA-Z]",{value:"\\w"}],["[\\d_A-Za-z]",{value:"\\w"}],["[_a-zA-Z\\d]",{value:"\\w"}],["[_a-z\\dA-Z]",{value:"\\w"}],["[_A-Za-z\\d]",{value:"\\w"}],["[_A-Z\\da-z]",{value:"\\w"}],["[_\\da-zA-Z]",{value:"\\w"}],["[_\\dA-Za-z]",{value:"\\w"}],["[^a-zA-Z0-9_]",{value:"\\W"}],["[^a-zA-Z_0-9]",{value:"\\W"}],["[^a-z0-9A-Z_]",{value:"\\W"}],["[^a-z0-9_A-Z]",{value:"\\W"}],["[^a-z_A-Z0-9]",{value:"\\W"}],["[^a-z_0-9A-Z]",{value:"\\W"}],["[^A-Za-z0-9_]",{value:"\\W"}],["[^A-Za-z_0-9]",{value:"\\W"}],["[^A-Z0-9a-z_]",{value:"\\W"}],["[^A-Z0-9_a-z]",{value:"\\W"}],["[^A-Z_a-z0-9]",{value:"\\W"}],["[^A-Z_0-9a-z]",{value:"\\W"}],["[^0-9a-zA-Z_]",{value:"\\W"}],["[^0-9a-z_A-Z]",{value:"\\W"}],["[^0-9A-Za-z_]",{value:"\\W"}],["[^0-9A-Z_a-z]",{value:"\\W"}],["[^0-9_a-zA-Z]",{value:"\\W"}],["[^0-9_A-Za-z]",{value:"\\W"}],["[^_a-zA-Z0-9]",{value:"\\W"}],["[^_a-z0-9A-Z]",{value:"\\W"}],["[^_A-Za-z0-9]",{value:"\\W"}],["[^_A-Z0-9a-z]",{value:"\\W"}],["[^_0-9a-zA-Z]",{value:"\\W"}],["[^_0-9A-Za-z]",{value:"\\W"}],["[^a-zA-Z\\d_]",{value:"\\W"}],["[^a-zA-Z_\\d]",{value:"\\W"}],["[^a-z\\dA-Z_]",{value:"\\W"}],["[^a-z\\d_A-Z]",{value:"\\W"}],["[^a-z_A-Z\\d]",{value:"\\W"}],["[^a-z_\\dA-Z]",{value:"\\W"}],["[^A-Za-z\\d_]",{value:"\\W"}],["[^A-Za-z_\\d]",{value:"\\W"}],["[^A-Z\\da-z_]",{value:"\\W"}],["[^A-Z\\d_a-z]",{value:"\\W"}],["[^A-Z_a-z\\d]",{value:"\\W"}],["[^A-Z_\\da-z]",{value:"\\W"}],["[^\\da-zA-Z_]",{value:"\\W"}],["[^\\da-z_A-Z]",{value:"\\W"}],["[^\\dA-Za-z_]",{value:"\\W"}],["[^\\dA-Z_a-z]",{value:"\\W"}],["[^\\d_a-zA-Z]",{value:"\\W"}],["[^\\d_A-Za-z]",{value:"\\W"}],["[^_a-zA-Z\\d]",{value:"\\W"}],["[^_a-z\\dA-Z]",{value:"\\W"}],["[^_A-Za-z\\d]",{value:"\\W"}],["[^_A-Z\\da-z]",{value:"\\W"}],["[^_\\da-zA-Z]",{value:"\\W"}],["[^_\\dA-Za-z]",{value:"\\W"}],["[a-z0-9_]",{value:"\\w",flags:"i"}],["[a-z_0-9]",{value:"\\w",flags:"i"}],["[0-9a-z_]",{value:"\\w",flags:"i"}],["[0-9_a-z]",{value:"\\w",flags:"i"}],["[_a-z0-9]",{value:"\\w",flags:"i"}],["[_0-9a-z]",{value:"\\w",flags:"i"}],["[^a-z0-9_]",{value:"\\W",flags:"i"}],["[a-z\\d_]",{value:"\\w",flags:"i"}],["[a-z_\\d]",{value:"\\w",flags:"i"}],["[\\da-z_]",{value:"\\w",flags:"i"}],["[\\d_a-z]",{value:"\\w",flags:"i"}],["[_a-z\\d]",{value:"\\w",flags:"i"}],["[_\\da-z]",{value:"\\w",flags:"i"}],["[^a-z0-9_]",{value:"\\W",flags:"i"}],["[^a-z_0-9]",{value:"\\W",flags:"i"}],["[^0-9a-z_]",{value:"\\W",flags:"i"}],["[^0-9_a-z]",{value:"\\W",flags:"i"}],["[^_a-z0-9]",{value:"\\W",flags:"i"}],["[^_0-9a-z]",{value:"\\W",flags:"i"}],["[^a-z\\d_]",{value:"\\W",flags:"i"}],["[^a-z_\\d]",{value:"\\W",flags:"i"}],["[^\\da-z_]",{value:"\\W",flags:"i"}],["[^\\d_a-z]",{value:"\\W",flags:"i"}],["[^_a-z\\d]",{value:"\\W",flags:"i"}],["[^_\\da-z]",{value:"\\W",flags:"i"}]]);const sB=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(sF,"\\$&")},sj=(e,t)=>!t||t.split("").every(t=>e.includes(t));function sL(e){return e?sO[e.type](e):""}var sO={RegExp:function(e){return"/"+sL(e.body)+"/"+e.flags},Alternative:function(e){return(e.expressions||[]).map(sL).join("")},Disjunction:function(e){return sL(e.left)+"|"+sL(e.right)},Group:function(e){var t=sL(e.expression);return e.capturing?e.name?"(?<"+(e.nameRaw||e.name)+">"+t+")":"("+t+")":"(?:"+t+")"},Backreference:function(e){switch(e.kind){case"number":return"\\"+e.reference;case"name":return"\\k<"+(e.referenceRaw||e.reference)+">";default:throw TypeError("Unknown Backreference kind: "+e.kind)}},Assertion:function(e){switch(e.kind){case"^":case"$":case"\\b":case"\\B":return e.kind;case"Lookahead":var t=sL(e.assertion);if(e.negative)return"(?!"+t+")";return"(?="+t+")";case"Lookbehind":var r=sL(e.assertion);if(e.negative)return"(?<!"+r+")";return"(?<="+r+")";default:throw TypeError("Unknown Assertion kind: "+e.kind)}},CharacterClass:function(e){var t=e.expressions.map(sL).join("");return e.negative?"[^"+t+"]":"["+t+"]"},ClassRange:function(e){return sL(e.from)+"-"+sL(e.to)},Repetition:function(e){return""+sL(e.expression)+sL(e.quantifier)},Quantifier:function(e){var t=void 0,r=e.greedy?"":"?";switch(e.kind){case"+":case"?":case"*":t=e.kind;break;case"Range":t=e.from===e.to?"{"+e.from+"}":e.to?"{"+e.from+","+e.to+"}":"{"+e.from+",}";break;default:throw TypeError("Unknown Quantifier kind: "+e.kind)}return""+t+r},Char:function(e){var t=e.value;switch(e.kind){case"simple":if(e.escaped)return"\\"+t;return t;case"hex":case"unicode":case"oct":case"decimal":case"control":case"meta":return t;default:throw TypeError("Unknown Char kind: "+e.kind)}},UnicodeProperty:function(e){return"\\"+(e.negative?"P":"p")+"{"+(e.shorthand||e.binary?"":e.name+"=")+e.value+"}"}},sN={generate:sL},sR={General_Category:"gc",Script:"sc",Script_Extensions:"scx"},sM=sG(sR),s$={ASCII:"ASCII",ASCII_Hex_Digit:"AHex",Alphabetic:"Alpha",Any:"Any",Assigned:"Assigned",Bidi_Control:"Bidi_C",Bidi_Mirrored:"Bidi_M",Case_Ignorable:"CI",Cased:"Cased",Changes_When_Casefolded:"CWCF",Changes_When_Casemapped:"CWCM",Changes_When_Lowercased:"CWL",Changes_When_NFKC_Casefolded:"CWKCF",Changes_When_Titlecased:"CWT",Changes_When_Uppercased:"CWU",Dash:"Dash",Default_Ignorable_Code_Point:"DI",Deprecated:"Dep",Diacritic:"Dia",Emoji:"Emoji",Emoji_Component:"Emoji_Component",Emoji_Modifier:"Emoji_Modifier",Emoji_Modifier_Base:"Emoji_Modifier_Base",Emoji_Presentation:"Emoji_Presentation",Extended_Pictographic:"Extended_Pictographic",Extender:"Ext",Grapheme_Base:"Gr_Base",Grapheme_Extend:"Gr_Ext",Hex_Digit:"Hex",IDS_Binary_Operator:"IDSB",IDS_Trinary_Operator:"IDST",ID_Continue:"IDC",ID_Start:"IDS",Ideographic:"Ideo",Join_Control:"Join_C",Logical_Order_Exception:"LOE",Lowercase:"Lower",Math:"Math",Noncharacter_Code_Point:"NChar",Pattern_Syntax:"Pat_Syn",Pattern_White_Space:"Pat_WS",Quotation_Mark:"QMark",Radical:"Radical",Regional_Indicator:"RI",Sentence_Terminal:"STerm",Soft_Dotted:"SD",Terminal_Punctuation:"Term",Unified_Ideograph:"UIdeo",Uppercase:"Upper",Variation_Selector:"VS",White_Space:"space",XID_Continue:"XIDC",XID_Start:"XIDS"},sU=sG(s$),sz={Cased_Letter:"LC",Close_Punctuation:"Pe",Connector_Punctuation:"Pc",Control:["Cc","cntrl"],Currency_Symbol:"Sc",Dash_Punctuation:"Pd",Decimal_Number:["Nd","digit"],Enclosing_Mark:"Me",Final_Punctuation:"Pf",Format:"Cf",Initial_Punctuation:"Pi",Letter:"L",Letter_Number:"Nl",Line_Separator:"Zl",Lowercase_Letter:"Ll",Mark:["M","Combining_Mark"],Math_Symbol:"Sm",Modifier_Letter:"Lm",Modifier_Symbol:"Sk",Nonspacing_Mark:"Mn",Number:"N",Open_Punctuation:"Ps",Other:"C",Other_Letter:"Lo",Other_Number:"No",Other_Punctuation:"Po",Other_Symbol:"So",Paragraph_Separator:"Zp",Private_Use:"Co",Punctuation:["P","punct"],Separator:"Z",Space_Separator:"Zs",Spacing_Mark:"Mc",Surrogate:"Cs",Symbol:"S",Titlecase_Letter:"Lt",Unassigned:"Cn",Uppercase_Letter:"Lu"},sV=sG(sz),sq={Adlam:"Adlm",Ahom:"Ahom",Anatolian_Hieroglyphs:"Hluw",Arabic:"Arab",Armenian:"Armn",Avestan:"Avst",Balinese:"Bali",Bamum:"Bamu",Bassa_Vah:"Bass",Batak:"Batk",Bengali:"Beng",Bhaiksuki:"Bhks",Bopomofo:"Bopo",Brahmi:"Brah",Braille:"Brai",Buginese:"Bugi",Buhid:"Buhd",Canadian_Aboriginal:"Cans",Carian:"Cari",Caucasian_Albanian:"Aghb",Chakma:"Cakm",Cham:"Cham",Cherokee:"Cher",Common:"Zyyy",Coptic:["Copt","Qaac"],Cuneiform:"Xsux",Cypriot:"Cprt",Cyrillic:"Cyrl",Deseret:"Dsrt",Devanagari:"Deva",Dogra:"Dogr",Duployan:"Dupl",Egyptian_Hieroglyphs:"Egyp",Elbasan:"Elba",Ethiopic:"Ethi",Georgian:"Geor",Glagolitic:"Glag",Gothic:"Goth",Grantha:"Gran",Greek:"Grek",Gujarati:"Gujr",Gunjala_Gondi:"Gong",Gurmukhi:"Guru",Han:"Hani",Hangul:"Hang",Hanifi_Rohingya:"Rohg",Hanunoo:"Hano",Hatran:"Hatr",Hebrew:"Hebr",Hiragana:"Hira",Imperial_Aramaic:"Armi",Inherited:["Zinh","Qaai"],Inscriptional_Pahlavi:"Phli",Inscriptional_Parthian:"Prti",Javanese:"Java",Kaithi:"Kthi",Kannada:"Knda",Katakana:"Kana",Kayah_Li:"Kali",Kharoshthi:"Khar",Khmer:"Khmr",Khojki:"Khoj",Khudawadi:"Sind",Lao:"Laoo",Latin:"Latn",Lepcha:"Lepc",Limbu:"Limb",Linear_A:"Lina",Linear_B:"Linb",Lisu:"Lisu",Lycian:"Lyci",Lydian:"Lydi",Mahajani:"Mahj",Makasar:"Maka",Malayalam:"Mlym",Mandaic:"Mand",Manichaean:"Mani",Marchen:"Marc",Medefaidrin:"Medf",Masaram_Gondi:"Gonm",Meetei_Mayek:"Mtei",Mende_Kikakui:"Mend",Meroitic_Cursive:"Merc",Meroitic_Hieroglyphs:"Mero",Miao:"Plrd",Modi:"Modi",Mongolian:"Mong",Mro:"Mroo",Multani:"Mult",Myanmar:"Mymr",Nabataean:"Nbat",New_Tai_Lue:"Talu",Newa:"Newa",Nko:"Nkoo",Nushu:"Nshu",Ogham:"Ogam",Ol_Chiki:"Olck",Old_Hungarian:"Hung",Old_Italic:"Ital",Old_North_Arabian:"Narb",Old_Permic:"Perm",Old_Persian:"Xpeo",Old_Sogdian:"Sogo",Old_South_Arabian:"Sarb",Old_Turkic:"Orkh",Oriya:"Orya",Osage:"Osge",Osmanya:"Osma",Pahawh_Hmong:"Hmng",Palmyrene:"Palm",Pau_Cin_Hau:"Pauc",Phags_Pa:"Phag",Phoenician:"Phnx",Psalter_Pahlavi:"Phlp",Rejang:"Rjng",Runic:"Runr",Samaritan:"Samr",Saurashtra:"Saur",Sharada:"Shrd",Shavian:"Shaw",Siddham:"Sidd",SignWriting:"Sgnw",Sinhala:"Sinh",Sogdian:"Sogd",Sora_Sompeng:"Sora",Soyombo:"Soyo",Sundanese:"Sund",Syloti_Nagri:"Sylo",Syriac:"Syrc",Tagalog:"Tglg",Tagbanwa:"Tagb",Tai_Le:"Tale",Tai_Tham:"Lana",Tai_Viet:"Tavt",Takri:"Takr",Tamil:"Taml",Tangut:"Tang",Telugu:"Telu",Thaana:"Thaa",Thai:"Thai",Tibetan:"Tibt",Tifinagh:"Tfng",Tirhuta:"Tirh",Ugaritic:"Ugar",Vai:"Vaii",Warang_Citi:"Wara",Yi:"Yiii",Zanabazar_Square:"Zanb"},sW=sG(sq);function sG(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(Array.isArray(n))for(var u=0;u<n.length;u++)t[n[u]]=r;else t[n]=r}return t}function sZ(e){return sz.hasOwnProperty(e)||sV.hasOwnProperty(e)}var sH=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function sK(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var sY=void 0,sJ={},sX=void 0,sQ=void 0;function s0(e,t){return sJ.options.captureLocations?e&&t?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:e||t:null}var s1=[[-1,1,function(e,t){sQ=s0(t,t),sX=e}],[0,4,function(e,t,r,n,u,a,i,o){sQ=s0(u,o),sX=dh({type:"RegExp",body:t,flags:function(e){var t=new Set,r=!0,n=!1,u=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var o=a.value;if(t.has(o)||!"gimsuxy".includes(o))throw SyntaxError("Invalid flags: "+e);t.add(o)}}catch(e){n=!0,u=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw u}}return e.split("").sort().join("")}(n)},dm(u,o||i))}],[1,1,function(e,t){sQ=s0(t,t),sX=e}],[1,0,function(){sQ=null,sX=""}],[2,1,function(e,t){sQ=s0(t,t),sX=e}],[2,2,function(e,t,r,n){sQ=s0(r,n),sX=e+t}],[3,1,function(e,t){sQ=s0(t,t),sX=e}],[4,1,function(e,t){sQ=s0(t,t),sX=e}],[4,3,function(e,t,r,n,u,a){sQ=s0(n,a);var i=null;u&&(i=dm(n||u,a||u)),sX=dh({type:"Disjunction",left:e,right:r},i)}],[5,1,function(e,t){if(sQ=s0(t,t),0===e.length){sX=null;return}sX=1===e.length?dh(e[0],sQ):dh({type:"Alternative",expressions:e},sQ)}],[6,0,function(){sQ=null,sX=[]}],[6,2,function(e,t,r,n){sQ=s0(r,n),sX=e.concat(t)}],[7,1,function(e,t){sQ=s0(t,t),sX=dh(Object.assign({type:"Assertion"},e),sQ)}],[7,2,function(e,t,r,n){sQ=s0(r,n),sX=e,t&&(sX=dh({type:"Repetition",expression:e,quantifier:t},sQ))}],[8,1,function(e,t){sQ=s0(t,t),sX={kind:"^"}}],[8,1,function(e,t){sQ=s0(t,t),sX={kind:"$"}}],[8,1,function(e,t){sQ=s0(t,t),sX={kind:"\\b"}}],[8,1,function(e,t){sQ=s0(t,t),sX={kind:"\\B"}}],[8,3,function(e,t,r,n,u,a){sQ=s0(n,a),sX={kind:"Lookahead",assertion:t}}],[8,3,function(e,t,r,n,u,a){sQ=s0(n,a),sX={kind:"Lookahead",negative:!0,assertion:t}}],[8,3,function(e,t,r,n,u,a){sQ=s0(n,a),sX={kind:"Lookbehind",assertion:t}}],[8,3,function(e,t,r,n,u,a){sQ=s0(n,a),sX={kind:"Lookbehind",negative:!0,assertion:t}}],[9,1,function(e,t){sQ=s0(t,t),sX=e}],[9,1,function(e,t){sQ=s0(t,t),sX=e}],[9,1,function(e,t){sQ=s0(t,t),sX=e}],[10,1,function(e,t){sX=di(e,"simple",sQ=s0(t,t))}],[10,1,function(e,t){sQ=s0(t,t),(sX=di(e.slice(1),"simple",sQ)).escaped=!0}],[10,1,function(e,t){(sX=di(e,"unicode",sQ=s0(t,t))).isSurrogatePair=!0}],[10,1,function(e,t){sX=di(e,"unicode",sQ=s0(t,t))}],[10,1,function(e,t){sX=function(e,t){var r="P"===e[1],n=e.indexOf("="),u=e.slice(3,-1!==n?n:-1),a=void 0,i=-1===n&&da.isGeneralCategoryValue(u),o=-1===n&&da.isBinaryPropertyName(u);if(i)a=u,u="General_Category";else if(o)a=u;else{if(!da.isValidName(u))throw SyntaxError("Invalid unicode property name: "+u+".");if(a=e.slice(n+1,-1),!da.isValidValue(u,a))throw SyntaxError("Invalid "+u+" unicode property value: "+a+".")}return dh({type:"UnicodeProperty",name:u,value:a,negative:r,shorthand:i,binary:o,canonicalName:da.getCanonicalName(u)||u,canonicalValue:da.getCanonicalValue(a)||a},t)}(e,sQ=s0(t,t))}],[10,1,function(e,t){sX=di(e,"control",sQ=s0(t,t))}],[10,1,function(e,t){sX=di(e,"hex",sQ=s0(t,t))}],[10,1,function(e,t){sX=di(e,"oct",sQ=s0(t,t))}],[10,1,function(e,t){var r,n;r=sQ=s0(t,t),sX=(n=Number(e.slice(1)))>0&&n<=de?dh({type:"Backreference",kind:"number",number:n,reference:n},r):di(e,"decimal",r)}],[10,1,function(e,t){sX=di(e,"meta",sQ=s0(t,t))}],[10,1,function(e,t){sX=di(e,"meta",sQ=s0(t,t))}],[10,1,function(e,t){sQ=s0(t,t),sX=function(e,t){var r=e.slice(3,-1),n=dp(r);if(dt.hasOwnProperty(n))return dh({type:"Backreference",kind:"name",number:dt[n],reference:n,referenceRaw:r},t);var u=null,a=null,i=null,o=null;t&&(u=t.startOffset,a=t.startLine,i=t.endLine,o=t.startColumn);var s=/^[\w$<>]/,d=void 0,l=[di(e.slice(1,2),"simple",u?{startLine:a,endLine:i,startColumn:o,startOffset:u,endOffset:u+=2,endColumn:o+=2}:null)];for(l[0].escaped=!0,e=e.slice(2);e.length>0;){var c=null;(c=e.match(ds))||(c=e.match(dd))?(u&&(d={startLine:a,endLine:i,startColumn:o,startOffset:u,endOffset:u+=c[0].length,endColumn:o+=c[0].length}),l.push(di(c[0],"unicode",d)),e=e.slice(c[0].length)):(c=e.match(s))&&(u&&(d={startLine:a,endLine:i,startColumn:o,startOffset:u,endOffset:++u,endColumn:++o}),l.push(di(c[0],"simple",d)),e=e.slice(1))}return l}(e,t)}],[11,1,function(e,t){sQ=s0(t,t),sX=e}],[11,0],[12,1,function(e,t){sQ=s0(t,t),sX=e}],[12,2,function(e,t,r,n){sQ=s0(r,n),e.greedy=!1,sX=e}],[13,1,function(e,t){sX=dh({type:"Quantifier",kind:e,greedy:!0},sQ=s0(t,t))}],[13,1,function(e,t){sX=dh({type:"Quantifier",kind:e,greedy:!0},sQ=s0(t,t))}],[13,1,function(e,t){sX=dh({type:"Quantifier",kind:e,greedy:!0},sQ=s0(t,t))}],[13,1,function(e,t){sQ=s0(t,t);var r=dn(e);sX=dh({type:"Quantifier",kind:"Range",from:r[0],to:r[0],greedy:!0},sQ)}],[13,1,function(e,t){sQ=s0(t,t),sX=dh({type:"Quantifier",kind:"Range",from:dn(e)[0],greedy:!0},sQ)}],[13,1,function(e,t){sQ=s0(t,t);var r=dn(e);sX=dh({type:"Quantifier",kind:"Range",from:r[0],to:r[1],greedy:!0},sQ)}],[14,1,function(e,t){sQ=s0(t,t),sX=e}],[14,1,function(e,t){sQ=s0(t,t),sX=e}],[15,3,function(e,t,r,n,u,a){sQ=s0(n,a);var i=String(e),o=dp(i);if(!sJ.options.allowGroupNameDuplicates&&dt.hasOwnProperty(o))throw SyntaxError('Duplicate of the named group "'+o+'".');dt[o]=e.groupNumber,sX=dh({type:"Group",capturing:!0,name:o,nameRaw:i,number:e.groupNumber,expression:t},sQ)}],[15,3,function(e,t,r,n,u,a){sQ=s0(n,a),sX=dh({type:"Group",capturing:!0,number:e.groupNumber,expression:t},sQ)}],[16,3,function(e,t,r,n,u,a){sX=dh({type:"Group",capturing:!1,expression:t},sQ=s0(n,a))}],[17,3,function(e,t,r,n,u,a){sX=dh({type:"CharacterClass",negative:!0,expressions:t},sQ=s0(n,a))}],[17,3,function(e,t,r,n,u,a){sX=dh({type:"CharacterClass",expressions:t},sQ=s0(n,a))}],[18,0,function(){sQ=null,sX=[]}],[18,1,function(e,t){sQ=s0(t,t),sX=e}],[19,1,function(e,t){sQ=s0(t,t),sX=[e]}],[19,2,function(e,t,r,n){sQ=s0(r,n),sX=[e].concat(t)}],[19,4,function(e,t,r,n,u,a,i,o){sQ=s0(u,o),du(e,r),sX=[dh({type:"ClassRange",from:e,to:r},dm(u,i))],n&&(sX=sX.concat(n))}],[20,1,function(e,t){sQ=s0(t,t),sX=e}],[20,2,function(e,t,r,n){sQ=s0(r,n),sX=[e].concat(t)}],[20,4,function(e,t,r,n,u,a,i,o){sQ=s0(u,o),du(e,r),sX=[dh({type:"ClassRange",from:e,to:r},dm(u,i))],n&&(sX=sX.concat(n))}],[21,1,function(e,t){sX=di(e,"simple",sQ=s0(t,t))}],[21,1,function(e,t){sQ=s0(t,t),sX=e}],[22,1,function(e,t){sQ=s0(t,t),sX=e}],[22,1,function(e,t){sX=di(e,"meta",sQ=s0(t,t))}]],s2={SLASH:"23",CHAR:"24",BAR:"25",BOS:"26",EOS:"27",ESC_b:"28",ESC_B:"29",POS_LA_ASSERT:"30",R_PAREN:"31",NEG_LA_ASSERT:"32",POS_LB_ASSERT:"33",NEG_LB_ASSERT:"34",ESC_CHAR:"35",U_CODE_SURROGATE:"36",U_CODE:"37",U_PROP_VALUE_EXP:"38",CTRL_CH:"39",HEX_CODE:"40",OCT_CODE:"41",DEC_CODE:"42",META_CHAR:"43",ANY:"44",NAMED_GROUP_REF:"45",Q_MARK:"46",STAR:"47",PLUS:"48",RANGE_EXACT:"49",RANGE_OPEN:"50",RANGE_CLOSED:"51",NAMED_CAPTURE_GROUP:"52",L_PAREN:"53",NON_CAPTURE_GROUP:"54",NEG_CLASS:"55",R_BRACKET:"56",L_BRACKET:"57",DASH:"58",$:"59"},s3=[{0:1,23:"s2"},{59:"acc"},{3:3,4:4,5:5,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"s7"},{23:"r6",25:"s12"},{23:"r7",25:"r7",31:"r7"},{7:14,8:15,9:16,10:25,14:27,15:42,16:43,17:26,23:"r9",24:"s28",25:"r9",26:"s17",27:"s18",28:"s19",29:"s20",30:"s21",31:"r9",32:"s22",33:"s23",34:"s24",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",52:"s44",53:"s45",54:"s46",55:"s40",57:"s41"},{1:8,2:9,24:"s10",59:"r3"},{59:"r1"},{24:"s11",59:"r2"},{24:"r4",59:"r4"},{24:"r5",59:"r5"},{5:13,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r8",25:"r8",31:"r8"},{23:"r11",24:"r11",25:"r11",26:"r11",27:"r11",28:"r11",29:"r11",30:"r11",31:"r11",32:"r11",33:"r11",34:"r11",35:"r11",36:"r11",37:"r11",38:"r11",39:"r11",40:"r11",41:"r11",42:"r11",43:"r11",44:"r11",45:"r11",52:"r11",53:"r11",54:"r11",55:"r11",57:"r11"},{23:"r12",24:"r12",25:"r12",26:"r12",27:"r12",28:"r12",29:"r12",30:"r12",31:"r12",32:"r12",33:"r12",34:"r12",35:"r12",36:"r12",37:"r12",38:"r12",39:"r12",40:"r12",41:"r12",42:"r12",43:"r12",44:"r12",45:"r12",52:"r12",53:"r12",54:"r12",55:"r12",57:"r12"},{11:47,12:48,13:49,23:"r38",24:"r38",25:"r38",26:"r38",27:"r38",28:"r38",29:"r38",30:"r38",31:"r38",32:"r38",33:"r38",34:"r38",35:"r38",36:"r38",37:"r38",38:"r38",39:"r38",40:"r38",41:"r38",42:"r38",43:"r38",44:"r38",45:"r38",46:"s52",47:"s50",48:"s51",49:"s53",50:"s54",51:"s55",52:"r38",53:"r38",54:"r38",55:"r38",57:"r38"},{23:"r14",24:"r14",25:"r14",26:"r14",27:"r14",28:"r14",29:"r14",30:"r14",31:"r14",32:"r14",33:"r14",34:"r14",35:"r14",36:"r14",37:"r14",38:"r14",39:"r14",40:"r14",41:"r14",42:"r14",43:"r14",44:"r14",45:"r14",52:"r14",53:"r14",54:"r14",55:"r14",57:"r14"},{23:"r15",24:"r15",25:"r15",26:"r15",27:"r15",28:"r15",29:"r15",30:"r15",31:"r15",32:"r15",33:"r15",34:"r15",35:"r15",36:"r15",37:"r15",38:"r15",39:"r15",40:"r15",41:"r15",42:"r15",43:"r15",44:"r15",45:"r15",52:"r15",53:"r15",54:"r15",55:"r15",57:"r15"},{23:"r16",24:"r16",25:"r16",26:"r16",27:"r16",28:"r16",29:"r16",30:"r16",31:"r16",32:"r16",33:"r16",34:"r16",35:"r16",36:"r16",37:"r16",38:"r16",39:"r16",40:"r16",41:"r16",42:"r16",43:"r16",44:"r16",45:"r16",52:"r16",53:"r16",54:"r16",55:"r16",57:"r16"},{23:"r17",24:"r17",25:"r17",26:"r17",27:"r17",28:"r17",29:"r17",30:"r17",31:"r17",32:"r17",33:"r17",34:"r17",35:"r17",36:"r17",37:"r17",38:"r17",39:"r17",40:"r17",41:"r17",42:"r17",43:"r17",44:"r17",45:"r17",52:"r17",53:"r17",54:"r17",55:"r17",57:"r17"},{4:57,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:59,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:61,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:63,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r22",24:"r22",25:"r22",26:"r22",27:"r22",28:"r22",29:"r22",30:"r22",31:"r22",32:"r22",33:"r22",34:"r22",35:"r22",36:"r22",37:"r22",38:"r22",39:"r22",40:"r22",41:"r22",42:"r22",43:"r22",44:"r22",45:"r22",46:"r22",47:"r22",48:"r22",49:"r22",50:"r22",51:"r22",52:"r22",53:"r22",54:"r22",55:"r22",57:"r22"},{23:"r23",24:"r23",25:"r23",26:"r23",27:"r23",28:"r23",29:"r23",30:"r23",31:"r23",32:"r23",33:"r23",34:"r23",35:"r23",36:"r23",37:"r23",38:"r23",39:"r23",40:"r23",41:"r23",42:"r23",43:"r23",44:"r23",45:"r23",46:"r23",47:"r23",48:"r23",49:"r23",50:"r23",51:"r23",52:"r23",53:"r23",54:"r23",55:"r23",57:"r23"},{23:"r24",24:"r24",25:"r24",26:"r24",27:"r24",28:"r24",29:"r24",30:"r24",31:"r24",32:"r24",33:"r24",34:"r24",35:"r24",36:"r24",37:"r24",38:"r24",39:"r24",40:"r24",41:"r24",42:"r24",43:"r24",44:"r24",45:"r24",46:"r24",47:"r24",48:"r24",49:"r24",50:"r24",51:"r24",52:"r24",53:"r24",54:"r24",55:"r24",57:"r24"},{23:"r25",24:"r25",25:"r25",26:"r25",27:"r25",28:"r25",29:"r25",30:"r25",31:"r25",32:"r25",33:"r25",34:"r25",35:"r25",36:"r25",37:"r25",38:"r25",39:"r25",40:"r25",41:"r25",42:"r25",43:"r25",44:"r25",45:"r25",46:"r25",47:"r25",48:"r25",49:"r25",50:"r25",51:"r25",52:"r25",53:"r25",54:"r25",55:"r25",56:"r25",57:"r25",58:"r25"},{23:"r26",24:"r26",25:"r26",26:"r26",27:"r26",28:"r26",29:"r26",30:"r26",31:"r26",32:"r26",33:"r26",34:"r26",35:"r26",36:"r26",37:"r26",38:"r26",39:"r26",40:"r26",41:"r26",42:"r26",43:"r26",44:"r26",45:"r26",46:"r26",47:"r26",48:"r26",49:"r26",50:"r26",51:"r26",52:"r26",53:"r26",54:"r26",55:"r26",56:"r26",57:"r26",58:"r26"},{23:"r27",24:"r27",25:"r27",26:"r27",27:"r27",28:"r27",29:"r27",30:"r27",31:"r27",32:"r27",33:"r27",34:"r27",35:"r27",36:"r27",37:"r27",38:"r27",39:"r27",40:"r27",41:"r27",42:"r27",43:"r27",44:"r27",45:"r27",46:"r27",47:"r27",48:"r27",49:"r27",50:"r27",51:"r27",52:"r27",53:"r27",54:"r27",55:"r27",56:"r27",57:"r27",58:"r27"},{23:"r28",24:"r28",25:"r28",26:"r28",27:"r28",28:"r28",29:"r28",30:"r28",31:"r28",32:"r28",33:"r28",34:"r28",35:"r28",36:"r28",37:"r28",38:"r28",39:"r28",40:"r28",41:"r28",42:"r28",43:"r28",44:"r28",45:"r28",46:"r28",47:"r28",48:"r28",49:"r28",50:"r28",51:"r28",52:"r28",53:"r28",54:"r28",55:"r28",56:"r28",57:"r28",58:"r28"},{23:"r29",24:"r29",25:"r29",26:"r29",27:"r29",28:"r29",29:"r29",30:"r29",31:"r29",32:"r29",33:"r29",34:"r29",35:"r29",36:"r29",37:"r29",38:"r29",39:"r29",40:"r29",41:"r29",42:"r29",43:"r29",44:"r29",45:"r29",46:"r29",47:"r29",48:"r29",49:"r29",50:"r29",51:"r29",52:"r29",53:"r29",54:"r29",55:"r29",56:"r29",57:"r29",58:"r29"},{23:"r30",24:"r30",25:"r30",26:"r30",27:"r30",28:"r30",29:"r30",30:"r30",31:"r30",32:"r30",33:"r30",34:"r30",35:"r30",36:"r30",37:"r30",38:"r30",39:"r30",40:"r30",41:"r30",42:"r30",43:"r30",44:"r30",45:"r30",46:"r30",47:"r30",48:"r30",49:"r30",50:"r30",51:"r30",52:"r30",53:"r30",54:"r30",55:"r30",56:"r30",57:"r30",58:"r30"},{23:"r31",24:"r31",25:"r31",26:"r31",27:"r31",28:"r31",29:"r31",30:"r31",31:"r31",32:"r31",33:"r31",34:"r31",35:"r31",36:"r31",37:"r31",38:"r31",39:"r31",40:"r31",41:"r31",42:"r31",43:"r31",44:"r31",45:"r31",46:"r31",47:"r31",48:"r31",49:"r31",50:"r31",51:"r31",52:"r31",53:"r31",54:"r31",55:"r31",56:"r31",57:"r31",58:"r31"},{23:"r32",24:"r32",25:"r32",26:"r32",27:"r32",28:"r32",29:"r32",30:"r32",31:"r32",32:"r32",33:"r32",34:"r32",35:"r32",36:"r32",37:"r32",38:"r32",39:"r32",40:"r32",41:"r32",42:"r32",43:"r32",44:"r32",45:"r32",46:"r32",47:"r32",48:"r32",49:"r32",50:"r32",51:"r32",52:"r32",53:"r32",54:"r32",55:"r32",56:"r32",57:"r32",58:"r32"},{23:"r33",24:"r33",25:"r33",26:"r33",27:"r33",28:"r33",29:"r33",30:"r33",31:"r33",32:"r33",33:"r33",34:"r33",35:"r33",36:"r33",37:"r33",38:"r33",39:"r33",40:"r33",41:"r33",42:"r33",43:"r33",44:"r33",45:"r33",46:"r33",47:"r33",48:"r33",49:"r33",50:"r33",51:"r33",52:"r33",53:"r33",54:"r33",55:"r33",56:"r33",57:"r33",58:"r33"},{23:"r34",24:"r34",25:"r34",26:"r34",27:"r34",28:"r34",29:"r34",30:"r34",31:"r34",32:"r34",33:"r34",34:"r34",35:"r34",36:"r34",37:"r34",38:"r34",39:"r34",40:"r34",41:"r34",42:"r34",43:"r34",44:"r34",45:"r34",46:"r34",47:"r34",48:"r34",49:"r34",50:"r34",51:"r34",52:"r34",53:"r34",54:"r34",55:"r34",56:"r34",57:"r34",58:"r34"},{23:"r35",24:"r35",25:"r35",26:"r35",27:"r35",28:"r35",29:"r35",30:"r35",31:"r35",32:"r35",33:"r35",34:"r35",35:"r35",36:"r35",37:"r35",38:"r35",39:"r35",40:"r35",41:"r35",42:"r35",43:"r35",44:"r35",45:"r35",46:"r35",47:"r35",48:"r35",49:"r35",50:"r35",51:"r35",52:"r35",53:"r35",54:"r35",55:"r35",56:"r35",57:"r35",58:"r35"},{23:"r36",24:"r36",25:"r36",26:"r36",27:"r36",28:"r36",29:"r36",30:"r36",31:"r36",32:"r36",33:"r36",34:"r36",35:"r36",36:"r36",37:"r36",38:"r36",39:"r36",40:"r36",41:"r36",42:"r36",43:"r36",44:"r36",45:"r36",46:"r36",47:"r36",48:"r36",49:"r36",50:"r36",51:"r36",52:"r36",53:"r36",54:"r36",55:"r36",56:"r36",57:"r36",58:"r36"},{10:70,18:65,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{10:70,18:83,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{23:"r47",24:"r47",25:"r47",26:"r47",27:"r47",28:"r47",29:"r47",30:"r47",31:"r47",32:"r47",33:"r47",34:"r47",35:"r47",36:"r47",37:"r47",38:"r47",39:"r47",40:"r47",41:"r47",42:"r47",43:"r47",44:"r47",45:"r47",46:"r47",47:"r47",48:"r47",49:"r47",50:"r47",51:"r47",52:"r47",53:"r47",54:"r47",55:"r47",57:"r47"},{23:"r48",24:"r48",25:"r48",26:"r48",27:"r48",28:"r48",29:"r48",30:"r48",31:"r48",32:"r48",33:"r48",34:"r48",35:"r48",36:"r48",37:"r48",38:"r48",39:"r48",40:"r48",41:"r48",42:"r48",43:"r48",44:"r48",45:"r48",46:"r48",47:"r48",48:"r48",49:"r48",50:"r48",51:"r48",52:"r48",53:"r48",54:"r48",55:"r48",57:"r48"},{4:85,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:87,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:89,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r13",24:"r13",25:"r13",26:"r13",27:"r13",28:"r13",29:"r13",30:"r13",31:"r13",32:"r13",33:"r13",34:"r13",35:"r13",36:"r13",37:"r13",38:"r13",39:"r13",40:"r13",41:"r13",42:"r13",43:"r13",44:"r13",45:"r13",52:"r13",53:"r13",54:"r13",55:"r13",57:"r13"},{23:"r37",24:"r37",25:"r37",26:"r37",27:"r37",28:"r37",29:"r37",30:"r37",31:"r37",32:"r37",33:"r37",34:"r37",35:"r37",36:"r37",37:"r37",38:"r37",39:"r37",40:"r37",41:"r37",42:"r37",43:"r37",44:"r37",45:"r37",52:"r37",53:"r37",54:"r37",55:"r37",57:"r37"},{23:"r39",24:"r39",25:"r39",26:"r39",27:"r39",28:"r39",29:"r39",30:"r39",31:"r39",32:"r39",33:"r39",34:"r39",35:"r39",36:"r39",37:"r39",38:"r39",39:"r39",40:"r39",41:"r39",42:"r39",43:"r39",44:"r39",45:"r39",46:"s56",52:"r39",53:"r39",54:"r39",55:"r39",57:"r39"},{23:"r41",24:"r41",25:"r41",26:"r41",27:"r41",28:"r41",29:"r41",30:"r41",31:"r41",32:"r41",33:"r41",34:"r41",35:"r41",36:"r41",37:"r41",38:"r41",39:"r41",40:"r41",41:"r41",42:"r41",43:"r41",44:"r41",45:"r41",46:"r41",52:"r41",53:"r41",54:"r41",55:"r41",57:"r41"},{23:"r42",24:"r42",25:"r42",26:"r42",27:"r42",28:"r42",29:"r42",30:"r42",31:"r42",32:"r42",33:"r42",34:"r42",35:"r42",36:"r42",37:"r42",38:"r42",39:"r42",40:"r42",41:"r42",42:"r42",43:"r42",44:"r42",45:"r42",46:"r42",52:"r42",53:"r42",54:"r42",55:"r42",57:"r42"},{23:"r43",24:"r43",25:"r43",26:"r43",27:"r43",28:"r43",29:"r43",30:"r43",31:"r43",32:"r43",33:"r43",34:"r43",35:"r43",36:"r43",37:"r43",38:"r43",39:"r43",40:"r43",41:"r43",42:"r43",43:"r43",44:"r43",45:"r43",46:"r43",52:"r43",53:"r43",54:"r43",55:"r43",57:"r43"},{23:"r44",24:"r44",25:"r44",26:"r44",27:"r44",28:"r44",29:"r44",30:"r44",31:"r44",32:"r44",33:"r44",34:"r44",35:"r44",36:"r44",37:"r44",38:"r44",39:"r44",40:"r44",41:"r44",42:"r44",43:"r44",44:"r44",45:"r44",46:"r44",52:"r44",53:"r44",54:"r44",55:"r44",57:"r44"},{23:"r45",24:"r45",25:"r45",26:"r45",27:"r45",28:"r45",29:"r45",30:"r45",31:"r45",32:"r45",33:"r45",34:"r45",35:"r45",36:"r45",37:"r45",38:"r45",39:"r45",40:"r45",41:"r45",42:"r45",43:"r45",44:"r45",45:"r45",46:"r45",52:"r45",53:"r45",54:"r45",55:"r45",57:"r45"},{23:"r46",24:"r46",25:"r46",26:"r46",27:"r46",28:"r46",29:"r46",30:"r46",31:"r46",32:"r46",33:"r46",34:"r46",35:"r46",36:"r46",37:"r46",38:"r46",39:"r46",40:"r46",41:"r46",42:"r46",43:"r46",44:"r46",45:"r46",46:"r46",52:"r46",53:"r46",54:"r46",55:"r46",57:"r46"},{23:"r40",24:"r40",25:"r40",26:"r40",27:"r40",28:"r40",29:"r40",30:"r40",31:"r40",32:"r40",33:"r40",34:"r40",35:"r40",36:"r40",37:"r40",38:"r40",39:"r40",40:"r40",41:"r40",42:"r40",43:"r40",44:"r40",45:"r40",52:"r40",53:"r40",54:"r40",55:"r40",57:"r40"},{25:"s12",31:"s58"},{23:"r18",24:"r18",25:"r18",26:"r18",27:"r18",28:"r18",29:"r18",30:"r18",31:"r18",32:"r18",33:"r18",34:"r18",35:"r18",36:"r18",37:"r18",38:"r18",39:"r18",40:"r18",41:"r18",42:"r18",43:"r18",44:"r18",45:"r18",52:"r18",53:"r18",54:"r18",55:"r18",57:"r18"},{25:"s12",31:"s60"},{23:"r19",24:"r19",25:"r19",26:"r19",27:"r19",28:"r19",29:"r19",30:"r19",31:"r19",32:"r19",33:"r19",34:"r19",35:"r19",36:"r19",37:"r19",38:"r19",39:"r19",40:"r19",41:"r19",42:"r19",43:"r19",44:"r19",45:"r19",52:"r19",53:"r19",54:"r19",55:"r19",57:"r19"},{25:"s12",31:"s62"},{23:"r20",24:"r20",25:"r20",26:"r20",27:"r20",28:"r20",29:"r20",30:"r20",31:"r20",32:"r20",33:"r20",34:"r20",35:"r20",36:"r20",37:"r20",38:"r20",39:"r20",40:"r20",41:"r20",42:"r20",43:"r20",44:"r20",45:"r20",52:"r20",53:"r20",54:"r20",55:"r20",57:"r20"},{25:"s12",31:"s64"},{23:"r21",24:"r21",25:"r21",26:"r21",27:"r21",28:"r21",29:"r21",30:"r21",31:"r21",32:"r21",33:"r21",34:"r21",35:"r21",36:"r21",37:"r21",38:"r21",39:"r21",40:"r21",41:"r21",42:"r21",43:"r21",44:"r21",45:"r21",52:"r21",53:"r21",54:"r21",55:"r21",57:"r21"},{56:"s72"},{56:"r55"},{10:70,20:73,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r56",58:"s74"},{24:"r62",28:"r62",35:"r62",36:"r62",37:"r62",38:"r62",39:"r62",40:"r62",41:"r62",42:"r62",43:"r62",44:"r62",45:"r62",56:"r62",58:"r62"},{24:"r63",28:"r63",35:"r63",36:"r63",37:"r63",38:"r63",39:"r63",40:"r63",41:"r63",42:"r63",43:"r63",44:"r63",45:"r63",56:"r63",58:"r63"},{24:"r64",28:"r64",35:"r64",36:"r64",37:"r64",38:"r64",39:"r64",40:"r64",41:"r64",42:"r64",43:"r64",44:"r64",45:"r64",56:"r64",58:"r64"},{24:"r65",28:"r65",35:"r65",36:"r65",37:"r65",38:"r65",39:"r65",40:"r65",41:"r65",42:"r65",43:"r65",44:"r65",45:"r65",56:"r65",58:"r65"},{23:"r52",24:"r52",25:"r52",26:"r52",27:"r52",28:"r52",29:"r52",30:"r52",31:"r52",32:"r52",33:"r52",34:"r52",35:"r52",36:"r52",37:"r52",38:"r52",39:"r52",40:"r52",41:"r52",42:"r52",43:"r52",44:"r52",45:"r52",46:"r52",47:"r52",48:"r52",49:"r52",50:"r52",51:"r52",52:"r52",53:"r52",54:"r52",55:"r52",57:"r52"},{56:"r57"},{10:70,21:77,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{56:"r59"},{10:70,20:79,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r63",58:"s80"},{10:70,18:78,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r58"},{56:"r60"},{10:70,21:81,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{10:70,18:82,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r61"},{56:"s84"},{23:"r53",24:"r53",25:"r53",26:"r53",27:"r53",28:"r53",29:"r53",30:"r53",31:"r53",32:"r53",33:"r53",34:"r53",35:"r53",36:"r53",37:"r53",38:"r53",39:"r53",40:"r53",41:"r53",42:"r53",43:"r53",44:"r53",45:"r53",46:"r53",47:"r53",48:"r53",49:"r53",50:"r53",51:"r53",52:"r53",53:"r53",54:"r53",55:"r53",57:"r53"},{25:"s12",31:"s86"},{23:"r49",24:"r49",25:"r49",26:"r49",27:"r49",28:"r49",29:"r49",30:"r49",31:"r49",32:"r49",33:"r49",34:"r49",35:"r49",36:"r49",37:"r49",38:"r49",39:"r49",40:"r49",41:"r49",42:"r49",43:"r49",44:"r49",45:"r49",46:"r49",47:"r49",48:"r49",49:"r49",50:"r49",51:"r49",52:"r49",53:"r49",54:"r49",55:"r49",57:"r49"},{25:"s12",31:"s88"},{23:"r50",24:"r50",25:"r50",26:"r50",27:"r50",28:"r50",29:"r50",30:"r50",31:"r50",32:"r50",33:"r50",34:"r50",35:"r50",36:"r50",37:"r50",38:"r50",39:"r50",40:"r50",41:"r50",42:"r50",43:"r50",44:"r50",45:"r50",46:"r50",47:"r50",48:"r50",49:"r50",50:"r50",51:"r50",52:"r50",53:"r50",54:"r50",55:"r50",57:"r50"},{25:"s12",31:"s90"},{23:"r51",24:"r51",25:"r51",26:"r51",27:"r51",28:"r51",29:"r51",30:"r51",31:"r51",32:"r51",33:"r51",34:"r51",35:"r51",36:"r51",37:"r51",38:"r51",39:"r51",40:"r51",41:"r51",42:"r51",43:"r51",44:"r51",45:"r51",46:"r51",47:"r51",48:"r51",49:"r51",50:"r51",51:"r51",52:"r51",53:"r51",54:"r51",55:"r51",57:"r51"}],s4=[],s5=void 0,s8=[[/^#[^\n]+/,function(){}],[/^\s+/,function(){}],[/^-/,function(){return"DASH"}],[/^\//,function(){return"CHAR"}],[/^#/,function(){return"CHAR"}],[/^\|/,function(){return"CHAR"}],[/^\./,function(){return"CHAR"}],[/^\{/,function(){return"CHAR"}],[/^\{\d+\}/,function(){return"RANGE_EXACT"}],[/^\{\d+,\}/,function(){return"RANGE_OPEN"}],[/^\{\d+,\d+\}/,function(){return"RANGE_CLOSED"}],[/^\\k<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u09fc\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0af9\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60-\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0-\u0ce1\u0cf1-\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e46\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\u08e1\u08e3-\u0963\u0966-\u096f\u0971-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7-\u09c8\u09cb-\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e3\u09e6-\u09f1\u09fc\u09fe\u0a01-\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0af9-\u0aff\u0b01-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b5c-\u0b5d\u0b5f-\u0b63\u0b66-\u0b6f\u0b71\u0b82-\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bef\u0c00-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1-\u0cf2\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d44\u0d46-\u0d48\u0d4a-\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d66-\u0d6f\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0e01-\u0e3a\u0e40-\u0e4e\u0e50-\u0e59\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f18-\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1049\u1050-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u135f\u1369-\u1371\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772-\u1773\u1780-\u17d3\u17d7\u17dc-\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1878\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u1a00-\u1a1b\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa7\u1ab0-\u1abd\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\u1dfb-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u203f-\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\ua9e0-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa60-\uaa76\uaa7a-\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabea\uabec-\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe0f\ufe20-\ufe2f\ufe33-\ufe34\ufe4d-\ufe4f\ufe70-\ufe74\ufe76-\ufefc\uff10-\uff19\uff21-\uff3a\uff3f\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\uddfd\ude80-\ude9c\udea0-\uded0\udee0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udca0-\udca9\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00-\ude03\ude05-\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude38-\ude3a\ude3f\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee6\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\uddcc\uddd0-\uddda\udddc\ude00-\ude11\ude13-\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udeea\udef0-\udef9\udf00-\udf03\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\ude60-\ude69\uded0-\udeed\udef0-\udef4\udf00-\udf36\udf40-\udf43\udf50-\udf59\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9d-\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb\udfce-\udfff]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23-\udc24\udc26-\udc2a\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\udd50-\udd59]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return dc(sY.slice(3,-1),this.getCurrentState()),"NAMED_GROUP_REF"}],[/^\\b/,function(){return"ESC_b"}],[/^\\B/,function(){return"ESC_B"}],[/^\\c[a-zA-Z]/,function(){return"CTRL_CH"}],[/^\\0\d{1,2}/,function(){return"OCT_CODE"}],[/^\\0/,function(){return"DEC_CODE"}],[/^\\\d{1,3}/,function(){return"DEC_CODE"}],[/^\\u[dD][89abAB][0-9a-fA-F]{2}\\u[dD][c-fC-F][0-9a-fA-F]{2}/,function(){return"U_CODE_SURROGATE"}],[/^\\u\{[0-9a-fA-F]{1,}\}/,function(){return"U_CODE"}],[/^\\u[0-9a-fA-F]{4}/,function(){return"U_CODE"}],[/^\\[pP]\{\w+(?:=\w+)?\}/,function(){return"U_PROP_VALUE_EXP"}],[/^\\x[0-9a-fA-F]{2}/,function(){return"HEX_CODE"}],[/^\\[tnrdDsSwWvf]/,function(){return"META_CHAR"}],[/^\\\//,function(){return"ESC_CHAR"}],[/^\\[ #]/,function(){return"ESC_CHAR"}],[/^\\[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/,function(){return"ESC_CHAR"}],[/^\\[^*?+\[()\\|]/,function(){var e=this.getCurrentState();if("u_class"===e&&"\\-"===sY);else if("u"===e||"xu"===e||"u_class"===e)throw SyntaxError("invalid Unicode escape "+sY);return"ESC_CHAR"}],[/^\(/,function(){return"CHAR"}],[/^\)/,function(){return"CHAR"}],[/^\(\?=/,function(){return"POS_LA_ASSERT"}],[/^\(\?!/,function(){return"NEG_LA_ASSERT"}],[/^\(\?<=/,function(){return"POS_LB_ASSERT"}],[/^\(\?<!/,function(){return"NEG_LB_ASSERT"}],[/^\(\?:/,function(){return"NON_CAPTURE_GROUP"}],[/^\(\?<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u09fc\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0af9\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60-\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0-\u0ce1\u0cf1-\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e46\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\u08e1\u08e3-\u0963\u0966-\u096f\u0971-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7-\u09c8\u09cb-\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e3\u09e6-\u09f1\u09fc\u09fe\u0a01-\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0af9-\u0aff\u0b01-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b5c-\u0b5d\u0b5f-\u0b63\u0b66-\u0b6f\u0b71\u0b82-\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bef\u0c00-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1-\u0cf2\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d44\u0d46-\u0d48\u0d4a-\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d66-\u0d6f\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0e01-\u0e3a\u0e40-\u0e4e\u0e50-\u0e59\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f18-\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1049\u1050-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u135f\u1369-\u1371\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772-\u1773\u1780-\u17d3\u17d7\u17dc-\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1878\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u1a00-\u1a1b\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa7\u1ab0-\u1abd\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\u1dfb-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u203f-\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\ua9e0-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa60-\uaa76\uaa7a-\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabea\uabec-\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe0f\ufe20-\ufe2f\ufe33-\ufe34\ufe4d-\ufe4f\ufe70-\ufe74\ufe76-\ufefc\uff10-\uff19\uff21-\uff3a\uff3f\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\uddfd\ude80-\ude9c\udea0-\uded0\udee0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udca0-\udca9\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00-\ude03\ude05-\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude38-\ude3a\ude3f\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee6\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\uddcc\uddd0-\uddda\udddc\ude00-\ude11\ude13-\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udeea\udef0-\udef9\udf00-\udf03\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\ude60-\ude69\uded0-\udeed\udef0-\udef4\udf00-\udf36\udf40-\udf43\udf50-\udf59\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9d-\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb\udfce-\udfff]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23-\udc24\udc26-\udc2a\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\udd50-\udd59]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return dc(sY=sY.slice(3,-1),this.getCurrentState()),"NAMED_CAPTURE_GROUP"}],[/^\(/,function(){return"L_PAREN"}],[/^\)/,function(){return"R_PAREN"}],[/^[*?+[^$]/,function(){return"CHAR"}],[/^\\\]/,function(){return"ESC_CHAR"}],[/^\]/,function(){return this.popState(),"R_BRACKET"}],[/^\^/,function(){return"BOS"}],[/^\$/,function(){return"EOS"}],[/^\*/,function(){return"STAR"}],[/^\?/,function(){return"Q_MARK"}],[/^\+/,function(){return"PLUS"}],[/^\|/,function(){return"BAR"}],[/^\./,function(){return"ANY"}],[/^\//,function(){return"SLASH"}],[/^[^*?+\[()\\|]/,function(){return"CHAR"}],[/^\[\^/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"NEG_CLASS"}],[/^\[/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"L_BRACKET"}]],s6={INITIAL:[8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u:[8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],xu:[0,1,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],x:[0,1,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u_class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]},s9={type:"$",value:""};s5={initString:function(e){return this._string=e,this._cursor=0,this._states=["INITIAL"],this._tokensQueue=[],this._currentLine=1,this._currentColumn=0,this._currentLineBeginOffset=0,this._tokenStartOffset=0,this._tokenEndOffset=0,this._tokenStartLine=1,this._tokenEndLine=1,this._tokenStartColumn=0,this._tokenEndColumn=0,this},getStates:function(){return this._states},getCurrentState:function(){return this._states[this._states.length-1]},pushState:function(e){this._states.push(e)},begin:function(e){this.pushState(e)},popState:function(){return this._states.length>1?this._states.pop():this._states[0]},getNextToken:function(){if(this._tokensQueue.length>0)return this.onToken(this._toToken(this._tokensQueue.shift()));if(!this.hasMoreTokens())return this.onToken(s9);for(var e=this._string.slice(this._cursor),t=s6[this.getCurrentState()],r=0;r<t.length;r++){var n=s8[t[r]],u=this._match(e,n[0]);if(""===e&&""===u&&this._cursor++,null!==u){(sY=u).length;var a=n[1].call(this);if(!a)return this.getNextToken();if(Array.isArray(a)){var i,o=a.slice(1);a=a[0],o.length>0&&(i=this._tokensQueue).unshift.apply(i,sK(o))}return this.onToken(this._toToken(a,sY))}}if(this.isEOF())return this._cursor++,s9;this.throwUnexpectedToken(e[0],this._currentLine,this._currentColumn)},throwUnexpectedToken:function(e,t,r){var n=this._string.split("\n")[t-1],u="";throw n&&(u="\n\n"+n+"\n"+" ".repeat(r)+"^\n"),SyntaxError(u+'Unexpected token: "'+e+'" '+("at "+t)+":"+r+".")},getCursor:function(){return this._cursor},getCurrentLine:function(){return this._currentLine},getCurrentColumn:function(){return this._currentColumn},_captureLocation:function(e){var t=/\n/g;this._tokenStartOffset=this._cursor,this._tokenStartLine=this._currentLine,this._tokenStartColumn=this._tokenStartOffset-this._currentLineBeginOffset;for(var r=void 0;null!==(r=t.exec(e));)this._currentLine++,this._currentLineBeginOffset=this._tokenStartOffset+r.index+1;this._tokenEndOffset=this._cursor+e.length,this._tokenEndLine=this._currentLine,this._tokenEndColumn=this._currentColumn=this._tokenEndOffset-this._currentLineBeginOffset},_toToken:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return{type:e,value:t,startOffset:this._tokenStartOffset,endOffset:this._tokenEndOffset,startLine:this._tokenStartLine,endLine:this._tokenEndLine,startColumn:this._tokenStartColumn,endColumn:this._tokenEndColumn}},isEOF:function(){return this._cursor===this._string.length},hasMoreTokens:function(){return this._cursor<=this._string.length},_match:function(e,t){var r=e.match(t);return r?(this._captureLocation(r[0]),this._cursor+=r[0].length,r[0]):null},onToken:function(e){return e}},sJ.lexer=s5,sJ.tokenizer=s5,sJ.options={captureLocations:!0};var s7={setOptions:function(e){return sJ.options=e,this},getOptions:function(){return sJ.options},parse:function(e,t){if(!s5)throw Error("Tokenizer instance wasn't specified.");s5.initString(e);var r=sJ.options;t&&(sJ.options=Object.assign({},sJ.options,t)),s7.onParseBegin(e,s5,sJ.options),s4.length=0,s4.push(0);var n=s5.getNextToken(),u=null;do{n||(sJ.options=r,dy());var a=s4[s4.length-1],i=s2[n.type];s3[a].hasOwnProperty(i)||(sJ.options=r,dg(n));var o=s3[a][i];if("s"===o[0]){var s=null;sJ.options.captureLocations&&(s={startOffset:n.startOffset,endOffset:n.endOffset,startLine:n.startLine,endLine:n.endLine,startColumn:n.startColumn,endColumn:n.endColumn}),u=this.onShift(n),s4.push({symbol:s2[u.type],semanticValue:u.value,loc:s},Number(o.slice(1))),n=s5.getNextToken()}else if("r"===o[0]){var d=s1[o.slice(1)],l="function"==typeof d[2],c=l?[]:null,f=l&&sJ.options.captureLocations?[]:null;if(0!==d[1])for(var p=d[1];p-- >0;){s4.pop();var h=s4.pop();l&&(c.unshift(h.semanticValue),f&&f.unshift(h.loc))}var m={symbol:d[0]};if(l){sY=u?u.value:null,u&&u.value.length;var g=null!==f?c.concat(f):c;d[2].apply(d,sK(g)),m.semanticValue=sX,f&&(m.loc=sQ)}var y=s4[s4.length-1],b=d[0];s4.push(m,s3[y][b])}else if("acc"===o){s4.pop();var v=s4.pop();if((1!==s4.length||0!==s4[0]||s5.hasMoreTokens())&&(sJ.options=r,dg(n)),v.hasOwnProperty("semanticValue"))return sJ.options=r,s7.onParseEnd(v.semanticValue),v.semanticValue;return s7.onParseEnd(),sJ.options=r,!0}}while(s5.hasMoreTokens()||s4.length>1)},setTokenizer:function(e){return s5=e,s7},getTokenizer:function(){return s5},onParseBegin:function(e,t,r){},onParseEnd:function(e){},onShift:function(e){return e}},de=0,dt={},dr="";function dn(e){var t=e.match(/\d+/g).map(Number);if(Number.isFinite(t[1])&&t[1]<t[0])throw SyntaxError("Numbers out of order in "+e+" quantifier");return t}function du(e,t){if("control"===e.kind||"control"===t.kind||!isNaN(e.codePoint)&&!isNaN(t.codePoint)&&e.codePoint>t.codePoint)throw SyntaxError("Range "+e.value+"-"+t.value+" out of order in character class")}s7.onParseBegin=function(e,t){dr=e,de=0,dt={};var r=e.lastIndexOf("/"),n=e.slice(r);n.includes("x")&&n.includes("u")?t.pushState("xu"):(n.includes("x")&&t.pushState("x"),n.includes("u")&&t.pushState("u"))},s7.onShift=function(e){return("L_PAREN"===e.type||"NAMED_CAPTURE_GROUP"===e.type)&&(e.value=new String(e.value),e.value.groupNumber=++de),e};var da={isValidName:function(e){return sR.hasOwnProperty(e)||sM.hasOwnProperty(e)||s$.hasOwnProperty(e)||sU.hasOwnProperty(e)},isValidValue:function(e,t){return"General_Category"===e||"gc"==e?sZ(t):!!("Script"===e||"Script_Extensions"===e||"sc"===e||"scx"===e)&&(sq.hasOwnProperty(t)||sW.hasOwnProperty(t))},isGeneralCategoryValue:sZ,isBinaryPropertyName:function(e){return s$.hasOwnProperty(e)||sU.hasOwnProperty(e)},getCanonicalName:function(e){return sM.hasOwnProperty(e)?sM[e]:sU.hasOwnProperty(e)?sU[e]:null},getCanonicalValue:function(e){return sV.hasOwnProperty(e)?sV[e]:sW.hasOwnProperty(e)?sW[e]:sU.hasOwnProperty(e)?sU[e]:null}};function di(e,t,r){var n=void 0,u=void 0;switch(t){case"decimal":n=String.fromCodePoint(u=Number(e.slice(1)));break;case"oct":n=String.fromCodePoint(u=parseInt(e.slice(1),8));break;case"hex":case"unicode":if(e.lastIndexOf("\\u")>0){var a=sH(e.split("\\u").slice(1),2),i=a[0],o=a[1];n=String.fromCodePoint(u=((i=parseInt(i,16))-55296)*1024+((o=parseInt(o,16))-56320)+65536)}else{if((u=parseInt(e.slice(2).replace("{",""),16))>1114111)throw SyntaxError("Bad character escape sequence: "+e);n=String.fromCodePoint(u)}break;case"meta":switch(e){case"\\t":u=(n=" ").codePointAt(0);break;case"\\n":u=(n="\n").codePointAt(0);break;case"\\r":u=(n="\r").codePointAt(0);break;case"\\v":u=(n="\v").codePointAt(0);break;case"\\f":u=(n="\f").codePointAt(0);break;case"\\b":u=(n="\b").codePointAt(0);case"\\0":n="\0",u=0;case".":n=".",u=NaN;break;default:u=NaN}break;case"simple":u=(n=e).codePointAt(0)}return dh({type:"Char",value:e,kind:t,symbol:n,codePoint:u},r)}var ds=/^\\u[0-9a-fA-F]{4}/,dd=/^\\u\{[0-9a-fA-F]{1,}\}/,dl=/\\u\{[0-9a-fA-F]{1,}\}/;function dc(e,t){if(dl.test(e)&&!("u"===t||"xu"===t||"u_class"===t))throw SyntaxError('invalid group Unicode name "'+e+'", use `u` flag.');return e}var df=/\\u(?:([dD][89aAbB][0-9a-fA-F]{2})\\u([dD][c-fC-F][0-9a-fA-F]{2})|([dD][89aAbB][0-9a-fA-F]{2})|([dD][c-fC-F][0-9a-fA-F]{2})|([0-9a-ce-fA-CE-F][0-9a-fA-F]{3}|[dD][0-7][0-9a-fA-F]{2})|\{(0*(?:[0-9a-fA-F]{1,5}|10[0-9a-fA-F]{4}))\})/;function dp(e){return e.replace(RegExp(df,"g"),function(e,t,r,n,u,a,i){return t?String.fromCodePoint(parseInt(t,16),parseInt(r,16)):n?String.fromCodePoint(parseInt(n,16)):u?String.fromCodePoint(parseInt(u,16)):a?String.fromCodePoint(parseInt(a,16)):i?String.fromCodePoint(parseInt(i,16)):e})}function dh(e,t){return sJ.options.captureLocations&&(e.loc={source:dr.slice(t.startOffset,t.endOffset),start:{line:t.startLine,column:t.startColumn,offset:t.startOffset},end:{line:t.endLine,column:t.endColumn,offset:t.endOffset}}),e}function dm(e,t){return sJ.options.captureLocations?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:null}function dg(e){"$"===e.type&&dy(),s5.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function dy(){!function(e){throw SyntaxError(e)}("Unexpected end of input.")}var db=s7.parse.bind(s7);s7.parse=function(e,t){return db(""+e,t)},s7.setOptions({captureLocations:!1});var dv=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),dx="expressions",dE="expression",dC=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.node=t,this.parentPath=r,this.parent=r?r.node:null,this.property=n,this.index=u}return dv(e,[{key:"_enforceProp",value:function(e){if(!this.node.hasOwnProperty(e))throw Error("Node of type "+this.node.type+" doesn't have \""+e+'" collection.')}},{key:"setChild",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=void 0;return null!=r?(n||(n=dx),this._enforceProp(n),this.node[n][r]=t,u=e.getForNode(t,this,n,r)):(n||(n=dE),this._enforceProp(n),this.node[n]=t,u=e.getForNode(t,this,n,null)),u}},{key:"appendChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t||(t=dx),this._enforceProp(t);var r=this.node[t].length;return this.setChild(e,r,t)}},{key:"insertChildAt",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:dx;this._enforceProp(n),this.node[n].splice(r,0,t),r<=e.getTraversingIndex()&&e.updateTraversingIndex(1),this._rebuildIndex(this.node,n)}},{key:"remove",value:function(){if(!this.isRemoved()&&(e.registry.delete(this.node),this.node=null,this.parent)){if(null!==this.index){this.parent[this.property].splice(this.index,1),this.index<=e.getTraversingIndex()&&e.updateTraversingIndex(-1),this._rebuildIndex(this.parent,this.property),this.index=null,this.property=null;return}delete this.parent[this.property],this.property=null}}},{key:"_rebuildIndex",value:function(t,r){for(var n=e.getForNode(t),u=0;u<t[r].length;u++)e.getForNode(t[r][u],n,r,u).index=u}},{key:"isRemoved",value:function(){return null===this.node}},{key:"replace",value:function(t){return(e.registry.delete(this.node),this.node=t,this.parent)?(null!==this.index?this.parent[this.property][this.index]=t:this.parent[this.property]=t,e.getForNode(t,this.parentPath,this.property,this.index)):null}},{key:"update",value:function(e){Object.assign(this.node,e)}},{key:"getParent",value:function(){return this.parentPath}},{key:"getChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.node.expressions?e.getForNode(this.node.expressions[t],this,dx,t):this.node.expression&&0==t?e.getForNode(this.node.expression,this,dE):null}},{key:"hasEqualSource",value:function(e){return JSON.stringify(this.node,dA)===JSON.stringify(e.node,dA)}},{key:"jsonEncode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.format,r=e.useLoc;return JSON.stringify(this.node,r?null:dA,t)}},{key:"getPreviousSibling",value:function(){return this.parent&&null!=this.index?e.getForNode(this.parent[this.property][this.index-1],e.getForNode(this.parent),this.property,this.index-1):null}},{key:"getNextSibling",value:function(){return this.parent&&null!=this.index?e.getForNode(this.parent[this.property][this.index+1],e.getForNode(this.parent),this.property,this.index+1):null}}],[{key:"getForNode",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(!t)return null;e.registry.has(t)||e.registry.set(t,new e(t,r,n,-1==u?null:u));var a=e.registry.get(t);return null!==r&&(a.parentPath=r,a.parent=a.parentPath.node),null!==n&&(a.property=n),u>=0&&(a.index=u),a}},{key:"initRegistry",value:function(){e.registry||(e.registry=new Map),e.registry.clear()}},{key:"updateTraversingIndex",value:function(t){return e.traversingIndexStack[e.traversingIndexStack.length-1]+=t}},{key:"getTraversingIndex",value:function(){return e.traversingIndexStack[e.traversingIndexStack.length-1]}}]),e}();function dA(e,t){if("loc"!==e)return t}dC.initRegistry(),dC.traversingIndexStack=[];var dD=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{asNodes:!1};function n(e,t,r,n){var u=dC.getForNode(t);return dC.getForNode(e,u,r,n)}Array.isArray(t)||(t=[t]),t=t.filter(function(t){return"function"!=typeof t.shouldRun||t.shouldRun(e)}),dC.initRegistry(),t.forEach(function(t){"function"==typeof t.init&&t.init(e)}),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.pre,n=t.post,u=t.skipProperty;!function e(t,a,i,o){if(t&&"string"==typeof t.type){var s=void 0;if(r&&(s=r(t,a,i,o)),!1!==s){for(var d in a&&a[i]&&(t=isNaN(o)?a[i]:a[i][o]),t)if(t.hasOwnProperty(d)){if(u?u(d,t):"$"===d[0])continue;var l=t[d];if(Array.isArray(l)){var c=0;for(dC.traversingIndexStack.push(c);c<l.length;)e(l[c],t,d,c),c=dC.updateTraversingIndex(1);dC.traversingIndexStack.pop()}else e(l,t,d)}}n&&n(t,a,i,o)}}(e,null)}(e,{pre:function(e,u,a,i){var o=void 0;r.asNodes||(o=n(e,u,a,i));var s=!0,d=!1,l=void 0;try{for(var c,f=t[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var p=c.value;if("function"==typeof p["*"]){if(o){if(!o.isRemoved()){var h=p["*"](o);if(!1===h)return!1}}else p["*"](e,u,a,i)}var m=void 0;if("function"==typeof p[e.type]?m=p[e.type]:"object"==typeof p[e.type]&&"function"==typeof p[e.type].pre&&(m=p[e.type].pre),m){if(o){if(!o.isRemoved()){var g=m.call(p,o);if(!1===g)return!1}}else m.call(p,e,u,a,i)}}}catch(e){d=!0,l=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw l}}},post:function(e,u,a,i){if(e){var o=void 0;r.asNodes||(o=n(e,u,a,i));var s=!0,d=!1,l=void 0;try{for(var c,f=t[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var p=c.value,h=void 0;if("object"==typeof p[e.type]&&"function"==typeof p[e.type].post&&(h=p[e.type].post),h){if(o){if(!o.isRemoved()){var m=h.call(p,o);if(!1===m)return!1}}else h.call(p,e,u,a,i)}}}catch(e){d=!0,l=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw l}}}},skipProperty:function(e){return"loc"===e}})},dS=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),d_=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._ast=t,this._source=null,this._string=null,this._regexp=null,this._extra=r}return dS(e,[{key:"getAST",value:function(){return this._ast}},{key:"setExtra",value:function(e){this._extra=e}},{key:"getExtra",value:function(){return this._extra}},{key:"toRegExp",value:function(){return this._regexp||(this._regexp=new RegExp(this.getSource(),this._ast.flags)),this._regexp}},{key:"getSource",value:function(){return this._source||(this._source=sN.generate(this._ast.body)),this._source}},{key:"getFlags",value:function(){return this._ast.flags}},{key:"toString",value:function(){return this._string||(this._string=sN.generate(this._ast)),this._string}}]),e}(),dw=function(e,t){var r=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(r=s7.parse(e,{captureLocations:!0})),dD(r,t),new d_(r)},dT={dotAll:{_hasUFlag:!1,shouldRun:function(e){return!!e.flags.includes("s")&&(e.flags=e.flags.replace("s",""),this._hasUFlag=e.flags.includes("u"),!0)},Char:function(e){var t=e.node;if("meta"===t.kind&&"."===t.value){var r="\\uFFFF",n="";this._hasUFlag&&(r="\\u{10FFFF}",n="\uDBFF\uDFFF"),e.replace({type:"CharacterClass",expressions:[{type:"ClassRange",from:{type:"Char",value:"\\0",kind:"decimal",symbol:"\0"},to:{type:"Char",value:r,kind:"unicode",symbol:n}}]})}}},namedCapturingGroups:{_groupNames:{},init:function(){this._groupNames={}},getExtra:function(){return this._groupNames},Group:function(e){var t=e.node;t.name&&(this._groupNames[t.name]=t.number,delete t.name,delete t.nameRaw)},Backreference:function(e){var t=e.node;"name"===t.kind&&(t.kind="number",t.reference=t.number,delete t.referenceRaw)}},xFlag:{RegExp:function(e){var t=e.node;t.flags.includes("x")&&(t.flags=t.flags.replace("x",""))}}},dP=function e(t){if("Disjunction"!==t.type)throw TypeError('Expected "Disjunction" node, got "'+t.type+'"');var r=[];return t.left&&"Disjunction"===t.left.type?r.push.apply(r,(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r})(e(t.left)).concat([t.right])):r.push(t.left,t.right),r},dk=function(e){"*"===e.kind?e.kind="+":"+"===e.kind?(e.kind="Range",e.from=2,delete e.to):"?"===e.kind?(e.kind="Range",e.from=1,e.to=2):"Range"===e.kind&&(e.from+=1,e.to&&(e.to+=1))};function dF(e){return e.greedy&&("+"===e.kind||"*"===e.kind||"Range"===e.kind&&!e.to)}function dI(e){var t=void 0,r=void 0;return"*"===e.kind?t=0:"+"===e.kind?t=1:"?"===e.kind?(t=0,r=1):(t=e.from,e.to&&(r=e.to)),{from:t,to:r}}function dB(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var dj=[function(e){return dL(e," ")}].concat(dB(["\\f","\\n","\\r","\\t","\\v"].map(function(e){return function(t){return dO(t,e)}})),dB([160,5760,8232,8233,8239,8287,12288,65279].map(function(e){return function(t){return dN(t,e)}})),[function(e){return"ClassRange"===e.type&&dN(e.from,8192)&&dN(e.to,8202)}]);function dL(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"simple";return"Char"===e.type&&e.value===t&&e.kind===r}function dO(e,t){return dL(e,t,"meta")}function dN(e,t){return"Char"===e.type&&"unicode"===e.kind&&e.codePoint===t}function dR(e,t,r){for(var n=e,u=(r?n>=0:n<t.expressions.length)&&t.expressions[n];u&&"Char"===u.type&&"simple"===u.kind&&!u.escaped&&/\d/.test(u.value);)r?n--:n++,u=(r?n>=0:n<t.expressions.length)&&t.expressions[n];return Math.abs(e-n)}function dM(e,t){return e&&"Char"===e.type&&"simple"===e.kind&&!e.escaped&&e.value===t}function d$(e,t){var r=dU(e),n=dU(t);if(r===n){if("ClassRange"===e.type&&"ClassRange"!==t.type)return -1;if("ClassRange"===t.type&&"ClassRange"!==e.type)return 1;if("ClassRange"===e.type&&"ClassRange"===t.type)return dU(e.to)-dU(t.to);if(dz(e)&&dz(t)||dV(e)&&dV(t))return e.value<t.value?-1:1}return r-n}function dU(e){return"Char"===e.type?"-"===e.value||"control"===e.kind?1/0:"meta"===e.kind&&isNaN(e.codePoint)?-1:e.codePoint:e.from.codePoint}function dz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"Char"===e.type&&"meta"===e.kind&&(t?e.value===t:/^\\[dws]$/i.test(e.value))}function dV(e){return"Char"===e.type&&"control"===e.kind}function dq(e){return 9===e.codePoint||10===e.codePoint||11===e.codePoint||12===e.codePoint||13===e.codePoint||32===e.codePoint||160===e.codePoint||5760===e.codePoint||e.codePoint>=8192&&e.codePoint<=8202||8232===e.codePoint||8233===e.codePoint||8239===e.codePoint||8287===e.codePoint||12288===e.codePoint||65279===e.codePoint}function dW(e){return e.codePoint>=48&&e.codePoint<=57}function dG(e,t){return dW(e)||e.codePoint>=65&&e.codePoint<=90||e.codePoint>=97&&e.codePoint<=122||"_"===e.value||t&&(383===e.codePoint||8490===e.codePoint)}function dZ(e){return e&&"Char"===e.type&&!isNaN(e.codePoint)&&(dG(e,!1)||"unicode"===e.kind||"hex"===e.kind||"oct"===e.kind||"decimal"===e.kind)}var dH={RegExp:function(e,t){e.node.body=t},Group:function(e,t){var r=e.node;r.capturing?r.expression=t:e.replace(t)}};function dK(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}function dY(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var dJ=new Map([["charSurrogatePairToSingleUnicode",{shouldRun:function(e){return e.flags.includes("u")},Char:function(e){var t=e.node;"unicode"!==t.kind||!t.isSurrogatePair||isNaN(t.codePoint)||(t.value="\\u{"+t.codePoint.toString(16)+"}",delete t.isSurrogatePair)}}],["charCodeToSimpleChar",{Char:function(e){var t=e.node,r=e.parent;if(!isNaN(t.codePoint)&&"simple"!==t.kind&&("ClassRange"!==r.type||(n=r.from,u=r.to,n.codePoint>=48&&n.codePoint<=57&&u.codePoint>=48&&u.codePoint<=57||n.codePoint>=65&&n.codePoint<=90&&u.codePoint>=65&&u.codePoint<=90||n.codePoint>=97&&n.codePoint<=122&&u.codePoint>=97&&u.codePoint<=122))&&(a=t.codePoint)>=32&&a<=126){var n,u,a,i,o=String.fromCodePoint(t.codePoint),s={type:"Char",kind:"simple",value:o,symbol:o,codePoint:t.codePoint};("ClassRange"===(i=r.type)||"CharacterClass"===i?/[\]\\^-]/.test(o):/[*[()+?^$./\\|{}]/.test(o))&&(s.escaped=!0),e.replace(s)}}}],["charCaseInsensitiveLowerCaseTransform",{_AZClassRanges:null,_hasUFlag:!1,init:function(e){this._AZClassRanges=new Set,this._hasUFlag=e.flags.includes("u")},shouldRun:function(e){return e.flags.includes("i")},Char:function(e){var t,r,n=e.node,u=e.parent;if(!isNaN(n.codePoint)&&(this._hasUFlag||!(n.codePoint>=4096))){if("ClassRange"===u.type){if(!this._AZClassRanges.has(u)&&(t=u.from,r=u.to,!(t.codePoint>=65)||!(t.codePoint<=90)||!(r.codePoint>=65)||!(r.codePoint<=90)))return;this._AZClassRanges.add(u)}var a=n.symbol.toLowerCase();a!==n.symbol&&(n.value=function(e,t){var r=e.codePointAt(0);if("decimal"===t.kind)return"\\"+r;if("oct"===t.kind)return"\\0"+r.toString(8);if("hex"===t.kind)return"\\x"+r.toString(16);if("unicode"===t.kind){if(t.isSurrogatePair){var n={lead:(Math.floor((r-65536)/1024)+55296).toString(16),trail:((r-65536)%1024+56320).toString(16)},u=n.lead,a=n.trail;return"\\u"+"0".repeat(4-u.length)+u+"\\u"+"0".repeat(4-a.length)+a}if(t.value.includes("{"))return"\\u{"+r.toString(16)+"}";var i=r.toString(16);return"\\u"+"0".repeat(4-i.length)+i}return e}(a,n),n.symbol=a,n.codePoint=a.codePointAt(0))}}}],["charClassRemoveDuplicates",{CharacterClass:function(e){for(var t=e.node,r={},n=0;n<t.expressions.length;n++){var u=e.getChild(n),a=u.jsonEncode();r.hasOwnProperty(a)&&(u.remove(),n--),r[a]=!0}}}],["quantifiersMerge",{Repetition:function(e){var t=e.node;if("Alternative"===e.parent.type&&e.index){var r=e.getPreviousSibling();if(r){if("Repetition"===r.node.type){if(!r.getChild().hasEqualSource(e.getChild()))return;var n=dI(r.node.quantifier),u=n.from,a=n.to,i=dI(t.quantifier),o=i.from,s=i.to;if(r.node.quantifier.greedy!==t.quantifier.greedy&&!dF(r.node.quantifier)&&!dF(t.quantifier))return;t.quantifier.kind="Range",t.quantifier.from=u+o,a&&s?t.quantifier.to=a+s:delete t.quantifier.to,(dF(r.node.quantifier)||dF(t.quantifier))&&(t.quantifier.greedy=!0),r.remove()}else{if(!r.hasEqualSource(e.getChild()))return;dk(t.quantifier),r.remove()}}}}}],["quantifierRangeToSymbol",{Quantifier:function(e){if("Range"===e.node.kind){var t,r,n;0!==(t=e.node).from||t.to||(t.kind="*",delete t.from),1!==(r=e.node).from||r.to||(r.kind="+",delete r.from),1===(n=e.node).from&&1===n.to&&e.parentPath.replace(e.parentPath.node.expression)}}}],["charClassClassrangesToChars",{ClassRange:function(e){var t=e.node;t.from.codePoint===t.to.codePoint?e.replace(t.from):t.from.codePoint===t.to.codePoint-1&&(e.getParent().insertChildAt(t.to,e.index+1),e.replace(t.from))}}],["charClassToMeta",{_hasIFlag:!1,_hasUFlag:!1,init:function(e){this._hasIFlag=e.flags.includes("i"),this._hasUFlag=e.flags.includes("u")},CharacterClass:function(e){var t,r,n,u,a,i,o,s,d;(function(e){e.node.expressions.forEach(function(t,r){"ClassRange"===t.type&&"0"===t.from.value&&"9"===t.to.value&&e.getChild(r).replace({type:"Char",value:"\\d",kind:"meta"})})})(e),t=this._hasIFlag,r=this._hasUFlag,n=e.node,u=null,a=null,i=null,o=null,s=null,d=null,n.expressions.forEach(function(n,l){dO(n,"\\d")?u=e.getChild(l):"ClassRange"===n.type&&"a"===n.from.value&&"z"===n.to.value?a=e.getChild(l):"ClassRange"===n.type&&"A"===n.from.value&&"Z"===n.to.value?i=e.getChild(l):"Char"===n.type&&"_"===n.value&&"simple"===n.kind?o=e.getChild(l):t&&r&&dN(n,383)?s=e.getChild(l):t&&r&&dN(n,8490)&&(d=e.getChild(l))}),u&&(a&&i||t&&(a||i))&&o&&(!r||!t||s&&d)&&(u.replace({type:"Char",value:"\\w",kind:"meta"}),a&&a.remove(),i&&i.remove(),o.remove(),s&&s.remove(),d&&d.remove()),function(e){var t=e.node;if(!(t.expressions.length<dj.length)&&dj.every(function(e){return t.expressions.some(function(t){return e(t)})})){var r=t.expressions.find(function(e){return dO(e,"\\n")});r.value="\\s",r.symbol=void 0,r.codePoint=NaN,t.expressions.map(function(t,r){return dj.some(function(e){return e(t)})?e.getChild(r):void 0}).filter(Boolean).forEach(function(e){return e.remove()})}}(e)}}],["charClassToSingleChar",{CharacterClass:function(e){var t=e.node;if(1===t.expressions.length&&function(e){var t=e.parent,r=e.index;if("Alternative"!==t.type)return!0;var n=t.expressions[r-1];return null==n||("Backreference"!==n.type||"number"!==n.kind)&&("Char"!==n.type||"decimal"!==n.kind)}(e)&&"Char"===(r=t.expressions[0]).type&&"\\b"!==r.value){var r,n,u,a,i=t.expressions[0],o=i.value,s=i.kind,d=i.escaped;if(t.negative){if(n=o,!/^\\[dwsDWS]$/.test(n))return;u=o,o=/[dws]/.test(u)?u.toUpperCase():u.toLowerCase()}e.replace({type:"Char",value:o,kind:s,escaped:d||(a=o,/[*[()+?$./{}|]/.test(a))})}}}],["charEscapeUnescape",{_hasXFlag:!1,init:function(e){this._hasXFlag=e.flags.includes("x")},Char:function(e){var t,r,n,u,a=e.node;a.escaped&&(t=this._hasXFlag,r=e.node.value,n=e.index,("CharacterClass"!==(u=e.parent).type&&"ClassRange"!==u.type?"{"===r?function(e,t){if(null==e)return!1;var r=dR(e+1,t),n=e+r+1,u=n<t.expressions.length&&t.expressions[n];if(r){if(dM(u,"}"))return!0;if(dM(u,","))return r=dR(n+1,t),dM(u=(n=n+r+1)<t.expressions.length&&t.expressions[n],"}")}return!1}(n,u):"}"===r?function(e,t){if(null==e)return!1;var r=dR(e-1,t,!0),n=e-r-1,u=n>=0&&t.expressions[n];return!!(r&&dM(u,"{"))||!!dM(u,",")&&(r=dR(n-1,t,!0),u=(n=n-r-1)<t.expressions.length&&t.expressions[n],r&&dM(u,"{"))}(n,u):!!(t&&/[ #]/.test(r))||/[*[()+?^$./\\|]/.test(r):"^"===r?0===n&&!u.negative:"-"===r||/[\]\\]/.test(r))||delete a.escaped)}}],["charClassClassrangesMerge",{_hasIUFlags:!1,init:function(e){this._hasIUFlags=e.flags.includes("i")&&e.flags.includes("u")},CharacterClass:function(e){var t=e.node.expressions,r=[];t.forEach(function(e){dz(e)&&r.push(e.value)}),t.sort(d$);for(var n=0;n<t.length;n++){var u,a=t[n];if(function(e,t,r){for(var n=0;n<t.length;n++)if(function e(t,r,n){return"ClassRange"===t.type?e(t.from,r,n)&&e(t.to,r,n):!!("\\S"===r&&(dz(t,"\\w")||dz(t,"\\d"))||"\\D"===r&&(dz(t,"\\W")||dz(t,"\\s"))||"\\w"===r&&dz(t,"\\d")||"\\W"===r&&dz(t,"\\s"))||!("Char"!==t.type||isNaN(t.codePoint))&&("\\s"===r?dq(t):"\\S"===r?!dq(t):"\\d"===r?dW(t):"\\D"===r?!dW(t):"\\w"===r?dG(t,n):"\\W"===r&&!dG(t,n))}(e,t[n],r))return!0;return!1}(a,r,this._hasIUFlags)||function(e,t){if(t&&"ClassRange"===t.type){if(function e(t,r){return!("Char"===t.type&&isNaN(t.codePoint))&&("ClassRange"===t.type?e(t.from,r)&&e(t.to,r):t.codePoint>=r.from.codePoint&&t.codePoint<=r.to.codePoint)}(e,t))return!0;if(dZ(e)&&t.to.codePoint===e.codePoint-1)return t.to=e,!0;if("ClassRange"===e.type&&e.from.codePoint<=t.to.codePoint+1&&e.to.codePoint>=t.from.codePoint-1)return e.from.codePoint<t.from.codePoint&&(t.from=e.from),e.to.codePoint>t.to.codePoint&&(t.to=e.to),!0}return!1}(a,t[n-1])||(u=t[n+1])&&"ClassRange"===u.type&&dZ(a)&&u.from.codePoint===a.codePoint+1&&(u.from=a,1))t.splice(n,1),n--;else{var i=function(e,t,r){if(!dZ(e))return 0;for(var n=0;t>0;){var u=r[t],a=r[t-1];if(dZ(a)&&a.codePoint===u.codePoint-1)n++,t--;else break}return n>1?(r[t]={type:"ClassRange",from:r[t],to:e},n):0}(a,n,t);t.splice(n-i+1,i),n-=i}}}}],["disjunctionRemoveDuplicates",{Disjunction:function(e){var t=e.node,r={},n=dP(t).filter(function(e){var t=e?dC.getForNode(e).jsonEncode():"null";return!r.hasOwnProperty(t)&&(r[t]=e,!0)});e.replace(n.reduce(function(e,t){return{type:"Disjunction",left:e,right:t}}))}}],["groupSingleCharsToCharClass",{Disjunction:function(e){var t=e.node,r=e.parent;if(dH[r.type]){var n=new Map;if(function e(t,r){if(!t)return!1;var n=t.type;if("Disjunction"===n){var u=t.left,a=t.right;return e(u,r)&&e(a,r)}if("Char"===n){if("meta"===t.kind&&"."===t.symbol)return!1;var i=t.value;return r.set(i,t),!0}return"CharacterClass"===n&&!t.negative&&t.expressions.every(function(t){return e(t,r)})}(t,n)&&n.size){var u={type:"CharacterClass",expressions:Array.from(n.keys()).sort().map(function(e){return n.get(e)})};dH[r.type](e.getParent(),u)}}}}],["removeEmptyGroup",{Group:function(e){var t=e.node,r=e.parent,n=e.getChild();t.capturing||n||("Repetition"===r.type?e.getParent().replace(t):"RegExp"!==r.type&&e.remove())}}],["ungroup",{Group:function(e){var t=e.node,r=e.parent,n=e.getChild();if(!t.capturing&&n&&function(e){var t=e.parent,r=e.index;if("Alternative"!==t.type)return!0;var n=t.expressions[r-1];return null==n||("Backreference"!==n.type||"number"!==n.kind)&&("Char"!==n.type||"decimal"!==n.kind)}(e)&&("Disjunction"!==n.node.type||"RegExp"===r.type)&&("Repetition"!==r.type||"Char"===n.node.type||"CharacterClass"===n.node.type)){if("Alternative"===n.node.type){var u=e.getParent();"Alternative"===u.node.type&&u.replace({type:"Alternative",expressions:[].concat(dK(r.expressions.slice(0,e.index)),dK(n.node.expressions),dK(r.expressions.slice(e.index+1)))})}else e.replace(n.node)}}}],["combineRepeatingPatterns",{Alternative:function(e){for(var t=e.node,r=1;r<t.expressions.length;){var n=e.getChild(r);if((r=Math.max(1,function(e,t,r){for(var n=e.node,u=Math.ceil(r/2),a=0;a<u;){var i=r-2*a-1,o=void 0,s=void 0;if(0===a?(o=t,s=e.getChild(i)):(o=dC.getForNode({type:"Alternative",expressions:[].concat(dY(n.expressions.slice(r-a,r)),[t.node])}),s=dC.getForNode({type:"Alternative",expressions:[].concat(dY(n.expressions.slice(i,r-a)))})),o.hasEqualSource(s)){for(var d=0;d<2*a+1;d++)e.getChild(i).remove();return t.replace({type:"Repetition",expression:0===a&&"Repetition"!==o.node.type?o.node:{type:"Group",capturing:!1,expression:o.node},quantifier:{type:"Quantifier",kind:"Range",from:2,to:2,greedy:!0}}),i}a++}return r}(e,n,r)))>=t.expressions.length||(n=e.getChild(r),(r=Math.max(1,function(e,t,r){for(var n=e.node,u=0;u<r;){var a=e.getChild(u);if("Repetition"===a.node.type&&a.node.quantifier.greedy){var i=a.getChild(),o=void 0;if("Group"!==i.node.type||i.node.capturing||(i=i.getChild()),u+1===r?"Group"!==(o=t).node.type||o.node.capturing||(o=o.getChild()):o=dC.getForNode({type:"Alternative",expressions:[].concat(dY(n.expressions.slice(u+1,r+1)))}),i.hasEqualSource(o)){for(var s=u;s<r;s++)e.getChild(u+1).remove();return dk(a.node.quantifier),u}}u++}return r}(e,n,r)))>=t.expressions.length))break;n=e.getChild(r),r=Math.max(1,function(e,t,r){var n=e.node;if("Repetition"===t.node.type&&t.node.quantifier.greedy){var u=t.getChild(),a=void 0;"Group"!==u.node.type||u.node.capturing||(u=u.getChild());var i=void 0;if("Alternative"===u.node.type?(i=u.node.expressions.length,a=dC.getForNode({type:"Alternative",expressions:[].concat(dY(n.expressions.slice(r-i,r)))})):(i=1,"Group"!==(a=e.getChild(r-1)).node.type||a.node.capturing||(a=a.getChild())),a.hasEqualSource(u)){for(var o=r-i;o<r;o++)e.getChild(r-i).remove();return dk(t.node.quantifier),r-i}}return r}(e,n,r)),r++}}}]]),dX=function e(t){if(null===t||"object"!=typeof t)return t;var r=void 0;for(var n in r=Array.isArray(t)?[]:{},t)r[n]=e(t[n]);return r},dQ=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")},d0=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),d1=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.in=t,this.out=r}return d0(e,[{key:"matches",value:function(e){return this.in.matches(e)}},{key:"getAlphabet",value:function(){if(!this._alphabet){this._alphabet=new Set;var e=this.getTransitionTable();for(var t in e){var r=e[t];for(var n in r)"ε*"!==n&&this._alphabet.add(n)}}return this._alphabet}},{key:"getAcceptingStates",value:function(){return this._acceptingStates||this.getTransitionTable(),this._acceptingStates}},{key:"getAcceptingStateNumbers",value:function(){if(!this._acceptingStateNumbers){this._acceptingStateNumbers=new Set;var e=!0,t=!1,r=void 0;try{for(var n,u=this.getAcceptingStates()[Symbol.iterator]();!(e=(n=u.next()).done);e=!0){var a=n.value;this._acceptingStateNumbers.add(a.number)}}catch(e){t=!0,r=e}finally{try{!e&&u.return&&u.return()}finally{if(t)throw r}}}return this._acceptingStateNumbers}},{key:"getTransitionTable",value:function(){var e=this;if(!this._transitionTable){this._transitionTable={},this._acceptingStates=new Set;var t=new Set,r=new Set;(function n(u){if(!t.has(u)){t.add(u),u.number=t.size,e._transitionTable[u.number]={},u.accepting&&e._acceptingStates.add(u);var a=u.getTransitions(),i=!0,o=!1,s=void 0;try{for(var d,l=a[Symbol.iterator]();!(i=(d=l.next()).done);i=!0){var c=d.value,f=dQ(c,2),p=f[0],h=f[1],m=[];r.add(p);var g=!0,y=!1,b=void 0;try{for(var v,x=h[Symbol.iterator]();!(g=(v=x.next()).done);g=!0){var E=v.value;n(E),m.push(E.number)}}catch(e){y=!0,b=e}finally{try{!g&&x.return&&x.return()}finally{if(y)throw b}}e._transitionTable[u.number][p]=m}}catch(e){o=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw s}}}})(this.in),t.forEach(function(t){delete e._transitionTable[t.number]["ε"],e._transitionTable[t.number]["ε*"]=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}(t.getEpsilonClosure())).map(function(e){return e.number})})}return this._transitionTable}}]),e}(),d2=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function d3(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var d4=null,d5=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function d8(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var d6=function(e){var t=e.getTransitionTable(),r=Object.keys(t),n=e.getAlphabet(),u=e.getAcceptingStateNumbers();d4={};var a=new Set;r.forEach(function(e){e=Number(e),u.has(e)?d4[e]=u:(a.add(e),d4[e]=a)});var i=[[a,u].filter(function(e){return e.size>0})],o=void 0,s=void 0;for(o=i[i.length-1],s=i[i.length-2];!function(e,t){if(!t||e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var n=e[r],u=t[r];if(n.size!==u.size||[].concat(d3(n)).sort().join(",")!==[].concat(d3(u)).sort().join(","))return!1}return!0}(o,s);)!function(){var e={},r=!0,u=!1,a=void 0;try{for(var d,l=o[Symbol.iterator]();!(r=(d=l.next()).done);r=!0){var c=d.value,f={},p=Array.isArray(c)?c:Array.from(c),h=p[0],m=p.slice(1);f[h]=new Set([h]);var g=!0,y=!1,b=void 0;try{e:for(var v,x=m[Symbol.iterator]();!(g=(v=x.next()).done);g=!0){var E=v.value,C=!0,A=!1,D=void 0;try{for(var S,_=Object.keys(f)[Symbol.iterator]();!(C=(S=_.next()).done);C=!0){var w=S.value;if(function(e,t,r,n){var u=!0,a=!1,i=void 0;try{for(var o,s=n[Symbol.iterator]();!(u=(o=s.next()).done);u=!0){var d=o.value;if(!function(e,t,r,n){if(!d4[e]||!d4[t])return!1;var u=r[e][n],a=r[t][n];return!u&&!a||d4[e].has(u)&&d4[t].has(a)}(e,t,r,d))return!1}}catch(e){a=!0,i=e}finally{try{!u&&s.return&&s.return()}finally{if(a)throw i}}return!0}(E,w,t,n)){f[w].add(E),f[E]=f[w];continue e}}}catch(e){A=!0,D=e}finally{try{!C&&_.return&&_.return()}finally{if(A)throw D}}f[E]=new Set([E])}}catch(e){y=!0,b=e}finally{try{!g&&x.return&&x.return()}finally{if(y)throw b}}Object.assign(e,f)}}catch(e){u=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(u)throw a}}d4=e;var T=new Set(Object.keys(e).map(function(t){return e[t]}));i.push([].concat(d3(T))),o=i[i.length-1],s=i[i.length-2]}();var d=new Map,l=1;o.forEach(function(e){return d.set(e,l++)});var c={},f=new Set,p=!0,h=!1,m=void 0;try{for(var g,y=d.entries()[Symbol.iterator]();!(p=(g=y.next()).done);p=!0){var b=g.value,v=d2(b,2),x=v[0],E=v[1];c[E]={};var C=!0,A=!1,D=void 0;try{for(var S,_=n[Symbol.iterator]();!(C=(S=_.next()).done);C=!0){var w=S.value;!function(e,t){var r=!0,n=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;u.has(s)&&f.add(t)}}catch(e){n=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(n)throw a}}}(x,E);var T=void 0,P=!0,k=!1,F=void 0;try{for(var I,B=x[Symbol.iterator]();!(P=(I=B.next()).done)&&!(T=t[I.value][w]);P=!0);}catch(e){k=!0,F=e}finally{try{!P&&B.return&&B.return()}finally{if(k)throw F}}T&&(c[E][w]=d.get(d4[T]))}}catch(e){A=!0,D=e}finally{try{!C&&_.return&&_.return()}finally{if(A)throw D}}}}catch(e){h=!0,m=e}finally{try{!p&&y.return&&y.return()}finally{if(h)throw m}}return e.setTransitionTable(c),e.setAcceptingStateNumbers(f),e},d9=function(){function e(t){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._nfa=t}return d5(e,[{key:"minimize",value:function(){this.getTransitionTable(),this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._originalTransitionTable=this._transitionTable,d6(this)}},{key:"getAlphabet",value:function(){return this._nfa.getAlphabet()}},{key:"getAcceptingStateNumbers",value:function(){return this._acceptingStateNumbers||this.getTransitionTable(),this._acceptingStateNumbers}},{key:"getOriginaAcceptingStateNumbers",value:function(){return this._originalAcceptingStateNumbers||this.getTransitionTable(),this._originalAcceptingStateNumbers}},{key:"setTransitionTable",value:function(e){this._transitionTable=e}},{key:"setAcceptingStateNumbers",value:function(e){this._acceptingStateNumbers=e}},{key:"getTransitionTable",value:function(){var e=this;if(this._transitionTable)return this._transitionTable;var t=this._nfa.getTransitionTable(),r=Object.keys(t);this._acceptingStateNumbers=new Set;for(var n=[t[r[0]]["ε*"]],u=this.getAlphabet(),a=this._nfa.getAcceptingStateNumbers(),i={};n.length>0;){var o=n.shift(),s=o.join(",");i[s]={};var d=!0,l=!1,c=void 0;try{for(var f,p=u[Symbol.iterator]();!(d=(f=p.next()).done);d=!0){var h=f.value,m=[];!function(t){var r=!0,n=!1,u=void 0;try{for(var i,o=a[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;if(-1!==t.indexOf(s)){e._acceptingStateNumbers.add(t.join(","));break}}}catch(e){n=!0,u=e}finally{try{!r&&o.return&&o.return()}finally{if(n)throw u}}}(o);var g=!0,y=!1,b=void 0;try{for(var v,x=o[Symbol.iterator]();!(g=(v=x.next()).done);g=!0){var E=t[v.value][h];if(E){var C=!0,A=!1,D=void 0;try{for(var S,_=E[Symbol.iterator]();!(C=(S=_.next()).done);C=!0){var w=S.value;t[w]&&m.push.apply(m,d8(t[w]["ε*"]))}}catch(e){A=!0,D=e}finally{try{!C&&_.return&&_.return()}finally{if(A)throw D}}}}}catch(e){y=!0,b=e}finally{try{!g&&x.return&&x.return()}finally{if(y)throw b}}var T=new Set(m),P=[].concat(d8(T));if(P.length>0){var k=P.join(",");i[s][h]=k,i.hasOwnProperty(k)||n.unshift(P)}}}catch(e){l=!0,c=e}finally{try{!d&&p.return&&p.return()}finally{if(l)throw c}}}return this._transitionTable=this._remapStateNumbers(i)}},{key:"_remapStateNumbers",value:function(e){var t={};this._originalTransitionTable=e;var r={};for(var n in Object.keys(e).forEach(function(e,r){t[e]=r+1}),e){var u=e[n],a={};for(var i in u)a[i]=t[u[i]];r[t[n]]=a}this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._acceptingStateNumbers=new Set;var o=!0,s=!1,d=void 0;try{for(var l,c=this._originalAcceptingStateNumbers[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var f=l.value;this._acceptingStateNumbers.add(t[f])}}catch(e){s=!0,d=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw d}}return r}},{key:"getOriginalTransitionTable",value:function(){return this._originalTransitionTable||this.getTransitionTable(),this._originalTransitionTable}},{key:"matches",value:function(e){for(var t=1,r=0,n=this.getTransitionTable();e[r];)if(!(t=n[t][e[r++]]))return!1;return!!this.getAcceptingStateNumbers().has(t)}}]),e}(),d7=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),le=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.accepting;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._transitions=new Map,this.accepting=void 0!==r&&r}return d7(e,[{key:"getTransitions",value:function(){return this._transitions}},{key:"addTransition",value:function(e,t){return this.getTransitionsOnSymbol(e).add(t),this}},{key:"getTransitionsOnSymbol",value:function(e){var t=this._transitions.get(e);return t||(t=new Set,this._transitions.set(e,t)),t}}]),e}(),lt=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),lr=function(e){function t(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),lt(t,[{key:"matches",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(t.has(this))return!1;if(t.add(this),0===e.length){if(this.accepting)return!0;var r=!0,n=!1,u=void 0;try{for(var a,i=this.getTransitionsOnSymbol("ε")[Symbol.iterator]();!(r=(a=i.next()).done);r=!0)if(a.value.matches("",t))return!0}catch(e){n=!0,u=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw u}}return!1}var o=e[0],s=e.slice(1),d=this.getTransitionsOnSymbol(o),l=!0,c=!1,f=void 0;try{for(var p,h=d[Symbol.iterator]();!(l=(p=h.next()).done);l=!0)if(p.value.matches(s))return!0}catch(e){c=!0,f=e}finally{try{!l&&h.return&&h.return()}finally{if(c)throw f}}var m=!0,g=!1,y=void 0;try{for(var b,v=this.getTransitionsOnSymbol("ε")[Symbol.iterator]();!(m=(b=v.next()).done);m=!0)if(b.value.matches(e,t))return!0}catch(e){g=!0,y=e}finally{try{!m&&v.return&&v.return()}finally{if(g)throw y}}return!1}},{key:"getEpsilonClosure",value:function(){var e=this;return this._epsilonClosure||function(){var t=e.getTransitionsOnSymbol("ε"),r=e._epsilonClosure=new Set;r.add(e);var n=!0,u=!1,a=void 0;try{for(var i,o=t[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;r.has(s)||(r.add(s),s.getEpsilonClosure().forEach(function(e){return r.add(e)}))}}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}}(),this._epsilonClosure}}]),t}(le);function ln(e){var t=new lr,r=new lr({accepting:!0});return new d1(t.addTransition(e,r),r)}var lu={alt:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var u=!0,a=!1,i=void 0;try{for(var o,s=r[Symbol.iterator]();!(u=(o=s.next()).done);u=!0){var d,l=o.value;(d=e).out.accepting=!1,l.out.accepting=!0,d.out.addTransition("ε",l.in),e=new d1(d.in,l.out)}}catch(e){a=!0,i=e}finally{try{!u&&s.return&&s.return()}finally{if(a)throw i}}return e},char:ln,e:function(){return ln("ε")},or:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var u=!0,a=!1,i=void 0;try{for(var o,s=r[Symbol.iterator]();!(u=(o=s.next()).done);u=!0){var d=o.value;e=function(e,t){var r=new lr,n=new lr;return r.addTransition("ε",e.in),r.addTransition("ε",t.in),n.accepting=!0,e.out.accepting=!1,t.out.accepting=!1,e.out.addTransition("ε",n),t.out.addTransition("ε",n),new d1(r,n)}(e,d)}}catch(e){a=!0,i=e}finally{try{!u&&s.return&&s.return()}finally{if(a)throw i}}return e},rep:function(e){return e.in.addTransition("ε",e.out),e.out.addTransition("ε",e.in),e},repExplicit:function(e){var t=new lr,r=new lr({accepting:!0});return t.addTransition("ε",e.in),t.addTransition("ε",r),e.out.accepting=!1,e.out.addTransition("ε",r),r.addTransition("ε",e.in),new d1(t,r)},plusRep:function(e){return e.out.addTransition("ε",e.in),e},questionRep:function(e){return e.in.addTransition("ε",e.out),e}},la=lu.alt,li=lu.char,lo=lu.or,ls=lu.rep,ld=lu.plusRep,ll=lu.questionRep;function lc(e){if(e&&!lf[e.type])throw Error(e.type+" is not supported in NFA/DFA interpreter.");return e?lf[e.type](e):""}var lf={RegExp:function(e){if(""!==e.flags)throw Error("NFA/DFA: Flags are not supported yet.");return lc(e.body)},Alternative:function(e){var t=(e.expressions||[]).map(lc);return la.apply(void 0,function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}(t))},Disjunction:function(e){return lo(lc(e.left),lc(e.right))},Repetition:function(e){switch(e.quantifier.kind){case"*":return ls(lc(e.expression));case"+":return ld(lc(e.expression));case"?":return ll(lc(e.expression));default:throw Error("Unknown repeatition: "+e.quantifier.kind+".")}},Char:function(e){if("simple"!==e.kind)throw Error("NFA/DFA: Only simple chars are supported yet.");return li(e.value)},Group:function(e){return lc(e.expression)}},lp=function(e){var t=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(t=s7.parse(e,{captureLocations:!0})),lc(t)},lh=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),lm=function(){function e(t,r){var n=r.flags,u=r.groups,a=r.source;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._re=t,this._groups=u,this.flags=n,this.source=a||t.source,this.dotAll=n.includes("s"),this.global=t.global,this.ignoreCase=t.ignoreCase,this.multiline=t.multiline,this.sticky=t.sticky,this.unicode=t.unicode}return lh(e,[{key:"test",value:function(e){return this._re.test(e)}},{key:"compile",value:function(e){return this._re.compile(e)}},{key:"toString",value:function(){return this._toStringResult||(this._toStringResult="/"+this.source+"/"+this.flags),this._toStringResult}},{key:"exec",value:function(e){var t=this._re.exec(e);if(!this._groups||!t)return t;for(var r in t.groups={},this._groups){var n=this._groups[r];t.groups[r]=t[n]}return t}}]),e}(),lg=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.length>0?t:Object.keys(dT),n=void 0,u={};return r.forEach(function(t){if(!dT.hasOwnProperty(t))throw Error("Unknown compat-transform: "+t+". Available transforms are: "+Object.keys(dT).join(", "));var r=dT[t];e=(n=dw(e,r)).getAST(),"function"==typeof r.getExtra&&(u[t]=r.getExtra())}),n.setExtra(u),n},ly=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.whitelist,n=void 0===r?[]:r,u=t.blacklist,a=void 0===u?[]:u,i=(n.length>0?n:Array.from(dJ.keys())).filter(function(e){return!a.includes(e)}),o=e;e instanceof RegExp&&(e=""+e),"string"==typeof e&&(o=s7.parse(e));var s=new d_(o),d=void 0;do d=s.toString(),o=dX(s.getAST()),i.forEach(function(e){if(!dJ.has(e))throw Error("Unknown optimization-transform: "+e+". Available transforms are: "+Array.from(dJ.keys()).join(", "));var t=dJ.get(e),r=dw(o,t);r.toString()!==s.toString()&&(r.toString().length<=s.toString().length?s=r:o=dX(s.getAST()))});while(s.toString()!==d);return s};const lb=(e,t)=>{if(t=t||"","string"!=typeof e)throw TypeError(`Expected regexp to be of type \`string\`, got \`${typeof e}\``);if("string"!=typeof t)throw TypeError(`Expected flags to be of type \`string\`, got \`${typeof t}\``);for(let r of sI){let n=r[0],u=r[1];sj(t,u.flags)&&(e=e.replace(RegExp(sB(n),"g"),u.value))}return e},{optimize:lv}={parser:s7,fa:{NFA:d1,DFA:d9,builders:lu,toNFA:function(e){return lp(e)},toDFA:function(e){return new d9(this.toNFA(e))},test:function(e,t){return this.toDFA(e).matches(t)}},TransformResult:d_,parse:function(e,t){return s7.parse(""+e,t)},traverse:function(e,t,r){return dD(e,t,r)},transform:function(e,t){return dw(e,t)},generate:function(e){return sN.generate(e)},toRegExp:function(e){var t=this.compatTranspile(e);return new RegExp(t.getSource(),t.getFlags())},optimize:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ly(e,{whitelist:t,blacklist:r.blacklist})},compatTranspile:function(e,t){return lg(e,t)},exec:function(e,t){if("string"==typeof e){var r=this.compatTranspile(e),n=r.getExtra();e=n.namedCapturingGroups?new lm(r.toRegExp(),{flags:r.getFlags(),source:r.getSource(),groups:n.namedCapturingGroups}):r.toRegExp()}return e.exec(t)}},{isStringLiteral:lx,isNewExpression:lE,isRegexLiteral:lC}=tK,lA="better-regex",lD="better-regex/parse-error";var lS=/*@__PURE__*/ec({create:e=>{let{sortCharacterClasses:t}=e.options[0]||{},r=[];return!1===t&&r.push("charClassClassrangesMerge"),{Literal(e){if(!lC(e))return;let{raw:t,regex:n}=e;if(n.flags.includes("u")||n.flags.includes("v"))return;let u=t;try{u=lv(t,void 0,{blacklist:r}).toString()}catch(r){return{node:e,messageId:lD,data:{original:t,error:r.message}}}if(t===u)return;let a={node:e,messageId:lA,data:{original:t,optimized:u}};return"MemberExpression"!==e.parent.type||e.parent.object!==e||e.parent.optional||e.parent.computed||"Identifier"!==e.parent.property.type||"toString"!==e.parent.property.name&&"source"!==e.parent.property.name?Object.assign(a,{fix:t=>t.replaceText(e,u)}):a},NewExpression(e){if(!lE(e,{name:"RegExp",minimumArguments:1}))return;let[t,r]=e.arguments;if(!lx(t))return;let n=t.value,u=lb(n,lx(r)?r.value:"");if(n!==u)return{node:e,messageId:lA,data:{original:n,optimized:u},fix:e=>e.replaceText(t,rZ(u,t.raw.charAt(0)))}}}},meta:{type:"suggestion",docs:{description:"Improve regexes by making them shorter, consistent, and safer.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{sortCharacterClasses:{type:"boolean",default:!0}}}],messages:{[lA]:"{{original}} can be optimized to {{optimized}}.",[lD]:"Problem parsing {{original}}: {{error}}"}}});const{replaceTemplateElement:l_}=uv,{isRegexLiteral:lw,isStringLiteral:lT,isTaggedTemplateLiteral:lP}=tK,lk="escape-case",lF=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+})/g,lI=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+}|c[a-z])/g,lB=({node:e,original:t,regex:r=lF,fix:n})=>{let u=t.replace(r,e=>e.slice(0,1)+e.slice(1).toUpperCase());if(u!==t)return{node:e,messageId:lk,fix:t=>n?n(t,u):t.replaceText(e,u)}};var lj=/*@__PURE__*/ec({create:e=>{e.on("Literal",e=>{if(lT(e))return lB({node:e,original:e.raw})}),e.on("Literal",e=>{if(lw(e))return lB({node:e,original:e.raw,regex:lI})}),e.on("TemplateElement",e=>{if(!lP(e.parent,["String.raw"]))return lB({node:e,original:e.value.raw,fix:(t,r)=>l_(t,e,r)})})},meta:{type:"suggestion",docs:{description:"Require escape sequences to use uppercase values.",recommended:!0},fixable:"code",messages:{[lk]:"Use uppercase characters for the value of the escape sequence."}}});const{replaceTemplateElement:lL}=uv,{isStringLiteral:lO,isRegexLiteral:lN,isTaggedTemplateLiteral:lR}=tK,lM="no-hex-escape";function l$(e,t,r){let n=r.replaceAll(/(?<=(?:^|[^\\])(?:\\\\)*\\)x/g,"u00");if(r!==n)return{node:t,messageId:lM,fix:e=>"TemplateElement"===t.type?lL(e,t,n):e.replaceText(t,n)}}var lU=/*@__PURE__*/ec({create:e=>({Literal(t){if(lO(t)||lN(t))return l$(e,t,t.raw)},TemplateElement(t){if(!lR(t.parent,["String.raw"]))return l$(e,t,t.value.raw)}}),meta:{type:"suggestion",docs:{description:"Enforce the use of Unicode escapes instead of hexadecimal escapes.",recommended:!0},fixable:"code",messages:{[lM]:"Use Unicode escapes instead of hexadecimal escapes."}}});const{getPropertyName:lz,ReferenceTracker:lV}=tm,{fixSpaceAroundKeyword:lq}=uv,{isMemberExpression:lW,isMethodCall:lG}=tK,lZ=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];var lH=/*@__PURE__*/ec({create:function(e){let{sourceCode:t}=e,r=[];e.on("CallExpression",e=>{r.push(e)}),e.on("Program:exit",function*(e){let n=new WeakMap;for(let{node:r,path:u}of new lV(t.getScope(e)).iterateGlobalReferences(Object.fromEntries(lZ.map(e=>[e,{[lV.READ]:!0}]))))n.set(r,u);for(let e of r)yield function(e,{sourceCode:t,globalReferences:r}){let n;lG(e,{object:"Reflect",method:"apply",minimumArguments:1,optionalCall:!1,optionalMember:!1})?n=e.arguments[0]:lG(e,{methods:["apply","bind","call"],optionalCall:!1,optionalMember:!1})&&(n=e.callee.object);let{isGlobalReference:u,constructorName:a,methodName:i}=function(e,{sourceCode:t,globalReferences:r}){if(!e)return;if(r.has(e))return{isGlobalReference:!0,constructorName:"Object",methodName:r.get(e).at(-1)};if(!lW(e,{optional:!1}))return;let n=e.object;if(!(("ArrayExpression"!==n.type||0!==n.elements.length)&&("ObjectExpression"!==n.type||0!==n.properties.length)))return{constructorName:"ArrayExpression"===n.type?"Array":"Object",methodName:lz(e,t.getScope(e))}}(n,{sourceCode:t,globalReferences:r})??{};if(a)return{node:n,messageId:i?"known-method":"unknown-method",data:{constructorName:a,methodName:i},*fix(r){if(u){yield r.replaceText(n,`${a}.prototype.${i}`);return}if(lW(n)){let u=n.object;yield r.replaceText(u,`${a}.prototype`),("ArrayExpression"===u.type||"ObjectExpression"===u.type)&&(yield*lq(r,e,t))}}}}(e,{sourceCode:t,globalReferences:n})})},meta:{type:"suggestion",docs:{description:"Prefer borrowing methods from the prototype instead of the instance.",recommended:!0},fixable:"code",messages:{"known-method":"Prefer using `{{constructorName}}.prototype.{{methodName}}`.","unknown-method":"Prefer using method from `{{constructorName}}.prototype`."}}});const{getStaticValue:lK}=tm,{isCallOrNewExpression:lY}=tK,lJ="missing-message",lX="message-is-empty-string",lQ="message-is-not-a-string",l0=["Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","InternalError","AggregateError"];var l1=/*@__PURE__*/ec({create:e=>{e.on(["CallExpression","NewExpression"],t=>{if(!lY(t,{names:l0,optional:!1}))return;let r=e.sourceCode.getScope(t);if(nn(r,t.callee))return;let n=t.callee.name,u="AggregateError"===n?1:0,a=t.arguments;if(a.some((e,t)=>t<=u&&"SpreadElement"===e.type))return;let i=a[u];if(!i)return{node:t,messageId:lJ,data:{constructorName:n}};if("ArrayExpression"===i.type||"ObjectExpression"===i.type)return{node:i,messageId:lQ};let o=lK(i,r);if(!o)return;let{value:s}=o;return"string"!=typeof s?{node:i,messageId:lQ}:""===s?{node:i,messageId:lX}:void 0})},meta:{type:"problem",docs:{description:"Enforce passing a `message` value when creating a built-in error.",recommended:!0},messages:{[lJ]:"Pass a message to the `{{constructorName}}` constructor.",[lX]:"Error message should not be an empty string.",[lQ]:"Error message should be a string."}}});const{checkVueTemplate:l2}=oI,{getParenthesizedRange:l3}=t_,{replaceNodeOrTokenAndSpacesBefore:l4,fixSpaceAroundKeyword:l5}=uv,l8=e=>"instanceof"===e.value&&"Keyword"===e.type,l6="no-instanceof-array";var l9=/*@__PURE__*/ec({create:l2(e=>{let{sourceCode:t}=e;return{BinaryExpression(e){if(!("instanceof"===e.operator&&"Identifier"===e.right.type&&"Array"===e.right.name))return;let{left:r,right:n}=e,u=t,a=u.getTokenAfter(r,l8);return!a&&t.parserServices.getTemplateBodyTokenStore&&(a=(u=t.parserServices.getTemplateBodyTokenStore()).getTokenAfter(r,l8)),{node:a,messageId:l6,*fix(i){yield*l5(i,e,t);let o=l3(r,u);yield i.insertTextBeforeRange(o,"Array.isArray("),yield i.insertTextAfterRange(o,")"),yield*l4(a,"",i,t,u),yield*l4(n,"",i,t,u)}}}}}),meta:{type:"suggestion",docs:{description:"Require `Array.isArray()` instead of `instanceof Array`.",recommended:!0},fixable:"code",messages:{[l6]:"Use `Array.isArray()` instead of `instanceof Array`."}}});const{isNewExpression:l7}=tK,ce="prefer-type-error",ct=new Set(["isArguments","isArray","isArrayBuffer","isArrayLike","isArrayLikeObject","isBigInt","isBoolean","isBuffer","isDate","isElement","isError","isFinite","isFunction","isInteger","isLength","isMap","isNaN","isNative","isNil","isNull","isNumber","isObject","isObjectLike","isPlainObject","isPrototypeOf","isRegExp","isSafeInteger","isSet","isString","isSymbol","isTypedArray","isUndefined","isView","isWeakMap","isWeakSet","isWindow","isXMLDoc"]),cr=new Set(["isNaN","isFinite"]),cn=(e,t,r)=>void 0!==t&&t.arguments.length>0&&"Identifier"===e.type&&(!0===r&&ct.has(e.name)||!1===r&&cr.has(e.name)),cu=e=>e.parent&&e.parent.body&&1===e.parent.body.length,ca=(e,t)=>!!cn(e.property,t,!0)||"MemberExpression"===e.object.type&&ca(e.object,t),ci=(e,t)=>{switch(e.type){case"Identifier":return cn(e,t,!1);case"MemberExpression":return ca(e,t);case"CallExpression":return ci(e.callee,e);case"UnaryExpression":return"typeof"===e.operator||"!"===e.operator&&ci(e.argument);case"BinaryExpression":return"instanceof"===e.operator||ci(e.left,t)||ci(e.right,t);case"LogicalExpression":return ci(e.left,t)&&ci(e.right,t);default:return!1}},co=e=>"IfStatement"===e.type&&ci(e.test);var cs=/*@__PURE__*/ec({create:()=>({ThrowStatement(e){if(l7(e.argument,{name:"Error"})&&cu(e)&&e.parent.parent&&co(e.parent.parent)){let t=e.argument.callee;return{node:t,messageId:ce,fix:e=>e.insertTextBefore(t,"Type")}}}}),meta:{type:"suggestion",docs:{description:"Enforce throwing `TypeError` in type checking conditions.",recommended:!0},fixable:"code",messages:{[ce]:"`new Error()` is too unspecific for a type check. Use `new TypeError()` instead."}}});const{isCallOrNewExpression:cd}=tK,cl="consistentDestructuring",cc="consistentDestructuringSuggest",cf=e=>{for(;e;){if(e.computed)return!1;if("MemberExpression"!==e.type)break;e=e.object}return"Identifier"===e.type||"ThisExpression"===e.type},cp=(e,t)=>{for(;e;){if(e===t)return!0;e=e.upper}return!1};var ch=/*@__PURE__*/ec({create:e=>{let{sourceCode:t}=e,r=new Map;return{VariableDeclarator(e){"ObjectPattern"===e.id.type&&e.init&&"Literal"!==e.init.type&&cf(e.init)&&r.set(t.getText(e.init),{scope:t.getScope(e),variables:t.getDeclaredVariables(e),objectPattern:e.id})},MemberExpression(e){if(e.computed||cd(e.parent)&&e.parent.callee===e||r1(e))return;let n=r.get(t.getText(e.object));if(!n)return;let{scope:u,objectPattern:a}=n,i=t.getScope(e);if(!cp(i,u))return;let o=a.properties.filter(e=>"Property"===e.type&&"Identifier"===e.key.type&&"Identifier"===e.value.type),s=a.properties.at(-1),d=s&&"RestElement"===s.type,l=t.getText(e),c=t.getText(e.property),f=o.find(e=>e.key.name===c);if(!f&&(d||rA(c,[i])!==c))return;if("MemberExpression"===e.parent.type)return{node:e,messageId:cl};let p=f?f.value.name:c;return{node:e,messageId:cl,suggest:[{messageId:cc,data:{expression:l,property:p},*fix(t){let{properties:r}=a,n=r.at(-1);yield t.replaceText(e,p),f||(yield n?t.insertTextAfter(n,`, ${p}`):t.replaceText(a,`{${p}}`))}}]}}}},meta:{type:"suggestion",docs:{description:"Use destructured variables over properties.",recommended:!1},fixable:"code",hasSuggestions:!0,messages:{[cl]:"Use destructured variables over properties.",[cc]:"Replace `{{expression}}` with destructured property `{{property}}`."}}}),cm=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];const cg=["Object","Array","ArrayBuffer","DataView","Date","Error","Function","Map","WeakMap","Set","WeakSet","Promise","RegExp","SharedArrayBuffer","Proxy","WeakRef","FinalizationRegistry",...cm],{GlobalReferenceTracker:cy}=ig,cb=["BigInt","Boolean","Number","String","Symbol"],{switchCallExpressionToNewExpression:cv,switchNewExpressionToCallExpression:cx}=uv;var cE=/*@__PURE__*/ec({create:e=>{let{sourceCode:t}=e,r=new cy({objects:cb,type:cy.CONSTRUCT,handle:e=>(function({node:e,path:[t]},r){let n={node:e,messageId:"disallow",data:{name:t}};return"String"!==t&&"Boolean"!==t&&"Number"!==t&&(n.fix=function*(t){yield*cx(e,r,t)}),n})(e,t)}),n=new cy({objects:cg,type:cy.CALL,handle:e=>(function({node:e,path:[t]},r){if("Object"===t){let{parent:t}=e;if("BinaryExpression"===t.type&&("==="===t.operator||"!=="===t.operator)&&(t.left===e||t.right===e))return}return{node:e,messageId:"enforce",data:{name:t},fix:t=>cv(e,r,t)}})(e,t)});return{*"Program:exit"(e){let u=t.getScope(e);yield*r.track(u),yield*n.track(u)}}},meta:{type:"suggestion",docs:{description:"Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.",recommended:!0},fixable:"code",messages:{enforce:"Use `new {{name}}()` instead of `{{name}}()`.",disallow:"Use `{{name}}()` instead of `new {{name}}()`."}}});const{hasSideEffect:cC,isSemicolonToken:cA}=tm,{getCallExpressionTokens:cD,getCallExpressionArgumentsText:cS}=nI,{isNodeMatches:c_}=tR,cw=function(e,t){let{parent:r}=e;for(let n of t.visitorKeys[r.type]||Object.keys(r)){let t=r[n];if(t===e)return;if(Array.isArray(t)){let r=t.indexOf(e);if(-1!==r)return t[r-1]}}},{isMethodCall:cT}=tK,cP="error",ck="suggestion",cF=e=>e&&"ExpressionStatement"===e.parent.type&&e.parent.expression===e&&cT(e,{method:"push",optionalCall:!1,optionalMember:!1});var cI=/*@__PURE__*/ec({create:function(e){let{ignore:t}={ignore:[],...e.options[0]},r=["stream","this","this.stream","process.stdin","process.stdout","process.stderr",...t],{sourceCode:n}=e;return{CallExpression(e){if(!cF(e))return;let t=e.callee.object;if(c_(t,r))return;let u=function(e,t){let r=cw(e.parent,t)?.expression;if(cF(r))return r}(e,n);if(!u||!nr(u.callee.object,t))return;let a=e.arguments,i={node:e.callee.property,messageId:cP},o=function*(t){if(a.length>0){let r=cS(n,e),{trailingCommaToken:a,closingParenthesisToken:i}=cD(n,u);yield a?t.insertTextAfter(a,` ${r}`):t.insertTextBefore(i,u.arguments.length>0?`, ${r}`:r)}let r=u.parent,i=e.parent,o=!cA(n.getLastToken(r))&&cA(n.getLastToken(i));yield t.replaceTextRange([r.range[1],i.range[1]],o?";":"")};return a.some(e=>cC(e,n))?i.suggest=[{messageId:ck,fix:o}]:i.fix=o,i}}},meta:{type:"suggestion",docs:{description:"Enforce combining multiple `Array#push()` into one call.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignore:{type:"array",uniqueItems:!0}}}],messages:{[cP]:"Do not call `Array#push()` multiple times.",[ck]:"Merge with previous one."}}});const{isStaticRequire:cB,isMethodCall:cj,isLiteral:cL}=tK,cO="no-process-exit",cN=e=>cL(e,"node:worker_threads")||cL(e,"worker_threads");var cR=/*@__PURE__*/ec({create:e=>{let t;if(0===e.sourceCode.lines[0].indexOf("#!"))return{};let r=!1,n=[];e.on("CallExpression",e=>{cB(e)&&cN(e.arguments[0])&&(r=!0)}),e.on("ImportDeclaration",e=>{"Literal"===e.source.type&&cN(e.source)&&(r=!0)}),e.on("CallExpression",e=>{cj(e,{object:"process",methods:["on","once"],minimumArguments:1,optionalCall:!1,optionalMember:!1})&&(t=e)}),e.onExit("CallExpression",e=>{e===t&&(t=void 0)}),e.on("CallExpression",e=>{!t&&cj(e,{object:"process",method:"exit",optionalCall:!1,optionalMember:!1})&&n.push(e)}),e.onExit("Program",function*(){if(!r)for(let e of n)yield{node:e,messageId:cO}})},meta:{type:"suggestion",docs:{description:"Disallow `process.exit()`.",recommended:!0},messages:{[cO]:"Only use `process.exit()` in CLI apps. Throw an error instead."}}});const{isCommaToken:cM}=tm,{isMethodCall:c$,isExpressionStatement:cU}=tK,{getParenthesizedText:cz,isParenthesized:cV,needsSemicolon:cq,shouldAddParenthesesToAwaitExpressionArgument:cW}=nI,cG="no-single-promise-in-promise-methods/error",cZ="no-single-promise-in-promise-methods/unwrap",cH="no-single-promise-in-promise-methods/use-promise-resolve",cK=["all","any","race"],cY=e=>c$(e,{object:"Promise",methods:cK,optionalMember:!1,optionalCall:!1,argumentsLength:1})&&"ArrayExpression"===e.arguments[0].type&&1===e.arguments[0].elements.length&&e.arguments[0].elements[0]&&"SpreadElement"!==e.arguments[0].elements[0].type,cJ=(e,t)=>r=>{let[n]=e.arguments[0].elements,u=cz(n,t);return!cV(n,t)&&cW(n)&&(u=`(${u})`),r.replaceText(e,u)},cX=(e,t)=>r=>{let[n]=e.arguments[0].elements,u=cz(n,t);return cV(n,t)||"Identifier"===n.type||"MemberExpression"===n.type||(u=`(${u})`),cq(t.getTokenBefore(e),t,u)&&(u=`;${u}`),r.replaceText(e,u)},cQ=(e,t)=>function*(r){let n=e.callee.property;yield r.replaceText(n,"resolve");let[u]=e.arguments,a=t.getFirstToken(u),[i,o]=t.getLastTokens(u,2);yield r.remove(a),yield r.remove(o),cM(i)&&(yield r.remove(i))};var c0=/*@__PURE__*/ec({create:e=>({CallExpression(t){if(!cY(t))return;let r=t.callee.property.name,n={node:t.arguments[0],messageId:cG,data:{method:r}},{sourceCode:u}=e;return"AwaitExpression"===t.parent.type&&t.parent.argument===t&&("all"!==r||cU(t.parent.parent))?n.fix=cJ(t,u):"all"===r||(n.suggest=[{messageId:cZ,fix:cX(t,u)},{messageId:cH,fix:cQ(t,u)}]),n}}),meta:{type:"suggestion",docs:{description:"Disallow passing single-element arrays to `Promise` methods.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[cG]:"Wrapping single-element array with `Promise.{{method}}()` is unnecessary.",[cZ]:"Use the value directly.",[cH]:"Switch to `Promise.resolve(…)`."}}}),c1=function(e,{test:t,expected:r,ruleId:n}){if(t?.(e)||(r=(r=Array.isArray(r)?r:[r]).map(e=>"string"==typeof e?{value:e}:e),!t&&r.some(t=>Object.entries(t).every(([t,r])=>e[t]===r))))return;let u=`'${JSON.stringify({value:e.value,type:e.type})}'`;r=r.map(e=>`'${JSON.stringify(e)}'`).join(" or ");let a=`\`${n}\`: Unexpected token ${u}`,i=`https://github.com/sindresorhus/eslint-plugin-unicorn/issues/new?title=${encodeURIComponent(a)}`;throw Error(`Expected token ${r}, got ${u}.
|
|
4
|
-
Please open an issue at ${i}.`)};const{isSemicolonToken:c2}=tm,c3=function(e,t){let{loc:r,body:n}=e,u=t.getTokenBefore(n),{start:a}=r,{end:i}=u.loc;return{start:a,end:i}},{removeSpacesAfter:c4}=uv,c5="no-static-only-class",c8=({type:e,value:t})=>"Punctuator"===e&&"="===t,c6=e=>"ClassDeclaration"===e.type&&"ExportDefaultDeclaration"===e.parent.type&&e.parent.declaration===e,c9=e=>"PropertyDefinition"===e.type,c7=e=>"MethodDefinition"===e.type;var fe=/*@__PURE__*/ec({create:function(e){e.on(["ClassDeclaration","ClassExpression"],t=>{if(t.superClass||t.decorators&&t.decorators.length>0||"ClassBody"!==t.body.type||0===t.body.body.length||t.body.body.some(e=>!function(e){let{private:t,static:r,declare:n,readonly:u,accessibility:a,decorators:i,key:o}=e;return!(!c9(e)&&!c7(e)||!r||t||"PrivateIdentifier"===o.type||n||u||void 0!==a||Array.isArray(i)&&i.length>0)}(e)))return;let{sourceCode:r}=e;return{node:t,loc:c3(t,r),messageId:c5,fix:function(e,t){let{type:r,id:n,body:u,declare:a,abstract:i,implements:o,parent:s}=e;if(a||i||Array.isArray(o)&&o.length>0||"ClassExpression"===r&&n)return;let d=c6(e);if(!d||!n){for(let e of u.body)if(c9(e)&&(e.typeAnnotation||e.value&&t.getText(e.value).includes("this")))return;return function*(n){let a=t.getFirstToken(e);if(c1(a,{expected:{type:"Keyword",value:"class"},ruleId:"no-static-only-class"}),d||"ClassExpression"===r){if("ClassExpression"===r&&"ReturnStatement"===s.type&&u.loc.start.line!==s.loc.start.line&&t.text.slice(a.range[1],u.range[0]).trim()){yield n.replaceText(a,"{");let e=t.getFirstToken(u);yield n.remove(e)}else yield n.replaceText(a,""),yield c4(a,t,n)}else yield n.replaceText(a,"const"),yield n.insertTextBefore(u,"= "),yield n.insertTextAfter(u,";");for(let e of u.body)yield*function*(e,t,r){let n=t.getFirstToken(e);c1(n,{expected:{type:"Keyword",value:"static"},ruleId:"no-static-only-class"}),yield r.remove(n),yield c4(n,t,r);let u=c9(e)?t.getLastToken(e):t.getTokenAfter(e),a=c2(u);if(c9(e)){let{key:n,value:i}=e;if(i){let e=t.getTokenAfter(n,c8);yield r.replaceText(e,":")}else a?yield r.insertTextBefore(u,": undefined"):yield r.insertTextAfter(e,": undefined")}yield a?r.replaceText(u,","):r.insertTextAfter(e,",")}(e,t,n)}}}(t,r)}})},meta:{type:"suggestion",docs:{description:"Disallow classes that only have static members.",recommended:!0},fixable:"code",messages:{[c5]:"Use an object instead of a class with only static members."}}});const{isParenthesized:ft}=tm,{fixSpaceAroundKeyword:fr}=uv,fn="no-unreadable-array-destructuring",fu=(e,t,r)=>null===e&&null===r[t+1];var fa=/*@__PURE__*/ec({create:e=>{let{sourceCode:t}=e;return{ArrayPattern(e){let{elements:r,parent:n}=e;if(r.length<3||!r.some((e,t,r)=>fu(e,t,r)))return;let u={node:e,messageId:fn},a=r.filter(e=>null!==e);if("VariableDeclarator"===n.type&&n.id===e&&null!==n.init&&1===a.length){let[i]=a;"AssignmentPattern"!==i.type&&(u.fix=function*(u){let a=r.indexOf(i),o="RestElement"===i.type,s=o?i.argument:i;yield u.replaceText(e,t.getText(s));let d=o?`.slice(${a})`:`[${a}]`,l=n.init;!ft(l,t)&&ny(l,t)?(yield u.insertTextBefore(l,"("),yield u.insertTextAfter(n,`)${d}`)):yield u.insertTextAfter(n,d),yield*fr(u,e,t)})}return u}}},meta:{type:"suggestion",docs:{description:"Disallow unreadable array destructuring.",recommended:!0},fixable:"code",messages:{[fn]:"Array destructuring may not contain consecutive ignored values."}}});const{isCommaToken:fi}=tm,{removeParentheses:fo,fixSpaceAroundKeyword:fs,addParenthesizesToReturnOrThrowExpression:fd}=uv,{isParenthesized:fl,isOnSameLine:fc}=nI,{isNewExpression:ff,isMethodCall:fp,isCallOrNewExpression:fh}=tK,fm="spread-in-list",fg="iterable-to-array",fy="iterable-to-array-in-for-of",fb="iterable-to-array-in-yield-star",fv="clone-array",fx=e=>"ArrayExpression"===e.type&&1===e.elements.length&&e.elements[0]?.type==="SpreadElement",fE={ArrayExpression:"array literal",ObjectExpression:"object literal",CallExpression:"arguments",NewExpression:"arguments"};function*fC(e,t,r){let[n,u,a]=r.getFirstTokens(t,3);yield e.remove(n),yield e.remove(u);let[i,o]=r.getLastTokens(t,2);yield e.remove(o),fi(i)&&(yield e.remove(i));let{parent:s}=t;if(("ReturnStatement"===s.type||"ThrowStatement"===s.type)&&s.argument===t&&!fc(n,a)&&!fl(t,r)){yield*fd(e,s,r);return}yield*fs(e,t,r)}var fA=/*@__PURE__*/ec({create:e=>{let{sourceCode:t}=e;e.on(["ArrayExpression","ObjectExpression"],e=>{if(!("SpreadElement"===e.parent.type&&e.parent.argument===e&&("ObjectExpression"===e.type&&"ObjectExpression"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent)||"ArrayExpression"===e.type&&("ArrayExpression"===e.parent.parent.type&&e.parent.parent.elements.includes(e.parent)||fh(e.parent.parent)&&e.parent.parent.arguments.includes(e.parent)))))return;let r=e.parent,n=t.getFirstToken(r),u=r.parent.type;return{node:n,messageId:fm,data:{argumentType:"ArrayExpression"===e.type?"array":"object",parentDescription:fE[u]},*fix(r){let a;yield r.remove(n),yield*fo(e,r,t);let i=t.getFirstToken(e);yield r.remove(i);let[o,s]=t.getLastTokens(e,2);if(yield r.remove(s),fi(o)&&(yield r.remove(o)),"CallExpression"===u||"NewExpression"===u)for(let[n,u]of(a=t.getFirstToken(e),e.elements.map((r,n,u)=>{if(n===u.length-1){let r=t.getLastToken(e,{skip:1});return fi(r)?r:void 0}let i=t.getTokenAfter(r||a,fi);return a=i,i})).entries())e.elements[n]||(yield r.insertTextBefore(u,"undefined"))}}}),e.on("ArrayExpression",e=>{if(!fx(e))return;let{parent:r}=e;if(!("ForOfStatement"===r.type&&r.right===e||"YieldExpression"===r.type&&r.delegate&&r.argument===e||(ff(r,{names:["Map","WeakMap","Set","WeakSet"],argumentsLength:1})||ff(r,{names:cm,minimumArguments:1})||fp(r,{object:"Promise",methods:["all","allSettled","any","race"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||fp(r,{objects:["Array",...cm],method:"from",argumentsLength:1,optionalCall:!1,optionalMember:!1})||fp(r,{object:"Object",method:"fromEntries",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&r.arguments[0]===e))return;let n="",u=fg;switch(r.type){case"ForOfStatement":u=fy;break;case"YieldExpression":u=fb;break;case"NewExpression":n=`new ${r.callee.name}(…)`;break;case"CallExpression":n=`${r.callee.object.name}.${r.callee.property.name}(…)`}return{node:e,messageId:u,data:{parentDescription:n},fix:r=>fC(r,e,t)}}),e.on("ArrayExpression",e=>{if(!fx(e))return;let r=e.elements[0].argument;if(!(fp(r,{methods:["concat","copyWithin","filter","flat","flatMap","map","slice","splice","toReversed","toSorted","toSpliced","with"],optionalCall:!1,optionalMember:!1})||fp(r,{method:"split",optionalCall:!1,optionalMember:!1})||fp(r,{object:"Object",methods:["keys","values"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||"AwaitExpression"===r.type&&fp(r.argument,{object:"Promise",methods:["all","allSettled"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||fp(r,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||ff(r,{name:"Array"})))return;let n={node:e,messageId:fv};return ff(r,{name:"Array"})||"CallExpression"===r.type&&"MemberExpression"===r.callee.type&&"Identifier"===r.callee.property.type&&"slice"===r.callee.property.name?n:Object.assign(n,{fix:r=>fC(r,e,t)})})},meta:{type:"suggestion",docs:{description:"Disallow unnecessary spread.",recommended:!0},fixable:"code",messages:{[fm]:"Spread an {{argumentType}} literal in {{parentDescription}} is unnecessary.",[fg]:"`{{parentDescription}}` accepts iterable as argument, it's unnecessary to convert to an array.",[fy]:"`for…of` can iterate over iterable, it's unnecessary to convert to an array.",[fb]:"`yield*` can delegate iterable, it's unnecessary to convert to an array.",[fv]:"Unnecessarily cloning an array."}}});const{isColonToken:fD}=tm,{isEmptyNode:fS}=tK,f_=function(e,t){let r=e.test||t.getFirstToken(e),n=t.getTokenAfter(r,fD);return{start:e.loc.start,end:n.loc.end}},fw="no-useless-switch-case/error",fT="no-useless-switch-case/suggestion",fP=e=>e.consequent.every(e=>fS(e));var fk=/*@__PURE__*/ec({create:e=>({*SwitchStatement(t){let{cases:r}=t;if(!(r.length<2)&&null===r.at(-1).test)for(let t=r.length-2;t>=0;t--){let n=r[t];if(!fP(n))break;yield{node:n,loc:f_(n,e.sourceCode),messageId:fw,suggest:[{messageId:fT,fix:e=>e.remove(n)}]}}}}),meta:{type:"suggestion",docs:{description:"Disallow useless case in switch statements.",recommended:!0},hasSuggestions:!0,messages:{[fw]:"Useless case in switch statement.",[fT]:"Remove this case."}}});const{isCommaToken:fF}=tm,{replaceNodeOrTokenAndSpacesBefore:fI}=uv,{isUndefined:fB,isFunction:fj}=tK,fL="no-useless-undefined",fO=new Set(["is","equal","notEqual","strictEqual","notStrictEqual","propertyVal","notPropertyVal","not","include","property","toBe","toHaveBeenCalledWith","toContain","toContainEqual","toEqual","same","notSame","strictSame","strictNotSame"]),fN=e=>{let t;return"Identifier"===e.type?t=e.name:"MemberExpression"===e.type&&!1===e.computed&&"Identifier"===e.property.type&&(t=e.property.name),fO.has(t)||"push"===t||"unshift"===t||"includes"===t||"add"===t||"has"===t||"set"===t||"createContext"===t||/^set[A-Z]/.test(t)||"ref"===t},fR=e=>{for(;e;e=e.upper)if("function"===e.type)return e.block},fM=e=>!e.optional&&"MemberExpression"===e.callee.type&&!e.callee.computed&&"Identifier"===e.callee.property.type&&"bind"===e.callee.property.name,f$=e=>/\.(?:ts|mts|cts|tsx)$/i.test(e.physicalFilename);var fU=/*@__PURE__*/ec({create:e=>{let{sourceCode:t}=e,r=(e,r,n)=>{if(n){let r=fR(t.getScope(e));if(r?.returnType)return}return{node:e,messageId:fL,fix:r}},n={checkArguments:!0,checkArrowFunctionBody:!0,...e.options[0]},u=(e,r)=>fI(e,"",r,t);e.on("Identifier",e=>{if(fB(e)&&"ReturnStatement"===e.parent.type&&e.parent.argument===e)return r(e,t=>u(e,t),!0)}),e.on("Identifier",e=>{if(fB(e)&&"YieldExpression"===e.parent.type&&!e.parent.delegate&&e.parent.argument===e)return r(e,t=>u(e,t))}),n.checkArrowFunctionBody&&e.on("Identifier",e=>{if(fB(e)&&"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e)return r(e,r=>fI(e," {}",r,t),!0)}),e.on("Identifier",e=>{if(fB(e)&&"VariableDeclarator"===e.parent.type&&e.parent.init===e&&"VariableDeclaration"===e.parent.parent.type&&"const"!==e.parent.parent.kind&&e.parent.parent.declarations.includes(e.parent))return r(e,t=>t.removeRange([e.parent.id.range[1],e.range[1]]),!0)}),e.on("Identifier",t=>{if(fB(t)&&"AssignmentPattern"===t.parent.type&&t.parent.right===t)return r(t,function*(r){let n=t.parent,{left:u}=n;yield r.removeRange([u.range[1],t.range[1]]),(u.typeAnnotation||f$(e))&&!u.optional&&fj(n.parent)&&n.parent.params.includes(n)&&(yield u.typeAnnotation?r.insertTextBefore(u.typeAnnotation,"?"):r.insertTextAfter(u,"?"))},!0)}),n.checkArguments&&e.on("CallExpression",e=>{if(fN(e.callee))return;let r=e.arguments;if(fM(e)&&1!==r.length)return;let n=[];for(let e=r.length-1;e>=0;e--){let t=r[e];if(fB(t))n.unshift(t);else break}if(0===n.length)return;let u=n[0],a=n.at(-1);return{messageId:fL,loc:{start:u.loc.start,end:a.loc.end},fix(e){let i=u.range[0],o=a.range[1],s=r[r.length-n.length-1];if(s)i=s.range[1];else{let e=t.getTokenAfter(a);fF(e)&&(o=e.range[1])}return e.removeRange([i,o])}}})},meta:{type:"suggestion",docs:{description:"Disallow useless `undefined`.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{checkArguments:{type:"boolean"},checkArrowFunctionBody:{type:"boolean"}}}],messages:{[fL]:"Do not use useless `undefined`."}}});const{isBigIntLiteral:fz}=tK,fV="numeric-separators-style";function fq(e,{minimumDigits:t,groupLength:r},n){let{length:u}=e;if(u<t)return e;let a=[];if(n)for(let t=0;t<u;t+=r){let n=Math.min(t+r,u);a.push(e.slice(t,n))}else for(let t=u;t>0;t-=r){let n=Math.max(t-r,0);a.unshift(e.slice(n,t))}return a.join("_")}const fW={binary:{minimumDigits:0,groupLength:4},octal:{minimumDigits:0,groupLength:4},hexadecimal:{minimumDigits:0,groupLength:2},number:{minimumDigits:5,groupLength:3}},fG=({minimumDigits:e,groupLength:t})=>({type:"object",additionalProperties:!1,properties:{onlyIfContainsSeparator:{type:"boolean"},minimumDigits:{type:"integer",minimum:0,default:e},groupLength:{type:"integer",minimum:1,default:t}}});var fZ=/*@__PURE__*/ec({create:e=>{let{onlyIfContainsSeparator:t,binary:r,octal:n,hexadecimal:u,number:a}={onlyIfContainsSeparator:!1,...e.options[0]},i={"0b":{onlyIfContainsSeparator:t,...fW.binary,...r},"0o":{onlyIfContainsSeparator:t,...fW.octal,...n},"0x":{onlyIfContainsSeparator:t,...fW.hexadecimal,...u},"":{onlyIfContainsSeparator:t,...fW.number,...a}};return{Literal(e){if(!nm.isNumeric(e)||nm.isLegacyOctal(e))return;let{raw:t}=e,r=t,n="";fz(e)&&(r=t.slice(0,-1),n="n");let u=r.replaceAll("_",""),{prefix:a,data:o}=nm.getPrefix(u),{onlyIfContainsSeparator:s}=i[a.toLowerCase()];if(s&&!t.includes("_"))return;let d=function(e,{prefix:t,data:r},n){let u=n[t.toLowerCase()];if(t)return t+fq(r,u);let{number:a,mark:i,sign:o,power:s}=nm.parseNumber(e);return function(e,t){let{integer:r,dot:n,fractional:u}=nm.parseFloatNumber(e);return fq(r,t)+n+fq(u,t,!0)}(a,u)+i+o+fq(s,n[""])}(u,{prefix:a,data:o},i)+n;if(t!==d)return{node:e,messageId:fV,fix:t=>t.replaceText(e,d)}}}},meta:{type:"suggestion",docs:{description:"Enforce the style of numeric separators by correctly grouping digits.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{...Object.fromEntries(Object.entries(fW).map(([e,t])=>[e,fG(t)])),onlyIfContainsSeparator:{type:"boolean",default:!1}}}],messages:{[fV]:"Invalid group length in numeric value."}}});const{isParenthesized:fH,findVariable:fK}=tm,{extendFixRange:fY,removeMemberExpressionProperty:fJ,removeMethodCall:fX,renameVariable:fQ}=uv,{isLeftHandSide:f0,singular:f1,getScopes:f2,avoidCapture:f3,getVariableIdentifiers:f4}=nI,{isMethodCall:f5}=tK,f8="error-zero-index",f6="error-shift",f9="error-pop",f7="error-at-zero",pe="error-at-minus-one",pt="error-destructuring-declaration",pr="error-destructuring-assignment",pn="error-variable",pu="suggest-nullish-coalescing-operator",pa="suggest-logical-or-operator",pi=e=>f5(e,{method:"filter",minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}),po=(e,t)=>{if("AssignmentExpression"!==e.type||fH(e,t))return!1;let{left:r}=pd(e),[n]=r.elements,{type:u}="AssignmentPattern"===n.type?n.left:n;return"ObjectExpression"===u||"ObjectPattern"===u},ps=(e,t)=>"LogicalExpression"===e.type&&(e.operator===t||"||"===t&&"??"===e.operator||"??"===t&&("||"===e.operator||"&&"===e.operator))||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type,pd=e=>e?"AssignmentExpression"===e.type?e:"VariableDeclarator"===e.type?{left:e.id,right:e.init}:{}:{};function*pl(e,t,r){let{left:n}=pd(e),[u]=n.elements,a=t.getText("AssignmentPattern"===u.type?u.left:u);yield r.replaceText(n,a),po(e,t)&&(yield r.insertTextBefore(e,"("),yield r.insertTextAfter(e,")"))}const pc=e=>"AssignmentPattern"===pd(e).left.elements[0].type,pf=(e,t,r,n)=>{let{left:u,right:a}=pd(e),[i]=u.elements,o=i.right,s=t.getText(o);return(fH(o,t)||ps(o,n))&&(s=`(${s})`),r.insertTextAfter(a,` ${n} ${s}`)},pp=(e,t)=>{let r,n;let{property:u}=pd(t).right.callee;return pc(t)?r=[{operator:"??",messageId:pu},{operator:"||",messageId:pa}].map(({messageId:r,operator:n})=>({messageId:r,*fix(r){yield r.replaceText(u,"find"),yield pf(t,e,r,n),yield*pl(t,e,r)}})):n=function*(r){yield r.replaceText(u,"find"),yield*pl(t,e,r)},{fix:n,suggest:r}},ph=e=>"MemberExpression"===e.parent.type&&!0===e.parent.computed&&e.parent.object===e&&"Literal"===e.parent.property.type&&"0"===e.parent.property.raw,pm=e=>{let{left:t,right:r}=pd(e.parent);return t&&r&&r===e&&"ArrayPattern"===t.type&&1===t.elements.length&&t.elements[0]&&"RestElement"!==t.elements[0].type};var pg=/*@__PURE__*/ec({create:e=>{let{sourceCode:t}=e,{checkFromLast:r}={checkFromLast:!0,...e.options[0]};e.on("MemberExpression",e=>{if(e.computed&&"Literal"===e.property.type&&"0"===e.property.raw&&pi(e.object)&&!f0(e))return{node:e.object.callee.property,messageId:f8,fix:r=>[r.replaceText(e.object.callee.property,"find"),fJ(r,e,t)]}}),e.on("CallExpression",e=>{if(f5(e,{method:"shift",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&pi(e.callee.object))return{node:e.callee.object.callee.property,messageId:f6,fix:r=>[r.replaceText(e.callee.object.callee.property,"find"),...fX(r,e,t)]}}),e.on("VariableDeclarator",e=>{if("ArrayPattern"===e.id.type&&1===e.id.elements.length&&e.id.elements[0]&&"RestElement"!==e.id.elements[0].type&&pi(e.init))return{node:e.init.callee.property,messageId:pt,...pp(t,e)}}),e.on("AssignmentExpression",e=>{if("ArrayPattern"===e.left.type&&1===e.left.elements.length&&e.left.elements[0]&&"RestElement"!==e.left.elements[0].type&&pi(e.right))return{node:e.right.callee.property,messageId:pr,...pp(t,e)}}),e.on("VariableDeclarator",e=>{if(!("Identifier"===e.id.type&&pi(e.init)&&"VariableDeclaration"===e.parent.type&&e.parent.declarations.includes(e)&&!("ExportNamedDeclaration"===e.parent.parent.type&&e.parent.parent.declaration===e.parent)))return;let r=t.getScope(e),n=fK(r,e.id),u=f4(n).filter(t=>t!==e.id);if(0===u.length)return;let a=[],i=[];for(let e of u)if(ph(e))a.push(e.parent);else{if(!pm(e))return;i.push(e.parent)}let o={node:e.init.callee.property,messageId:pn};return i.some(e=>pc(e))||(o.fix=function*(u){yield u.replaceText(e.init.callee.property,"find");let o=f1(e.id.name);if(o){let e=f3(o,f2(r));yield*fQ(n,e,u),yield*fY(u,t.ast.range)}for(let e of a)yield fJ(u,e,t);for(let e of i)yield*pl(e,t,u)}),o}),e.on("CallExpression",e=>{if(f5(e,{method:"at",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"Literal"===e.arguments[0].type&&"0"===e.arguments[0].raw&&pi(e.callee.object))return{node:e.callee.object.callee.property,messageId:f7,fix:r=>[r.replaceText(e.callee.object.callee.property,"find"),...fX(r,e,t)]}}),r&&(e.on("CallExpression",e=>{if(f5(e,{method:"pop",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&pi(e.callee.object))return{node:e.callee.object.callee.property,messageId:f9,fix:r=>[r.replaceText(e.callee.object.callee.property,"findLast"),...fX(r,e,t)]}}),e.on("CallExpression",e=>{if(f5(e,{method:"at",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"UnaryExpression"===e.arguments[0].type&&"-"===e.arguments[0].operator&&e.arguments[0].prefix&&"Literal"===e.arguments[0].argument.type&&"1"===e.arguments[0].argument.raw&&pi(e.callee.object))return{node:e.callee.object.callee.property,messageId:pe,fix:r=>[r.replaceText(e.callee.object.callee.property,"findLast"),...fX(r,e,t)]}}))},meta:{type:"suggestion",docs:{description:"Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkFromLast:{type:"boolean",default:!0}}}],messages:{[pn]:"Prefer `.find(…)` over `.filter(…)`.",[f8]:"Prefer `.find(…)` over `.filter(…)[0]`.",[f7]:"Prefer `.find(…)` over `.filter(…).at(0)`.",[f6]:"Prefer `.find(…)` over `.filter(…).shift()`.",[f9]:"Prefer `.findLast(…)` over `.filter(…).pop()`.",[pe]:"Prefer `.findLast(…)` over `.filter(…).at(-1)`.",[pt]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[pr]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[pu]:"Replace `.filter(…)` with `.find(…) ?? …`.",[pa]:"Replace `.filter(…)` with `.find(…) || …`."}}});const{isNodeMatches:py}=tR,{isMethodCall:pb}=tK,{removeMethodCall:pv}=uv,px="prefer-array-flat-map",pE=["React.Children","Children"];var pC=/*@__PURE__*/ec({create:e=>({CallExpression(t){if(!(pb(t,{method:"flat",optionalCall:!1,optionalMember:!1})&&(0===t.arguments.length||1===t.arguments.length&&"Literal"===t.arguments[0].type&&"1"===t.arguments[0].raw)&&pb(t.callee.object,{method:"map",optionalCall:!1,optionalMember:!1})))return;let r=t.callee.object;if(py(r.callee.object,pE))return;let{sourceCode:n}=e,u=r.callee.property;return{node:t,loc:{start:u.loc.start,end:t.loc.end},messageId:px,*fix(e){yield*pv(e,t,n),yield e.replaceText(u,"flatMap")}}}}),meta:{type:"suggestion",docs:{description:"Prefer `.flatMap(…)` over `.map(…).flat()`.",recommended:!0},fixable:"code",messages:{[px]:"Prefer `.flatMap(…)` over `.map(…).flat()`."}}});const{getParenthesizedText:pA,isArrayPrototypeProperty:pD,isNodeMatches:pS,isNodeMatchesNameOrPath:p_,isParenthesized:pw,isSameIdentifier:pT,needsSemicolon:pP,shouldAddParenthesesToMemberExpressionObject:pk}=nI,{fixSpaceAroundKeyword:pF}=uv,{isMethodCall:pI,isCallExpression:pB}=tK,pj="prefer-array-flat",pL=e=>"ArrayExpression"===e.type&&0===e.elements.length,pO={testFunction(e){if(!pI(e,{method:"flatMap",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return!1;let[t]=e.arguments;return"ArrowFunctionExpression"===t.type&&!t.async&&1===t.params.length&&pT(t.params[0],t.body)},getArrayNode:e=>e.callee.object,description:"Array#flatMap()"},pN={testFunction(e){if(!pI(e,{method:"reduce",argumentsLength:2,optionalCall:!1,optionalMember:!1}))return!1;let[t,r]=e.arguments;if(!("ArrowFunctionExpression"===t.type&&!t.async&&2===t.params.length&&pL(r)))return!1;let n=t.body,[u,a]=t.params;return pI(n,{method:"concat",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&pT(u,n.callee.object)&&pT(a,n.arguments[0])||"ArrayExpression"===n.type&&2===n.elements.length&&n.elements.every((e,r)=>e?.type==="SpreadElement"&&"Identifier"===e.argument.type&&pT(t.params[r],e.argument))},getArrayNode:e=>e.callee.object,description:"Array#reduce()"},pR={testFunction:e=>pI(e,{method:"concat",argumentsLength:1,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&pL(e.callee.object),getArrayNode(e){let t=e.arguments[0];return"SpreadElement"===t.type?t.argument:t},description:"[].concat()",shouldSwitchToArray:e=>"SpreadElement"!==e.arguments[0].type},pM={testFunction(e){if(!(pI(e,{methods:["apply","call"],argumentsLength:2,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&pD(e.callee.object,{property:"concat"})))return!1;let[t,r]=e.arguments;return pL(t)&&("call"===e.callee.property.name||"SpreadElement"!==r.type)},getArrayNode(e){let t=e.arguments[1];return"SpreadElement"===t.type?t.argument:t},description:"Array.prototype.concat()",shouldSwitchToArray:e=>"SpreadElement"!==e.arguments[1].type&&"call"===e.callee.property.name},p$=["_.flatten","lodash.flatten","underscore.flatten"];var pU=/*@__PURE__*/ec({create:function(e){let{functions:t}={functions:[],...e.options[0]},r=[...t,...p$],n=[pO,pN,pR,pM,{testFunction:e=>pB(e,{argumentsLength:1,optional:!1})&&pS(e.callee,r),getArrayNode:e=>e.arguments[0],description:e=>`${r.find(t=>p_(e.callee,t)).trim()}()`}];return{*CallExpression(t){for(let{testFunction:r,description:u,getArrayNode:a,shouldSwitchToArray:i}of n){if(!r(t))continue;let n=a(t),o={description:"string"==typeof u?u:u(t)},s={node:t,messageId:pj,data:o},{sourceCode:d}=e;d.getCommentsInside(t).length===d.getCommentsInside(n).length&&(s.fix=function(e,t,r,n){return"function"==typeof n&&(n=n(e)),function*(u){let a=pA(t,r);n?a=`[${a}]`:!pw(t,r)&&pk(t,r)&&(a=`(${a})`),a=`${a}.flat()`,pP(r.getTokenBefore(e),r,a)&&(a=`;${a}`),yield u.replaceText(e,a),yield*pF(u,e,r)}}(t,n,d,i)),yield s}}}},meta:{type:"suggestion",docs:{description:"Prefer `Array#flat()` over legacy techniques to flatten arrays.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{functions:{type:"array",uniqueItems:!0}}}],messages:{[pj]:"Prefer `Array#flat()` over `{{description}}` to flatten an array."}}});const{checkVueTemplate:pz}=oI,{isBooleanNode:pV,getParenthesizedRange:pq,isNodeValueNotFunction:pW}=nI,{removeMemberExpressionProperty:pG}=uv,{isLiteral:pZ,isUndefined:pH,isMethodCall:pK,isMemberExpression:pY}=tK,pJ="some",pX="some-suggestion",pQ="filter",p0=e=>"BinaryExpression"===e.parent.type&&e.parent.left===e&&(("!="===e.parent.operator||"=="===e.parent.operator||"==="===e.parent.operator||"!=="===e.parent.operator)&&pH(e.parent.right)||("!="===e.parent.operator||"=="===e.parent.operator)&&pZ(e.parent.right,null)),p1=e=>"UnaryExpression"===e.type&&"-"===e.operator&&e.argument&&"Literal"===e.argument.type&&1===e.argument.value,p2=e=>pZ(e,0);var p3=/*@__PURE__*/ec({create:pz(e=>{e.on("CallExpression",t=>{if(!pK(t,{methods:["find","findLast"],minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}))return;let r=p0(t);if(!r&&!pV(t))return;let n=t.callee.property;return{node:n,messageId:pJ,data:{method:n.name},suggest:[{messageId:pX,*fix(u){if(yield u.replaceText(n,"some"),!r)return;let a=pq(t,e.sourceCode);yield u.replaceTextRange([a[1],t.parent.range[1]],""),"!="!==t.parent.operator&&"!=="!==t.parent.operator&&(yield u.insertTextBeforeRange(a,"!"))}}]}}),e.on("BinaryExpression",t=>{let{left:r,right:n,operator:u}=t;if(!(pK(r,{methods:["findIndex","findLastIndex"],argumentsLength:1,optionalCall:!1,optionalMember:!1})&&(["!==","!=",">","===","=="].includes(u)&&p1(n)||[">=","<"].includes(u)&&p2(n))))return;let a=r.callee.property;return{node:a,messageId:pJ,data:{method:a.name},*fix(n){["===","==","<"].includes(u)&&(yield n.insertTextBefore(t,"!")),yield n.replaceText(a,"some");let[i]=e.sourceCode.getTokenAfter(r,e=>"Punctuator"===e.type&&e.value===u).range,[,o]=t.range;yield n.removeRange([i,o])}}}),e.on("BinaryExpression",t=>{if(!((">"===t.operator||"!=="===t.operator)&&"Literal"===t.right.type&&"0"===t.right.raw&&pY(t.left,{property:"length",optional:!1})&&pK(t.left.object,{method:"filter",optionalCall:!1,optionalMember:!1})))return;let r=t.left.object,[n]=r.arguments;if(!n||pW(n))return;let u=r.callee.property;return{node:u,messageId:pQ,*fix(r){yield r.replaceText(u,"some");let{sourceCode:n}=e,a=t.left;yield pG(r,a,n),yield r.removeRange([pq(a,n)[1],t.range[1]])}}})}),meta:{type:"suggestion",docs:{description:"Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.",recommended:!0},fixable:"code",messages:{[pJ]:"Prefer `.some(…)` over `.{{method}}(…)`.",[pX]:"Replace `.{{method}}(…)` with `.some(…)`.",[pQ]:"Prefer `.some(…)` over non-zero length check from `.filter(…)`."},hasSuggestions:!0}});const{isMethodCall:p4}=tK,p5=e=>p4(e,{method:"charCodeAt",optionalCall:!1,optionalMember:!1})?"codePointAt":p4(e,{object:"String",method:"fromCharCode",optionalCall:!1,optionalMember:!1})?"fromCodePoint":void 0;var p8=/*@__PURE__*/ec({create:()=>({CallExpression(e){let t=p5(e);if(!t)return;let r=e.callee.property,n=r.name;return{node:r,messageId:`error/${n}`,suggest:[{messageId:`suggestion/${t}`,fix:e=>e.replaceText(r,t)}]}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.",recommended:!0},hasSuggestions:!0,messages:{"error/charCodeAt":"Prefer `String#codePointAt()` over `String#charCodeAt()`.","error/fromCharCode":"Prefer `String.fromCodePoint()` over `String.fromCharCode()`.","suggestion/codePointAt":"Use `String#codePointAt()`.","suggestion/fromCodePoint":"Use `String.fromCodePoint()`."}}});const{findVariable:p6}=tm,{functionTypes:p9}=tK,p7="preferDefaultParameters",he="preferDefaultParametersSuggest",ht=(e,t)=>e&&t&&"Identifier"===e.type&&"LogicalExpression"===t.type&&("||"===t.operator||"??"===t.operator)&&"Identifier"===t.left.type&&"Literal"===t.right.type,hr=(e,t)=>{if(!t)return!1;if("CallExpression"===t.type)return!0;for(let r of e.visitorKeys[t.type]){let n=t[r];if(Array.isArray(n)){for(let t of n)if(hr(e,t))return!0}else if(hr(e,n))return!0}return!1},hn=(e,t,r)=>{for(let n of t.body.body){if(n===r)break;if(hr(e,n))return!0}return!1},hu=(e,t,r)=>!!e&&t[0].identifier!==r||!e&&t.length>1,ha=(e,t)=>{let r=e.at(-1);return t&&t===r},hi=(e,t)=>{if("ArrowFunctionExpression"!==t.type||t.params.length>1)return!1;let[r]=t.params,n=e.getTokenBefore(r),u=e.getTokenAfter(r);return!u||!n||"("!==n.value||")"!==u.value},ho=(e,t,r)=>{let{line:n}=r.loc.start,{column:u}=r.loc.end,a=t.getText(r),i=t.lines[n-1],o=i.trim()===a,s=" "===i[u];return o?e.removeRange([t.getIndexFromLoc({line:n,column:0}),t.getIndexFromLoc({line:n+1,column:0})]):s?e.removeRange([r.range[0],r.range[1]+1]):e.remove(r)};var hs=/*@__PURE__*/ec({create:e=>{let{sourceCode:t}=e,r=[],n=(e,n,u,a)=>{let i=r.at(-1);if(!i||!ht(n,u))return;let{name:o}=n,{left:{name:s},right:{raw:d}}=u;if(a&&o!==s)return;let l=p6(t.getScope(e),s);if(!l)return;let{references:c}=l,{params:f}=i,p=f.find(e=>"Identifier"===e.type&&e.name===s);if(hn(t,i,e)||hu(a,c,n)||!ha(f,p))return;let h=hi(t,i)?`(${o} = ${d})`:`${o} = ${d}`;return{node:e,messageId:p7,suggest:[{messageId:he,fix:r=>[r.replaceText(p,h),ho(r,t,e)]}]}};e.on(p9,e=>{r.push(e)}),e.onExit(p9,()=>{r.pop()}),e.on("AssignmentExpression",e=>{if("ExpressionStatement"===e.parent.type&&e.parent.expression===e)return n(e.parent,e.left,e.right,!0)}),e.on("VariableDeclarator",e=>{if("VariableDeclaration"===e.parent.type&&e.parent.declarations[0]===e)return n(e.parent,e.id,e.init,!1)})},meta:{type:"suggestion",docs:{description:"Prefer default parameters over reassignment.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[p7]:"Prefer default parameters over reassignment.",[he]:"Replace reassignment with default parameter."}}});const{isParenthesized:hd,getParenthesizedText:hl}=t_,hc=function(e,{operator:t,property:r}){if(!r)throw Error("`property` is required.");return("LogicalExpression"!==e.type||e.operator!==t)&&("AwaitExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"ArrowFunctionExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type)},hf="prefer-logical-operator-over-ternary/error",hp="prefer-logical-operator-over-ternary/suggestion";function hh(e,t,r){if(nr(e,t))return!0;if(e.type!==t.type)return!1;switch(e.type){case"AwaitExpression":return hh(e.argument,t.argument,r);case"LogicalExpression":return e.operator===t.operator&&hh(e.left,t.left,r)&&hh(e.right,t.right,r);case"UnaryExpression":return e.operator===t.operator&&e.prefix===t.prefix&&hh(e.argument,t.argument,r);case"UpdateExpression":return!1}return r.getText(e)===r.getText(t)}function hm({sourceCode:e,conditionalExpression:t,left:r,right:n}){return{node:t,messageId:hf,suggest:["??","||"].map(u=>({messageId:hp,data:{operator:u},fix:a=>(function({fixer:e,sourceCode:t,conditionalExpression:r,left:n,right:u,operator:a}){let i=[n,u].map((e,r)=>{let n=hd(e,t),u=n?hl(e,t):t.getText(e);return!n&&hc(e,{operator:a,property:0===r?"left":"right"})&&(u=`(${u})`),u}).join(` ${a} `);return no(t.getTokenBefore(r),t,i)&&(i=`;${i}`),e.replaceText(r,i)})({fixer:a,sourceCode:e,conditionalExpression:t,left:r,right:n,operator:u})}))}}var hg=/*@__PURE__*/ec({create:e=>{let{sourceCode:t}=e;return{ConditionalExpression(e){let{test:r,consequent:n,alternate:u}=e;return hh(r,n,t)?hm({sourceCode:t,conditionalExpression:e,left:r,right:u}):"UnaryExpression"===r.type&&"!"===r.operator&&r.prefix&&hh(r.argument,u,t)?hm({sourceCode:t,conditionalExpression:e,left:r.argument,right:n}):void 0}}},meta:{type:"suggestion",docs:{description:"Prefer using a logical operator over a ternary.",recommended:!0},hasSuggestions:!0,messages:{[hf]:"Prefer using a logical operator over a ternary.",[hp]:"Switch to `{{operator}}` operator."}}});const{isOpeningParenToken:hy,isClosingParenToken:hb}=tm,hv="with-name",hx="without-name";var hE=/*@__PURE__*/ec({create:e=>({CatchClause(t){let r=t.param;if(!r)return;let{sourceCode:n}=e;if(n.getDeclaredVariables(r.parent).some(e=>e.references.length>0))return;let{type:u,name:a,parent:i}=r;return{node:r,messageId:"Identifier"===u?hv:hx,data:{name:a},*fix(e){let t=n.getTokenBefore(r);c1(t,{test:hy,expected:"(",ruleId:"prefer-optional-catch-binding"});let u=n.getTokenAfter(r);c1(u,{test:hb,expected:")",ruleId:"prefer-optional-catch-binding"}),yield e.remove(t),yield e.remove(r),yield e.remove(u);let[,a]=u.range,[o]=i.body.range,s=n.text.slice(a,o),d=s.length-s.trimStart().length;0!==d&&(yield e.removeRange([a,a+d]))}}}}),meta:{type:"suggestion",docs:{description:"Prefer omitting the `catch` binding parameter.",recommended:!0},fixable:"code",messages:{[hv]:"Remove unused catch binding `{{name}}`.",[hx]:"Remove unused catch binding."}}});const{isParenthesized:hC,getStaticValue:hA}=tm,{checkVueTemplate:hD}=oI,{isRegexLiteral:hS,isNewExpression:h_,isMethodCall:hw}=tK,{isBooleanNode:hT,shouldAddParenthesesToMemberExpressionObject:hP}=nI,hk="regexp-exec",hF="string-match",hI="suggestion",hB=[{type:hk,test:e=>hw(e,{method:"exec",argumentsLength:1,optionalCall:!1,optionalMember:!1}),getNodes:e=>({stringNode:e.arguments[0],methodNode:e.callee.property,regexpNode:e.callee.object}),fix:(e,{methodNode:t})=>e.replaceText(t,"test")},{type:hF,test:e=>hw(e,{method:"match",argumentsLength:1,optionalCall:!1,optionalMember:!1}),getNodes:e=>({stringNode:e.callee.object,methodNode:e.callee.property,regexpNode:e.arguments[0]}),*fix(e,{stringNode:t,methodNode:r,regexpNode:n},u){yield e.replaceText(r,"test");let a=u.getText(t);hC(n,u)||"SequenceExpression"!==t.type||(a=`(${a})`),yield e.replaceText(n,a);let i=u.getText(n);!hC(t,u)&&hP(n,u)&&(i=`(${i})`),yield e.replaceText(t,i)}}],hj=e=>hS(e)||h_(e,{name:"RegExp"}),hL=(e,t)=>{if(hS(e))return!e.regex.flags.includes("g");let r=hA(e,t);if(!r)return!1;let{value:n}=r;return"[object RegExp]"===Object.prototype.toString.call(n)&&!n.global};var hO=/*@__PURE__*/ec({create:hD(e=>({*CallExpression(t){if(hT(t))for(let{type:r,test:n,getNodes:u,fix:a}of hB){if(!n(t))continue;let i=u(t),{methodNode:o,regexpNode:s}=i;if("Literal"===s.type&&!s.regex)continue;let d={node:r===hk?o:t,messageId:r},{sourceCode:l}=e,c=e=>a(e,i,l);hj(s)||hL(s,l.getScope(s))?d.fix=c:d.suggest=[{messageId:hI,fix:c}],yield d}}})),meta:{type:"suggestion",docs:{description:"Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[hk]:"Prefer `.test(…)` over `.exec(…)`.",[hF]:"Prefer `RegExp#test(…)` over `String#match(…)`.",[hI]:"Switch to `RegExp#test(…)`."}}});const{findVariable:hN}=tm,{getVariableIdentifiers:hR}=nI,{isCallOrNewExpression:hM,isMethodCall:h$}=tK,hU="error",hz="suggestion",hV=["concat","copyWithin","fill","filter","flat","flatMap","map","reverse","slice","sort","splice","toReversed","toSorted","toSpliced","with"],hq=e=>{let{type:t,optional:r,callee:n,arguments:u}=e.parent.parent??{};return"CallExpression"===t&&!r&&"MemberExpression"===n.type&&!n.computed&&!n.optional&&n.object===e&&"Identifier"===n.property.type&&"includes"===n.property.name&&1===u.length&&"SpreadElement"!==u[0].type},hW=new Set(["ForOfStatement","ForStatement","ForInStatement","WhileStatement","DoWhileStatement","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]),hG=(e,t)=>{let r=t.parent.parent.parent,{parent:n}=e.parent;for(;n&&n!==r;){if(hW.has(n.type))return!0;n=n.parent}return!1};var hZ=/*@__PURE__*/ec({create:e=>({Identifier(t){let{parent:r}=t;if(!("VariableDeclarator"===r.type&&r.id===t&&r.init&&"VariableDeclaration"===r.parent.type&&r.parent.declarations.includes(r)&&!("ExportNamedDeclaration"===r.parent.parent.type&&r.parent.parent.declaration===r.parent)&&("ArrayExpression"===r.init.type||hM(r.init,{name:"Array",optional:!1})||h$(r.init,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||h$(r.init,{methods:hV,optionalCall:!1,optionalMember:!1}))))return;let n=hN(e.sourceCode.getScope(t),t);if(!n)return;let u=hR(n).filter(e=>e!==t);if(0===u.length||u.some(e=>!hq(e))||1===u.length&&u.every(e=>!hG(e,t)))return;let a={node:t,messageId:hU,data:{name:t.name}},i=function*(e){for(let r of(yield e.insertTextBefore(t.parent.init,"new Set("),yield e.insertTextAfter(t.parent.init,")"),u))yield e.replaceText(r.parent.property,"has")};return t.typeAnnotation?a.suggest=[{messageId:hz,fix:i}]:a.fix=i,a}}),meta:{type:"suggestion",docs:{description:"Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[hU]:"`{{name}}` should be a `Set`, and use `{{name}}.has()` to check existence or non-existence.",[hz]:"Switch `{{name}}` to `Set`."}}});const{isStringLiteral:hH,isDirective:hK}=tK,{fixSpaceAroundKeyword:hY}=uv,hJ="prefer-string-raw";var hX=/*@__PURE__*/ec({create:e=>{e.on("Literal",t=>{if(!hH(t)||hK(t.parent)||("ImportDeclaration"===t.parent.type||"ExportNamedDeclaration"===t.parent.type||"ExportAllDeclaration"===t.parent.type)&&t.parent.source===t||"Property"===t.parent.type&&!t.parent.computed&&t.parent.key===t||"JSXAttribute"===t.parent.type&&t.parent.value===t||"TSEnumMember"===t.parent.type&&(t.parent.initializer===t||t.parent.id===t))return;let{raw:r}=t;if("\\"===r.at(-2)||!r.includes("\\\\")||r.includes("`")||r.includes("${")||t.loc.start.line!==t.loc.end.line)return;let n=function(e){let t=e.charAt(0);e=e.slice(1,-1);let r="";for(let n=0;n<e.length;n++){let u=e[n];if("\\"===u){let u=e[n+1];if("\\"===u||u===t){r+=u,n++;continue}}r+=u}return r}(r);if(n===t.value)return{node:t,messageId:hJ,*fix(r){yield r.replaceText(t,`String.raw\`${n}\``),yield*hY(r,t,e.sourceCode)}}})},meta:{type:"suggestion",docs:{description:"Prefer using the `String.raw` tag to avoid escaping `\\`.",recommended:!0},fixable:"code",messages:{[hJ]:"`String.raw` should be used to avoid escaping `\\`."}}});const{hasSideEffect:hQ}=tm,h0=function(e,t){let{line:r,column:n}=t.getLocFromIndex(e.range[0]);return t.getLines()[r-1].slice(0,n).match(/\s*$/)[0]},h1="prefer-switch",h2=(e,t)=>e===t||nr(e,t),h3=new Set(["WhileStatement","DoWhileStatement","ForStatement","ForOfStatement","ForInStatement","SwitchStatement"]),h4=e=>{for(;e.parent;e=e.parent)if(h3.has(e.type))return e},h5=(e,t)=>e.range[0]>=t.range[0]&&e.range[1]<=t.range[1];var h8=/*@__PURE__*/ec({create:e=>{let t={minimumCases:3,emptyDefaultCase:"no-default-comment",insertBreakInDefaultCase:!1,...e.options[0]},{sourceCode:r}=e,n=new Set,u=[],a=new Set;return{IfStatement(e){n.add(e)},BreakStatement(e){e.label||u.push(e)},*"Program:exit"(){for(let e of n){if(a.has(e))continue;let{discriminant:n,ifStatements:i}=function(e){let t;let r=[];for(;e&&"IfStatement"===e.type;e=e.alternate){let{test:n}=e,u=function(e){let t=[e],r=[];for(;t.length>0;){if("LogicalExpression"===(e=t.pop()).type&&"||"===e.operator){t.push(e.right,e.left);continue}if("BinaryExpression"!==e.type||"==="!==e.operator)return[];r.push(e)}return r}(n);if(0===u.length)break;if(!t){let[{left:e,right:r}]=u;t=[e,r]}let a=function(e,t){for(let{left:r,right:n}of e)if(0===(t=t.filter(e=>h2(e,r)||h2(e,n))).length)break;return t}(u,t);if(0===a.length)break;t=a,r.push({statement:e,compareExpressions:u})}return{ifStatements:r,discriminant:t&&t[0]}}(e);if(!n||i.length<t.minimumCases)continue;for(let{statement:e}of i)a.add(e);let o={loc:{start:e.loc.start,end:e.consequent.loc.start},messageId:h1};hQ(n,r)||i.some(({statement:e})=>(function(e,t){for(let r of e){if(!h5(r,t))continue;let e=h4(r);if(!e||h5(t,e))return!0}return!1})(u,e))||(o.fix=function({discriminant:e,ifStatements:t},r,n){let u=r.getText(e);return function*(a){let i=t[0].statement,o=h0(i,r);yield a.insertTextBefore(i,`switch (${u}) {`);let s=t.at(-1).statement;if(s.alternate){let{alternate:e}=s;yield a.insertTextBefore(e,`
|
|
5
|
-
${
|
|
6
|
-
${
|
|
7
|
-
${
|
|
8
|
-
${
|
|
9
|
-
${
|
|
10
|
-
${
|
|
1
|
+
"use strict";let e,t;var r,n,u,a,i,o,s,d,l,c,f,p,h,m,g,y,b,v,x,E,C,A,D,S,_,w,T,F,k,P,I,B,j,O,L,N,R,M,$,U,z,V,q,W,G,Z,H,K,Y,J,Q,X,ee,et,er,en,eu,ea,ei,eo,es,ed,el,ec,ef,ep,eh,em,eg,ey,eb,ev,ex,eE,eC,eA,eD,eS,e_,ew,eT,eF,ek,eP,eI,eB,ej,eO,eL,eN,eR,eM,e$,eU,ez,eV,eq,eW,eG,eZ,eH,eK,eY,eJ,eQ,eX,e0,e1,e2,e3,e4,e5,e8,e6,e9,e7,te,tt,tr,tn,tu,ta,ti,to,ts,td,tl,tc,tf,tp,th,tm,tg,ty,tb,tv,tx,tE,tC,tA,tD,tS,t_,tw,tT,tF,tk,tP,tI,tB,tj,tO,tL,tN,tR,tM,t$,tU,tz,tV,tq,tW,tG,tZ,tH,tK,tY,tJ,tQ,tX,t0,t1,t2,t3,t4,t5,t8,t6,t9,t7,re,rt,rr,rn,ru,ra,ri,ro,rs,rd,rl,rc,rf,rp,rh,rm,rg,ry,rb,rv,rx,rE,rC,rA,rD,rS,r_,rw,rT,rF,rk,rP,rI,rB,rj,rO,rL,rN,rR,rM,r$,rU,rz,rV,rq,rW,rG,rZ,rH,rK,rY,rJ,rQ,rX,r0,r1,r2,r3,r4,r5,r8,r6,r9,r7,ne,nt,nr,nn,nu,na,ni,no,ns,nd,nl,nc,nf,np,nh,nm,ng,ny,nb,nv,nx,nE,nC,nA,nD,nS,n_,nw,nT,nF,nk,nP,nI,nB,nj,nO,nL,nN,nR,nM,n$,nU,nz,nV,nq,nW,nG,nZ,nH,nK,nY,nJ,nQ,nX,n0,n1,n2,n3,n4,n5,n8,n6,n9,n7,ue,ut,ur,un,uu,ua,ui,uo,us,ud,ul,uc,uf,up,uh,um,ug,uy,ub,uv,ux,uE,uC,uA,uD,uS,u_,uw,uT,uF,uk,uP,uI,uB,uj,uO,uL,uN,uR,uM,u$,uU,uz,uV,uq,uW,uG,uZ,uH,uK,uY,uJ,uQ,uX,u0,u1,u2,u3,u4,u5,u8,u6,u9,u7,ae,at,ar,an,au,aa,ai,ao,as,ad,al,ac,af,ap,ah,am,ag,ay,ab,av,ax,aE,aC,aA,aD,aS,a_,aw,aT,aF,ak,aP,aI,aB,aj,aO,aL,aN,aR,aM,a$,aU,az,aV,aq,aW,aG,aZ,aH,aK,aY,aJ,aQ,aX,a0,a1,a2,a3,a4,a5,a8,a6,a9,a7,ie,it,ir,iu,ia,ii,io=require("node:path"),is=require("node:fs"),id=require("module"),il=require("@eslint-sukka/shared"),ic=require("@typescript-eslint/utils"),ip=require("@typescript-eslint/type-utils");function ih(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var im=/*#__PURE__*/ih(io),ig=/*#__PURE__*/ih(is),iy=/*#__PURE__*/ih(id);function ib(e,t){if("string"==typeof t){let e=t;t=t=>t.type===e}for(;e;){if(t(e))return e;e=e.parent}}function iv(e){return e?.type==="Identifier"||e?.type==="PrivateIdentifier"}function ix(e){return e?.type==="MemberExpression"}function iE(e){return e?.type==="AwaitExpression"}function iC(e,t){return!!iv(e)&&("function"==typeof t?t(e.name):Array.isArray(t)?t.includes(e.name):e.name===t)}function iA(e,t){return e?.type==="Literal"&&(Array.isArray(t)?t.includes(e.value):"string"==typeof e.value&&t instanceof RegExp?t.test(e.value):e.value===t)}function iD(e){return!!e&&["ArrowFunctionExpression","FunctionDeclaration","FunctionExpression"].includes(e.type)}function iS(e,t){return e?.type==="Identifier"&&t?.type===e.type&&e.name===t.name}function i_({name:e,meta:t,create:r,resolveOptions:n}){return t?.docs&&(t.docs.url??=new URL(e,"https://dimensiondev.github.io/eslint-plugin/src/rules/").toString()),Object.freeze({name:e,meta:t,create(e){let t=n?.(...e.options)??e.options[0];return Object.fromEntries(Object.entries(r(e,t)).filter(e=>e[1]))}})}function iw(e){if(!e?.program)throw Error("see https://typescript-eslint.io/docs/linting/type-linting")}var iT=i_({name:"array/no-unneeded-flat-map",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow `Array#flatMap((x) => x)` when simpler alternatives exist",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow simple `Array#flatMap()` in array"}},create:e=>({CallExpression(t){var r;if("MemberExpression"!==t.callee.type||!iC(t.callee.property,"flatMap")||!(iD(r=t.arguments[0])&&1===r.params.length&&"Identifier"===r.params[0].type&&r.body&&(iS(r.params[0],r.body)||"BlockStatement"===r.body.type&&1===r.body.body.length&&"ReturnStatement"===r.body.body[0].type&&iS(r.params[0],r.body.body[0].argument))))return;let{property:n}=t.callee;e.report({node:t,messageId:"invalid",*fix(e){yield e.replaceText(n,"flat"),yield*t.arguments.map(t=>e.remove(t))}})}})});const iF=new Set(["href","pathname","search","hash","origin"]);var ik=i_({name:"browser/prefer-location-assign",meta:{type:"suggestion",fixable:"code",docs:{description:"Prefer `location.assign(...)` over `location.*`",recommended:"stylistic"},schema:[],messages:{instead:"Use `location.assign(...)` instead of `location.{{name}}`"}},create:e=>({AssignmentExpression(t){let r=function(e,t){if(iC(e,t))return e;for(;ix(e);){if(iC(e.property,t))return e;e=e.object}}(t.left,"location");if(!r)return;let n=iP(r.parent);e.report({node:t,messageId:"instead",data:{name:n},fix:function(e,t,r){let n=iP(t.parent);if(iF.has(n??"href"))return n=>n.replaceText(r,`${e.getText(t)}.assign(${e.getText(r.right)})`)}(e.sourceCode,r,t)})}})});function iP(e){if(ix(e)&&iv(e.property))return e.property.name}var iI=i_({name:"jsx/no-template-literal",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow use template-literal in JSX",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow use template-literal in JSX"}},create:e=>({JSXExpressionContainer(t){if("TemplateLiteral"!==t.expression.type||t.parent?.type==="JSXAttribute")return;let{expression:r}=t;e.report({node:t,messageId:"invalid",fix(n){let u=[...r.expressions,...r.quasis];u.sort((e,t)=>e.range[0]-t.range[0]);let a=u.map(t=>"TemplateElement"===t.type?t.value.cooked:"{"+e.sourceCode.getText(t)+"}");return n.replaceText(t,a.join(""))}})}})}),iB=i_({name:"jsx/no-unneeded-nested",meta:{type:"suggestion",fixable:"code",docs:{description:"Reduce unneeded JSXFragment nested",recommended:"stylistic"},schema:[],messages:{invalid:"Reduce unneeded JSXFragment nested"}},create(e){let t=e.sourceCode;return{JSXFragment(r){if(1!==r.children.length)return;let n=r.children[0];e.report({node:r,messageId:"invalid",*fix(e){"JSXExpressionContainer"===n.type?"JSXEmptyExpression"!==n.expression.type&&(yield e.replaceText(r,t.getText(n.expression))):yield e.replaceText(r,t.getText(n))}})}}}});const ij=/^toLocale(?<name>Upper|Lower)Case$/g;var iO=i_({name:"string/no-locale-case",meta:{type:"problem",fixable:"code",docs:{description:"Disallow use `String#toLocale{Upper,Lower}Case()`",recommended:"recommended"},schema:[],messages:{instead:"Use `.to{{name}}Case(...)` instead of `.toLocale{{name}}Case()`"}},create:e=>({CallExpression(t){if(t.arguments.length>0||!ix(t.callee)||!iv(t.callee.property))return;let{property:r}=t.callee,n=ij.exec(r.name);n&&e.report({node:t,data:{name:n.groups?.name},messageId:"instead",fix:e=>e.replaceText(r,r.name.replaceAll("Locale",""))})}})});function iL(e){return JSON.stringify(e)}var iN=i_({name:"string/no-simple-template-literal",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow simple template-literal",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow simple template-literal"}},create:e=>({TemplateLiteral(t){var r;let n=(r=e.sourceCode,t.parent?.type!=="TaggedTemplateExpression"&&1===t.quasis.length&&!function({loc:e}){return!!e&&e.start.line!==e.end.line}(t.quasis[0])&&0===t.expressions.length?e=>{let n=iL(t.quasis[0].value.cooked),u=ib(t,e=>"Property"===e.type&&e.key===t);return u?e.replaceText(u,`${n}: ${r.getText(u.value)}`):e.replaceText(t,n)}:2===t.quasis.length&&t.quasis.every(({value:e})=>""===e.cooked)&&1===t.expressions.length?e=>e.replaceText(t,r.getText(t.expressions[0])):void 0);n&&e.report({node:t,messageId:"invalid",fix:n})}})});const iR=["BigInt","Boolean","Function","Number","Object","String","Symbol","Array"];var iM=i_({name:"type/no-instanceof-wrapper",meta:{type:"problem",fixable:"code",docs:{description:"Disallow `instanceof` for wrapper objects",recommended:"recommended"},schema:[],messages:{primitive:'Unexpected `instanceof` operator. Use `typeof x === "{{typeName}}"` instead',array:"Unexpected `instanceof` operator. Use `Array.isArray` instead"},replacedBy:["unicorn/no-instanceof-array"]},create(e){let t=e.sourceCode,r=t.scopeManager?.scopes[0]??null,n=iR.flatMap(e=>{let t=r?.set.get(e);return!t||t.defs.length>0?[]:t.references??[]});return{Program(){for(let{identifier:r}of n){let n=r.parent;if(n?.type==="BinaryExpression"&&"instanceof"===n.operator&&n.right===r){if("Array"===r.name)e.report({node:n,messageId:"array",fix:e=>e.replaceText(n,`Array.isArray(${t.getText(n.left)})`)});else{let u=r.name.toLowerCase();e.report({node:n,messageId:"primitive",data:{typeName:u},fix:e=>e.replaceText(n,`typeof ${t.getText(n.left)} === ${iL(u)}`)})}}}}}}});const i$=/\P{ASCII}/u;function iU(e,t){return{Program(r){for(let n of r.tokens??[]){let r=function(e){switch(e.type){case"String":case"Template":return e.value.slice(1,-1);case"Identifier":if(e.value.startsWith("#"))return e.value.slice(1);return e.value;case"RegularExpression":return e.regex.pattern;case"JSXText":case"JSXIdentifier":return e.value}return!1}(n);!1!==r&&e.test(r)&&t(n,"code")}for(let n of r.comments??[])e.test(n.value)&&t(n,"comment")}}}function iz(e,t){switch(e.type){case"String":case"Template":return r=>{let n=e.value.slice(0,1),u=e.value.slice(-1),a=iV(e.value.slice(1,-1),t);return r.replaceText(e,`${n}${a}${u}`)};case"JSXText":return r=>{let n=e.value.replace(t,e=>`&#x${iq(e.codePointAt(0))};`);return r.replaceText(e,n)};case"RegularExpression":return r=>{let n=new Set(e.regex.flags);n.add("u");let u=new RegExp(iV(e.regex.pattern,t),[...n].join(""));return r.replaceText(e,u.toString())}}}function iV(e,t){return e.replace(t,e=>{let t=e.codePointAt(0);return t>65535?`\\u{${iq(t)}}`:`\\u${iq(t)}`})}function iq(e){return e.toString(16).padStart(4,"0").toUpperCase()}i_({name:"unicode/specific-set",meta:{type:"problem",fixable:"code",docs:{description:"Limit the range of literal characters"},schema:[{type:"object",properties:{pattern:{type:"string"},flags:{type:"string"},only:{type:"string",enum:["code","comment"]}},additionalProperties:!1}],messages:{illegal:"Illegal character detected"}},resolveOptions:e=>({pattern:e?.pattern?new RegExp(e.pattern,e.flags??"u"):i$,only:e?.only}),create:(e,{pattern:t,only:r})=>iU(t,(n,u)=>{if(r&&r!==u)return;let a=iz(n,RegExp(t.source,"gu"));e.report({node:n,messageId:"illegal",fix:a})})});const iW=/[\u061C\u202A-\u202E\u2066-\u2069]/;var iG=i_({name:"unicode/no-bidi",meta:{type:"problem",fixable:"code",docs:{description:"Detect and stop Trojan Source attacks",recommended:"recommended"},schema:[],messages:{detected:"Detected potential trojan source attack with unicode bidi introduced in this {{kind}}: {{text}}."}},create:e=>iU(iW,(t,r)=>{let n=RegExp(iW.source,"gu"),u={kind:r,text:iV(t.value,n)},a=iz(t,n);e.report({node:t,data:u,messageId:"detected",fix:a})})});const iZ=function(){let e=[/\u00AD\u034F\u061C\u17B4\u17B5\uFEFF\uFFFC/,/\u180B-\u180E/,/\u200B-\u200F/,/\u202A-\u202E/,/\u2060-\u206F/,/\uFE00-\uFE0F/,/\uFFF0-\uFFF8/,/\u{1D173}-\u{1D17A}/u,/\u{E0000}-\u{E007F}/u,/\u{E0100}-\u{E01EF}/u].map(e=>"string"==typeof e?e:e.source).join("");return RegExp(`[${e}]`,"u")}(/\u00AD\u034F\u061C\u17B4\u17B5\uFEFF\uFFFC/,/\u180B-\u180E/,/\u200B-\u200F/,/\u202A-\u202E/,/\u2060-\u206F/,/\uFE00-\uFE0F/,/\uFFF0-\uFFF8/,/\u{1D173}-\u{1D17A}/u,/\u{E0000}-\u{E007F}/u,/\u{E0100}-\u{E01EF}/u);var iH=i_({name:"unicode/no-invisible",meta:{type:"problem",fixable:"code",docs:{description:"Disallow invisible characters",recommended:"recommended"},schema:[],messages:{illegal:"Illegal character detected"}},create:e=>iU(iZ,t=>{let r=iz(t,RegExp(iZ.source,"gu"));e.report({node:t,messageId:"illegal",fix:r})})}),iK=i_({name:"no-redundant-variable",meta:{type:"problem",fixable:"code",docs:{description:"Disallow redundant variable",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow Redundant Variable"}},create:e=>({BlockStatement({body:t}){var r;let n=t.find(iY);if(!n)return;let u=t[t.indexOf(n)-1];u&&"VariableDeclaration"===u.type&&1===u.declarations.length&&u.declarations.some(({init:e,id:t})=>null!==e&&iS(n.argument,t))&&e.report({node:n,messageId:"invalid",fix:(r=e.sourceCode,e=>{let{init:t,id:a}=u.declarations[0];if(!(t&&a&&n.argument))return null;let i=!iE(t)||ib(t,"TryStatement")?t:t.argument,o=(e=>{if(!a.typeAnnotation)return e;let n=r.getText(a.typeAnnotation.typeAnnotation);return`(${e}) as ${iE(t)?`Promise<${n}>`:n}`})(r.getText(i));return[e.remove(u),e.replaceText(n.argument,o)]})})}})});function iY(e){return"ReturnStatement"===e.type&&iv(e.argument)}var iJ=i_({name:"no-single-return",meta:{type:"suggestion",docs:{description:"Disallow single-return",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow Single Return"}},create:e=>({BlockStatement({parent:t,body:r}){if(!iD(t))return;let n=function(e,t){let r=t.find(iQ);if(!r)return;let n=t.find(e=>"VariableDeclaration"===e.type&&"const"!==e.kind&&e.declarations.some(({id:e})=>iS(r.argument,e)));if(n)return e.sourceCode.getDeclaredVariables(n).find(({references:e})=>e.every(e=>e.isWriteOnly()||e.identifier.parent===r))}(e,r);for(let{identifier:t}of n?.references??[])t.parent&&e.report({node:t.parent,messageId:"invalid"})}})});function iQ(e){return"ReturnStatement"===e.type&&iv(e.argument)}var iX=i_({name:"prefer-early-return",meta:{type:"problem",fixable:"code",docs:{description:"Prefer early returns over full-body conditional wrapping in function declarations",recommended:"stylistic"},schema:[{type:"object",properties:{maximumStatements:{type:"integer",minimum:0}},additionalProperties:!1}],messages:{prefer:"Prefer an early return to a conditionally-wrapped function body"}},resolveOptions:e=>e?.maximumStatements??1,create:(e,t)=>({BlockStatement:function({body:r,parent:n}){var u;if(!iD(n)||!(1===r.length&&function(e,t){if(!("IfStatement"===e.type&&null===e.alternate))return!1;let{consequent:r}=e;return"ExpressionStatement"===r.type&&0===t||"BlockStatement"===r.type&&r.body.length>t}(r[0],t)))return;let a=(u=r[0],function*(t){let r;if("IfStatement"!==u.type)return;let{test:n,consequent:a}=u;yield t.insertTextBefore(n,"!("),yield t.insertTextAfter(n,")"),yield t.replaceText(a,"return;");let i=(r=e.sourceCode.getText(a),"BlockStatement"===a.type?r.slice(1,-1):r);yield t.insertTextAfter(u,i)});e.report({node:r[0],messageId:"prefer",fix:a})}})}),i0=i_({name:"prefer-fetch",meta:{type:"problem",docs:{description:"Enforce fetch",recommended:"stylistic"},schema:[],messages:{callee:"Should use 'fetch' instead"}},create:e=>({ImportDeclaration(t){let r=t.source.value;("axios"===r||"request"===r)&&e.report({node:t,messageId:"callee"})},NewExpression(t){((function({callee:e}){return iC(e,"XMLHttpRequest")})(t)||iC(t.callee,"ActiveXObject")&&iA(t.arguments[0],/xmlhttp/i))&&e.report({node:t,messageId:"callee"})},CallExpression(t){((function({callee:e}){let t="$http";return iC(e,t)||ix(e)&&iC(e.object,t)})(t)||function({callee:e,parent:t}){let r=["$","jQuery"];return iC(e,r)&&ix(t)&&iC(t.property,"load")||ix(e)&&iC(e.object,r)&&iC(e.property,["ajax","get","post","getJSON","getScript"])}(t)||i1(t,"axios")||i1(t,"request"))&&e.report({node:t,messageId:"callee"})}})});function i1(e,t){return iC(e.callee,"require")&&iA(e.arguments[0],t)}const i2=new Set(["setTimeout","setInterval","requestAnimationFrame","requestIdleCallback"]);var i3=i_({name:"prefer-timer-id",meta:{type:"problem",docs:{description:"Enforce best practice with timer function",recommended:"recommended"},schema:[],messages:{assign:"Timer id should assign to an identifier or member for cleaning up, `const timer = {{name}}(...);`",fix:"Assign timer id to a variable"},hasSuggestions:!0},create:e=>({CallExpression(t){"Identifier"===t.callee.type&&(!i2.has(t.callee.name)||function(e){if(!iC(e.callee,"setTimeout"))return!1;let t=e.arguments[1];return!t||iA(t,0)}(t)||t.parent?.type==="AssignmentExpression"&&t.parent.right===t||t.parent?.type==="VariableDeclarator"&&t.parent.init===t||e.report({node:t,messageId:"assign",data:{name:t.callee.name},suggest:[{messageId:"fix",fix:e=>e.insertTextBefore(t,"const timer = ")}]}))}})}),i4=i_({name:"string/no-unneeded-to-string",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow `String#toString()` when simpler alternatives exist",recommended:"stylistic",requiresTypeChecking:!0},schema:[],messages:{invalid:"Disallow use `.toString()` in string"}},create(e){iw(e.sourceCode.parserServices);let{program:t,esTreeNodeToTSNodeMap:r}=e.sourceCode.parserServices,n=t.getTypeChecker();return{CallExpression(t){if("MemberExpression"!==t.callee.type)return;let{object:u,property:a}=t.callee;(iC(a,"toString")||iA(a,"toString"))&&function(e,t){let r=e.getTypeAtLocation(t);if(r.isStringLiteral()||"string"===e.typeToString(r))return!0;let n=r.getSymbol();return n&&"String"===e.symbolToString(n)}(n,r.get(u))&&e.report({node:a,messageId:"invalid",fix:r=>r.replaceText(t,e.sourceCode.getText(u))})}}}}),i5=i_({name:"type/no-force-cast-via-top-type",meta:{type:"problem",docs:{description:"Disallowing cast a type `T` to unrelated or incompatible type `Q` via `T as any as Q`",recommended:"recommended"},schema:[],messages:{invalid:"Don't cast this expression to another type by `as {{type}} as T`"}},create:e=>({TSAsExpression(t){var r,n;if(!("TSAnyKeyword"===(r=t.typeAnnotation).type||"TSUnknownKeyword"===r.type)||!((n=t.parent)&&"TSAsExpression"===n.type&&"TSTypeReference"===n.typeAnnotation.type))return;let u="TSAnyKeyword"===t.typeAnnotation.type?"any":"unknown";e.report({node:t,messageId:"invalid",data:{type:u}})}})});const i8=new Set(["BigInt","Boolean","Number","String","Symbol"]);var i6=i_({name:"type/no-wrapper-type-reference",meta:{type:"problem",fixable:"code",docs:{description:"Disallow wrapper type for type reference",recommended:"recommended"},schema:[],messages:{instead:"Use {{name}} instead"}},create:e=>({TSTypeReference(t){if("Identifier"!==t.typeName.type||!i8.has(t.typeName.name))return;let r=t.typeName.name.toLowerCase();e.report({node:t,messageId:"instead",data:{name:r},fix:e=>e.replaceText(t.typeName,r)})}})}),i9=i_({name:"no-default-error",meta:{type:"problem",docs:{description:"Restrict the usage of default (unextended) error",recommended:"strict",requiresTypeChecking:!0},schema:[],messages:{invalid:"Default error object should not be used in this project"}},create(e){iw(e.sourceCode.parserServices);let{esTreeNodeToTSNodeMap:t,program:r}=e.sourceCode.parserServices,n=r.getTypeChecker();function u(r){"ErrorConstructor"===function(e,t){let r=e.getTypeAtLocation(t).getSymbol();if(!r?.valueDeclaration)return;let n=e.getTypeOfSymbolAtLocation(r,r.valueDeclaration);return e.typeToString(n)}(n,t.get(r))&&e.report({node:r,messageId:"invalid"})}return{ThrowStatement(e){e.argument&&u(e.argument)},NewExpression:u,CallExpression:u}}}),i7="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function oe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ot(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var or=/*@__PURE__*/ot(im),on={version:"55.0.0"};function ou(){return n?r:(n=1,r=function(e){let t=or.basename(e,".js");return`https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v${on.version}/docs/rules/${t}.md`})}var oa=/*@__PURE__*/oe(/*@__PURE__*/ou());const oi={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]};for(const e of Object.keys(oi))Object.freeze(oi[e]);Object.freeze(oi);const oo=new Set(["parent","leadingComments","trailingComments"]);function os(e){return!oo.has(e)&&"_"!==e[0]}function od(e,t){let r=t.range[0],n=e,u=!1;do for(let e of(u=!1,n.childScopes)){let t=e.block.range;if(t[0]<=r&&r<t[1]){n=e,u=!0;break}}while(u);return n}function ol(e,t){let r="",n=e;for("string"==typeof t?r=t:(r=t.name,n=od(n,t));null!=n;){let e=n.set.get(r);if(null!=e)return e;n=n.upper}return null}function oc(e){return!this(e)}function of(e){return oc.bind(e)}function op(e,t){return"Punctuator"===e.type&&e.value===t}function oh(e){return op(e,"=>")}function om(e){return op(e,",")}function og(e){return op(e,";")}function oy(e){return op(e,":")}function ob(e){return op(e,"(")}function ov(e){return op(e,")")}function ox(e){return op(e,"[")}function oE(e){return op(e,"]")}function oC(e){return op(e,"{")}function oA(e){return op(e,"}")}function oD(e){return["Block","Line","Shebang"].includes(e.type)}const oS=of(oh),o_=of(om),ow=of(og),oT=of(oy),oF=of(ob),ok=of(ov),oP=of(ox),oI=of(oE),oB=of(oC),oj=of(oA),oO=of(oD);function oL(e,t){let r=e.parent,n=null,u=null;if("ArrowFunctionExpression"===e.type){let r=t.getTokenBefore(e.body,oh);n=r.loc.start,u=r.loc.end}else n="Property"===r.type||"MethodDefinition"===r.type||"PropertyDefinition"===r.type?r.loc.start:e.loc.start,u=(e.id?t.getTokenAfter(e.id,ob):t.getFirstToken(e,ob)).loc.start;return{start:{...n},end:{...u}}}const oN="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},oR=Object.freeze(new Set(["Array","ArrayBuffer","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","isFinite","isNaN","isPrototypeOf","JSON","Map","Math","NaN","Number","Object","parseFloat","parseInt","Promise","Proxy","Reflect","RegExp","Set","String","Symbol","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","undefined","unescape","WeakMap","WeakSet"])),oM=new Set([Array.isArray,Array.of,Array.prototype.at,Array.prototype.concat,Array.prototype.entries,Array.prototype.every,Array.prototype.filter,Array.prototype.find,Array.prototype.findIndex,Array.prototype.flat,Array.prototype.includes,Array.prototype.indexOf,Array.prototype.join,Array.prototype.keys,Array.prototype.lastIndexOf,Array.prototype.slice,Array.prototype.some,Array.prototype.toString,Array.prototype.values,"function"==typeof BigInt?BigInt:void 0,Boolean,Date,Date.parse,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,escape,isFinite,isNaN,isPrototypeOf,Map,Map.prototype.entries,Map.prototype.get,Map.prototype.has,Map.prototype.keys,Map.prototype.values,...Object.getOwnPropertyNames(Math).filter(e=>"random"!==e).map(e=>Math[e]).filter(e=>"function"==typeof e),Number,Number.isFinite,Number.isNaN,Number.parseFloat,Number.parseInt,Number.prototype.toExponential,Number.prototype.toFixed,Number.prototype.toPrecision,Number.prototype.toString,Object,Object.entries,Object.is,Object.isExtensible,Object.isFrozen,Object.isSealed,Object.keys,Object.values,parseFloat,parseInt,RegExp,Set,Set.prototype.entries,Set.prototype.has,Set.prototype.keys,Set.prototype.values,String,String.fromCharCode,String.fromCodePoint,String.raw,String.prototype.at,String.prototype.charAt,String.prototype.charCodeAt,String.prototype.codePointAt,String.prototype.concat,String.prototype.endsWith,String.prototype.includes,String.prototype.indexOf,String.prototype.lastIndexOf,String.prototype.normalize,String.prototype.padEnd,String.prototype.padStart,String.prototype.slice,String.prototype.startsWith,String.prototype.substr,String.prototype.substring,String.prototype.toLowerCase,String.prototype.toString,String.prototype.toUpperCase,String.prototype.trim,String.prototype.trimEnd,String.prototype.trimLeft,String.prototype.trimRight,String.prototype.trimStart,Symbol.for,Symbol.keyFor,unescape].filter(e=>"function"==typeof e)),o$=new Set([Object.freeze,Object.preventExtensions,Object.seal]),oU=[[Map,new Set(["size"])],[RegExp,new Set(["dotAll","flags","global","hasIndices","ignoreCase","multiline","source","sticky","unicode"])],[Set,new Set(["size"])]];function oz(e,t){let r=[];for(let n=0;n<e.length;++n){let u=e[n];if(null==u)r.length=n+1;else if("SpreadElement"===u.type){let e=oq(u.argument,t);if(null==e)return null;r.push(...e.value)}else{let e=oq(u,t);if(null==e)return null;r.push(e.value)}}return r}const oV=Object.freeze({ArrayExpression(e,t){let r=oz(e.elements,t);return null!=r?{value:r}:null},AssignmentExpression:(e,t)=>"="===e.operator?oq(e.right,t):null,BinaryExpression(e,t){if("in"===e.operator||"instanceof"===e.operator)return null;let r=oq(e.left,t),n=oq(e.right,t);if(null!=r&&null!=n)switch(e.operator){case"==":return{value:r.value==n.value};case"!=":return{value:r.value!=n.value};case"===":return{value:r.value===n.value};case"!==":return{value:r.value!==n.value};case"<":return{value:r.value<n.value};case"<=":return{value:r.value<=n.value};case">":return{value:r.value>n.value};case">=":return{value:r.value>=n.value};case"<<":return{value:r.value<<n.value};case">>":return{value:r.value>>n.value};case">>>":return{value:r.value>>>n.value};case"+":return{value:r.value+n.value};case"-":return{value:r.value-n.value};case"*":return{value:r.value*n.value};case"/":return{value:r.value/n.value};case"%":return{value:r.value%n.value};case"**":return{value:r.value**n.value};case"|":return{value:r.value|n.value};case"^":return{value:r.value^n.value};case"&":return{value:r.value&n.value}}return null},CallExpression(e,t){let r=e.callee,n=oz(e.arguments,t);if(null!=n){if("MemberExpression"===r.type){if("PrivateIdentifier"===r.property.type)return null;let u=oq(r.object,t);if(null!=u){if(null==u.value&&(u.optional||e.optional))return{value:void 0,optional:!0};let a=oW(r,t);if(null!=a){let e=u.value,t=a.value;if(oM.has(e[t]))return{value:e[t](...n)};if(o$.has(e[t]))return{value:n[0]}}}}else{let u=oq(r,t);if(null!=u){if(null==u.value&&e.optional)return{value:void 0,optional:!0};let t=u.value;if(oM.has(t))return{value:t(...n)};if(o$.has(t))return{value:n[0]}}}}return null},ConditionalExpression(e,t){let r=oq(e.test,t);return null!=r?r.value?oq(e.consequent,t):oq(e.alternate,t):null},ExpressionStatement:(e,t)=>oq(e.expression,t),Identifier(e,t){if(null!=t){let r=ol(t,e);if(null!=r&&0===r.defs.length&&oR.has(r.name)&&r.name in oN)return{value:oN[r.name]};if(null!=r&&1===r.defs.length){let e=r.defs[0];if(e.parent&&"Variable"===e.type&&("const"===e.parent.kind||function(e){let t=e.references,r=t.filter(e=>e.init).length,n=t.filter(e=>e.isReadOnly()).length;return 1===r&&n+r===t.length}(r))&&"Identifier"===e.node.id.type)return oq(e.node.init,t)}}return null},Literal:e=>(null!=e.regex||null!=e.bigint)&&null==e.value?null:{value:e.value},LogicalExpression(e,t){let r=oq(e.left,t);if(null!=r){if("||"===e.operator&&!0==!!r.value||"&&"===e.operator&&!1==!!r.value||"??"===e.operator&&null!=r.value)return r;let n=oq(e.right,t);if(null!=n)return n}return null},MemberExpression(e,t){if("PrivateIdentifier"===e.property.type)return null;let r=oq(e.object,t);if(null!=r){if(null==r.value&&(r.optional||e.optional))return{value:void 0,optional:!0};let n=oW(e,t);if(null!=n){if(!function(e,t){let r=function(e,t){let r=e;for(;("object"==typeof r||"function"==typeof r)&&null!==r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r)}return null}(e,t);return null!=r&&null!=r.get}(r.value,n.value))return{value:r.value[n.value]};for(let[e,t]of oU)if(r.value instanceof e&&t.has(n.value))return{value:r.value[n.value]}}}return null},ChainExpression(e,t){let r=oq(e.expression,t);return null!=r?{value:r.value}:null},NewExpression(e,t){let r=oq(e.callee,t),n=oz(e.arguments,t);if(null!=r&&null!=n){let e=r.value;if(oM.has(e))return{value:new e(...n)}}return null},ObjectExpression(e,t){let r={};for(let n of e.properties)if("Property"===n.type){if("init"!==n.kind)return null;let e=oW(n,t),u=oq(n.value,t);if(null==e||null==u)return null;r[e.value]=u.value}else{if("SpreadElement"!==n.type&&"ExperimentalSpreadProperty"!==n.type)return null;let e=oq(n.argument,t);if(null==e)return null;Object.assign(r,e.value)}return{value:r}},SequenceExpression:(e,t)=>oq(e.expressions[e.expressions.length-1],t),TaggedTemplateExpression(e,t){let r=oq(e.tag,t),n=oz(e.quasi.expressions,t);if(null!=r&&null!=n){let t=r.value,u=e.quasi.quasis.map(e=>e.value.cooked);if(u.raw=e.quasi.quasis.map(e=>e.value.raw),t===String.raw)return{value:t(u,...n)}}return null},TemplateLiteral(e,t){let r=oz(e.expressions,t);if(null!=r){let t=e.quasis[0].value.cooked;for(let n=0;n<r.length;++n)t+=r[n],t+=e.quasis[n+1].value.cooked;return{value:t}}return null},UnaryExpression(e,t){if("delete"===e.operator)return null;if("void"===e.operator)return{value:void 0};let r=oq(e.argument,t);if(null!=r)switch(e.operator){case"-":return{value:-r.value};case"+":return{value:+r.value};case"!":return{value:!r.value};case"~":return{value:~r.value};case"typeof":return{value:typeof r.value}}return null}});function oq(e,t){return null!=e&&Object.hasOwnProperty.call(oV,e.type)?oV[e.type](e,t):null}function oW(e,t){let r="Property"===e.type?e.key:e.property;return e.computed?oq(r,t):"Identifier"===r.type?{value:r.name}:"Literal"===r.type?r.bigint?{value:r.bigint}:{value:String(r.value)}:null}function oG(e,t=null){try{return oq(e,t)}catch(e){return null}}function oZ(e,t=null){if(e&&"Literal"===e.type&&null===e.value){if(e.regex)return`/${e.regex.pattern}/${e.regex.flags}`;if(e.bigint)return e.bigint}let r=oG(e,t);return r&&String(r.value)}function oH(e,t){switch(e.type){case"MemberExpression":if(e.computed)return oZ(e.property,t);if("PrivateIdentifier"===e.property.type)break;return e.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":if(e.computed)return oZ(e.key,t);if("Literal"===e.key.type)return String(e.key.value);if("PrivateIdentifier"===e.key.type)break;return e.key.name}return null}function oK(e,t){let r=e.parent,n=[],u="Property"===r.type&&r.value===e,a="MethodDefinition"===r.type&&r.value===e,i="PropertyDefinition"===r.type&&r.value===e;if((a||i)&&(r.static&&n.push("static"),"PrivateIdentifier"===r.key.type&&n.push("private")),e.async&&n.push("async"),e.generator&&n.push("generator"),u||a){if("constructor"===r.kind)return"constructor";"get"===r.kind?n.push("getter"):"set"===r.kind?n.push("setter"):n.push("method")}else i?n.push("method"):("ArrowFunctionExpression"===e.type&&n.push("arrow"),n.push("function"));if(u||a||i){if("PrivateIdentifier"===r.key.type)n.push(`#${r.key.name}`);else{let e=oH(r);if(e)n.push(`'${e}'`);else if(t){let e=t.getText(r.key);e.includes("\n")||n.push(`[${e}]`)}}}else e.id?n.push(`'${e.id.name}'`):"VariableDeclarator"===r.type&&r.id&&"Identifier"===r.id.type?n.push(`'${r.id.name}'`):("AssignmentExpression"===r.type||"AssignmentPattern"===r.type)&&r.left&&"Identifier"===r.left.type?n.push(`'${r.left.name}'`):"ExportDefaultDeclaration"===r.type&&r.declaration===e&&n.push("'default'");return n.join(" ")}const oY=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),oJ=Object.freeze(new Set(["-","+","!","~"]));function oQ(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}const oX=Object.freeze(Object.assign(Object.create(null),{$visit(e,t,r){let{type:n}=e;return"function"==typeof this[n]?this[n](e,t,r):this.$visitChildren(e,t,r)},$visitChildren(e,t,r){let{type:n}=e;for(let u of r[n]||Object.keys(e).filter(os)){let n=e[u];if(Array.isArray(n)){for(let e of n)if(oQ(e)&&this.$visit(e,t,r))return!0}else if(oQ(n)&&this.$visit(n,t,r))return!0}return!1},ArrowFunctionExpression:()=>!1,AssignmentExpression:()=>!0,AwaitExpression:()=>!0,BinaryExpression(e,t,r){return!!(t.considerImplicitTypeConversion&&oY.has(e.operator))&&("Literal"!==e.left.type||"Literal"!==e.right.type)||this.$visitChildren(e,t,r)},CallExpression:()=>!0,FunctionExpression:()=>!1,ImportExpression:()=>!0,MemberExpression(e,t,r){return!!t.considerGetters||!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.property.type||this.$visitChildren(e,t,r)},MethodDefinition(e,t,r){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,r)},NewExpression:()=>!0,Property(e,t,r){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,r)},PropertyDefinition(e,t,r){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,r)},UnaryExpression(e,t,r){return!!("delete"===e.operator||t.considerImplicitTypeConversion&&oJ.has(e.operator)&&"Literal"!==e.argument.type)||this.$visitChildren(e,t,r)},UpdateExpression:()=>!0,YieldExpression:()=>!0}));function o0(e,t,{considerGetters:r=!1,considerImplicitTypeConversion:n=!1}={}){return oX.$visit(e,{considerGetters:r,considerImplicitTypeConversion:n},t.visitorKeys||oi)}function o1(e,t,r){let n,u,a,i,o;if("number"==typeof e){if(n=0|e,u=t,a=r,!(n>=1))throw TypeError("'times' should be a positive integer.")}else n=1,u=e,a=t;if(null==u||null==u.parent||"CatchClause"===u.parent.type&&u.parent.param===u)return!1;i=o=u;do i=a.getTokenBefore(i),o=a.getTokenAfter(o);while(null!=i&&null!=o&&ob(i)&&ov(o)&&i!==function(e,t){let r=e.parent;switch(r.type){case"CallExpression":case"NewExpression":if(1===r.arguments.length&&r.arguments[0]===e)return t.getTokenAfter(r.callee,ob);return null;case"DoWhileStatement":if(r.test===e)return t.getTokenAfter(r.body,ob);return null;case"IfStatement":case"WhileStatement":if(r.test===e)return t.getFirstToken(r,1);return null;case"ImportExpression":if(r.source===e)return t.getFirstToken(r,1);return null;case"SwitchStatement":if(r.discriminant===e)return t.getFirstToken(r,1);return null;case"WithStatement":if(r.object===e)return t.getFirstToken(r,1);return null;default:return null}}(u,a)&&--n>0);return 0===n}const o2=/\$(?:[$&`']|[1-9][0-9]?)/gu,o3=new WeakMap;class o4{constructor(e,{escaped:t=!1}={}){if(!(e instanceof RegExp))throw TypeError("'pattern' should be a RegExp instance.");if(!e.flags.includes("g"))throw Error("'pattern' should contains 'g' flag.");o3.set(this,{pattern:new RegExp(e.source,e.flags),escaped:!!t})}*execAll(e){let{pattern:t,escaped:r}=o3.get(this),n=null,u=0;for(t.lastIndex=0;null!=(n=t.exec(e));)(r||!function(e,t){let r=!1;for(let n=t-1;n>=0&&92===e.charCodeAt(n);--n)r=!r;return r}(e,n.index))&&(u=t.lastIndex,yield n,t.lastIndex=u)}test(e){return!this.execAll(e).next().done}[Symbol.replace](e,t){return"function"==typeof t?function(e,t,r){let n=[],u=0;for(let a of e.execAll(t))n.push(t.slice(u,a.index)),n.push(String(r(...a,a.index,a.input))),u=a.index+a[0].length;return n.push(t.slice(u)),n.join("")}(this,String(e),t):function(e,t,r){let n=[],u=0,a=null;function i(e){switch(e){case"$$":return"$";case"$&":return a[0];case"$`":return t.slice(0,a.index);case"$'":return t.slice(a.index+a[0].length);default:{let t=e.slice(1);if(t in a)return a[t];return e}}}for(a of e.execAll(t))n.push(t.slice(u,a.index)),n.push(r.replace(o2,i)),u=a.index+a[0].length;return n.push(t.slice(u)),n.join("")}(this,String(e),String(t))}}const o5=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,o8=Function.call.bind(Object.hasOwnProperty),o6=Symbol("read"),o9=Symbol("call"),o7=Symbol("construct"),se=Symbol("esm"),st={require:{[o9]:!0}};function sr(e){return null==e||0!==e.defs.length||e.references.some(e=>e.isWrite())}class sn{constructor(e,{mode:t="strict",globalObjectNames:r=["global","globalThis","self","window"]}={}){this.variableStack=[],this.globalScope=e,this.mode=t,this.globalObjectNames=r.slice(0)}*iterateGlobalReferences(e){for(let t of Object.keys(e)){let r=e[t],n=[t],u=this.globalScope.set.get(t);sr(u)||(yield*this._iterateVariableReferences(u,n,r,!0))}for(let t of this.globalObjectNames){let r=[],n=this.globalScope.set.get(t);sr(n)||(yield*this._iterateVariableReferences(n,r,e,!1))}}*iterateCjsReferences(e){for(let{node:t}of this.iterateGlobalReferences(st)){let r=oZ(t.arguments[0]);if(null==r||!o8(e,r))continue;let n=e[r],u=[r];n[o6]&&(yield{node:t,path:u,type:o6,info:n[o6]}),yield*this._iteratePropertyReferences(t,u,n)}}*iterateEsmReferences(e){for(let t of this.globalScope.block.body){if(!o5.test(t.type)||null==t.source)continue;let r=t.source.value;if(!o8(e,r))continue;let n=e[r],u=[r];if(n[o6]&&(yield{node:t,path:u,type:o6,info:n[o6]}),"ExportAllDeclaration"===t.type)for(let e of Object.keys(n)){let r=n[e];r[o6]&&(yield{node:t,path:u.concat(e),type:o6,info:r[o6]})}else for(let e of t.specifiers){let t=o8(n,se),r=this._iterateImportReferences(e,u,t?n:"legacy"===this.mode?{default:n,...n}:{default:n});if(t)yield*r;else for(let e of r)e.path=e.path.filter(su),(e.path.length>=2||e.type!==o6)&&(yield e)}}}*_iterateVariableReferences(e,t,r,n){if(!this.variableStack.includes(e)){this.variableStack.push(e);try{for(let u of e.references){if(!u.isRead())continue;let e=u.identifier;n&&r[o6]&&(yield{node:e,path:t,type:o6,info:r[o6]}),yield*this._iteratePropertyReferences(e,t,r)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,t,r){let n=e;for(;function(e){let t=e.parent;switch(t&&t.type){case"ConditionalExpression":return t.consequent===e||t.alternate===e;case"LogicalExpression":case"ChainExpression":return!0;case"SequenceExpression":return t.expressions[t.expressions.length-1]===e;default:return!1}}(n);)n=n.parent;let u=n.parent;if("MemberExpression"===u.type){if(u.object===n){let e=oH(u);if(null==e||!o8(r,e))return;t=t.concat(e);let n=r[e];n[o6]&&(yield{node:u,path:t,type:o6,info:n[o6]}),yield*this._iteratePropertyReferences(u,t,n)}return}if("CallExpression"===u.type){u.callee===n&&r[o9]&&(yield{node:u,path:t,type:o9,info:r[o9]});return}if("NewExpression"===u.type){u.callee===n&&r[o7]&&(yield{node:u,path:t,type:o7,info:r[o7]});return}if("AssignmentExpression"===u.type){u.right===n&&(yield*this._iterateLhsReferences(u.left,t,r),yield*this._iteratePropertyReferences(u,t,r));return}if("AssignmentPattern"===u.type){u.right===n&&(yield*this._iterateLhsReferences(u.left,t,r));return}"VariableDeclarator"===u.type&&u.init===n&&(yield*this._iterateLhsReferences(u.id,t,r))}*_iterateLhsReferences(e,t,r){if("Identifier"===e.type){let n=ol(this.globalScope,e);null!=n&&(yield*this._iterateVariableReferences(n,t,r,!1));return}if("ObjectPattern"===e.type){for(let n of e.properties){let e=oH(n);if(null==e||!o8(r,e))continue;let u=t.concat(e),a=r[e];a[o6]&&(yield{node:n,path:u,type:o6,info:a[o6]}),yield*this._iterateLhsReferences(n.value,u,a)}return}"AssignmentPattern"===e.type&&(yield*this._iterateLhsReferences(e.left,t,r))}*_iterateImportReferences(e,t,r){let n=e.type;if("ImportSpecifier"===n||"ImportDefaultSpecifier"===n){let u="ImportDefaultSpecifier"===n?"default":e.imported.name;if(!o8(r,u))return;t=t.concat(u);let a=r[u];a[o6]&&(yield{node:e,path:t,type:o6,info:a[o6]}),yield*this._iterateVariableReferences(ol(this.globalScope,e.local),t,a,!1);return}if("ImportNamespaceSpecifier"===n){yield*this._iterateVariableReferences(ol(this.globalScope,e.local),t,r,!1);return}if("ExportSpecifier"===n){let n=e.local.name;if(!o8(r,n))return;t=t.concat(n);let u=r[n];u[o6]&&(yield{node:e,path:t,type:o6,info:u[o6]})}}}function su(e,t){return!(1===t&&"default"===e)}sn.READ=o6,sn.CALL=o9,sn.CONSTRUCT=o7,sn.ESM=se;var sa=/*@__PURE__*/ot(/*#__PURE__*/Object.freeze({__proto__:null,CALL:o9,CONSTRUCT:o7,ESM:se,PatternMatcher:o4,READ:o6,ReferenceTracker:sn,default:{CALL:o9,CONSTRUCT:o7,ESM:se,findVariable:ol,getFunctionHeadLocation:oL,getFunctionNameWithKind:oK,getInnermostScope:od,getPropertyName:oH,getStaticValue:oG,getStringIfConstant:oZ,hasSideEffect:o0,isArrowToken:oh,isClosingBraceToken:oA,isClosingBracketToken:oE,isClosingParenToken:ov,isColonToken:oy,isCommaToken:om,isCommentToken:oD,isNotArrowToken:oS,isNotClosingBraceToken:oj,isNotClosingBracketToken:oI,isNotClosingParenToken:ok,isNotColonToken:oT,isNotCommaToken:o_,isNotCommentToken:oO,isNotOpeningBraceToken:oB,isNotOpeningBracketToken:oP,isNotOpeningParenToken:oF,isNotSemicolonToken:ow,isOpeningBraceToken:oC,isOpeningBracketToken:ox,isOpeningParenToken:ob,isParenthesized:o1,isSemicolonToken:og,PatternMatcher:o4,READ:o6,ReferenceTracker:sn},findVariable:ol,getFunctionHeadLocation:oL,getFunctionNameWithKind:oK,getInnermostScope:od,getPropertyName:oH,getStaticValue:oG,getStringIfConstant:oZ,hasSideEffect:o0,isArrowToken:oh,isClosingBraceToken:oA,isClosingBracketToken:oE,isClosingParenToken:ov,isColonToken:oy,isCommaToken:om,isCommentToken:oD,isNotArrowToken:oS,isNotClosingBraceToken:oj,isNotClosingBracketToken:oI,isNotClosingParenToken:ok,isNotColonToken:oT,isNotCommaToken:o_,isNotCommentToken:oO,isNotOpeningBraceToken:oB,isNotOpeningBracketToken:oP,isNotOpeningParenToken:oF,isNotSemicolonToken:ow,isOpeningBraceToken:oC,isOpeningBracketToken:ox,isOpeningParenToken:ob,isParenthesized:o1,isSemicolonToken:og})),si=/*@__PURE__*/oe(/*@__PURE__*/function(){if(a)return u;a=1;let{isParenthesized:e}=sa,t="too-deep",r="should-parenthesized";return u={create:n=>({ConditionalExpression(u){if([u.test,u.consequent,u.alternate].some(e=>"ConditionalExpression"===e.type))return;let{sourceCode:a}=n,i=a.getAncestors(u).reverse(),o=i.findIndex(e=>"ConditionalExpression"!==e.type);return 1!==o||e(u,a)?o>1?{node:o>2?i[o-3]:u,messageId:t}:void 0:{node:u,messageId:r,fix:e=>[e.insertTextBefore(u,"("),e.insertTextAfter(u,")")]}}}),meta:{type:"suggestion",docs:{description:"Disallow nested ternary expressions.",recommended:!0},fixable:"code",messages:{[t]:"Do not nest ternary expressions.",[r]:"Nest ternary expression should be parenthesized."}}}}());function so(){if(o)return i;o=1;let{isParenthesized:e,isOpeningParenToken:t,isClosingParenToken:r}=sa;function n(t,r){let n=0;for(;e(n+1,t,r);)n++;return n}function u(e,u){let a=n(e,u);return 0===a?[]:[...u.getTokensBefore(e,{count:a,filter:t}),...u.getTokensAfter(e,{count:a,filter:r})]}function a(e,t){let r=u(e,t),[n]=(r[0]||e).range,[,a]=(r.at(-1)||e).range;return[n,a]}return i={isParenthesized:e,getParenthesizedTimes:n,getParentheses:u,getParenthesizedRange:a,getParenthesizedText:function(e,t){let[r,n]=a(e,t);return t.text.slice(r,n)}}}function ss(){if(d)return s;function e(e,t){return e?.type==="Literal"&&(null===t?"null"===e.raw:e.value===t)}return d=1,s={isLiteral:e,isStringLiteral:e=>e?.type==="Literal"&&"string"==typeof e.value,isNumberLiteral:e=>"Literal"===e.type&&"number"==typeof e.value,isBigIntLiteral:e=>"Literal"===e.type&&!!e.bigint,isNullLiteral:t=>e(t,null),isRegexLiteral:e=>"Literal"===e.type&&!!e.regex}}function sd(){if(c)return l;function e(e,t,r){if(!r.includes(e?.type))return!1;"string"==typeof t&&(t={names:[t]}),Array.isArray(t)&&(t={names:t});let{name:n,names:u,argumentsLength:a,minimumArguments:i,maximumArguments:o,allowSpreadElement:s,optional:d}={minimumArguments:0,maximumArguments:Number.POSITIVE_INFINITY,allowSpreadElement:!1,...t};if(n&&(u=[n]),!0===d&&e.optional!==d||!1===d&&e.optional||"number"==typeof a&&e.arguments.length!==a||0!==i&&e.arguments.length<i||Number.isFinite(o)&&e.arguments.length>o)return!1;if(!s){let t=Number.isFinite(o)?o:a;if("number"==typeof t&&e.arguments.some((e,r)=>"SpreadElement"===e.type&&r<t))return!1}return!Array.isArray(u)||!(u.length>0)||"Identifier"===e.callee.type&&!!u.includes(e.callee.name)}return c=1,l={isCallExpression:(t,r)=>e(t,r,["CallExpression"]),isNewExpression:(t,r)=>{if("boolean"==typeof r?.optional)throw TypeError("Cannot check node.optional in `isNewExpression`.");return e(t,r,["NewExpression"])},isCallOrNewExpression:(t,r)=>e(t,r,["CallExpression","NewExpression"])}}function sl(){return E?x:(E=1,x=["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"])}function sc(){return S?D:(S=1,D=function(e,t){if(e?.type!=="MemberExpression")return!1;"string"==typeof t&&(t={properties:[t]}),Array.isArray(t)&&(t={properties:t});let{property:r,properties:n,object:u,objects:a,optional:i,computed:o}={property:"",properties:[],object:"",...t};if(r&&(n=[r]),u&&(a=[u]),!0===i&&e.optional!==i||!1===i&&e.optional)return!1;if(Array.isArray(n)&&n.length>0){if("Identifier"!==e.property.type||!n.includes(e.property.name))return!1;o??=!1}return!(!0===o&&e.computed!==o||!1===o&&e.computed||Array.isArray(a)&&a.length>0&&("Identifier"!==e.object.type||!a.includes(e.object.name)))})}function sf(){if(P)return k;P=1;let{isStringLiteral:e}=/*@__PURE__*/ss(),{isCallExpression:t}=/*@__PURE__*/sd();return k=r=>t(r,{name:"require",argumentsLength:1,optional:!1})&&e(r.arguments[0])}function sp(){if(B)return I;function e(e,t){let r=t.trim().split(".");for(let t=r.length-1;t>=0;t--){let n=r[t];if(!n)return!1;if(0===t)return"Identifier"===e.type&&e.name===n||"this"===n&&"ThisExpression"===e.type;if("MemberExpression"!==e.type||e.optional||e.computed||"Identifier"!==e.property.type||e.property.name!==n)return!1;e=e.object}}return B=1,I={isNodeMatchesNameOrPath:e,isNodeMatches:function(t,r){return r.some(r=>e(t,r))}}}function sh(){if(M)return R;M=1;let{isLiteral:e,isStringLiteral:t,isNumberLiteral:r,isBigIntLiteral:n,isNullLiteral:u,isRegexLiteral:a}=/*@__PURE__*/ss(),{isNewExpression:i,isCallExpression:o,isCallOrNewExpression:s}=/*@__PURE__*/sd();return R={isLiteral:e,isStringLiteral:t,isNumberLiteral:r,isBigIntLiteral:n,isNullLiteral:u,isRegexLiteral:a,isArrowFunctionBody:p?f:(p=1,f=function(e){return"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e}),isCallExpression:o,isCallOrNewExpression:s,isDirective:m?h:(m=1,h=e=>"ExpressionStatement"===e.type&&"string"==typeof e.directive),isEmptyNode:y?g:(y=1,g=function e(t,r){let{type:n}=t;return"BlockStatement"===n?t.body.every(t=>e(t,r)):!!("EmptyStatement"===n||r?.(t))}),isExpressionStatement:v?b:(v=1,b=function(e){return"ExpressionStatement"===e.type||"ChainExpression"===e.type&&"ExpressionStatement"===e.parent.type}),isFunction:/*@__PURE__*/function(){if(A)return C;A=1;let e=/*@__PURE__*/sl();return C=function(t){return e.includes(t.type)}}(),isMemberExpression:/*@__PURE__*/sc(),isMethodCall:/*@__PURE__*/function(){if(w)return _;w=1;let e=/*@__PURE__*/sc(),{isCallExpression:t}=/*@__PURE__*/sd();return _=function(r,n){"string"==typeof n&&(n={methods:[n]}),Array.isArray(n)&&(n={methods:n});let{optionalCall:u,optionalMember:a,method:i,methods:o}={method:"",methods:[],...n};return t(r,{argumentsLength:n.argumentsLength,minimumArguments:n.minimumArguments,maximumArguments:n.maximumArguments,allowSpreadElement:n.allowSpreadElement,optional:u})&&e(r.callee,{object:n.object,objects:n.objects,computed:n.computed,property:i,properties:o,optional:a})}}(),isNewExpression:i,isReferenceIdentifier:F?T:(F=1,T=function(e,t=[]){if("Identifier"!==e.type)return!1;let r=Array.isArray(t)?t:[t];return(!(r.length>0)||!!r.includes(e.name))&&!function(e){let{parent:t}=e;switch(t.type){case"MemberExpression":return!t.computed&&t.property===e;case"FunctionDeclaration":case"FunctionExpression":return t.params.includes(e)||t.id===e;case"ArrowFunctionExpression":return t.params.includes(e);case"ClassDeclaration":case"ClassExpression":case"VariableDeclarator":case"TSDeclareFunction":case"TSEnumMember":case"TSTypeAliasDeclaration":return t.id===e;case"PropertyDefinition":case"MethodDefinition":return!t.computed&&t.key===e;case"Property":return!t.computed&&t.key===e&&("ObjectExpression"===t.parent.type||"ObjectPattern"===t.parent.type)&&t.parent.properties.includes(t)||t.value===e&&"ObjectPattern"===t.parent.type&&t.parent.properties.includes(t);case"ArrayPattern":return t.elements.includes(e);case"LabeledStatement":case"ContinueStatement":case"BreakStatement":return t.label===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":return t.local===e;case"ExportAllDeclaration":return t.exported===e;case"ImportSpecifier":return t.local===e||t.imported===e;case"ExportSpecifier":return t.local===e||t.exported===e;case"TSIndexSignature":return t.parameters.includes(e);case"TSTypeParameter":return t.name===e;case"TSMappedType":case"TSPropertySignature":return t.key===e}return!1}(e)}),isStaticRequire:/*@__PURE__*/sf(),isTaggedTemplateLiteral:/*@__PURE__*/function(){if(O)return j;O=1;let{isNodeMatches:e}=/*@__PURE__*/sp();return j=function(t,r){return"TemplateLiteral"===t.type&&"TaggedTemplateExpression"===t.parent.type&&t.parent.quasi===t&&(!r||e(t.parent.tag,r))}}(),isUndefined:N?L:(N=1,L=function(e){return"Identifier"===e.type&&"undefined"===e.name}),functionTypes:/*@__PURE__*/sl()}}function sm(){return V?z:(V=1,z=e=>e?.type==="LogicalExpression"&&("&&"===e.operator||"||"===e.operator))}var sg={},sy={},sb={};function sv(){var e,t;return H||(H=1,Object.defineProperty(sg,"__esModule",{value:!0}),Object.defineProperty(sg,"isIdentifierChar",{enumerable:!0,get:function(){return e.isIdentifierChar}}),Object.defineProperty(sg,"isIdentifierName",{enumerable:!0,get:function(){return e.isIdentifierName}}),Object.defineProperty(sg,"isIdentifierStart",{enumerable:!0,get:function(){return e.isIdentifierStart}}),Object.defineProperty(sg,"isKeyword",{enumerable:!0,get:function(){return t.isKeyword}}),Object.defineProperty(sg,"isReservedWord",{enumerable:!0,get:function(){return t.isReservedWord}}),Object.defineProperty(sg,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return t.isStrictBindOnlyReservedWord}}),Object.defineProperty(sg,"isStrictBindReservedWord",{enumerable:!0,get:function(){return t.isStrictBindReservedWord}}),Object.defineProperty(sg,"isStrictReservedWord",{enumerable:!0,get:function(){return t.isStrictReservedWord}}),e=function(){if(G)return sy;G=1,Object.defineProperty(sy,"__esModule",{value:!0}),sy.isIdentifierChar=s,sy.isIdentifierName=function(e){let t=!0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if((64512&n)==55296&&r+1<e.length){let t=e.charCodeAt(++r);(64512&t)==56320&&(n=65536+((1023&n)<<10)+(1023&t))}if(t){if(t=!1,!o(n))return!1}else if(!s(n))return!1}return!t},sy.isIdentifierStart=o;let e="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",t="\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",r=RegExp("["+e+"]"),n=RegExp("["+e+t+"]");e=t=null;let u=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],a=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function i(e,t){let r=65536;for(let n=0,u=t.length;n<u&&!((r+=t[n])>e);n+=2)if((r+=t[n+1])>=e)return!0;return!1}function o(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&r.test(String.fromCharCode(e)):i(e,u)))}function s(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&n.test(String.fromCharCode(e)):i(e,u)||i(e,a))))}return sy}(),t=function(){if(Z)return sb;Z=1,Object.defineProperty(sb,"__esModule",{value:!0}),sb.isKeyword=function(e){return t.has(e)},sb.isReservedWord=u,sb.isStrictBindOnlyReservedWord=i,sb.isStrictBindReservedWord=function(e,t){return a(e,t)||i(e)},sb.isStrictReservedWord=a;let e={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},t=new Set(e.keyword),r=new Set(e.strict),n=new Set(e.strictBind);function u(e,t){return t&&"await"===e||"enum"===e}function a(e,t){return u(e,t)||r.has(e)}function i(e){return n.has(e)}return sb}()),sg}function sx(){if(Q)return J;Q=1;let e=t=>[t,...t.childScopes.flatMap(t=>e(t))];return J=e}function sE(){if(ee)return X;ee=1;let e=/*@__PURE__*/sx();return X=t=>[...new Set(e(t).flatMap(({references:e})=>e))]}function sC(){if(er)return et;er=1;let{isIdentifierName:e,isStrictReservedWord:t,isKeyword:r}=sv(),n=Y?K:(Y=1,K=function(e,t){for(;t;){let r=t.set.get(e);if(r)return r;t=t.upper}}),u=/*@__PURE__*/sE(),a=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with","as","implements","interface","let","package","private","protected","public","static","yield","any","boolean","constructor","declare","get","module","require","number","set","string","symbol","type","from","of"]),i=n=>"string"==typeof n&&!r(n)&&!t(n,!0)&&e(n)&&"arguments"!==n&&!a.has(n),o=(e,t)=>u(t).some(({identifier:t,resolved:r})=>t?.name===e&&!r),s=(e,t)=>!t.some(t=>n(e,t)||o(e,t)),d=()=>!0;return et=function(e,t,r=d){if(i(e)||i(e+="_")){for(;!s(e,t)||!r(e,t);)e+="_";return e}}}function sA(){if(ei)return ea;ei=1;let e=function(){if(eu)return en;eu=1;let e={},t=e.hasOwnProperty,r=(e,r)=>{for(let n in e)t.call(e,n)&&r(n,e[n])},n=(e,t)=>(t&&r(t,(t,r)=>{e[t]=r}),e),u=(e,t)=>{let r=e.length,n=-1;for(;++n<r;)t(e[n])},a=e=>"\\u"+("0000"+e).slice(-4),i=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},o=e.toString,s=Array.isArray,d=e=>"function"==typeof Buffer&&Buffer.isBuffer(e),l=e=>"[object Object]"==o.call(e),c=e=>"string"==typeof e||"[object String]"==o.call(e),f=e=>"number"==typeof e||"[object Number]"==o.call(e),p=e=>"function"==typeof e,h=e=>"[object Map]"==o.call(e),m=e=>"[object Set]"==o.call(e),g={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},y=/[\\\b\f\n\r\t]/,b=/[0-9]/,v=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,x=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,E=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,C=(e,t)=>{let o;let A=()=>{k=F,++t.indentLevel,F=t.indent.repeat(t.indentLevel)},D={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},S=t&&t.json;S&&(D.quotes="double",D.wrap=!0),"single"!=(t=n(D,t)).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");let _="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",w=t.compact,T=t.lowercaseHex,F=t.indent.repeat(t.indentLevel),k="",P=t.__inline1__,I=t.__inline2__,B=w?"":"\n",j=!0,O="binary"==t.numbers,L="octal"==t.numbers,N="decimal"==t.numbers,R="hexadecimal"==t.numbers;if(S&&e&&p(e.toJSON)&&(e=e.toJSON()),!c(e)){if(h(e))return 0==e.size?"new Map()":(w||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+C(Array.from(e),t)+")");if(m(e))return 0==e.size?"new Set()":"new Set("+C(Array.from(e),t)+")";if(d(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+C(Array.from(e),t)+")";if(s(e))return(o=[],t.wrap=!0,P&&(t.__inline1__=!1,t.__inline2__=!0),I||A(),u(e,e=>{j=!1,I&&(t.__inline2__=!1),o.push((w||I?"":F)+C(e,t))}),j)?"[]":I?"["+o.join(", ")+"]":"["+B+o.join(","+B)+B+(w?"":k)+"]";if(f(e)){if(S)return JSON.stringify(e);if(N)return String(e);if(R){let t=e.toString(16);return T||(t=t.toUpperCase()),"0x"+t}if(O)return"0b"+e.toString(2);if(L)return"0o"+e.toString(8)}else if(l(e))return(o=[],t.wrap=!0,A(),r(e,(e,r)=>{j=!1,o.push((w?"":F)+C(e,t)+":"+(w?"":" ")+C(r,t))}),j)?"{}":"{"+B+o.join(","+B)+B+(w?"":k)+"}";else return S?JSON.stringify(e)||"null":String(e)}let M=t.escapeEverything?x:E;return o=e.replace(M,(e,r,n,u,o,s)=>{if(r){if(t.minimal)return r;let e=r.charCodeAt(0),n=r.charCodeAt(1);return t.es6?"\\u{"+i((e-55296)*1024+n-56320+65536,T)+"}":a(i(e,T))+a(i(n,T))}if(n)return a(i(n.charCodeAt(0),T));if("\0"==e&&!S&&!b.test(s.charAt(o+1)))return"\\0";if(u)return u==_||t.escapeEverything?"\\"+u:u;if(y.test(e))return g[e];if(t.minimal&&!v.test(e))return e;let d=i(e.charCodeAt(0),T);return S||d.length>2?a(d):"\\x"+("00"+d).slice(-2)}),"`"==_&&(o=o.replace(/\$\{/g,"\\${")),t.isScriptContext&&(o=o.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,S?"\\u003C!--":"\\x3C!--")),t.wrap&&(o=_+o+_),o};return C.version="3.0.2",en=C}();return ea=function(t,r="'"){if("string"!=typeof t)throw TypeError("Unexpected string.");return e(t,{quotes:'"'===r?"double":"single",wrap:!0,es6:!0,minimal:!0,lowercaseHex:!1})}}function sD(){if(es)return eo;es=1;let{isOpeningParenToken:e,isCommaToken:t}=sa;return eo=function(r,n){let u=r.getTokenAfter(n.callee,e),[a,i]=r.getLastTokens(n,2);return{openingParenthesisToken:u,closingParenthesisToken:i,trailingCommaToken:t(a)?a:void 0}}}function sS(){return ef?ec:(ef=1,ec=({identifiers:e,references:t})=>[...new Set([...e,...t.map(({identifier:e})=>e)])])}function s_(){return eb?ey:(eb=1,ey=e=>("AssignmentExpression"===e.parent.type||"AssignmentPattern"===e.parent.type)&&e.parent.left===e||"UpdateExpression"===e.parent.type&&e.parent.argument===e||"ArrayPattern"===e.parent.type&&e.parent.elements.includes(e)||"Property"===e.parent.type&&e.parent.value===e&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent)||"UnaryExpression"===e.parent.type&&"delete"===e.parent.operator&&e.parent.argument===e)}function sw(){return e_?eS:(e_=1,eS=function(e,t){return e.loc.start.line===t.loc.start.line})}function sT(){if(ek)return eF;ek=1;let{getStaticValue:e}=sa;function t(r){let n;switch(r?.type){case"MemberExpression":n=r.property;break;case"ChainExpression":return t(r.expression);case"Property":case"MethodDefinition":n=r.key}if(n){if("Identifier"===n.type&&!r.computed)return n.name;let t=e(n);if(!t)return;return String(t.value)}}return eF=function e(r,n){if(r.type!==n.type)return"ChainExpression"===r.type?e(r.expression,n):"ChainExpression"===n.type&&e(r,n.expression);switch(r.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return r.name===n.name;case"Literal":return r.regex||n.regex?!!(r.regex&&n.regex&&r.regex.pattern===n.regex.pattern&&r.regex.flags===n.regex.flags):r.bigint||n.bigint?r.bigint===n.bigint:r.value===n.value;case"ChainExpression":return e(r.expression,n.expression);case"MemberExpression":{let u=t(r);if(void 0!==u)return e(r.object,n.object)&&u===t(n);return r.computed===n.computed&&e(r.object,n.object)&&e(r.property,n.property)}default:return!1}}}function sF(){return eI?eP:(eI=1,eP=function(e,t){let r=function(e,t){let r=e.references.filter(e=>e.identifier===t);if(1===r.length)return r[0]}(e,t);return!!r?.resolved&&r.resolved.defs.length>0})}function sk(){if(eL)return eO;eL=1;let e=new Set(["String","Null","Boolean","Numeric","RegularExpression"]),t=new Set(["[","(","/","`","+","-","*",",","."]);return eO=function(r,n,u){if(""===u||u&&!t.has(u.charAt(0))||!r)return!1;let{type:a,value:i,range:o}=r,s=n.getNodeByRangeIndex(o[0]);if("Punctuator"===a){if(";"===i)return!1;if("]"===i)return!0;if(")"===i){switch(s.type){case"IfStatement":if(n.getTokenBefore(s.consequent)===r)return!1;break;case"ForStatement":case"ForInStatement":case"ForOfStatement":case"WhileStatement":case"DoWhileStatement":case"WithStatement":if(s.body&&n.getTokenBefore(s.body)===r)return!1}return!0}}return!!e.has(a)||("Template"===a?i.endsWith("`"):"ObjectExpression"===s.type||"Identifier"===a&&("of"!==i||"ForOfStatement"!==s.type)&&("await"!==i||"AwaitExpression"!==s.type))}}function sP(){if(eR)return eN;eR=1;let{isOpeningParenToken:e,isClosingParenToken:t}=sa;return eN=function(r,n){if(r.arguments.length>0)return!0;let[u,a]=n.getLastTokens(r,2);return e(u)&&t(a)&&r.callee.range[1]<r.range[1]}}function sI(){if(e$)return eM;e$=1;let{isNumberLiteral:e,isBigIntLiteral:t}=/*@__PURE__*/sh(),r=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,n=e=>r.test(e);return eM={isDecimalIntegerNode:t=>e(t)&&n(t.raw),isDecimalInteger:n,isNumeric:r=>e(r)||t(r),isLegacyOctal:t=>e(t)&&/^0\d+$/.test(t.raw),getPrefix:function(e){let t="",r=e;return/^0[box]/i.test(e)&&(t=e.slice(0,2),r=e.slice(2)),{prefix:t,data:r}},parseNumber:function(e){let{number:t,mark:r="",sign:n="",power:u=""}=e.match(/^(?<number>[\d._]*?)(?:(?<mark>[Ee])(?<sign>[+-])?(?<power>[\d_]+))?$/).groups;return{number:t,mark:r,sign:n,power:u}},parseFloatNumber:function(e){let t=e.split("."),[r,n=""]=t;return{integer:r,dot:2===t.length?".":"",fractional:n}}}}function sB(){if(ez)return eU;ez=1;let e=/*@__PURE__*/sP(),{isDecimalIntegerNode:t}=/*@__PURE__*/sI();return eU=function(r,n){switch(r.type){case"Identifier":case"MemberExpression":case"CallExpression":case"ChainExpression":case"TemplateLiteral":case"ThisExpression":case"ArrayExpression":case"FunctionExpression":return!1;case"NewExpression":return!e(r,n);case"Literal":if(t(r))return!0;return!1;default:return!0}}}var sj={exports:{}};function sO(){return eJ?eY:(eJ=1,eY=function(e,t,r=0,n=0){let[u,a]=Array.isArray(e)?e:e.range;return{start:t.getLocFromIndex(u+r),end:t.getLocFromIndex(a+n)}})}function sL(){if(e1)return e0;e1=1;let{isParenthesized:e,getParenthesizedTimes:t,getParentheses:r,getParenthesizedRange:n,getParenthesizedText:u}=/*@__PURE__*/so(),{isArrayPrototypeProperty:a,isObjectPrototypeProperty:i}=/*@__PURE__*/function(){if(U)return $;U=1;let{isMemberExpression:e}=/*@__PURE__*/sh();function t(t,r){let{object:n,property:u,properties:a}={property:"",properties:[],...r};if(!e(t,{property:u,properties:a,optional:!1}))return;let i=t.object;return e(i,{object:n,property:"prototype",optional:!1})||"Array"===n&&"ArrayExpression"===i.type&&0===i.elements.length||"Object"===n&&"ObjectExpression"===i.type&&0===i.properties.length}return $={isArrayPrototypeProperty:(e,r)=>t(e,{...r,object:"Array"}),isObjectPrototypeProperty:(e,r)=>t(e,{...r,object:"Object"})}}(),{isNodeMatches:o,isNodeMatchesNameOrPath:s}=/*@__PURE__*/sp(),{isBooleanNode:d,getBooleanAncestor:l}=/*@__PURE__*/function(){if(W)return q;W=1;let e=/*@__PURE__*/sm(),t=e=>e?.type==="UnaryExpression"&&"!"===e.operator,r=e=>t(e.parent)&&e.parent.argument===e,n=e=>u(e.parent)&&e.parent.arguments[0]===e,u=e=>e?.type==="CallExpression"&&"Identifier"===e.callee.type&&"Boolean"===e.callee.name&&1===e.arguments.length,a=e=>e?.type==="VExpressionContainer"&&"VAttribute"===e.parent.type&&e.parent.directive&&e.parent.value===e&&"VDirectiveKey"===e.parent.key.type&&"VIdentifier"===e.parent.key.name.type&&("if"===e.parent.key.name.rawName||"else-if"===e.parent.key.name.rawName||"show"===e.parent.key.name.rawName);return q={isBooleanNode:function i(o){if(t(o)||r(o)||u(o)||n(o))return!0;let{parent:s}=o;return!!a(s)||("IfStatement"===s.type||"ConditionalExpression"===s.type||"WhileStatement"===s.type||"DoWhileStatement"===s.type||"ForStatement"===s.type)&&s.test===o||!!e(s)&&i(s)},getBooleanAncestor:function(e){let t=!1;for(;;)if(r(e))t=!t,e=e.parent;else if(n(e))e=e.parent;else break;return{node:e,isNegative:t}}}}();return e0={avoidCapture:/*@__PURE__*/sC(),escapeString:/*@__PURE__*/sA(),getBooleanAncestor:l,getCallExpressionArgumentsText:/*@__PURE__*/function(){if(el)return ed;el=1;let e=/*@__PURE__*/sD();return ed=function(t,r){let{openingParenthesisToken:n,closingParenthesisToken:u}=e(t,r);return t.text.slice(n.range[1],u.range[0])}}(),getCallExpressionTokens:/*@__PURE__*/sD(),getParentheses:r,getParenthesizedRange:n,getParenthesizedText:u,getParenthesizedTimes:t,getReferences:/*@__PURE__*/sE(),getScopes:/*@__PURE__*/sx(),getVariableIdentifiers:/*@__PURE__*/sS(),hasOptionalChainElement:/*@__PURE__*/function(){if(eh)return ep;eh=1;let e=e=>"MemberExpression"===e.type||"CallExpression"===e.type;return ep=function t(r){return!!e(r)&&(!!r.optional||"MemberExpression"===r.type&&t(r.object))}}(),isArrayPrototypeProperty:a,isBooleanNode:d,isFunctionSelfUsedInside:/*@__PURE__*/function(){if(eg)return em;eg=1;let{findVariable:e}=sa,t=(t,r)=>{let{references:n=[]}=e(t,r)||{};return n};return em=function(e,r){if(r.block!==e)throw Error('"functionScope" should be the scope of "functionNode".');let{type:n,id:u}=e;return"ArrowFunctionExpression"!==n&&(!!(r.thisFound||t(r,"arguments").some(({from:e})=>e===r))||!!u&&t(r,u).length>0)}}(),isLeftHandSide:/*@__PURE__*/s_(),isLogicalExpression:/*@__PURE__*/sm(),isMethodNamed:ex?ev:(ex=1,ev=(e,t)=>"CallExpression"===e.type&&"MemberExpression"===e.callee.type&&"Identifier"===e.callee.property.type&&e.callee.property.name===t),isNodeMatches:o,isNodeMatchesNameOrPath:s,isNodeValueNotDomNode:/*@__PURE__*/function(){if(eC)return eE;eC=1;let{isUndefined:e}=/*@__PURE__*/sh(),t=new Set(["ArrayExpression","ArrowFunctionExpression","ClassExpression","FunctionExpression","Literal","ObjectExpression","TemplateLiteral"]);return eE=r=>t.has(r.type)||e(r)}(),isNodeValueNotFunction:/*@__PURE__*/function(){if(eD)return eA;eD=1;let{isUndefined:e,isCallExpression:t,isMethodCall:r}=/*@__PURE__*/sh(),n=new Set(["ArrayExpression","BinaryExpression","ClassExpression","Literal","ObjectExpression","TemplateLiteral","UnaryExpression","UpdateExpression"]),u=new Set(["AssignmentExpression","AwaitExpression","NewExpression","TaggedTemplateExpression","ThisExpression"]);return eA=a=>n.has(a.type)||u.has(a.type)||e(a)||t(a)&&!r(a,{method:"bind",optionalCall:!1,optionalMember:!1})}(),isObjectPrototypeProperty:i,isOnSameLine:/*@__PURE__*/sw(),isParenthesized:e,isSameIdentifier:eT?ew:(eT=1,ew=(e,t)=>"Identifier"===e.type&&"Identifier"===t.type&&e.name===t.name),isSameReference:/*@__PURE__*/sT(),isShadowed:/*@__PURE__*/sF(),isValueNotUsable:/*@__PURE__*/function(){if(ej)return eB;ej=1;let{isExpressionStatement:e}=/*@__PURE__*/sh();return eB=t=>e(t.parent)}(),needsSemicolon:/*@__PURE__*/sk(),shouldAddParenthesesToMemberExpressionObject:/*@__PURE__*/sB(),shouldAddParenthesesToCallExpressionCallee:eq?eV:(eq=1,eV=function(e){return"SequenceExpression"===e.type||"YieldExpression"===e.type||"ArrowFunctionExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"LogicalExpression"===e.type||"BinaryExpression"===e.type||"UnaryExpression"===e.type||"UpdateExpression"===e.type||"NewExpression"===e.type}),shouldAddParenthesesToAwaitExpressionArgument:eG?eW:(eG=1,eW=function(e){return"SequenceExpression"===e.type||"YieldExpression"===e.type||"ArrowFunctionExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"LogicalExpression"===e.type||"BinaryExpression"===e.type}),singular:/*@__PURE__*/function(){var e;if(eK)return eH;eK=1;let{singular:t}=(eZ||(eZ=1,e=function(){var e=[],t=[],r={},n={},u={};function a(e){return"string"==typeof e?RegExp("^"+e+"$","i"):e}function i(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function o(e,t,n){if(!e.length||r.hasOwnProperty(e))return t;for(var u=n.length;u--;){var a=n[u];if(a[0].test(t))return function(e,t){return e.replace(t[0],function(r,n){var u,a,o=(u=t[1],a=arguments,u.replace(/\$(\d{1,2})/g,function(e,t){return a[t]||""}));return""===r?i(e[n-1],o):i(r,o)})}(t,a)}return t}function s(e,t,r){return function(n){var u=n.toLowerCase();return t.hasOwnProperty(u)?i(n,u):e.hasOwnProperty(u)?i(n,e[u]):o(u,n,r)}}function d(e,t,r,n){return function(n){var u=n.toLowerCase();return!!t.hasOwnProperty(u)||!e.hasOwnProperty(u)&&o(u,u,r)===u}}function l(e,t,r){var n=1===t?l.singular(e):l.plural(e);return(r?t+" ":"")+n}return l.plural=s(u,n,e),l.isPlural=d(u,n,e),l.singular=s(n,u,t),l.isSingular=d(n,u,t),l.addPluralRule=function(t,r){e.push([a(t),r])},l.addSingularRule=function(e,r){t.push([a(e),r])},l.addUncountableRule=function(e){if("string"==typeof e){r[e.toLowerCase()]=!0;return}l.addPluralRule(e,"$0"),l.addSingularRule(e,"$0")},l.addIrregularRule=function(e,t){t=t.toLowerCase(),u[e=e.toLowerCase()]=t,n[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return l.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return l.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return l.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(l.addUncountableRule),l},sj.exports=e()),sj.exports);return eH=e=>{let r=t(e);if(r!==e)return r}}(),toLocation:/*@__PURE__*/sO(),getAncestor:eX?eQ:(eX=1,eQ=function(e,t){let r=function(e){if("string"==typeof e)return t=>t.type===e}(t);for(;e.parent;e=e.parent)if(r(e))return e})}}sj.exports;var sN=/*@__PURE__*/oe(/*@__PURE__*/function(){if(e3)return e2;e3=1;let{findVariable:e}=sa,{getAncestor:t}=/*@__PURE__*/sL(),{isStaticRequire:r,isStringLiteral:n,isMemberExpression:u}=/*@__PURE__*/sh(),a="prefer-event-target",i=new Set(["@angular/core","eventemitter3"]),o=e=>"VariableDeclarator"===e.parent.type&&e.parent.id===e&&"VariableDeclaration"===e.parent.parent.type&&"const"===e.parent.parent.kind&&e.parent.parent.declarations.includes(e.parent);function s(e){let t;return!!e&&(r(e)?[t]=e.arguments:"AwaitExpression"===e.type&&"ImportExpression"===e.argument.type&&({source:t}=e.argument),!!(n(t)&&i.has(t.value)))}return e2={create:r=>({Identifier(n){if(!("EventEmitter"===n.name&&(("ClassDeclaration"===n.parent.type||"ClassExpression"===n.parent.type)&&n.parent.superClass===n||"NewExpression"===n.parent.type&&n.parent.callee===n)))return;let d=r.sourceCode.getScope(n);if(!function(e){if(!e)return!1;let r=t(e,"ImportDeclaration");return!!(i.has(r?.source.value)||"Property"===e.parent.type&&e.parent.value===e&&"Identifier"===e.parent.key.type&&"EventEmitter"===e.parent.key.name&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent)&&o(e.parent.parent)&&s(e.parent.parent.parent.init)||o(e)&&u(e.parent.init,{property:"EventEmitter",optional:!1,computed:!1})&&s(e.parent.init.object))}(e(d,n)?.defs[0]?.name))return{node:n,messageId:a}}}),meta:{type:"suggestion",docs:{description:"Prefer `EventTarget` over `EventEmitter`.",recommended:!0},messages:{[a]:"Prefer `EventTarget` over `EventEmitter`."}}}}()),sR=/*@__PURE__*/oe(/*@__PURE__*/function(){if(e6)return e8;e6=1;let e=/*@__PURE__*/sA(),t=e5?e4:(e5=1,e4={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",219:"[",220:"\\",221:"]",222:"'",224:"Meta"}),{isNumberLiteral:r}=/*@__PURE__*/sh(),n="prefer-keyboard-event-key",u=new Set(["keyCode","charCode","which"]),a=e=>e?.type==="CallExpression"&&"MemberExpression"===e.callee.type&&"addEventListener"===e.callee.property.name,i=(e,t)=>{let r=s(t,"CallExpression",a),n=r?.arguments[1];switch(n?.type){case"ArrowFunctionExpression":case"FunctionExpression":{let t=e.sourceCode.getDeclaredVariables(n)[0],r=t?.references;return{event:n.params[0],references:r}}default:return{}}},o=(e,t)=>e?.parent?.type==="MemberExpression"&&e.parent.object===t,s=(e,t,r=()=>!0)=>{let n=e;for(;n;){if(n.type===t&&r(n))return n;n=n.parent}},d=(e,t)=>{let r=e;for(;r&&t;)t--,r=r.parent;if(0===t)return r},l=n=>u=>{let a=d(n,3);if(!a||"IfStatement"!==a.type)return;let{type:i,operator:o,right:s}=a.test;if(!("BinaryExpression"===i&&("=="===o||"==="===o)&&r(s)))return;let l=t[s.value]||String.fromCodePoint(s.value);if(l)return[u.replaceText(n,"key"),u.replaceText(s,e(l))]},c=e=>({messageId:n,data:{name:e.name},node:e,fix:l(e)});return e8={create:e=>({Identifier(t){if("keyCode"!==t.name&&"charCode"!==t.name&&"which"!==t.name)return;let{event:r,references:n}=i(e,t);if(r&&n&&n.some(e=>o(t,e.identifier)))return c(t)},Property(t){let r=t.value.name;if(!u.has(r))return;let{event:n,references:a}=i(e,t);if(!n)return;let o=s(t,"VariableDeclarator"),d=o?.init;if(a&&a.some(e=>e.identifier===d))return c(t.value);if("ObjectPattern"===n.type){for(let e of n.properties)if(e===t)return c(t.value)}}}),meta:{type:"suggestion",docs:{description:"Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.",recommended:!0},fixable:"code",messages:{[n]:"Use `.key` instead of `.{{name}}`."}}}}()),sM=/*@__PURE__*/oe(/*@__PURE__*/function(){if(e7)return e9;e7=1;let{isMemberExpression:e}=/*@__PURE__*/sh(),t="error",r="suggestion";return e9={create:()=>({MemberExpression(n){if(!e(n,{property:"innerText"}))return;let u=n.property;return{node:u,messageId:t,suggest:[{messageId:r,fix:e=>e.replaceText(u,"textContent")}]}},Identifier(e){if("innerText"===e.name&&"Property"===e.parent.type&&e.parent.key===e&&!e.parent.computed&&"init"===e.parent.kind&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent))return{node:e,messageId:t,suggest:[{messageId:r,fix:t=>t.replaceText(e,e.parent.shorthand?"textContent: innerText":"textContent")}]}}}),meta:{type:"suggestion",docs:{description:"Prefer `.textContent` over `.innerText`.",recommended:!0},hasSuggestions:!0,messages:{[t]:"Prefer `.textContent` over `.innerText`.",[r]:"Switch to `.textContent`."}}}}());function s$(){if(tc)return tl;tc=1;let{isSemicolonToken:e}=sa;return tl=function*(t,r,n){if("ReturnStatement"!==r.type&&"ThrowStatement"!==r.type)return;let u=n.getFirstToken(r);yield t.insertTextAfter(u," (");let a=n.getLastToken(r);if(!e(a)){yield t.insertTextAfter(r,")");return}yield t.insertTextBefore(a,")")}}function sU(){return tp?tf:(tp=1,tf=function(e,t,r){let n=e;"object"==typeof e&&Array.isArray(e.range)&&(n=e.range[1]);let[u]=t.text.slice(n).match(/^\s*/);return r.removeRange([n,n+u.length])})}function sz(){if(tv)return tb;tv=1;let{getParenthesizedRange:e}=/*@__PURE__*/so(),t=({type:e,value:t})=>"Keyword"===e&&/^[a-z]*$/.test(t)||"Identifier"===e&&"of"===t||"Identifier"===e&&"await"===t;return tb=function*(r,n,u){let a=e(n,u),i=u.getTokenBefore({range:a},{includeComments:!0});i&&a[0]===i.range[1]&&t(i)&&(yield r.insertTextAfter(i," "));let o=u.getTokenAfter({range:a},{includeComments:!0});o&&a[1]===o.range[0]&&t(o)&&(yield r.insertTextBefore(o," "))}}function sV(){if(tA)return tC;tA=1;let{getParenthesizedRange:e}=/*@__PURE__*/so();return tC=function(t,r,n){let[,u]=e(r.object,n),[,a]=r.range;return t.removeRange([u,a])}}function sq(){return tF?tT:(tF=1,tT=e=>"Property"===e.parent.type&&e.parent.shorthand&&e===e.parent.value)}function sW(){return tB?tI:(tB=1,tI=(e,t)=>e&&t&&e.range[0]===t.range[0]&&e.range[1]===t.range[1])}function sG(){if(tM)return tR;tM=1;let e=/*@__PURE__*/sq(),t=/*@__PURE__*/function(){if(tP)return tk;tP=1;let e=/*@__PURE__*/sq();return tk=t=>"AssignmentPattern"===t.parent.type&&t.parent.left===t&&e(t.parent)}(),r=/*@__PURE__*/function(){if(tO)return tj;tO=1;let e=/*@__PURE__*/sW();return tj=t=>{let{type:r,local:n,imported:u}=t.parent;return"ImportSpecifier"===r&&e(n,u)&&n===t}}(),n=/*@__PURE__*/function(){if(tN)return tL;tN=1;let e=/*@__PURE__*/sW();return tL=t=>{let{type:r,local:n,exported:u}=t.parent;return"ExportSpecifier"===r&&e(n,u)&&n===t}}();return tR=function(u,a,i){return e(u)||t(u)?i.replaceText(u,`${u.name}: ${a}`):r(u)?i.replaceText(u,`${u.name} as ${a}`):n(u)?i.replaceText(u,`${a} as ${u.name}`):u.typeAnnotation?i.replaceTextRange([u.range[0],u.typeAnnotation.range[0]],`${a}${u.optional?"?":""}`):i.replaceText(u,a)}}function sZ(){return tZ?tG:(tZ=1,tG={extendFixRange:tt?te:(tt=1,te=function*(e,t){yield e.insertTextBeforeRange(t,""),yield e.insertTextAfterRange(t,"")}),removeParentheses:/*@__PURE__*/function(){if(tn)return tr;tn=1;let{getParentheses:e}=/*@__PURE__*/so();return tr=function*(t,r,n){for(let u of e(t,n))yield r.remove(u)}}(),appendArgument:/*@__PURE__*/function(){if(ta)return tu;ta=1;let{isCommaToken:e}=sa;return tu=function(t,r,n,u){if("CallExpression"!==r.type)throw Error(`Unexpected node "${r.type}".`);let[a,i]=u.getLastTokens(r,2);return r.arguments.length>0&&(n=e(a)?` ${n},`:`, ${n}`),t.insertTextBefore(i,n)}}(),removeArgument:/*@__PURE__*/function(){if(to)return ti;to=1;let{isCommaToken:e}=sa,{getParentheses:t}=/*@__PURE__*/so();return ti=function(r,n,u){let a=n.parent,i=a.arguments.indexOf(n),o=t(n,u),s=o[0]||n,d=o.at(-1)||n,[l]=s.range,[,c]=d.range;if(0!==i&&(l=u.getTokenBefore(s).range[0]),1===a.arguments.length){let t=u.getTokenBefore(d);e(t)&&(c=t[1])}return r.replaceTextRange([l,c],"")}}(),replaceArgument:/*@__PURE__*/function(){if(td)return ts;td=1;let{getParenthesizedRange:e}=/*@__PURE__*/so();return ts=function(t,r,n,u){return t.replaceTextRange(e(r,u),n)}}(),switchNewExpressionToCallExpression:/*@__PURE__*/function(){if(tm)return th;tm=1;let e=/*@__PURE__*/sP(),{isParenthesized:t}=/*@__PURE__*/so(),r=/*@__PURE__*/sw(),n=/*@__PURE__*/s$(),u=/*@__PURE__*/sU();return th=function*(a,i,o){let s=i.getFirstToken(a);yield o.remove(s),yield u(s,i,o),e(a,i)||(yield o.insertTextAfter(a,"()")),r(s,a.callee)||t(a,i)||(yield*n(o,a.parent,i))}}(),switchCallExpressionToNewExpression:/*@__PURE__*/function(){if(tE)return tx;tE=1;let{isParenthesized:e}=/*@__PURE__*/so(),t=ty?tg:(ty=1,tg=function(e){return"MemberExpression"===e.type&&function(e){let t=e.object,r=e.object.type;for(;"MemberExpression"===r;)r=(t=t.object).type;return"CallExpression"===r}(e)}),r=/*@__PURE__*/sz();return tx=function*(n,u,a){yield*r(a,n,u),yield a.insertTextBefore(n,"new ");let{callee:i}=n;!e(i,u)&&t(i)&&(yield a.insertTextBefore(i,"("),yield a.insertTextAfter(i,")"))}}(),removeMemberExpressionProperty:/*@__PURE__*/sV(),removeMethodCall:/*@__PURE__*/function(){if(tS)return tD;tS=1;let{getParenthesizedRange:e}=/*@__PURE__*/so(),t=/*@__PURE__*/sV();return tD=function*(r,n,u){let a=n.callee;yield t(r,a,u);let[,i]=e(a,u),[,o]=n.range;yield r.removeRange([i,o])}}(),replaceTemplateElement:tw?t_:(tw=1,t_=(e,t,r)=>{let{range:[n,u],tail:a}=t;return e.replaceTextRange([n+1,u-(a?1:2)],r)}),replaceReferenceIdentifier:/*@__PURE__*/sG(),renameVariable:/*@__PURE__*/function(){if(tU)return t$;tU=1;let e=/*@__PURE__*/sS(),t=/*@__PURE__*/sG();return t$=(r,n,u)=>e(r).map(e=>t(e,n,u))}(),replaceNodeOrTokenAndSpacesBefore:/*@__PURE__*/function(){if(tV)return tz;tV=1;let{getParentheses:e}=/*@__PURE__*/so();return tz=function* t(r,n,u,a,i=a){for(let n of e(r,i))yield*t(n,"",u,a,i);let[o,s]=r.range,[d]=a.text.slice(0,o).match(/\s*$/),[l]=d.match(/(?:\r?\n|\r){0,1}/);o-=d.length,yield u.replaceTextRange([o,s],`${l}${n}`)}}(),removeSpacesAfter:/*@__PURE__*/sU(),fixSpaceAroundKeyword:/*@__PURE__*/sz(),replaceStringLiteral:tW?tq:(tW=1,tq=function(e,t,r,n,u){let a=t.range[0]+1,i=Number.isInteger(u)?n+a:a,o=Number.isInteger(u)?u+a:t.range[1]-1;return e.replaceTextRange([i,o],r)}),addParenthesizesToReturnOrThrowExpression:/*@__PURE__*/s$()})}var sH=/*@__PURE__*/oe(/*@__PURE__*/function(){if(tK)return tH;tK=1;let{appendArgument:e}=/*@__PURE__*/sZ(),{isMethodCall:t}=/*@__PURE__*/sh(),{isArrayPrototypeProperty:r}=/*@__PURE__*/sL(),n="require-array-join-separator";return tH={create:u=>({CallExpression(a){if(!(t(a,{method:"join",argumentsLength:0,optionalCall:!1})||t(a,{method:"call",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&r(a.callee.object,{property:"join"})))return;let{sourceCode:i}=u,[o,s]=i.getLastTokens(a,2),d=1===a.arguments.length;return{loc:{start:o.loc[d?"end":"start"],end:s.loc.end},messageId:n,fix:t=>e(t,a,"','",i)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the separator argument with `Array#join()`.",recommended:!0},fixable:"code",messages:{[n]:"Missing the separator argument."}}}}()),sK=/*@__PURE__*/oe(/*@__PURE__*/function(){if(tJ)return tY;tJ=1;let{getStaticValue:e,getPropertyName:t}=sa,{isMethodCall:r}=/*@__PURE__*/sh(),n="no-thenable-object",u="no-thenable-export",a="no-thenable-class",i=(t,r)=>e(t,r.sourceCode.getScope(t))?.value==="then",o=(e,r)=>{try{return"then"===t(e,r.sourceCode.getScope(e))}catch{}return!1},s=[{selector:"ObjectExpression",*getNodes(e,t){for(let r of e.properties)"Property"===r.type&&o(r,t)&&(yield r.key)},messageId:n},{selectors:["PropertyDefinition","MethodDefinition"],*getNodes(e,r){"then"===t(e,r.sourceCode.getScope(e))&&(yield e.key)},messageId:a},{selector:"MemberExpression",*getNodes(e,r){"AssignmentExpression"===e.parent.type&&e.parent.left===e&&"then"===t(e,r.sourceCode.getScope(e))&&(yield e.property)},messageId:n},{selector:"CallExpression",*getNodes(e,t){if(!(r(e,{objects:["Object","Reflect"],method:"defineProperty",minimumArguments:3,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==e.arguments[0].type))return;let[,n]=e.arguments;i(n,t)&&(yield n)},messageId:n},{selector:"CallExpression",*getNodes(e,t){if(r(e,{object:"Object",method:"fromEntries",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"ArrayExpression"===e.arguments[0].type){for(let r of e.arguments[0].elements)if(r?.type==="ArrayExpression"&&r.elements[0]&&"SpreadElement"!==r.elements[0].type){let[e]=r.elements;i(e,t)&&(yield e)}}},messageId:n},{selector:"Identifier",*getNodes(e){"then"===e.name&&"ExportSpecifier"===e.parent.type&&e.parent.exported===e&&(yield e)},messageId:u},{selector:"Identifier",*getNodes(e){"then"===e.name&&("FunctionDeclaration"===e.parent.type||"ClassDeclaration"===e.parent.type)&&e.parent.id===e&&"ExportNamedDeclaration"===e.parent.parent.type&&e.parent.parent.declaration===e.parent&&(yield e)},messageId:u},{selector:"VariableDeclaration",*getNodes(e,t){if("ExportNamedDeclaration"===e.parent.type&&e.parent.declaration===e)for(let r of t.sourceCode.getDeclaredVariables(e))"then"===r.name&&(yield*r.identifiers)},messageId:u}];return tY={create:e=>{for(let{selector:t,selectors:r,messageId:n,getNodes:u}of s)e.on(t??r,function*(t){for(let r of u(t,e))yield{node:r,messageId:n}})},meta:{type:"problem",docs:{description:"Disallow `then` property.",recommended:!0},messages:{[n]:"Do not add `then` to an object.",[u]:"Do not export `then`.",[a]:"Do not add `then` to a class."}}}}()),sY=/*@__PURE__*/oe(/*@__PURE__*/function(){if(tX)return tQ;tX=1;let{getFunctionHeadLocation:e}=sa,{isMethodCall:t}=/*@__PURE__*/sh(),r="no-invalid-remove-event-listener";return tQ={create:n=>({CallExpression(u){if(!(t(u,{method:"removeEventListener",minimumArguments:2,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==u.arguments[0].type&&("FunctionExpression"===u.arguments[1].type||"ArrowFunctionExpression"===u.arguments[1].type||t(u.arguments[1],{method:"bind",optionalCall:!1,optionalMember:!1}))))return;let[,a]=u.arguments;return["ArrowFunctionExpression","FunctionExpression"].includes(a.type)?{node:a,loc:e(a,n.sourceCode),messageId:r}:{node:a.callee.property,messageId:r}}}),meta:{type:"problem",docs:{description:"Prevent calling `EventTarget#removeEventListener()` with the result of an expression.",recommended:!0},messages:{[r]:"The listener argument should be a function reference."}}}}()),sJ=/*@__PURE__*/oe(/*@__PURE__*/function(){if(t1)return t0;t1=1;let{getFunctionHeadLocation:e,getFunctionNameWithKind:t}=sa,{getReferences:r,isNodeMatches:n}=/*@__PURE__*/sL(),{functionTypes:u}=/*@__PURE__*/sh(),a="consistent-function-scoping",i=(e,t)=>e&&t&&(e===t||e.block===t.block),o=["useState","useEffect","useContext","useReducer","useCallback","useMemo","useRef","useImperativeHandle","useLayoutEffect","useDebugValue"].flatMap(e=>[e,`React.${e}`]),s=e=>e.block?.parent?.callee&&n(e.block.parent.callee,o),d=e=>"function"===e.type&&e.block?.type==="ArrowFunctionExpression"&&(e.thisFound||e.childScopes.some(e=>d(e))),l=new Set(["FunctionExpression","ArrowFunctionExpression"]),c=e=>l.has(e.type)&&"CallExpression"===e.parent.type&&e.parent.callee===e;return t0={create:n=>{let{checkArrowFunctions:o}={checkArrowFunctions:!0,...n.options[0]},{sourceCode:l}=n,{scopeManager:f}=l,p=[];n.on(u,()=>{p.push(!1)}),n.on("JSXElement",()=>{p.length>0&&(p[p.length-1]=!0)}),n.onExit(u,n=>{if(!(p.pop()||"ArrowFunctionExpression"===n.type&&!o||function(e,t){let n=t.acquire(e);if(!n||d(n))return!0;let u=e.parent;"VariableDeclarator"===u.type&&(u=u.parent),"VariableDeclaration"===u.type&&(u=u.parent),"BlockStatement"===u.type&&(u=u.parent);let a=t.acquire(u);return!!(!a||"global"===a.type||s(a)||c(u))||function(e,t,n){let u=e=>e.some(e=>{if(i(t,e.from))return!0;let{resolved:r}=e,[n]=r.defs;return(n?.type!=="FunctionName"||r.name!==n.name.name)&&i(t,r.scope)}),a=e=>e.some(e=>i(t,n.acquire(e.node))),o=r=>r.some(r=>{if(!r.parent||"FunctionDeclaration"!==r.parent.type||n.acquire(r))return!1;let u=n.acquire(r.parent);return!(!u||i(e,u))&&i(t,u.upper)});return r(e).map(({resolved:e})=>e).filter(Boolean).some(e=>u(e.references)||a(e.defs)||o(e.identifiers))}(n,a,t)}(n,f)))return{node:n,loc:e(n,l),messageId:a,data:{functionNameWithKind:t(n,l)}}})},meta:{type:"suggestion",docs:{description:"Move function definitions to the highest possible scope.",recommended:!0},schema:[{type:"object",additionalProperties:!1,properties:{checkArrowFunctions:{type:"boolean",default:!0}}}],messages:{[a]:"Move {{functionNameWithKind}} to the outer scope."}}}}());function sQ(){if(t3)return t2;t3=1;let{getStaticValue:e}=sa,{isNumberLiteral:t}=/*@__PURE__*/sh(),r=(e,t,r)=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.object.type&&e.object.name===t&&"Identifier"===e.property.type&&r.has(e.property.name),n=(e,t)=>"CallExpression"===e.type&&!e.optional&&"Identifier"===e.callee.type&&e.callee.name===t,u=new Set(["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"]),a=e=>r(e,"Math",u),i=new Set(["abs","acos","acosh","asin","asinh","atan","atanh","atan2","cbrt","ceil","clz32","cos","cosh","exp","expm1","floor","fround","hypot","imul","log","log1p","log10","log2","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc"]),o=e=>"CallExpression"===e.type&&!e.optional&&r(e.callee,"Math",i),s=e=>n(e,"Number"),d=new Set(["EPSILON","MAX_SAFE_INTEGER","MAX_VALUE","MIN_SAFE_INTEGER","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]),l=e=>r(e,"Number",d),c=new Set(["parseFloat","parseInt"]),f=e=>"CallExpression"===e.type&&!e.optional&&r(e.callee,"Number",c),p=e=>n(e,"parseInt")||n(e,"parseFloat"),h=(t,r)=>"number"==typeof e(t,r)?.value,m=e=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.property.type&&"length"===e.property.name,g=new Set(["-","*","/","%","**","<<",">>","|","^","&"]);return t2=function r(n,u){if(t(n)||a(n)||o(n)||s(n)||l(n)||f(n)||p(n)||m(n))return!0;switch(n.type){case"AssignmentExpression":{let{operator:e}=n;if("="===e&&r(n.right,u))return!0}case"BinaryExpression":{let{operator:e}=n;if("AssignmentExpression"===n.type&&(e=e.slice(0,-1)),"+"===e&&r(n.left,u)&&r(n.right,u)||">>>"===e||g.has(e)&&(r(n.left,u)||r(n.right,u)))return!0;break}case"UnaryExpression":{let{operator:e}=n;if("+"===e||("-"===e||"~"===e)&&r(n.argument,u))return!0;break}case"UpdateExpression":if(r(n.argument,u))return!0;break;case"ConditionalExpression":{let t=r(n.consequent,u),a=r(n.alternate,u);if(t&&a)return!0;let i=e(n.test,u);if(null!==i&&(i.value&&t||!i.value&&a))return!0;break}case"SequenceExpression":if(r(n.expressions.at(-1),u))return!0}return h(n,u)}}var sX=/*@__PURE__*/oe(/*@__PURE__*/function(){if(t5)return t4;t5=1;let{getStaticValue:e}=sa,{switchNewExpressionToCallExpression:t}=/*@__PURE__*/sZ(),r=/*@__PURE__*/sQ(),{isNewExpression:n}=/*@__PURE__*/sh(),u="error",a="error-unknown",i="suggestion",o=(t,n)=>{if(1!==t.length)return"from";let[u]=t;if("SpreadElement"===u.type)return;if("ArrayExpression"===u.type||"TemplateLiteral"===u.type)return"from";if(r(u,n))return"alloc";let a=e(u,n);if(a){let{value:e}=a;if("string"==typeof e||Array.isArray(e))return"from"}};function s(e,r,n){return function*(u){yield u.insertTextAfter(e.callee,`.${n}`),yield*t(e,r,u)}}return t4={create:e=>{let{sourceCode:t}=e;return{NewExpression(e){if(!n(e,{name:"Buffer"}))return;let r=o(e.arguments,t.getScope(e));return r?{node:e,messageId:u,data:{method:r},fix:s(e,t,r)}:{node:e,messageId:a,suggest:["from","alloc"].map(r=>({messageId:i,data:{replacement:r},fix:s(e,t,r)}))}}}},meta:{type:"problem",docs:{description:"Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[u]:"`new Buffer()` is deprecated, use `Buffer.{{method}}()` instead.",[a]:"`new Buffer()` is deprecated, use `Buffer.alloc()` or `Buffer.from()` instead.",[i]:"Switch to `Buffer.{{replacement}}()`."}}}}()),s0=/*@__PURE__*/oe(/*@__PURE__*/function(){if(t6)return t8;t6=1;let e=/*@__PURE__*/sO(),{isStringLiteral:t,isMethodCall:r}=/*@__PURE__*/sh(),n="no-console-spaces",u=e=>e.length>1&&" "===e.charAt(0)&&" "!==e.charAt(1),a=e=>e.length>1&&" "===e.at(-1)&&" "!==e.at(-2);return t8={create:i=>{let{sourceCode:o}=i,s=(t,r,u)=>{let a="leading"===u?t.range[0]+1:t.range[1]-2,i=[a,a+1];return{loc:e(i,o),messageId:n,data:{method:r,position:u},fix:e=>e.removeRange(i)}};return{*CallExpression(e){if(!r(e,{object:"console",methods:["log","debug","info","warn","error"],minimumArguments:1,optionalCall:!1,optionalMember:!1}))return;let n=e.callee.property.name,{arguments:i}=e,{length:d}=i;for(let[e,r]of i.entries()){if(!t(r)&&"TemplateLiteral"!==r.type)continue;let i=o.getText(r).slice(1,-1);0!==e&&u(i)&&(yield s(r,n,"leading")),e!==d-1&&a(i)&&(yield s(r,n,"trailing"))}}}},meta:{type:"suggestion",docs:{description:"Do not use leading/trailing space between `console.log` parameters.",recommended:!0},fixable:"code",messages:{[n]:"Do not use {{position}} space between `console.{{method}}` parameters."}}}}()),s1=/*@__PURE__*/oe(/*@__PURE__*/function(){if(t7)return t9;t7=1;let{isEmptyNode:e,isDirective:t}=/*@__PURE__*/sh(),r="no-empty-file",n=r=>e(r,t),u=e=>"Line"===e.type&&e.value.startsWith("/"),a=e=>e.some(e=>u(e));return t9={create:e=>{let t=e.physicalFilename;if(/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/i.test(t))return{Program(t){if(t.body.some(e=>!n(e)))return;let{sourceCode:u}=e;if(!a(u.getAllComments()))return{node:t,messageId:r}}}},meta:{type:"suggestion",docs:{description:"Disallow empty files.",recommended:!0},messages:{[r]:"Empty files are not allowed."}}}}()),s2=/*@__PURE__*/oe(/*@__PURE__*/function(){if(rt)return re;rt=1;let{isParenthesized:e,getParenthesizedRange:t}=/*@__PURE__*/so(),{removeParentheses:r}=/*@__PURE__*/sZ(),n="no-useless-fallback-in-spread";return re={create:u=>({ObjectExpression(a){if(0===a.properties.length&&"LogicalExpression"===a.parent.type&&a.parent.right===a&&("||"===a.parent.operator||"??"===a.parent.operator)&&"SpreadElement"===a.parent.parent.type&&a.parent.parent.argument===a.parent&&"ObjectExpression"===a.parent.parent.parent.type&&a.parent.parent.parent.properties.includes(a.parent.parent))return{node:a,messageId:n,*fix(n){let{sourceCode:i}=u,o=a.parent,{left:s}=o,d=e(s,i),[,l]=d?t(s,i):s.range,[,c]=o.range;yield n.removeRange([l,c]),(d||"SequenceExpression"!==s.type)&&(yield*r(o,n,i))}}}}),meta:{type:"suggestion",docs:{description:"Disallow useless fallback when spreading in object literals.",recommended:!0},fixable:"code",messages:{[n]:"The empty object is useless."}}}}()),s3=/*@__PURE__*/oe(/*@__PURE__*/function(){if(rn)return rr;rn=1;let{isMethodCall:e,isMemberExpression:t}=/*@__PURE__*/sh(),{getParenthesizedRange:r,isSameReference:n,isLogicalExpression:u}=/*@__PURE__*/sL(),a=e=>"BinaryExpression"===e.type&&"Literal"===e.right.type&&"0"===e.right.raw&&t(e.left,{property:"length",optional:!1})&&u(e.parent);return rr={create:t=>{let i=[],o=new Set,s=new Set,d=new Set,l=new Set;return{BinaryExpression(e){if(a(e)){let{operator:t}=e;"==="===t?o.add(e):(">"===t||"!=="===t)&&s.add(e)}},CallExpression(t){e(t,{optionalCall:!1,optionalMember:!1,computed:!1})&&"Identifier"===t.callee.property.type&&("some"===t.callee.property.name?d.add(t):"every"===t.callee.property.name&&l.add(t))},LogicalExpression(e){u(e)&&i.push(e)},*"Program:exit"(){for(let e of new Set(i.flatMap(e=>(function(e){let{operator:t}=e;return(function e(t){return[t.left,t.right].flatMap(r=>"LogicalExpression"===r.type&&r.operator===t.operator?e(r):[r])})(e).filter((e,r,u)=>(function({node:e,operator:t,siblings:r}){return"||"===t&&o.has(e)&&r.some(t=>l.has(t)&&n(e.left.object,t.callee.object))||"&&"===t&&s.has(e)&&r.some(t=>d.has(t)&&n(e.left.object,t.callee.object))})({node:e,operator:t,siblings:[u[r-1],u[r+1]].filter(Boolean)}))})(e))))yield{loc:{start:e.left.property.loc.start,end:e.loc.end},messageId:o.has(e)?"zero":"non-zero",fix(n){let{sourceCode:u}=t,{left:a,right:i}=e.parent,o=r(a,u),s=r(i,u),d=[];return a===e?(d[0]=o[0],d[1]=s[0]):(d[0]=o[1],d[1]=s[1]),n.removeRange(d)}}}}},meta:{type:"suggestion",docs:{description:"Disallow useless array length check.",recommended:!0},fixable:"code",messages:{"non-zero":"The non-empty check is useless as `Array#some()` returns `false` for an empty array.",zero:"The empty check is useless as `Array#every()` returns `true` for an empty array."}}}}()),s4=/*@__PURE__*/oe(/*@__PURE__*/function(){if(ra)return ru;ra=1;let{getParenthesizedRange:e}=/*@__PURE__*/sL(),{isFunction:t,isMethodCall:r}=/*@__PURE__*/sh();return ru={create:n=>{let{sourceCode:u}=n;return{CallExpression(n){if(!(r(n,{object:"Promise",methods:["resolve","reject"],optionalCall:!1,optionalMember:!1})&&("ArrowFunctionExpression"===n.parent.type&&n.parent.body===n||"ReturnStatement"===n.parent.type&&n.parent.argument===n||"YieldExpression"===n.parent.type&&!n.parent.delegate&&n.parent.argument===n)))return;let{functionNode:a,isInTryStatement:i}=function(e){let r,n=!1;for(;e;e=e.parent){if(t(e)){r=e;break}"TryStatement"===e.type&&(n=!0)}return{functionNode:r,isInTryStatement:n}}(n);if(a&&(a.async||function(e){if("CallExpression"===e.parent.type&&"MemberExpression"===e.parent.callee.type&&!e.parent.callee.computed&&"Identifier"===e.parent.callee.property.type){let{callee:{property:t},arguments:r}=e.parent;if(1===r.length&&("then"===t.name||"catch"===t.name||"finally"===t.name)&&r[0]===e||2===r.length&&"then"===t.name&&(r[0]===e||"SpreadElement"!==r[0].type&&r[1]===e))return!0}return!1}(a)))return function(e,t){let{callee:r,parent:n}=e,u=r.property.name;return{node:r,messageId:u,data:{type:"YieldExpression"===n.type?"yield":"return"},fix:t}}(n,function(t,r,n){if(t.arguments.length>1)return;let{callee:u,parent:a,arguments:[i]}=t;if(i?.type==="SpreadElement")return;let o="reject"===u.property.name,s="YieldExpression"===a.type;if(!o||!r&&(!s||"ExpressionStatement"===a.parent.type))return function(r){let u="ArrowFunctionExpression"===a.type,d=i?n.getText(i):"";if(i?.type==="SequenceExpression"&&(d=`(${d})`),o){if(d||="undefined",d=`throw ${d}`,s)return r.replaceTextRange(e(a,n),d);if(d+=";",u)return d=`{ ${d} }`,r.replaceTextRange(e(t,n),d)}else s?d=`yield${d?" ":""}${d}`:"ReturnStatement"===a.type?d=`return${d?" ":""}${d};`:(i?.type==="ObjectExpression"&&(d=`(${d})`),d||="{}");return r.replaceText(u?t:a,d)}}(n,i,u))}}},meta:{type:"suggestion",docs:{description:"Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks",recommended:!0},fixable:"code",messages:{resolve:"Prefer `{{type}} value` over `{{type}} Promise.resolve(value)`.",reject:"Prefer `throw error` over `{{type}} Promise.reject(error)`."}}}}()),s5=/*@__PURE__*/oe(/*@__PURE__*/function(){if(ro)return ri;ro=1;let{isParenthesized:e}=sa,t=/*@__PURE__*/sk(),{isDecimalInteger:r}=/*@__PURE__*/sI(),n=/*@__PURE__*/sO(),{fixSpaceAroundKeyword:u}=/*@__PURE__*/sZ(),{isNumberLiteral:a}=/*@__PURE__*/sh(),i="zero-fraction",o="dangling-dot";return ri={create:s=>({Literal(d){if(!a(d))return;let{raw:l}=d,c=l.match(/^(?<before>[\d_]*)(?<dotAndFractions>\.[\d_]*)(?<after>.*)$/);if(!c)return;let{before:f,dotAndFractions:p,after:h}=c.groups,m=(f+p.replaceAll(/[.0_]+$/g,"")||"0")+h;if(m===l)return;let g="."===p,y=d.range[0]+f.length+p.length,b=y-(l.length-m.length),{sourceCode:v}=s;return{loc:n([b,y],v),messageId:g?o:i,*fix(n){let a=m;"MemberExpression"===d.parent.type&&d.parent.object===d&&r(m)&&!e(d,v)&&(a=`(${a})`,t(v.getTokenBefore(d),v,a)&&(a=`;${a}`)),yield n.replaceText(d,a),yield*u(n,d,v)}}}}),meta:{type:"suggestion",docs:{description:"Disallow number literals with zero fractions or dangling dots.",recommended:!0},fixable:"code",messages:{[i]:"Don't use a zero fraction in the number.",[o]:"Don't use a dangling dot in the number."}}}}()),s8=/*@__PURE__*/oe(/*@__PURE__*/function(){if(rd)return rs;rd=1;let{isCommaToken:e,isOpeningBraceToken:t,isClosingBraceToken:r}=sa,{isStringLiteral:n}=/*@__PURE__*/sh(),u="error",a="suggestion",i=Symbol.for("default"),o=Symbol("NAMESPACE_SPECIFIER_NAME"),s=e=>{switch(e.type){case"Identifier":return Symbol.for(e.name);case"Literal":return e.value}},d=e=>"type"===e.exportKind||"type"===e.parent.exportKind,l=e=>"type"===e.importKind||"type"===e.parent.importKind;function*c(t,n,u){switch(t.type){case"ImportSpecifier":case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":yield*function*(t,n,u){let{parent:a}=t,{specifiers:i}=a;if(1===i.length){yield*c(a,n,u);return}switch(t.type){case"ImportSpecifier":if(!i.some(e=>e!==t&&e.type===t.type)){let a=u.getTokenAfter(t,r),i=u.getTokenBefore(t,e);yield n.replaceTextRange([i.range[0],a.range[1]],"");return}case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ImportDefaultSpecifier":{yield n.remove(t);let r=u.getTokenAfter(t);e(r)&&(yield n.remove(r))}}}(t,n,u);return;case"ImportDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":yield n.remove(t)}}function f(e,t){let[r]=t.getTokenBefore(e.source,e=>"Identifier"===e.type&&"from"===e.value).range,[,n]=e.range;return t.text.slice(r,n)}return rs={create:function(e){let{sourceCode:r}=e,{ignoreUsedVariables:p}={ignoreUsedVariables:!1,...e.options[0]},h=new Set,m=[];return{ImportDeclaration(e){e.specifiers.length>0&&h.add(e)},ExportNamedDeclaration(e){n(e.source)&&m.push(e)},*"Program:exit"(e){for(let n of h){let h=r.getDeclaredVariables(n);if(h.some(e=>1!==e.defs.length||e.defs[0].parent!==n)||(h=h.map(e=>{let t=function(e,t){let r=e.defs[0].node,n={node:r,declaration:r.parent,variable:e,isTypeImport:l(r)};switch(r.type){case"ImportDefaultSpecifier":return{name:i,text:"default",...n};case"ImportSpecifier":return{name:s(r.imported),text:t.getText(r.imported),...n};case"ImportNamespaceSpecifier":return{name:o,text:"*",...n}}}(e,r),n=function(e,t){let r=[];for(let{identifier:n}of e.variable.references){let u=function(e,t){let{parent:r}=e;switch(r.type){case"ExportDefaultDeclaration":return{node:r,name:i,text:"default",isTypeExport:d(r)};case"ExportSpecifier":return{node:r,name:s(r.exported),text:t.getText(r.exported),isTypeExport:d(r)};case"VariableDeclarator":if(r.init===e&&"Identifier"===r.id.type&&!r.id.typeAnnotation&&"VariableDeclaration"===r.parent.type&&"const"===r.parent.kind&&1===r.parent.declarations.length&&r.parent.declarations[0]===r&&"ExportNamedDeclaration"===r.parent.parent.type&&function(e,t){let r=t.getDeclaredVariables(e);if(1!==r.length)return!1;let[{identifiers:n,references:u}]=r;return 1===n.length&&n[0]===e.id&&1===u.length&&u[0].identifier===e.id}(r,t))return{node:r.parent.parent,name:Symbol.for(r.id.name),text:t.getText(r.id)}}}(n,t);u&&(e.name!==o||u.name!==i)&&r.push(u)}return r}(t,r);return{variable:e,imported:t,exports:n}}),p&&h.some(({variable:e,exports:t})=>e.references.length!==t.length)))continue;let g=p&&h.some(({variable:e})=>0===e.references.length);for(let{imported:n,exports:i}of h)for(let s of i){let i={node:s.node,messageId:u,data:{exported:s.text}},d=function({sourceCode:e,imported:r,exported:n,exportDeclarations:u,program:a}){let i;let s=r.declaration,d=s.source.value,l=r.isTypeImport||n.isTypeExport;return l&&(i=u.find(({source:e,exportKind:t})=>e.value===d&&"type"===t)),i||=u.find(({source:e,exportKind:t})=>e.value===d&&"type"!==t),function*(u){if(r.name===o)yield u.insertTextAfter(a,`
|
|
2
|
+
export * as ${n.text} ${f(s,e)}`);else{let o=n.name===r.name?n.text:`${r.text} as ${n.text}`;if(l&&(!i||"type"!==i.exportKind)&&(o=`type ${o}`),i){let r=i.specifiers.at(-1);if(r)yield u.insertTextAfter(r,`, ${o}`);else{let r=e.getFirstToken(i,t);yield u.insertTextAfter(r,o)}}else yield u.insertTextAfter(a,`
|
|
3
|
+
export {${o}} ${f(s,e)}`)}1===r.variable.references.length&&(yield*c(r.node,u,e)),yield*c(n.node,u,e)}}({sourceCode:r,imported:n,exported:s,exportDeclarations:m,program:e});g?i.suggest=[{messageId:a,fix:d}]:i.fix=d,yield i}}}}},meta:{type:"suggestion",docs:{description:"Prefer `export…from` when re-exporting.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignoreUsedVariables:{type:"boolean",default:!1}}}],messages:{[u]:"Use `export…from` to re-export `{{exported}}`.",[a]:"Switch to `export…from`."}}}}()),s6=/*@__PURE__*/oe(/*@__PURE__*/function(){if(rc)return rl;rc=1;let{getFunctionHeadLocation:e,getFunctionNameWithKind:t}=sa,{functionTypes:r}=/*@__PURE__*/sh(),n="prefer-native-coercion-functions",u=new Set(["String","Number","BigInt","Boolean","Symbol"]),a=new Set(["every","filter","find","findLast","findIndex","findLastIndex","some"]),i=(e,t)=>e?.type==="CallExpression"&&!e.optional&&"Identifier"===e.callee.type&&u.has(e.callee.name)&&e.arguments[0]?.type==="Identifier"&&e.arguments[0].name===t,o=e=>"ArrowFunctionExpression"===e.type&&"Identifier"===e.body.type&&e.body.name===e.params[0].name||"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&e.body.body[0].argument?.type==="Identifier"&&e.body.body[0].argument.name===e.params[0].name,s=e=>o(e)&&"CallExpression"===e.parent.type&&!e.parent.optional&&e.parent.arguments[0]===e&&"MemberExpression"===e.parent.callee.type&&!e.parent.callee.computed&&!e.parent.callee.optional&&"Identifier"===e.parent.callee.property.type&&a.has(e.parent.callee.property.name);return rl={create:u=>{u.on(r,r=>{if(r.async||r.generator||0===r.params.length||"Identifier"!==r.params[0].type||("MethodDefinition"===r.parent.type&&("constructor"===r.parent.kind||"set"===r.parent.kind)||"Property"===r.parent.type&&"set"===r.parent.kind)&&r.parent.value===r)return;let a=function(e){if(s(e))return{replacementFunction:"Boolean",fix:t=>t.replaceText(e,"Boolean")}}(r)||function(e){let t=function(e){let t=e.params[0].name;return"ArrowFunctionExpression"===e.type&&i(e.body,t)?e.body:"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&i(e.body.body[0].argument,t)?e.body.body[0].argument:void 0}(e);if(!t)return;let{name:r}=t.callee,n={replacementFunction:r};return"FunctionDeclaration"===e.type||1!==t.arguments.length||(n.fix=t=>{let n=r;return"Property"===e.parent.type&&e.parent.method&&e.parent.value===e?n=`: ${n}`:"MethodDefinition"===e.parent.type&&(n=` = ${n};`),t.replaceText(e,n)}),n}(r);if(!a)return;let{sourceCode:o}=u,{replacementFunction:d,fix:l}=a;return a={node:r,loc:e(r,o),messageId:n,data:{functionNameWithKind:t(r,o),replacementFunction:d}},!l||1!==r.params.length||o.getCommentsInside(r).length>0||(a.fix=l),a})},meta:{type:"suggestion",docs:{description:"Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.",recommended:!0},fixable:"code",messages:{[n]:"{{functionNameWithKind}} is equivalent to `{{replacementFunction}}`. Use `{{replacementFunction}}` directly."}}}}());function s9(){if(rp)return rf;rp=1;let{ReferenceTracker:e}=sa,t=(e,t)=>{let r={[t]:!0};for(let t of e.split(".").reverse())r={[t]:r};return r};class r{#e={};#t;#r;constructor({object:r,objects:n=[r],filter:u,handle:a,type:i=e.READ}){for(let e of n)Object.assign(this.#e,t(e,i));this.#t=u,this.#r=a}*track(t){for(let r of new e(t).iterateGlobalReferences(this.#e)){if(this.#t&&!this.#t(r))continue;let e=this.#r(r);e&&(e[Symbol.iterator]?yield*e:yield e)}}createListeners(e){return{"Program:exit":t=>this.track(e.sourceCode.getScope(t))}}}return Object.assign(r,{READ:e.READ,CALL:e.CALL,CONSTRUCT:e.CONSTRUCT}),rf={GlobalReferenceTracker:r}}var s7=/*@__PURE__*/oe(/*@__PURE__*/function(){if(rm)return rh;rm=1;let{GlobalReferenceTracker:e}=/*@__PURE__*/s9(),t="no-document-cookie",r=new e({object:"document.cookie",filter:({node:e})=>"AssignmentExpression"===e.parent.type&&e.parent.left===e,handle:({node:e})=>({node:e,messageId:t})});return rh={create:e=>r.createListeners(e),meta:{type:"problem",docs:{description:"Do not use `document.cookie` directly.",recommended:!0},messages:{[t]:"Do not use `document.cookie` directly."}}}}()),de=/*@__PURE__*/oe(/*@__PURE__*/function(){if(rv)return rb;rv=1;let{isParenthesized:e}=sa,t=/*@__PURE__*/function(){if(ry)return rg;ry=1;let e=e=>[`webkit${e}`,`o${e.toLowerCase()}`,e.toLowerCase()];return rg=new Set(["click","rightclick","dblclick","auxclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","mousecancel","selectionchange","selectstart","wheel","keypress","keydown","keyup","blur","focus","deactivate","focusin","focusout","change","reset","select","submit","input","propertychange","dragstart","drag","dragenter","dragover","dragleave","drop","dragend","touchstart","touchmove","touchend","touchcancel","beforeunload","consolemessage","contextmenu","devicechange","devicemotion","deviceorientation","DOMContentLoaded","error","help","load","losecapture","orientationchange","readystatechange","resize","scroll","unload","canplay","canplaythrough","durationchange","emptied","ended","loadeddata","loadedmetadata","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","sourceopen","sourceended","sourceclosed","abort","update","updatestart","updateend","hashchange","pagehide","pageshow","popstate","copy","paste","cut","beforecopy","beforecut","beforepaste","online","offline","message","connect","install","activate","fetch","foreignfetch","messageerror","statechange","updatefound","controllerchange",...e("AnimationStart"),...e("AnimationEnd"),...e("AnimationIteration"),...e("TransitionEnd"),"pointerdown","pointerup","pointercancel","pointermove","pointerover","pointerout","pointerenter","pointerleave","gotpointercapture","lostpointercapture","MSGestureChange","MSGestureEnd","MSGestureHold","MSGestureStart","MSGestureTap","MSGotPointerCapture","MSInertiaStart","MSLostPointerCapture","MSPointerCancel","MSPointerDown","MSPointerEnter","MSPointerHover","MSPointerLeave","MSPointerMove","MSPointerOut","MSPointerOver","MSPointerUp","text","textinput","textInput","compositionstart","compositionupdate","compositionend","beforeinput","exit","loadabort","loadcommit","loadredirect","loadstart","loadstop","responsive","sizechanged","unresponsive","visibilitychange","storage","DOMSubtreeModified","DOMNodeInserted","DOMNodeRemoved","DOMNodeRemovedFromDocument","DOMNodeInsertedIntoDocument","DOMAttrModified","DOMCharacterDataModified","beforeprint","afterprint","beforeinstallprompt","appinstalled","afterblur","beforeblur","cancel","close","dragexit","encrypted","fullscreenchange","invalid","toggle","search","open","show"])}(),{isUndefined:r,isNullLiteral:n,isStaticRequire:u}=/*@__PURE__*/sh(),a="prefer-add-event-listener",i={beforeunload:"Use `event.preventDefault(); event.returnValue = 'foo'` to trigger the prompt.",message:"Note that there is difference between `SharedWorker#onmessage` and `SharedWorker#addEventListener('message')`.",error:"Note that there is difference between `{window,element}.onerror` and `{window,element}.addEventListener('error')`."},o=e=>e.property.name,s=e=>e.slice(2),d=(t,r,n,u)=>{let a=s(o(u)),i=r.getText(u.object);e(u.object,r)&&(i=`(${i})`);let d=r.getText(n.right);e(n.right,r)&&(d=`(${d})`);let l=`${i}.addEventListener('${a}', ${d})`;return t.replaceText(n,l)},l=(e,t)=>("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type)&&"BlockStatement"===e.body.type&&!t.get(e),c=e=>r(e)||n(e);return rb={create:e=>{let r,n;let f=new Set((e.options[0]||{}).excludedPackages||["koa","sax"]),p=new WeakMap;return{onCodePathStart(e,t){n={node:t,upper:n,returnsSomething:!1}},onCodePathEnd(){p.set(n.node,n.returnsSomething),n=n.upper},CallExpression(e){u(e)&&!r&&f.has(e.arguments[0].value)&&(r=!0)},Literal(e){"ImportDeclaration"===e.parent.type&&!r&&f.has(e.value)&&(r=!0)},ReturnStatement(e){n.returnsSomething||=!!e.argument},"AssignmentExpression:exit"(n){let u;if(r)return;let{left:f,right:h,operator:m}=n;if("MemberExpression"!==f.type||f.computed)return;let g=o(f);if(!g||!g.startsWith("on"))return;let y=s(g);if(!t.has(y))return;let b="addEventListener",v="";return c(h)?b="removeEventListener":"beforeunload"!==y||l(h,p)?"message"===y?v=i.message:"error"===y?v=i.error:"="===m&&"ExpressionStatement"===n.parent.type&&n.parent.expression===n&&(u=t=>d(t,e.sourceCode,n,f)):v=i.beforeunload,{node:f.property,messageId:a,data:{replacement:b,method:g,extra:v?` ${v}`:""},fix:u}}}},meta:{type:"suggestion",docs:{description:"Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{excludedPackages:{type:"array",items:{type:"string"},uniqueItems:!0}}}],messages:{[a]:"Prefer `{{replacement}}` over `{{method}}`.{{extra}}"}}}}()),dt=/*@__PURE__*/oe(/*@__PURE__*/function(){if(rA)return rC;rA=1;let e=/*@__PURE__*/function(){if(rE)return rx;rE=1;let{hasSideEffect:e,isParenthesized:t,findVariable:r}=sa,{isMethodCall:n}=/*@__PURE__*/sh(),{isSameIdentifier:u,isFunctionSelfUsedInside:a}=/*@__PURE__*/sL(),i=(e,t)=>"BinaryExpression"===e.type&&"==="===e.operator&&(u(e.left,t)||u(e.right,t)),o=e=>"ArrowFunctionExpression"===e.type&&!e.async&&1===e.params.length&&i(e.body,e.params[0])||("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type)&&!e.async&&!e.generator&&1===e.params.length&&"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&i(e.body.body[0].argument,e.params[0]),s=({type:e,name:t},r)=>"Identifier"===e&&t===r;return rx=function({method:u,replacement:i}){let d=`prefer-${i}-over-${u}/`,l=`${d}error`,c=`${d}suggestion`;return{messages:{[l]:({findIndex:"Use `.indexOf()` instead of `.findIndex()` when looking for the index of an item.",findLastIndex:"Use `.lastIndexOf()` instead of `findLastIndex() when looking for the index of an item.`",some:`Use \`.${i}()\` instead of \`.${u}()\` when checking value existence.`})[u],[c]:`Replace \`.${u}()\` with \`.${i}()\`.`},listen:function(d){let{sourceCode:f}=d,{scopeManager:p}=f;d.on("CallExpression",d=>{let h,m;if(!n(d,{method:u,argumentsLength:1,optionalCall:!1,optionalMember:!1})||!o(d.arguments[0]))return;let[g]=d.arguments,y="BinaryExpression"===g.body.type?g.body:g.body.body[0].argument,[b]=g.params,{left:v,right:x}=y,{name:E}=b;if(s(v,E))h=x,m=v;else{if(!s(x,E))return;h=v,m=x}let C=p.acquire(g);if(r(C,b).references.some(({identifier:e})=>e!==m)||a(g,C))return;let A=d.callee.property,D={node:A,messageId:l,suggest:[]},S=function*(e){let r=f.getText(h);t(h,f)&&!t(g,f)&&(r=`(${r})`),yield e.replaceText(A,i),yield e.replaceText(g,r)};return e(h,f)?D.suggest.push({messageId:c,fix:S}):D.fix=S,D})}}}}(),t=e({method:"findIndex",replacement:"indexOf"}),r=e({method:"findLastIndex",replacement:"lastIndexOf"});return rC={create(e){t.listen(e),r.listen(e)},meta:{type:"suggestion",docs:{description:"Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{...t.messages,...r.messages}}}}()),dr=/*@__PURE__*/oe(/*@__PURE__*/function(){if(rS)return rD;rS=1;let{isMethodCall:e}=/*@__PURE__*/sh(),t="error";return rD={create:()=>({CallExpression(r){if(!e(r,{methods:["readAsText","readAsArrayBuffer"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let n=r.callee.property,u=n.name;return{node:n,messageId:t,data:{method:u,replacement:"readAsArrayBuffer"===u?"arrayBuffer":"text"}}}}),meta:{type:"suggestion",docs:{description:"Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.",recommended:!0},messages:{[t]:"Prefer `Blob#{{replacement}}()` over `FileReader#{{method}}(blob)`."}}}}()),dn=/*@__PURE__*/oe(/*@__PURE__*/function(){if(rw)return r_;rw=1;let{isMethodCall:e,isCallExpression:t,isNewExpression:r}=/*@__PURE__*/sh(),{fixSpaceAroundKeyword:n}=/*@__PURE__*/sZ(),u="prefer-date",a="prefer-date-now-over-methods",i="prefer-date-now-over-number-data-object",o=e=>r(e,{name:"Date",argumentsLength:0}),s=(e,t,r)=>({node:e,messageId:u,*fix(t){yield t.replaceText(e,"Date.now()"),"UnaryExpression"===e.type&&(yield*n(t,e,r))},...t});return r_={create:r=>({CallExpression(r){if(e(r,{methods:["getTime","valueOf"],argumentsLength:0,optionalCall:!1,optionalMember:!1})&&o(r.callee.object)){let e=r.callee.property;return s(r,{node:e,messageId:a,data:{method:e.name}})}if(t(r,{names:["Number","BigInt"],argumentsLength:1,optional:!1})&&o(r.arguments[0])){let{name:e}=r.callee;return"Number"===e?s(r,{messageId:i}):s(r.arguments[0])}},UnaryExpression(e){if(("+"===e.operator||"-"===e.operator)&&o(e.argument))return s("-"===e.operator?e.argument:e,{},r.sourceCode)},AssignmentExpression(e){if(("-="===e.operator||"*="===e.operator||"/="===e.operator||"%="===e.operator||"**="===e.operator)&&o(e.right))return s(e.right)},*BinaryExpression(e){if("-"===e.operator||"*"===e.operator||"/"===e.operator||"%"===e.operator||"**"===e.operator)for(let t of[e.left,e.right])o(t)&&(yield s(t))}}),meta:{type:"suggestion",docs:{description:"Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.",recommended:!0},fixable:"code",messages:{[u]:"Prefer `Date.now()` over `new Date()`.",[a]:"Prefer `Date.now()` over `Date#{{method}}()`.",[i]:"Prefer `Date.now()` over `Number(new Date())`."}}}}()),du=/*@__PURE__*/oe(/*@__PURE__*/function(){if(rF)return rT;rF=1;let{isIdentifierName:e}=sv(),{escapeString:t,hasOptionalChainElement:r,isValueNotUsable:n}=/*@__PURE__*/sL(),{isMethodCall:u,isStringLiteral:a,isExpressionStatement:i}=/*@__PURE__*/sh(),o="prefer-dom-node-dataset",s=e=>e.replaceAll(/-[a-z]/g,e=>e[1].toUpperCase());return rT={create:d=>({CallExpression(l){if(!((u(l,{method:"setAttribute",argumentsLength:2,optionalCall:!1,optionalMember:!1})||u(l,{methods:["getAttribute","removeAttribute","hasAttribute"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&a(l.arguments[0])))return;let c=l.callee.property.name;if(("AwaitExpression"!==l.parent.type||l.parent.argument!==l||"getAttribute"!==c)&&l.arguments[0].value.toLowerCase().startsWith("data-"))return{node:l,messageId:o,data:{method:l.callee.property.name},fix:function(u,a){let o=u.callee.property.name;if(!("setAttribute"===o&&r(u.callee))&&("setAttribute"!==o||n(u))&&("removeAttribute"!==o||i(u.parent)))return r=>{let[n]=u.arguments,i=s(n.value.toLowerCase().slice(5)),{sourceCode:d}=a,l="",c=`${d.getText(u.callee.object)}.dataset`;switch(o){case"setAttribute":case"getAttribute":case"removeAttribute":l=e(i)?`.${i}`:`[${t(i,n.raw.charAt(0))}]`,l=`${c}${l}`,"setAttribute"===o?l+=` = ${d.getText(u.arguments[1])}`:"removeAttribute"===o&&(l=`delete ${l}`);break;case"hasAttribute":l=`Object.hasOwn(${c}, ${t(i,n.raw.charAt(0))})`}return r.replaceText(u,l)}}(l,d)}}}),meta:{type:"suggestion",docs:{description:"Prefer using `.dataset` on DOM elements over calling attribute methods.",recommended:!0},fixable:"code",messages:{[o]:"Prefer `.dataset` over `{{method}}(…)`."}}}}()),da=/*@__PURE__*/oe(/*@__PURE__*/function(){if(rP)return rk;rP=1;let{getParenthesizedText:e,getParenthesizedRange:t,isSameReference:r}=/*@__PURE__*/sL(),{isLiteral:n,isMethodCall:u}=/*@__PURE__*/sh(),{replaceNodeOrTokenAndSpacesBefore:a,removeParentheses:i}=/*@__PURE__*/sZ(),o="prefer-modern-math-apis",s=(e,t)=>"MemberExpression"===e.type&&!e.optional&&!e.computed&&"Identifier"===e.object.type&&"Math"===e.object.name&&"Identifier"===e.property.type&&e.property.name===t,d=(e,t)=>"CallExpression"===e.type&&!e.optional&&s(e.callee,t)&&1===e.arguments.length&&"SpreadElement"!==e.arguments[0].type;function l({constantName:t,replacementMethod:r}){let n=`Math.${r}(…)`;return function(u,a){let i,l;if(!("BinaryExpression"===u.type&&"*"===u.operator)||(d(u.left,"log")&&s(u.right,t)?(i=u.left,l=`Math.log(…) * Math.${t}`):d(u.right,"log")&&s(u.left,t)&&(i=u.right,l=`Math.${t} * Math.log(…)`),!i))return;let[c]=i.arguments;return{node:u,messageId:o,data:{replacement:n,description:l},fix:t=>t.replaceText(u,`Math.${r}(${e(c,a.sourceCode)})`)}}}function c({constantName:t,replacementMethod:r}){let n={messageId:o,data:{replacement:`Math.${r}(…)`,description:`Math.log(…) / Math.${t}`}};return function(u,a){if(!("BinaryExpression"===u.type&&"/"===u.operator&&d(u.left,"log")&&s(u.right,t)))return;let[i]=u.left.arguments;return{...n,node:u,fix:t=>t.replaceText(u,`Math.${r}(${e(i,a.sourceCode)})`)}}}let f=[l({constantName:"LOG10E",replacementMethod:"log10"}),l({constantName:"LOG2E",replacementMethod:"log2"}),c({constantName:"LN10",replacementMethod:"log10"}),c({constantName:"LN2",replacementMethod:"log2"})],p=e=>"BinaryExpression"===e.type&&"+"===e.operator,h=e=>"BinaryExpression"===e.type&&("*"===e.operator&&r(e.left,e.right)||"**"===e.operator&&n(e.right,2)),m=e=>p(e)?[e.left,e.right].flatMap(e=>m(e)):[e];return rk={create:e=>{let r=[];return{CallExpression(r){if(!u(r,{object:"Math",method:"sqrt",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let n=m(r.arguments[0]);if(n.some(e=>!h(e)))return;let s=1===n.length?"abs":"hypot",d=new Set(1===n.length?[]:n.map(e=>e.parent));return{node:r.callee.property,messageId:o,data:{replacement:`Math.${s}(…)`,description:"Math.sqrt(…)"},*fix(u){let{sourceCode:o}=e;for(let e of(yield u.replaceText(r.callee.property,s),d)){let t=o.getTokenAfter(e.left,e=>"Punctuator"===e.type&&"+"===e.value);yield*a(t,",",u,o),yield*i(e,u,o)}for(let e of n)yield u.removeRange([t(e.left,o)[1],e.range[1]])}}},BinaryExpression(e){r.push(e)},*"Program:exit"(){for(let t of r)for(let r of f){let n=r(t,e);n&&(yield n)}}}},meta:{type:"suggestion",docs:{description:"Prefer modern `Math` APIs over legacy patterns.",recommended:!0},fixable:"code",messages:{[o]:"Prefer `{{replacement}}` over `{{description}}`."}}}}()),di=/*@__PURE__*/ot(ig);function ds(){if(rB)return rI;rB=1;let e=/*@__PURE__*/ou(),t=e=>"function"==typeof e?.[Symbol.iterator];class r extends Error{}let n={abort(){throw new r("Fix aborted.")}};function u(e){return u=>{let a=e(u,n);if(t(a))try{return[...a]}catch(e){if(e instanceof r)return;throw e}return a}}let a=new Set;function i(e){if(a.has(e))return e;let r=r=>{let n={},a=(e,t)=>{n[e]??=[],n[e].push(t)};for(let[t,n]of Object.entries(e(new Proxy(r,{get:(e,t,r)=>"on"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])a(r,t)}:"onExit"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])a(`${r}:exit`,t)}:Reflect.get(e,t,r)}))??{}))a(t,n);return Object.fromEntries(Object.entries(n).map(([e,n])=>[e,(...e)=>{for(let a of n)!function(e,r){if(e){for(let n of(t(e)||(e=[e]),e))if(n){if(n.fix&&=u(n.fix),Array.isArray(n.suggest))for(let e of n.suggest)e.fix&&=u(e.fix),e.data={...n.data,...e.data};r.report(n)}}}(a(...e),r)}]))};return a.add(r),r}function o(t){let r=function(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(`../${t}`);return{meta:{schema:[],...r.meta,docs:{...r.meta.docs,url:e(t)}},create:i(r.create)}}return rI={loadRule:o,loadRules:function(){return Object.fromEntries(di.readdirSync(or.join(__dirname,".."),{withFileTypes:!0}).filter(e=>e.isFile()).map(e=>{let t=or.basename(e.name,".js");return[t,o(t)]}))},checkVueTemplate:function(e,t){let{visitScriptBlock:r}={visitScriptBlock:!0,...t};e=i(e);let n=t=>{let n=e(t),{parserServices:u}=t.sourceCode;return u?.defineTemplateBodyVisitor?r?u.defineTemplateBodyVisitor(n,n):u.defineTemplateBodyVisitor(n):n};return a.add(n),n}}}var dd=/*@__PURE__*/oe(/*@__PURE__*/function(){if(rO)return rj;rO=1;let{checkVueTemplate:e}=/*@__PURE__*/ds(),{isNumberLiteral:t,isBigIntLiteral:r}=/*@__PURE__*/sh(),n="number-literal-case",u=e=>{let t=e.toLowerCase();return t.startsWith("0x")&&(t="0x"+t.slice(2).toUpperCase()),t};return rj={create:e(()=>({Literal(e){let{raw:a}=e,i=a;if(t(e)?i=u(a):r(e)&&(i=u(a.slice(0,-1))+"n"),a!==i)return{node:e,messageId:n,fix:t=>t.replaceText(e,i)}}})),meta:{type:"suggestion",docs:{description:"Enforce proper case for numeric literals.",recommended:!0},fixable:"code",messages:{[n]:"Invalid number literal casing."}}}}()),dl=/*@__PURE__*/oe(/*@__PURE__*/function(){if(rN)return rL;rN=1;let{GlobalReferenceTracker:e}=/*@__PURE__*/s9(),{replaceReferenceIdentifier:t}=/*@__PURE__*/sZ(),{fixSpaceAroundKeyword:r}=/*@__PURE__*/sZ(),n=/*@__PURE__*/s_(),u="error",a="suggestion",i={parseInt:!0,parseFloat:!0,NaN:!0,Infinity:!0,isNaN:!1,isFinite:!1},o=e=>{let{parent:t}=e;return"UnaryExpression"===t.type&&"-"===t.operator&&t.argument===e};return rL={create:s=>{let{checkInfinity:d,checkNaN:l}={checkInfinity:!1,checkNaN:!0,...s.options[0]},{sourceCode:c}=s;return new e({objects:Object.keys(i).filter(e=>(!!d||"Infinity"!==e)&&(!!l||"NaN"!==e)),handle:e=>(function({node:e,path:[n]},s){let{parent:d}=e,l=n;"Infinity"===n&&(l=o(e)?"NEGATIVE_INFINITY":"POSITIVE_INFINITY");let c={node:e,messageId:u,data:{description:n,property:l}};if("NEGATIVE_INFINITY"===l)return c.node=d,c.data.description="-Infinity",c.fix=function*(e){yield e.replaceText(d,"Number.NEGATIVE_INFINITY"),yield*r(e,d,s)},c;let f=r=>t(e,`Number.${l}`,r,s);return i[n]?c.fix=f:c.suggest=[{messageId:a,fix:f}],c})(e,c),filter:({node:e})=>!n(e)}).createListeners(s)},meta:{type:"suggestion",docs:{description:"Prefer `Number` static properties over global ones.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkInfinity:{type:"boolean",default:!1},checkNaN:{type:"boolean",default:!0}}}],messages:{[u]:"Prefer `Number.{{property}}` over `{{description}}`.",[a]:"Replace `{{description}}` with `Number.{{property}}`."}}}}()),dc=/*@__PURE__*/oe(/*@__PURE__*/function(){if(rM)return rR;rM=1;let{getPropertyName:e}=sa,{isNullLiteral:t,isMethodCall:r}=/*@__PURE__*/sh(),n="prefer-reflect-apply",u=(e,r)=>(t(e)||"ThisExpression"===e.type)&&("ArrayExpression"===r.type||"Identifier"===r.type&&"arguments"===r.name),a=(e,t,r,n)=>`Reflect.apply(${e.getText(t)}, ${e.getText(r)}, ${e.getText(n)})`,i=(t,r)=>{if("apply"===e(t.callee)&&2===t.arguments.length&&u(t.arguments[0],t.arguments[1]))return e=>e.replaceText(t,a(r,t.callee.object,t.arguments[0],t.arguments[1]))},o=(t,r)=>{if("call"===e(t.callee)&&"apply"===e(t.callee.object)&&"prototype"===e(t.callee.object.object)&&t.callee.object.object.object?.type==="Identifier"&&"Function"===t.callee.object.object.object.name&&3===t.arguments.length&&u(t.arguments[1],t.arguments[2]))return e=>e.replaceText(t,a(r,t.arguments[0],t.arguments[1],t.arguments[2]))};return rR={create:e=>({CallExpression(t){if(!r(t,{optionalCall:!1,optionalMember:!1})||"Literal"===t.callee.object.type||"ArrayExpression"===t.callee.object.type||"ObjectExpression"===t.callee.object.type)return;let{sourceCode:u}=e,a=i(t,u)||o(t,u);if(a)return{node:t,messageId:n,fix:a}}}),meta:{type:"suggestion",docs:{description:"Prefer `Reflect.apply()` over `Function#apply()`.",recommended:!0},fixable:"code",messages:{[n]:"Prefer `Reflect.apply()` over `Function#apply()`."}}}}()),df=/*@__PURE__*/oe(/*@__PURE__*/function(){if(rU)return r$;rU=1;let{findVariable:e}=sa,{fixSpaceAroundKeyword:t}=/*@__PURE__*/sZ(),{isNewExpression:r,isMemberExpression:n}=/*@__PURE__*/sh(),u="prefer-set-size",a=e=>r(e,{name:"Set"});return r$={create:r=>{let{sourceCode:i}=r;return{MemberExpression(r){if(!n(r,{property:"length",optional:!1})||"ArrayExpression"!==r.object.type||1!==r.object.elements.length||r.object.elements[0]?.type!=="SpreadElement")return;let o=r.object.elements[0].argument;if(function(t,r){if(a(t))return!0;if("Identifier"!==t.type)return!1;let n=e(r,t);if(!n||1!==n.defs.length)return!1;let[u]=n.defs;if("Variable"!==u.type||"const"!==u.kind)return!1;let i=u.node;return"VariableDeclarator"===i.type&&"Identifier"===i.id.type&&a(u.node.init)}(o,i.getScope(o)))return{node:r.property,messageId:u,fix:function(e,r){let{object:n,property:u}=r,a=n.elements[0].argument;if(!(e.getCommentsInside(n).length>e.getCommentsInside(a).length))return function*(i){yield i.replaceText(u,"size"),yield i.replaceText(n,e.getText(a)),yield*t(i,r,e)}}(i,r)}}}},meta:{type:"suggestion",docs:{description:"Prefer using `Set#size` instead of `Array#length`.",recommended:!0},fixable:"code",messages:{[u]:"Prefer using `Set#size` instead of `Array#length`."}}}}()),dp={exports:{}},dh=/*@__PURE__*/oe(/*@__PURE__*/function(){var e,t,r,n;if(rq)return rV;rq=1;let{getStaticValue:u}=sa,{parse:a}=(rz||(rz=1,r=String.fromCodePoint||(e=String.fromCharCode,t=Math.floor,function(){var r,n,u=[],a=-1,i=arguments.length;if(!i)return"";for(var o="";++a<i;){var s=Number(arguments[a]);if(!isFinite(s)||s<0||s>1114111||t(s)!=s)throw RangeError("Invalid code point: "+s);s<=65535?u.push(s):(s-=65536,r=(s>>10)+55296,n=s%1024+56320,u.push(r,n)),(a+1==i||u.length>16384)&&(o+=e.apply(null,u),u.length=0)}return o}),n={parse:function(e,t,n){function u(t){return t.raw=e.substring(t.range[0],t.range[1]),t}function a(e,t){return e.range[0]=t,u(e)}function i(e,t){return u({type:"anchor",kind:e,range:[Y-t,Y]})}function o(e,t,r,n){return u({type:"value",kind:e,codePoint:t,range:[r,n]})}function s(e,t,r,n){return n=n||0,o(e,t,Y-(r.length+n),Y)}function d(e){var t,r=e[0],n=r.charCodeAt(0);return K&&1===r.length&&n>=55296&&n<=56319&&(t=y().charCodeAt(0))>=56320&&t<=57343?o("symbol",(n-55296)*1024+t-56320+65536,++Y-2,Y):o("symbol",n,Y-1,Y)}function l(e,t,r,n,a){return null==n&&(r=Y-1,n=Y),u({type:"quantifier",min:e,max:t,greedy:!0,body:null,symbol:a,range:[r,n]})}function c(e,t,r,n){return u({type:"characterClass",kind:e.kind,body:e.body,negative:t,range:[r,n]})}function f(e,t,r,n){return e.codePoint>t.codePoint&&z("invalid range in character class",e.raw+"-"+t.raw,r,n),u({type:"characterClassRange",min:e,max:t,range:[r,n]})}function p(e){return"alternative"===e.type?e.body:[e]}function h(t){t=t||1;var r=e.substring(Y,Y+t);return Y+=t||1,r}function m(e){g(e)||z("character",e)}function g(t){if(e.indexOf(t,Y)===Y)return h(t.length)}function y(){return e[Y]}function b(t){return e.indexOf(t,Y)===Y}function v(t){return e[Y+1]===t}function x(t){var r=e.substring(Y).match(t);return r&&(r.range=[],r.range[0]=Y,h(r[0].length),r.range[1]=Y),r}function E(){var e=[],t=Y;for(e.push(C());g("|");)e.push(C());return 1===e.length?e[0]:u({type:"disjunction",body:e,range:[t,Y]})}function C(){for(var t,r=[],s=Y;t=function(){if(Y>=e.length||b("|")||b(")"))return null;var t=g("^")?i("start",1):g("$")?i("end",1):g("\\b")?i("boundary",2):g("\\B")?i("not-boundary",2):A("(?=","lookahead","(?!","negativeLookahead");if(!t){var r=function(){if((t=x(/^[^^$\\.*+?()[\]{}|]/))||!K&&(t=x(/^(?:]|})/)))return d(t);if(g("."))return u({type:"dot",range:[Y-1,Y]});if(g("\\")){if(!(t=w())){if(!K&&"c"==y())return o("symbol",92,Y-1,Y);z("atomEscape")}return t}if(t=O())return t;if(n.lookbehind&&(t=A("(?<=","lookbehind","(?<!","negativeLookbehind")))return t;if(n.namedGroups&&g("(?<")){var t,r,a,i,s,l,c=I();m(">");var f=D("normal",c.range[0]-3);return f.name=c,f}else return n.modifiers&&e.indexOf("(?")==Y&&":"!=e[Y+2]?(a=Y,h(2),i=x(/^[sim]+/),g("-")?(r=x(/^[sim]+/))||z("Invalid flags for modifiers group"):i||z("Invalid flags for modifiers group"),((s=(i=i?i[0]:"")+(r=r?r[0]:"")).length>3||function(e){for(var t=0;t<e.length;){if(-1!=e.indexOf(e[t],t+1))return!0;t++}return!1}(s))&&z("flags cannot be duplicated for modifiers group"),m(":"),(l=D("ignore",a)).modifierFlags={enabling:i,disabling:r},l):A("(?:","ignore","(","normal")}();if(!r){var s,l,c=Y;(s=S()||!1)&&(Y=c,z("Expected atom")),!K&&(l=x(/^{/))?r=d(l):z("Expected atom")}t=r}return(s=S()||!1)?(s.body=p(t),a(s,t.range[0]),s):t}();)r.push(t);return 1===r.length?r[0]:u({type:"alternative",body:r,range:[s,Y]})}function A(e,t,r,n){var u=null,a=Y;if(g(e))u=t;else{if(!g(r))return!1;u=n}return D(u,a)}function D(e,t){var r=E();r||z("Expected disjunction"),m(")");var n=u({type:"group",behavior:e,body:p(r),range:[t,Y]});return"normal"==e&&W&&q++,n}function S(){var e,t,r,n,u=Y;return g("*")?e=l(0,void 0,void 0,void 0,"*"):g("+")?e=l(1,void 0,void 0,void 0,"+"):g("?")?e=l(0,1,void 0,void 0,"?"):(n=x(/^\{([0-9]+)\}/))?e=l(t=parseInt(n[1],10),t,n.range[0],n.range[1]):(n=x(/^\{([0-9]+),\}/))?e=l(t=parseInt(n[1],10),void 0,n.range[0],n.range[1]):(n=x(/^\{([0-9]+),([0-9]+)\}/))&&((t=parseInt(n[1],10))>(r=parseInt(n[2],10))&&z("numbers out of order in {} quantifier","",u,Y),e=l(t,r,n.range[0],n.range[1])),(t&&!Number.isSafeInteger(t)||r&&!Number.isSafeInteger(r))&&z("iterations outside JS safe integer range in quantifier","",u,Y),e&&g("?")&&(e.greedy=!1,e.range[1]+=1),e}function _(e){if(K){var t,r;if("unicodeEscape"==e.kind&&(t=e.codePoint)>=55296&&t<=56319&&b("\\")&&v("u")){var n=Y;Y++;var a=w(!0);"unicodeEscape"==a.kind&&(r=a.codePoint)>=56320&&r<=57343?(e.range[1]=a.range[1],e.codePoint=(t-55296)*1024+r-56320+65536,e.type="value",e.kind="unicodeCodePointEscape",u(e)):Y=n}}return e}function w(e){var t,r,i=Y;if(r=function(e){var t,r,n=Y;if(t=x(/^(?!0)\d+/)){r=t[0];var i,o=parseInt(t[0],10);return o<=q&&!e?u({type:"reference",matchIndex:parseInt(i=t[0],10),range:[Y-1-i.length,Y]}):(V.push(o),W?G=!0:T(n,Y),h(-t[0].length),t=x(/^[0-7]{1,3}/))?s("octal",parseInt(t[0],8),t[0],1):a(t=d(x(/^[89]/)),t.range[0]-1)}return!!(t=x(/^[0-7]{1,3}/))&&(("0"!==(r=t[0])&&T(n,Y),/^0{1,3}$/.test(r))?s("null",0,"0",r.length):s("octal",parseInt(r,8),r,1))}(e)||function(){if(n.namedGroups&&x(/^k<(?=.*?>)/)){var e=I();return m(">"),u({type:"reference",name:e,range:[e.range[0]-3,Y]})}}())return r;if(e){if(g("b"))return s("singleEscape",8,"\\b");if(g("B"))z("\\B not possible inside of CharacterClass","",i);else if(!K&&(r=x(/^c([0-9])/)))return s("controlLetter",r[1]+16,r[1],2);else if(!K&&(r=x(/^c_/)))return s("controlLetter",31,"_",2);if(K&&g("-"))return s("singleEscape",45,"\\-")}return((t=x(/^[dDsSwW]/))?u({type:"characterClassEscape",value:t[0],range:[Y-2,Y]}):n.unicodePropertyEscape&&K&&(t=x(/^([pP])\{([^\}]+)\}/))?u({type:"unicodePropertyEscape",negative:"P"===t[1],value:t[2],range:[t.range[0]-1,t.range[1]],raw:t[0]}):!!(n.unicodeSet&&H&&g("q{"))&&function(){var e=Y-3,t=[];do t.push(function(){for(var e,t=[],r=Y;e=M();)t.push(e);return u({type:"classString",characters:t,range:[r,Y]})}());while(g("|"));return m("}"),u({type:"classStrings",strings:t,range:[e,Y]})}())||k()}function T(e,t){K&&z("Invalid decimal escape in unicode mode",null,e,t)}function F(){var e;return(e=x(/^u([0-9a-fA-F]{4})/))?_(s("unicodeEscape",parseInt(e[1],16),e[1],2)):K&&(e=x(/^u\{([0-9a-fA-F]+)\}/))?s("unicodeCodePointEscape",parseInt(e[1],16),e[1],4):void 0}function k(){var e,t,r,u=Y;if(r=x(/^[fnrtv]/)){var a=0;switch(r[0]){case"t":a=9;break;case"n":a=10;break;case"v":a=11;break;case"f":a=12;break;case"r":a=13}return s("singleEscape",a,"\\"+r[0])}return(r=x(/^c([a-zA-Z])/))?s("controlLetter",r[1].charCodeAt(0)%32,r[1],2):(r=x(/^x([0-9a-fA-F]{2})/))?s("hexadecimalEscape",parseInt(r[1],16),r[1],2):(r=F())?((!r||r.codePoint>1114111)&&z("Invalid escape sequence",null,u,Y),r):(t=y(),K&&/[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/.test(t)||!K&&"c"!==t?"k"===t&&n.lookbehind?null:s("identifier",(e=h()).charCodeAt(0),e,1):null)}function P(t){var n=y(),u=Y;if("\\"===n){h();var a=F();return a&&t(a.codePoint)||z("Invalid escape sequence",null,u,Y),r(a.codePoint)}var i=n.charCodeAt(0);if(i>=55296&&i<=56319){var o=(n+=e[Y+1]).charCodeAt(1);o>=56320&&o<=57343&&(i=(i-55296)*1024+o-56320+65536)}if(t(i))return h(),i>65535&&h(),n}function I(){var e,t=Y,r=P(B);for(r||z("Invalid identifier");e=P(j);)r+=e;return u({type:"identifier",value:r,range:[t,Y]})}function B(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=128&&/[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7B9\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFF1]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/.test(r(e))}function j(e){return B(e)||e>=48&&e<=57||e>=128&&/[0-9_\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD30-\uDD39\uDF46-\uDF50]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC66-\uDC6F\uDC7F-\uDC82\uDCB0-\uDCBA\uDCF0-\uDCF9\uDD00-\uDD02\uDD27-\uDD34\uDD36-\uDD3F\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDD0-\uDDD9\uDE2C-\uDE37\uDE3E\uDEDF-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC50-\uDC59\uDC5E\uDCB0-\uDCC3\uDCD0-\uDCD9\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDE50-\uDE59\uDEAB-\uDEB7\uDEC0-\uDEC9\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC2C-\uDC3A\uDCE0-\uDCE9\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC50-\uDC59\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD50-\uDD59\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDDA0-\uDDA9\uDEF3-\uDEF6]|\uD81A[\uDE60-\uDE69\uDEF0-\uDEF4\uDF30-\uDF36\uDF50-\uDF59]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A\uDD50-\uDD59]|\uDB40[\uDD00-\uDDEF]/.test(r(e))}function O(){var e,t=Y;return(e=x(/^\[\^/))?(e=L(),m("]"),c(e,!0,t,Y)):g("[")?(e=L(),m("]"),c(e,!1,t,Y)):null}function L(){var e,t;return b("]")?{kind:"union",body:[]}:H?function(){var e,t=[],r=R(!0);for(t.push(r),e="classRange"===r.type?"union":b("&")?"intersection":b("-")?"subtraction":"union";!b("]");)"intersection"===e?(m("&"),m("&"),b("&")&&z("&& cannot be followed by &. Wrap it in brackets: &&[&].")):"subtraction"===e&&(m("-"),m("-")),t.push(r=R("union"===e));return{kind:e,body:t}}():((t=N())||z("classAtom"),(e=b("]")?[t]:function e(t){if(b("-")&&!v("]")){r=t.range[0],i=d(g("-")),(a=N())||z("classAtom"),n=Y;var r,n,u,a,i,o,s=L();return(s||z("classRanges"),"codePoint"in t&&"codePoint"in a?u=[f(t,a,r,n)]:K?z("invalid character class"):u=[t,i,a],"empty"===s.type)?u:u.concat(s.body)}return(o=N())||z("classAtom"),(u=b("]")?o:e(o))||z("nonEmptyClassRangesNoDash"),[t].concat(u)}(t))||z("nonEmptyClassRanges"),{kind:"union",body:e})}function N(){var e;return g("-")?d("-"):(e=x(/^[^\\\]-]/))?d(e[0]):g("\\")?((e=w(!0))||z("classEscape"),_(e)):void 0}function R(e){var t,r,n=Y;if(g("\\")){if(r=w(!0))t=r;else{if(r=U())return r;z("Invalid escape","\\"+y(),n)}}else if(r=$())t=r;else{if(r=O())return r;z("Invalid character",y())}if(e&&b("-")&&!v("-")){if(m("-"),r=M())return f(t,r,n,Y);z("Invalid range end",y())}return t}function M(){if(g("\\")){var e,t=Y;if(e=U())return e;z("Invalid escape","\\"+y(),t)}return $()}function $(){var e;if(e=x(/^[^()[\]{}/\-\\|]/))return d(e)}function U(){var e;if(g("b"))return s("singleEscape",8,"\\b");if(g("B"))z("\\B not possible inside of ClassContents","",Y-2);else if(e=x(/^[&\-!#%,:;<=>@_`~]/))return s("identifier",e[0].codePointAt(0),e[0]);else if(e=k())return e;else return null}function z(t,r,n,u){n=null==n?Y:n,u=null==u?n:u;var a=Math.max(0,n-10),i=Math.min(u+10,e.length),o=" "+e.substring(a,i),s=" "+Array(n-a+1).join(" ")+"^";throw SyntaxError(t+" at position "+n+(r?": "+r:"")+"\n"+o+"\n"+s)}n||(n={});var V=[],q=0,W=!0,G=!1,Z=-1!==(t||"").indexOf("u"),H=-1!==(t||"").indexOf("v"),K=Z||H,Y=0;if(H&&!n.unicodeSet)throw Error('The "v" flag is only supported when the .unicodeSet option is enabled.');if(Z&&H)throw Error('The "u" and "v" flags are mutually exclusive.');""===(e=String(e))&&(e="(?:)");var J=E();return(J.range[1]!==e.length&&z("Could not parse entire input - got stuck","",J.range[1]),G=G||V.some(function(e){return e<=q}))?(Y=0,W=!1,E()):J}},dp.exports?dp.exports=n:window.regjsparser=n),dp.exports),i=/*@__PURE__*/sA(),{isRegexLiteral:o,isNewExpression:s,isMethodCall:d}=/*@__PURE__*/sh(),l="method",c="pattern",f=(e,t)=>{if(o(e))return e.regex.flags.includes("g");if(s(e,{name:"RegExp"})&&e.arguments[0]?.type!=="SpreadElement"&&e.arguments[1]?.type==="Literal"&&"string"==typeof e.arguments[1].value)return e.arguments[1].value.includes("g");let r=u(e,t);if(!r)return!1;let{value:n}=r;return"[object RegExp]"===Object.prototype.toString.call(n)&&n.global};return rV={create:e=>({CallExpression(t){if(!d(t,{methods:["replace","replaceAll"],argumentsLength:2,optionalCall:!1,optionalMember:!1}))return;let{arguments:[r],callee:{property:n}}=t;if(!f(r,e.sourceCode.getScope(r)))return;let u=n.name,s=function(e){let t;if(!o(e))return;let{pattern:r,flags:n}=e.regex;if("g"!==n.replace("u","").replace("v",""))return;try{t=a(r,n,{unicodePropertyEscape:n.includes("u"),unicodeSet:n.includes("v"),namedGroups:!0,lookbehind:!0})}catch{return}let u="alternative"===t.type?t.body:[t];if(!u.some(e=>"value"!==e.type))return i(String.fromCodePoint(...u.map(e=>e.codePoint)))}(r);if("replaceAll"===u){if(!s)return;return{node:r,messageId:c,data:{replacement:s.length<20?s:"a string literal"},fix:e=>e.replaceText(r,s)}}return{node:n,messageId:l,*fix(e){yield e.insertTextAfter(n,"All"),s&&(yield e.replaceText(r,s))}}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#replaceAll()` over regex searches with the global flag.",recommended:!0},fixable:"code",messages:{[l]:"Prefer `String#replaceAll()` over `String#replace()`.",[c]:"This pattern can be replaced with {{replacement}}."}}}}()),dm=/*@__PURE__*/oe(/*@__PURE__*/function(){if(rG)return rW;rG=1;let{getStaticValue:e}=sa,{getParenthesizedText:t,getParenthesizedRange:r}=/*@__PURE__*/so(),n=/*@__PURE__*/sQ(),{replaceArgument:u}=/*@__PURE__*/sZ(),{isNumberLiteral:a,isMethodCall:i}=/*@__PURE__*/sh(),o=e=>a(e)?e.value:"UnaryExpression"===e.type&&"-"===e.operator?-o(e.argument):void 0,s=e=>e?.type==="MemberExpression"&&!1===e.computed&&"Identifier"===e.property.type&&"length"===e.property.name;return rW={create:d=>({CallExpression(l){if(!i(l,{methods:["substr","substring"]}))return;let c=l.callee.property.name;return{node:l,messageId:c,*fix(i,{abort:f}){if(yield i.replaceText(l.callee.property,"slice"),0!==l.arguments.length){if(l.arguments.length>2||l.arguments.some(e=>"SpreadElement"===e.type))return f();yield*("substr"===c?function*({node:i,fixer:d,context:l,abort:c}){let f=i.arguments,[p,h]=f;if(!h)return;let{sourceCode:m}=l,g=m.getScope(i),y=e(p,g),b=r(h,m),v=e=>u(d,h,e,m);if(y?.value===0){if(a(h)||s(h))return;if("number"==typeof o(h)){yield v(Math.max(0,o(h)));return}yield d.insertTextBeforeRange(b,"Math.max(0, "),yield d.insertTextAfterRange(b,")");return}if(f.every(e=>a(e))){yield v(p.value+h.value);return}if(f.every(e=>n(e,g))){let e=t(p,m);yield d.insertTextBeforeRange(b,`${e} + `);return}return c()}:function*({node:e,fixer:n,context:a,abort:i}){let{sourceCode:d}=a,[l,c]=e.arguments,f=l?o(l):void 0,p=t(l,d),h=e=>u(n,l,e,d);if(!c){if(s(l))return;if(void 0!==f){yield h(Math.max(0,f));return}let e=r(l,d);yield n.insertTextBeforeRange(e,"Math.max(0, "),yield n.insertTextAfterRange(e,")");return}let m=o(c),g=t(c,d),y=e=>u(n,c,e,d);if(void 0!==f&&void 0!==m){let e=[Math.max(0,f),Math.max(0,m)];f>m&&e.reverse(),e[0]!==f&&(yield h(e[0])),e[1]!==m&&(yield y(e[1]));return}if(0===f||0===m){yield h(0),yield y(`Math.max(0, ${0===f?g:p})`);return}return i()})({node:l,fixer:i,context:d,abort:f})}}}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#slice()` over `String#substr()` and `String#substring()`.",recommended:!0},fixable:"code",messages:{substr:"Prefer `String#slice()` over `String#substr()`.",substring:"Prefer `String#slice()` over `String#substring()`."}}}}()),dg=/*@__PURE__*/oe(/*@__PURE__*/function(){if(rH)return rZ;rH=1;let{isMethodCall:e}=/*@__PURE__*/sh(),t="prefer-string-trim-start-end";return rZ={create:()=>({CallExpression(r){if(!e(r,{methods:["trimLeft","trimRight"],argumentsLength:0,optionalCall:!1}))return;let n=r.callee.property,u=n.name,a="trimLeft"===u?"trimStart":"trimEnd";return{node:n,messageId:t,data:{method:u,replacement:a},fix:e=>e.replaceText(n,a)}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.",recommended:!0},fixable:"code",messages:{[t]:"Prefer `String#{{replacement}}()` over `String#{{method}}()`."}}}}()),dy=/*@__PURE__*/oe(/*@__PURE__*/function(){if(rY)return rK;rY=1;let{isParenthesized:e,getParenthesizedRange:t,toLocation:r}=/*@__PURE__*/sL(),n="no-unreadable-iife";return rK={create:u=>({CallExpression(a){let{sourceCode:i}=u;if("ArrowFunctionExpression"===a.callee.type&&"BlockStatement"!==a.callee.body.type&&e(a.callee.body,i))return{node:a,loc:r(t(a.callee.body,i),i),messageId:n}}}),meta:{type:"suggestion",docs:{description:"Disallow unreadable IIFEs.",recommended:!0},hasSuggestions:!1,messages:{[n]:"IIFE with parenthesized arrow function body is considered unreadable."}}}}()),db=/*@__PURE__*/oe(/*@__PURE__*/function(){if(rQ)return rJ;rQ=1;let{switchCallExpressionToNewExpression:e}=/*@__PURE__*/sZ(),t="throw-new-error",r=/^(?:[A-Z][\da-z]*)*Error$/;return rJ={create:n=>({CallExpression(u){let{callee:a}=u;if("Identifier"===a.type&&r.test(a.name)||"MemberExpression"===a.type&&!a.computed&&"Identifier"===a.property.type&&r.test(a.property.name))return{node:u,messageId:t,fix:t=>e(u,n.sourceCode,t)}}}),meta:{type:"suggestion",docs:{description:"Require `new` when creating an error.",recommended:!0},fixable:"code",messages:{[t]:"Use `new` when creating an error."}}}}());function dv(){if(nu)return nn;function e(e){return e?t[e.type](e):""}nu=1;var t={RegExp:function(t){return"/"+e(t.body)+"/"+t.flags},Alternative:function(t){return(t.expressions||[]).map(e).join("")},Disjunction:function(t){return e(t.left)+"|"+e(t.right)},Group:function(t){var r=e(t.expression);return t.capturing?t.name?"(?<"+(t.nameRaw||t.name)+">"+r+")":"("+r+")":"(?:"+r+")"},Backreference:function(e){switch(e.kind){case"number":return"\\"+e.reference;case"name":return"\\k<"+(e.referenceRaw||e.reference)+">";default:throw TypeError("Unknown Backreference kind: "+e.kind)}},Assertion:function(t){switch(t.kind){case"^":case"$":case"\\b":case"\\B":return t.kind;case"Lookahead":var r=e(t.assertion);if(t.negative)return"(?!"+r+")";return"(?="+r+")";case"Lookbehind":var n=e(t.assertion);if(t.negative)return"(?<!"+n+")";return"(?<="+n+")";default:throw TypeError("Unknown Assertion kind: "+t.kind)}},CharacterClass:function(t){var r=t.expressions.map(e).join("");return t.negative?"[^"+r+"]":"["+r+"]"},ClassRange:function(t){return e(t.from)+"-"+e(t.to)},Repetition:function(t){return""+e(t.expression)+e(t.quantifier)},Quantifier:function(e){var t=void 0,r=e.greedy?"":"?";switch(e.kind){case"+":case"?":case"*":t=e.kind;break;case"Range":t=e.from===e.to?"{"+e.from+"}":e.to?"{"+e.from+","+e.to+"}":"{"+e.from+",}";break;default:throw TypeError("Unknown Quantifier kind: "+e.kind)}return""+t+r},Char:function(e){var t=e.value;switch(e.kind){case"simple":if(e.escaped)return"\\"+t;return t;case"hex":case"unicode":case"oct":case"decimal":case"control":case"meta":return t;default:throw TypeError("Unknown Char kind: "+e.kind)}},UnicodeProperty:function(e){return"\\"+(e.negative?"P":"p")+"{"+(e.shorthand||e.binary?"":e.name+"=")+e.value+"}"}};return nn={generate:e}}function dx(){if(nl)return nd;nl=1;var e=function(){if(ns)return no;ns=1;var e=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function t(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var r=void 0,n={},u=void 0,a=void 0;function i(e,t){return n.options.captureLocations?e&&t?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:e||t:null}var o=[[-1,1,function(e,t){a=i(t,t),u=e}],[0,4,function(e,t,r,n,o,s,d,l){a=i(o,l),u=F({type:"RegExp",body:t,flags:function(e){var t=new Set,r=!0,n=!1,u=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var o=a.value;if(t.has(o)||!"gimsuxy".includes(o))throw SyntaxError("Invalid flags: "+e);t.add(o)}}catch(e){n=!0,u=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw u}}return e.split("").sort().join("")}(n)},k(o,l||d))}],[1,1,function(e,t){a=i(t,t),u=e}],[1,0,function(){a=null,u=""}],[2,1,function(e,t){a=i(t,t),u=e}],[2,2,function(e,t,r,n){a=i(r,n),u=e+t}],[3,1,function(e,t){a=i(t,t),u=e}],[4,1,function(e,t){a=i(t,t),u=e}],[4,3,function(e,t,r,n,o,s){a=i(n,s);var d=null;o&&(d=k(n||o,s||o)),u=F({type:"Disjunction",left:e,right:r},d)}],[5,1,function(e,t){if(a=i(t,t),0===e.length){u=null;return}u=1===e.length?F(e[0],a):F({type:"Alternative",expressions:e},a)}],[6,0,function(){a=null,u=[]}],[6,2,function(e,t,r,n){a=i(r,n),u=e.concat(t)}],[7,1,function(e,t){a=i(t,t),u=F(Object.assign({type:"Assertion"},e),a)}],[7,2,function(e,t,r,n){a=i(r,n),u=e,t&&(u=F({type:"Repetition",expression:e,quantifier:t},a))}],[8,1,function(e,t){a=i(t,t),u={kind:"^"}}],[8,1,function(e,t){a=i(t,t),u={kind:"$"}}],[8,1,function(e,t){a=i(t,t),u={kind:"\\b"}}],[8,1,function(e,t){a=i(t,t),u={kind:"\\B"}}],[8,3,function(e,t,r,n,o,s){a=i(n,s),u={kind:"Lookahead",assertion:t}}],[8,3,function(e,t,r,n,o,s){a=i(n,s),u={kind:"Lookahead",negative:!0,assertion:t}}],[8,3,function(e,t,r,n,o,s){a=i(n,s),u={kind:"Lookbehind",assertion:t}}],[8,3,function(e,t,r,n,o,s){a=i(n,s),u={kind:"Lookbehind",negative:!0,assertion:t}}],[9,1,function(e,t){a=i(t,t),u=e}],[9,1,function(e,t){a=i(t,t),u=e}],[9,1,function(e,t){a=i(t,t),u=e}],[10,1,function(e,t){u=C(e,"simple",a=i(t,t))}],[10,1,function(e,t){a=i(t,t),(u=C(e.slice(1),"simple",a)).escaped=!0}],[10,1,function(e,t){(u=C(e,"unicode",a=i(t,t))).isSurrogatePair=!0}],[10,1,function(e,t){u=C(e,"unicode",a=i(t,t))}],[10,1,function(e,t){u=function(e,t){var r="P"===e[1],n=e.indexOf("="),u=e.slice(3,-1!==n?n:-1),a=void 0,i=-1===n&&E.isGeneralCategoryValue(u),o=-1===n&&E.isBinaryPropertyName(u);if(i)a=u,u="General_Category";else if(o)a=u;else{if(!E.isValidName(u))throw SyntaxError("Invalid unicode property name: "+u+".");if(a=e.slice(n+1,-1),!E.isValidValue(u,a))throw SyntaxError("Invalid "+u+" unicode property value: "+a+".")}return F({type:"UnicodeProperty",name:u,value:a,negative:r,shorthand:i,binary:o,canonicalName:E.getCanonicalName(u)||u,canonicalValue:E.getCanonicalValue(a)||a},t)}(e,a=i(t,t))}],[10,1,function(e,t){u=C(e,"control",a=i(t,t))}],[10,1,function(e,t){u=C(e,"hex",a=i(t,t))}],[10,1,function(e,t){u=C(e,"oct",a=i(t,t))}],[10,1,function(e,t){var r,n;r=a=i(t,t),u=(n=Number(e.slice(1)))>0&&n<=g?F({type:"Backreference",kind:"number",number:n,reference:n},r):C(e,"decimal",r)}],[10,1,function(e,t){u=C(e,"meta",a=i(t,t))}],[10,1,function(e,t){u=C(e,"meta",a=i(t,t))}],[10,1,function(e,t){a=i(t,t),u=function(e,t){var r=e.slice(3,-1),n=T(r);if(y.hasOwnProperty(n))return F({type:"Backreference",kind:"name",number:y[n],reference:n,referenceRaw:r},t);var u=null,a=null,i=null,o=null;t&&(u=t.startOffset,a=t.startLine,i=t.endLine,o=t.startColumn);var s=/^[\w$<>]/,d=void 0,l=[C(e.slice(1,2),"simple",u?{startLine:a,endLine:i,startColumn:o,startOffset:u,endOffset:u+=2,endColumn:o+=2}:null)];for(l[0].escaped=!0,e=e.slice(2);e.length>0;){var c=null;(c=e.match(A))||(c=e.match(D))?(u&&(d={startLine:a,endLine:i,startColumn:o,startOffset:u,endOffset:u+=c[0].length,endColumn:o+=c[0].length}),l.push(C(c[0],"unicode",d)),e=e.slice(c[0].length)):(c=e.match(s))&&(u&&(d={startLine:a,endLine:i,startColumn:o,startOffset:u,endOffset:++u,endColumn:++o}),l.push(C(c[0],"simple",d)),e=e.slice(1))}return l}(e,t)}],[11,1,function(e,t){a=i(t,t),u=e}],[11,0],[12,1,function(e,t){a=i(t,t),u=e}],[12,2,function(e,t,r,n){a=i(r,n),e.greedy=!1,u=e}],[13,1,function(e,t){u=F({type:"Quantifier",kind:e,greedy:!0},a=i(t,t))}],[13,1,function(e,t){u=F({type:"Quantifier",kind:e,greedy:!0},a=i(t,t))}],[13,1,function(e,t){u=F({type:"Quantifier",kind:e,greedy:!0},a=i(t,t))}],[13,1,function(e,t){a=i(t,t);var r=v(e);u=F({type:"Quantifier",kind:"Range",from:r[0],to:r[0],greedy:!0},a)}],[13,1,function(e,t){a=i(t,t),u=F({type:"Quantifier",kind:"Range",from:v(e)[0],greedy:!0},a)}],[13,1,function(e,t){a=i(t,t);var r=v(e);u=F({type:"Quantifier",kind:"Range",from:r[0],to:r[1],greedy:!0},a)}],[14,1,function(e,t){a=i(t,t),u=e}],[14,1,function(e,t){a=i(t,t),u=e}],[15,3,function(e,t,r,o,s,d){a=i(o,d);var l=String(e),c=T(l);if(!n.options.allowGroupNameDuplicates&&y.hasOwnProperty(c))throw SyntaxError('Duplicate of the named group "'+c+'".');y[c]=e.groupNumber,u=F({type:"Group",capturing:!0,name:c,nameRaw:l,number:e.groupNumber,expression:t},a)}],[15,3,function(e,t,r,n,o,s){a=i(n,s),u=F({type:"Group",capturing:!0,number:e.groupNumber,expression:t},a)}],[16,3,function(e,t,r,n,o,s){u=F({type:"Group",capturing:!1,expression:t},a=i(n,s))}],[17,3,function(e,t,r,n,o,s){u=F({type:"CharacterClass",negative:!0,expressions:t},a=i(n,s))}],[17,3,function(e,t,r,n,o,s){u=F({type:"CharacterClass",expressions:t},a=i(n,s))}],[18,0,function(){a=null,u=[]}],[18,1,function(e,t){a=i(t,t),u=e}],[19,1,function(e,t){a=i(t,t),u=[e]}],[19,2,function(e,t,r,n){a=i(r,n),u=[e].concat(t)}],[19,4,function(e,t,r,n,o,s,d,l){a=i(o,l),x(e,r),u=[F({type:"ClassRange",from:e,to:r},k(o,d))],n&&(u=u.concat(n))}],[20,1,function(e,t){a=i(t,t),u=e}],[20,2,function(e,t,r,n){a=i(r,n),u=[e].concat(t)}],[20,4,function(e,t,r,n,o,s,d,l){a=i(o,l),x(e,r),u=[F({type:"ClassRange",from:e,to:r},k(o,d))],n&&(u=u.concat(n))}],[21,1,function(e,t){u=C(e,"simple",a=i(t,t))}],[21,1,function(e,t){a=i(t,t),u=e}],[22,1,function(e,t){a=i(t,t),u=e}],[22,1,function(e,t){u=C(e,"meta",a=i(t,t))}]],s={SLASH:"23",CHAR:"24",BAR:"25",BOS:"26",EOS:"27",ESC_b:"28",ESC_B:"29",POS_LA_ASSERT:"30",R_PAREN:"31",NEG_LA_ASSERT:"32",POS_LB_ASSERT:"33",NEG_LB_ASSERT:"34",ESC_CHAR:"35",U_CODE_SURROGATE:"36",U_CODE:"37",U_PROP_VALUE_EXP:"38",CTRL_CH:"39",HEX_CODE:"40",OCT_CODE:"41",DEC_CODE:"42",META_CHAR:"43",ANY:"44",NAMED_GROUP_REF:"45",Q_MARK:"46",STAR:"47",PLUS:"48",RANGE_EXACT:"49",RANGE_OPEN:"50",RANGE_CLOSED:"51",NAMED_CAPTURE_GROUP:"52",L_PAREN:"53",NON_CAPTURE_GROUP:"54",NEG_CLASS:"55",R_BRACKET:"56",L_BRACKET:"57",DASH:"58",$:"59"},d=[{0:1,23:"s2"},{59:"acc"},{3:3,4:4,5:5,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"s7"},{23:"r6",25:"s12"},{23:"r7",25:"r7",31:"r7"},{7:14,8:15,9:16,10:25,14:27,15:42,16:43,17:26,23:"r9",24:"s28",25:"r9",26:"s17",27:"s18",28:"s19",29:"s20",30:"s21",31:"r9",32:"s22",33:"s23",34:"s24",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",52:"s44",53:"s45",54:"s46",55:"s40",57:"s41"},{1:8,2:9,24:"s10",59:"r3"},{59:"r1"},{24:"s11",59:"r2"},{24:"r4",59:"r4"},{24:"r5",59:"r5"},{5:13,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r8",25:"r8",31:"r8"},{23:"r11",24:"r11",25:"r11",26:"r11",27:"r11",28:"r11",29:"r11",30:"r11",31:"r11",32:"r11",33:"r11",34:"r11",35:"r11",36:"r11",37:"r11",38:"r11",39:"r11",40:"r11",41:"r11",42:"r11",43:"r11",44:"r11",45:"r11",52:"r11",53:"r11",54:"r11",55:"r11",57:"r11"},{23:"r12",24:"r12",25:"r12",26:"r12",27:"r12",28:"r12",29:"r12",30:"r12",31:"r12",32:"r12",33:"r12",34:"r12",35:"r12",36:"r12",37:"r12",38:"r12",39:"r12",40:"r12",41:"r12",42:"r12",43:"r12",44:"r12",45:"r12",52:"r12",53:"r12",54:"r12",55:"r12",57:"r12"},{11:47,12:48,13:49,23:"r38",24:"r38",25:"r38",26:"r38",27:"r38",28:"r38",29:"r38",30:"r38",31:"r38",32:"r38",33:"r38",34:"r38",35:"r38",36:"r38",37:"r38",38:"r38",39:"r38",40:"r38",41:"r38",42:"r38",43:"r38",44:"r38",45:"r38",46:"s52",47:"s50",48:"s51",49:"s53",50:"s54",51:"s55",52:"r38",53:"r38",54:"r38",55:"r38",57:"r38"},{23:"r14",24:"r14",25:"r14",26:"r14",27:"r14",28:"r14",29:"r14",30:"r14",31:"r14",32:"r14",33:"r14",34:"r14",35:"r14",36:"r14",37:"r14",38:"r14",39:"r14",40:"r14",41:"r14",42:"r14",43:"r14",44:"r14",45:"r14",52:"r14",53:"r14",54:"r14",55:"r14",57:"r14"},{23:"r15",24:"r15",25:"r15",26:"r15",27:"r15",28:"r15",29:"r15",30:"r15",31:"r15",32:"r15",33:"r15",34:"r15",35:"r15",36:"r15",37:"r15",38:"r15",39:"r15",40:"r15",41:"r15",42:"r15",43:"r15",44:"r15",45:"r15",52:"r15",53:"r15",54:"r15",55:"r15",57:"r15"},{23:"r16",24:"r16",25:"r16",26:"r16",27:"r16",28:"r16",29:"r16",30:"r16",31:"r16",32:"r16",33:"r16",34:"r16",35:"r16",36:"r16",37:"r16",38:"r16",39:"r16",40:"r16",41:"r16",42:"r16",43:"r16",44:"r16",45:"r16",52:"r16",53:"r16",54:"r16",55:"r16",57:"r16"},{23:"r17",24:"r17",25:"r17",26:"r17",27:"r17",28:"r17",29:"r17",30:"r17",31:"r17",32:"r17",33:"r17",34:"r17",35:"r17",36:"r17",37:"r17",38:"r17",39:"r17",40:"r17",41:"r17",42:"r17",43:"r17",44:"r17",45:"r17",52:"r17",53:"r17",54:"r17",55:"r17",57:"r17"},{4:57,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:59,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:61,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:63,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r22",24:"r22",25:"r22",26:"r22",27:"r22",28:"r22",29:"r22",30:"r22",31:"r22",32:"r22",33:"r22",34:"r22",35:"r22",36:"r22",37:"r22",38:"r22",39:"r22",40:"r22",41:"r22",42:"r22",43:"r22",44:"r22",45:"r22",46:"r22",47:"r22",48:"r22",49:"r22",50:"r22",51:"r22",52:"r22",53:"r22",54:"r22",55:"r22",57:"r22"},{23:"r23",24:"r23",25:"r23",26:"r23",27:"r23",28:"r23",29:"r23",30:"r23",31:"r23",32:"r23",33:"r23",34:"r23",35:"r23",36:"r23",37:"r23",38:"r23",39:"r23",40:"r23",41:"r23",42:"r23",43:"r23",44:"r23",45:"r23",46:"r23",47:"r23",48:"r23",49:"r23",50:"r23",51:"r23",52:"r23",53:"r23",54:"r23",55:"r23",57:"r23"},{23:"r24",24:"r24",25:"r24",26:"r24",27:"r24",28:"r24",29:"r24",30:"r24",31:"r24",32:"r24",33:"r24",34:"r24",35:"r24",36:"r24",37:"r24",38:"r24",39:"r24",40:"r24",41:"r24",42:"r24",43:"r24",44:"r24",45:"r24",46:"r24",47:"r24",48:"r24",49:"r24",50:"r24",51:"r24",52:"r24",53:"r24",54:"r24",55:"r24",57:"r24"},{23:"r25",24:"r25",25:"r25",26:"r25",27:"r25",28:"r25",29:"r25",30:"r25",31:"r25",32:"r25",33:"r25",34:"r25",35:"r25",36:"r25",37:"r25",38:"r25",39:"r25",40:"r25",41:"r25",42:"r25",43:"r25",44:"r25",45:"r25",46:"r25",47:"r25",48:"r25",49:"r25",50:"r25",51:"r25",52:"r25",53:"r25",54:"r25",55:"r25",56:"r25",57:"r25",58:"r25"},{23:"r26",24:"r26",25:"r26",26:"r26",27:"r26",28:"r26",29:"r26",30:"r26",31:"r26",32:"r26",33:"r26",34:"r26",35:"r26",36:"r26",37:"r26",38:"r26",39:"r26",40:"r26",41:"r26",42:"r26",43:"r26",44:"r26",45:"r26",46:"r26",47:"r26",48:"r26",49:"r26",50:"r26",51:"r26",52:"r26",53:"r26",54:"r26",55:"r26",56:"r26",57:"r26",58:"r26"},{23:"r27",24:"r27",25:"r27",26:"r27",27:"r27",28:"r27",29:"r27",30:"r27",31:"r27",32:"r27",33:"r27",34:"r27",35:"r27",36:"r27",37:"r27",38:"r27",39:"r27",40:"r27",41:"r27",42:"r27",43:"r27",44:"r27",45:"r27",46:"r27",47:"r27",48:"r27",49:"r27",50:"r27",51:"r27",52:"r27",53:"r27",54:"r27",55:"r27",56:"r27",57:"r27",58:"r27"},{23:"r28",24:"r28",25:"r28",26:"r28",27:"r28",28:"r28",29:"r28",30:"r28",31:"r28",32:"r28",33:"r28",34:"r28",35:"r28",36:"r28",37:"r28",38:"r28",39:"r28",40:"r28",41:"r28",42:"r28",43:"r28",44:"r28",45:"r28",46:"r28",47:"r28",48:"r28",49:"r28",50:"r28",51:"r28",52:"r28",53:"r28",54:"r28",55:"r28",56:"r28",57:"r28",58:"r28"},{23:"r29",24:"r29",25:"r29",26:"r29",27:"r29",28:"r29",29:"r29",30:"r29",31:"r29",32:"r29",33:"r29",34:"r29",35:"r29",36:"r29",37:"r29",38:"r29",39:"r29",40:"r29",41:"r29",42:"r29",43:"r29",44:"r29",45:"r29",46:"r29",47:"r29",48:"r29",49:"r29",50:"r29",51:"r29",52:"r29",53:"r29",54:"r29",55:"r29",56:"r29",57:"r29",58:"r29"},{23:"r30",24:"r30",25:"r30",26:"r30",27:"r30",28:"r30",29:"r30",30:"r30",31:"r30",32:"r30",33:"r30",34:"r30",35:"r30",36:"r30",37:"r30",38:"r30",39:"r30",40:"r30",41:"r30",42:"r30",43:"r30",44:"r30",45:"r30",46:"r30",47:"r30",48:"r30",49:"r30",50:"r30",51:"r30",52:"r30",53:"r30",54:"r30",55:"r30",56:"r30",57:"r30",58:"r30"},{23:"r31",24:"r31",25:"r31",26:"r31",27:"r31",28:"r31",29:"r31",30:"r31",31:"r31",32:"r31",33:"r31",34:"r31",35:"r31",36:"r31",37:"r31",38:"r31",39:"r31",40:"r31",41:"r31",42:"r31",43:"r31",44:"r31",45:"r31",46:"r31",47:"r31",48:"r31",49:"r31",50:"r31",51:"r31",52:"r31",53:"r31",54:"r31",55:"r31",56:"r31",57:"r31",58:"r31"},{23:"r32",24:"r32",25:"r32",26:"r32",27:"r32",28:"r32",29:"r32",30:"r32",31:"r32",32:"r32",33:"r32",34:"r32",35:"r32",36:"r32",37:"r32",38:"r32",39:"r32",40:"r32",41:"r32",42:"r32",43:"r32",44:"r32",45:"r32",46:"r32",47:"r32",48:"r32",49:"r32",50:"r32",51:"r32",52:"r32",53:"r32",54:"r32",55:"r32",56:"r32",57:"r32",58:"r32"},{23:"r33",24:"r33",25:"r33",26:"r33",27:"r33",28:"r33",29:"r33",30:"r33",31:"r33",32:"r33",33:"r33",34:"r33",35:"r33",36:"r33",37:"r33",38:"r33",39:"r33",40:"r33",41:"r33",42:"r33",43:"r33",44:"r33",45:"r33",46:"r33",47:"r33",48:"r33",49:"r33",50:"r33",51:"r33",52:"r33",53:"r33",54:"r33",55:"r33",56:"r33",57:"r33",58:"r33"},{23:"r34",24:"r34",25:"r34",26:"r34",27:"r34",28:"r34",29:"r34",30:"r34",31:"r34",32:"r34",33:"r34",34:"r34",35:"r34",36:"r34",37:"r34",38:"r34",39:"r34",40:"r34",41:"r34",42:"r34",43:"r34",44:"r34",45:"r34",46:"r34",47:"r34",48:"r34",49:"r34",50:"r34",51:"r34",52:"r34",53:"r34",54:"r34",55:"r34",56:"r34",57:"r34",58:"r34"},{23:"r35",24:"r35",25:"r35",26:"r35",27:"r35",28:"r35",29:"r35",30:"r35",31:"r35",32:"r35",33:"r35",34:"r35",35:"r35",36:"r35",37:"r35",38:"r35",39:"r35",40:"r35",41:"r35",42:"r35",43:"r35",44:"r35",45:"r35",46:"r35",47:"r35",48:"r35",49:"r35",50:"r35",51:"r35",52:"r35",53:"r35",54:"r35",55:"r35",56:"r35",57:"r35",58:"r35"},{23:"r36",24:"r36",25:"r36",26:"r36",27:"r36",28:"r36",29:"r36",30:"r36",31:"r36",32:"r36",33:"r36",34:"r36",35:"r36",36:"r36",37:"r36",38:"r36",39:"r36",40:"r36",41:"r36",42:"r36",43:"r36",44:"r36",45:"r36",46:"r36",47:"r36",48:"r36",49:"r36",50:"r36",51:"r36",52:"r36",53:"r36",54:"r36",55:"r36",56:"r36",57:"r36",58:"r36"},{10:70,18:65,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{10:70,18:83,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{23:"r47",24:"r47",25:"r47",26:"r47",27:"r47",28:"r47",29:"r47",30:"r47",31:"r47",32:"r47",33:"r47",34:"r47",35:"r47",36:"r47",37:"r47",38:"r47",39:"r47",40:"r47",41:"r47",42:"r47",43:"r47",44:"r47",45:"r47",46:"r47",47:"r47",48:"r47",49:"r47",50:"r47",51:"r47",52:"r47",53:"r47",54:"r47",55:"r47",57:"r47"},{23:"r48",24:"r48",25:"r48",26:"r48",27:"r48",28:"r48",29:"r48",30:"r48",31:"r48",32:"r48",33:"r48",34:"r48",35:"r48",36:"r48",37:"r48",38:"r48",39:"r48",40:"r48",41:"r48",42:"r48",43:"r48",44:"r48",45:"r48",46:"r48",47:"r48",48:"r48",49:"r48",50:"r48",51:"r48",52:"r48",53:"r48",54:"r48",55:"r48",57:"r48"},{4:85,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:87,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:89,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r13",24:"r13",25:"r13",26:"r13",27:"r13",28:"r13",29:"r13",30:"r13",31:"r13",32:"r13",33:"r13",34:"r13",35:"r13",36:"r13",37:"r13",38:"r13",39:"r13",40:"r13",41:"r13",42:"r13",43:"r13",44:"r13",45:"r13",52:"r13",53:"r13",54:"r13",55:"r13",57:"r13"},{23:"r37",24:"r37",25:"r37",26:"r37",27:"r37",28:"r37",29:"r37",30:"r37",31:"r37",32:"r37",33:"r37",34:"r37",35:"r37",36:"r37",37:"r37",38:"r37",39:"r37",40:"r37",41:"r37",42:"r37",43:"r37",44:"r37",45:"r37",52:"r37",53:"r37",54:"r37",55:"r37",57:"r37"},{23:"r39",24:"r39",25:"r39",26:"r39",27:"r39",28:"r39",29:"r39",30:"r39",31:"r39",32:"r39",33:"r39",34:"r39",35:"r39",36:"r39",37:"r39",38:"r39",39:"r39",40:"r39",41:"r39",42:"r39",43:"r39",44:"r39",45:"r39",46:"s56",52:"r39",53:"r39",54:"r39",55:"r39",57:"r39"},{23:"r41",24:"r41",25:"r41",26:"r41",27:"r41",28:"r41",29:"r41",30:"r41",31:"r41",32:"r41",33:"r41",34:"r41",35:"r41",36:"r41",37:"r41",38:"r41",39:"r41",40:"r41",41:"r41",42:"r41",43:"r41",44:"r41",45:"r41",46:"r41",52:"r41",53:"r41",54:"r41",55:"r41",57:"r41"},{23:"r42",24:"r42",25:"r42",26:"r42",27:"r42",28:"r42",29:"r42",30:"r42",31:"r42",32:"r42",33:"r42",34:"r42",35:"r42",36:"r42",37:"r42",38:"r42",39:"r42",40:"r42",41:"r42",42:"r42",43:"r42",44:"r42",45:"r42",46:"r42",52:"r42",53:"r42",54:"r42",55:"r42",57:"r42"},{23:"r43",24:"r43",25:"r43",26:"r43",27:"r43",28:"r43",29:"r43",30:"r43",31:"r43",32:"r43",33:"r43",34:"r43",35:"r43",36:"r43",37:"r43",38:"r43",39:"r43",40:"r43",41:"r43",42:"r43",43:"r43",44:"r43",45:"r43",46:"r43",52:"r43",53:"r43",54:"r43",55:"r43",57:"r43"},{23:"r44",24:"r44",25:"r44",26:"r44",27:"r44",28:"r44",29:"r44",30:"r44",31:"r44",32:"r44",33:"r44",34:"r44",35:"r44",36:"r44",37:"r44",38:"r44",39:"r44",40:"r44",41:"r44",42:"r44",43:"r44",44:"r44",45:"r44",46:"r44",52:"r44",53:"r44",54:"r44",55:"r44",57:"r44"},{23:"r45",24:"r45",25:"r45",26:"r45",27:"r45",28:"r45",29:"r45",30:"r45",31:"r45",32:"r45",33:"r45",34:"r45",35:"r45",36:"r45",37:"r45",38:"r45",39:"r45",40:"r45",41:"r45",42:"r45",43:"r45",44:"r45",45:"r45",46:"r45",52:"r45",53:"r45",54:"r45",55:"r45",57:"r45"},{23:"r46",24:"r46",25:"r46",26:"r46",27:"r46",28:"r46",29:"r46",30:"r46",31:"r46",32:"r46",33:"r46",34:"r46",35:"r46",36:"r46",37:"r46",38:"r46",39:"r46",40:"r46",41:"r46",42:"r46",43:"r46",44:"r46",45:"r46",46:"r46",52:"r46",53:"r46",54:"r46",55:"r46",57:"r46"},{23:"r40",24:"r40",25:"r40",26:"r40",27:"r40",28:"r40",29:"r40",30:"r40",31:"r40",32:"r40",33:"r40",34:"r40",35:"r40",36:"r40",37:"r40",38:"r40",39:"r40",40:"r40",41:"r40",42:"r40",43:"r40",44:"r40",45:"r40",52:"r40",53:"r40",54:"r40",55:"r40",57:"r40"},{25:"s12",31:"s58"},{23:"r18",24:"r18",25:"r18",26:"r18",27:"r18",28:"r18",29:"r18",30:"r18",31:"r18",32:"r18",33:"r18",34:"r18",35:"r18",36:"r18",37:"r18",38:"r18",39:"r18",40:"r18",41:"r18",42:"r18",43:"r18",44:"r18",45:"r18",52:"r18",53:"r18",54:"r18",55:"r18",57:"r18"},{25:"s12",31:"s60"},{23:"r19",24:"r19",25:"r19",26:"r19",27:"r19",28:"r19",29:"r19",30:"r19",31:"r19",32:"r19",33:"r19",34:"r19",35:"r19",36:"r19",37:"r19",38:"r19",39:"r19",40:"r19",41:"r19",42:"r19",43:"r19",44:"r19",45:"r19",52:"r19",53:"r19",54:"r19",55:"r19",57:"r19"},{25:"s12",31:"s62"},{23:"r20",24:"r20",25:"r20",26:"r20",27:"r20",28:"r20",29:"r20",30:"r20",31:"r20",32:"r20",33:"r20",34:"r20",35:"r20",36:"r20",37:"r20",38:"r20",39:"r20",40:"r20",41:"r20",42:"r20",43:"r20",44:"r20",45:"r20",52:"r20",53:"r20",54:"r20",55:"r20",57:"r20"},{25:"s12",31:"s64"},{23:"r21",24:"r21",25:"r21",26:"r21",27:"r21",28:"r21",29:"r21",30:"r21",31:"r21",32:"r21",33:"r21",34:"r21",35:"r21",36:"r21",37:"r21",38:"r21",39:"r21",40:"r21",41:"r21",42:"r21",43:"r21",44:"r21",45:"r21",52:"r21",53:"r21",54:"r21",55:"r21",57:"r21"},{56:"s72"},{56:"r55"},{10:70,20:73,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r56",58:"s74"},{24:"r62",28:"r62",35:"r62",36:"r62",37:"r62",38:"r62",39:"r62",40:"r62",41:"r62",42:"r62",43:"r62",44:"r62",45:"r62",56:"r62",58:"r62"},{24:"r63",28:"r63",35:"r63",36:"r63",37:"r63",38:"r63",39:"r63",40:"r63",41:"r63",42:"r63",43:"r63",44:"r63",45:"r63",56:"r63",58:"r63"},{24:"r64",28:"r64",35:"r64",36:"r64",37:"r64",38:"r64",39:"r64",40:"r64",41:"r64",42:"r64",43:"r64",44:"r64",45:"r64",56:"r64",58:"r64"},{24:"r65",28:"r65",35:"r65",36:"r65",37:"r65",38:"r65",39:"r65",40:"r65",41:"r65",42:"r65",43:"r65",44:"r65",45:"r65",56:"r65",58:"r65"},{23:"r52",24:"r52",25:"r52",26:"r52",27:"r52",28:"r52",29:"r52",30:"r52",31:"r52",32:"r52",33:"r52",34:"r52",35:"r52",36:"r52",37:"r52",38:"r52",39:"r52",40:"r52",41:"r52",42:"r52",43:"r52",44:"r52",45:"r52",46:"r52",47:"r52",48:"r52",49:"r52",50:"r52",51:"r52",52:"r52",53:"r52",54:"r52",55:"r52",57:"r52"},{56:"r57"},{10:70,21:77,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{56:"r59"},{10:70,20:79,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r63",58:"s80"},{10:70,18:78,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r58"},{56:"r60"},{10:70,21:81,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{10:70,18:82,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r61"},{56:"s84"},{23:"r53",24:"r53",25:"r53",26:"r53",27:"r53",28:"r53",29:"r53",30:"r53",31:"r53",32:"r53",33:"r53",34:"r53",35:"r53",36:"r53",37:"r53",38:"r53",39:"r53",40:"r53",41:"r53",42:"r53",43:"r53",44:"r53",45:"r53",46:"r53",47:"r53",48:"r53",49:"r53",50:"r53",51:"r53",52:"r53",53:"r53",54:"r53",55:"r53",57:"r53"},{25:"s12",31:"s86"},{23:"r49",24:"r49",25:"r49",26:"r49",27:"r49",28:"r49",29:"r49",30:"r49",31:"r49",32:"r49",33:"r49",34:"r49",35:"r49",36:"r49",37:"r49",38:"r49",39:"r49",40:"r49",41:"r49",42:"r49",43:"r49",44:"r49",45:"r49",46:"r49",47:"r49",48:"r49",49:"r49",50:"r49",51:"r49",52:"r49",53:"r49",54:"r49",55:"r49",57:"r49"},{25:"s12",31:"s88"},{23:"r50",24:"r50",25:"r50",26:"r50",27:"r50",28:"r50",29:"r50",30:"r50",31:"r50",32:"r50",33:"r50",34:"r50",35:"r50",36:"r50",37:"r50",38:"r50",39:"r50",40:"r50",41:"r50",42:"r50",43:"r50",44:"r50",45:"r50",46:"r50",47:"r50",48:"r50",49:"r50",50:"r50",51:"r50",52:"r50",53:"r50",54:"r50",55:"r50",57:"r50"},{25:"s12",31:"s90"},{23:"r51",24:"r51",25:"r51",26:"r51",27:"r51",28:"r51",29:"r51",30:"r51",31:"r51",32:"r51",33:"r51",34:"r51",35:"r51",36:"r51",37:"r51",38:"r51",39:"r51",40:"r51",41:"r51",42:"r51",43:"r51",44:"r51",45:"r51",46:"r51",47:"r51",48:"r51",49:"r51",50:"r51",51:"r51",52:"r51",53:"r51",54:"r51",55:"r51",57:"r51"}],l=[],c=void 0,f=[[/^#[^\n]+/,function(){}],[/^\s+/,function(){}],[/^-/,function(){return"DASH"}],[/^\//,function(){return"CHAR"}],[/^#/,function(){return"CHAR"}],[/^\|/,function(){return"CHAR"}],[/^\./,function(){return"CHAR"}],[/^\{/,function(){return"CHAR"}],[/^\{\d+\}/,function(){return"RANGE_EXACT"}],[/^\{\d+,\}/,function(){return"RANGE_OPEN"}],[/^\{\d+,\d+\}/,function(){return"RANGE_CLOSED"}],[/^\\k<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u09fc\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0af9\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60-\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0-\u0ce1\u0cf1-\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e46\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\u08e1\u08e3-\u0963\u0966-\u096f\u0971-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7-\u09c8\u09cb-\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e3\u09e6-\u09f1\u09fc\u09fe\u0a01-\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0af9-\u0aff\u0b01-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b5c-\u0b5d\u0b5f-\u0b63\u0b66-\u0b6f\u0b71\u0b82-\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bef\u0c00-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1-\u0cf2\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d44\u0d46-\u0d48\u0d4a-\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d66-\u0d6f\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0e01-\u0e3a\u0e40-\u0e4e\u0e50-\u0e59\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f18-\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1049\u1050-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u135f\u1369-\u1371\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772-\u1773\u1780-\u17d3\u17d7\u17dc-\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1878\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u1a00-\u1a1b\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa7\u1ab0-\u1abd\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\u1dfb-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u203f-\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\ua9e0-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa60-\uaa76\uaa7a-\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabea\uabec-\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe0f\ufe20-\ufe2f\ufe33-\ufe34\ufe4d-\ufe4f\ufe70-\ufe74\ufe76-\ufefc\uff10-\uff19\uff21-\uff3a\uff3f\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\uddfd\ude80-\ude9c\udea0-\uded0\udee0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udca0-\udca9\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00-\ude03\ude05-\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude38-\ude3a\ude3f\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee6\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\uddcc\uddd0-\uddda\udddc\ude00-\ude11\ude13-\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udeea\udef0-\udef9\udf00-\udf03\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\ude60-\ude69\uded0-\udeed\udef0-\udef4\udf00-\udf36\udf40-\udf43\udf50-\udf59\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9d-\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb\udfce-\udfff]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23-\udc24\udc26-\udc2a\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\udd50-\udd59]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return _(r.slice(3,-1),this.getCurrentState()),"NAMED_GROUP_REF"}],[/^\\b/,function(){return"ESC_b"}],[/^\\B/,function(){return"ESC_B"}],[/^\\c[a-zA-Z]/,function(){return"CTRL_CH"}],[/^\\0\d{1,2}/,function(){return"OCT_CODE"}],[/^\\0/,function(){return"DEC_CODE"}],[/^\\\d{1,3}/,function(){return"DEC_CODE"}],[/^\\u[dD][89abAB][0-9a-fA-F]{2}\\u[dD][c-fC-F][0-9a-fA-F]{2}/,function(){return"U_CODE_SURROGATE"}],[/^\\u\{[0-9a-fA-F]{1,}\}/,function(){return"U_CODE"}],[/^\\u[0-9a-fA-F]{4}/,function(){return"U_CODE"}],[/^\\[pP]\{\w+(?:=\w+)?\}/,function(){return"U_PROP_VALUE_EXP"}],[/^\\x[0-9a-fA-F]{2}/,function(){return"HEX_CODE"}],[/^\\[tnrdDsSwWvf]/,function(){return"META_CHAR"}],[/^\\\//,function(){return"ESC_CHAR"}],[/^\\[ #]/,function(){return"ESC_CHAR"}],[/^\\[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/,function(){return"ESC_CHAR"}],[/^\\[^*?+\[()\\|]/,function(){var e=this.getCurrentState();if("u_class"===e&&"\\-"===r);else if("u"===e||"xu"===e||"u_class"===e)throw SyntaxError("invalid Unicode escape "+r);return"ESC_CHAR"}],[/^\(/,function(){return"CHAR"}],[/^\)/,function(){return"CHAR"}],[/^\(\?=/,function(){return"POS_LA_ASSERT"}],[/^\(\?!/,function(){return"NEG_LA_ASSERT"}],[/^\(\?<=/,function(){return"POS_LB_ASSERT"}],[/^\(\?<!/,function(){return"NEG_LB_ASSERT"}],[/^\(\?:/,function(){return"NON_CAPTURE_GROUP"}],[/^\(\?<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u09fc\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0af9\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60-\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0-\u0ce1\u0cf1-\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e46\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\u08e1\u08e3-\u0963\u0966-\u096f\u0971-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7-\u09c8\u09cb-\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e3\u09e6-\u09f1\u09fc\u09fe\u0a01-\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0af9-\u0aff\u0b01-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b5c-\u0b5d\u0b5f-\u0b63\u0b66-\u0b6f\u0b71\u0b82-\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bef\u0c00-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1-\u0cf2\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d44\u0d46-\u0d48\u0d4a-\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d66-\u0d6f\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0e01-\u0e3a\u0e40-\u0e4e\u0e50-\u0e59\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f18-\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1049\u1050-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u135f\u1369-\u1371\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772-\u1773\u1780-\u17d3\u17d7\u17dc-\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1878\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u1a00-\u1a1b\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa7\u1ab0-\u1abd\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\u1dfb-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u203f-\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\ua9e0-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa60-\uaa76\uaa7a-\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabea\uabec-\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe0f\ufe20-\ufe2f\ufe33-\ufe34\ufe4d-\ufe4f\ufe70-\ufe74\ufe76-\ufefc\uff10-\uff19\uff21-\uff3a\uff3f\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\uddfd\ude80-\ude9c\udea0-\uded0\udee0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udca0-\udca9\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00-\ude03\ude05-\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude38-\ude3a\ude3f\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee6\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\uddcc\uddd0-\uddda\udddc\ude00-\ude11\ude13-\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udeea\udef0-\udef9\udf00-\udf03\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\ude60-\ude69\uded0-\udeed\udef0-\udef4\udf00-\udf36\udf40-\udf43\udf50-\udf59\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9d-\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb\udfce-\udfff]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23-\udc24\udc26-\udc2a\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\udd50-\udd59]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return _(r=r.slice(3,-1),this.getCurrentState()),"NAMED_CAPTURE_GROUP"}],[/^\(/,function(){return"L_PAREN"}],[/^\)/,function(){return"R_PAREN"}],[/^[*?+[^$]/,function(){return"CHAR"}],[/^\\\]/,function(){return"ESC_CHAR"}],[/^\]/,function(){return this.popState(),"R_BRACKET"}],[/^\^/,function(){return"BOS"}],[/^\$/,function(){return"EOS"}],[/^\*/,function(){return"STAR"}],[/^\?/,function(){return"Q_MARK"}],[/^\+/,function(){return"PLUS"}],[/^\|/,function(){return"BAR"}],[/^\./,function(){return"ANY"}],[/^\//,function(){return"SLASH"}],[/^[^*?+\[()\\|]/,function(){return"CHAR"}],[/^\[\^/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"NEG_CLASS"}],[/^\[/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"L_BRACKET"}]],p={INITIAL:[8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u:[8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],xu:[0,1,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],x:[0,1,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u_class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]},h={type:"$",value:""};c={initString:function(e){return this._string=e,this._cursor=0,this._states=["INITIAL"],this._tokensQueue=[],this._currentLine=1,this._currentColumn=0,this._currentLineBeginOffset=0,this._tokenStartOffset=0,this._tokenEndOffset=0,this._tokenStartLine=1,this._tokenEndLine=1,this._tokenStartColumn=0,this._tokenEndColumn=0,this},getStates:function(){return this._states},getCurrentState:function(){return this._states[this._states.length-1]},pushState:function(e){this._states.push(e)},begin:function(e){this.pushState(e)},popState:function(){return this._states.length>1?this._states.pop():this._states[0]},getNextToken:function(){if(this._tokensQueue.length>0)return this.onToken(this._toToken(this._tokensQueue.shift()));if(!this.hasMoreTokens())return this.onToken(h);for(var e=this._string.slice(this._cursor),n=p[this.getCurrentState()],u=0;u<n.length;u++){var a=f[n[u]],i=this._match(e,a[0]);if(""===e&&""===i&&this._cursor++,null!==i){(r=i).length;var o=a[1].call(this);if(!o)return this.getNextToken();if(Array.isArray(o)){var s,d=o.slice(1);o=o[0],d.length>0&&(s=this._tokensQueue).unshift.apply(s,t(d))}return this.onToken(this._toToken(o,r))}}if(this.isEOF())return this._cursor++,h;this.throwUnexpectedToken(e[0],this._currentLine,this._currentColumn)},throwUnexpectedToken:function(e,t,r){var n=this._string.split("\n")[t-1],u="";throw n&&(u="\n\n"+n+"\n"+" ".repeat(r)+"^\n"),SyntaxError(u+'Unexpected token: "'+e+'" '+("at "+t)+":"+r+".")},getCursor:function(){return this._cursor},getCurrentLine:function(){return this._currentLine},getCurrentColumn:function(){return this._currentColumn},_captureLocation:function(e){var t=/\n/g;this._tokenStartOffset=this._cursor,this._tokenStartLine=this._currentLine,this._tokenStartColumn=this._tokenStartOffset-this._currentLineBeginOffset;for(var r=void 0;null!==(r=t.exec(e));)this._currentLine++,this._currentLineBeginOffset=this._tokenStartOffset+r.index+1;this._tokenEndOffset=this._cursor+e.length,this._tokenEndLine=this._currentLine,this._tokenEndColumn=this._currentColumn=this._tokenEndOffset-this._currentLineBeginOffset},_toToken:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return{type:e,value:t,startOffset:this._tokenStartOffset,endOffset:this._tokenEndOffset,startLine:this._tokenStartLine,endLine:this._tokenEndLine,startColumn:this._tokenStartColumn,endColumn:this._tokenEndColumn}},isEOF:function(){return this._cursor===this._string.length},hasMoreTokens:function(){return this._cursor<=this._string.length},_match:function(e,t){var r=e.match(t);return r?(this._captureLocation(r[0]),this._cursor+=r[0].length,r[0]):null},onToken:function(e){return e}},n.lexer=c,n.tokenizer=c,n.options={captureLocations:!0};var m={setOptions:function(e){return n.options=e,this},getOptions:function(){return n.options},parse:function(e,i){if(!c)throw Error("Tokenizer instance wasn't specified.");c.initString(e);var f=n.options;i&&(n.options=Object.assign({},n.options,i)),m.onParseBegin(e,c,n.options),l.length=0,l.push(0);var p=c.getNextToken(),h=null;do{p||(n.options=f,I());var g=l[l.length-1],y=s[p.type];d[g].hasOwnProperty(y)||(n.options=f,P(p));var b=d[g][y];if("s"===b[0]){var v=null;n.options.captureLocations&&(v={startOffset:p.startOffset,endOffset:p.endOffset,startLine:p.startLine,endLine:p.endLine,startColumn:p.startColumn,endColumn:p.endColumn}),h=this.onShift(p),l.push({symbol:s[h.type],semanticValue:h.value,loc:v},Number(b.slice(1))),p=c.getNextToken()}else if("r"===b[0]){var x=o[b.slice(1)],E="function"==typeof x[2],C=E?[]:null,A=E&&n.options.captureLocations?[]:null;if(0!==x[1])for(var D=x[1];D-- >0;){l.pop();var S=l.pop();E&&(C.unshift(S.semanticValue),A&&A.unshift(S.loc))}var _={symbol:x[0]};if(E){r=h?h.value:null,h&&h.value.length;var w=null!==A?C.concat(A):C;x[2].apply(x,t(w)),_.semanticValue=u,A&&(_.loc=a)}var T=l[l.length-1],F=x[0];l.push(_,d[T][F])}else if("acc"===b){l.pop();var k=l.pop();if((1!==l.length||0!==l[0]||c.hasMoreTokens())&&(n.options=f,P(p)),k.hasOwnProperty("semanticValue"))return n.options=f,m.onParseEnd(k.semanticValue),k.semanticValue;return m.onParseEnd(),n.options=f,!0}}while(c.hasMoreTokens()||l.length>1)},setTokenizer:function(e){return c=e,m},getTokenizer:function(){return c},onParseBegin:function(e,t,r){},onParseEnd:function(e){},onShift:function(e){return e}},g=0,y={},b="";function v(e){var t=e.match(/\d+/g).map(Number);if(Number.isFinite(t[1])&&t[1]<t[0])throw SyntaxError("Numbers out of order in "+e+" quantifier");return t}function x(e,t){if("control"===e.kind||"control"===t.kind||!isNaN(e.codePoint)&&!isNaN(t.codePoint)&&e.codePoint>t.codePoint)throw SyntaxError("Range "+e.value+"-"+t.value+" out of order in character class")}m.onParseBegin=function(e,t){b=e,g=0,y={};var r=e.lastIndexOf("/"),n=e.slice(r);n.includes("x")&&n.includes("u")?t.pushState("xu"):(n.includes("x")&&t.pushState("x"),n.includes("u")&&t.pushState("u"))},m.onShift=function(e){return("L_PAREN"===e.type||"NAMED_CAPTURE_GROUP"===e.type)&&(e.value=new String(e.value),e.value.groupNumber=++g),e};var E=function(){if(ni)return na;ni=1;var e={General_Category:"gc",Script:"sc",Script_Extensions:"scx"},t=s(e),r={ASCII:"ASCII",ASCII_Hex_Digit:"AHex",Alphabetic:"Alpha",Any:"Any",Assigned:"Assigned",Bidi_Control:"Bidi_C",Bidi_Mirrored:"Bidi_M",Case_Ignorable:"CI",Cased:"Cased",Changes_When_Casefolded:"CWCF",Changes_When_Casemapped:"CWCM",Changes_When_Lowercased:"CWL",Changes_When_NFKC_Casefolded:"CWKCF",Changes_When_Titlecased:"CWT",Changes_When_Uppercased:"CWU",Dash:"Dash",Default_Ignorable_Code_Point:"DI",Deprecated:"Dep",Diacritic:"Dia",Emoji:"Emoji",Emoji_Component:"Emoji_Component",Emoji_Modifier:"Emoji_Modifier",Emoji_Modifier_Base:"Emoji_Modifier_Base",Emoji_Presentation:"Emoji_Presentation",Extended_Pictographic:"Extended_Pictographic",Extender:"Ext",Grapheme_Base:"Gr_Base",Grapheme_Extend:"Gr_Ext",Hex_Digit:"Hex",IDS_Binary_Operator:"IDSB",IDS_Trinary_Operator:"IDST",ID_Continue:"IDC",ID_Start:"IDS",Ideographic:"Ideo",Join_Control:"Join_C",Logical_Order_Exception:"LOE",Lowercase:"Lower",Math:"Math",Noncharacter_Code_Point:"NChar",Pattern_Syntax:"Pat_Syn",Pattern_White_Space:"Pat_WS",Quotation_Mark:"QMark",Radical:"Radical",Regional_Indicator:"RI",Sentence_Terminal:"STerm",Soft_Dotted:"SD",Terminal_Punctuation:"Term",Unified_Ideograph:"UIdeo",Uppercase:"Upper",Variation_Selector:"VS",White_Space:"space",XID_Continue:"XIDC",XID_Start:"XIDS"},n=s(r),u={Cased_Letter:"LC",Close_Punctuation:"Pe",Connector_Punctuation:"Pc",Control:["Cc","cntrl"],Currency_Symbol:"Sc",Dash_Punctuation:"Pd",Decimal_Number:["Nd","digit"],Enclosing_Mark:"Me",Final_Punctuation:"Pf",Format:"Cf",Initial_Punctuation:"Pi",Letter:"L",Letter_Number:"Nl",Line_Separator:"Zl",Lowercase_Letter:"Ll",Mark:["M","Combining_Mark"],Math_Symbol:"Sm",Modifier_Letter:"Lm",Modifier_Symbol:"Sk",Nonspacing_Mark:"Mn",Number:"N",Open_Punctuation:"Ps",Other:"C",Other_Letter:"Lo",Other_Number:"No",Other_Punctuation:"Po",Other_Symbol:"So",Paragraph_Separator:"Zp",Private_Use:"Co",Punctuation:["P","punct"],Separator:"Z",Space_Separator:"Zs",Spacing_Mark:"Mc",Surrogate:"Cs",Symbol:"S",Titlecase_Letter:"Lt",Unassigned:"Cn",Uppercase_Letter:"Lu"},a=s(u),i={Adlam:"Adlm",Ahom:"Ahom",Anatolian_Hieroglyphs:"Hluw",Arabic:"Arab",Armenian:"Armn",Avestan:"Avst",Balinese:"Bali",Bamum:"Bamu",Bassa_Vah:"Bass",Batak:"Batk",Bengali:"Beng",Bhaiksuki:"Bhks",Bopomofo:"Bopo",Brahmi:"Brah",Braille:"Brai",Buginese:"Bugi",Buhid:"Buhd",Canadian_Aboriginal:"Cans",Carian:"Cari",Caucasian_Albanian:"Aghb",Chakma:"Cakm",Cham:"Cham",Cherokee:"Cher",Common:"Zyyy",Coptic:["Copt","Qaac"],Cuneiform:"Xsux",Cypriot:"Cprt",Cyrillic:"Cyrl",Deseret:"Dsrt",Devanagari:"Deva",Dogra:"Dogr",Duployan:"Dupl",Egyptian_Hieroglyphs:"Egyp",Elbasan:"Elba",Ethiopic:"Ethi",Georgian:"Geor",Glagolitic:"Glag",Gothic:"Goth",Grantha:"Gran",Greek:"Grek",Gujarati:"Gujr",Gunjala_Gondi:"Gong",Gurmukhi:"Guru",Han:"Hani",Hangul:"Hang",Hanifi_Rohingya:"Rohg",Hanunoo:"Hano",Hatran:"Hatr",Hebrew:"Hebr",Hiragana:"Hira",Imperial_Aramaic:"Armi",Inherited:["Zinh","Qaai"],Inscriptional_Pahlavi:"Phli",Inscriptional_Parthian:"Prti",Javanese:"Java",Kaithi:"Kthi",Kannada:"Knda",Katakana:"Kana",Kayah_Li:"Kali",Kharoshthi:"Khar",Khmer:"Khmr",Khojki:"Khoj",Khudawadi:"Sind",Lao:"Laoo",Latin:"Latn",Lepcha:"Lepc",Limbu:"Limb",Linear_A:"Lina",Linear_B:"Linb",Lisu:"Lisu",Lycian:"Lyci",Lydian:"Lydi",Mahajani:"Mahj",Makasar:"Maka",Malayalam:"Mlym",Mandaic:"Mand",Manichaean:"Mani",Marchen:"Marc",Medefaidrin:"Medf",Masaram_Gondi:"Gonm",Meetei_Mayek:"Mtei",Mende_Kikakui:"Mend",Meroitic_Cursive:"Merc",Meroitic_Hieroglyphs:"Mero",Miao:"Plrd",Modi:"Modi",Mongolian:"Mong",Mro:"Mroo",Multani:"Mult",Myanmar:"Mymr",Nabataean:"Nbat",New_Tai_Lue:"Talu",Newa:"Newa",Nko:"Nkoo",Nushu:"Nshu",Ogham:"Ogam",Ol_Chiki:"Olck",Old_Hungarian:"Hung",Old_Italic:"Ital",Old_North_Arabian:"Narb",Old_Permic:"Perm",Old_Persian:"Xpeo",Old_Sogdian:"Sogo",Old_South_Arabian:"Sarb",Old_Turkic:"Orkh",Oriya:"Orya",Osage:"Osge",Osmanya:"Osma",Pahawh_Hmong:"Hmng",Palmyrene:"Palm",Pau_Cin_Hau:"Pauc",Phags_Pa:"Phag",Phoenician:"Phnx",Psalter_Pahlavi:"Phlp",Rejang:"Rjng",Runic:"Runr",Samaritan:"Samr",Saurashtra:"Saur",Sharada:"Shrd",Shavian:"Shaw",Siddham:"Sidd",SignWriting:"Sgnw",Sinhala:"Sinh",Sogdian:"Sogd",Sora_Sompeng:"Sora",Soyombo:"Soyo",Sundanese:"Sund",Syloti_Nagri:"Sylo",Syriac:"Syrc",Tagalog:"Tglg",Tagbanwa:"Tagb",Tai_Le:"Tale",Tai_Tham:"Lana",Tai_Viet:"Tavt",Takri:"Takr",Tamil:"Taml",Tangut:"Tang",Telugu:"Telu",Thaana:"Thaa",Thai:"Thai",Tibetan:"Tibt",Tifinagh:"Tfng",Tirhuta:"Tirh",Ugaritic:"Ugar",Vai:"Vaii",Warang_Citi:"Wara",Yi:"Yiii",Zanabazar_Square:"Zanb"},o=s(i);function s(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(Array.isArray(n))for(var u=0;u<n.length;u++)t[n[u]]=r;else t[n]=r}return t}function d(e){return u.hasOwnProperty(e)||a.hasOwnProperty(e)}function l(e){return i.hasOwnProperty(e)||o.hasOwnProperty(e)}return na={isAlias:function(e){return t.hasOwnProperty(e)||n.hasOwnProperty(e)},isValidName:function(u){return e.hasOwnProperty(u)||t.hasOwnProperty(u)||r.hasOwnProperty(u)||n.hasOwnProperty(u)},isValidValue:function(e,t){return"General_Category"===e||"gc"==e?d(t):!!("Script"===e||"Script_Extensions"===e||"sc"===e||"scx"===e)&&l(t)},isGeneralCategoryValue:d,isScriptCategoryValue:l,isBinaryPropertyName:function(e){return r.hasOwnProperty(e)||n.hasOwnProperty(e)},getCanonicalName:function(e){return t.hasOwnProperty(e)?t[e]:n.hasOwnProperty(e)?n[e]:null},getCanonicalValue:function(e){return a.hasOwnProperty(e)?a[e]:o.hasOwnProperty(e)?o[e]:n.hasOwnProperty(e)?n[e]:null},NON_BINARY_PROP_NAMES_TO_ALIASES:e,NON_BINARY_ALIASES_TO_PROP_NAMES:t,BINARY_PROP_NAMES_TO_ALIASES:r,BINARY_ALIASES_TO_PROP_NAMES:n,GENERAL_CATEGORY_VALUE_TO_ALIASES:u,GENERAL_CATEGORY_VALUE_ALIASES_TO_VALUES:a,SCRIPT_VALUE_TO_ALIASES:i,SCRIPT_VALUE_ALIASES_TO_VALUE:o}}();function C(t,r,n){var u=void 0,a=void 0;switch(r){case"decimal":u=String.fromCodePoint(a=Number(t.slice(1)));break;case"oct":u=String.fromCodePoint(a=parseInt(t.slice(1),8));break;case"hex":case"unicode":if(t.lastIndexOf("\\u")>0){var i=e(t.split("\\u").slice(1),2),o=i[0],s=i[1];u=String.fromCodePoint(a=((o=parseInt(o,16))-55296)*1024+((s=parseInt(s,16))-56320)+65536)}else{if((a=parseInt(t.slice(2).replace("{",""),16))>1114111)throw SyntaxError("Bad character escape sequence: "+t);u=String.fromCodePoint(a)}break;case"meta":switch(t){case"\\t":a=(u=" ").codePointAt(0);break;case"\\n":a=(u="\n").codePointAt(0);break;case"\\r":a=(u="\r").codePointAt(0);break;case"\\v":a=(u="\v").codePointAt(0);break;case"\\f":a=(u="\f").codePointAt(0);break;case"\\b":a=(u="\b").codePointAt(0);case"\\0":u="\0",a=0;case".":u=".",a=NaN;break;default:a=NaN}break;case"simple":a=(u=t).codePointAt(0)}return F({type:"Char",value:t,kind:r,symbol:u,codePoint:a},n)}var A=/^\\u[0-9a-fA-F]{4}/,D=/^\\u\{[0-9a-fA-F]{1,}\}/,S=/\\u\{[0-9a-fA-F]{1,}\}/;function _(e,t){if(S.test(e)&&!("u"===t||"xu"===t||"u_class"===t))throw SyntaxError('invalid group Unicode name "'+e+'", use `u` flag.');return e}var w=/\\u(?:([dD][89aAbB][0-9a-fA-F]{2})\\u([dD][c-fC-F][0-9a-fA-F]{2})|([dD][89aAbB][0-9a-fA-F]{2})|([dD][c-fC-F][0-9a-fA-F]{2})|([0-9a-ce-fA-CE-F][0-9a-fA-F]{3}|[dD][0-7][0-9a-fA-F]{2})|\{(0*(?:[0-9a-fA-F]{1,5}|10[0-9a-fA-F]{4}))\})/;function T(e){return e.replace(RegExp(w,"g"),function(e,t,r,n,u,a,i){return t?String.fromCodePoint(parseInt(t,16),parseInt(r,16)):n?String.fromCodePoint(parseInt(n,16)):u?String.fromCodePoint(parseInt(u,16)):a?String.fromCodePoint(parseInt(a,16)):i?String.fromCodePoint(parseInt(i,16)):e})}function F(e,t){return n.options.captureLocations&&(e.loc={source:b.slice(t.startOffset,t.endOffset),start:{line:t.startLine,column:t.startColumn,offset:t.startOffset},end:{line:t.endLine,column:t.endColumn,offset:t.endOffset}}),e}function k(e,t){return n.options.captureLocations?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:null}function P(e){"$"===e.type&&I(),c.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function I(){!function(e){throw SyntaxError(e)}("Unexpected end of input.")}return no=m}(),t=e.parse.bind(e);return e.parse=function(e,r){return t(""+e,r)},e.setOptions({captureLocations:!1}),nd=e}function dE(){if(nf)return nc;nf=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),t="expressions",r="expression",n=function(){function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),this.node=e,this.parentPath=t,this.parent=t?t.node:null,this.property=r,this.index=u}return e(n,[{key:"_enforceProp",value:function(e){if(!this.node.hasOwnProperty(e))throw Error("Node of type "+this.node.type+" doesn't have \""+e+'" collection.')}},{key:"setChild",value:function(e){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=void 0;return null!=u?(a||(a=t),this._enforceProp(a),this.node[a][u]=e,i=n.getForNode(e,this,a,u)):(a||(a=r),this._enforceProp(a),this.node[a]=e,i=n.getForNode(e,this,a,null)),i}},{key:"appendChild",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;r||(r=t),this._enforceProp(r);var n=this.node[r].length;return this.setChild(e,n,r)}},{key:"insertChildAt",value:function(e,r){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;this._enforceProp(u),this.node[u].splice(r,0,e),r<=n.getTraversingIndex()&&n.updateTraversingIndex(1),this._rebuildIndex(this.node,u)}},{key:"remove",value:function(){if(!this.isRemoved()&&(n.registry.delete(this.node),this.node=null,this.parent)){if(null!==this.index){this.parent[this.property].splice(this.index,1),this.index<=n.getTraversingIndex()&&n.updateTraversingIndex(-1),this._rebuildIndex(this.parent,this.property),this.index=null,this.property=null;return}delete this.parent[this.property],this.property=null}}},{key:"_rebuildIndex",value:function(e,t){for(var r=n.getForNode(e),u=0;u<e[t].length;u++)n.getForNode(e[t][u],r,t,u).index=u}},{key:"isRemoved",value:function(){return null===this.node}},{key:"replace",value:function(e){return(n.registry.delete(this.node),this.node=e,this.parent)?(null!==this.index?this.parent[this.property][this.index]=e:this.parent[this.property]=e,n.getForNode(e,this.parentPath,this.property,this.index)):null}},{key:"update",value:function(e){Object.assign(this.node,e)}},{key:"getParent",value:function(){return this.parentPath}},{key:"getChild",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.node.expressions?n.getForNode(this.node.expressions[e],this,t,e):this.node.expression&&0==e?n.getForNode(this.node.expression,this,r):null}},{key:"hasEqualSource",value:function(e){return JSON.stringify(this.node,u)===JSON.stringify(e.node,u)}},{key:"jsonEncode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.format,r=e.useLoc;return JSON.stringify(this.node,r?null:u,t)}},{key:"getPreviousSibling",value:function(){return this.parent&&null!=this.index?n.getForNode(this.parent[this.property][this.index-1],n.getForNode(this.parent),this.property,this.index-1):null}},{key:"getNextSibling",value:function(){return this.parent&&null!=this.index?n.getForNode(this.parent[this.property][this.index+1],n.getForNode(this.parent),this.property,this.index+1):null}}],[{key:"getForNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(!e)return null;n.registry.has(e)||n.registry.set(e,new n(e,t,r,-1==u?null:u));var a=n.registry.get(e);return null!==t&&(a.parentPath=t,a.parent=a.parentPath.node),null!==r&&(a.property=r),u>=0&&(a.index=u),a}},{key:"initRegistry",value:function(){n.registry||(n.registry=new Map),n.registry.clear()}},{key:"updateTraversingIndex",value:function(e){return n.traversingIndexStack[n.traversingIndexStack.length-1]+=e}},{key:"getTraversingIndex",value:function(){return n.traversingIndexStack[n.traversingIndexStack.length-1]}}]),n}();function u(e,t){if("loc"!==e)return t}return n.initRegistry(),n.traversingIndexStack=[],nc=n}function dC(){if(nh)return np;nh=1;var e=dE();return np={traverse:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{asNodes:!1};function u(t,r,n,u){var a=e.getForNode(r);return e.getForNode(t,a,n,u)}Array.isArray(r)||(r=[r]),r=r.filter(function(e){return"function"!=typeof e.shouldRun||e.shouldRun(t)}),e.initRegistry(),r.forEach(function(e){"function"==typeof e.init&&e.init(t)}),function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.pre,u=r.post,a=r.skipProperty;!function t(r,i,o,s){if(r&&"string"==typeof r.type){var d=void 0;if(n&&(d=n(r,i,o,s)),!1!==d){for(var l in i&&i[o]&&(r=isNaN(s)?i[o]:i[o][s]),r)if(r.hasOwnProperty(l)){if(a?a(l,r):"$"===l[0])continue;var c=r[l];if(Array.isArray(c)){var f=0;for(e.traversingIndexStack.push(f);f<c.length;)t(c[f],r,l,f),f=e.updateTraversingIndex(1);e.traversingIndexStack.pop()}else t(c,r,l)}}u&&u(r,i,o,s)}}(t,null)}(t,{pre:function(e,t,a,i){var o=void 0;n.asNodes||(o=u(e,t,a,i));var s=!0,d=!1,l=void 0;try{for(var c,f=r[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var p=c.value;if("function"==typeof p["*"]){if(o){if(!o.isRemoved()){var h=p["*"](o);if(!1===h)return!1}}else p["*"](e,t,a,i)}var m=void 0;if("function"==typeof p[e.type]?m=p[e.type]:"object"==typeof p[e.type]&&"function"==typeof p[e.type].pre&&(m=p[e.type].pre),m){if(o){if(!o.isRemoved()){var g=m.call(p,o);if(!1===g)return!1}}else m.call(p,e,t,a,i)}}}catch(e){d=!0,l=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw l}}},post:function(e,t,a,i){if(e){var o=void 0;n.asNodes||(o=u(e,t,a,i));var s=!0,d=!1,l=void 0;try{for(var c,f=r[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var p=c.value,h=void 0;if("object"==typeof p[e.type]&&"function"==typeof p[e.type].post&&(h=p[e.type].post),h){if(o){if(!o.isRemoved()){var m=h.call(p,o);if(!1===m)return!1}}else h.call(p,e,t,a,i)}}}catch(e){d=!0,l=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw l}}}},skipProperty:function(e){return"loc"===e}})}}}function dA(){if(ng)return nm;ng=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),t=dv(),r=dx(),n=dC(),u=function(){function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),this._ast=e,this._source=null,this._string=null,this._regexp=null,this._extra=t}return e(r,[{key:"getAST",value:function(){return this._ast}},{key:"setExtra",value:function(e){this._extra=e}},{key:"getExtra",value:function(){return this._extra}},{key:"toRegExp",value:function(){return this._regexp||(this._regexp=new RegExp(this.getSource(),this._ast.flags)),this._regexp}},{key:"getSource",value:function(){return this._source||(this._source=t.generate(this._ast.body)),this._source}},{key:"getFlags",value:function(){return this._ast.flags}},{key:"toString",value:function(){return this._string||(this._string=t.generate(this._ast)),this._string}}]),r}();return nm={TransformResult:u,transform:function(e,t){var a=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(a=r.parse(e,{captureLocations:!0})),n.traverse(a,t),new u(a)}}}function dD(){return nk?nF:(nk=1,nF={disjunctionToList:function e(t){if("Disjunction"!==t.type)throw TypeError('Expected "Disjunction" node, got "'+t.type+'"');var r=[];return t.left&&"Disjunction"===t.left.type?r.push.apply(r,(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r})(e(t.left)).concat([t.right])):r.push(t.left,t.right),r},listToDisjunction:function(e){return e.reduce(function(e,t){return{type:"Disjunction",left:e,right:t}})},increaseQuantifierByOne:function(e){"*"===e.kind?e.kind="+":"+"===e.kind?(e.kind="Range",e.from=2,delete e.to):"?"===e.kind?(e.kind="Range",e.from=1,e.to=2):"Range"===e.kind&&(e.from+=1,e.to&&(e.to+=1))}})}function dS(){return n8?n5:(n8=1,n5={EPSILON:"ε",EPSILON_CLOSURE:"ε*"})}function d_(){if(n9)return n6;n9=1;var e=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")},t=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),r=dS(),n=r.EPSILON,u=r.EPSILON_CLOSURE;return n6=function(){function r(e,t){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),this.in=e,this.out=t}return t(r,[{key:"matches",value:function(e){return this.in.matches(e)}},{key:"getAlphabet",value:function(){if(!this._alphabet){this._alphabet=new Set;var e=this.getTransitionTable();for(var t in e){var r=e[t];for(var n in r)n!==u&&this._alphabet.add(n)}}return this._alphabet}},{key:"getAcceptingStates",value:function(){return this._acceptingStates||this.getTransitionTable(),this._acceptingStates}},{key:"getAcceptingStateNumbers",value:function(){if(!this._acceptingStateNumbers){this._acceptingStateNumbers=new Set;var e=!0,t=!1,r=void 0;try{for(var n,u=this.getAcceptingStates()[Symbol.iterator]();!(e=(n=u.next()).done);e=!0){var a=n.value;this._acceptingStateNumbers.add(a.number)}}catch(e){t=!0,r=e}finally{try{!e&&u.return&&u.return()}finally{if(t)throw r}}}return this._acceptingStateNumbers}},{key:"getTransitionTable",value:function(){var t=this;if(!this._transitionTable){this._transitionTable={},this._acceptingStates=new Set;var r=new Set,a=new Set;(function n(u){if(!r.has(u)){r.add(u),u.number=r.size,t._transitionTable[u.number]={},u.accepting&&t._acceptingStates.add(u);var i=u.getTransitions(),o=!0,s=!1,d=void 0;try{for(var l,c=i[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var f=l.value,p=e(f,2),h=p[0],m=p[1],g=[];a.add(h);var y=!0,b=!1,v=void 0;try{for(var x,E=m[Symbol.iterator]();!(y=(x=E.next()).done);y=!0){var C=x.value;n(C),g.push(C.number)}}catch(e){b=!0,v=e}finally{try{!y&&E.return&&E.return()}finally{if(b)throw v}}t._transitionTable[u.number][h]=g}}catch(e){s=!0,d=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw d}}}})(this.in),r.forEach(function(e){delete t._transitionTable[e.number][n],t._transitionTable[e.number][u]=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}(e.getEpsilonClosure())).map(function(e){return e.number})})}return this._transitionTable}}]),r}()}function dw(){if(us)return uo;us=1;var e=d_(),t=function(){if(ui)return ua;ui=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),t=function(){if(uu)return un;uu=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();return un=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.accepting;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this._transitions=new Map,this.accepting=void 0!==r&&r}return e(t,[{key:"getTransitions",value:function(){return this._transitions}},{key:"addTransition",value:function(e,t){return this.getTransitionsOnSymbol(e).add(t),this}},{key:"getTransitionsOnSymbol",value:function(e){var t=this._transitions.get(e);return t||(t=new Set,this._transitions.set(e,t)),t}}]),t}()}(),r=dS().EPSILON;return ua=function(t){function n(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),e(n,[{key:"matches",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(t.has(this))return!1;if(t.add(this),0===e.length){if(this.accepting)return!0;var n=!0,u=!1,a=void 0;try{for(var i,o=this.getTransitionsOnSymbol(r)[Symbol.iterator]();!(n=(i=o.next()).done);n=!0)if(i.value.matches("",t))return!0}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return!1}var s=e[0],d=e.slice(1),l=this.getTransitionsOnSymbol(s),c=!0,f=!1,p=void 0;try{for(var h,m=l[Symbol.iterator]();!(c=(h=m.next()).done);c=!0)if(h.value.matches(d))return!0}catch(e){f=!0,p=e}finally{try{!c&&m.return&&m.return()}finally{if(f)throw p}}var g=!0,y=!1,b=void 0;try{for(var v,x=this.getTransitionsOnSymbol(r)[Symbol.iterator]();!(g=(v=x.next()).done);g=!0)if(v.value.matches(e,t))return!0}catch(e){y=!0,b=e}finally{try{!g&&x.return&&x.return()}finally{if(y)throw b}}return!1}},{key:"getEpsilonClosure",value:function(){var e=this;return this._epsilonClosure||function(){var t=e.getTransitionsOnSymbol(r),n=e._epsilonClosure=new Set;n.add(e);var u=!0,a=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(u=(o=s.next()).done);u=!0){var d=o.value;n.has(d)||(n.add(d),d.getEpsilonClosure().forEach(function(e){return n.add(e)}))}}catch(e){a=!0,i=e}finally{try{!u&&s.return&&s.return()}finally{if(a)throw i}}}(),this._epsilonClosure}}]),n}(t)}(),r=dS().EPSILON;function n(r){var n=new t,u=new t({accepting:!0});return new e(n.addTransition(r,u),u)}return uo={alt:function(t){for(var n=arguments.length,u=Array(n>1?n-1:0),a=1;a<n;a++)u[a-1]=arguments[a];var i=!0,o=!1,s=void 0;try{for(var d,l=u[Symbol.iterator]();!(i=(d=l.next()).done);i=!0){var c,f=d.value;(c=t).out.accepting=!1,f.out.accepting=!0,c.out.addTransition(r,f.in),t=new e(c.in,f.out)}}catch(e){o=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw s}}return t},char:n,e:function(){return n(r)},or:function(n){for(var u=arguments.length,a=Array(u>1?u-1:0),i=1;i<u;i++)a[i-1]=arguments[i];var o=!0,s=!1,d=void 0;try{for(var l,c=a[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var f=l.value;n=function(n,u){var a=new t,i=new t;return a.addTransition(r,n.in),a.addTransition(r,u.in),i.accepting=!0,n.out.accepting=!1,u.out.accepting=!1,n.out.addTransition(r,i),u.out.addTransition(r,i),new e(a,i)}(n,f)}}catch(e){s=!0,d=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw d}}return n},rep:function(e){return e.in.addTransition(r,e.out),e.out.addTransition(r,e.in),e},repExplicit:function(n){var u=new t,a=new t({accepting:!0});return u.addTransition(r,n.in),u.addTransition(r,a),n.out.accepting=!1,n.out.addTransition(r,a),a.addTransition(r,n.in),new e(u,a)},plusRep:function(e){return e.out.addTransition(r,e.in),e},questionRep:function(e){return e.in.addTransition(r,e.out),e}}}var dT=/*@__PURE__*/oe(/*@__PURE__*/function(){if(ux)return uv;ux=1;let e=function(){if(r4)return r3;r4=1;let e=function(){if(r0)return rX;r0=1;var e=/[|\\{}()[\]^$+*?.]/g;return rX=function(t){if("string"!=typeof t)throw TypeError("Expected a string");return t.replace(e,"\\$&")}}(),t=r2?r1:(r2=1,r1=new Map([["[0-9]",{value:"\\d"}],["[^0-9]",{value:"\\D"}],["[a-zA-Z0-9_]",{value:"\\w"}],["[a-zA-Z_0-9]",{value:"\\w"}],["[a-z0-9A-Z_]",{value:"\\w"}],["[a-z0-9_A-Z]",{value:"\\w"}],["[a-z_A-Z0-9]",{value:"\\w"}],["[a-z_0-9A-Z]",{value:"\\w"}],["[A-Za-z0-9_]",{value:"\\w"}],["[A-Za-z_0-9]",{value:"\\w"}],["[A-Z0-9a-z_]",{value:"\\w"}],["[A-Z0-9_a-z]",{value:"\\w"}],["[A-Z_a-z0-9]",{value:"\\w"}],["[A-Z_0-9a-z]",{value:"\\w"}],["[0-9a-zA-Z_]",{value:"\\w"}],["[0-9a-z_A-Z]",{value:"\\w"}],["[0-9A-Za-z_]",{value:"\\w"}],["[0-9A-Z_a-z]",{value:"\\w"}],["[0-9_a-zA-Z]",{value:"\\w"}],["[0-9_A-Za-z]",{value:"\\w"}],["[_a-zA-Z0-9]",{value:"\\w"}],["[_a-z0-9A-Z]",{value:"\\w"}],["[_A-Za-z0-9]",{value:"\\w"}],["[_A-Z0-9a-z]",{value:"\\w"}],["[_0-9a-zA-Z]",{value:"\\w"}],["[_0-9A-Za-z]",{value:"\\w"}],["[a-zA-Z\\d_]",{value:"\\w"}],["[a-zA-Z_\\d]",{value:"\\w"}],["[a-z\\dA-Z_]",{value:"\\w"}],["[a-z\\d_A-Z]",{value:"\\w"}],["[a-z_A-Z\\d]",{value:"\\w"}],["[a-z_\\dA-Z]",{value:"\\w"}],["[A-Za-z\\d_]",{value:"\\w"}],["[A-Za-z_\\d]",{value:"\\w"}],["[A-Z\\da-z_]",{value:"\\w"}],["[A-Z\\d_a-z]",{value:"\\w"}],["[A-Z_a-z\\d]",{value:"\\w"}],["[A-Z_\\da-z]",{value:"\\w"}],["[\\da-zA-Z_]",{value:"\\w"}],["[\\da-z_A-Z]",{value:"\\w"}],["[\\dA-Za-z_]",{value:"\\w"}],["[\\dA-Z_a-z]",{value:"\\w"}],["[\\d_a-zA-Z]",{value:"\\w"}],["[\\d_A-Za-z]",{value:"\\w"}],["[_a-zA-Z\\d]",{value:"\\w"}],["[_a-z\\dA-Z]",{value:"\\w"}],["[_A-Za-z\\d]",{value:"\\w"}],["[_A-Z\\da-z]",{value:"\\w"}],["[_\\da-zA-Z]",{value:"\\w"}],["[_\\dA-Za-z]",{value:"\\w"}],["[^a-zA-Z0-9_]",{value:"\\W"}],["[^a-zA-Z_0-9]",{value:"\\W"}],["[^a-z0-9A-Z_]",{value:"\\W"}],["[^a-z0-9_A-Z]",{value:"\\W"}],["[^a-z_A-Z0-9]",{value:"\\W"}],["[^a-z_0-9A-Z]",{value:"\\W"}],["[^A-Za-z0-9_]",{value:"\\W"}],["[^A-Za-z_0-9]",{value:"\\W"}],["[^A-Z0-9a-z_]",{value:"\\W"}],["[^A-Z0-9_a-z]",{value:"\\W"}],["[^A-Z_a-z0-9]",{value:"\\W"}],["[^A-Z_0-9a-z]",{value:"\\W"}],["[^0-9a-zA-Z_]",{value:"\\W"}],["[^0-9a-z_A-Z]",{value:"\\W"}],["[^0-9A-Za-z_]",{value:"\\W"}],["[^0-9A-Z_a-z]",{value:"\\W"}],["[^0-9_a-zA-Z]",{value:"\\W"}],["[^0-9_A-Za-z]",{value:"\\W"}],["[^_a-zA-Z0-9]",{value:"\\W"}],["[^_a-z0-9A-Z]",{value:"\\W"}],["[^_A-Za-z0-9]",{value:"\\W"}],["[^_A-Z0-9a-z]",{value:"\\W"}],["[^_0-9a-zA-Z]",{value:"\\W"}],["[^_0-9A-Za-z]",{value:"\\W"}],["[^a-zA-Z\\d_]",{value:"\\W"}],["[^a-zA-Z_\\d]",{value:"\\W"}],["[^a-z\\dA-Z_]",{value:"\\W"}],["[^a-z\\d_A-Z]",{value:"\\W"}],["[^a-z_A-Z\\d]",{value:"\\W"}],["[^a-z_\\dA-Z]",{value:"\\W"}],["[^A-Za-z\\d_]",{value:"\\W"}],["[^A-Za-z_\\d]",{value:"\\W"}],["[^A-Z\\da-z_]",{value:"\\W"}],["[^A-Z\\d_a-z]",{value:"\\W"}],["[^A-Z_a-z\\d]",{value:"\\W"}],["[^A-Z_\\da-z]",{value:"\\W"}],["[^\\da-zA-Z_]",{value:"\\W"}],["[^\\da-z_A-Z]",{value:"\\W"}],["[^\\dA-Za-z_]",{value:"\\W"}],["[^\\dA-Z_a-z]",{value:"\\W"}],["[^\\d_a-zA-Z]",{value:"\\W"}],["[^\\d_A-Za-z]",{value:"\\W"}],["[^_a-zA-Z\\d]",{value:"\\W"}],["[^_a-z\\dA-Z]",{value:"\\W"}],["[^_A-Za-z\\d]",{value:"\\W"}],["[^_A-Z\\da-z]",{value:"\\W"}],["[^_\\da-zA-Z]",{value:"\\W"}],["[^_\\dA-Za-z]",{value:"\\W"}],["[a-z0-9_]",{value:"\\w",flags:"i"}],["[a-z_0-9]",{value:"\\w",flags:"i"}],["[0-9a-z_]",{value:"\\w",flags:"i"}],["[0-9_a-z]",{value:"\\w",flags:"i"}],["[_a-z0-9]",{value:"\\w",flags:"i"}],["[_0-9a-z]",{value:"\\w",flags:"i"}],["[^a-z0-9_]",{value:"\\W",flags:"i"}],["[a-z\\d_]",{value:"\\w",flags:"i"}],["[a-z_\\d]",{value:"\\w",flags:"i"}],["[\\da-z_]",{value:"\\w",flags:"i"}],["[\\d_a-z]",{value:"\\w",flags:"i"}],["[_a-z\\d]",{value:"\\w",flags:"i"}],["[_\\da-z]",{value:"\\w",flags:"i"}],["[^a-z0-9_]",{value:"\\W",flags:"i"}],["[^a-z_0-9]",{value:"\\W",flags:"i"}],["[^0-9a-z_]",{value:"\\W",flags:"i"}],["[^0-9_a-z]",{value:"\\W",flags:"i"}],["[^_a-z0-9]",{value:"\\W",flags:"i"}],["[^_0-9a-z]",{value:"\\W",flags:"i"}],["[^a-z\\d_]",{value:"\\W",flags:"i"}],["[^a-z_\\d]",{value:"\\W",flags:"i"}],["[^\\da-z_]",{value:"\\W",flags:"i"}],["[^\\d_a-z]",{value:"\\W",flags:"i"}],["[^_a-z\\d]",{value:"\\W",flags:"i"}],["[^_\\da-z]",{value:"\\W",flags:"i"}]])),r=(e,t)=>!t||t.split("").every(t=>e.includes(t));return r3=(n,u)=>{if(u=u||"","string"!=typeof n)throw TypeError(`Expected regexp to be of type \`string\`, got \`${typeof n}\``);if("string"!=typeof u)throw TypeError(`Expected flags to be of type \`string\`, got \`${typeof u}\``);for(let a of t){let t=a[0],i=a[1];r(u,i.flags)&&(n=n.replace(RegExp(e(t),"g"),i.value))}return n}}(),{optimize:t}=ub?uy:(ub=1,uy=function(){if(ug)return um;ug=1;var e=function(){if(nb)return ny;nb=1;var e=nr?nt:(nr=1,nt={dotAll:r8?r5:(r8=1,r5={_hasUFlag:!1,shouldRun:function(e){return!!e.flags.includes("s")&&(e.flags=e.flags.replace("s",""),this._hasUFlag=e.flags.includes("u"),!0)},Char:function(e){var t=e.node;if("meta"===t.kind&&"."===t.value){var r="\\uFFFF",n="";this._hasUFlag&&(r="\\u{10FFFF}",n="\uDBFF\uDFFF"),e.replace({type:"CharacterClass",expressions:[{type:"ClassRange",from:{type:"Char",value:"\\0",kind:"decimal",symbol:"\0"},to:{type:"Char",value:r,kind:"unicode",symbol:n}}]})}}}),namedCapturingGroups:r9?r6:(r9=1,r6={_groupNames:{},init:function(){this._groupNames={}},getExtra:function(){return this._groupNames},Group:function(e){var t=e.node;t.name&&(this._groupNames[t.name]=t.number,delete t.name,delete t.nameRaw)},Backreference:function(e){var t=e.node;"name"===t.kind&&(t.kind="number",t.reference=t.number,delete t.referenceRaw)}}),xFlag:ne?r7:(ne=1,r7={RegExp:function(e){var t=e.node;t.flags.includes("x")&&(t.flags=t.flags.replace("x",""))}})}),t=dA();return ny={transform:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],u=n.length>0?n:Object.keys(e),a=void 0,i={};return u.forEach(function(n){if(!e.hasOwnProperty(n))throw Error("Unknown compat-transform: "+n+". Available transforms are: "+Object.keys(e).join(", "));var u=e[n];r=(a=t.transform(r,u)).getAST(),"function"==typeof u.getExtra&&(i[n]=u.getExtra())}),a.setExtra(i),a}}}(),t=dv(),r=function(){if(n4)return n3;n4=1;var e=nx?nv:(nx=1,nv=function e(t){if(null===t||"object"!=typeof t)return t;var r=void 0;for(var n in r=Array.isArray(t)?[]:{},t)r[n]=e(t[n]);return r}),t=dx(),r=dA(),n=n2?n1:(n2=1,n1=new Map([["charSurrogatePairToSingleUnicode",nC?nE:(nC=1,nE={shouldRun:function(e){return e.flags.includes("u")},Char:function(e){var t=e.node;"unicode"!==t.kind||!t.isSurrogatePair||isNaN(t.codePoint)||(t.value="\\u{"+t.codePoint.toString(16)+"}",delete t.isSurrogatePair)}})],["charCodeToSimpleChar",nD?nA:(nD=1,nA={Char:function(e){var t=e.node,r=e.parent;if(!isNaN(t.codePoint)&&"simple"!==t.kind&&("ClassRange"!==r.type||(n=r.from,u=r.to,n.codePoint>=48&&n.codePoint<=57&&u.codePoint>=48&&u.codePoint<=57||n.codePoint>=65&&n.codePoint<=90&&u.codePoint>=65&&u.codePoint<=90||n.codePoint>=97&&n.codePoint<=122&&u.codePoint>=97&&u.codePoint<=122))&&(a=t.codePoint)>=32&&a<=126){var n,u,a,i,o=String.fromCodePoint(t.codePoint),s={type:"Char",kind:"simple",value:o,symbol:o,codePoint:t.codePoint};("ClassRange"===(i=r.type)||"CharacterClass"===i?/[\]\\^-]/.test(o):/[*[()+?^$./\\|{}]/.test(o))&&(s.escaped=!0),e.replace(s)}}})],["charCaseInsensitiveLowerCaseTransform",n_?nS:(n_=1,nS={_AZClassRanges:null,_hasUFlag:!1,init:function(e){this._AZClassRanges=new Set,this._hasUFlag=e.flags.includes("u")},shouldRun:function(e){return e.flags.includes("i")},Char:function(e){var t,r,n=e.node,u=e.parent;if(!isNaN(n.codePoint)&&(this._hasUFlag||!(n.codePoint>=4096))){if("ClassRange"===u.type){if(!this._AZClassRanges.has(u)&&(t=u.from,r=u.to,!(t.codePoint>=65)||!(t.codePoint<=90)||!(r.codePoint>=65)||!(r.codePoint<=90)))return;this._AZClassRanges.add(u)}var a=n.symbol.toLowerCase();a!==n.symbol&&(n.value=function(e,t){var r=e.codePointAt(0);if("decimal"===t.kind)return"\\"+r;if("oct"===t.kind)return"\\0"+r.toString(8);if("hex"===t.kind)return"\\x"+r.toString(16);if("unicode"===t.kind){if(t.isSurrogatePair){var n={lead:(Math.floor((r-65536)/1024)+55296).toString(16),trail:((r-65536)%1024+56320).toString(16)},u=n.lead,a=n.trail;return"\\u"+"0".repeat(4-u.length)+u+"\\u"+"0".repeat(4-a.length)+a}if(t.value.includes("{"))return"\\u{"+r.toString(16)+"}";var i=r.toString(16);return"\\u"+"0".repeat(4-i.length)+i}return e}(a,n),n.symbol=a,n.codePoint=a.codePointAt(0))}}})],["charClassRemoveDuplicates",nT?nw:(nT=1,nw={CharacterClass:function(e){for(var t=e.node,r={},n=0;n<t.expressions.length;n++){var u=e.getChild(n),a=u.jsonEncode();r.hasOwnProperty(a)&&(u.remove(),n--),r[a]=!0}}})],["quantifiersMerge",function(){if(nI)return nP;nI=1;var e=dD().increaseQuantifierByOne;function t(e){return e.greedy&&("+"===e.kind||"*"===e.kind||"Range"===e.kind&&!e.to)}function r(e){var t=void 0,r=void 0;return"*"===e.kind?t=0:"+"===e.kind?t=1:"?"===e.kind?(t=0,r=1):(t=e.from,e.to&&(r=e.to)),{from:t,to:r}}return nP={Repetition:function(n){var u=n.node;if("Alternative"===n.parent.type&&n.index){var a=n.getPreviousSibling();if(a){if("Repetition"===a.node.type){if(!a.getChild().hasEqualSource(n.getChild()))return;var i=r(a.node.quantifier),o=i.from,s=i.to,d=r(u.quantifier),l=d.from,c=d.to;if(a.node.quantifier.greedy!==u.quantifier.greedy&&!t(a.node.quantifier)&&!t(u.quantifier))return;u.quantifier.kind="Range",u.quantifier.from=o+l,s&&c?u.quantifier.to=s+c:delete u.quantifier.to,(t(a.node.quantifier)||t(u.quantifier))&&(u.quantifier.greedy=!0),a.remove()}else{if(!a.hasEqualSource(n.getChild()))return;e(u.quantifier),a.remove()}}}}}}()],["quantifierRangeToSymbol",nj?nB:(nj=1,nB={Quantifier:function(e){if("Range"===e.node.kind){var t,r,n;0!==(t=e.node).from||t.to||(t.kind="*",delete t.from),1!==(r=e.node).from||r.to||(r.kind="+",delete r.from),1===(n=e.node).from&&1===n.to&&e.parentPath.replace(e.parentPath.node.expression)}}})],["charClassClassrangesToChars",nL?nO:(nL=1,nO={ClassRange:function(e){var t=e.node;t.from.codePoint===t.to.codePoint?e.replace(t.from):t.from.codePoint===t.to.codePoint-1&&(e.getParent().insertChildAt(t.to,e.index+1),e.replace(t.from))}})],["charClassToMeta",function(){if(nR)return nN;function e(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}nR=1,nN={_hasIFlag:!1,_hasUFlag:!1,init:function(e){this._hasIFlag=e.flags.includes("i"),this._hasUFlag=e.flags.includes("u")},CharacterClass:function(e){var r,a,i,o,s,d,l,c,f;(function(e){e.node.expressions.forEach(function(t,r){"ClassRange"===t.type&&"0"===t.from.value&&"9"===t.to.value&&e.getChild(r).replace({type:"Char",value:"\\d",kind:"meta"})})})(e),r=this._hasIFlag,a=this._hasUFlag,i=e.node,o=null,s=null,d=null,l=null,c=null,f=null,i.expressions.forEach(function(t,i){n(t,"\\d")?o=e.getChild(i):"ClassRange"===t.type&&"a"===t.from.value&&"z"===t.to.value?s=e.getChild(i):"ClassRange"===t.type&&"A"===t.from.value&&"Z"===t.to.value?d=e.getChild(i):"Char"===t.type&&"_"===t.value&&"simple"===t.kind?l=e.getChild(i):r&&a&&u(t,383)?c=e.getChild(i):r&&a&&u(t,8490)&&(f=e.getChild(i))}),o&&(s&&d||r&&(s||d))&&l&&(!a||!r||c&&f)&&(o.replace({type:"Char",value:"\\w",kind:"meta"}),s&&s.remove(),d&&d.remove(),l.remove(),c&&c.remove(),f&&f.remove()),function(e){var r=e.node;if(!(r.expressions.length<t.length)&&t.every(function(e){return r.expressions.some(function(t){return e(t)})})){var u=r.expressions.find(function(e){return n(e,"\\n")});u.value="\\s",u.symbol=void 0,u.codePoint=NaN,r.expressions.map(function(r,n){return t.some(function(e){return e(r)})?e.getChild(n):void 0}).filter(Boolean).forEach(function(e){return e.remove()})}}(e)}};var t=[function(e){return r(e," ")}].concat(e(["\\f","\\n","\\r","\\t","\\v"].map(function(e){return function(t){return n(t,e)}})),e([160,5760,8232,8233,8239,8287,12288,65279].map(function(e){return function(t){return u(t,e)}})),[function(e){return"ClassRange"===e.type&&u(e.from,8192)&&u(e.to,8202)}]);function r(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"simple";return"Char"===e.type&&e.value===t&&e.kind===r}function n(e,t){return r(e,t,"meta")}function u(e,t){return"Char"===e.type&&"unicode"===e.kind&&e.codePoint===t}return nN}()],["charClassToSingleChar",n$?nM:(n$=1,nM={CharacterClass:function(e){var t=e.node;if(1===t.expressions.length&&function(e){var t=e.parent,r=e.index;if("Alternative"!==t.type)return!0;var n=t.expressions[r-1];return null==n||("Backreference"!==n.type||"number"!==n.kind)&&("Char"!==n.type||"decimal"!==n.kind)}(e)&&"Char"===(r=t.expressions[0]).type&&"\\b"!==r.value){var r,n,u,a,i=t.expressions[0],o=i.value,s=i.kind,d=i.escaped;if(t.negative){if(n=o,!/^\\[dwsDWS]$/.test(n))return;u=o,o=/[dws]/.test(u)?u.toUpperCase():u.toLowerCase()}e.replace({type:"Char",value:o,kind:s,escaped:d||(a=o,/[*[()+?$./{}|]/.test(a))})}}})],["charEscapeUnescape",function(){if(nz)return nU;function e(e,t,r){for(var n=e,u=(r?n>=0:n<t.expressions.length)&&t.expressions[n];u&&"Char"===u.type&&"simple"===u.kind&&!u.escaped&&/\d/.test(u.value);)r?n--:n++,u=(r?n>=0:n<t.expressions.length)&&t.expressions[n];return Math.abs(e-n)}function t(e,t){return e&&"Char"===e.type&&"simple"===e.kind&&!e.escaped&&e.value===t}return nz=1,nU={_hasXFlag:!1,init:function(e){this._hasXFlag=e.flags.includes("x")},Char:function(r){var n,u,a,i,o=r.node;o.escaped&&(n=this._hasXFlag,u=r.node.value,a=r.index,("CharacterClass"!==(i=r.parent).type&&"ClassRange"!==i.type?"{"===u?function(r,n){if(null==r)return!1;var u=e(r+1,n),a=r+u+1,i=a<n.expressions.length&&n.expressions[a];if(u){if(t(i,"}"))return!0;if(t(i,","))return u=e(a+1,n),t(i=(a=a+u+1)<n.expressions.length&&n.expressions[a],"}")}return!1}(a,i):"}"===u?function(r,n){if(null==r)return!1;var u=e(r-1,n,!0),a=r-u-1,i=a>=0&&n.expressions[a];return!!(u&&t(i,"{"))||!!t(i,",")&&(u=e(a-1,n,!0),i=(a=a-u-1)<n.expressions.length&&n.expressions[a],u&&t(i,"{"))}(a,i):!!(n&&/[ #]/.test(u))||/[*[()+?^$./\\|]/.test(u):"^"===u?0===a&&!i.negative:"-"===u||/[\]\\]/.test(u))||delete o.escaped)}}}()],["charClassClassrangesMerge",function(){if(nq)return nV;function e(e,u){var a=t(e),i=t(u);if(a===i){if("ClassRange"===e.type&&"ClassRange"!==u.type)return -1;if("ClassRange"===u.type&&"ClassRange"!==e.type)return 1;if("ClassRange"===e.type&&"ClassRange"===u.type)return t(e.to)-t(u.to);if(r(e)&&r(u)||n(e)&&n(u))return e.value<u.value?-1:1}return a-i}function t(e){return"Char"===e.type?"-"===e.value||"control"===e.kind?1/0:"meta"===e.kind&&isNaN(e.codePoint)?-1:e.codePoint:e.from.codePoint}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"Char"===e.type&&"meta"===e.kind&&(t?e.value===t:/^\\[dws]$/i.test(e.value))}function n(e){return"Char"===e.type&&"control"===e.kind}function u(e){return 9===e.codePoint||10===e.codePoint||11===e.codePoint||12===e.codePoint||13===e.codePoint||32===e.codePoint||160===e.codePoint||5760===e.codePoint||e.codePoint>=8192&&e.codePoint<=8202||8232===e.codePoint||8233===e.codePoint||8239===e.codePoint||8287===e.codePoint||12288===e.codePoint||65279===e.codePoint}function a(e){return e.codePoint>=48&&e.codePoint<=57}function i(e,t){return a(e)||e.codePoint>=65&&e.codePoint<=90||e.codePoint>=97&&e.codePoint<=122||"_"===e.value||t&&(383===e.codePoint||8490===e.codePoint)}function o(e){return e&&"Char"===e.type&&!isNaN(e.codePoint)&&(i(e,!1)||"unicode"===e.kind||"hex"===e.kind||"oct"===e.kind||"decimal"===e.kind)}return nq=1,nV={_hasIUFlags:!1,init:function(e){this._hasIUFlags=e.flags.includes("i")&&e.flags.includes("u")},CharacterClass:function(t){var n=t.node.expressions,s=[];n.forEach(function(e){r(e)&&s.push(e.value)}),n.sort(e);for(var d=0;d<n.length;d++){var l,c=n[d];if(function(e,t,n){for(var o=0;o<t.length;o++)if(function e(t,n,o){return"ClassRange"===t.type?e(t.from,n,o)&&e(t.to,n,o):!!("\\S"===n&&(r(t,"\\w")||r(t,"\\d"))||"\\D"===n&&(r(t,"\\W")||r(t,"\\s"))||"\\w"===n&&r(t,"\\d")||"\\W"===n&&r(t,"\\s"))||!("Char"!==t.type||isNaN(t.codePoint))&&("\\s"===n?u(t):"\\S"===n?!u(t):"\\d"===n?a(t):"\\D"===n?!a(t):"\\w"===n?i(t,o):"\\W"===n&&!i(t,o))}(e,t[o],n))return!0;return!1}(c,s,this._hasIUFlags)||function(e,t){if(t&&"ClassRange"===t.type){if(function e(t,r){return!("Char"===t.type&&isNaN(t.codePoint))&&("ClassRange"===t.type?e(t.from,r)&&e(t.to,r):t.codePoint>=r.from.codePoint&&t.codePoint<=r.to.codePoint)}(e,t))return!0;if(o(e)&&t.to.codePoint===e.codePoint-1)return t.to=e,!0;if("ClassRange"===e.type&&e.from.codePoint<=t.to.codePoint+1&&e.to.codePoint>=t.from.codePoint-1)return e.from.codePoint<t.from.codePoint&&(t.from=e.from),e.to.codePoint>t.to.codePoint&&(t.to=e.to),!0}return!1}(c,n[d-1])||(l=n[d+1])&&"ClassRange"===l.type&&o(c)&&l.from.codePoint===c.codePoint+1&&(l.from=c,1))n.splice(d,1),d--;else{var f=function(e,t,r){if(!o(e))return 0;for(var n=0;t>0;){var u=r[t],a=r[t-1];if(o(a)&&a.codePoint===u.codePoint-1)n++,t--;else break}return n>1?(r[t]={type:"ClassRange",from:r[t],to:e},n):0}(c,d,n);n.splice(d-f+1,f),d-=f}}}}}()],["disjunctionRemoveDuplicates",function(){if(nG)return nW;nG=1;var e=dE(),t=dD(),r=t.disjunctionToList,n=t.listToDisjunction;return nW={Disjunction:function(t){var u=t.node,a={},i=r(u).filter(function(t){var r=t?e.getForNode(t).jsonEncode():"null";return!a.hasOwnProperty(r)&&(a[r]=t,!0)});t.replace(n(i))}}}()],["groupSingleCharsToCharClass",function(){if(nH)return nZ;nH=1;var e={RegExp:function(e,t){e.node.body=t},Group:function(e,t){var r=e.node;r.capturing?r.expression=t:e.replace(t)}};return nZ={Disjunction:function(t){var r=t.node,n=t.parent;if(e[n.type]){var u=new Map;if(function e(t,r){if(!t)return!1;var n=t.type;if("Disjunction"===n){var u=t.left,a=t.right;return e(u,r)&&e(a,r)}if("Char"===n){if("meta"===t.kind&&"."===t.symbol)return!1;var i=t.value;return r.set(i,t),!0}return"CharacterClass"===n&&!t.negative&&t.expressions.every(function(t){return e(t,r)})}(r,u)&&u.size){var a={type:"CharacterClass",expressions:Array.from(u.keys()).sort().map(function(e){return u.get(e)})};e[n.type](t.getParent(),a)}}}}}()],["removeEmptyGroup",nY?nK:(nY=1,nK={Group:function(e){var t=e.node,r=e.parent,n=e.getChild();t.capturing||n||("Repetition"===r.type?e.getParent().replace(t):"RegExp"!==r.type&&e.remove())}})],["ungroup",function(){if(nQ)return nJ;function e(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return nQ=1,nJ={Group:function(t){var r=t.node,n=t.parent,u=t.getChild();if(!r.capturing&&u&&function(e){var t=e.parent,r=e.index;if("Alternative"!==t.type)return!0;var n=t.expressions[r-1];return null==n||("Backreference"!==n.type||"number"!==n.kind)&&("Char"!==n.type||"decimal"!==n.kind)}(t)&&("Disjunction"!==u.node.type||"RegExp"===n.type)&&("Repetition"!==n.type||"Char"===u.node.type||"CharacterClass"===u.node.type)){if("Alternative"===u.node.type){var a=t.getParent();"Alternative"===a.node.type&&a.replace({type:"Alternative",expressions:[].concat(e(n.expressions.slice(0,t.index)),e(u.node.expressions),e(n.expressions.slice(t.index+1)))})}else t.replace(u.node)}}}}()],["combineRepeatingPatterns",function(){if(n0)return nX;function e(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}n0=1;var t=dE(),r=dD().increaseQuantifierByOne;return nX={Alternative:function(n){for(var u=n.node,a=1;a<u.expressions.length;){var i=n.getChild(a);if((a=Math.max(1,function(r,n,u){for(var a=r.node,i=Math.ceil(u/2),o=0;o<i;){var s=u-2*o-1,d=void 0,l=void 0;if(0===o?(d=n,l=r.getChild(s)):(d=t.getForNode({type:"Alternative",expressions:[].concat(e(a.expressions.slice(u-o,u)),[n.node])}),l=t.getForNode({type:"Alternative",expressions:[].concat(e(a.expressions.slice(s,u-o)))})),d.hasEqualSource(l)){for(var c=0;c<2*o+1;c++)r.getChild(s).remove();return n.replace({type:"Repetition",expression:0===o&&"Repetition"!==d.node.type?d.node:{type:"Group",capturing:!1,expression:d.node},quantifier:{type:"Quantifier",kind:"Range",from:2,to:2,greedy:!0}}),s}o++}return u}(n,i,a)))>=u.expressions.length||(i=n.getChild(a),(a=Math.max(1,function(n,u,a){for(var i=n.node,o=0;o<a;){var s=n.getChild(o);if("Repetition"===s.node.type&&s.node.quantifier.greedy){var d=s.getChild(),l=void 0;if("Group"!==d.node.type||d.node.capturing||(d=d.getChild()),o+1===a?"Group"!==(l=u).node.type||l.node.capturing||(l=l.getChild()):l=t.getForNode({type:"Alternative",expressions:[].concat(e(i.expressions.slice(o+1,a+1)))}),d.hasEqualSource(l)){for(var c=o;c<a;c++)n.getChild(o+1).remove();return r(s.node.quantifier),o}}o++}return a}(n,i,a)))>=u.expressions.length))break;i=n.getChild(a),a=Math.max(1,function(n,u,a){var i=n.node;if("Repetition"===u.node.type&&u.node.quantifier.greedy){var o=u.getChild(),s=void 0;"Group"!==o.node.type||o.node.capturing||(o=o.getChild());var d=void 0;if("Alternative"===o.node.type?(d=o.node.expressions.length,s=t.getForNode({type:"Alternative",expressions:[].concat(e(i.expressions.slice(a-d,a)))})):(d=1,"Group"!==(s=n.getChild(a-1)).node.type||s.node.capturing||(s=s.getChild())),s.hasEqualSource(o)){for(var l=a-d;l<a;l++)n.getChild(a-d).remove();return r(u.node.quantifier),a-d}}return a}(n,i,a)),a++}}}}()]]));return n3={optimize:function(u){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=a.whitelist,o=void 0===i?[]:i,s=a.blacklist,d=void 0===s?[]:s,l=(o.length>0?o:Array.from(n.keys())).filter(function(e){return!d.includes(e)}),c=u;u instanceof RegExp&&(u=""+u),"string"==typeof u&&(c=t.parse(u));var f=new r.TransformResult(c),p=void 0;do p=f.toString(),c=e(f.getAST()),l.forEach(function(t){if(!n.has(t))throw Error("Unknown optimization-transform: "+t+". Available transforms are: "+Array.from(n.keys()).join(", "));var u=n.get(t),a=r.transform(c,u);a.toString()!==f.toString()&&(a.toString().length<=f.toString().length?f=a:c=e(f.getAST()))});while(f.toString()!==p);return f}}}(),n=dx(),u=dA(),a=dC(),i=function(){if(uf)return uc;uf=1;var e=d_(),t=function(){if(ur)return ut;ur=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function t(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var r=function(){if(ue)return n7;ue=1;var e=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function t(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var r=null;return n7={minimize:function(n){var u=n.getTransitionTable(),a=Object.keys(u),i=n.getAlphabet(),o=n.getAcceptingStateNumbers();r={};var s=new Set;a.forEach(function(e){e=Number(e),o.has(e)?r[e]=o:(s.add(e),r[e]=s)});var d=[[s,o].filter(function(e){return e.size>0})],l=void 0,c=void 0;for(l=d[d.length-1],c=d[d.length-2];!function(e,r){if(!r||e.length!==r.length)return!1;for(var n=0;n<e.length;n++){var u=e[n],a=r[n];if(u.size!==a.size||[].concat(t(u)).sort().join(",")!==[].concat(t(a)).sort().join(","))return!1}return!0}(l,c);)!function(){var e={},n=!0,a=!1,o=void 0;try{for(var s,f=l[Symbol.iterator]();!(n=(s=f.next()).done);n=!0){var p=s.value,h={},m=Array.isArray(p)?p:Array.from(p),g=m[0],y=m.slice(1);h[g]=new Set([g]);var b=!0,v=!1,x=void 0;try{e:for(var E,C=y[Symbol.iterator]();!(b=(E=C.next()).done);b=!0){var A=E.value,D=!0,S=!1,_=void 0;try{for(var w,T=Object.keys(h)[Symbol.iterator]();!(D=(w=T.next()).done);D=!0){var F=w.value;if(function(e,t,n,u){var a=!0,i=!1,o=void 0;try{for(var s,d=u[Symbol.iterator]();!(a=(s=d.next()).done);a=!0){var l=s.value;if(!function(e,t,n,u){if(!r[e]||!r[t])return!1;var a=n[e][u],i=n[t][u];return!a&&!i||r[e].has(a)&&r[t].has(i)}(e,t,n,l))return!1}}catch(e){i=!0,o=e}finally{try{!a&&d.return&&d.return()}finally{if(i)throw o}}return!0}(A,F,u,i)){h[F].add(A),h[A]=h[F];continue e}}}catch(e){S=!0,_=e}finally{try{!D&&T.return&&T.return()}finally{if(S)throw _}}h[A]=new Set([A])}}catch(e){v=!0,x=e}finally{try{!b&&C.return&&C.return()}finally{if(v)throw x}}Object.assign(e,h)}}catch(e){a=!0,o=e}finally{try{!n&&f.return&&f.return()}finally{if(a)throw o}}r=e;var k=new Set(Object.keys(e).map(function(t){return e[t]}));d.push([].concat(t(k))),l=d[d.length-1],c=d[d.length-2]}();var f=new Map,p=1;l.forEach(function(e){return f.set(e,p++)});var h={},m=new Set,g=!0,y=!1,b=void 0;try{for(var v,x=f.entries()[Symbol.iterator]();!(g=(v=x.next()).done);g=!0){var E=v.value,C=e(E,2),A=C[0],D=C[1];h[D]={};var S=!0,_=!1,w=void 0;try{for(var T,F=i[Symbol.iterator]();!(S=(T=F.next()).done);S=!0){var k=T.value;!function(e,t){var r=!0,n=!1,u=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var s=a.value;o.has(s)&&m.add(t)}}catch(e){n=!0,u=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw u}}}(A,D);var P=void 0,I=!0,B=!1,j=void 0;try{for(var O,L=A[Symbol.iterator]();!(I=(O=L.next()).done)&&!(P=u[O.value][k]);I=!0);}catch(e){B=!0,j=e}finally{try{!I&&L.return&&L.return()}finally{if(B)throw j}}P&&(h[D][k]=f.get(r[P]))}}catch(e){_=!0,w=e}finally{try{!S&&F.return&&F.return()}finally{if(_)throw w}}}}catch(e){y=!0,b=e}finally{try{!g&&x.return&&x.return()}finally{if(y)throw b}}return n.setTransitionTable(h),n.setAcceptingStateNumbers(m),n}}}(),n=dS().EPSILON_CLOSURE;return ut=function(){function u(e){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,u),this._nfa=e}return e(u,[{key:"minimize",value:function(){this.getTransitionTable(),this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._originalTransitionTable=this._transitionTable,r.minimize(this)}},{key:"getAlphabet",value:function(){return this._nfa.getAlphabet()}},{key:"getAcceptingStateNumbers",value:function(){return this._acceptingStateNumbers||this.getTransitionTable(),this._acceptingStateNumbers}},{key:"getOriginaAcceptingStateNumbers",value:function(){return this._originalAcceptingStateNumbers||this.getTransitionTable(),this._originalAcceptingStateNumbers}},{key:"setTransitionTable",value:function(e){this._transitionTable=e}},{key:"setAcceptingStateNumbers",value:function(e){this._acceptingStateNumbers=e}},{key:"getTransitionTable",value:function(){var e=this;if(this._transitionTable)return this._transitionTable;var r=this._nfa.getTransitionTable(),u=Object.keys(r);this._acceptingStateNumbers=new Set;for(var a=[r[u[0]][n]],i=this.getAlphabet(),o=this._nfa.getAcceptingStateNumbers(),s={};a.length>0;){var d=a.shift(),l=d.join(",");s[l]={};var c=!0,f=!1,p=void 0;try{for(var h,m=i[Symbol.iterator]();!(c=(h=m.next()).done);c=!0){var g=h.value,y=[];!function(t){var r=!0,n=!1,u=void 0;try{for(var a,i=o[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var s=a.value;if(-1!==t.indexOf(s)){e._acceptingStateNumbers.add(t.join(","));break}}}catch(e){n=!0,u=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw u}}}(d);var b=!0,v=!1,x=void 0;try{for(var E,C=d[Symbol.iterator]();!(b=(E=C.next()).done);b=!0){var A=r[E.value][g];if(A){var D=!0,S=!1,_=void 0;try{for(var w,T=A[Symbol.iterator]();!(D=(w=T.next()).done);D=!0){var F=w.value;r[F]&&y.push.apply(y,t(r[F][n]))}}catch(e){S=!0,_=e}finally{try{!D&&T.return&&T.return()}finally{if(S)throw _}}}}}catch(e){v=!0,x=e}finally{try{!b&&C.return&&C.return()}finally{if(v)throw x}}var k=new Set(y),P=[].concat(t(k));if(P.length>0){var I=P.join(",");s[l][g]=I,s.hasOwnProperty(I)||a.unshift(P)}}}catch(e){f=!0,p=e}finally{try{!c&&m.return&&m.return()}finally{if(f)throw p}}}return this._transitionTable=this._remapStateNumbers(s)}},{key:"_remapStateNumbers",value:function(e){var t={};this._originalTransitionTable=e;var r={};for(var n in Object.keys(e).forEach(function(e,r){t[e]=r+1}),e){var u=e[n],a={};for(var i in u)a[i]=t[u[i]];r[t[n]]=a}this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._acceptingStateNumbers=new Set;var o=!0,s=!1,d=void 0;try{for(var l,c=this._originalAcceptingStateNumbers[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var f=l.value;this._acceptingStateNumbers.add(t[f])}}catch(e){s=!0,d=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw d}}return r}},{key:"getOriginalTransitionTable",value:function(){return this._originalTransitionTable||this.getTransitionTable(),this._originalTransitionTable}},{key:"matches",value:function(e){for(var t=1,r=0,n=this.getTransitionTable();e[r];)if(!(t=n[t][e[r++]]))return!1;return!!this.getAcceptingStateNumbers().has(t)}}]),u}()}(),r=function(){if(ul)return ud;ul=1;var e=dx(),t=dw(),r=t.alt,n=t.char,u=t.or,a=t.rep,i=t.plusRep,o=t.questionRep;function s(e){if(e&&!d[e.type])throw Error(e.type+" is not supported in NFA/DFA interpreter.");return e?d[e.type](e):""}var d={RegExp:function(e){if(""!==e.flags)throw Error("NFA/DFA: Flags are not supported yet.");return s(e.body)},Alternative:function(e){var t=(e.expressions||[]).map(s);return r.apply(void 0,function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}(t))},Disjunction:function(e){return u(s(e.left),s(e.right))},Repetition:function(e){switch(e.quantifier.kind){case"*":return a(s(e.expression));case"+":return i(s(e.expression));case"?":return o(s(e.expression));default:throw Error("Unknown repeatition: "+e.quantifier.kind+".")}},Char:function(e){if("simple"!==e.kind)throw Error("NFA/DFA: Only simple chars are supported yet.");return n(e.value)},Group:function(e){return s(e.expression)}};return ud={build:function(t){var r=t;return t instanceof RegExp&&(t=""+t),"string"==typeof t&&(r=e.parse(t,{captureLocations:!0})),s(r)}}}();return uc={NFA:e,DFA:t,builders:dw(),toNFA:function(e){return r.build(e)},toDFA:function(e){return new t(this.toNFA(e))},test:function(e,t){return this.toDFA(e).matches(t)}}}(),o=function(){if(uh)return up;uh=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();return up={RegExpTree:function(){function t(e,r){var n=r.flags,u=r.groups,a=r.source;(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,t),this._re=e,this._groups=u,this.flags=n,this.source=a||e.source,this.dotAll=n.includes("s"),this.global=e.global,this.ignoreCase=e.ignoreCase,this.multiline=e.multiline,this.sticky=e.sticky,this.unicode=e.unicode}return e(t,[{key:"test",value:function(e){return this._re.test(e)}},{key:"compile",value:function(e){return this._re.compile(e)}},{key:"toString",value:function(){return this._toStringResult||(this._toStringResult="/"+this.source+"/"+this.flags),this._toStringResult}},{key:"exec",value:function(e){var t=this._re.exec(e);if(!this._groups||!t)return t;for(var r in t.groups={},this._groups){var n=this._groups[r];t.groups[r]=t[n]}return t}}]),t}()}}().RegExpTree;return um={parser:n,fa:i,TransformResult:u.TransformResult,parse:function(e,t){return n.parse(""+e,t)},traverse:function(e,t,r){return a.traverse(e,t,r)},transform:function(e,t){return u.transform(e,t)},generate:function(e){return t.generate(e)},toRegExp:function(e){var t=this.compatTranspile(e);return new RegExp(t.getSource(),t.getFlags())},optimize:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=n.blacklist;return r.optimize(e,{whitelist:t,blacklist:u})},compatTranspile:function(t,r){return e.transform(t,r)},exec:function(e,t){if("string"==typeof e){var r=this.compatTranspile(e),n=r.getExtra();e=n.namedCapturingGroups?new o(r.toRegExp(),{flags:r.getFlags(),source:r.getSource(),groups:n.namedCapturingGroups}):r.toRegExp()}return e.exec(t)}}}()),r=/*@__PURE__*/sA(),{isStringLiteral:n,isNewExpression:u,isRegexLiteral:a}=/*@__PURE__*/sh(),i="better-regex",o="better-regex/parse-error";return uv={create:s=>{let{sortCharacterClasses:d}=s.options[0]||{},l=[];return!1===d&&l.push("charClassClassrangesMerge"),{Literal(e){if(!a(e))return;let{raw:r,regex:n}=e;if(n.flags.includes("u")||n.flags.includes("v"))return;let u=r;try{u=t(r,void 0,{blacklist:l}).toString()}catch(t){return{node:e,messageId:o,data:{original:r,error:t.message}}}if(r===u)return;let s={node:e,messageId:i,data:{original:r,optimized:u}};return"MemberExpression"!==e.parent.type||e.parent.object!==e||e.parent.optional||e.parent.computed||"Identifier"!==e.parent.property.type||"toString"!==e.parent.property.name&&"source"!==e.parent.property.name?Object.assign(s,{fix:t=>t.replaceText(e,u)}):s},NewExpression(t){if(!u(t,{name:"RegExp",minimumArguments:1}))return;let[a,o]=t.arguments;if(!n(a))return;let s=a.value,d=e(s,n(o)?o.value:"");if(s!==d)return{node:t,messageId:i,data:{original:s,optimized:d},fix:e=>e.replaceText(a,r(d,a.raw.charAt(0)))}}}},meta:{type:"suggestion",docs:{description:"Improve regexes by making them shorter, consistent, and safer.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{sortCharacterClasses:{type:"boolean",default:!0}}}],messages:{[i]:"{{original}} can be optimized to {{optimized}}.",[o]:"Problem parsing {{original}}: {{error}}"}}}}()),dF=/*@__PURE__*/oe(/*@__PURE__*/function(){if(uC)return uE;uC=1;let{replaceTemplateElement:e}=/*@__PURE__*/sZ(),{isRegexLiteral:t,isStringLiteral:r,isTaggedTemplateLiteral:n}=/*@__PURE__*/sh(),u="escape-case",a=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+})/g,i=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+}|c[a-z])/g,o=({node:e,original:t,regex:r=a,fix:n})=>{let i=t.replace(r,e=>e.slice(0,1)+e.slice(1).toUpperCase());if(i!==t)return{node:e,messageId:u,fix:t=>n?n(t,i):t.replaceText(e,i)}};return uE={create:u=>{u.on("Literal",e=>{if(r(e))return o({node:e,original:e.raw})}),u.on("Literal",e=>{if(t(e))return o({node:e,original:e.raw,regex:i})}),u.on("TemplateElement",t=>{if(!n(t.parent,["String.raw"]))return o({node:t,original:t.value.raw,fix:(r,n)=>e(r,t,n)})})},meta:{type:"suggestion",docs:{description:"Require escape sequences to use uppercase values.",recommended:!0},fixable:"code",messages:{[u]:"Use uppercase characters for the value of the escape sequence."}}}}()),dk=/*@__PURE__*/oe(/*@__PURE__*/function(){if(uD)return uA;uD=1;let{replaceTemplateElement:e}=/*@__PURE__*/sZ(),{isStringLiteral:t,isRegexLiteral:r,isTaggedTemplateLiteral:n}=/*@__PURE__*/sh(),u="no-hex-escape";function a(t,r,n){let a=n.replaceAll(/(?<=(?:^|[^\\])(?:\\\\)*\\)x/g,"u00");if(n!==a)return{node:r,messageId:u,fix:t=>"TemplateElement"===r.type?e(t,r,a):t.replaceText(r,a)}}return uA={create:e=>({Literal(n){if(t(n)||r(n))return a(e,n,n.raw)},TemplateElement(t){if(!n(t.parent,["String.raw"]))return a(e,t,t.value.raw)}}),meta:{type:"suggestion",docs:{description:"Enforce the use of Unicode escapes instead of hexadecimal escapes.",recommended:!0},fixable:"code",messages:{[u]:"Use Unicode escapes instead of hexadecimal escapes."}}}}()),dP=/*@__PURE__*/oe(/*@__PURE__*/function(){if(u_)return uS;u_=1;let{getPropertyName:e,ReferenceTracker:t}=sa,{fixSpaceAroundKeyword:r}=/*@__PURE__*/sZ(),{isMemberExpression:n,isMethodCall:u}=/*@__PURE__*/sh(),a=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];return uS={create:function(i){let{sourceCode:o}=i,s=[];i.on("CallExpression",e=>{s.push(e)}),i.on("Program:exit",function*(i){let d=new WeakMap;for(let{node:e,path:r}of new t(o.getScope(i)).iterateGlobalReferences(Object.fromEntries(a.map(e=>[e,{[t.READ]:!0}]))))d.set(e,r);for(let t of s)yield function(t,{sourceCode:a,globalReferences:i}){let o;u(t,{object:"Reflect",method:"apply",minimumArguments:1,optionalCall:!1,optionalMember:!1})?o=t.arguments[0]:u(t,{methods:["apply","bind","call"],optionalCall:!1,optionalMember:!1})&&(o=t.callee.object);let{isGlobalReference:s,constructorName:d,methodName:l}=function(t,{sourceCode:r,globalReferences:u}){if(!t)return;if(u.has(t))return{isGlobalReference:!0,constructorName:"Object",methodName:u.get(t).at(-1)};if(!n(t,{optional:!1}))return;let a=t.object;if(!(("ArrayExpression"!==a.type||0!==a.elements.length)&&("ObjectExpression"!==a.type||0!==a.properties.length)))return{constructorName:"ArrayExpression"===a.type?"Array":"Object",methodName:e(t,r.getScope(t))}}(o,{sourceCode:a,globalReferences:i})??{};if(d)return{node:o,messageId:l?"known-method":"unknown-method",data:{constructorName:d,methodName:l},*fix(e){if(s){yield e.replaceText(o,`${d}.prototype.${l}`);return}if(n(o)){let n=o.object;yield e.replaceText(n,`${d}.prototype`),("ArrayExpression"===n.type||"ObjectExpression"===n.type)&&(yield*r(e,t,a))}}}}(t,{sourceCode:o,globalReferences:d})})},meta:{type:"suggestion",docs:{description:"Prefer borrowing methods from the prototype instead of the instance.",recommended:!0},fixable:"code",messages:{"known-method":"Prefer using `{{constructorName}}.prototype.{{methodName}}`.","unknown-method":"Prefer using method from `{{constructorName}}.prototype`."}}}}()),dI=/*@__PURE__*/oe(/*@__PURE__*/function(){if(uT)return uw;uT=1;let{getStaticValue:e}=sa,t=/*@__PURE__*/sF(),{isCallOrNewExpression:r}=/*@__PURE__*/sh(),n="missing-message",u="message-is-empty-string",a="message-is-not-a-string",i=["Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","InternalError","AggregateError"];return uw={create:o=>{o.on(["CallExpression","NewExpression"],s=>{if(!r(s,{names:i,optional:!1}))return;let d=o.sourceCode.getScope(s);if(t(d,s.callee))return;let l=s.callee.name,c="AggregateError"===l?1:0,f=s.arguments;if(f.some((e,t)=>t<=c&&"SpreadElement"===e.type))return;let p=f[c];if(!p)return{node:s,messageId:n,data:{constructorName:l}};if("ArrayExpression"===p.type||"ObjectExpression"===p.type)return{node:p,messageId:a};let h=e(p,d);if(!h)return;let{value:m}=h;return"string"!=typeof m?{node:p,messageId:a}:""===m?{node:p,messageId:u}:void 0})},meta:{type:"problem",docs:{description:"Enforce passing a `message` value when creating a built-in error.",recommended:!0},messages:{[n]:"Pass a message to the `{{constructorName}}` constructor.",[u]:"Error message should not be an empty string.",[a]:"Error message should be a string."}}}}()),dB=/*@__PURE__*/oe(/*@__PURE__*/function(){if(uk)return uF;uk=1;let{checkVueTemplate:e}=/*@__PURE__*/ds(),{getParenthesizedRange:t}=/*@__PURE__*/so(),{replaceNodeOrTokenAndSpacesBefore:r,fixSpaceAroundKeyword:n}=/*@__PURE__*/sZ(),u=e=>"instanceof"===e.value&&"Keyword"===e.type,a="no-instanceof-array";return uF={create:e(e=>{let{sourceCode:i}=e;return{BinaryExpression(e){if(!("instanceof"===e.operator&&"Identifier"===e.right.type&&"Array"===e.right.name))return;let{left:o,right:s}=e,d=i,l=d.getTokenAfter(o,u);return!l&&i.parserServices.getTemplateBodyTokenStore&&(l=(d=i.parserServices.getTemplateBodyTokenStore()).getTokenAfter(o,u)),{node:l,messageId:a,*fix(u){yield*n(u,e,i);let a=t(o,d);yield u.insertTextBeforeRange(a,"Array.isArray("),yield u.insertTextAfterRange(a,")"),yield*r(l,"",u,i,d),yield*r(s,"",u,i,d)}}}}}),meta:{type:"suggestion",docs:{description:"Require `Array.isArray()` instead of `instanceof Array`.",recommended:!0},fixable:"code",messages:{[a]:"Use `Array.isArray()` instead of `instanceof Array`."}}}}()),dj=/*@__PURE__*/oe(/*@__PURE__*/function(){if(uI)return uP;uI=1;let{isNewExpression:e}=/*@__PURE__*/sh(),t="prefer-type-error",r=new Set(["isArguments","isArray","isArrayBuffer","isArrayLike","isArrayLikeObject","isBigInt","isBoolean","isBuffer","isDate","isElement","isError","isFinite","isFunction","isInteger","isLength","isMap","isNaN","isNative","isNil","isNull","isNumber","isObject","isObjectLike","isPlainObject","isPrototypeOf","isRegExp","isSafeInteger","isSet","isString","isSymbol","isTypedArray","isUndefined","isView","isWeakMap","isWeakSet","isWindow","isXMLDoc"]),n=new Set(["isNaN","isFinite"]),u=(e,t,u)=>void 0!==t&&t.arguments.length>0&&"Identifier"===e.type&&(!0===u&&r.has(e.name)||!1===u&&n.has(e.name)),a=e=>e.parent&&e.parent.body&&1===e.parent.body.length,i=(e,t)=>!!u(e.property,t,!0)||"MemberExpression"===e.object.type&&i(e.object,t),o=(e,t)=>{switch(e.type){case"Identifier":return u(e,t,!1);case"MemberExpression":return i(e,t);case"CallExpression":return o(e.callee,e);case"UnaryExpression":return"typeof"===e.operator||"!"===e.operator&&o(e.argument);case"BinaryExpression":return"instanceof"===e.operator||o(e.left,t)||o(e.right,t);case"LogicalExpression":return o(e.left,t)&&o(e.right,t);default:return!1}},s=e=>"IfStatement"===e.type&&o(e.test);return uP={create:()=>({ThrowStatement(r){if(e(r.argument,{name:"Error"})&&a(r)&&r.parent.parent&&s(r.parent.parent)){let e=r.argument.callee;return{node:e,messageId:t,fix:t=>t.insertTextBefore(e,"Type")}}}}),meta:{type:"suggestion",docs:{description:"Enforce throwing `TypeError` in type checking conditions.",recommended:!0},fixable:"code",messages:{[t]:"`new Error()` is too unspecific for a type check. Use `new TypeError()` instead."}}}}()),dO=/*@__PURE__*/oe(/*@__PURE__*/function(){if(uj)return uB;uj=1;let e=/*@__PURE__*/sC(),t=/*@__PURE__*/s_(),{isCallOrNewExpression:r}=/*@__PURE__*/sh(),n="consistentDestructuring",u="consistentDestructuringSuggest",a=e=>{for(;e;){if(e.computed)return!1;if("MemberExpression"!==e.type)break;e=e.object}return"Identifier"===e.type||"ThisExpression"===e.type},i=(e,t)=>{for(;e;){if(e===t)return!0;e=e.upper}return!1};return uB={create:o=>{let{sourceCode:s}=o,d=new Map;return{VariableDeclarator(e){"ObjectPattern"===e.id.type&&e.init&&"Literal"!==e.init.type&&a(e.init)&&d.set(s.getText(e.init),{scope:s.getScope(e),variables:s.getDeclaredVariables(e),objectPattern:e.id})},MemberExpression(a){if(a.computed||r(a.parent)&&a.parent.callee===a||t(a))return;let o=d.get(s.getText(a.object));if(!o)return;let{scope:l,objectPattern:c}=o,f=s.getScope(a);if(!i(f,l))return;let p=c.properties.filter(e=>"Property"===e.type&&"Identifier"===e.key.type&&"Identifier"===e.value.type),h=c.properties.at(-1),m=h&&"RestElement"===h.type,g=s.getText(a),y=s.getText(a.property),b=p.find(e=>e.key.name===y);if(!b&&(m||e(y,[f])!==y))return;if("MemberExpression"===a.parent.type)return{node:a,messageId:n};let v=b?b.value.name:y;return{node:a,messageId:n,suggest:[{messageId:u,data:{expression:g,property:v},*fix(e){let{properties:t}=c,r=t.at(-1);yield e.replaceText(a,v),b||(yield r?e.insertTextAfter(r,`, ${v}`):e.replaceText(c,`{${v}}`))}}]}}}},meta:{type:"suggestion",docs:{description:"Use destructured variables over properties.",recommended:!1},fixable:"code",hasSuggestions:!0,messages:{[n]:"Use destructured variables over properties.",[u]:"Replace `{{expression}}` with destructured property `{{property}}`."}}}}());function dL(){return uL?uO:(uL=1,uO=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"])}var dN=/*@__PURE__*/oe(/*@__PURE__*/function(){if(u$)return uM;u$=1;let{GlobalReferenceTracker:e}=/*@__PURE__*/s9(),t=uR?uN:(uR=1,uN={enforceNew:["Object","Array","ArrayBuffer","DataView","Date","Error","Function","Map","WeakMap","Set","WeakSet","Promise","RegExp","SharedArrayBuffer","Proxy","WeakRef","FinalizationRegistry",.../*@__PURE__*/dL()],disallowNew:["BigInt","Boolean","Number","String","Symbol"]}),{switchCallExpressionToNewExpression:r,switchNewExpressionToCallExpression:n}=/*@__PURE__*/sZ();return uM={create:u=>{let{sourceCode:a}=u,i=new e({objects:t.disallowNew,type:e.CONSTRUCT,handle:e=>(function({node:e,path:[t]},r){let u={node:e,messageId:"disallow",data:{name:t}};return"String"!==t&&"Boolean"!==t&&"Number"!==t&&(u.fix=function*(t){yield*n(e,r,t)}),u})(e,a)}),o=new e({objects:t.enforceNew,type:e.CALL,handle:e=>(function({node:e,path:[t]},n){if("Object"===t){let{parent:t}=e;if("BinaryExpression"===t.type&&("==="===t.operator||"!=="===t.operator)&&(t.left===e||t.right===e))return}return{node:e,messageId:"enforce",data:{name:t},fix:t=>r(e,n,t)}})(e,a)});return{*"Program:exit"(e){let t=a.getScope(e);yield*i.track(t),yield*o.track(t)}}},meta:{type:"suggestion",docs:{description:"Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.",recommended:!0},fixable:"code",messages:{enforce:"Use `new {{name}}()` instead of `{{name}}()`.",disallow:"Use `{{name}}()` instead of `new {{name}}()`."}}}}()),dR=/*@__PURE__*/oe(/*@__PURE__*/function(){if(uq)return uV;uq=1;let{hasSideEffect:e,isSemicolonToken:t}=sa,{getCallExpressionTokens:r,getCallExpressionArgumentsText:n}=/*@__PURE__*/sL(),u=/*@__PURE__*/sT(),{isNodeMatches:a}=/*@__PURE__*/sp(),i=uz?uU:(uz=1,uU=function(e,t){let{parent:r}=e;for(let n of t.visitorKeys[r.type]||Object.keys(r)){let t=r[n];if(t===e)return;if(Array.isArray(t)){let r=t.indexOf(e);if(-1!==r)return t[r-1]}}}),{isMethodCall:o}=/*@__PURE__*/sh(),s="error",d="suggestion",l=e=>e&&"ExpressionStatement"===e.parent.type&&e.parent.expression===e&&o(e,{method:"push",optionalCall:!1,optionalMember:!1});return uV={create:function(o){let{ignore:c}={ignore:[],...o.options[0]},f=["stream","this","this.stream","process.stdin","process.stdout","process.stderr",...c],{sourceCode:p}=o;return{CallExpression(o){if(!l(o))return;let c=o.callee.object;if(a(c,f))return;let h=function(e,t){let r=i(e.parent,t)?.expression;if(l(r))return r}(o,p);if(!h||!u(h.callee.object,c))return;let m=o.arguments,g={node:o.callee.property,messageId:s},y=function*(e){if(m.length>0){let t=n(p,o),{trailingCommaToken:u,closingParenthesisToken:a}=r(p,h);yield u?e.insertTextAfter(u,` ${t}`):e.insertTextBefore(a,h.arguments.length>0?`, ${t}`:t)}let u=h.parent,a=o.parent,i=!t(p.getLastToken(u))&&t(p.getLastToken(a));yield e.replaceTextRange([u.range[1],a.range[1]],i?";":"")};return m.some(t=>e(t,p))?g.suggest=[{messageId:d,fix:y}]:g.fix=y,g}}},meta:{type:"suggestion",docs:{description:"Enforce combining multiple `Array#push()` into one call.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignore:{type:"array",uniqueItems:!0}}}],messages:{[s]:"Do not call `Array#push()` multiple times.",[d]:"Merge with previous one."}}}}()),dM=/*@__PURE__*/oe(/*@__PURE__*/function(){if(uG)return uW;uG=1;let{isStaticRequire:e,isMethodCall:t,isLiteral:r}=/*@__PURE__*/sh(),n="no-process-exit",u=e=>r(e,"node:worker_threads")||r(e,"worker_threads");return uW={create:r=>{let a;if(0===r.sourceCode.lines[0].indexOf("#!"))return{};let i=!1,o=[];r.on("CallExpression",t=>{e(t)&&u(t.arguments[0])&&(i=!0)}),r.on("ImportDeclaration",e=>{"Literal"===e.source.type&&u(e.source)&&(i=!0)}),r.on("CallExpression",e=>{t(e,{object:"process",methods:["on","once"],minimumArguments:1,optionalCall:!1,optionalMember:!1})&&(a=e)}),r.onExit("CallExpression",e=>{e===a&&(a=void 0)}),r.on("CallExpression",e=>{!a&&t(e,{object:"process",method:"exit",optionalCall:!1,optionalMember:!1})&&o.push(e)}),r.onExit("Program",function*(){if(!i)for(let e of o)yield{node:e,messageId:n}})},meta:{type:"suggestion",docs:{description:"Disallow `process.exit()`.",recommended:!0},messages:{[n]:"Only use `process.exit()` in CLI apps. Throw an error instead."}}}}()),d$=/*@__PURE__*/oe(/*@__PURE__*/function(){if(uH)return uZ;uH=1;let{isCommaToken:e}=sa,{isMethodCall:t,isExpressionStatement:r}=/*@__PURE__*/sh(),{getParenthesizedText:n,isParenthesized:u,needsSemicolon:a,shouldAddParenthesesToAwaitExpressionArgument:i}=/*@__PURE__*/sL(),o="no-single-promise-in-promise-methods/error",s="no-single-promise-in-promise-methods/unwrap",d="no-single-promise-in-promise-methods/use-promise-resolve",l=["all","any","race"],c=e=>t(e,{object:"Promise",methods:l,optionalMember:!1,optionalCall:!1,argumentsLength:1})&&"ArrayExpression"===e.arguments[0].type&&1===e.arguments[0].elements.length&&e.arguments[0].elements[0]&&"SpreadElement"!==e.arguments[0].elements[0].type,f=(e,t)=>r=>{let[a]=e.arguments[0].elements,o=n(a,t);return!u(a,t)&&i(a)&&(o=`(${o})`),r.replaceText(e,o)},p=(e,t)=>r=>{let[i]=e.arguments[0].elements,o=n(i,t);return u(i,t)||"Identifier"===i.type||"MemberExpression"===i.type||(o=`(${o})`),a(t.getTokenBefore(e),t,o)&&(o=`;${o}`),r.replaceText(e,o)},h=(t,r)=>function*(n){let u=t.callee.property;yield n.replaceText(u,"resolve");let[a]=t.arguments,i=r.getFirstToken(a),[o,s]=r.getLastTokens(a,2);yield n.remove(i),yield n.remove(s),e(o)&&(yield n.remove(o))};return uZ={create:e=>({CallExpression(t){if(!c(t))return;let n=t.callee.property.name,u={node:t.arguments[0],messageId:o,data:{method:n}},{sourceCode:a}=e;return"AwaitExpression"===t.parent.type&&t.parent.argument===t&&("all"!==n||r(t.parent.parent))?u.fix=f(t,a):"all"===n||(u.suggest=[{messageId:s,fix:p(t,a)},{messageId:d,fix:h(t,a)}]),u}}),meta:{type:"suggestion",docs:{description:"Disallow passing single-element arrays to `Promise` methods.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[o]:"Wrapping single-element array with `Promise.{{method}}()` is unnecessary.",[s]:"Use the value directly.",[d]:"Switch to `Promise.resolve(…)`."}}}}());function dU(){return uQ?uJ:(uQ=1,uJ=function(e,{test:t,expected:r,ruleId:n}){if(t?.(e)||(r=(r=Array.isArray(r)?r:[r]).map(e=>"string"==typeof e?{value:e}:e),!t&&r.some(t=>Object.entries(t).every(([t,r])=>e[t]===r))))return;let u=`'${JSON.stringify({value:e.value,type:e.type})}'`;r=r.map(e=>`'${JSON.stringify(e)}'`).join(" or ");let a=`\`${n}\`: Unexpected token ${u}`,i=`https://github.com/sindresorhus/eslint-plugin-unicorn/issues/new?title=${encodeURIComponent(a)}`;throw Error(`Expected token ${r}, got ${u}.
|
|
4
|
+
Please open an issue at ${i}.`)})}var dz=/*@__PURE__*/oe(/*@__PURE__*/function(){if(u0)return uX;u0=1;let{isSemicolonToken:e}=sa,t=uY?uK:(uY=1,uK=function(e,t){let{loc:r,body:n}=e,u=t.getTokenBefore(n),{start:a}=r,{end:i}=u.loc;return{start:a,end:i}}),r=/*@__PURE__*/dU(),{removeSpacesAfter:n}=/*@__PURE__*/sZ(),u="no-static-only-class",a=({type:e,value:t})=>"Punctuator"===e&&"="===t,i=e=>"ClassDeclaration"===e.type&&"ExportDefaultDeclaration"===e.parent.type&&e.parent.declaration===e,o=e=>"PropertyDefinition"===e.type,s=e=>"MethodDefinition"===e.type;return uX={create:function(d){d.on(["ClassDeclaration","ClassExpression"],l=>{if(l.superClass||l.decorators&&l.decorators.length>0||"ClassBody"!==l.body.type||0===l.body.body.length||l.body.body.some(e=>!function(e){let{private:t,static:r,declare:n,readonly:u,accessibility:a,decorators:i,key:d}=e;return!(!o(e)&&!s(e)||!r||t||"PrivateIdentifier"===d.type||n||u||void 0!==a||Array.isArray(i)&&i.length>0)}(e)))return;let{sourceCode:c}=d;return{node:l,loc:t(l,c),messageId:u,fix:function(t,u){let{type:s,id:d,body:l,declare:c,abstract:f,implements:p,parent:h}=t;if(c||f||Array.isArray(p)&&p.length>0||"ClassExpression"===s&&d)return;let m=i(t);if(!m||!d){for(let e of l.body)if(o(e)&&(e.typeAnnotation||e.value&&u.getText(e.value).includes("this")))return;return function*(i){let d=u.getFirstToken(t);if(r(d,{expected:{type:"Keyword",value:"class"},ruleId:"no-static-only-class"}),m||"ClassExpression"===s){if("ClassExpression"===s&&"ReturnStatement"===h.type&&l.loc.start.line!==h.loc.start.line&&u.text.slice(d.range[1],l.range[0]).trim()){yield i.replaceText(d,"{");let e=u.getFirstToken(l);yield i.remove(e)}else yield i.replaceText(d,""),yield n(d,u,i)}else yield i.replaceText(d,"const"),yield i.insertTextBefore(l,"= "),yield i.insertTextAfter(l,";");for(let t of l.body)yield*function*(t,u,i){let s=u.getFirstToken(t);r(s,{expected:{type:"Keyword",value:"static"},ruleId:"no-static-only-class"}),yield i.remove(s),yield n(s,u,i);let d=o(t)?u.getLastToken(t):u.getTokenAfter(t),l=e(d);if(o(t)){let{key:e,value:r}=t;if(r){let t=u.getTokenAfter(e,a);yield i.replaceText(t,":")}else l?yield i.insertTextBefore(d,": undefined"):yield i.insertTextAfter(t,": undefined")}yield l?i.replaceText(d,","):i.insertTextAfter(t,",")}(t,u,i)}}}(l,c)}})},meta:{type:"suggestion",docs:{description:"Disallow classes that only have static members.",recommended:!0},fixable:"code",messages:{[u]:"Use an object instead of a class with only static members."}}}}()),dV=/*@__PURE__*/oe(/*@__PURE__*/function(){if(u2)return u1;u2=1;let{isParenthesized:e}=sa,t=/*@__PURE__*/sB(),{fixSpaceAroundKeyword:r}=/*@__PURE__*/sZ(),n="no-unreadable-array-destructuring",u=(e,t,r)=>null===e&&null===r[t+1];return u1={create:a=>{let{sourceCode:i}=a;return{ArrayPattern(a){let{elements:o,parent:s}=a;if(o.length<3||!o.some((e,t,r)=>u(e,t,r)))return;let d={node:a,messageId:n},l=o.filter(e=>null!==e);if("VariableDeclarator"===s.type&&s.id===a&&null!==s.init&&1===l.length){let[n]=l;"AssignmentPattern"!==n.type&&(d.fix=function*(u){let d=o.indexOf(n),l="RestElement"===n.type,c=l?n.argument:n;yield u.replaceText(a,i.getText(c));let f=l?`.slice(${d})`:`[${d}]`,p=s.init;!e(p,i)&&t(p,i)?(yield u.insertTextBefore(p,"("),yield u.insertTextAfter(s,`)${f}`)):yield u.insertTextAfter(s,f),yield*r(u,a,i)})}return d}}},meta:{type:"suggestion",docs:{description:"Disallow unreadable array destructuring.",recommended:!0},fixable:"code",messages:{[n]:"Array destructuring may not contain consecutive ignored values."}}}}()),dq=/*@__PURE__*/oe(/*@__PURE__*/function(){if(u4)return u3;u4=1;let{isCommaToken:e}=sa,t=/*@__PURE__*/dL(),{removeParentheses:r,fixSpaceAroundKeyword:n,addParenthesizesToReturnOrThrowExpression:u}=/*@__PURE__*/sZ(),{isParenthesized:a,isOnSameLine:i}=/*@__PURE__*/sL(),{isNewExpression:o,isMethodCall:s,isCallOrNewExpression:d}=/*@__PURE__*/sh(),l="spread-in-list",c="iterable-to-array",f="iterable-to-array-in-for-of",p="iterable-to-array-in-yield-star",h="clone-array",m=e=>"ArrayExpression"===e.type&&1===e.elements.length&&e.elements[0]?.type==="SpreadElement",g={ArrayExpression:"array literal",ObjectExpression:"object literal",CallExpression:"arguments",NewExpression:"arguments"};function*y(t,r,o){let[s,d,l]=o.getFirstTokens(r,3);yield t.remove(s),yield t.remove(d);let[c,f]=o.getLastTokens(r,2);yield t.remove(f),e(c)&&(yield t.remove(c));let{parent:p}=r;if(("ReturnStatement"===p.type||"ThrowStatement"===p.type)&&p.argument===r&&!i(s,l)&&!a(r,o)){yield*u(t,p,o);return}yield*n(t,r,o)}return u3={create:n=>{let{sourceCode:u}=n;n.on(["ArrayExpression","ObjectExpression"],t=>{if(!("SpreadElement"===t.parent.type&&t.parent.argument===t&&("ObjectExpression"===t.type&&"ObjectExpression"===t.parent.parent.type&&t.parent.parent.properties.includes(t.parent)||"ArrayExpression"===t.type&&("ArrayExpression"===t.parent.parent.type&&t.parent.parent.elements.includes(t.parent)||d(t.parent.parent)&&t.parent.parent.arguments.includes(t.parent)))))return;let n=t.parent,a=u.getFirstToken(n),i=n.parent.type;return{node:a,messageId:l,data:{argumentType:"ArrayExpression"===t.type?"array":"object",parentDescription:g[i]},*fix(n){let o;yield n.remove(a),yield*r(t,n,u);let s=u.getFirstToken(t);yield n.remove(s);let[d,l]=u.getLastTokens(t,2);if(yield n.remove(l),e(d)&&(yield n.remove(d)),"CallExpression"===i||"NewExpression"===i)for(let[r,a]of(o=u.getFirstToken(t),t.elements.map((r,n,a)=>{if(n===a.length-1){let r=u.getLastToken(t,{skip:1});return e(r)?r:void 0}let i=u.getTokenAfter(r||o,e);return o=i,i})).entries())t.elements[r]||(yield n.insertTextBefore(a,"undefined"))}}}),n.on("ArrayExpression",e=>{if(!m(e))return;let{parent:r}=e;if(!("ForOfStatement"===r.type&&r.right===e||"YieldExpression"===r.type&&r.delegate&&r.argument===e||(o(r,{names:["Map","WeakMap","Set","WeakSet"],argumentsLength:1})||o(r,{names:t,minimumArguments:1})||s(r,{object:"Promise",methods:["all","allSettled","any","race"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||s(r,{objects:["Array",...t],method:"from",argumentsLength:1,optionalCall:!1,optionalMember:!1})||s(r,{object:"Object",method:"fromEntries",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&r.arguments[0]===e))return;let n="",a=c;switch(r.type){case"ForOfStatement":a=f;break;case"YieldExpression":a=p;break;case"NewExpression":n=`new ${r.callee.name}(…)`;break;case"CallExpression":n=`${r.callee.object.name}.${r.callee.property.name}(…)`}return{node:e,messageId:a,data:{parentDescription:n},fix:t=>y(t,e,u)}}),n.on("ArrayExpression",e=>{if(!m(e))return;let t=e.elements[0].argument;if(!(s(t,{methods:["concat","copyWithin","filter","flat","flatMap","map","slice","splice","toReversed","toSorted","toSpliced","with"],optionalCall:!1,optionalMember:!1})||s(t,{method:"split",optionalCall:!1,optionalMember:!1})||s(t,{object:"Object",methods:["keys","values"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||"AwaitExpression"===t.type&&s(t.argument,{object:"Promise",methods:["all","allSettled"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||s(t,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||o(t,{name:"Array"})))return;let r={node:e,messageId:h};return o(t,{name:"Array"})||"CallExpression"===t.type&&"MemberExpression"===t.callee.type&&"Identifier"===t.callee.property.type&&"slice"===t.callee.property.name?r:Object.assign(r,{fix:t=>y(t,e,u)})})},meta:{type:"suggestion",docs:{description:"Disallow unnecessary spread.",recommended:!0},fixable:"code",messages:{[l]:"Spread an {{argumentType}} literal in {{parentDescription}} is unnecessary.",[c]:"`{{parentDescription}}` accepts iterable as argument, it's unnecessary to convert to an array.",[f]:"`for…of` can iterate over iterable, it's unnecessary to convert to an array.",[p]:"`yield*` can delegate iterable, it's unnecessary to convert to an array.",[h]:"Unnecessarily cloning an array."}}}}()),dW=/*@__PURE__*/oe(/*@__PURE__*/function(){if(u9)return u6;u9=1;let{isEmptyNode:e}=/*@__PURE__*/sh(),t=/*@__PURE__*/function(){if(u8)return u5;u8=1;let{isColonToken:e}=sa;return u5=function(t,r){let n=t.test||r.getFirstToken(t),u=r.getTokenAfter(n,e);return{start:t.loc.start,end:u.loc.end}}}(),r="no-useless-switch-case/error",n="no-useless-switch-case/suggestion",u=t=>t.consequent.every(t=>e(t));return u6={create:e=>({*SwitchStatement(a){let{cases:i}=a;if(!(i.length<2)&&null===i.at(-1).test)for(let a=i.length-2;a>=0;a--){let o=i[a];if(!u(o))break;yield{node:o,loc:t(o,e.sourceCode),messageId:r,suggest:[{messageId:n,fix:e=>e.remove(o)}]}}}}),meta:{type:"suggestion",docs:{description:"Disallow useless case in switch statements.",recommended:!0},hasSuggestions:!0,messages:{[r]:"Useless case in switch statement.",[n]:"Remove this case."}}}}()),dG=/*@__PURE__*/oe(/*@__PURE__*/function(){if(ae)return u7;ae=1;let{isCommaToken:e}=sa,{replaceNodeOrTokenAndSpacesBefore:t}=/*@__PURE__*/sZ(),{isUndefined:r,isFunction:n}=/*@__PURE__*/sh(),u="no-useless-undefined",a=new Set(["is","equal","notEqual","strictEqual","notStrictEqual","propertyVal","notPropertyVal","not","include","property","toBe","toHaveBeenCalledWith","toContain","toContainEqual","toEqual","same","notSame","strictSame","strictNotSame"]),i=e=>{let t;return"Identifier"===e.type?t=e.name:"MemberExpression"===e.type&&!1===e.computed&&"Identifier"===e.property.type&&(t=e.property.name),a.has(t)||"push"===t||"unshift"===t||"includes"===t||"add"===t||"has"===t||"set"===t||"createContext"===t||/^set[A-Z]/.test(t)||"ref"===t},o=e=>{for(;e;e=e.upper)if("function"===e.type)return e.block},s=e=>!e.optional&&"MemberExpression"===e.callee.type&&!e.callee.computed&&"Identifier"===e.callee.property.type&&"bind"===e.callee.property.name,d=e=>/\.(?:ts|mts|cts|tsx)$/i.test(e.physicalFilename);return u7={create:a=>{let{sourceCode:l}=a,c=(e,t,r)=>{if(r){let t=o(l.getScope(e));if(t?.returnType)return}return{node:e,messageId:u,fix:t}},f={checkArguments:!0,checkArrowFunctionBody:!0,...a.options[0]},p=(e,r)=>t(e,"",r,l);a.on("Identifier",e=>{if(r(e)&&"ReturnStatement"===e.parent.type&&e.parent.argument===e)return c(e,t=>p(e,t),!0)}),a.on("Identifier",e=>{if(r(e)&&"YieldExpression"===e.parent.type&&!e.parent.delegate&&e.parent.argument===e)return c(e,t=>p(e,t))}),f.checkArrowFunctionBody&&a.on("Identifier",e=>{if(r(e)&&"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e)return c(e,r=>t(e," {}",r,l),!0)}),a.on("Identifier",e=>{if(r(e)&&"VariableDeclarator"===e.parent.type&&e.parent.init===e&&"VariableDeclaration"===e.parent.parent.type&&"const"!==e.parent.parent.kind&&e.parent.parent.declarations.includes(e.parent))return c(e,t=>t.removeRange([e.parent.id.range[1],e.range[1]]),!0)}),a.on("Identifier",e=>{if(r(e)&&"AssignmentPattern"===e.parent.type&&e.parent.right===e)return c(e,function*(t){let r=e.parent,{left:u}=r;yield t.removeRange([u.range[1],e.range[1]]),(u.typeAnnotation||d(a))&&!u.optional&&n(r.parent)&&r.parent.params.includes(r)&&(yield u.typeAnnotation?t.insertTextBefore(u.typeAnnotation,"?"):t.insertTextAfter(u,"?"))},!0)}),f.checkArguments&&a.on("CallExpression",t=>{if(i(t.callee))return;let n=t.arguments;if(s(t)&&1!==n.length)return;let a=[];for(let e=n.length-1;e>=0;e--){let t=n[e];if(r(t))a.unshift(t);else break}if(0===a.length)return;let o=a[0],d=a.at(-1);return{messageId:u,loc:{start:o.loc.start,end:d.loc.end},fix(t){let r=o.range[0],u=d.range[1],i=n[n.length-a.length-1];if(i)r=i.range[1];else{let t=l.getTokenAfter(d);e(t)&&(u=t.range[1])}return t.removeRange([r,u])}}})},meta:{type:"suggestion",docs:{description:"Disallow useless `undefined`.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{checkArguments:{type:"boolean"},checkArrowFunctionBody:{type:"boolean"}}}],messages:{[u]:"Do not use useless `undefined`."}}}}()),dZ=/*@__PURE__*/oe(/*@__PURE__*/function(){if(ar)return at;ar=1;let e=/*@__PURE__*/sI(),{isBigIntLiteral:t}=/*@__PURE__*/sh(),r="numeric-separators-style";function n(e,{minimumDigits:t,groupLength:r},n){let{length:u}=e;if(u<t)return e;let a=[];if(n)for(let t=0;t<u;t+=r){let n=Math.min(t+r,u);a.push(e.slice(t,n))}else for(let t=u;t>0;t-=r){let n=Math.max(t-r,0);a.unshift(e.slice(n,t))}return a.join("_")}let u={binary:{minimumDigits:0,groupLength:4},octal:{minimumDigits:0,groupLength:4},hexadecimal:{minimumDigits:0,groupLength:2},number:{minimumDigits:5,groupLength:3}},a=({minimumDigits:e,groupLength:t})=>({type:"object",additionalProperties:!1,properties:{onlyIfContainsSeparator:{type:"boolean"},minimumDigits:{type:"integer",minimum:0,default:e},groupLength:{type:"integer",minimum:1,default:t}}});return at={create:a=>{let{onlyIfContainsSeparator:i,binary:o,octal:s,hexadecimal:d,number:l}={onlyIfContainsSeparator:!1,...a.options[0]},c={"0b":{onlyIfContainsSeparator:i,...u.binary,...o},"0o":{onlyIfContainsSeparator:i,...u.octal,...s},"0x":{onlyIfContainsSeparator:i,...u.hexadecimal,...d},"":{onlyIfContainsSeparator:i,...u.number,...l}};return{Literal(u){if(!e.isNumeric(u)||e.isLegacyOctal(u))return;let{raw:a}=u,i=a,o="";t(u)&&(i=a.slice(0,-1),o="n");let s=i.replaceAll("_",""),{prefix:d,data:l}=e.getPrefix(s),{onlyIfContainsSeparator:f}=c[d.toLowerCase()];if(f&&!a.includes("_"))return;let p=function(t,{prefix:r,data:u},a){let i=a[r.toLowerCase()];if(r)return r+n(u,i);let{number:o,mark:s,sign:d,power:l}=e.parseNumber(t);return function(t,r){let{integer:u,dot:a,fractional:i}=e.parseFloatNumber(t);return n(u,r)+a+n(i,r,!0)}(o,i)+s+d+n(l,a[""])}(s,{prefix:d,data:l},c)+o;if(a!==p)return{node:u,messageId:r,fix:e=>e.replaceText(u,p)}}}},meta:{type:"suggestion",docs:{description:"Enforce the style of numeric separators by correctly grouping digits.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{...Object.fromEntries(Object.entries(u).map(([e,t])=>[e,a(t)])),onlyIfContainsSeparator:{type:"boolean",default:!1}}}],messages:{[r]:"Invalid group length in numeric value."}}}}()),dH=/*@__PURE__*/oe(/*@__PURE__*/function(){if(au)return an;au=1;let{isParenthesized:e,findVariable:t}=sa,{extendFixRange:r,removeMemberExpressionProperty:n,removeMethodCall:u,renameVariable:a}=/*@__PURE__*/sZ(),{isLeftHandSide:i,singular:o,getScopes:s,avoidCapture:d,getVariableIdentifiers:l}=/*@__PURE__*/sL(),{isMethodCall:c}=/*@__PURE__*/sh(),f="error-zero-index",p="error-shift",h="error-pop",m="error-at-zero",g="error-at-minus-one",y="error-destructuring-declaration",b="error-destructuring-assignment",v="error-variable",x="suggest-nullish-coalescing-operator",E="suggest-logical-or-operator",C=e=>c(e,{method:"filter",minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}),A=(t,r)=>{if("AssignmentExpression"!==t.type||e(t,r))return!1;let{left:n}=S(t),[u]=n.elements,{type:a}="AssignmentPattern"===u.type?u.left:u;return"ObjectExpression"===a||"ObjectPattern"===a},D=(e,t)=>"LogicalExpression"===e.type&&(e.operator===t||"||"===t&&"??"===e.operator||"??"===t&&("||"===e.operator||"&&"===e.operator))||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type,S=e=>e?"AssignmentExpression"===e.type?e:"VariableDeclarator"===e.type?{left:e.id,right:e.init}:{}:{};function*_(e,t,r){let{left:n}=S(e),[u]=n.elements,a=t.getText("AssignmentPattern"===u.type?u.left:u);yield r.replaceText(n,a),A(e,t)&&(yield r.insertTextBefore(e,"("),yield r.insertTextAfter(e,")"))}let w=e=>"AssignmentPattern"===S(e).left.elements[0].type,T=(t,r,n,u)=>{let{left:a,right:i}=S(t),[o]=a.elements,s=o.right,d=r.getText(s);return(e(s,r)||D(s,u))&&(d=`(${d})`),n.insertTextAfter(i,` ${u} ${d}`)},F=(e,t)=>{let r,n;let{property:u}=S(t).right.callee;return w(t)?r=[{operator:"??",messageId:x},{operator:"||",messageId:E}].map(({messageId:r,operator:n})=>({messageId:r,*fix(r){yield r.replaceText(u,"find"),yield T(t,e,r,n),yield*_(t,e,r)}})):n=function*(r){yield r.replaceText(u,"find"),yield*_(t,e,r)},{fix:n,suggest:r}},k=e=>"MemberExpression"===e.parent.type&&!0===e.parent.computed&&e.parent.object===e&&"Literal"===e.parent.property.type&&"0"===e.parent.property.raw,P=e=>{let{left:t,right:r}=S(e.parent);return t&&r&&r===e&&"ArrayPattern"===t.type&&1===t.elements.length&&t.elements[0]&&"RestElement"!==t.elements[0].type};return an={create:e=>{let{sourceCode:x}=e,{checkFromLast:E}={checkFromLast:!0,...e.options[0]};e.on("MemberExpression",e=>{if(e.computed&&"Literal"===e.property.type&&"0"===e.property.raw&&C(e.object)&&!i(e))return{node:e.object.callee.property,messageId:f,fix:t=>[t.replaceText(e.object.callee.property,"find"),n(t,e,x)]}}),e.on("CallExpression",e=>{if(c(e,{method:"shift",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&C(e.callee.object))return{node:e.callee.object.callee.property,messageId:p,fix:t=>[t.replaceText(e.callee.object.callee.property,"find"),...u(t,e,x)]}}),e.on("VariableDeclarator",e=>{if("ArrayPattern"===e.id.type&&1===e.id.elements.length&&e.id.elements[0]&&"RestElement"!==e.id.elements[0].type&&C(e.init))return{node:e.init.callee.property,messageId:y,...F(x,e)}}),e.on("AssignmentExpression",e=>{if("ArrayPattern"===e.left.type&&1===e.left.elements.length&&e.left.elements[0]&&"RestElement"!==e.left.elements[0].type&&C(e.right))return{node:e.right.callee.property,messageId:b,...F(x,e)}}),e.on("VariableDeclarator",e=>{if(!("Identifier"===e.id.type&&C(e.init)&&"VariableDeclaration"===e.parent.type&&e.parent.declarations.includes(e)&&!("ExportNamedDeclaration"===e.parent.parent.type&&e.parent.parent.declaration===e.parent)))return;let u=x.getScope(e),i=t(u,e.id),c=l(i).filter(t=>t!==e.id);if(0===c.length)return;let f=[],p=[];for(let e of c)if(k(e))f.push(e.parent);else{if(!P(e))return;p.push(e.parent)}let h={node:e.init.callee.property,messageId:v};return p.some(e=>w(e))||(h.fix=function*(t){yield t.replaceText(e.init.callee.property,"find");let l=o(e.id.name);if(l){let e=d(l,s(u));yield*a(i,e,t),yield*r(t,x.ast.range)}for(let e of f)yield n(t,e,x);for(let e of p)yield*_(e,x,t)}),h}),e.on("CallExpression",e=>{if(c(e,{method:"at",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"Literal"===e.arguments[0].type&&"0"===e.arguments[0].raw&&C(e.callee.object))return{node:e.callee.object.callee.property,messageId:m,fix:t=>[t.replaceText(e.callee.object.callee.property,"find"),...u(t,e,x)]}}),E&&(e.on("CallExpression",e=>{if(c(e,{method:"pop",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&C(e.callee.object))return{node:e.callee.object.callee.property,messageId:h,fix:t=>[t.replaceText(e.callee.object.callee.property,"findLast"),...u(t,e,x)]}}),e.on("CallExpression",e=>{if(c(e,{method:"at",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"UnaryExpression"===e.arguments[0].type&&"-"===e.arguments[0].operator&&e.arguments[0].prefix&&"Literal"===e.arguments[0].argument.type&&"1"===e.arguments[0].argument.raw&&C(e.callee.object))return{node:e.callee.object.callee.property,messageId:g,fix:t=>[t.replaceText(e.callee.object.callee.property,"findLast"),...u(t,e,x)]}}))},meta:{type:"suggestion",docs:{description:"Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkFromLast:{type:"boolean",default:!0}}}],messages:{[v]:"Prefer `.find(…)` over `.filter(…)`.",[f]:"Prefer `.find(…)` over `.filter(…)[0]`.",[m]:"Prefer `.find(…)` over `.filter(…).at(0)`.",[p]:"Prefer `.find(…)` over `.filter(…).shift()`.",[h]:"Prefer `.findLast(…)` over `.filter(…).pop()`.",[g]:"Prefer `.findLast(…)` over `.filter(…).at(-1)`.",[y]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[b]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[x]:"Replace `.filter(…)` with `.find(…) ?? …`.",[E]:"Replace `.filter(…)` with `.find(…) || …`."}}}}()),dK=/*@__PURE__*/oe(/*@__PURE__*/function(){if(ai)return aa;ai=1;let{isNodeMatches:e}=/*@__PURE__*/sp(),{isMethodCall:t}=/*@__PURE__*/sh(),{removeMethodCall:r}=/*@__PURE__*/sZ(),n="prefer-array-flat-map",u=["React.Children","Children"];return aa={create:a=>({CallExpression(i){if(!(t(i,{method:"flat",optionalCall:!1,optionalMember:!1})&&(0===i.arguments.length||1===i.arguments.length&&"Literal"===i.arguments[0].type&&"1"===i.arguments[0].raw)&&t(i.callee.object,{method:"map",optionalCall:!1,optionalMember:!1})))return;let o=i.callee.object;if(e(o.callee.object,u))return;let{sourceCode:s}=a,d=o.callee.property;return{node:i,loc:{start:d.loc.start,end:i.loc.end},messageId:n,*fix(e){yield*r(e,i,s),yield e.replaceText(d,"flatMap")}}}}),meta:{type:"suggestion",docs:{description:"Prefer `.flatMap(…)` over `.map(…).flat()`.",recommended:!0},fixable:"code",messages:{[n]:"Prefer `.flatMap(…)` over `.map(…).flat()`."}}}}()),dY=/*@__PURE__*/oe(/*@__PURE__*/function(){if(as)return ao;as=1;let{getParenthesizedText:e,isArrayPrototypeProperty:t,isNodeMatches:r,isNodeMatchesNameOrPath:n,isParenthesized:u,isSameIdentifier:a,needsSemicolon:i,shouldAddParenthesesToMemberExpressionObject:o}=/*@__PURE__*/sL(),{fixSpaceAroundKeyword:s}=/*@__PURE__*/sZ(),{isMethodCall:d,isCallExpression:l}=/*@__PURE__*/sh(),c="prefer-array-flat",f=e=>"ArrayExpression"===e.type&&0===e.elements.length,p={testFunction(e){if(!d(e,{method:"flatMap",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return!1;let[t]=e.arguments;return"ArrowFunctionExpression"===t.type&&!t.async&&1===t.params.length&&a(t.params[0],t.body)},getArrayNode:e=>e.callee.object,description:"Array#flatMap()"},h={testFunction(e){if(!d(e,{method:"reduce",argumentsLength:2,optionalCall:!1,optionalMember:!1}))return!1;let[t,r]=e.arguments;if(!("ArrowFunctionExpression"===t.type&&!t.async&&2===t.params.length&&f(r)))return!1;let n=t.body,[u,i]=t.params;return d(n,{method:"concat",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&a(u,n.callee.object)&&a(i,n.arguments[0])||"ArrayExpression"===n.type&&2===n.elements.length&&n.elements.every((e,r)=>e?.type==="SpreadElement"&&"Identifier"===e.argument.type&&a(t.params[r],e.argument))},getArrayNode:e=>e.callee.object,description:"Array#reduce()"},m={testFunction:e=>d(e,{method:"concat",argumentsLength:1,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&f(e.callee.object),getArrayNode(e){let t=e.arguments[0];return"SpreadElement"===t.type?t.argument:t},description:"[].concat()",shouldSwitchToArray:e=>"SpreadElement"!==e.arguments[0].type},g={testFunction(e){if(!(d(e,{methods:["apply","call"],argumentsLength:2,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&t(e.callee.object,{property:"concat"})))return!1;let[r,n]=e.arguments;return f(r)&&("call"===e.callee.property.name||"SpreadElement"!==n.type)},getArrayNode(e){let t=e.arguments[1];return"SpreadElement"===t.type?t.argument:t},description:"Array.prototype.concat()",shouldSwitchToArray:e=>"SpreadElement"!==e.arguments[1].type&&"call"===e.callee.property.name},y=["_.flatten","lodash.flatten","underscore.flatten"];return ao={create:function(t){let{functions:a}={functions:[],...t.options[0]},d=[...a,...y],f=[p,h,m,g,{testFunction:e=>l(e,{argumentsLength:1,optional:!1})&&r(e.callee,d),getArrayNode:e=>e.arguments[0],description:e=>`${d.find(t=>n(e.callee,t)).trim()}()`}];return{*CallExpression(r){for(let{testFunction:n,description:a,getArrayNode:d,shouldSwitchToArray:l}of f){if(!n(r))continue;let f=d(r),p={description:"string"==typeof a?a:a(r)},h={node:r,messageId:c,data:p},{sourceCode:m}=t;m.getCommentsInside(r).length===m.getCommentsInside(f).length&&(h.fix=function(t,r,n,a){return"function"==typeof a&&(a=a(t)),function*(d){let l=e(r,n);a?l=`[${l}]`:!u(r,n)&&o(r,n)&&(l=`(${l})`),l=`${l}.flat()`,i(n.getTokenBefore(t),n,l)&&(l=`;${l}`),yield d.replaceText(t,l),yield*s(d,t,n)}}(r,f,m,l)),yield h}}}},meta:{type:"suggestion",docs:{description:"Prefer `Array#flat()` over legacy techniques to flatten arrays.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{functions:{type:"array",uniqueItems:!0}}}],messages:{[c]:"Prefer `Array#flat()` over `{{description}}` to flatten an array."}}}}()),dJ=/*@__PURE__*/oe(/*@__PURE__*/function(){if(al)return ad;al=1;let{checkVueTemplate:e}=/*@__PURE__*/ds(),{isBooleanNode:t,getParenthesizedRange:r,isNodeValueNotFunction:n}=/*@__PURE__*/sL(),{removeMemberExpressionProperty:u}=/*@__PURE__*/sZ(),{isLiteral:a,isUndefined:i,isMethodCall:o,isMemberExpression:s}=/*@__PURE__*/sh(),d="some",l="some-suggestion",c="filter",f=e=>"BinaryExpression"===e.parent.type&&e.parent.left===e&&(("!="===e.parent.operator||"=="===e.parent.operator||"==="===e.parent.operator||"!=="===e.parent.operator)&&i(e.parent.right)||("!="===e.parent.operator||"=="===e.parent.operator)&&a(e.parent.right,null)),p=e=>"UnaryExpression"===e.type&&"-"===e.operator&&e.argument&&"Literal"===e.argument.type&&1===e.argument.value,h=e=>a(e,0);return ad={create:e(e=>{e.on("CallExpression",n=>{if(!o(n,{methods:["find","findLast"],minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}))return;let u=f(n);if(!u&&!t(n))return;let a=n.callee.property;return{node:a,messageId:d,data:{method:a.name},suggest:[{messageId:l,*fix(t){if(yield t.replaceText(a,"some"),!u)return;let i=r(n,e.sourceCode);yield t.replaceTextRange([i[1],n.parent.range[1]],""),"!="!==n.parent.operator&&"!=="!==n.parent.operator&&(yield t.insertTextBeforeRange(i,"!"))}}]}}),e.on("BinaryExpression",t=>{let{left:r,right:n,operator:u}=t;if(!(o(r,{methods:["findIndex","findLastIndex"],argumentsLength:1,optionalCall:!1,optionalMember:!1})&&(["!==","!=",">","===","=="].includes(u)&&p(n)||[">=","<"].includes(u)&&h(n))))return;let a=r.callee.property;return{node:a,messageId:d,data:{method:a.name},*fix(n){["===","==","<"].includes(u)&&(yield n.insertTextBefore(t,"!")),yield n.replaceText(a,"some");let[i]=e.sourceCode.getTokenAfter(r,e=>"Punctuator"===e.type&&e.value===u).range,[,o]=t.range;yield n.removeRange([i,o])}}}),e.on("BinaryExpression",t=>{if(!((">"===t.operator||"!=="===t.operator)&&"Literal"===t.right.type&&"0"===t.right.raw&&s(t.left,{property:"length",optional:!1})&&o(t.left.object,{method:"filter",optionalCall:!1,optionalMember:!1})))return;let a=t.left.object,[i]=a.arguments;if(!i||n(i))return;let d=a.callee.property;return{node:d,messageId:c,*fix(n){yield n.replaceText(d,"some");let{sourceCode:a}=e,i=t.left;yield u(n,i,a),yield n.removeRange([r(i,a)[1],t.range[1]])}}})}),meta:{type:"suggestion",docs:{description:"Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.",recommended:!0},fixable:"code",messages:{[d]:"Prefer `.some(…)` over `.{{method}}(…)`.",[l]:"Replace `.{{method}}(…)` with `.some(…)`.",[c]:"Prefer `.some(…)` over non-zero length check from `.filter(…)`."},hasSuggestions:!0}}}()),dQ=/*@__PURE__*/oe(/*@__PURE__*/function(){if(af)return ac;af=1;let{isMethodCall:e}=/*@__PURE__*/sh(),t=t=>e(t,{method:"charCodeAt",optionalCall:!1,optionalMember:!1})?"codePointAt":e(t,{object:"String",method:"fromCharCode",optionalCall:!1,optionalMember:!1})?"fromCodePoint":void 0;return ac={create:()=>({CallExpression(e){let r=t(e);if(!r)return;let n=e.callee.property,u=n.name;return{node:n,messageId:`error/${u}`,suggest:[{messageId:`suggestion/${r}`,fix:e=>e.replaceText(n,r)}]}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.",recommended:!0},hasSuggestions:!0,messages:{"error/charCodeAt":"Prefer `String#codePointAt()` over `String#charCodeAt()`.","error/fromCharCode":"Prefer `String.fromCodePoint()` over `String.fromCharCode()`.","suggestion/codePointAt":"Use `String#codePointAt()`.","suggestion/fromCodePoint":"Use `String.fromCodePoint()`."}}}}()),dX=/*@__PURE__*/oe(/*@__PURE__*/function(){if(ah)return ap;ah=1;let{findVariable:e}=sa,{functionTypes:t}=/*@__PURE__*/sh(),r="preferDefaultParameters",n="preferDefaultParametersSuggest",u=(e,t)=>e&&t&&"Identifier"===e.type&&"LogicalExpression"===t.type&&("||"===t.operator||"??"===t.operator)&&"Identifier"===t.left.type&&"Literal"===t.right.type,a=(e,t)=>{if(!t)return!1;if("CallExpression"===t.type)return!0;for(let r of e.visitorKeys[t.type]){let n=t[r];if(Array.isArray(n)){for(let t of n)if(a(e,t))return!0}else if(a(e,n))return!0}return!1},i=(e,t,r)=>{for(let n of t.body.body){if(n===r)break;if(a(e,n))return!0}return!1},o=(e,t,r)=>!!e&&t[0].identifier!==r||!e&&t.length>1,s=(e,t)=>{let r=e.at(-1);return t&&t===r},d=(e,t)=>{if("ArrowFunctionExpression"!==t.type||t.params.length>1)return!1;let[r]=t.params,n=e.getTokenBefore(r),u=e.getTokenAfter(r);return!u||!n||"("!==n.value||")"!==u.value},l=(e,t,r)=>{let{line:n}=r.loc.start,{column:u}=r.loc.end,a=t.getText(r),i=t.lines[n-1],o=i.trim()===a,s=" "===i[u];return o?e.removeRange([t.getIndexFromLoc({line:n,column:0}),t.getIndexFromLoc({line:n+1,column:0})]):s?e.removeRange([r.range[0],r.range[1]+1]):e.remove(r)};return ap={create:a=>{let{sourceCode:c}=a,f=[],p=(t,a,p,h)=>{let m=f.at(-1);if(!m||!u(a,p))return;let{name:g}=a,{left:{name:y},right:{raw:b}}=p;if(h&&g!==y)return;let v=e(c.getScope(t),y);if(!v)return;let{references:x}=v,{params:E}=m,C=E.find(e=>"Identifier"===e.type&&e.name===y);if(i(c,m,t)||o(h,x,a)||!s(E,C))return;let A=d(c,m)?`(${g} = ${b})`:`${g} = ${b}`;return{node:t,messageId:r,suggest:[{messageId:n,fix:e=>[e.replaceText(C,A),l(e,c,t)]}]}};a.on(t,e=>{f.push(e)}),a.onExit(t,()=>{f.pop()}),a.on("AssignmentExpression",e=>{if("ExpressionStatement"===e.parent.type&&e.parent.expression===e)return p(e.parent,e.left,e.right,!0)}),a.on("VariableDeclarator",e=>{if("VariableDeclaration"===e.parent.type&&e.parent.declarations[0]===e)return p(e.parent,e.id,e.init,!1)})},meta:{type:"suggestion",docs:{description:"Prefer default parameters over reassignment.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[r]:"Prefer default parameters over reassignment.",[n]:"Replace reassignment with default parameter."}}}}()),d0=/*@__PURE__*/oe(/*@__PURE__*/function(){if(ab)return ay;ab=1;let{isParenthesized:e,getParenthesizedText:t}=/*@__PURE__*/so(),r=/*@__PURE__*/sT(),n=ag?am:(ag=1,am=function(e,{operator:t,property:r}){if(!r)throw Error("`property` is required.");return("LogicalExpression"!==e.type||e.operator!==t)&&("AwaitExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"ArrowFunctionExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type)}),u=/*@__PURE__*/sk(),a="prefer-logical-operator-over-ternary/error",i="prefer-logical-operator-over-ternary/suggestion";function o(e,t,n){if(r(e,t))return!0;if(e.type!==t.type)return!1;switch(e.type){case"AwaitExpression":return o(e.argument,t.argument,n);case"LogicalExpression":return e.operator===t.operator&&o(e.left,t.left,n)&&o(e.right,t.right,n);case"UnaryExpression":return e.operator===t.operator&&e.prefix===t.prefix&&o(e.argument,t.argument,n);case"UpdateExpression":return!1}return n.getText(e)===n.getText(t)}function s({sourceCode:r,conditionalExpression:o,left:s,right:d}){return{node:o,messageId:a,suggest:["??","||"].map(a=>({messageId:i,data:{operator:a},fix:i=>(function({fixer:r,sourceCode:a,conditionalExpression:i,left:o,right:s,operator:d}){let l=[o,s].map((r,u)=>{let i=e(r,a),o=i?t(r,a):a.getText(r);return!i&&n(r,{operator:d,property:0===u?"left":"right"})&&(o=`(${o})`),o}).join(` ${d} `);return u(a.getTokenBefore(i),a,l)&&(l=`;${l}`),r.replaceText(i,l)})({fixer:i,sourceCode:r,conditionalExpression:o,left:s,right:d,operator:a})}))}}return ay={create:e=>{let{sourceCode:t}=e;return{ConditionalExpression(e){let{test:r,consequent:n,alternate:u}=e;return o(r,n,t)?s({sourceCode:t,conditionalExpression:e,left:r,right:u}):"UnaryExpression"===r.type&&"!"===r.operator&&r.prefix&&o(r.argument,u,t)?s({sourceCode:t,conditionalExpression:e,left:r.argument,right:n}):void 0}}},meta:{type:"suggestion",docs:{description:"Prefer using a logical operator over a ternary.",recommended:!0},hasSuggestions:!0,messages:{[a]:"Prefer using a logical operator over a ternary.",[i]:"Switch to `{{operator}}` operator."}}}}()),d1=/*@__PURE__*/oe(/*@__PURE__*/function(){if(ax)return av;ax=1;let{isOpeningParenToken:e,isClosingParenToken:t}=sa,r=/*@__PURE__*/dU(),n="with-name",u="without-name";return av={create:a=>({CatchClause(i){let o=i.param;if(!o)return;let{sourceCode:s}=a;if(s.getDeclaredVariables(o.parent).some(e=>e.references.length>0))return;let{type:d,name:l,parent:c}=o;return{node:o,messageId:"Identifier"===d?n:u,data:{name:l},*fix(n){let u=s.getTokenBefore(o);r(u,{test:e,expected:"(",ruleId:"prefer-optional-catch-binding"});let a=s.getTokenAfter(o);r(a,{test:t,expected:")",ruleId:"prefer-optional-catch-binding"}),yield n.remove(u),yield n.remove(o),yield n.remove(a);let[,i]=a.range,[d]=c.body.range,l=s.text.slice(i,d),f=l.length-l.trimStart().length;0!==f&&(yield n.removeRange([i,i+f]))}}}}),meta:{type:"suggestion",docs:{description:"Prefer omitting the `catch` binding parameter.",recommended:!0},fixable:"code",messages:{[n]:"Remove unused catch binding `{{name}}`.",[u]:"Remove unused catch binding."}}}}()),d2=/*@__PURE__*/oe(/*@__PURE__*/function(){if(aC)return aE;aC=1;let{isParenthesized:e,getStaticValue:t}=sa,{checkVueTemplate:r}=/*@__PURE__*/ds(),{isRegexLiteral:n,isNewExpression:u,isMethodCall:a}=/*@__PURE__*/sh(),{isBooleanNode:i,shouldAddParenthesesToMemberExpressionObject:o}=/*@__PURE__*/sL(),s="regexp-exec",d="string-match",l="suggestion",c=[{type:s,test:e=>a(e,{method:"exec",argumentsLength:1,optionalCall:!1,optionalMember:!1}),getNodes:e=>({stringNode:e.arguments[0],methodNode:e.callee.property,regexpNode:e.callee.object}),fix:(e,{methodNode:t})=>e.replaceText(t,"test")},{type:d,test:e=>a(e,{method:"match",argumentsLength:1,optionalCall:!1,optionalMember:!1}),getNodes:e=>({stringNode:e.callee.object,methodNode:e.callee.property,regexpNode:e.arguments[0]}),*fix(t,{stringNode:r,methodNode:n,regexpNode:u},a){yield t.replaceText(n,"test");let i=a.getText(r);e(u,a)||"SequenceExpression"!==r.type||(i=`(${i})`),yield t.replaceText(u,i);let s=a.getText(u);!e(r,a)&&o(u,a)&&(s=`(${s})`),yield t.replaceText(r,s)}}],f=e=>n(e)||u(e,{name:"RegExp"}),p=(e,r)=>{if(n(e))return!e.regex.flags.includes("g");let u=t(e,r);if(!u)return!1;let{value:a}=u;return"[object RegExp]"===Object.prototype.toString.call(a)&&!a.global};return aE={create:r(e=>({*CallExpression(t){if(i(t))for(let{type:r,test:n,getNodes:u,fix:a}of c){if(!n(t))continue;let i=u(t),{methodNode:o,regexpNode:d}=i;if("Literal"===d.type&&!d.regex)continue;let c={node:r===s?o:t,messageId:r},{sourceCode:h}=e,m=e=>a(e,i,h);f(d)||p(d,h.getScope(d))?c.fix=m:c.suggest=[{messageId:l,fix:m}],yield c}}})),meta:{type:"suggestion",docs:{description:"Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[s]:"Prefer `.test(…)` over `.exec(…)`.",[d]:"Prefer `RegExp#test(…)` over `String#match(…)`.",[l]:"Switch to `RegExp#test(…)`."}}}}()),d3=/*@__PURE__*/oe(/*@__PURE__*/function(){if(aD)return aA;aD=1;let{findVariable:e}=sa,{getVariableIdentifiers:t}=/*@__PURE__*/sL(),{isCallOrNewExpression:r,isMethodCall:n}=/*@__PURE__*/sh(),u="error",a="suggestion",i=["concat","copyWithin","fill","filter","flat","flatMap","map","reverse","slice","sort","splice","toReversed","toSorted","toSpliced","with"],o=e=>{let{type:t,optional:r,callee:n,arguments:u}=e.parent.parent??{};return"CallExpression"===t&&!r&&"MemberExpression"===n.type&&!n.computed&&!n.optional&&n.object===e&&"Identifier"===n.property.type&&"includes"===n.property.name&&1===u.length&&"SpreadElement"!==u[0].type},s=new Set(["ForOfStatement","ForStatement","ForInStatement","WhileStatement","DoWhileStatement","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]),d=(e,t)=>{let r=t.parent.parent.parent,{parent:n}=e.parent;for(;n&&n!==r;){if(s.has(n.type))return!0;n=n.parent}return!1};return aA={create:s=>({Identifier(l){let{parent:c}=l;if(!("VariableDeclarator"===c.type&&c.id===l&&c.init&&"VariableDeclaration"===c.parent.type&&c.parent.declarations.includes(c)&&!("ExportNamedDeclaration"===c.parent.parent.type&&c.parent.parent.declaration===c.parent)&&("ArrayExpression"===c.init.type||r(c.init,{name:"Array",optional:!1})||n(c.init,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||n(c.init,{methods:i,optionalCall:!1,optionalMember:!1}))))return;let f=e(s.sourceCode.getScope(l),l);if(!f)return;let p=t(f).filter(e=>e!==l);if(0===p.length||p.some(e=>!o(e))||1===p.length&&p.every(e=>!d(e,l)))return;let h={node:l,messageId:u,data:{name:l.name}},m=function*(e){for(let t of(yield e.insertTextBefore(l.parent.init,"new Set("),yield e.insertTextAfter(l.parent.init,")"),p))yield e.replaceText(t.parent.property,"has")};return l.typeAnnotation?h.suggest=[{messageId:a,fix:m}]:h.fix=m,h}}),meta:{type:"suggestion",docs:{description:"Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[u]:"`{{name}}` should be a `Set`, and use `{{name}}.has()` to check existence or non-existence.",[a]:"Switch `{{name}}` to `Set`."}}}}()),d4=/*@__PURE__*/oe(/*@__PURE__*/function(){if(a_)return aS;a_=1;let{isStringLiteral:e,isDirective:t}=/*@__PURE__*/sh(),{fixSpaceAroundKeyword:r}=/*@__PURE__*/sZ(),n="prefer-string-raw";return aS={create:u=>{u.on("Literal",a=>{if(!e(a)||t(a.parent)||("ImportDeclaration"===a.parent.type||"ExportNamedDeclaration"===a.parent.type||"ExportAllDeclaration"===a.parent.type)&&a.parent.source===a||"Property"===a.parent.type&&!a.parent.computed&&a.parent.key===a||"JSXAttribute"===a.parent.type&&a.parent.value===a||"TSEnumMember"===a.parent.type&&(a.parent.initializer===a||a.parent.id===a))return;let{raw:i}=a;if("\\"===i.at(-2)||!i.includes("\\\\")||i.includes("`")||i.includes("${")||a.loc.start.line!==a.loc.end.line)return;let o=function(e){let t=e.charAt(0);e=e.slice(1,-1);let r="";for(let n=0;n<e.length;n++){let u=e[n];if("\\"===u){let u=e[n+1];if("\\"===u||u===t){r+=u,n++;continue}}r+=u}return r}(i);if(o===a.value)return{node:a,messageId:n,*fix(e){yield e.replaceText(a,`String.raw\`${o}\``),yield*r(e,a,u.sourceCode)}}})},meta:{type:"suggestion",docs:{description:"Prefer using the `String.raw` tag to avoid escaping `\\`.",recommended:!0},fixable:"code",messages:{[n]:"`String.raw` should be used to avoid escaping `\\`."}}}}()),d5=/*@__PURE__*/oe(/*@__PURE__*/function(){if(ak)return aF;ak=1;let{hasSideEffect:e}=sa,t=/*@__PURE__*/sT(),r=aT?aw:(aT=1,aw=function(e,t){let{line:r,column:n}=t.getLocFromIndex(e.range[0]);return t.getLines()[r-1].slice(0,n).match(/\s*$/)[0]}),n="prefer-switch",u=(e,r)=>e===r||t(e,r),a=new Set(["WhileStatement","DoWhileStatement","ForStatement","ForOfStatement","ForInStatement","SwitchStatement"]),i=e=>{for(;e.parent;e=e.parent)if(a.has(e.type))return e},o=(e,t)=>e.range[0]>=t.range[0]&&e.range[1]<=t.range[1];return aF={create:t=>{let a={minimumCases:3,emptyDefaultCase:"no-default-comment",insertBreakInDefaultCase:!1,...t.options[0]},{sourceCode:s}=t,d=new Set,l=[],c=new Set;return{IfStatement(e){d.add(e)},BreakStatement(e){e.label||l.push(e)},*"Program:exit"(){for(let t of d){if(c.has(t))continue;let{discriminant:d,ifStatements:f}=function(e){let t;let r=[];for(;e&&"IfStatement"===e.type;e=e.alternate){let{test:n}=e,a=function(e){let t=[e],r=[];for(;t.length>0;){if("LogicalExpression"===(e=t.pop()).type&&"||"===e.operator){t.push(e.right,e.left);continue}if("BinaryExpression"!==e.type||"==="!==e.operator)return[];r.push(e)}return r}(n);if(0===a.length)break;if(!t){let[{left:e,right:r}]=a;t=[e,r]}let i=function(e,t){for(let{left:r,right:n}of e)if(0===(t=t.filter(e=>u(e,r)||u(e,n))).length)break;return t}(a,t);if(0===i.length)break;t=i,r.push({statement:e,compareExpressions:a})}return{ifStatements:r,discriminant:t&&t[0]}}(t);if(!d||f.length<a.minimumCases)continue;for(let{statement:e}of f)c.add(e);let p={loc:{start:t.loc.start,end:t.consequent.loc.start},messageId:n};e(d,s)||f.some(({statement:e})=>(function(e,t){for(let r of e){if(!o(r,t))continue;let e=i(r);if(!e||o(t,e))return!0}return!1})(l,e))||(p.fix=function({discriminant:e,ifStatements:t},n,a){let i=n.getText(e);return function*(o){let s=t[0].statement,d=r(s,n);yield o.insertTextBefore(s,`switch (${i}) {`);let l=t.at(-1).statement;if(l.alternate){let{alternate:e}=l;yield o.insertTextBefore(e,`
|
|
5
|
+
${d}default: `)}else switch(a.emptyDefaultCase){case"no-default-comment":yield o.insertTextAfter(s,`
|
|
6
|
+
${d}// No default`);break;case"do-nothing-comment":yield o.insertTextAfter(s,`
|
|
7
|
+
${d}default:
|
|
8
|
+
${d}// Do nothing`)}for(let{statement:r,compareExpressions:a}of(yield o.insertTextAfter(s,`
|
|
9
|
+
${d}}`),t)){let{consequent:t,alternate:i,range:s}=r,l=[s[0],t.range[0]];if(i){let[,e]=t.range,[r]=i.range;yield o.replaceTextRange([e,r],"")}for(let{left:r,right:i}of(yield o.replaceTextRange(l,""),a)){let a=u(r,e)?i:r,s=n.getText(a);yield o.insertTextBefore(t,`
|
|
10
|
+
${d}case ${s}: `)}(function e(t){switch(t.type){case"ReturnStatement":case"ThrowStatement":return!1;case"IfStatement":return!t.alternate||e(t.consequent)||e(t.alternate);case"BlockStatement":{let r=function e(t){let{body:r}=t;for(let t=r.length-1;t>=0;t--){let n=r[t];if("FunctionDeclaration"!==n.type&&"EmptyStatement"!==n.type){if("BlockStatement"===n.type){let t=e(n);if(t)return t;continue}return n}}}(t);return!r||e(r)}default:return!0}})(t)&&(yield*function*(e,t,r,n){if("BlockStatement"===e.type){let u=r.getLastToken(e);yield t.insertTextBefore(u,`
|
|
11
11
|
${n}break;
|
|
12
12
|
${n}`)}else yield t.insertTextAfter(e,`
|
|
13
|
-
${n}break;`)}(t,
|
|
13
|
+
${n}break;`)}(t,o,n,d),yield*function*(e,t,r){e&&"BlockStatement"!==e.type&&(yield t.insertTextBefore(e,`{
|
|
14
14
|
${r}`),yield t.insertTextAfter(e,`
|
|
15
|
-
${r}}`))}(t,a,o))}}}({discriminant:n,ifStatements:i},r,t)),yield o}}}},meta:{type:"suggestion",docs:{description:"Prefer `switch` over multiple `else-if`.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{minimumCases:{type:"integer",minimum:2,default:3},emptyDefaultCase:{enum:["no-default-comment","do-nothing-comment","no-default-case"],default:"no-default-comment"}}}],messages:{[h1]:"Use `switch` instead of multiple `else-if`."}}});const{appendArgument:h6}=uv,{isMethodCall:h9}=tK,h7="require-number-to-fixed-digits-argument";var me=/*@__PURE__*/ec({create:e=>({CallExpression(t){if(!h9(t,{method:"toFixed",argumentsLength:0,optionalCall:!1,optionalMember:!1})||"NewExpression"===t.callee.object.type)return;let{sourceCode:r}=e,[n,u]=r.getLastTokens(t,2);return{loc:{start:n.loc.start,end:u.loc.end},messageId:h7,fix:e=>h6(e,t,"0",r)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the digits argument with `Number#toFixed()`.",recommended:!0},fixable:"code",messages:{[h7]:"Missing the digits argument."}}});const mt=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((e,t)=>Math.min(e,t.length),1/0):0};function mr(e){return(mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,u,a,i,o=[],s=!0,d=!1;try{if(a=(r=r.call(e)).next,0===t);else for(;!(s=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){d=!0,u=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw u}}return o}}(e,t)||mu(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mu(e,t){if(e){if("string"==typeof e)return ma(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ma(e,t):void 0}}function ma(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mi(e,t){return e(t={exports:{}},t.exports),t.exports}var mo=mi(function(e,t){!function e(t){var r,n,u,a,i,o;function s(e){var t,r,n={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],n[t]="object"==typeof r&&null!==r?s(r):r);return n}function d(e,t){this.parent=e,this.key=t}function l(e,t,r,n){this.node=e,this.path=t,this.wrap=r,this.ref=n}function c(){}function f(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function p(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function h(e,t){for(var r=e.length-1;r>=0;--r)if(e[r].node===t)return!0;return!1}function m(e,t){return(new c).traverse(e,t)}return r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},u={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},n={Break:a={},Skip:i={},Remove:o={}},d.prototype.replace=function(e){this.parent[this.key]=e},d.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},c.prototype.path=function(){var e,t,r,n,u;function a(e,t){if(Array.isArray(t))for(r=0,n=t.length;r<n;++r)e.push(t[r]);else e.push(t)}if(!this.__current.path)return null;for(u=[],e=2,t=this.__leavelist.length;e<t;++e)a(u,this.__leavelist[e].path);return a(u,this.__current.path),u},c.prototype.type=function(){return this.current().type||this.__current.wrap},c.prototype.parents=function(){var e,t,r;for(r=[],e=1,t=this.__leavelist.length;e<t;++e)r.push(this.__leavelist[e].node);return r},c.prototype.current=function(){return this.__current.node},c.prototype.__execute=function(e,t){var r,n;return n=void 0,r=this.__current,this.__current=t,this.__state=null,e&&(n=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=r,n},c.prototype.notify=function(e){this.__state=e},c.prototype.skip=function(){this.notify(i)},c.prototype.break=function(){this.notify(a)},c.prototype.remove=function(){this.notify(o)},c.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===t.fallback?this.__fallback=Object.keys:"function"==typeof t.fallback&&(this.__fallback=t.fallback),this.__keys=u,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},c.prototype.traverse=function(e,t){var r,n,u,o,s,d,c,m,g,y,b,v;for(this.__initialize(e,t),v={},r=this.__worklist,n=this.__leavelist,r.push(new l(e,null,null,null)),n.push(new l(null,null,null,null));r.length;)if((u=r.pop())!==v){if(u.node){if(d=this.__execute(t.enter,u),this.__state===a||d===a)return;if(r.push(v),n.push(u),this.__state===i||d===i)continue;if(s=(o=u.node).type||u.wrap,!(y=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");y=this.__fallback(o)}for(m=y.length;(m-=1)>=0;)if(b=o[c=y[m]]){if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]&&!h(n,b[g])){if(p(s,y[m]))u=new l(b[g],[c,g],"Property",null);else{if(!f(b[g]))continue;u=new l(b[g],[c,g],null,null)}r.push(u)}}else if(f(b)){if(h(n,b))continue;r.push(new l(b,c,null,null))}}}}else if(u=n.pop(),d=this.__execute(t.leave,u),this.__state===a||d===a)return},c.prototype.replace=function(e,t){var r,n,u,s,c,h,m,g,y,b,v,x,E;function C(e){var t,n,u,a;if(e.ref.remove()){for(n=e.ref.key,a=e.ref.parent,t=r.length;t--;)if((u=r[t]).ref&&u.ref.parent===a){if(u.ref.key<n)break;--u.ref.key}}}for(this.__initialize(e,t),v={},r=this.__worklist,n=this.__leavelist,h=new l(e,null,null,new d(x={root:e},"root")),r.push(h),n.push(h);r.length;)if((h=r.pop())!==v){if(void 0!==(c=this.__execute(t.enter,h))&&c!==a&&c!==i&&c!==o&&(h.ref.replace(c),h.node=c),this.__state!==o&&c!==o||(C(h),h.node=null),this.__state===a||c===a)return x.root;if((u=h.node)&&(r.push(v),n.push(h),this.__state!==i&&c!==i)){if(s=u.type||h.wrap,!(y=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");y=this.__fallback(u)}for(m=y.length;(m-=1)>=0;)if(b=u[E=y[m]]){if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]){if(p(s,y[m]))h=new l(b[g],[E,g],"Property",new d(b,g));else{if(!f(b[g]))continue;h=new l(b[g],[E,g],null,new d(b,g))}r.push(h)}}else f(b)&&r.push(new l(b,E,null,new d(u,E)))}}}else if(h=n.pop(),void 0!==(c=this.__execute(t.leave,h))&&c!==a&&c!==i&&c!==o&&h.ref.replace(c),this.__state!==o&&c!==o||C(h),this.__state===a||c===a)break;return x.root},t.Syntax=r,t.traverse=m,t.replace=function(e,t){return(new c).replace(e,t)},t.attachComments=function(e,t,r){var u,a,i,o,d=[];if(!e.range)throw Error("attachComments needs range information");if(!r.length){if(t.length){for(i=0,a=t.length;i<a;i+=1)(u=s(t[i])).extendedRange=[0,e.range[0]],d.push(u);e.leadingComments=d}return e}for(i=0,a=t.length;i<a;i+=1)d.push(function(e,t){var r;return r=function(e,t){var r,n,u,a;for(n=e.length,u=0;n;)t(e[a=u+(r=n>>>1)])?n=r:(u=a+1,n-=r+1);return u}(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}(s(t[i]),r));return o=0,m(e,{enter:function(e){for(var t;o<d.length&&!((t=d[o]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?n.Break:d[o].extendedRange[0]>e.range[1]?n.Skip:void 0}}),o=0,m(e,{leave:function(e){for(var t;o<d.length&&(t=d[o],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?n.Break:d[o].extendedRange[0]>e.range[1]?n.Skip:void 0}}),e},t.VisitorKeys=u,t.VisitorOption=n,t.Controller=c,t.cloneEnvironment=function(){return e({})},t}(t)}),ms=mi(function(e){e.exports&&(e.exports=function(){function e(t,r,n,u){this.message=t,this.expected=r,this.found=n,this.location=u,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.buildMessage=function(e,t){var r={literal:function(e){return'"'+u(e.text)+'"'},class:function(e){var t,r="";for(t=0;t<e.parts.length;t++)r+=e.parts[t]instanceof Array?a(e.parts[t][0])+"-"+a(e.parts[t][1]):a(e.parts[t]);return"["+(e.inverted?"^":"")+r+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function u(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function a(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}return"Expected "+function(e){var t,n,u,a=Array(e.length);for(t=0;t<e.length;t++)a[t]=r[(u=e[t]).type](u);if(a.sort(),a.length>0){for(t=1,n=1;t<a.length;t++)a[t-1]!==a[t]&&(a[n]=a[t],n++);a.length=n}switch(a.length){case 1:return a[0];case 2:return a[0]+" or "+a[1];default:return a.slice(0,-1).join(", ")+", or "+a[a.length-1]}}(e)+" but "+(t?'"'+u(t)+'"':"end of input")+" found."},{SyntaxError:e,parse:function(t,r){r=void 0!==r?r:{};var n,u,a,i,o,s,d,l,c={},f={start:ev},p=ev,h=em(" ",!1),m=/^[^ [\],():#!=><~+.]/,g=eg([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),y=em(">",!1),b=em("~",!1),v=em("+",!1),x=em(",",!1),E=function(e,t){return[e].concat(t.map(function(e){return e[3]}))},C=em("!",!1),A=em("*",!1),D=em("#",!1),S=em("[",!1),_=em("]",!1),w=/^[><!]/,T=eg([">","<","!"],!1,!1),P=em("=",!1),k=function(e){return(e||"")+"="},F=/^[><]/,I=eg([">","<"],!1,!1),B=em(".",!1),j=function(e,t,r){return{type:"attribute",name:e,operator:t,value:r}},L=em('"',!1),O=/^[^\\"]/,N=eg(["\\",'"'],!0,!1),R=em("\\",!1),M={type:"any"},$=function(e,t){return e+t},U=function(e){return{type:"literal",value:e.join("").replace(/\\(.)/g,function(e,t){switch(t){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return" ";case"v":return"\v";default:return t}})}},z=em("'",!1),V=/^[^\\']/,q=eg(["\\","'"],!0,!1),W=/^[0-9]/,G=eg([["0","9"]],!1,!1),Z=em("type(",!1),H=/^[^ )]/,K=eg([" ",")"],!0,!1),Y=em(")",!1),J=/^[imsu]/,X=eg(["i","m","s","u"],!1,!1),Q=em("/",!1),ee=/^[^\/]/,et=eg(["/"],!0,!1),er=em(":not(",!1),en=em(":matches(",!1),eu=em(":has(",!1),ea=em(":first-child",!1),ei=em(":last-child",!1),eo=em(":nth-child(",!1),es=em(":nth-last-child(",!1),ed=em(":",!1),el=0,ec=[{line:1,column:1}],ef=0,ep=[],eh={};if("startRule"in r){if(!(r.startRule in f))throw Error("Can't start parsing from rule \""+r.startRule+'".');p=f[r.startRule]}function em(e,t){return{type:"literal",text:e,ignoreCase:t}}function eg(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function ey(e){var r,n=ec[e];if(n)return n;for(r=e-1;!ec[r];)r--;for(n={line:(n=ec[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return ec[e]=n,n}function eb(e){el<ef||(el>ef&&(ef=el,ep=[]),ep.push(e))}function ev(){var e,t,r,n,u=32*el+0,a=eh[u];return a?(el=a.nextPos,a.result):(e=el,(t=ex())!==c&&(r=eA())!==c&&ex()!==c?e=t=1===(n=r).length?n[0]:{type:"matches",selectors:n}:(el=e,e=c),e===c&&(e=el,(t=ex())!==c&&(t=void 0),e=t),eh[u]={nextPos:el,result:e},e)}function ex(){var e,r,n=32*el+1,u=eh[n];if(u)return el=u.nextPos,u.result;for(e=[],32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(h));r!==c;)e.push(r),32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(h));return eh[n]={nextPos:el,result:e},e}function eE(){var e,r,n,u=32*el+2,a=eh[u];if(a)return el=a.nextPos,a.result;if(r=[],m.test(t.charAt(el))?(n=t.charAt(el),el++):(n=c,eb(g)),n!==c)for(;n!==c;)r.push(n),m.test(t.charAt(el))?(n=t.charAt(el),el++):(n=c,eb(g));else r=c;return r!==c&&(r=r.join("")),e=r,eh[u]={nextPos:el,result:e},e}function eC(){var e,r,n,u=32*el+3,a=eh[u];return a?(el=a.nextPos,a.result):(e=el,(r=ex())!==c?(62===t.charCodeAt(el)?(n=">",el++):(n=c,eb(y)),n!==c&&ex()!==c?e=r="child":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,(r=ex())!==c?(126===t.charCodeAt(el)?(n="~",el++):(n=c,eb(b)),n!==c&&ex()!==c?e=r="sibling":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,(r=ex())!==c?(43===t.charCodeAt(el)?(n="+",el++):(n=c,eb(v)),n!==c&&ex()!==c?e=r="adjacent":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(h)),r!==c&&(n=ex())!==c?e=r="descendant":(el=e,e=c)))),eh[u]={nextPos:el,result:e},e)}function eA(){var e,r,n,u,a,i,o,s,d=32*el+5,l=eh[d];if(l)return el=l.nextPos,l.result;if(e=el,(r=eS())!==c){for(n=[],u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eS())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);u!==c;)n.push(u),u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eS())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=E(r,n):(el=e,e=c)}else el=e,e=c;return eh[d]={nextPos:el,result:e},e}function eD(){var e,t,r,n,u,a=32*el+6,i=eh[a];return i?(el=i.nextPos,i.result):(e=el,(t=eC())===c&&(t=null),t!==c&&(r=eS())!==c?(u=r,e=t=(n=t)?{type:n,left:{type:"exactNode"},right:u}:u):(el=e,e=c),eh[a]={nextPos:el,result:e},e)}function eS(){var e,t,r,n,u,a,i,o=32*el+7,s=eh[o];if(s)return el=s.nextPos,s.result;if(e=el,(t=e_())!==c){for(r=[],n=el,(u=eC())!==c&&(a=e_())!==c?n=u=[u,a]:(el=n,n=c);n!==c;)r.push(n),n=el,(u=eC())!==c&&(a=e_())!==c?n=u=[u,a]:(el=n,n=c);r!==c?(i=t,e=t=r.reduce(function(e,t){return{type:t[0],left:e,right:t[1]}},i)):(el=e,e=c)}else el=e,e=c;return eh[o]={nextPos:el,result:e},e}function e_(){var e,r,n,u,a,i,o,s=32*el+8,d=eh[s];if(d)return el=d.nextPos,d.result;if(e=el,33===t.charCodeAt(el)?(r="!",el++):(r=c,eb(C)),r===c&&(r=null),r!==c){if(n=[],(u=ew())!==c)for(;u!==c;)n.push(u),u=ew();else n=c;n!==c?(a=r,o=1===(i=n).length?i[0]:{type:"compound",selectors:i},a&&(o.subject=!0),e=r=o):(el=e,e=c)}else el=e,e=c;return eh[s]={nextPos:el,result:e},e}function ew(){var e,r,n,u,a,i,o,s,d,l,f,p,h,m,g,y,b,v,ec,ef,ep,em,eg,ey,ev,eC,eS,e_,ew,eF,eI,eB,ej,eL,eO,eN,eR,eM,e$,eU,ez,eV,eq,eW,eG,eZ,eH,eK,eY,eJ,eX,eQ,e0,e1,e2,e3,e4,e5,e8,e6,e9,e7,te,tt,tr,tn,tu,ta=32*el+9,ti=eh[ta];return ti?(el=ti.nextPos,ti.result):((tu=(u=eh[n=32*el+10])?(el=u.nextPos,u.result):(42===t.charCodeAt(el)?(r="*",el++):(r=c,eb(A)),r!==c&&(r={type:"wildcard",value:r}),e=r,eh[n]={nextPos:el,result:e},e))===c&&(tu=(d=eh[s=32*el+11])?(el=d.nextPos,d.result):(a=el,35===t.charCodeAt(el)?(i="#",el++):(i=c,eb(D)),i===c&&(i=null),i!==c&&(o=eE())!==c?a=i={type:"identifier",value:o}:(el=a,a=c),eh[s]={nextPos:el,result:a},a))===c&&(tu=(g=eh[m=32*el+12])?(el=g.nextPos,g.result):(l=el,91===t.charCodeAt(el)?(f="[",el++):(f=c,eb(S)),f!==c&&ex()!==c&&(p=(ep=eh[ef=32*el+16])?(el=ep.nextPos,ep.result):(y=el,(b=eT())!==c&&ex()!==c&&(v=(eC=eh[ev=32*el+14])?(el=eC.nextPos,eC.result):(em=el,33===t.charCodeAt(el)?(eg="!",el++):(eg=c,eb(C)),eg===c&&(eg=null),eg!==c?(61===t.charCodeAt(el)?(ey="=",el++):(ey=c,eb(P)),ey!==c?em=eg=k(eg):(el=em,em=c)):(el=em,em=c),eh[ev]={nextPos:el,result:em},em))!==c&&ex()!==c?((ec=function(){var e,r,n,u,a,i=32*el+20,o=eh[i];if(o)return el=o.nextPos,o.result;if(e=el,"type("===t.substr(el,5)?(r="type(",el+=5):(r=c,eb(Z)),r!==c){if(ex()!==c){if(n=[],H.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(K)),u!==c)for(;u!==c;)n.push(u),H.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(K));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(Y)),a!==c?e=r={type:"type",value:n.join("")}:(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[i]={nextPos:el,result:e},e}())===c&&(ec=function(){var e,r,n,u,a,i,o=32*el+22,s=eh[o];if(s)return el=s.nextPos,s.result;if(e=el,47===t.charCodeAt(el)?(r="/",el++):(r=c,eb(Q)),r!==c){if(n=[],ee.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(et)),u!==c)for(;u!==c;)n.push(u),ee.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(et));else n=c;n!==c?(47===t.charCodeAt(el)?(u="/",el++):(u=c,eb(Q)),u!==c?((a=function(){var e,r,n=32*el+21,u=eh[n];if(u)return el=u.nextPos,u.result;if(e=[],J.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(X)),r!==c)for(;r!==c;)e.push(r),J.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(X));else e=c;return eh[n]={nextPos:el,result:e},e}())===c&&(a=null),a!==c?(i=a,e=r={type:"regexp",value:new RegExp(n.join(""),i?i.join(""):"")}):(el=e,e=c)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c;return eh[o]={nextPos:el,result:e},e}()),ec!==c?y=b=j(b,v,ec):(el=y,y=c)):(el=y,y=c),y===c&&(y=el,(b=eT())!==c&&ex()!==c&&(v=(eI=eh[eF=32*el+13])?(el=eI.nextPos,eI.result):(eS=el,w.test(t.charAt(el))?(e_=t.charAt(el),el++):(e_=c,eb(T)),e_===c&&(e_=null),e_!==c?(61===t.charCodeAt(el)?(ew="=",el++):(ew=c,eb(P)),ew!==c?eS=e_=k(e_):(el=eS,eS=c)):(el=eS,eS=c),eS===c&&(F.test(t.charAt(el))?(eS=t.charAt(el),el++):(eS=c,eb(I))),eh[eF]={nextPos:el,result:eS},eS))!==c&&ex()!==c?((ec=function(){var e,r,n,u,a,i,o=32*el+17,s=eh[o];if(s)return el=s.nextPos,s.result;if(e=el,34===t.charCodeAt(el)?(r='"',el++):(r=c,eb(L)),r!==c){for(n=[],O.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(N)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));u!==c;)n.push(u),O.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(N)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));n!==c?(34===t.charCodeAt(el)?(u='"',el++):(u=c,eb(L)),u!==c?e=r=U(n):(el=e,e=c)):(el=e,e=c)}else el=e,e=c;if(e===c){if(e=el,39===t.charCodeAt(el)?(r="'",el++):(r=c,eb(z)),r!==c){for(n=[],V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(q)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));u!==c;)n.push(u),V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(q)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));n!==c?(39===t.charCodeAt(el)?(u="'",el++):(u=c,eb(z)),u!==c?e=r=U(n):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}return eh[o]={nextPos:el,result:e},e}())===c&&(ec=function(){var e,r,n,u,a,i,o=32*el+18,s=eh[o];if(s)return el=s.nextPos,s.result;for(e=el,r=el,n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));if(n!==c?(46===t.charCodeAt(el)?(u=".",el++):(u=c,eb(B)),u!==c?r=n=[n,u]:(el=r,r=c)):(el=r,r=c),r===c&&(r=null),r!==c){if(n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G)),u!==c)for(;u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));else n=c;n!==c?(i=n,e=r={type:"literal",value:parseFloat(((a=r)?[].concat.apply([],a).join(""):"")+i.join(""))}):(el=e,e=c)}else el=e,e=c;return eh[o]={nextPos:el,result:e},e}())===c&&(ec=(eO=eh[eL=32*el+19])?(el=eO.nextPos,eO.result):((ej=eE())!==c&&(ej={type:"literal",value:ej}),eB=ej,eh[eL]={nextPos:el,result:eB},eB)),ec!==c?y=b=j(b,v,ec):(el=y,y=c)):(el=y,y=c),y===c&&(y=el,(b=eT())!==c&&(b={type:"attribute",name:b}),y=b)),eh[ef]={nextPos:el,result:y},y))!==c&&ex()!==c?(93===t.charCodeAt(el)?(h="]",el++):(h=c,eb(_)),h!==c?l=f=p:(el=l,l=c)):(el=l,l=c),eh[m]={nextPos:el,result:l},l))===c&&(tu=function(){var e,r,n,u,a,i,o,s=32*el+23,d=eh[s];if(d)return el=d.nextPos,d.result;if(e=el,46===t.charCodeAt(el)?(r=".",el++):(r=c,eb(B)),r!==c){if((n=eE())!==c){for(u=[],a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(B)),i!==c&&(o=eE())!==c?a=i=[i,o]:(el=a,a=c);a!==c;)u.push(a),a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(B)),i!==c&&(o=eE())!==c?a=i=[i,o]:(el=a,a=c);u!==c?e=r={type:"field",name:u.reduce(function(e,t){return e+t[0]+t[1]},n)}:(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[s]={nextPos:el,result:e},e}())===c&&(tu=(ez=eh[eU=32*el+24])?(el=ez.nextPos,ez.result):(eN=el,":not("===t.substr(el,5)?(eR=":not(",el+=5):(eR=c,eb(er)),eR!==c&&ex()!==c&&(eM=eA())!==c&&ex()!==c?(41===t.charCodeAt(el)?(e$=")",el++):(e$=c,eb(Y)),e$!==c?eN=eR={type:"not",selectors:eM}:(el=eN,eN=c)):(el=eN,eN=c),eh[eU]={nextPos:el,result:eN},eN))===c&&(tu=(eH=eh[eZ=32*el+25])?(el=eH.nextPos,eH.result):(eV=el,":matches("===t.substr(el,9)?(eq=":matches(",el+=9):(eq=c,eb(en)),eq!==c&&ex()!==c&&(eW=eA())!==c&&ex()!==c?(41===t.charCodeAt(el)?(eG=")",el++):(eG=c,eb(Y)),eG!==c?eV=eq={type:"matches",selectors:eW}:(el=eV,eV=c)):(el=eV,eV=c),eh[eZ]={nextPos:el,result:eV},eV))===c&&(tu=(e0=eh[eQ=32*el+26])?(el=e0.nextPos,e0.result):(eK=el,":has("===t.substr(el,5)?(eY=":has(",el+=5):(eY=c,eb(eu)),eY!==c&&ex()!==c&&(eJ=function(){var e,r,n,u,a,i,o,s,d=32*el+4,l=eh[d];if(l)return el=l.nextPos,l.result;if(e=el,(r=eD())!==c){for(n=[],u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eD())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);u!==c;)n.push(u),u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eD())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=E(r,n):(el=e,e=c)}else el=e,e=c;return eh[d]={nextPos:el,result:e},e}())!==c&&ex()!==c?(41===t.charCodeAt(el)?(eX=")",el++):(eX=c,eb(Y)),eX!==c?eK=eY={type:"has",selectors:eJ}:(el=eK,eK=c)):(el=eK,eK=c),eh[eQ]={nextPos:el,result:eK},eK))===c&&(tu=(e4=eh[e3=32*el+27])?(el=e4.nextPos,e4.result):(":first-child"===t.substr(el,12)?(e2=":first-child",el+=12):(e2=c,eb(ea)),e2!==c&&(e2=eP(1)),e1=e2,eh[e3]={nextPos:el,result:e1},e1))===c&&(tu=(e9=eh[e6=32*el+28])?(el=e9.nextPos,e9.result):(":last-child"===t.substr(el,11)?(e8=":last-child",el+=11):(e8=c,eb(ei)),e8!==c&&(e8=ek(1)),e5=e8,eh[e6]={nextPos:el,result:e5},e5))===c&&(tu=function(){var e,r,n,u,a,i=32*el+29,o=eh[i];if(o)return el=o.nextPos,o.result;if(e=el,":nth-child("===t.substr(el,11)?(r=":nth-child(",el+=11):(r=c,eb(eo)),r!==c){if(ex()!==c){if(n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G)),u!==c)for(;u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(Y)),a!==c?e=r=eP(parseInt(n.join(""),10)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[i]={nextPos:el,result:e},e}())===c&&(tu=function(){var e,r,n,u,a,i=32*el+30,o=eh[i];if(o)return el=o.nextPos,o.result;if(e=el,":nth-last-child("===t.substr(el,16)?(r=":nth-last-child(",el+=16):(r=c,eb(es)),r!==c){if(ex()!==c){if(n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G)),u!==c)for(;u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(Y)),a!==c?e=r=ek(parseInt(n.join(""),10)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[i]={nextPos:el,result:e},e}())===c&&(tu=(tn=eh[tr=32*el+31])?(el=tn.nextPos,tn.result):(e7=el,58===t.charCodeAt(el)?(te=":",el++):(te=c,eb(ed)),te!==c&&(tt=eE())!==c?e7=te={type:"class",name:tt}:(el=e7,e7=c),eh[tr]={nextPos:el,result:e7},e7)),eh[ta]={nextPos:el,result:tu},tu)}function eT(){var e,r,n,u,a,i,o,s=32*el+15,d=eh[s];if(d)return el=d.nextPos,d.result;if(e=el,(r=eE())!==c){for(n=[],u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(B)),a!==c&&(i=eE())!==c?u=a=[a,i]:(el=u,u=c);u!==c;)n.push(u),u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(B)),a!==c&&(i=eE())!==c?u=a=[a,i]:(el=u,u=c);n!==c?(o=r,e=r=[].concat.apply([o],n).join("")):(el=e,e=c)}else el=e,e=c;return eh[s]={nextPos:el,result:e},e}function eP(e){return{type:"nth-child",index:{type:"literal",value:e}}}function ek(e){return{type:"nth-last-child",index:{type:"literal",value:e}}}if((o=p())!==c&&el===t.length)return o;throw o!==c&&el<t.length&&eb({type:"end"}),s=ep,d=ef<t.length?t.charAt(ef):null,n=ef,u=ef<t.length?ef+1:ef,a=ey(n),i=ey(u),l={start:{offset:n,line:a.line,column:a.column},end:{offset:u,line:i.line,column:i.column}},new e(e.buildMessage(s,d),s,d,l)}}}())});function md(e,t){for(var r=0;r<t.length&&null!=e;++r)e=e[t[r]];return e}var ml="function"==typeof WeakMap?new WeakMap:null;function mc(e){if(null==e)return function(){return!0};if(null!=ml){var t=ml.get(e);return null!=t||(t=mf(e),ml.set(e,t)),t}return mf(e)}function mf(e){switch(e.type){case"wildcard":return function(){return!0};case"identifier":var t=e.value.toLowerCase();return function(e,r,n){return t===e[n&&n.nodeTypeKey||"type"].toLowerCase()};case"exactNode":return function(e,t){return 0===t.length};case"field":var r=e.name.split(".");return function(e,t){return function e(t,r,n,u){for(var a=r,i=u;i<n.length;++i){if(null==a)return!1;var o=a[n[i]];if(Array.isArray(o)){for(var s=0;s<o.length;++s)if(e(t,o[s],n,i+1))return!0;return!1}a=o}return t===a}(e,t[r.length-1],r,0)};case"matches":var n=e.selectors.map(mc);return function(e,t,r){for(var u=0;u<n.length;++u)if(n[u](e,t,r))return!0;return!1};case"compound":var u=e.selectors.map(mc);return function(e,t,r){for(var n=0;n<u.length;++n)if(!u[n](e,t,r))return!1;return!0};case"not":var a=e.selectors.map(mc);return function(e,t,r){for(var n=0;n<a.length;++n)if(a[n](e,t,r))return!1;return!0};case"has":var i=e.selectors.map(mc);return function(e,t,r){var n=!1,u=[];return mo.traverse(e,{enter:function(e,t){null!=t&&u.unshift(t);for(var a=0;a<i.length;++a)if(i[a](e,u,r))return n=!0,void this.break()},leave:function(){u.shift()},keys:r&&r.visitorKeys,fallback:r&&r.fallback||"iteration"}),n};case"child":var o=mc(e.left),s=mc(e.right);return function(e,t,r){return!!(t.length>0&&s(e,t,r))&&o(t[0],t.slice(1),r)};case"descendant":var d=mc(e.left),l=mc(e.right);return function(e,t,r){if(l(e,t,r)){for(var n=0,u=t.length;n<u;++n)if(d(t[n],t.slice(n+1),r))return!0}return!1};case"attribute":var c=e.name.split(".");switch(e.operator){case void 0:return function(e){return null!=md(e,c)};case"=":switch(e.value.type){case"regexp":return function(t){var r=md(t,c);return"string"==typeof r&&e.value.value.test(r)};case"literal":var f="".concat(e.value.value);return function(e){return f==="".concat(md(e,c))};case"type":return function(t){return e.value.value===mr(md(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"!=":switch(e.value.type){case"regexp":return function(t){return!e.value.value.test(md(t,c))};case"literal":var p="".concat(e.value.value);return function(e){return p!=="".concat(md(e,c))};case"type":return function(t){return e.value.value!==mr(md(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"<=":return function(t){return md(t,c)<=e.value.value};case"<":return function(t){return md(t,c)<e.value.value};case">":return function(t){return md(t,c)>e.value.value};case">=":return function(t){return md(t,c)>=e.value.value}}throw Error("Unknown operator: ".concat(e.operator));case"sibling":var h=mc(e.left),m=mc(e.right);return function(t,r,n){return m(t,r,n)&&mm(t,h,r,"LEFT_SIDE",n)||e.left.subject&&h(t,r,n)&&mm(t,m,r,"RIGHT_SIDE",n)};case"adjacent":var g=mc(e.left),y=mc(e.right);return function(t,r,n){return y(t,r,n)&&mg(t,g,r,"LEFT_SIDE",n)||e.right.subject&&g(t,r,n)&&mg(t,y,r,"RIGHT_SIDE",n)};case"nth-child":var b=e.index.value,v=mc(e.right);return function(e,t,r){return v(e,t,r)&&my(e,t,b,r)};case"nth-last-child":var x=-e.index.value,E=mc(e.right);return function(e,t,r){return E(e,t,r)&&my(e,t,x,r)};case"class":var C=e.name.toLowerCase();return function(t,r,n){if(n&&n.matchClass)return n.matchClass(e.name,t,r);if(n&&n.nodeTypeKey)return!1;switch(C){case"statement":if("Statement"===t.type.slice(-9))return!0;case"declaration":return"Declaration"===t.type.slice(-11);case"pattern":if("Pattern"===t.type.slice(-7))return!0;case"expression":return"Expression"===t.type.slice(-10)||"Literal"===t.type.slice(-7)||"Identifier"===t.type&&(0===r.length||"MetaProperty"!==r[0].type)||"MetaProperty"===t.type;case"function":return"FunctionDeclaration"===t.type||"FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type}throw Error("Unknown class name: ".concat(e.name))}}throw Error("Unknown selector type: ".concat(e.type))}function mp(e,t){var r=t&&t.nodeTypeKey||"type",n=e[r];return t&&t.visitorKeys&&t.visitorKeys[n]?t.visitorKeys[n]:mo.VisitorKeys[n]?mo.VisitorKeys[n]:t&&"function"==typeof t.fallback?t.fallback(e):Object.keys(e).filter(function(e){return e!==r})}function mh(e,t){var r=t&&t.nodeTypeKey||"type";return null!==e&&"object"===mr(e)&&"string"==typeof e[r]}function mm(e,t,r,n,u){var a=mn(r,1)[0];if(!a)return!1;for(var i=mp(a,u),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;var l=void 0,c=void 0;"LEFT_SIDE"===n?(l=0,c=d):(l=d+1,c=s.length);for(var f=l;f<c;++f)if(mh(s[f],u)&&t(s[f],r,u))return!0}}return!1}function mg(e,t,r,n,u){var a=mn(r,1)[0];if(!a)return!1;for(var i=mp(a,u),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;if("LEFT_SIDE"===n&&d>0&&mh(s[d-1],u)&&t(s[d-1],r,u)||"RIGHT_SIDE"===n&&d<s.length-1&&mh(s[d+1],u)&&t(s[d+1],r,u))return!0}}return!1}function my(e,t,r,n){if(0===r)return!1;var u=mn(t,1)[0];if(!u)return!1;for(var a=mp(u,n),i=0;i<a.length;++i){var o=u[a[i]];if(Array.isArray(o)){var s=r<0?o.length+r:r-1;if(s>=0&&s<o.length&&o[s]===e)return!0}}return!1}function mb(e,t,r,n){if(t){var u=[],a=mc(t),i=(function e(t,r){if(null==t||"object"!=mr(t))return[];null==r&&(r=t);for(var n=t.subject?[r]:[],u=Object.keys(t),a=0;a<u.length;++a){var i,o=u[a],s=t[o];n.push.apply(n,function(e){if(Array.isArray(e))return ma(e)}(i=e(s,"left"===o?s:r))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||mu(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return n})(t).map(mc);mo.traverse(e,{enter:function(e,t){if(null!=t&&u.unshift(t),a(e,u,n)){if(i.length)for(var o=0,s=i.length;o<s;++o){i[o](e,u,n)&&r(e,t,u);for(var d=0,l=u.length;d<l;++d){var c=u.slice(d+1);i[o](u[d],c,n)&&r(u[d],t,c)}}else r(e,t,u)}},leave:function(){u.shift()},keys:n&&n.visitorKeys,fallback:n&&n.fallback||"iteration"})}}function mv(e,t,r){var n=[];return mb(e,t,function(e){n.push(e)},r),n}function mx(e){return ms.parse(e)}function mE(e,t,r){return mv(e,mx(t),r)}mE.parse=mx,mE.match=mv,mE.traverse=mb,mE.matches=function(e,t,r,n){return!t||!!e&&(r||(r=[]),mc(t)(e,r,n))},mE.query=mE;var mC=/*@__PURE__*/ef(/*#__PURE__*/Object.freeze({__proto__:null,default:mE}));const mA=e=>{let t=mt(e);if(0===t)return e;let r=RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")},mD=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},"string"!=typeof e)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if("string"!=typeof r.indent)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(0===t)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))},{replaceTemplateElement:mS}=uv,{isMethodCall:m_,isCallExpression:mw,isTaggedTemplateLiteral:mT}=tK,{isNodeMatches:mP}=nI,mk="template-indent",mF=e=>m_(e.parent,{method:"toMatchInlineSnapshot",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&e.parent.arguments[0]===e&&mw(e.parent.callee.object,{name:"expect",argumentsLength:1,optionalCall:!1,optionalMember:!1}),mI=new Map,mB=e=>(mI.has(e)||mI.set(e,mC.parse(e)),mI.get(e));var mj=/*@__PURE__*/ec({create:e=>{let{sourceCode:t}=e,r={tags:["outdent","dedent","gql","sql","html","styled"],functions:["dedent","stripIndent"],selectors:[],comments:["HTML","indent"],...e.options[0]};r.comments=r.comments.map(e=>e.toLowerCase());let n=e=>{let n;let u="__PLACEHOLDER__"+Math.random(),a=e.quasis.map(e=>t.getText(e).slice(1,e.tail?-1:-2)).join(u),i=a.match(/\r?\n/);if(!i)return;let o=i[0],s=t.lines[e.loc.start.line-1].match(/^(\s*)\S/),d=s?s[1]:"";n="string"==typeof r.indent?r.indent:"number"==typeof r.indent?" ".repeat(r.indent):d.startsWith(" ")?" ":" ";let l=mA(a).replaceAll(RegExp(`^${o}|${o}[ ]*$`,"g"),""),c=o+mD(l,1,{indent:d+n})+o+d;if(c!==a)return{node:e,messageId:mk,fix:t=>c.split(u).map((r,n)=>mS(t,e.quasis[n],r))}},u=e=>{if(r.comments.length>0){let n=t.getTokenBefore(e,{includeComments:!0});if(n?.type==="Block"&&r.comments.includes(n.value.trim().toLowerCase()))return!0}if(mF(e)||r.tags.length>0&&mT(e,r.tags)||r.functions.length>0&&"CallExpression"===e.parent.type&&e.parent.arguments.includes(e)&&mP(e.parent.callee,r.functions))return!0;if(r.selectors.length>0){let n=t.getAncestors(e).reverse();if(r.selectors.some(t=>mC.matches(e,mB(t),n)))return!0}return!1};return{TemplateLiteral(e){if(u(e))return n(e)}}},meta:{type:"suggestion",docs:{description:"Fix whitespace-insensitive template indentation.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{indent:{oneOf:[{type:"string",pattern:/^\s+$/.source},{type:"integer",minimum:1}]},tags:{type:"array",uniqueItems:!0,items:{type:"string"}},functions:{type:"array",uniqueItems:!0,items:{type:"string"}},selectors:{type:"array",uniqueItems:!0,items:{type:"string"}},comments:{type:"array",uniqueItems:!0,items:{type:"string"}}}}],messages:{[mk]:"Templates should be properly indented."}}});const{isMethodCall:mL}=tK,{removeSpacesAfter:mO}=uv,mN="no-await-in-promise-methods/error",mR="no-await-in-promise-methods/suggestion",mM=["all","allSettled","any","race"],m$=e=>mL(e,{object:"Promise",methods:mM,optionalMember:!1,optionalCall:!1,argumentsLength:1})&&"ArrayExpression"===e.arguments[0].type;var mU=/*@__PURE__*/ec({create:e=>({*CallExpression(t){if(m$(t))for(let r of t.arguments[0].elements)r?.type==="AwaitExpression"&&(yield{node:r,messageId:mN,data:{method:t.callee.property.name},suggest:[{messageId:mR,*fix(t){let{sourceCode:n}=e,u=e.sourceCode.getFirstToken(r);yield t.remove(u),yield mO(u,n,t)}}]})}}),meta:{type:"suggestion",docs:{description:"Disallow using `await` in `Promise` method parameters.",recommended:!0},hasSuggestions:!0,messages:{[mN]:"Promise in `Promise.{{method}}()` should not be awaited.",[mR]:"Remove `await`."}}});const{fixSpaceAroundKeyword:mz,addParenthesizesToReturnOrThrowExpression:mV}=uv,{needsSemicolon:mq,isParenthesized:mW,isOnSameLine:mG}=nI,mZ="no-negation-in-equality-check/error",mH="no-negation-in-equality-check/suggestion",mK=new Set(["===","!==","==","!="]),mY=e=>"BinaryExpression"===e.type&&mK.has(e.operator),mJ=e=>"UnaryExpression"===e.type&&e.prefix&&"!"===e.operator;var mX=/*@__PURE__*/ec({create:e=>({BinaryExpression(t){let{operator:r,left:n}=t;if(!(mY(t)&&mJ(n)&&!mJ(n.argument)))return;let{sourceCode:u}=e,a=u.getFirstToken(n),i=`${r.startsWith("!")?"=":"!"}${r.slice(1)}`;return{node:a,messageId:mZ,suggest:[{messageId:mH,data:{operator:i},*fix(e){yield*mz(e,t,u);let o=u.getTokenAfter(a),{parent:s}=t;"ReturnStatement"!==s.type&&"ThrowStatement"!==s.type||mW(t,u)||mG(u.getFirstToken(s),o)||(yield*mV(e,s,u)),yield e.remove(a),mq(u.getTokenBefore(a),u,o.value)&&(yield e.insertTextAfter(a,";"));let d=u.getTokenAfter(n,e=>"Punctuator"===e.type&&e.value===r);yield e.replaceText(d,i)}}]}}}),meta:{type:"problem",docs:{description:"Disallow negated expression in equality check.",recommended:!0},hasSuggestions:!0,messages:{[mZ]:"Negated expression in not allowed in equality check.",[mH]:"Switch to '{{operator}}' check."}}});const{isMethodCall:mQ,isMemberExpression:m0}=tK,{removeArgument:m1}=uv,{isSameReference:m2}=nI,m3="no-length-as-slice-end";var m4=/*@__PURE__*/ec({create:e=>{e.on("CallExpression",t=>{if(!mQ(t,{method:"slice",argumentsLength:2,optionalCall:!1}))return;let r=t.arguments[1],n="ChainExpression"===r.type?r.expression:r;if(m0(n,{property:"length",computed:!1})&&m2(t.callee.object,n.object))return{node:n,messageId:m3,fix:t=>m1(t,r,e.sourceCode)}})},meta:{type:"suggestion",docs:{description:"Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.",recommended:!0},fixable:"code",messages:{[m3]:"Passing `….length` as the `end` argument is unnecessary."}}});const{findVariable:m5}=tm,{renameVariable:m8}=uv,{isMethodCall:m6}=tK,m9="catch-error-name",m7=e=>("FunctionExpression"===e.parent.type||"ArrowFunctionExpression"===e.parent.type)&&e.parent.params[0]===e&&(m6(e.parent.parent,{method:"then",argumentsLength:2,optionalCall:!1,optionalMember:!1})||m6(e.parent.parent,{method:"catch",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&e.parent.parent.arguments.at(-1)===e.parent;var ge=/*@__PURE__*/ec({create:e=>{let t={name:"error",ignore:[],...e.options[0]},{name:r}=t,n=t.ignore.map(e=>e instanceof RegExp?e:RegExp(e,"u")),u=e=>e===r||n.some(t=>t.test(e))||e.endsWith(r)||e.endsWith(r.charAt(0).toUpperCase()+r.slice(1));return{Identifier(t){if(!("CatchClause"===t.parent.type&&t.parent.param===t)&&!m7(t))return;let n=t.name;if(u(n)||u(n.replaceAll(/_+$/g,"")))return;let a=m5(e.sourceCode.getScope(t),t);if(!a||"_"===n&&0===a.references.length)return;let i=rA(r,[a.scope,...a.references.map(({from:e})=>e)]),o={node:t,messageId:m9,data:{originalName:n,fixedName:i||r}};return i&&(o.fix=e=>m8(a,i,e)),o}}},meta:{type:"suggestion",docs:{description:"Enforce a specific parameter name in catch clauses.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{name:{type:"string"},ignore:{type:"array",uniqueItems:!0}}}],messages:{[m9]:"The catch parameter `{{originalName}}` should be named `{{fixedName}}`."}}}),gt={exports:{}};gt.exports,function(e,t){var r,n,u,a,i,o,s,d,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,h={};((e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})})(h,{camelCase:()=>tR,defaultsDeep:()=>t1,kebabCase:()=>t2,lowerFirst:()=>t3,snakeCase:()=>t4,upperFirst:()=>to}),e.exports=((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of f(t))p.call(e,u)||u===r||l(e,u,{get:()=>t[u],enumerable:!(n=c(t,u))||n.enumerable});return e})(l({},"__esModule",{value:!0}),h);var m="object"==typeof el&&el&&el.Object===Object&&el,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),b=y.Symbol,v=Object.prototype,x=v.hasOwnProperty,E=v.toString,C=b?b.toStringTag:void 0,A=function(e){var t=x.call(e,C),r=e[C];try{e[C]=void 0;var n=!0}catch(e){}var u=E.call(e);return n&&(t?e[C]=r:delete e[C]),u},D=Object.prototype.toString,S=b?b.toStringTag:void 0,_=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?A(e):D.call(e)},w=function(e){return null!=e&&"object"==typeof e},T=function(e,t){for(var r=-1,n=null==e?0:e.length,u=Array(n);++r<n;)u[r]=t(e[r],r,e);return u},P=Array.isArray,k=1/0,F=b?b.prototype:void 0,I=F?F.toString:void 0,B=function e(t){if("string"==typeof t)return t;if(P(t))return T(t,e)+"";if("symbol"==typeof t||w(t)&&"[object Symbol]"==_(t))return I?I.call(t):"";var r=t+"";return"0"==r&&1/t==-k?"-0":r},j=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},L=function(e){return e},O=function(e){if(!j(e))return!1;var t=_(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},N=y["__core-js_shared__"],R=(r=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",M=Function.prototype.toString,$=function(e){if(null!=e){try{return M.call(e)}catch(e){}try{return e+""}catch(e){}}return""},U=/^\[object .+?Constructor\]$/,z=Object.prototype,V=Function.prototype.toString,q=z.hasOwnProperty,W=RegExp("^"+V.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=function(e,t){var r,n=null==e?void 0:e[t];return j(r=n)&&(!R||!(R in r))&&(O(r)?W:U).test($(r))?n:void 0},Z=Object.create,H=function(){function e(){}return function(t){if(!j(t))return{};if(Z)return Z(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),K=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},Y=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},J=Date.now,X=function(){try{var e=G(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Q=(n=X?function(e,t){return X(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:L,u=0,a=0,function(){var e=J(),t=16-(e-a);if(a=e,t>0){if(++u>=800)return arguments[0]}else u=0;return n.apply(void 0,arguments)}),ee=/^(?:0|[1-9]\d*)$/,et=function(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&ee.test(e))&&e>-1&&e%1==0&&e<t},er=function(e,t,r){"__proto__"==t&&X?X(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},en=function(e,t){return e===t||e!=e&&t!=t},eu=Object.prototype.hasOwnProperty,ea=function(e,t,r){var n=e[t];eu.call(e,t)&&en(n,r)&&(void 0!==r||t in e)||er(e,t,r)},ei=function(e,t,r,n){var u=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var o=t[a],s=n?n(r[o],e[o],o,r,e):void 0;void 0===s&&(s=e[o]),u?er(r,o,s):ea(r,o,s)}return r},eo=Math.max,es=function(e,t){var r;return Q((r=eo(void 0===(r=t)?e.length-1:r,0),function(){for(var t=arguments,n=-1,u=eo(t.length-r,0),a=Array(u);++n<u;)a[n]=t[r+n];n=-1;for(var i=Array(r+1);++n<r;)i[n]=t[n];return i[r]=L(a),K(e,this,i)}),e+"")},ed=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff},ec=function(e){return null!=e&&ed(e.length)&&!O(e)},ef=function(e,t,r){if(!j(r))return!1;var n=typeof t;return("number"==n?!!(ec(r)&&et(t,r.length)):"string"==n&&t in r)&&en(r[t],e)},ep=Object.prototype,eh=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ep)},em=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},eg=function(e){return w(e)&&"[object Arguments]"==_(e)},ey=Object.prototype,eb=ey.hasOwnProperty,ev=ey.propertyIsEnumerable,ex=eg(function(){return arguments}())?eg:function(e){return w(e)&&eb.call(e,"callee")&&!ev.call(e,"callee")},eE=t&&!t.nodeType&&t,eC=eE&&e&&!e.nodeType&&e,eA=eC&&eC.exports===eE?y.Buffer:void 0,eD=(eA?eA.isBuffer:void 0)||function(){return!1},eS={};eS["[object Float32Array]"]=eS["[object Float64Array]"]=eS["[object Int8Array]"]=eS["[object Int16Array]"]=eS["[object Int32Array]"]=eS["[object Uint8Array]"]=eS["[object Uint8ClampedArray]"]=eS["[object Uint16Array]"]=eS["[object Uint32Array]"]=!0,eS["[object Arguments]"]=eS["[object Array]"]=eS["[object ArrayBuffer]"]=eS["[object Boolean]"]=eS["[object DataView]"]=eS["[object Date]"]=eS["[object Error]"]=eS["[object Function]"]=eS["[object Map]"]=eS["[object Number]"]=eS["[object Object]"]=eS["[object RegExp]"]=eS["[object Set]"]=eS["[object String]"]=eS["[object WeakMap]"]=!1;var e_=t&&!t.nodeType&&t,ew=e_&&e&&!e.nodeType&&e,eT=ew&&ew.exports===e_&&m.process,eP=function(){try{var e=ew&&ew.require&&ew.require("util").types;if(e)return e;return eT&&eT.binding&&eT.binding("util")}catch(e){}}(),ek=eP&&eP.isTypedArray,eF=ek?function(e){return ek(e)}:function(e){return w(e)&&ed(e.length)&&!!eS[_(e)]},eI=Object.prototype.hasOwnProperty,eB=function(e,t){var r=P(e),n=!r&&ex(e),u=!r&&!n&&eD(e),a=!r&&!n&&!u&&eF(e),i=r||n||u||a,o=i?em(e.length,String):[],s=o.length;for(var d in e)(t||eI.call(e,d))&&!(i&&("length"==d||u&&("offset"==d||"parent"==d)||a&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||et(d,s)))&&o.push(d);return o},ej=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},eL=Object.prototype.hasOwnProperty,eO=function(e){if(!j(e))return ej(e);var t=eh(e),r=[];for(var n in e)"constructor"==n&&(t||!eL.call(e,n))||r.push(n);return r},eN=function(e){return ec(e)?eB(e,!0):eO(e)},eR=G(Object,"create"),eM=Object.prototype.hasOwnProperty,e$=Object.prototype.hasOwnProperty;function eU(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eU.prototype.clear=function(){this.__data__=eR?eR(null):{},this.size=0},eU.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},eU.prototype.get=function(e){var t=this.__data__;if(eR){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return eM.call(t,e)?t[e]:void 0},eU.prototype.has=function(e){var t=this.__data__;return eR?void 0!==t[e]:e$.call(t,e)},eU.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=eR&&void 0===t?"__lodash_hash_undefined__":t,this};var ez=function(e,t){for(var r=e.length;r--;)if(en(e[r][0],t))return r;return -1},eV=Array.prototype.splice;function eq(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eq.prototype.clear=function(){this.__data__=[],this.size=0},eq.prototype.delete=function(e){var t=this.__data__,r=ez(t,e);return!(r<0)&&(r==t.length-1?t.pop():eV.call(t,r,1),--this.size,!0)},eq.prototype.get=function(e){var t=this.__data__,r=ez(t,e);return r<0?void 0:t[r][1]},eq.prototype.has=function(e){return ez(this.__data__,e)>-1},eq.prototype.set=function(e,t){var r=this.__data__,n=ez(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var eW=G(y,"Map"),eG=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},eZ=function(e,t){var r=e.__data__;return eG(t)?r["string"==typeof t?"string":"hash"]:r.map};function eH(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eH.prototype.clear=function(){this.size=0,this.__data__={hash:new eU,map:new(eW||eq),string:new eU}},eH.prototype.delete=function(e){var t=eZ(this,e).delete(e);return this.size-=t?1:0,t},eH.prototype.get=function(e){return eZ(this,e).get(e)},eH.prototype.has=function(e){return eZ(this,e).has(e)},eH.prototype.set=function(e,t){var r=eZ(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var eK=function(e){return null==e?"":B(e)},eY=(i=Object.getPrototypeOf,o=Object,function(e){return i(o(e))}),eJ=Object.prototype,eX=Function.prototype.toString,eQ=eJ.hasOwnProperty,e0=eX.call(Object),e1=function(e){if(!w(e)||"[object Object]"!=_(e))return!1;var t=eY(e);if(null===t)return!0;var r=eQ.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&eX.call(r)==e0},e2=function(e,t,r){var n=-1,u=e.length;t<0&&(t=-t>u?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(u);++n<u;)a[n]=e[n+t];return a},e3=function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:e2(e,t,r)},e4=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),e5=function(e){return e4.test(e)},e8="\ud800-\udfff",e6="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",e9="\ud83c[\udffb-\udfff]",e7="[^"+e8+"]",te="(?:\ud83c[\udde6-\uddff]){2}",tt="[\ud800-\udbff][\udc00-\udfff]",tr="(?:"+e6+"|"+e9+")?",tn="[\\ufe0e\\ufe0f]?",tu="(?:\\u200d(?:"+[e7,te,tt].join("|")+")"+tn+tr+")*",ta=RegExp(e9+"(?="+e9+")|(?:"+[e7+e6+"?",e6,te,tt,"["+e8+"]"].join("|")+")"+(tn+tr+tu),"g"),ti=function(e){return function(t){var r,n=e5(t=eK(t))?e5(r=t)?r.match(ta)||[]:r.split(""):void 0,u=n?n[0]:t.charAt(0),a=n?e3(n,1).join(""):t.slice(1);return u[e]()+a}},to=ti("toUpperCase"),ts=function(e,t,r,n){var u=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++u]);++u<a;)r=t(r,e[u],u,e);return r},td=(s={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},function(e){return null==s?void 0:s[e]}),tl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tc=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),tf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,th="\ud800-\udfff",tm="\\u2700-\\u27bf",tg="a-z\\xdf-\\xf6\\xf8-\\xff",ty="A-Z\\xc0-\\xd6\\xd8-\\xde",tb="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tv="['’]",tx="["+tb+"]",tE="["+tg+"]",tC="[^"+th+tb+"\\d+"+tm+tg+ty+"]",tA="(?:\ud83c[\udde6-\uddff]){2}",tD="[\ud800-\udbff][\udc00-\udfff]",tS="["+ty+"]",t_="(?:"+tE+"|"+tC+")",tw="(?:"+tS+"|"+tC+")",tT="(?:"+tv+"(?:d|ll|m|re|s|t|ve))?",tP="(?:"+tv+"(?:D|LL|M|RE|S|T|VE))?",tk="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",tF="[\\ufe0e\\ufe0f]?",tI="(?:\\u200d(?:"+["[^"+th+"]",tA,tD].join("|")+")"+tF+tk+")*",tB="(?:"+["["+tm+"]",tA,tD].join("|")+")"+(tF+tk+tI),tj=RegExp([tS+"?"+tE+"+"+tT+"(?="+[tx,tS,"$"].join("|")+")",tw+"+"+tP+"(?="+[tx,tS+t_,"$"].join("|")+")",tS+"?"+t_+"+"+tT,tS+"+"+tP,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",tB].join("|"),"g"),tL=function(e,t,r){if(e=eK(e),void 0===(t=r?void 0:t)){var n;return(n=e,tp.test(n))?e.match(tj)||[]:e.match(tf)||[]}return e.match(t)||[]},tO=RegExp("['’]","g"),tN=function(e){return function(t){var r;return ts(tL(((r=eK(r=t))&&r.replace(tl,td).replace(tc,"")).replace(tO,"")),e,"")}},tR=tN(function(e,t,r){return t=t.toLowerCase(),e+(r?to(eK(t).toLowerCase()):t)});function tM(e){var t=this.__data__=new eq(e);this.size=t.size}tM.prototype.clear=function(){this.__data__=new eq,this.size=0},tM.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},tM.prototype.get=function(e){return this.__data__.get(e)},tM.prototype.has=function(e){return this.__data__.has(e)},tM.prototype.set=function(e,t){var r=this.__data__;if(r instanceof eq){var n=r.__data__;if(!eW||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new eH(n)}return r.set(e,t),this.size=r.size,this};var t$=t&&!t.nodeType&&t,tU=t$&&e&&!e.nodeType&&e,tz=tU&&tU.exports===t$?y.Buffer:void 0,tV=tz?tz.allocUnsafe:void 0,tq=function(e,t){if(t)return e.slice();var r=e.length,n=tV?tV(r):new e.constructor(r);return e.copy(n),n},tW=y.Uint8Array,tG=function(e){var t=new e.constructor(e.byteLength);return new tW(t).set(new tW(e)),t},tZ=function(e,t){var r=t?tG(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},tH=function(e,t,r){for(var n=-1,u=Object(e),a=r(e),i=a.length;i--;){var o=a[++n];if(!1===t(u[o],o,u))break}return e},tK=function(e,t,r){(void 0===r||en(e[t],r))&&(void 0!==r||t in e)||er(e,t,r)},tY=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},tJ=function(e,t,r,n,u,a,i){var o=tY(e,r),s=tY(t,r),d=i.get(s);if(d){tK(e,r,d);return}var l=a?a(o,s,r+"",e,t,i):void 0,c=void 0===l;if(c){var f=P(s),p=!f&&eD(s),h=!f&&!p&&eF(s);(l=s,f||p||h)?P(o)?l=o:w(o)&&ec(o)?l=Y(o):p?(c=!1,l=tq(s,!0)):h?(c=!1,l=tZ(s,!0)):l=[]:e1(s)||ex(s)?(l=o,ex(o))?l=ei(o,eN(o)):(!j(o)||O(o))&&(l="function"!=typeof s.constructor||eh(s)?{}:H(eY(s))):c=!1}c&&(i.set(s,l),u(l,s,n,a,i),i.delete(s)),tK(e,r,l)},tX=function e(t,r,n,u,a){t!==r&&tH(r,function(i,o){if(a||(a=new tM),j(i))tJ(t,r,o,n,e,u,a);else{var s=u?u(tY(t,o),i,o+"",t,r,a):void 0;void 0===s&&(s=i),tK(t,o,s)}},eN)},tQ=function e(t,r,n,u,a,i){return j(t)&&j(r)&&(i.set(r,t),tX(t,r,void 0,e,i),i.delete(r)),t},t0=(d=function(e,t,r,n){tX(e,t,r,n)},es(function(e,t){var r=-1,n=t.length,u=n>1?t[n-1]:void 0,a=n>2?t[2]:void 0;for(u=d.length>3&&"function"==typeof u?(n--,u):void 0,a&&ef(t[0],t[1],a)&&(u=n<3?void 0:u,n=1),e=Object(e);++r<n;){var i=t[r];i&&d(e,i,r,u)}return e})),t1=es(function(e){return e.push(void 0,tQ),K(t0,void 0,e)}),t2=tN(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),t3=ti("toLowerCase"),t4=tN(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});/*! Bundled license information:
|
|
15
|
+
${r}}`))}(t,o,d))}}}({discriminant:d,ifStatements:f},s,a)),yield p}}}},meta:{type:"suggestion",docs:{description:"Prefer `switch` over multiple `else-if`.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{minimumCases:{type:"integer",minimum:2,default:3},emptyDefaultCase:{enum:["no-default-comment","do-nothing-comment","no-default-case"],default:"no-default-comment"}}}],messages:{[n]:"Use `switch` instead of multiple `else-if`."}}}}()),d8=/*@__PURE__*/oe(/*@__PURE__*/function(){if(aI)return aP;aI=1;let{appendArgument:e}=/*@__PURE__*/sZ(),{isMethodCall:t}=/*@__PURE__*/sh(),r="require-number-to-fixed-digits-argument";return aP={create:n=>({CallExpression(u){if(!t(u,{method:"toFixed",argumentsLength:0,optionalCall:!1,optionalMember:!1})||"NewExpression"===u.callee.object.type)return;let{sourceCode:a}=n,[i,o]=a.getLastTokens(u,2);return{loc:{start:i.loc.start,end:o.loc.end},messageId:r,fix:t=>e(t,u,"0",a)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the digits argument with `Number#toFixed()`.",recommended:!0},fixable:"code",messages:{[r]:"Missing the digits argument."}}}}());function d6(e){return(d6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d9(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,u,a,i,o=[],s=!0,d=!1;try{if(a=(r=r.call(e)).next,0===t);else for(;!(s=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){d=!0,u=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw u}}return o}}(e,t)||d7(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d7(e,t){if(e){if("string"==typeof e)return le(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?le(e,t):void 0}}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function lt(e,t){return e(t={exports:{}},t.exports),t.exports}var lr=lt(function(e,t){!function e(t){var r,n,u,a,i,o;function s(e){var t,r,n={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],n[t]="object"==typeof r&&null!==r?s(r):r);return n}function d(e,t){this.parent=e,this.key=t}function l(e,t,r,n){this.node=e,this.path=t,this.wrap=r,this.ref=n}function c(){}function f(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function p(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function h(e,t){for(var r=e.length-1;r>=0;--r)if(e[r].node===t)return!0;return!1}function m(e,t){return(new c).traverse(e,t)}return r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},u={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},n={Break:a={},Skip:i={},Remove:o={}},d.prototype.replace=function(e){this.parent[this.key]=e},d.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},c.prototype.path=function(){var e,t,r,n,u;function a(e,t){if(Array.isArray(t))for(r=0,n=t.length;r<n;++r)e.push(t[r]);else e.push(t)}if(!this.__current.path)return null;for(u=[],e=2,t=this.__leavelist.length;e<t;++e)a(u,this.__leavelist[e].path);return a(u,this.__current.path),u},c.prototype.type=function(){return this.current().type||this.__current.wrap},c.prototype.parents=function(){var e,t,r;for(r=[],e=1,t=this.__leavelist.length;e<t;++e)r.push(this.__leavelist[e].node);return r},c.prototype.current=function(){return this.__current.node},c.prototype.__execute=function(e,t){var r,n;return n=void 0,r=this.__current,this.__current=t,this.__state=null,e&&(n=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=r,n},c.prototype.notify=function(e){this.__state=e},c.prototype.skip=function(){this.notify(i)},c.prototype.break=function(){this.notify(a)},c.prototype.remove=function(){this.notify(o)},c.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===t.fallback?this.__fallback=Object.keys:"function"==typeof t.fallback&&(this.__fallback=t.fallback),this.__keys=u,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},c.prototype.traverse=function(e,t){var r,n,u,o,s,d,c,m,g,y,b,v;for(this.__initialize(e,t),v={},r=this.__worklist,n=this.__leavelist,r.push(new l(e,null,null,null)),n.push(new l(null,null,null,null));r.length;)if((u=r.pop())!==v){if(u.node){if(d=this.__execute(t.enter,u),this.__state===a||d===a)return;if(r.push(v),n.push(u),this.__state===i||d===i)continue;if(s=(o=u.node).type||u.wrap,!(y=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");y=this.__fallback(o)}for(m=y.length;(m-=1)>=0;)if(b=o[c=y[m]]){if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]&&!h(n,b[g])){if(p(s,y[m]))u=new l(b[g],[c,g],"Property",null);else{if(!f(b[g]))continue;u=new l(b[g],[c,g],null,null)}r.push(u)}}else if(f(b)){if(h(n,b))continue;r.push(new l(b,c,null,null))}}}}else if(u=n.pop(),d=this.__execute(t.leave,u),this.__state===a||d===a)return},c.prototype.replace=function(e,t){var r,n,u,s,c,h,m,g,y,b,v,x,E;function C(e){var t,n,u,a;if(e.ref.remove()){for(n=e.ref.key,a=e.ref.parent,t=r.length;t--;)if((u=r[t]).ref&&u.ref.parent===a){if(u.ref.key<n)break;--u.ref.key}}}for(this.__initialize(e,t),v={},r=this.__worklist,n=this.__leavelist,h=new l(e,null,null,new d(x={root:e},"root")),r.push(h),n.push(h);r.length;)if((h=r.pop())!==v){if(void 0!==(c=this.__execute(t.enter,h))&&c!==a&&c!==i&&c!==o&&(h.ref.replace(c),h.node=c),this.__state!==o&&c!==o||(C(h),h.node=null),this.__state===a||c===a)return x.root;if((u=h.node)&&(r.push(v),n.push(h),this.__state!==i&&c!==i)){if(s=u.type||h.wrap,!(y=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");y=this.__fallback(u)}for(m=y.length;(m-=1)>=0;)if(b=u[E=y[m]]){if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]){if(p(s,y[m]))h=new l(b[g],[E,g],"Property",new d(b,g));else{if(!f(b[g]))continue;h=new l(b[g],[E,g],null,new d(b,g))}r.push(h)}}else f(b)&&r.push(new l(b,E,null,new d(u,E)))}}}else if(h=n.pop(),void 0!==(c=this.__execute(t.leave,h))&&c!==a&&c!==i&&c!==o&&h.ref.replace(c),this.__state!==o&&c!==o||C(h),this.__state===a||c===a)break;return x.root},t.Syntax=r,t.traverse=m,t.replace=function(e,t){return(new c).replace(e,t)},t.attachComments=function(e,t,r){var u,a,i,o,d=[];if(!e.range)throw Error("attachComments needs range information");if(!r.length){if(t.length){for(i=0,a=t.length;i<a;i+=1)(u=s(t[i])).extendedRange=[0,e.range[0]],d.push(u);e.leadingComments=d}return e}for(i=0,a=t.length;i<a;i+=1)d.push(function(e,t){var r;return r=function(e,t){var r,n,u,a;for(n=e.length,u=0;n;)t(e[a=u+(r=n>>>1)])?n=r:(u=a+1,n-=r+1);return u}(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}(s(t[i]),r));return o=0,m(e,{enter:function(e){for(var t;o<d.length&&!((t=d[o]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?n.Break:d[o].extendedRange[0]>e.range[1]?n.Skip:void 0}}),o=0,m(e,{leave:function(e){for(var t;o<d.length&&(t=d[o],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?n.Break:d[o].extendedRange[0]>e.range[1]?n.Skip:void 0}}),e},t.VisitorKeys=u,t.VisitorOption=n,t.Controller=c,t.cloneEnvironment=function(){return e({})},t}(t)}),ln=lt(function(e){e.exports&&(e.exports=function(){function e(t,r,n,u){this.message=t,this.expected=r,this.found=n,this.location=u,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.buildMessage=function(e,t){var r={literal:function(e){return'"'+u(e.text)+'"'},class:function(e){var t,r="";for(t=0;t<e.parts.length;t++)r+=e.parts[t]instanceof Array?a(e.parts[t][0])+"-"+a(e.parts[t][1]):a(e.parts[t]);return"["+(e.inverted?"^":"")+r+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function u(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function a(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}return"Expected "+function(e){var t,n,u,a=Array(e.length);for(t=0;t<e.length;t++)a[t]=r[(u=e[t]).type](u);if(a.sort(),a.length>0){for(t=1,n=1;t<a.length;t++)a[t-1]!==a[t]&&(a[n]=a[t],n++);a.length=n}switch(a.length){case 1:return a[0];case 2:return a[0]+" or "+a[1];default:return a.slice(0,-1).join(", ")+", or "+a[a.length-1]}}(e)+" but "+(t?'"'+u(t)+'"':"end of input")+" found."},{SyntaxError:e,parse:function(t,r){r=void 0!==r?r:{};var n,u,a,i,o,s,d,l,c={},f={start:ev},p=ev,h=em(" ",!1),m=/^[^ [\],():#!=><~+.]/,g=eg([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),y=em(">",!1),b=em("~",!1),v=em("+",!1),x=em(",",!1),E=function(e,t){return[e].concat(t.map(function(e){return e[3]}))},C=em("!",!1),A=em("*",!1),D=em("#",!1),S=em("[",!1),_=em("]",!1),w=/^[><!]/,T=eg([">","<","!"],!1,!1),F=em("=",!1),k=function(e){return(e||"")+"="},P=/^[><]/,I=eg([">","<"],!1,!1),B=em(".",!1),j=function(e,t,r){return{type:"attribute",name:e,operator:t,value:r}},O=em('"',!1),L=/^[^\\"]/,N=eg(["\\",'"'],!0,!1),R=em("\\",!1),M={type:"any"},$=function(e,t){return e+t},U=function(e){return{type:"literal",value:e.join("").replace(/\\(.)/g,function(e,t){switch(t){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return" ";case"v":return"\v";default:return t}})}},z=em("'",!1),V=/^[^\\']/,q=eg(["\\","'"],!0,!1),W=/^[0-9]/,G=eg([["0","9"]],!1,!1),Z=em("type(",!1),H=/^[^ )]/,K=eg([" ",")"],!0,!1),Y=em(")",!1),J=/^[imsu]/,Q=eg(["i","m","s","u"],!1,!1),X=em("/",!1),ee=/^[^\/]/,et=eg(["/"],!0,!1),er=em(":not(",!1),en=em(":matches(",!1),eu=em(":has(",!1),ea=em(":first-child",!1),ei=em(":last-child",!1),eo=em(":nth-child(",!1),es=em(":nth-last-child(",!1),ed=em(":",!1),el=0,ec=[{line:1,column:1}],ef=0,ep=[],eh={};if("startRule"in r){if(!(r.startRule in f))throw Error("Can't start parsing from rule \""+r.startRule+'".');p=f[r.startRule]}function em(e,t){return{type:"literal",text:e,ignoreCase:t}}function eg(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function ey(e){var r,n=ec[e];if(n)return n;for(r=e-1;!ec[r];)r--;for(n={line:(n=ec[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return ec[e]=n,n}function eb(e){el<ef||(el>ef&&(ef=el,ep=[]),ep.push(e))}function ev(){var e,t,r,n,u=32*el+0,a=eh[u];return a?(el=a.nextPos,a.result):(e=el,(t=ex())!==c&&(r=eA())!==c&&ex()!==c?e=t=1===(n=r).length?n[0]:{type:"matches",selectors:n}:(el=e,e=c),e===c&&(e=el,(t=ex())!==c&&(t=void 0),e=t),eh[u]={nextPos:el,result:e},e)}function ex(){var e,r,n=32*el+1,u=eh[n];if(u)return el=u.nextPos,u.result;for(e=[],32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(h));r!==c;)e.push(r),32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(h));return eh[n]={nextPos:el,result:e},e}function eE(){var e,r,n,u=32*el+2,a=eh[u];if(a)return el=a.nextPos,a.result;if(r=[],m.test(t.charAt(el))?(n=t.charAt(el),el++):(n=c,eb(g)),n!==c)for(;n!==c;)r.push(n),m.test(t.charAt(el))?(n=t.charAt(el),el++):(n=c,eb(g));else r=c;return r!==c&&(r=r.join("")),e=r,eh[u]={nextPos:el,result:e},e}function eC(){var e,r,n,u=32*el+3,a=eh[u];return a?(el=a.nextPos,a.result):(e=el,(r=ex())!==c?(62===t.charCodeAt(el)?(n=">",el++):(n=c,eb(y)),n!==c&&ex()!==c?e=r="child":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,(r=ex())!==c?(126===t.charCodeAt(el)?(n="~",el++):(n=c,eb(b)),n!==c&&ex()!==c?e=r="sibling":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,(r=ex())!==c?(43===t.charCodeAt(el)?(n="+",el++):(n=c,eb(v)),n!==c&&ex()!==c?e=r="adjacent":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(h)),r!==c&&(n=ex())!==c?e=r="descendant":(el=e,e=c)))),eh[u]={nextPos:el,result:e},e)}function eA(){var e,r,n,u,a,i,o,s,d=32*el+5,l=eh[d];if(l)return el=l.nextPos,l.result;if(e=el,(r=eS())!==c){for(n=[],u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eS())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);u!==c;)n.push(u),u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eS())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=E(r,n):(el=e,e=c)}else el=e,e=c;return eh[d]={nextPos:el,result:e},e}function eD(){var e,t,r,n,u,a=32*el+6,i=eh[a];return i?(el=i.nextPos,i.result):(e=el,(t=eC())===c&&(t=null),t!==c&&(r=eS())!==c?(u=r,e=t=(n=t)?{type:n,left:{type:"exactNode"},right:u}:u):(el=e,e=c),eh[a]={nextPos:el,result:e},e)}function eS(){var e,t,r,n,u,a,i,o=32*el+7,s=eh[o];if(s)return el=s.nextPos,s.result;if(e=el,(t=e_())!==c){for(r=[],n=el,(u=eC())!==c&&(a=e_())!==c?n=u=[u,a]:(el=n,n=c);n!==c;)r.push(n),n=el,(u=eC())!==c&&(a=e_())!==c?n=u=[u,a]:(el=n,n=c);r!==c?(i=t,e=t=r.reduce(function(e,t){return{type:t[0],left:e,right:t[1]}},i)):(el=e,e=c)}else el=e,e=c;return eh[o]={nextPos:el,result:e},e}function e_(){var e,r,n,u,a,i,o,s=32*el+8,d=eh[s];if(d)return el=d.nextPos,d.result;if(e=el,33===t.charCodeAt(el)?(r="!",el++):(r=c,eb(C)),r===c&&(r=null),r!==c){if(n=[],(u=ew())!==c)for(;u!==c;)n.push(u),u=ew();else n=c;n!==c?(a=r,o=1===(i=n).length?i[0]:{type:"compound",selectors:i},a&&(o.subject=!0),e=r=o):(el=e,e=c)}else el=e,e=c;return eh[s]={nextPos:el,result:e},e}function ew(){var e,r,n,u,a,i,o,s,d,l,f,p,h,m,g,y,b,v,ec,ef,ep,em,eg,ey,ev,eC,eS,e_,ew,eP,eI,eB,ej,eO,eL,eN,eR,eM,e$,eU,ez,eV,eq,eW,eG,eZ,eH,eK,eY,eJ,eQ,eX,e0,e1,e2,e3,e4,e5,e8,e6,e9,e7,te,tt,tr,tn,tu,ta=32*el+9,ti=eh[ta];return ti?(el=ti.nextPos,ti.result):((tu=(u=eh[n=32*el+10])?(el=u.nextPos,u.result):(42===t.charCodeAt(el)?(r="*",el++):(r=c,eb(A)),r!==c&&(r={type:"wildcard",value:r}),e=r,eh[n]={nextPos:el,result:e},e))===c&&(tu=(d=eh[s=32*el+11])?(el=d.nextPos,d.result):(a=el,35===t.charCodeAt(el)?(i="#",el++):(i=c,eb(D)),i===c&&(i=null),i!==c&&(o=eE())!==c?a=i={type:"identifier",value:o}:(el=a,a=c),eh[s]={nextPos:el,result:a},a))===c&&(tu=(g=eh[m=32*el+12])?(el=g.nextPos,g.result):(l=el,91===t.charCodeAt(el)?(f="[",el++):(f=c,eb(S)),f!==c&&ex()!==c&&(p=(ep=eh[ef=32*el+16])?(el=ep.nextPos,ep.result):(y=el,(b=eT())!==c&&ex()!==c&&(v=(eC=eh[ev=32*el+14])?(el=eC.nextPos,eC.result):(em=el,33===t.charCodeAt(el)?(eg="!",el++):(eg=c,eb(C)),eg===c&&(eg=null),eg!==c?(61===t.charCodeAt(el)?(ey="=",el++):(ey=c,eb(F)),ey!==c?em=eg=k(eg):(el=em,em=c)):(el=em,em=c),eh[ev]={nextPos:el,result:em},em))!==c&&ex()!==c?((ec=function(){var e,r,n,u,a,i=32*el+20,o=eh[i];if(o)return el=o.nextPos,o.result;if(e=el,"type("===t.substr(el,5)?(r="type(",el+=5):(r=c,eb(Z)),r!==c){if(ex()!==c){if(n=[],H.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(K)),u!==c)for(;u!==c;)n.push(u),H.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(K));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(Y)),a!==c?e=r={type:"type",value:n.join("")}:(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[i]={nextPos:el,result:e},e}())===c&&(ec=function(){var e,r,n,u,a,i,o=32*el+22,s=eh[o];if(s)return el=s.nextPos,s.result;if(e=el,47===t.charCodeAt(el)?(r="/",el++):(r=c,eb(X)),r!==c){if(n=[],ee.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(et)),u!==c)for(;u!==c;)n.push(u),ee.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(et));else n=c;n!==c?(47===t.charCodeAt(el)?(u="/",el++):(u=c,eb(X)),u!==c?((a=function(){var e,r,n=32*el+21,u=eh[n];if(u)return el=u.nextPos,u.result;if(e=[],J.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(Q)),r!==c)for(;r!==c;)e.push(r),J.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(Q));else e=c;return eh[n]={nextPos:el,result:e},e}())===c&&(a=null),a!==c?(i=a,e=r={type:"regexp",value:new RegExp(n.join(""),i?i.join(""):"")}):(el=e,e=c)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c;return eh[o]={nextPos:el,result:e},e}()),ec!==c?y=b=j(b,v,ec):(el=y,y=c)):(el=y,y=c),y===c&&(y=el,(b=eT())!==c&&ex()!==c&&(v=(eI=eh[eP=32*el+13])?(el=eI.nextPos,eI.result):(eS=el,w.test(t.charAt(el))?(e_=t.charAt(el),el++):(e_=c,eb(T)),e_===c&&(e_=null),e_!==c?(61===t.charCodeAt(el)?(ew="=",el++):(ew=c,eb(F)),ew!==c?eS=e_=k(e_):(el=eS,eS=c)):(el=eS,eS=c),eS===c&&(P.test(t.charAt(el))?(eS=t.charAt(el),el++):(eS=c,eb(I))),eh[eP]={nextPos:el,result:eS},eS))!==c&&ex()!==c?((ec=function(){var e,r,n,u,a,i,o=32*el+17,s=eh[o];if(s)return el=s.nextPos,s.result;if(e=el,34===t.charCodeAt(el)?(r='"',el++):(r=c,eb(O)),r!==c){for(n=[],L.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(N)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));u!==c;)n.push(u),L.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(N)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));n!==c?(34===t.charCodeAt(el)?(u='"',el++):(u=c,eb(O)),u!==c?e=r=U(n):(el=e,e=c)):(el=e,e=c)}else el=e,e=c;if(e===c){if(e=el,39===t.charCodeAt(el)?(r="'",el++):(r=c,eb(z)),r!==c){for(n=[],V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(q)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));u!==c;)n.push(u),V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(q)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));n!==c?(39===t.charCodeAt(el)?(u="'",el++):(u=c,eb(z)),u!==c?e=r=U(n):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}return eh[o]={nextPos:el,result:e},e}())===c&&(ec=function(){var e,r,n,u,a,i,o=32*el+18,s=eh[o];if(s)return el=s.nextPos,s.result;for(e=el,r=el,n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));if(n!==c?(46===t.charCodeAt(el)?(u=".",el++):(u=c,eb(B)),u!==c?r=n=[n,u]:(el=r,r=c)):(el=r,r=c),r===c&&(r=null),r!==c){if(n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G)),u!==c)for(;u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));else n=c;n!==c?(i=n,e=r={type:"literal",value:parseFloat(((a=r)?[].concat.apply([],a).join(""):"")+i.join(""))}):(el=e,e=c)}else el=e,e=c;return eh[o]={nextPos:el,result:e},e}())===c&&(ec=(eL=eh[eO=32*el+19])?(el=eL.nextPos,eL.result):((ej=eE())!==c&&(ej={type:"literal",value:ej}),eB=ej,eh[eO]={nextPos:el,result:eB},eB)),ec!==c?y=b=j(b,v,ec):(el=y,y=c)):(el=y,y=c),y===c&&(y=el,(b=eT())!==c&&(b={type:"attribute",name:b}),y=b)),eh[ef]={nextPos:el,result:y},y))!==c&&ex()!==c?(93===t.charCodeAt(el)?(h="]",el++):(h=c,eb(_)),h!==c?l=f=p:(el=l,l=c)):(el=l,l=c),eh[m]={nextPos:el,result:l},l))===c&&(tu=function(){var e,r,n,u,a,i,o,s=32*el+23,d=eh[s];if(d)return el=d.nextPos,d.result;if(e=el,46===t.charCodeAt(el)?(r=".",el++):(r=c,eb(B)),r!==c){if((n=eE())!==c){for(u=[],a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(B)),i!==c&&(o=eE())!==c?a=i=[i,o]:(el=a,a=c);a!==c;)u.push(a),a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(B)),i!==c&&(o=eE())!==c?a=i=[i,o]:(el=a,a=c);u!==c?e=r={type:"field",name:u.reduce(function(e,t){return e+t[0]+t[1]},n)}:(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[s]={nextPos:el,result:e},e}())===c&&(tu=(ez=eh[eU=32*el+24])?(el=ez.nextPos,ez.result):(eN=el,":not("===t.substr(el,5)?(eR=":not(",el+=5):(eR=c,eb(er)),eR!==c&&ex()!==c&&(eM=eA())!==c&&ex()!==c?(41===t.charCodeAt(el)?(e$=")",el++):(e$=c,eb(Y)),e$!==c?eN=eR={type:"not",selectors:eM}:(el=eN,eN=c)):(el=eN,eN=c),eh[eU]={nextPos:el,result:eN},eN))===c&&(tu=(eH=eh[eZ=32*el+25])?(el=eH.nextPos,eH.result):(eV=el,":matches("===t.substr(el,9)?(eq=":matches(",el+=9):(eq=c,eb(en)),eq!==c&&ex()!==c&&(eW=eA())!==c&&ex()!==c?(41===t.charCodeAt(el)?(eG=")",el++):(eG=c,eb(Y)),eG!==c?eV=eq={type:"matches",selectors:eW}:(el=eV,eV=c)):(el=eV,eV=c),eh[eZ]={nextPos:el,result:eV},eV))===c&&(tu=(e0=eh[eX=32*el+26])?(el=e0.nextPos,e0.result):(eK=el,":has("===t.substr(el,5)?(eY=":has(",el+=5):(eY=c,eb(eu)),eY!==c&&ex()!==c&&(eJ=function(){var e,r,n,u,a,i,o,s,d=32*el+4,l=eh[d];if(l)return el=l.nextPos,l.result;if(e=el,(r=eD())!==c){for(n=[],u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eD())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);u!==c;)n.push(u),u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eD())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=E(r,n):(el=e,e=c)}else el=e,e=c;return eh[d]={nextPos:el,result:e},e}())!==c&&ex()!==c?(41===t.charCodeAt(el)?(eQ=")",el++):(eQ=c,eb(Y)),eQ!==c?eK=eY={type:"has",selectors:eJ}:(el=eK,eK=c)):(el=eK,eK=c),eh[eX]={nextPos:el,result:eK},eK))===c&&(tu=(e4=eh[e3=32*el+27])?(el=e4.nextPos,e4.result):(":first-child"===t.substr(el,12)?(e2=":first-child",el+=12):(e2=c,eb(ea)),e2!==c&&(e2=eF(1)),e1=e2,eh[e3]={nextPos:el,result:e1},e1))===c&&(tu=(e9=eh[e6=32*el+28])?(el=e9.nextPos,e9.result):(":last-child"===t.substr(el,11)?(e8=":last-child",el+=11):(e8=c,eb(ei)),e8!==c&&(e8=ek(1)),e5=e8,eh[e6]={nextPos:el,result:e5},e5))===c&&(tu=function(){var e,r,n,u,a,i=32*el+29,o=eh[i];if(o)return el=o.nextPos,o.result;if(e=el,":nth-child("===t.substr(el,11)?(r=":nth-child(",el+=11):(r=c,eb(eo)),r!==c){if(ex()!==c){if(n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G)),u!==c)for(;u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(Y)),a!==c?e=r=eF(parseInt(n.join(""),10)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[i]={nextPos:el,result:e},e}())===c&&(tu=function(){var e,r,n,u,a,i=32*el+30,o=eh[i];if(o)return el=o.nextPos,o.result;if(e=el,":nth-last-child("===t.substr(el,16)?(r=":nth-last-child(",el+=16):(r=c,eb(es)),r!==c){if(ex()!==c){if(n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G)),u!==c)for(;u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(Y)),a!==c?e=r=ek(parseInt(n.join(""),10)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[i]={nextPos:el,result:e},e}())===c&&(tu=(tn=eh[tr=32*el+31])?(el=tn.nextPos,tn.result):(e7=el,58===t.charCodeAt(el)?(te=":",el++):(te=c,eb(ed)),te!==c&&(tt=eE())!==c?e7=te={type:"class",name:tt}:(el=e7,e7=c),eh[tr]={nextPos:el,result:e7},e7)),eh[ta]={nextPos:el,result:tu},tu)}function eT(){var e,r,n,u,a,i,o,s=32*el+15,d=eh[s];if(d)return el=d.nextPos,d.result;if(e=el,(r=eE())!==c){for(n=[],u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(B)),a!==c&&(i=eE())!==c?u=a=[a,i]:(el=u,u=c);u!==c;)n.push(u),u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(B)),a!==c&&(i=eE())!==c?u=a=[a,i]:(el=u,u=c);n!==c?(o=r,e=r=[].concat.apply([o],n).join("")):(el=e,e=c)}else el=e,e=c;return eh[s]={nextPos:el,result:e},e}function eF(e){return{type:"nth-child",index:{type:"literal",value:e}}}function ek(e){return{type:"nth-last-child",index:{type:"literal",value:e}}}if((o=p())!==c&&el===t.length)return o;throw o!==c&&el<t.length&&eb({type:"end"}),s=ep,d=ef<t.length?t.charAt(ef):null,n=ef,u=ef<t.length?ef+1:ef,a=ey(n),i=ey(u),l={start:{offset:n,line:a.line,column:a.column},end:{offset:u,line:i.line,column:i.column}},new e(e.buildMessage(s,d),s,d,l)}}}())});function lu(e,t){for(var r=0;r<t.length&&null!=e;++r)e=e[t[r]];return e}var la="function"==typeof WeakMap?new WeakMap:null;function li(e){if(null==e)return function(){return!0};if(null!=la){var t=la.get(e);return null!=t||(t=lo(e),la.set(e,t)),t}return lo(e)}function lo(e){switch(e.type){case"wildcard":return function(){return!0};case"identifier":var t=e.value.toLowerCase();return function(e,r,n){return t===e[n&&n.nodeTypeKey||"type"].toLowerCase()};case"exactNode":return function(e,t){return 0===t.length};case"field":var r=e.name.split(".");return function(e,t){return function e(t,r,n,u){for(var a=r,i=u;i<n.length;++i){if(null==a)return!1;var o=a[n[i]];if(Array.isArray(o)){for(var s=0;s<o.length;++s)if(e(t,o[s],n,i+1))return!0;return!1}a=o}return t===a}(e,t[r.length-1],r,0)};case"matches":var n=e.selectors.map(li);return function(e,t,r){for(var u=0;u<n.length;++u)if(n[u](e,t,r))return!0;return!1};case"compound":var u=e.selectors.map(li);return function(e,t,r){for(var n=0;n<u.length;++n)if(!u[n](e,t,r))return!1;return!0};case"not":var a=e.selectors.map(li);return function(e,t,r){for(var n=0;n<a.length;++n)if(a[n](e,t,r))return!1;return!0};case"has":var i=e.selectors.map(li);return function(e,t,r){var n=!1,u=[];return lr.traverse(e,{enter:function(e,t){null!=t&&u.unshift(t);for(var a=0;a<i.length;++a)if(i[a](e,u,r))return n=!0,void this.break()},leave:function(){u.shift()},keys:r&&r.visitorKeys,fallback:r&&r.fallback||"iteration"}),n};case"child":var o=li(e.left),s=li(e.right);return function(e,t,r){return!!(t.length>0&&s(e,t,r))&&o(t[0],t.slice(1),r)};case"descendant":var d=li(e.left),l=li(e.right);return function(e,t,r){if(l(e,t,r)){for(var n=0,u=t.length;n<u;++n)if(d(t[n],t.slice(n+1),r))return!0}return!1};case"attribute":var c=e.name.split(".");switch(e.operator){case void 0:return function(e){return null!=lu(e,c)};case"=":switch(e.value.type){case"regexp":return function(t){var r=lu(t,c);return"string"==typeof r&&e.value.value.test(r)};case"literal":var f="".concat(e.value.value);return function(e){return f==="".concat(lu(e,c))};case"type":return function(t){return e.value.value===d6(lu(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"!=":switch(e.value.type){case"regexp":return function(t){return!e.value.value.test(lu(t,c))};case"literal":var p="".concat(e.value.value);return function(e){return p!=="".concat(lu(e,c))};case"type":return function(t){return e.value.value!==d6(lu(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"<=":return function(t){return lu(t,c)<=e.value.value};case"<":return function(t){return lu(t,c)<e.value.value};case">":return function(t){return lu(t,c)>e.value.value};case">=":return function(t){return lu(t,c)>=e.value.value}}throw Error("Unknown operator: ".concat(e.operator));case"sibling":var h=li(e.left),m=li(e.right);return function(t,r,n){return m(t,r,n)&&ll(t,h,r,"LEFT_SIDE",n)||e.left.subject&&h(t,r,n)&&ll(t,m,r,"RIGHT_SIDE",n)};case"adjacent":var g=li(e.left),y=li(e.right);return function(t,r,n){return y(t,r,n)&&lc(t,g,r,"LEFT_SIDE",n)||e.right.subject&&g(t,r,n)&&lc(t,y,r,"RIGHT_SIDE",n)};case"nth-child":var b=e.index.value,v=li(e.right);return function(e,t,r){return v(e,t,r)&&lf(e,t,b,r)};case"nth-last-child":var x=-e.index.value,E=li(e.right);return function(e,t,r){return E(e,t,r)&&lf(e,t,x,r)};case"class":var C=e.name.toLowerCase();return function(t,r,n){if(n&&n.matchClass)return n.matchClass(e.name,t,r);if(n&&n.nodeTypeKey)return!1;switch(C){case"statement":if("Statement"===t.type.slice(-9))return!0;case"declaration":return"Declaration"===t.type.slice(-11);case"pattern":if("Pattern"===t.type.slice(-7))return!0;case"expression":return"Expression"===t.type.slice(-10)||"Literal"===t.type.slice(-7)||"Identifier"===t.type&&(0===r.length||"MetaProperty"!==r[0].type)||"MetaProperty"===t.type;case"function":return"FunctionDeclaration"===t.type||"FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type}throw Error("Unknown class name: ".concat(e.name))}}throw Error("Unknown selector type: ".concat(e.type))}function ls(e,t){var r=t&&t.nodeTypeKey||"type",n=e[r];return t&&t.visitorKeys&&t.visitorKeys[n]?t.visitorKeys[n]:lr.VisitorKeys[n]?lr.VisitorKeys[n]:t&&"function"==typeof t.fallback?t.fallback(e):Object.keys(e).filter(function(e){return e!==r})}function ld(e,t){var r=t&&t.nodeTypeKey||"type";return null!==e&&"object"===d6(e)&&"string"==typeof e[r]}function ll(e,t,r,n,u){var a=d9(r,1)[0];if(!a)return!1;for(var i=ls(a,u),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;var l=void 0,c=void 0;"LEFT_SIDE"===n?(l=0,c=d):(l=d+1,c=s.length);for(var f=l;f<c;++f)if(ld(s[f],u)&&t(s[f],r,u))return!0}}return!1}function lc(e,t,r,n,u){var a=d9(r,1)[0];if(!a)return!1;for(var i=ls(a,u),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;if("LEFT_SIDE"===n&&d>0&&ld(s[d-1],u)&&t(s[d-1],r,u)||"RIGHT_SIDE"===n&&d<s.length-1&&ld(s[d+1],u)&&t(s[d+1],r,u))return!0}}return!1}function lf(e,t,r,n){if(0===r)return!1;var u=d9(t,1)[0];if(!u)return!1;for(var a=ls(u,n),i=0;i<a.length;++i){var o=u[a[i]];if(Array.isArray(o)){var s=r<0?o.length+r:r-1;if(s>=0&&s<o.length&&o[s]===e)return!0}}return!1}function lp(e,t,r,n){if(t){var u=[],a=li(t),i=(function e(t,r){if(null==t||"object"!=d6(t))return[];null==r&&(r=t);for(var n=t.subject?[r]:[],u=Object.keys(t),a=0;a<u.length;++a){var i,o=u[a],s=t[o];n.push.apply(n,function(e){if(Array.isArray(e))return le(e)}(i=e(s,"left"===o?s:r))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||d7(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return n})(t).map(li);lr.traverse(e,{enter:function(e,t){if(null!=t&&u.unshift(t),a(e,u,n)){if(i.length)for(var o=0,s=i.length;o<s;++o){i[o](e,u,n)&&r(e,t,u);for(var d=0,l=u.length;d<l;++d){var c=u.slice(d+1);i[o](u[d],c,n)&&r(u[d],t,c)}}else r(e,t,u)}},leave:function(){u.shift()},keys:n&&n.visitorKeys,fallback:n&&n.fallback||"iteration"})}}function lh(e,t,r){var n=[];return lp(e,t,function(e){n.push(e)},r),n}function lm(e){return ln.parse(e)}function lg(e,t,r){return lh(e,lm(t),r)}lg.parse=lm,lg.match=lh,lg.traverse=lp,lg.matches=function(e,t,r,n){return!t||!!e&&(r||(r=[]),li(t)(e,r,n))},lg.query=lg;var ly=/*@__PURE__*/ot(/*#__PURE__*/Object.freeze({__proto__:null,default:lg})),lb=/*@__PURE__*/oe(/*@__PURE__*/function(){if(a$)return aM;a$=1;let e=function(){if(aL)return aO;aL=1;let e=aj?aB:(aj=1,aB=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((e,t)=>Math.min(e,t.length),1/0):0});return aO=t=>{let r=e(t);if(0===r)return t;let n=RegExp(`^[ \\t]{${r}}`,"gm");return t.replace(n,"")}}(),t=aR?aN:(aR=1,aN=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},"string"!=typeof e)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if("string"!=typeof r.indent)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(0===t)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}),{replaceTemplateElement:r}=/*@__PURE__*/sZ(),{isMethodCall:n,isCallExpression:u,isTaggedTemplateLiteral:a}=/*@__PURE__*/sh(),{isNodeMatches:i}=/*@__PURE__*/sL(),o="template-indent",s=e=>n(e.parent,{method:"toMatchInlineSnapshot",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&e.parent.arguments[0]===e&&u(e.parent.callee.object,{name:"expect",argumentsLength:1,optionalCall:!1,optionalMember:!1}),d=new Map,l=e=>(d.has(e)||d.set(e,ly.parse(e)),d.get(e));return aM={create:n=>{let{sourceCode:u}=n,d={tags:["outdent","dedent","gql","sql","html","styled"],functions:["dedent","stripIndent"],selectors:[],comments:["HTML","indent"],...n.options[0]};d.comments=d.comments.map(e=>e.toLowerCase());let c=n=>{let a;let i="__PLACEHOLDER__"+Math.random(),s=n.quasis.map(e=>u.getText(e).slice(1,e.tail?-1:-2)).join(i),l=s.match(/\r?\n/);if(!l)return;let c=l[0],f=u.lines[n.loc.start.line-1].match(/^(\s*)\S/),p=f?f[1]:"";a="string"==typeof d.indent?d.indent:"number"==typeof d.indent?" ".repeat(d.indent):p.startsWith(" ")?" ":" ";let h=e(s).replaceAll(RegExp(`^${c}|${c}[ ]*$`,"g"),""),m=c+t(h,1,{indent:p+a})+c+p;if(m!==s)return{node:n,messageId:o,fix:e=>m.split(i).map((t,u)=>r(e,n.quasis[u],t))}},f=e=>{if(d.comments.length>0){let t=u.getTokenBefore(e,{includeComments:!0});if(t?.type==="Block"&&d.comments.includes(t.value.trim().toLowerCase()))return!0}if(s(e)||d.tags.length>0&&a(e,d.tags)||d.functions.length>0&&"CallExpression"===e.parent.type&&e.parent.arguments.includes(e)&&i(e.parent.callee,d.functions))return!0;if(d.selectors.length>0){let t=u.getAncestors(e).reverse();if(d.selectors.some(r=>ly.matches(e,l(r),t)))return!0}return!1};return{TemplateLiteral(e){if(f(e))return c(e)}}},meta:{type:"suggestion",docs:{description:"Fix whitespace-insensitive template indentation.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{indent:{oneOf:[{type:"string",pattern:/^\s+$/.source},{type:"integer",minimum:1}]},tags:{type:"array",uniqueItems:!0,items:{type:"string"}},functions:{type:"array",uniqueItems:!0,items:{type:"string"}},selectors:{type:"array",uniqueItems:!0,items:{type:"string"}},comments:{type:"array",uniqueItems:!0,items:{type:"string"}}}}],messages:{[o]:"Templates should be properly indented."}}}}()),lv=/*@__PURE__*/oe(/*@__PURE__*/function(){if(az)return aU;az=1;let{isMethodCall:e}=/*@__PURE__*/sh(),{removeSpacesAfter:t}=/*@__PURE__*/sZ(),r="no-await-in-promise-methods/error",n="no-await-in-promise-methods/suggestion",u=["all","allSettled","any","race"],a=t=>e(t,{object:"Promise",methods:u,optionalMember:!1,optionalCall:!1,argumentsLength:1})&&"ArrayExpression"===t.arguments[0].type;return aU={create:e=>({*CallExpression(u){if(a(u))for(let a of u.arguments[0].elements)a?.type==="AwaitExpression"&&(yield{node:a,messageId:r,data:{method:u.callee.property.name},suggest:[{messageId:n,*fix(r){let{sourceCode:n}=e,u=e.sourceCode.getFirstToken(a);yield r.remove(u),yield t(u,n,r)}}]})}}),meta:{type:"suggestion",docs:{description:"Disallow using `await` in `Promise` method parameters.",recommended:!0},hasSuggestions:!0,messages:{[r]:"Promise in `Promise.{{method}}()` should not be awaited.",[n]:"Remove `await`."}}}}()),lx=/*@__PURE__*/oe(/*@__PURE__*/function(){if(aq)return aV;aq=1;let{fixSpaceAroundKeyword:e,addParenthesizesToReturnOrThrowExpression:t}=/*@__PURE__*/sZ(),{needsSemicolon:r,isParenthesized:n,isOnSameLine:u}=/*@__PURE__*/sL(),a="no-negation-in-equality-check/error",i="no-negation-in-equality-check/suggestion",o=new Set(["===","!==","==","!="]),s=e=>"BinaryExpression"===e.type&&o.has(e.operator),d=e=>"UnaryExpression"===e.type&&e.prefix&&"!"===e.operator;return aV={create:o=>({BinaryExpression(l){let{operator:c,left:f}=l;if(!(s(l)&&d(f)&&!d(f.argument)))return;let{sourceCode:p}=o,h=p.getFirstToken(f),m=`${c.startsWith("!")?"=":"!"}${c.slice(1)}`;return{node:h,messageId:a,suggest:[{messageId:i,data:{operator:m},*fix(a){yield*e(a,l,p);let i=p.getTokenAfter(h),{parent:o}=l;"ReturnStatement"!==o.type&&"ThrowStatement"!==o.type||n(l,p)||u(p.getFirstToken(o),i)||(yield*t(a,o,p)),yield a.remove(h),r(p.getTokenBefore(h),p,i.value)&&(yield a.insertTextAfter(h,";"));let s=p.getTokenAfter(f,e=>"Punctuator"===e.type&&e.value===c);yield a.replaceText(s,m)}}]}}}),meta:{type:"problem",docs:{description:"Disallow negated expression in equality check.",recommended:!0},hasSuggestions:!0,messages:{[a]:"Negated expression in not allowed in equality check.",[i]:"Switch to '{{operator}}' check."}}}}()),lE=/*@__PURE__*/oe(/*@__PURE__*/function(){if(aG)return aW;aG=1;let{isMethodCall:e,isMemberExpression:t}=/*@__PURE__*/sh(),{removeArgument:r}=/*@__PURE__*/sZ(),{isSameReference:n}=/*@__PURE__*/sL(),u="no-length-as-slice-end";return aW={create:a=>{a.on("CallExpression",i=>{if(!e(i,{method:"slice",argumentsLength:2,optionalCall:!1}))return;let o=i.arguments[1],s="ChainExpression"===o.type?o.expression:o;if(t(s,{property:"length",computed:!1})&&n(i.callee.object,s.object))return{node:s,messageId:u,fix:e=>r(e,o,a.sourceCode)}})},meta:{type:"suggestion",docs:{description:"Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.",recommended:!0},fixable:"code",messages:{[u]:"Passing `….length` as the `end` argument is unnecessary."}}}}()),lC=/*@__PURE__*/oe(/*@__PURE__*/function(){if(aH)return aZ;aH=1;let{findVariable:e}=sa,t=/*@__PURE__*/sC(),{renameVariable:r}=/*@__PURE__*/sZ(),{isMethodCall:n}=/*@__PURE__*/sh(),u="catch-error-name",a=e=>("FunctionExpression"===e.parent.type||"ArrowFunctionExpression"===e.parent.type)&&e.parent.params[0]===e&&(n(e.parent.parent,{method:"then",argumentsLength:2,optionalCall:!1,optionalMember:!1})||n(e.parent.parent,{method:"catch",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&e.parent.parent.arguments.at(-1)===e.parent;return aZ={create:n=>{let i={name:"error",ignore:[],...n.options[0]},{name:o}=i,s=i.ignore.map(e=>e instanceof RegExp?e:RegExp(e,"u")),d=e=>e===o||s.some(t=>t.test(e))||e.endsWith(o)||e.endsWith(o.charAt(0).toUpperCase()+o.slice(1));return{Identifier(i){if(!("CatchClause"===i.parent.type&&i.parent.param===i)&&!a(i))return;let s=i.name;if(d(s)||d(s.replaceAll(/_+$/g,"")))return;let l=e(n.sourceCode.getScope(i),i);if(!l||"_"===s&&0===l.references.length)return;let c=t(o,[l.scope,...l.references.map(({from:e})=>e)]),f={node:i,messageId:u,data:{originalName:s,fixedName:c||o}};return c&&(f.fix=e=>r(l,c,e)),f}}},meta:{type:"suggestion",docs:{description:"Enforce a specific parameter name in catch clauses.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{name:{type:"string"},ignore:{type:"array",uniqueItems:!0}}}],messages:{[u]:"The catch parameter `{{originalName}}` should be named `{{fixedName}}`."}}}}()),lA={exports:{}};lA.exports;var lD=/*@__PURE__*/oe(/*@__PURE__*/function(){if(aJ)return aY;aJ=1;let{upperFirst:e}=(aK||(aK=1,function(e,t){var r,n,u,a,i,o,s,d,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,h={};((e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})})(h,{camelCase:()=>tN,defaultsDeep:()=>t0,kebabCase:()=>t1,lowerFirst:()=>t2,snakeCase:()=>t3,upperFirst:()=>ti}),e.exports=((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of f(t))p.call(e,u)||u===r||l(e,u,{get:()=>t[u],enumerable:!(n=c(t,u))||n.enumerable});return e})(l({},"__esModule",{value:!0}),h);var m="object"==typeof i7&&i7&&i7.Object===Object&&i7,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),b=y.Symbol,v=Object.prototype,x=v.hasOwnProperty,E=v.toString,C=b?b.toStringTag:void 0,A=function(e){var t=x.call(e,C),r=e[C];try{e[C]=void 0;var n=!0}catch(e){}var u=E.call(e);return n&&(t?e[C]=r:delete e[C]),u},D=Object.prototype.toString,S=b?b.toStringTag:void 0,_=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?A(e):D.call(e)},w=function(e){return null!=e&&"object"==typeof e},T=function(e,t){for(var r=-1,n=null==e?0:e.length,u=Array(n);++r<n;)u[r]=t(e[r],r,e);return u},F=Array.isArray,k=1/0,P=b?b.prototype:void 0,I=P?P.toString:void 0,B=function e(t){if("string"==typeof t)return t;if(F(t))return T(t,e)+"";if("symbol"==typeof t||w(t)&&"[object Symbol]"==_(t))return I?I.call(t):"";var r=t+"";return"0"==r&&1/t==-k?"-0":r},j=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},O=function(e){return e},L=function(e){if(!j(e))return!1;var t=_(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},N=y["__core-js_shared__"],R=(r=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",M=Function.prototype.toString,$=function(e){if(null!=e){try{return M.call(e)}catch(e){}try{return e+""}catch(e){}}return""},U=/^\[object .+?Constructor\]$/,z=Object.prototype,V=Function.prototype.toString,q=z.hasOwnProperty,W=RegExp("^"+V.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=function(e,t){var r,n=null==e?void 0:e[t];return j(r=n)&&(!R||!(R in r))&&(L(r)?W:U).test($(r))?n:void 0},Z=Object.create,H=function(){function e(){}return function(t){if(!j(t))return{};if(Z)return Z(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),K=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},Y=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},J=Date.now,Q=function(){try{var e=G(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),X=(n=Q?function(e,t){return Q(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:O,u=0,a=0,function(){var e=J(),t=16-(e-a);if(a=e,t>0){if(++u>=800)return arguments[0]}else u=0;return n.apply(void 0,arguments)}),ee=/^(?:0|[1-9]\d*)$/,et=function(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&ee.test(e))&&e>-1&&e%1==0&&e<t},er=function(e,t,r){"__proto__"==t&&Q?Q(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},en=function(e,t){return e===t||e!=e&&t!=t},eu=Object.prototype.hasOwnProperty,ea=function(e,t,r){var n=e[t];eu.call(e,t)&&en(n,r)&&(void 0!==r||t in e)||er(e,t,r)},ei=function(e,t,r,n){var u=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var o=t[a],s=n?n(r[o],e[o],o,r,e):void 0;void 0===s&&(s=e[o]),u?er(r,o,s):ea(r,o,s)}return r},eo=Math.max,es=function(e,t){var r;return X((r=eo(void 0===(r=t)?e.length-1:r,0),function(){for(var t=arguments,n=-1,u=eo(t.length-r,0),a=Array(u);++n<u;)a[n]=t[r+n];n=-1;for(var i=Array(r+1);++n<r;)i[n]=t[n];return i[r]=O(a),K(e,this,i)}),e+"")},ed=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff},el=function(e){return null!=e&&ed(e.length)&&!L(e)},ec=function(e,t,r){if(!j(r))return!1;var n=typeof t;return("number"==n?!!(el(r)&&et(t,r.length)):"string"==n&&t in r)&&en(r[t],e)},ef=Object.prototype,ep=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ef)},eh=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},em=function(e){return w(e)&&"[object Arguments]"==_(e)},eg=Object.prototype,ey=eg.hasOwnProperty,eb=eg.propertyIsEnumerable,ev=em(function(){return arguments}())?em:function(e){return w(e)&&ey.call(e,"callee")&&!eb.call(e,"callee")},ex=t&&!t.nodeType&&t,eE=ex&&e&&!e.nodeType&&e,eC=eE&&eE.exports===ex?y.Buffer:void 0,eA=(eC?eC.isBuffer:void 0)||function(){return!1},eD={};eD["[object Float32Array]"]=eD["[object Float64Array]"]=eD["[object Int8Array]"]=eD["[object Int16Array]"]=eD["[object Int32Array]"]=eD["[object Uint8Array]"]=eD["[object Uint8ClampedArray]"]=eD["[object Uint16Array]"]=eD["[object Uint32Array]"]=!0,eD["[object Arguments]"]=eD["[object Array]"]=eD["[object ArrayBuffer]"]=eD["[object Boolean]"]=eD["[object DataView]"]=eD["[object Date]"]=eD["[object Error]"]=eD["[object Function]"]=eD["[object Map]"]=eD["[object Number]"]=eD["[object Object]"]=eD["[object RegExp]"]=eD["[object Set]"]=eD["[object String]"]=eD["[object WeakMap]"]=!1;var eS=t&&!t.nodeType&&t,e_=eS&&e&&!e.nodeType&&e,ew=e_&&e_.exports===eS&&m.process,eT=function(){try{var e=e_&&e_.require&&e_.require("util").types;if(e)return e;return ew&&ew.binding&&ew.binding("util")}catch(e){}}(),eF=eT&&eT.isTypedArray,ek=eF?function(e){return eF(e)}:function(e){return w(e)&&ed(e.length)&&!!eD[_(e)]},eP=Object.prototype.hasOwnProperty,eI=function(e,t){var r=F(e),n=!r&&ev(e),u=!r&&!n&&eA(e),a=!r&&!n&&!u&&ek(e),i=r||n||u||a,o=i?eh(e.length,String):[],s=o.length;for(var d in e)(t||eP.call(e,d))&&!(i&&("length"==d||u&&("offset"==d||"parent"==d)||a&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||et(d,s)))&&o.push(d);return o},eB=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},ej=Object.prototype.hasOwnProperty,eO=function(e){if(!j(e))return eB(e);var t=ep(e),r=[];for(var n in e)"constructor"==n&&(t||!ej.call(e,n))||r.push(n);return r},eL=function(e){return el(e)?eI(e,!0):eO(e)},eN=G(Object,"create"),eR=Object.prototype.hasOwnProperty,eM=Object.prototype.hasOwnProperty;function e$(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}e$.prototype.clear=function(){this.__data__=eN?eN(null):{},this.size=0},e$.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},e$.prototype.get=function(e){var t=this.__data__;if(eN){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return eR.call(t,e)?t[e]:void 0},e$.prototype.has=function(e){var t=this.__data__;return eN?void 0!==t[e]:eM.call(t,e)},e$.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=eN&&void 0===t?"__lodash_hash_undefined__":t,this};var eU=function(e,t){for(var r=e.length;r--;)if(en(e[r][0],t))return r;return -1},ez=Array.prototype.splice;function eV(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eV.prototype.clear=function(){this.__data__=[],this.size=0},eV.prototype.delete=function(e){var t=this.__data__,r=eU(t,e);return!(r<0)&&(r==t.length-1?t.pop():ez.call(t,r,1),--this.size,!0)},eV.prototype.get=function(e){var t=this.__data__,r=eU(t,e);return r<0?void 0:t[r][1]},eV.prototype.has=function(e){return eU(this.__data__,e)>-1},eV.prototype.set=function(e,t){var r=this.__data__,n=eU(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var eq=G(y,"Map"),eW=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},eG=function(e,t){var r=e.__data__;return eW(t)?r["string"==typeof t?"string":"hash"]:r.map};function eZ(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eZ.prototype.clear=function(){this.size=0,this.__data__={hash:new e$,map:new(eq||eV),string:new e$}},eZ.prototype.delete=function(e){var t=eG(this,e).delete(e);return this.size-=t?1:0,t},eZ.prototype.get=function(e){return eG(this,e).get(e)},eZ.prototype.has=function(e){return eG(this,e).has(e)},eZ.prototype.set=function(e,t){var r=eG(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var eH=function(e){return null==e?"":B(e)},eK=(i=Object.getPrototypeOf,o=Object,function(e){return i(o(e))}),eY=Object.prototype,eJ=Function.prototype.toString,eQ=eY.hasOwnProperty,eX=eJ.call(Object),e0=function(e){if(!w(e)||"[object Object]"!=_(e))return!1;var t=eK(e);if(null===t)return!0;var r=eQ.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&eJ.call(r)==eX},e1=function(e,t,r){var n=-1,u=e.length;t<0&&(t=-t>u?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(u);++n<u;)a[n]=e[n+t];return a},e2=function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:e1(e,t,r)},e3=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),e4=function(e){return e3.test(e)},e5="\ud800-\udfff",e8="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",e6="\ud83c[\udffb-\udfff]",e9="[^"+e5+"]",e7="(?:\ud83c[\udde6-\uddff]){2}",te="[\ud800-\udbff][\udc00-\udfff]",tt="(?:"+e8+"|"+e6+")?",tr="[\\ufe0e\\ufe0f]?",tn="(?:\\u200d(?:"+[e9,e7,te].join("|")+")"+tr+tt+")*",tu=RegExp(e6+"(?="+e6+")|(?:"+[e9+e8+"?",e8,e7,te,"["+e5+"]"].join("|")+")"+(tr+tt+tn),"g"),ta=function(e){return function(t){var r,n=e4(t=eH(t))?e4(r=t)?r.match(tu)||[]:r.split(""):void 0,u=n?n[0]:t.charAt(0),a=n?e2(n,1).join(""):t.slice(1);return u[e]()+a}},ti=ta("toUpperCase"),to=function(e,t,r,n){var u=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++u]);++u<a;)r=t(r,e[u],u,e);return r},ts=(s={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},function(e){return null==s?void 0:s[e]}),td=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tl=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),tc=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tp="\ud800-\udfff",th="\\u2700-\\u27bf",tm="a-z\\xdf-\\xf6\\xf8-\\xff",tg="A-Z\\xc0-\\xd6\\xd8-\\xde",ty="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tb="['’]",tv="["+ty+"]",tx="["+tm+"]",tE="[^"+tp+ty+"\\d+"+th+tm+tg+"]",tC="(?:\ud83c[\udde6-\uddff]){2}",tA="[\ud800-\udbff][\udc00-\udfff]",tD="["+tg+"]",tS="(?:"+tx+"|"+tE+")",t_="(?:"+tD+"|"+tE+")",tw="(?:"+tb+"(?:d|ll|m|re|s|t|ve))?",tT="(?:"+tb+"(?:D|LL|M|RE|S|T|VE))?",tF="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",tk="[\\ufe0e\\ufe0f]?",tP="(?:\\u200d(?:"+["[^"+tp+"]",tC,tA].join("|")+")"+tk+tF+")*",tI="(?:"+["["+th+"]",tC,tA].join("|")+")"+(tk+tF+tP),tB=RegExp([tD+"?"+tx+"+"+tw+"(?="+[tv,tD,"$"].join("|")+")",t_+"+"+tT+"(?="+[tv,tD+tS,"$"].join("|")+")",tD+"?"+tS+"+"+tw,tD+"+"+tT,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",tI].join("|"),"g"),tj=function(e,t,r){if(e=eH(e),void 0===(t=r?void 0:t)){var n;return(n=e,tf.test(n))?e.match(tB)||[]:e.match(tc)||[]}return e.match(t)||[]},tO=RegExp("['’]","g"),tL=function(e){return function(t){var r;return to(tj(((r=eH(r=t))&&r.replace(td,ts).replace(tl,"")).replace(tO,"")),e,"")}},tN=tL(function(e,t,r){return t=t.toLowerCase(),e+(r?ti(eH(t).toLowerCase()):t)});function tR(e){var t=this.__data__=new eV(e);this.size=t.size}tR.prototype.clear=function(){this.__data__=new eV,this.size=0},tR.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},tR.prototype.get=function(e){return this.__data__.get(e)},tR.prototype.has=function(e){return this.__data__.has(e)},tR.prototype.set=function(e,t){var r=this.__data__;if(r instanceof eV){var n=r.__data__;if(!eq||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new eZ(n)}return r.set(e,t),this.size=r.size,this};var tM=t&&!t.nodeType&&t,t$=tM&&e&&!e.nodeType&&e,tU=t$&&t$.exports===tM?y.Buffer:void 0,tz=tU?tU.allocUnsafe:void 0,tV=function(e,t){if(t)return e.slice();var r=e.length,n=tz?tz(r):new e.constructor(r);return e.copy(n),n},tq=y.Uint8Array,tW=function(e){var t=new e.constructor(e.byteLength);return new tq(t).set(new tq(e)),t},tG=function(e,t){var r=t?tW(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},tZ=function(e,t,r){for(var n=-1,u=Object(e),a=r(e),i=a.length;i--;){var o=a[++n];if(!1===t(u[o],o,u))break}return e},tH=function(e,t,r){(void 0===r||en(e[t],r))&&(void 0!==r||t in e)||er(e,t,r)},tK=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},tY=function(e,t,r,n,u,a,i){var o=tK(e,r),s=tK(t,r),d=i.get(s);if(d){tH(e,r,d);return}var l=a?a(o,s,r+"",e,t,i):void 0,c=void 0===l;if(c){var f=F(s),p=!f&&eA(s),h=!f&&!p&&ek(s);(l=s,f||p||h)?F(o)?l=o:w(o)&&el(o)?l=Y(o):p?(c=!1,l=tV(s,!0)):h?(c=!1,l=tG(s,!0)):l=[]:e0(s)||ev(s)?(l=o,ev(o))?l=ei(o,eL(o)):(!j(o)||L(o))&&(l="function"!=typeof s.constructor||ep(s)?{}:H(eK(s))):c=!1}c&&(i.set(s,l),u(l,s,n,a,i),i.delete(s)),tH(e,r,l)},tJ=function e(t,r,n,u,a){t!==r&&tZ(r,function(i,o){if(a||(a=new tR),j(i))tY(t,r,o,n,e,u,a);else{var s=u?u(tK(t,o),i,o+"",t,r,a):void 0;void 0===s&&(s=i),tH(t,o,s)}},eL)},tQ=function e(t,r,n,u,a,i){return j(t)&&j(r)&&(i.set(r,t),tJ(t,r,void 0,e,i),i.delete(r)),t},tX=(d=function(e,t,r,n){tJ(e,t,r,n)},es(function(e,t){var r=-1,n=t.length,u=n>1?t[n-1]:void 0,a=n>2?t[2]:void 0;for(u=d.length>3&&"function"==typeof u?(n--,u):void 0,a&&ec(t[0],t[1],a)&&(u=n<3?void 0:u,n=1),e=Object(e);++r<n;){var i=t[r];i&&d(e,i,r,u)}return e})),t0=es(function(e){return e.push(void 0,tQ),K(tX,void 0,e)}),t1=tL(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),t2=ta("toLowerCase"),t3=tL(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});/*! Bundled license information:
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
lodash-es/lodash.js:
|
|
18
|
+
(**
|
|
19
|
+
* @license
|
|
20
|
+
* Lodash (Custom Build) <https://lodash.com/>
|
|
21
|
+
* Build: `lodash modularize exports="es" -o ./`
|
|
22
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
23
|
+
* Released under MIT license <https://lodash.com/license>
|
|
24
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
25
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
26
|
+
*)
|
|
27
|
+
*/}(lA,lA.exports)),lA.exports),t="invalidExport",r=/^(?:[A-Z][\da-z]*)*Error$/,n=t=>e(t).replace(/(?:error|)$/i,"Error"),u=e=>`
|
|
28
28
|
constructor() {
|
|
29
29
|
super();
|
|
30
30
|
this.name = '${e}';
|
|
31
31
|
}
|
|
32
|
-
`,go=e=>{if(!e.superClass)return!1;let{name:t,type:r,property:n}=e.superClass;return"MemberExpression"===r&&({name:t}=n),gu.test(t)},gs=e=>"ExpressionStatement"===e.type&&"CallExpression"===e.expression.type&&"Super"===e.expression.callee.type,gd=(e,t)=>{if("ExpressionStatement"!==e.type||"AssignmentExpression"!==e.expression.type)return!1;let r=e.expression.left;return!!r.object&&"ThisExpression"===r.object.type&&r.property.name===t},gl=(e,t)=>"PropertyDefinition"===e.type&&!e.computed&&"Identifier"===e.key.type&&e.key.name===t;function*gc(e,t){if(!go(t)||null===t.id)return;let{name:r}=t.id,n=ga(r);r!==n&&(yield{node:t.id,message:`Invalid class name, use \`${n}\`.`});let{body:u,range:a}=t.body,i=u.find(e=>"constructor"===e.kind);if(!i){yield{node:t,message:"Add a constructor to your error.",fix:e=>e.insertTextAfterRange([a[0],a[0]+1],gi(r))};return}let o=i.value.body;if(!o)return;let s=o.body,d=s.find(e=>gs(e)),l=s.findIndex(e=>gd(e,"message"));if(d){if(-1!==l){let e=s[l];yield{node:d,message:"Pass the error message to `super()` instead of setting `this.message`.",*fix(t){if(0===d.expression.arguments.length){let r=e.expression.right;yield t.insertTextAfterRange([d.range[0],d.range[0]+6],r.raw||r.name)}yield t.removeRange([0===l?o.range[0]:s[l-1].range[1],e.range[1]])}}}}else yield{node:o,message:"Missing call to `super()` in constructor."};let c=s.find(e=>gd(e,"name"));if(c)c.expression.right.value!==r&&(yield{node:c?.expression.right??o,message:`The \`name\` property should be set to \`${r}\`.`});else{let e=u.find(e=>gl(e,"name"));e?.value&&e.value.value===r||(yield{node:e?.value??o,message:`The \`name\` property should be set to \`${r}\`.`})}}const gf=(e,t)=>{let r=t.left.property.name,n=t.right;if("ClassExpression"!==n.type||!go(n)||!n.id)return;let u=n.id.name;if(r!==u)return{node:t.left.property,messageId:gn,fix:e=>e.replaceText(t.left.property,u)}};var gp=/*@__PURE__*/ec({create:e=>{e.on("ClassDeclaration",t=>gc(e,t)),e.on("AssignmentExpression",t=>{if("ClassExpression"===t.right.type)return gc(e,t.right)}),e.on("AssignmentExpression",t=>{if("MemberExpression"===t.left.type&&"Identifier"===t.left.object.type&&"exports"===t.left.object.name)return gf(e,t)})},meta:{type:"problem",docs:{description:"Enforce correct `Error` subclassing.",recommended:!1},fixable:"code",messages:{[gn]:"Exported error name should match error class"}}});const{isParenthesized:gh,isNotSemicolonToken:gm}=tm,{needsSemicolon:gg}=nI,{removeSpacesAfter:gy}=uv,gb="no-lonely-if",gv=e=>"IfStatement"===e.type&&!e.alternate,gx=e=>"LogicalExpression"===e.type&&("||"===e.operator||"??"===e.operator)||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type;function gE(e,t){let r={};r.ifToken=t.getFirstToken(e),r.openingParenthesisToken=t.getFirstToken(e,1);let{consequent:n}=e;return r.closingParenthesisToken=t.getTokenBefore(n),"BlockStatement"===n.type&&(r.openingBraceToken=t.getFirstToken(n),r.closingBraceToken=t.getLastToken(n)),r}var gC=/*@__PURE__*/ec({create:e=>({IfStatement(t){var r;if(gv(t)&&("BlockStatement"===t.parent.type&&1===t.parent.body.length&&t.parent.body[0]===t&&gv(t.parent.parent)&&t.parent.parent.consequent===t.parent||gv(t.parent)&&t.parent.consequent===t))return{node:t,messageId:gb,fix:(r=e.sourceCode,function*(e){let n=("BlockStatement"===t.parent.type?t.parent:t).parent,u={...n,...gE(n,r)},a={...t,...gE(t,r)};if(yield e.remove(a.ifToken),yield gy(a.ifToken,r,e),u.openingBraceToken){yield e.remove(u.openingBraceToken),yield gy(u.openingBraceToken,r,e),yield e.remove(u.closingBraceToken);let t=r.getTokenBefore(u.closingBraceToken,{includeComments:!0});yield gy(t,r,e)}for(let{test:t,openingParenthesisToken:n,closingParenthesisToken:i}of(yield e.insertTextBefore(u.openingParenthesisToken,"("),yield e.insertTextAfter(a.closingParenthesisToken,`)${"EmptyStatement"===a.consequent.type?"":" "}`),yield e.insertTextAfter(u.closingParenthesisToken," && "),[u,a]))(gh(t,r)||!gx(t))&&(yield e.remove(n),yield e.remove(i)),yield gy(i,r,e);if("BlockStatement"!==a.consequent.type){let t=r.getLastToken(a.consequent);if(gm(t)){let n=r.getTokenAfter(u);n&&gg(t,r,n.value)&&(yield e.insertTextBefore(n,";"))}}})}}}),meta:{type:"suggestion",docs:{description:"Disallow `if` statements as the only statement in `if` blocks without `else`.",recommended:!0},fixable:"code",messages:{[gb]:"Unexpected `if` as the only statement in a `if` block without `else`."}}});const{isMethodCall:gA,isNumberLiteral:gD}=tK,{getCallExpressionTokens:gS}=nI,g_="no-magic-array-flat-depth";var gw=/*@__PURE__*/ec({create:e=>({CallExpression(t){if(!gA(t,{method:"flat",argumentsLength:1,optionalCall:!1}))return;let[r]=t.arguments;if(!gD(r)||1===r.value)return;let{sourceCode:n}=e,{openingParenthesisToken:u,closingParenthesisToken:a}=gS(n,t);if(!n.commentsExistBetween(u,a))return{node:r,messageId:g_}}}),meta:{type:"suggestion",docs:{description:"Disallow a magic number as the `depth` argument in `Array#flat(…).`",recommended:!0},messages:{[g_]:"Magic number as depth is not allowed."}}});const{removeParentheses:gT,fixSpaceAroundKeyword:gP,addParenthesizesToReturnOrThrowExpression:gk}=uv,{getParenthesizedRange:gF,isParenthesized:gI}=t_,gB="no-negated-condition";var gj=/*@__PURE__*/ec({create:e=>{e.on(["IfStatement","ConditionalExpression"],t=>{if("IfStatement"===t.type&&(!t.alternate||"IfStatement"===t.alternate.type))return;let{test:r}=t;if(!(("UnaryExpression"!==r.type||"!"!==r.operator)&&("BinaryExpression"!==r.type||"!="!==r.operator&&"!=="!==r.operator)))return{node:r,messageId:gB,*fix(n){let{sourceCode:u}=e;if(yield*function*(e,t,r){let{test:n}=t;if("UnaryExpression"===n.type){let u=r.getFirstToken(n);"IfStatement"===t.type&&(yield*gT(n.argument,e,r)),yield e.remove(u);return}let u=r.getTokenAfter(n.left,e=>"Punctuator"===e.type&&e.value===n.operator);yield e.replaceText(u,"="+u.value.slice(1))}(n,t,u),yield*function*(e,t,r){let n="IfStatement"===t.type,[u,a]=[t.consequent,t.alternate].map(e=>{let t=gF(e,r),u=r.text.slice(...t);return n&&"BlockStatement"!==e.type&&(u=`{${u}}`),{range:t,text:u}});u.text!==a.text&&(yield e.replaceTextRange(u.range,a.text),yield e.replaceTextRange(a.range,u.text))}(n,t,u),"ConditionalExpression"!==t.type||"UnaryExpression"!==r.type)return;yield*gP(n,t,u);let{parent:a}=t,[i,o]=u.getFirstTokens(r,2);if(("ReturnStatement"===a.type||"ThrowStatement"===a.type)&&a.argument===t&&!r7(i,o)&&!gI(t,u)&&!gI(r,u)){yield*gk(n,a,u);return}no(u.getTokenBefore(t),u,o.value)&&(yield n.insertTextBefore(t,";"))}}})},meta:{type:"suggestion",docs:{description:"Disallow negated conditions.",recommended:!0},fixable:"code",messages:{[gB]:"Unexpected negated condition."}}});const{isFunction:gL}=tK,gO="identifier",gN="non-identifier";var gR=/*@__PURE__*/ec({create:()=>({AssignmentPattern(e){if(!("ObjectExpression"===e.right.type&&e.right.properties.length>0&&gL(e.parent)&&e.parent.params.includes(e)))return;let{left:t,right:r}=e;return"Identifier"===t.type?{node:t,messageId:gO,data:{parameter:t.name}}:{node:r,messageId:gN}}}),meta:{type:"problem",docs:{description:"Disallow the use of objects as default parameters.",recommended:!0},messages:{[gO]:"Do not use an object literal as default for parameter `{{parameter}}`.",[gN]:"Do not use an object literal as default."}}});const{getParenthesizedRange:gM}=t_,{isNumberLiteral:g$}=tK,gU=e=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.property.type&&"length"===e.property.name,gz=e=>g$(e)&&e.value>0,{getNegativeIndexLengthNode:gV,removeLengthNode:gq}={getNegativeIndexLengthNode:function e(t,r){if(!t)return;let{type:n,operator:u,left:a,right:i}=t;return"BinaryExpression"===n&&"-"===u&&gz(i)?gU(a)&&nr(a.object,r)?a:e(a,r):void 0},removeLengthNode:function(e,t,r){let[n,u]=gM(e,r);return t.removeRange([n,u+r.text.slice(u).match(/\S|$/).index])}},{isLiteral:gW}=tK,gG="prefer-negative-index",gZ=new Map([["slice",{argumentsIndexes:[0,1],supportObjects:new Set(["Array","String","ArrayBuffer",...cm])}],["subarray",{argumentsIndexes:[0,1],supportObjects:new Set(cm)}],["splice",{argumentsIndexes:[0],supportObjects:new Set(["Array"])}],["toSpliced",{argumentsIndexes:[0],supportObjects:new Set(["Array"])}],["at",{argumentsIndexes:[0],supportObjects:new Set(["Array","String",...cm])}],["with",{argumentsIndexes:[0],supportObjects:new Set(["Array",...cm])}]]),gH=e=>{let{type:t,property:r}=e;if("MemberExpression"===t&&"Identifier"===r.type)return r.name};var gK=/*@__PURE__*/ec({create:e=>({CallExpression(t){if("MemberExpression"!==t.callee.type)return;let r=function(e){let{callee:t,arguments:r}=e,n=t.property.name,u=t.object,a=r;if(gZ.has(n))return{method:n,target:u,argumentsNodes:a};if("call"!==n&&"apply"!==n)return;let i="apply"===n;if(n=gH(t.object),!gZ.has(n))return;let{supportObjects:o}=gZ.get(n),s=t.object.object;if("ArrayExpression"===s.type&&0===s.elements.length||"slice"===n&&gW(s,"")||"prototype"===gH(s)&&"Identifier"===s.object.type&&o.has(s.object.name)){if([u]=r,i){let[,e]=r;if(!e||"ArrayExpression"!==e.type)return;a=e.elements}else a=r.slice(1);return{method:n,target:u,argumentsNodes:a}}}(t);if(!r)return;let{method:n,target:u,argumentsNodes:a}=r,{argumentsIndexes:i}=gZ.get(n),o=i.map(e=>gV(a[e],u)).filter(Boolean);if(0!==o.length)return{node:t,messageId:gG,data:{method:n},*fix(t){let{sourceCode:r}=e;for(let e of o)yield gq(e,t,r)}}}}),meta:{type:"suggestion",docs:{description:"Prefer negative index over `.length - index` when possible.",recommended:!0},fixable:"code",messages:{[gG]:"Prefer negative index over length minus index for `{{method}}`."}}});const{builtinModules:gY}=/*@__PURE__*/ef(b),gJ=["sys"],gX=new Set((gY||(process.binding?Object.keys(process.binding("natives")):[])||[]).filter(e=>!/^_|^(internal|v8|node-inspect)\/|\//.test(e)&&!gJ.includes(e)).sort()),gQ="node:",g0=e=>{if("string"!=typeof e)throw TypeError("Expected a string");e.startsWith(gQ)&&(e=e.slice(gQ.length));let t=e.indexOf("/");return -1!==t&&t!==e.length-1&&(e=e.slice(0,t)),gX.has(e)},{replaceStringLiteral:g1}=uv,g2="prefer-node-protocol";var g3=/*@__PURE__*/ec({create:()=>({Literal(e){if(!(("ImportDeclaration"===e.parent.type||"ExportNamedDeclaration"===e.parent.type||"ImportExpression"===e.parent.type)&&e.parent.source===e||tO(e.parent)&&e.parent.arguments[0]===e))return;let{value:t}=e;if(!("string"!=typeof t||t.startsWith("node:")||/^bun(?::|$)/.test(t))&&g0(t))return{node:e,messageId:g2,data:{moduleName:t},fix:t=>g1(t,e,"node:",0,0)}}}),meta:{type:"suggestion",docs:{description:"Prefer using the `node:` protocol when importing Node.js builtin modules.",recommended:!0},fixable:"code",messages:{[g2]:"Prefer `node:{{moduleName}}` over `{{moduleName}}`."}}});const g4=RegExp("^\\s*(?<directive>eslint-disable(?:-(?:next-)?line)?)"),g5=RegExp("^eslint-disable(?:-next-line|-line)?(?<ruleId>$|(?:\\s+(?:@(?:[\\w-]+\\/){1,2})?[\\w-]+)?)"),g8=Symbol("rule-id-no-match");var g6=f.createRule({name:"ban-eslint-disable",meta:{type:"problem",docs:{description:"Ban `eslint-disable` comment directive"},schema:[{oneOf:[{type:"boolean"},{type:"string",enum:["allow-with-description"]}]}],messages:{"do-not-use":"Do not use `{{directive}}`","require-description":"Include a description after the `{{directive}}` directive to explain why the `{{directive}}` is necessary.","require-specific-rule":"Enforce specifying rules to disable in `eslint-disable` comments. If you want to disable ESLint on a file altogether, you should ignore it through ESLint configuration."}},create:(e,t="allow-with-description")=>!1===t?{}:{Program(r){if(r.comments&&0!==r.comments.length)for(let n of r.comments){let r=function(e){let t=g4.exec(e);return t?.groups?.directive}(n.value);if(r&&!("allow-with-description"===t&&n.value.includes("--"))){let u="allow-with-description"===t?"require-description":"do-not-use";e.report({node:n,data:{directive:r},messageId:u})}let u=function(e){let t=g5.exec(e.trim());return t?t.groups?.ruleId:g8}(n.value);u===g8||u||e.report({node:n,messageId:"require-specific-rule"})}}}}),g9=f.createRule({name:"import-dedupe",meta:{type:"problem",docs:{description:"Fix duplication in imports"},fixable:"code",schema:[],messages:{"import-dedupe":"Expect no duplication in imports"}},create:e=>({ImportDeclaration(t){if(t.specifiers.length<=1)return;let r=new Set;t.specifiers.forEach(n=>{let u=n.local.name;r.has(u)&&e.report({node:t,loc:{start:n.loc.end,end:n.loc.start},messageId:"import-dedupe",fix(t){let r=n.range[0],u=n.range[1];return","===e.sourceCode.text[u]&&(u+=1),t.removeRange([r,u])}}),r.add(u)})}})}),g7=f.createRule({name:"no-return-await",meta:{type:"suggestion",hasSuggestions:!0,docs:{description:"Disallows unnecessary `return await`"},fixable:void 0,deprecated:!1,schema:[],messages:{removeAwait:"Remove redundant `await`.",redundantUseOfAwait:"Redundant use of `await` on a return value."}},create:e=>({AwaitExpression(t){(function e(t){return t.parent?.type===p.AST_NODE_TYPES.ArrowFunctionExpression||(t.parent?.type===p.AST_NODE_TYPES.ReturnStatement?!ye(t.parent):(t.parent?.type===p.AST_NODE_TYPES.ConditionalExpression&&(t===t.parent.consequent||t===t.parent.alternate)||t.parent?.type===p.AST_NODE_TYPES.LogicalExpression&&t===t.parent.right||t.parent?.type===p.AST_NODE_TYPES.SequenceExpression&&t===t.parent.expressions.at(-1))&&e(t.parent))})(t)&&!ye(t)&&e.report({node:e.sourceCode.getFirstToken(t),loc:t.loc,messageId:"redundantUseOfAwait",suggest:[{messageId:"removeAwait",fix(r){let n=e.sourceCode,[u,a]=n.getFirstTokens(t,2);if(u.loc.start.line!==a.loc.start.line)return null;let[i,o]=u.range,s=n.text[o];return r.removeRange([i,o+(" "===s?1:0)])}}]})}})});function ye(e){let t=e;for(;!p.ASTUtils.isFunction(t)&&t.type!==p.AST_NODE_TYPES.Program;){if(t.parent.type===p.AST_NODE_TYPES.TryStatement&&(t===t.parent.block||t===t.parent.handler&&t.parent.finalizer))return!0;t=t.parent}return!1}function yt(e){return e.includes("\r\n")?"\r\n":"\n"}var yr=f.createRule({name:"no-expression-empty-lines",meta:{messages:{unexpectedEmptyLine:"Unexpected empty line before"},docs:{description:"Disallows empty lines inside expressions."},fixable:"whitespace",type:"suggestion",schema:[]},create(e){let t=e.sourceCode.getText(),r=yt(t);return{MemberExpression(n){let u=n.object.range[1],a=yn(t.slice(u));if(a.includes("\n")){let t=r+((yn(a).split(/\r\n|\n/u).at(-1)??"")+a.trimStart());a!==t&&e.report({fix:()=>({range:[u,u+a.length],text:t}),messageId:"unexpectedEmptyLine",node:n.property})}}}}});function yn(e){return e.slice(0,e.length-e.trimStart().length)}var yu=f.createRule({name:"object-format",meta:{fixable:"whitespace",schema:[{type:"object",properties:{maxLineLength:{type:"number",default:80},maxObjectSize:{type:"number",default:3}},additionalProperties:!1}],docs:{description:"Requires multiline or single-line object format.",recommended:"stylistic"},messages:{preferMultiline:"Prefer multiline object literal",preferSingleLine:"Prefer single-line object literal"},type:"layout"},create(e,t={}){let r=e.sourceCode.getText(),n=t=>r.slice(Math.min(t.range[0],...e.sourceCode.getCommentsBefore(t).map(e=>e.range[0])),t.range[1]),u=yt(r),a=`,${u}`,{maxLineLength:i=80,maxObjectSize:o=3}=t,s=e=>r.slice(e.range[1]).trimStart().startsWith("//");return{ObjectExpression(t){let d=t.properties.map(e=>n(e).trim());if(d.length>0){let n=e.sourceCode.getText(t),l=d.length>o||d.some(ya)||t.properties.some(s),c=ya(n),f=!n.includes("\n");l&&f&&e.report({fix:()=>({range:t.range,text:`{${u}${d.join(a)}${u}}`}),messageId:"preferMultiline",node:t}),!l&&c&&function(){var n;let u=e.sourceCode.getLocFromIndex(t.range[0]).column;return u+d.reduce((e,t)=>e+t.length,0)+2*(d.length-1)+4+("number"==typeof(n=t.range[1])?r.slice(n):r.slice(...n.range)).split(/\r\n|\n/u)[0].replace(/^((?: as const)?\S*).*/u,"$1").length}()<=i&&e.report({fix:()=>({range:t.range,text:`{${d.join(",")}}`}),messageId:"preferSingleLine",node:t})}}}}});function ya(e){return e.includes("\n")}function yi(e){return!(e<48)&&(e<58||!(e<65)&&(e<91||95===e||!(e<97)&&(e<123||yo(e)||ys(e,null!=t?t:t=yd("53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 1p 7 17 n 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 3 1 3 2 a 0 b 1 3 9 f 0 3 2 1l 0 2 4 5 1 3 2 4 0 l b 4 0 c 2 1l 0 2 7 2 2 2 2 l 1 3 9 b 5 2 2 1l 0 2 6 3 1 3 2 8 2 b 1 3 9 j 0 1o 4 4 2 2 3 a 0 f 9 h 4 1k 0 2 6 2 2 2 3 8 1 c 1 3 9 i 2 1l 0 2 6 2 2 2 3 8 1 c 1 3 9 4 0 d 3 1k 1 2 6 2 2 2 3 a 0 b 1 3 9 i 2 1z 0 5 5 2 0 2 7 7 9 3 1 1q 0 3 6 d 7 2 9 2g 0 3 8 c 6 2 9 1r 1 7 9 c 0 2 0 2 0 5 1 1e j 2 1 6 a 2 z a 0 2t j 2 9 d 3 5 2 2 2 3 6 4 3 e b 2 e jk 2 a 8 pt 3 t 2 u 1 v 1 1t v a 0 3 9 y 2 2 a 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 f 1e 4 1c g c 9 i 8 d 2 v c 3 9 19 d 1d j 9 9 7 9 3b 2 2 k 5 0 7 0 3 2 5j 1r el 1 1e 1 k 0 3g c 5 0 4 b 2db 2 3y 0 2p v ff 5 2y 1 2p 0 n51 9 1y 0 5 9 x 1 29 1 7l 0 4 0 5 0 o 4 5 0 2c 1 1f h b 9 7 h e a t 7 q c 19 3 1c d g 9 c 0 b 9 1c d d 0 9 1 3 9 y 2 1f 0 2 2 3 1 6 1 2 0 16 4 6 1 6l 7 2 1 3 9 fmt 0 ki f h f 4 1 p 2 5d 9 12 0 12 0 ig 0 6b 0 46 4 86 9 120 2 2 1 6 3 15 2 5 0 4m 1 fy 3 9 9 aa 1 29 2 1z a 1e 3 3f 2 1i e w a 3 1 b 3 1a a 8 0 1a 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 3 0 4e b 6 9 7 3 1k 1 2 6 3 1 3 2 a 0 b 1 3 6 4 4 5d h a 9 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 2c e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f ba 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 96 3 a 1 2 0 1d 6 4 4 e 9 44n 0 7 e aob 9 2f 9 13 4 1o 6 q 9 s6 0 2 1i 8 3 2a 0 c 1 f58 1 3mq 19 3 m f3 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 2t 0 4h 6 a 9 9x 0 1q d dv d rb 6 32 6 6 9 3o7 9 gvt3 6n")))))}function yo(t){return ys(t,null!=e?e:e=yd("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 6 n 2 5 i 15 1n 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 3 0 3 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 w 1 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 h e i f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 7 1j t e 1 b 17 r z 16 2 b z 3 8 8 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 h c 2u 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 6c 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t h3g 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 1r 6 1 2 0 2 4 p f 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f d a 2 e 2 6 2 1 2 a 2 e 2 6 2 1 1w 8m a l b 7 p 5 2 15 2 8 1y 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 1z 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 9p 15 7 1 27 s b 0 9 l 17 h 1b k s m d 1g 1m 1 3 0 e 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o k 1 1s 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 4f 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 12 6 56 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 j 20 7c 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 94 i g 0 2 c 2 x 3h 0 28 pl 2v 32 i 5f 219 2o g tr i 5 33u g6 6nu fs 8 u i 26 i t j 1b h 3 w k 6 i j5 1r 3l 22 6 0 1v c 1t 1 2 0 t 4qf 9 yd 17 8 6w8 3 2 6 2 1 2 82 g 0 u 2 3 0 f 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1f9 u 7 5 7a 1p 43 18 b 6 h 0 8y t j 17 dh r l1 6 2 3 2 1 2 e 2 5g 1o 1v 8 0 xh 3 2 q 2 1 2 0 3 0 2 9 2 3 2 0 2 0 7 0 5 0 2 0 2 0 2 2 2 1 2 0 3 0 2 0 2 0 2 0 2 0 2 1 2 0 3 3 2 6 2 3 2 3 2 0 2 9 2 g 6 2 2 4 2 g 3et wyn x 37d 7 65 3 4g1 f 5rk g h9 1wj f1 15v 3t6 6 38f"))}function ys(e,t){let r=0,n=t.length/2|0,u=0,a=0,i=0;for(;r<n;)if(a=t[2*(u=(r+n)/2|0)],i=t[2*u+1],e<a)n=u;else{if(!(e>i))return!0;r=u+1}return!1}function yd(e){let t=0;return e.split(" ").map(e=>t+=0|parseInt(e,36))}class yl{constructor(e,t,r,n,u,a,i,o){this._raw2018=e,this._raw2019=t,this._raw2020=r,this._raw2021=n,this._raw2022=u,this._raw2023=a,this._raw2024=i,this._raw2025=o}get es2018(){var e;return null!==(e=this._set2018)&&void 0!==e?e:this._set2018=new Set(this._raw2018.split(" "))}get es2019(){var e;return null!==(e=this._set2019)&&void 0!==e?e:this._set2019=new Set(this._raw2019.split(" "))}get es2020(){var e;return null!==(e=this._set2020)&&void 0!==e?e:this._set2020=new Set(this._raw2020.split(" "))}get es2021(){var e;return null!==(e=this._set2021)&&void 0!==e?e:this._set2021=new Set(this._raw2021.split(" "))}get es2022(){var e;return null!==(e=this._set2022)&&void 0!==e?e:this._set2022=new Set(this._raw2022.split(" "))}get es2023(){var e;return null!==(e=this._set2023)&&void 0!==e?e:this._set2023=new Set(this._raw2023.split(" "))}get es2024(){var e;return null!==(e=this._set2024)&&void 0!==e?e:this._set2024=new Set(this._raw2024.split(" "))}get es2025(){var e;return null!==(e=this._set2025)&&void 0!==e?e:this._set2025=new Set(this._raw2025.split(" "))}}const yc=new Set(["General_Category","gc"]),yf=new Set(["Script","Script_Extensions","sc","scx"]),yp=new yl("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct","","","","","","",""),yh=new yl("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy","Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo","Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho","Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi","Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi","Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz","",""),ym=new yl("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space","Extended_Pictographic","","EBase EComp EMod EPres ExtPict","","","",""),yg=new yl("","","","","","","Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence","");function yy(e,t,r){return yc.has(t)?e>=2018&&yp.es2018.has(r):!!yf.has(t)&&(e>=2018&&yh.es2018.has(r)||e>=2019&&yh.es2019.has(r)||e>=2020&&yh.es2020.has(r)||e>=2021&&yh.es2021.has(r)||e>=2022&&yh.es2022.has(r)||e>=2023&&yh.es2023.has(r))}function yb(e){return e>=65&&e<=90||e>=97&&e<=122}function yv(e){return e>=48&&e<=57}function yx(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function yE(e){return e>=97&&e<=102?e-97+10:e>=65&&e<=70?e-65+10:e-48}function yC(e){return e>=55296&&e<=56319}function yA(e){return e>=56320&&e<=57343}function yD(e,t){return(e-55296)*1024+(t-56320)+65536}class yS{constructor(){this.groupName=new Set}clear(){this.groupName.clear()}isEmpty(){return!this.groupName.size}hasInPattern(e){return this.groupName.has(e)}hasInScope(e){return this.hasInPattern(e)}addToScope(e){this.groupName.add(e)}enterDisjunction(){}enterAlternative(){}leaveDisjunction(){}}class y_{constructor(e,t){this.parent=e,this.base=null!=t?t:this}separatedFrom(e){var t,r;return!!(this.base===e.base&&this!==e||e.parent&&this.separatedFrom(e.parent))||null!==(r=null===(t=this.parent)||void 0===t?void 0:t.separatedFrom(e))&&void 0!==r&&r}child(){return new y_(this,null)}sibling(){return new y_(this.parent,this.base)}}class yw{constructor(){this.branchID=new y_(null,null),this.groupNames=new Map}clear(){this.branchID=new y_(null,null),this.groupNames.clear()}isEmpty(){return!this.groupNames.size}enterDisjunction(){this.branchID=this.branchID.child()}enterAlternative(e){0!==e&&(this.branchID=this.branchID.sibling())}leaveDisjunction(){this.branchID=this.branchID.parent}hasInPattern(e){return this.groupNames.has(e)}hasInScope(e){let t=this.groupNames.get(e);if(!t)return!1;for(let e of t)if(!e.separatedFrom(this.branchID))return!0;return!1}addToScope(e){let t=this.groupNames.get(e);if(t){t.push(this.branchID);return}this.groupNames.set(e,[this.branchID])}}const yT={at:(e,t,r)=>r<t?e.charCodeAt(r):-1,width:e=>1},yP={at:(e,t,r)=>r<t?e.codePointAt(r):-1,width:e=>e>65535?2:1};class yk{constructor(){this._impl=yT,this._s="",this._i=0,this._end=0,this._cp1=-1,this._w1=1,this._cp2=-1,this._w2=1,this._cp3=-1,this._w3=1,this._cp4=-1}get source(){return this._s}get index(){return this._i}get currentCodePoint(){return this._cp1}get nextCodePoint(){return this._cp2}get nextCodePoint2(){return this._cp3}get nextCodePoint3(){return this._cp4}reset(e,t,r,n){this._impl=n?yP:yT,this._s=e,this._end=r,this.rewind(t)}rewind(e){let t=this._impl;this._i=e,this._cp1=t.at(this._s,this._end,e),this._w1=t.width(this._cp1),this._cp2=t.at(this._s,this._end,e+this._w1),this._w2=t.width(this._cp2),this._cp3=t.at(this._s,this._end,e+this._w1+this._w2),this._w3=t.width(this._cp3),this._cp4=t.at(this._s,this._end,e+this._w1+this._w2+this._w3)}advance(){if(-1!==this._cp1){let e=this._impl;this._i+=this._w1,this._cp1=this._cp2,this._w1=this._w2,this._cp2=this._cp3,this._w2=e.width(this._cp2),this._cp3=this._cp4,this._w3=e.width(this._cp3),this._cp4=e.at(this._s,this._end,this._i+this._w1+this._w2+this._w3)}}eat(e){return this._cp1===e&&(this.advance(),!0)}eat2(e,t){return this._cp1===e&&this._cp2===t&&(this.advance(),this.advance(),!0)}eat3(e,t,r){return this._cp1===e&&this._cp2===t&&this._cp3===r&&(this.advance(),this.advance(),this.advance(),!0)}}class yF extends SyntaxError{constructor(e,t){super(e),this.index=t}}const yI=new Set([94,36,92,46,42,43,63,40,41,91,93,123,125,124]),yB=new Set([38,33,35,36,37,42,43,44,46,58,59,60,61,62,63,64,94,96,126]),yj=new Set([40,41,91,93,123,125,47,45,92,124]),yL=new Set([38,45,33,35,37,44,58,59,60,61,62,64,96,126]);function yO(e){return yb(e)||95===e}class yN{constructor(e){this._reader=new yk,this._unicodeMode=!1,this._unicodeSetsMode=!1,this._nFlag=!1,this._lastIntValue=0,this._lastRange={min:0,max:Number.POSITIVE_INFINITY},this._lastStrValue="",this._lastAssertionIsQuantifiable=!1,this._numCapturingParens=0,this._backreferenceNames=new Set,this._srcCtx=null,this._options=null!=e?e:{},this._groupSpecifiers=this.ecmaVersion>=2025?new yw:new yS}validateLiteral(e,t=0,r=e.length){if(this._srcCtx={source:e,start:t,end:r,kind:"literal"},this._unicodeSetsMode=this._unicodeMode=this._nFlag=!1,this.reset(e,t,r),this.onLiteralEnter(t),this.eat(47)&&this.eatRegExpBody()&&this.eat(47)){let n=this.index,u=e.includes("u",n),a=e.includes("v",n);this.validateFlagsInternal(e,n,r),this.validatePatternInternal(e,t+1,n-1,{unicode:u,unicodeSets:a})}else if(t>=r)this.raise("Empty");else{let e=String.fromCodePoint(this.currentCodePoint);this.raise(`Unexpected character '${e}'`)}this.onLiteralLeave(t,r)}validateFlags(e,t=0,r=e.length){this._srcCtx={source:e,start:t,end:r,kind:"flags"},this.validateFlagsInternal(e,t,r)}validatePattern(e,t=0,r=e.length,n){this._srcCtx={source:e,start:t,end:r,kind:"pattern"},this.validatePatternInternal(e,t,r,n)}validatePatternInternal(e,t=0,r=e.length,n){let u=this._parseFlagsOptionToMode(n,r);this._unicodeMode=u.unicodeMode,this._nFlag=u.nFlag,this._unicodeSetsMode=u.unicodeSetsMode,this.reset(e,t,r),this.consumePattern(),this._nFlag||!(this.ecmaVersion>=2018)||this._groupSpecifiers.isEmpty()||(this._nFlag=!0,this.rewind(t),this.consumePattern())}validateFlagsInternal(e,t,r){let n=new Set,u=!1,a=!1,i=!1,o=!1,s=!1,d=!1,l=!1,c=!1;for(let f=t;f<r;++f){let r=e.charCodeAt(f);n.has(r)&&this.raise(`Duplicated flag '${e[f]}'`,{index:t}),n.add(r),103===r?u=!0:105===r?a=!0:109===r?i=!0:117===r&&this.ecmaVersion>=2015?s=!0:121===r&&this.ecmaVersion>=2015?o=!0:115===r&&this.ecmaVersion>=2018?d=!0:100===r&&this.ecmaVersion>=2022?l=!0:118===r&&this.ecmaVersion>=2024?c=!0:this.raise(`Invalid flag '${e[f]}'`,{index:t})}this.onRegExpFlags(t,r,{global:u,ignoreCase:a,multiline:i,unicode:s,sticky:o,dotAll:d,hasIndices:l,unicodeSets:c})}_parseFlagsOptionToMode(e,t){let r=!1,n=!1;return e&&this.ecmaVersion>=2015&&("object"==typeof e?(r=!!e.unicode,this.ecmaVersion>=2024&&(n=!!e.unicodeSets)):r=e),r&&n&&this.raise("Invalid regular expression flags",{index:t+1,unicode:r,unicodeSets:n}),{unicodeMode:r||n,nFlag:r&&this.ecmaVersion>=2018||n||!!(this._options.strict&&this.ecmaVersion>=2023),unicodeSetsMode:n}}get strict(){return!!this._options.strict||this._unicodeMode}get ecmaVersion(){var e;return null!==(e=this._options.ecmaVersion)&&void 0!==e?e:2025}onLiteralEnter(e){this._options.onLiteralEnter&&this._options.onLiteralEnter(e)}onLiteralLeave(e,t){this._options.onLiteralLeave&&this._options.onLiteralLeave(e,t)}onRegExpFlags(e,t,r){this._options.onRegExpFlags&&this._options.onRegExpFlags(e,t,r),this._options.onFlags&&this._options.onFlags(e,t,r.global,r.ignoreCase,r.multiline,r.unicode,r.sticky,r.dotAll,r.hasIndices)}onPatternEnter(e){this._options.onPatternEnter&&this._options.onPatternEnter(e)}onPatternLeave(e,t){this._options.onPatternLeave&&this._options.onPatternLeave(e,t)}onDisjunctionEnter(e){this._options.onDisjunctionEnter&&this._options.onDisjunctionEnter(e)}onDisjunctionLeave(e,t){this._options.onDisjunctionLeave&&this._options.onDisjunctionLeave(e,t)}onAlternativeEnter(e,t){this._options.onAlternativeEnter&&this._options.onAlternativeEnter(e,t)}onAlternativeLeave(e,t,r){this._options.onAlternativeLeave&&this._options.onAlternativeLeave(e,t,r)}onGroupEnter(e){this._options.onGroupEnter&&this._options.onGroupEnter(e)}onGroupLeave(e,t){this._options.onGroupLeave&&this._options.onGroupLeave(e,t)}onCapturingGroupEnter(e,t){this._options.onCapturingGroupEnter&&this._options.onCapturingGroupEnter(e,t)}onCapturingGroupLeave(e,t,r){this._options.onCapturingGroupLeave&&this._options.onCapturingGroupLeave(e,t,r)}onQuantifier(e,t,r,n,u){this._options.onQuantifier&&this._options.onQuantifier(e,t,r,n,u)}onLookaroundAssertionEnter(e,t,r){this._options.onLookaroundAssertionEnter&&this._options.onLookaroundAssertionEnter(e,t,r)}onLookaroundAssertionLeave(e,t,r,n){this._options.onLookaroundAssertionLeave&&this._options.onLookaroundAssertionLeave(e,t,r,n)}onEdgeAssertion(e,t,r){this._options.onEdgeAssertion&&this._options.onEdgeAssertion(e,t,r)}onWordBoundaryAssertion(e,t,r,n){this._options.onWordBoundaryAssertion&&this._options.onWordBoundaryAssertion(e,t,r,n)}onAnyCharacterSet(e,t,r){this._options.onAnyCharacterSet&&this._options.onAnyCharacterSet(e,t,r)}onEscapeCharacterSet(e,t,r,n){this._options.onEscapeCharacterSet&&this._options.onEscapeCharacterSet(e,t,r,n)}onUnicodePropertyCharacterSet(e,t,r,n,u,a,i){this._options.onUnicodePropertyCharacterSet&&this._options.onUnicodePropertyCharacterSet(e,t,r,n,u,a,i)}onCharacter(e,t,r){this._options.onCharacter&&this._options.onCharacter(e,t,r)}onBackreference(e,t,r){this._options.onBackreference&&this._options.onBackreference(e,t,r)}onCharacterClassEnter(e,t,r){this._options.onCharacterClassEnter&&this._options.onCharacterClassEnter(e,t,r)}onCharacterClassLeave(e,t,r){this._options.onCharacterClassLeave&&this._options.onCharacterClassLeave(e,t,r)}onCharacterClassRange(e,t,r,n){this._options.onCharacterClassRange&&this._options.onCharacterClassRange(e,t,r,n)}onClassIntersection(e,t){this._options.onClassIntersection&&this._options.onClassIntersection(e,t)}onClassSubtraction(e,t){this._options.onClassSubtraction&&this._options.onClassSubtraction(e,t)}onClassStringDisjunctionEnter(e){this._options.onClassStringDisjunctionEnter&&this._options.onClassStringDisjunctionEnter(e)}onClassStringDisjunctionLeave(e,t){this._options.onClassStringDisjunctionLeave&&this._options.onClassStringDisjunctionLeave(e,t)}onStringAlternativeEnter(e,t){this._options.onStringAlternativeEnter&&this._options.onStringAlternativeEnter(e,t)}onStringAlternativeLeave(e,t,r){this._options.onStringAlternativeLeave&&this._options.onStringAlternativeLeave(e,t,r)}get index(){return this._reader.index}get currentCodePoint(){return this._reader.currentCodePoint}get nextCodePoint(){return this._reader.nextCodePoint}get nextCodePoint2(){return this._reader.nextCodePoint2}get nextCodePoint3(){return this._reader.nextCodePoint3}reset(e,t,r){this._reader.reset(e,t,r,this._unicodeMode)}rewind(e){this._reader.rewind(e)}advance(){this._reader.advance()}eat(e){return this._reader.eat(e)}eat2(e,t){return this._reader.eat2(e,t)}eat3(e,t,r){return this._reader.eat3(e,t,r)}raise(e,t){var r,n,u;throw function(e,t,r,n){let u="";if("literal"===e.kind){let t=e.source.slice(e.start,e.end);t&&(u=`: ${t}`)}else if("pattern"===e.kind){let r=e.source.slice(e.start,e.end),n=`${t.unicode?"u":""}${t.unicodeSets?"v":""}`;u=`: /${r}/${n}`}return new yF(`Invalid regular expression${u}: ${n}`,r)}(this._srcCtx,{unicode:null!==(r=null==t?void 0:t.unicode)&&void 0!==r?r:this._unicodeMode&&!this._unicodeSetsMode,unicodeSets:null!==(n=null==t?void 0:t.unicodeSets)&&void 0!==n?n:this._unicodeSetsMode},null!==(u=null==t?void 0:t.index)&&void 0!==u?u:this.index,e)}eatRegExpBody(){let e=this.index,t=!1,r=!1;for(;;){var n;let u=this.currentCodePoint;if(-1===u||10===(n=u)||13===n||8232===n||8233===n){let e=t?"character class":"regular expression";this.raise(`Unterminated ${e}`)}if(r)r=!1;else if(92===u)r=!0;else if(91===u)t=!0;else if(93===u)t=!1;else if(47===u&&!t||42===u&&this.index===e)break;this.advance()}return this.index!==e}consumePattern(){let e=this.index;this._numCapturingParens=this.countCapturingParens(),this._groupSpecifiers.clear(),this._backreferenceNames.clear(),this.onPatternEnter(e),this.consumeDisjunction();let t=this.currentCodePoint;if(-1!==this.currentCodePoint){41===t&&this.raise("Unmatched ')'"),92===t&&this.raise("\\ at end of pattern"),(93===t||125===t)&&this.raise("Lone quantifier brackets");let e=String.fromCodePoint(t);this.raise(`Unexpected character '${e}'`)}for(let e of this._backreferenceNames)this._groupSpecifiers.hasInPattern(e)||this.raise("Invalid named capture referenced");this.onPatternLeave(e,this.index)}countCapturingParens(){let e=this.index,t=!1,r=!1,n=0,u=0;for(;-1!==(u=this.currentCodePoint);)r?r=!1:92===u?r=!0:91===u?t=!0:93===u?t=!1:40!==u||t||63===this.nextCodePoint&&(60!==this.nextCodePoint2||61===this.nextCodePoint3||33===this.nextCodePoint3)||(n+=1),this.advance();return this.rewind(e),n}consumeDisjunction(){let e=this.index,t=0;this._groupSpecifiers.enterDisjunction(),this.onDisjunctionEnter(e);do this.consumeAlternative(t++);while(this.eat(124));this.consumeQuantifier(!0)&&this.raise("Nothing to repeat"),this.eat(123)&&this.raise("Lone quantifier brackets"),this.onDisjunctionLeave(e,this.index),this._groupSpecifiers.leaveDisjunction()}consumeAlternative(e){let t=this.index;for(this._groupSpecifiers.enterAlternative(e),this.onAlternativeEnter(t,e);-1!==this.currentCodePoint&&this.consumeTerm(););this.onAlternativeLeave(t,this.index,e)}consumeTerm(){return this._unicodeMode||this.strict?this.consumeAssertion()||this.consumeAtom()&&this.consumeOptionalQuantifier():this.consumeAssertion()&&(!this._lastAssertionIsQuantifiable||this.consumeOptionalQuantifier())||this.consumeExtendedAtom()&&this.consumeOptionalQuantifier()}consumeOptionalQuantifier(){return this.consumeQuantifier(),!0}consumeAssertion(){let e=this.index;if(this._lastAssertionIsQuantifiable=!1,this.eat(94))return this.onEdgeAssertion(e,this.index,"start"),!0;if(this.eat(36))return this.onEdgeAssertion(e,this.index,"end"),!0;if(this.eat2(92,66))return this.onWordBoundaryAssertion(e,this.index,"word",!0),!0;if(this.eat2(92,98))return this.onWordBoundaryAssertion(e,this.index,"word",!1),!0;if(this.eat2(40,63)){let t=this.ecmaVersion>=2018&&this.eat(60),r=!1;if(this.eat(61)||(r=this.eat(33))){let n=t?"lookbehind":"lookahead";return this.onLookaroundAssertionEnter(e,n,r),this.consumeDisjunction(),this.eat(41)||this.raise("Unterminated group"),this._lastAssertionIsQuantifiable=!t&&!this.strict,this.onLookaroundAssertionLeave(e,this.index,n,r),!0}this.rewind(e)}return!1}consumeQuantifier(e=!1){let t=this.index,r=0,n=0,u=!1;if(this.eat(42))r=0,n=Number.POSITIVE_INFINITY;else if(this.eat(43))r=1,n=Number.POSITIVE_INFINITY;else if(this.eat(63))r=0,n=1;else{if(!this.eatBracedQuantifier(e))return!1;({min:r,max:n}=this._lastRange)}return u=!this.eat(63),e||this.onQuantifier(t,this.index,r,n,u),!0}eatBracedQuantifier(e){let t=this.index;if(this.eat(123)){if(this.eatDecimalDigits()){let t=this._lastIntValue,r=t;if(this.eat(44)&&(r=this.eatDecimalDigits()?this._lastIntValue:Number.POSITIVE_INFINITY),this.eat(125))return!e&&r<t&&this.raise("numbers out of order in {} quantifier"),this._lastRange={min:t,max:r},!0}!e&&(this._unicodeMode||this.strict)&&this.raise("Incomplete quantifier"),this.rewind(t)}return!1}consumeAtom(){return this.consumePatternCharacter()||this.consumeDot()||this.consumeReverseSolidusAtomEscape()||!!this.consumeCharacterClass()||this.consumeUncapturingGroup()||this.consumeCapturingGroup()}consumeDot(){return!!this.eat(46)&&(this.onAnyCharacterSet(this.index-1,this.index,"any"),!0)}consumeReverseSolidusAtomEscape(){let e=this.index;if(this.eat(92)){if(this.consumeAtomEscape())return!0;this.rewind(e)}return!1}consumeUncapturingGroup(){let e=this.index;return!!this.eat3(40,63,58)&&(this.onGroupEnter(e),this.consumeDisjunction(),this.eat(41)||this.raise("Unterminated group"),this.onGroupLeave(e,this.index),!0)}consumeCapturingGroup(){let e=this.index;if(this.eat(40)){let t=null;return this.ecmaVersion>=2018?this.consumeGroupSpecifier()&&(t=this._lastStrValue):63===this.currentCodePoint&&this.raise("Invalid group"),this.onCapturingGroupEnter(e,t),this.consumeDisjunction(),this.eat(41)||this.raise("Unterminated group"),this.onCapturingGroupLeave(e,this.index,t),!0}return!1}consumeExtendedAtom(){return this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeReverseSolidusFollowedByC()||!!this.consumeCharacterClass()||this.consumeUncapturingGroup()||this.consumeCapturingGroup()||this.consumeInvalidBracedQuantifier()||this.consumeExtendedPatternCharacter()}consumeReverseSolidusFollowedByC(){let e=this.index;return 92===this.currentCodePoint&&99===this.nextCodePoint&&(this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(e,this.index,92),!0)}consumeInvalidBracedQuantifier(){return this.eatBracedQuantifier(!0)&&this.raise("Nothing to repeat"),!1}consumePatternCharacter(){let e=this.index,t=this.currentCodePoint;return!(-1===t||yI.has(t))&&(this.advance(),this.onCharacter(e,this.index,t),!0)}consumeExtendedPatternCharacter(){let e=this.index,t=this.currentCodePoint;return -1!==t&&94!==t&&36!==t&&92!==t&&46!==t&&42!==t&&43!==t&&63!==t&&40!==t&&41!==t&&91!==t&&124!==t&&(this.advance(),this.onCharacter(e,this.index,t),!0)}consumeGroupSpecifier(){if(this.eat(63)){if(this.eatGroupName()){if(!this._groupSpecifiers.hasInScope(this._lastStrValue))return this._groupSpecifiers.addToScope(this._lastStrValue),!0;this.raise("Duplicate capture group name")}this.raise("Invalid group")}return!1}consumeAtomEscape(){return!!(this.consumeBackreference()||this.consumeCharacterClassEscape()||this.consumeCharacterEscape()||this._nFlag&&this.consumeKGroupName())||((this.strict||this._unicodeMode)&&this.raise("Invalid escape"),!1)}consumeBackreference(){let e=this.index;if(this.eatDecimalEscape()){let t=this._lastIntValue;if(t<=this._numCapturingParens)return this.onBackreference(e-1,this.index,t),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(e)}return!1}consumeCharacterClassEscape(){var e;let t=this.index;if(this.eat(100))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"digit",!1),{};if(this.eat(68))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"digit",!0),{};if(this.eat(115))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"space",!1),{};if(this.eat(83))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"space",!0),{};if(this.eat(119))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"word",!1),{};if(this.eat(87))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"word",!0),{};let r=!1;if(this._unicodeMode&&this.ecmaVersion>=2018&&(this.eat(112)||(r=this.eat(80)))){this._lastIntValue=-1;let n=null;if(this.eat(123)&&(n=this.eatUnicodePropertyValueExpression())&&this.eat(125))return r&&n.strings&&this.raise("Invalid property name"),this.onUnicodePropertyCharacterSet(t-1,this.index,"property",n.key,n.value,r,null!==(e=n.strings)&&void 0!==e&&e),{mayContainStrings:n.strings};this.raise("Invalid property name")}return null}consumeCharacterEscape(){let e=this.index;return!!(this.eatControlEscape()||this.eatCControlLetter()||this.eatZero()||this.eatHexEscapeSequence()||this.eatRegExpUnicodeEscapeSequence()||!this.strict&&!this._unicodeMode&&this.eatLegacyOctalEscapeSequence()||this.eatIdentityEscape())&&(this.onCharacter(e-1,this.index,this._lastIntValue),!0)}consumeKGroupName(){let e=this.index;if(this.eat(107)){if(this.eatGroupName()){let t=this._lastStrValue;return this._backreferenceNames.add(t),this.onBackreference(e-1,this.index,t),!0}this.raise("Invalid named reference")}return!1}consumeCharacterClass(){let e=this.index;if(this.eat(91)){let t=this.eat(94);this.onCharacterClassEnter(e,t,this._unicodeSetsMode);let r=this.consumeClassContents();return this.eat(93)||(-1===this.currentCodePoint&&this.raise("Unterminated character class"),this.raise("Invalid character in character class")),t&&r.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(e,this.index,t),r}return null}consumeClassContents(){if(this._unicodeSetsMode)return 93===this.currentCodePoint?{}:this.consumeClassSetExpression();let e=this.strict||this._unicodeMode;for(;;){let t=this.index;if(!this.consumeClassAtom())break;let r=this._lastIntValue;if(!this.eat(45))continue;if(this.onCharacter(this.index-1,this.index,45),!this.consumeClassAtom())break;let n=this._lastIntValue;if(-1===r||-1===n){e&&this.raise("Invalid character class");continue}r>n&&this.raise("Range out of order in character class"),this.onCharacterClassRange(t,this.index,r,n)}return{}}consumeClassAtom(){let e=this.index,t=this.currentCodePoint;if(-1!==t&&92!==t&&93!==t)return this.advance(),this._lastIntValue=t,this.onCharacter(e,this.index,this._lastIntValue),!0;if(this.eat(92)){if(this.consumeClassEscape())return!0;if(!this.strict&&99===this.currentCodePoint)return this._lastIntValue=92,this.onCharacter(e,this.index,this._lastIntValue),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(e)}return!1}consumeClassEscape(){let e=this.index;if(this.eat(98))return this._lastIntValue=8,this.onCharacter(e-1,this.index,this._lastIntValue),!0;if(this._unicodeMode&&this.eat(45))return this._lastIntValue=45,this.onCharacter(e-1,this.index,this._lastIntValue),!0;let t=0;return!this.strict&&!this._unicodeMode&&99===this.currentCodePoint&&(yv(t=this.nextCodePoint)||95===t)?(this.advance(),this.advance(),this._lastIntValue=t%32,this.onCharacter(e-1,this.index,this._lastIntValue),!0):!!this.consumeCharacterClassEscape()||this.consumeCharacterEscape()}consumeClassSetExpression(){let e=this.index,t=!1,r=null;if(this.consumeClassSetCharacter()){if(this.consumeClassSetRangeFromOperator(e))return this.consumeClassUnionRight({}),{};t=!1}else if(r=this.consumeClassSetOperand())t=r.mayContainStrings;else{let e=this.currentCodePoint;92===e&&(this.advance(),this.raise("Invalid escape")),e===this.nextCodePoint&&yB.has(e)&&this.raise("Invalid set operation in character class"),this.raise("Invalid character in character class")}if(this.eat2(38,38)){for(;38!==this.currentCodePoint&&(r=this.consumeClassSetOperand());)if(this.onClassIntersection(e,this.index),r.mayContainStrings||(t=!1),!this.eat2(38,38))return{mayContainStrings:t};this.raise("Invalid character in character class")}if(this.eat2(45,45)){for(;this.consumeClassSetOperand();)if(this.onClassSubtraction(e,this.index),!this.eat2(45,45))return{mayContainStrings:t};this.raise("Invalid character in character class")}return this.consumeClassUnionRight({mayContainStrings:t})}consumeClassUnionRight(e){let t=e.mayContainStrings;for(;;){let e=this.index;if(this.consumeClassSetCharacter()){this.consumeClassSetRangeFromOperator(e);continue}let r=this.consumeClassSetOperand();if(r){r.mayContainStrings&&(t=!0);continue}break}return{mayContainStrings:t}}consumeClassSetRangeFromOperator(e){let t=this.index,r=this._lastIntValue;if(this.eat(45)){if(this.consumeClassSetCharacter()){let t=this._lastIntValue;return(-1===r||-1===t)&&this.raise("Invalid character class"),r>t&&this.raise("Range out of order in character class"),this.onCharacterClassRange(e,this.index,r,t),!0}this.rewind(t)}return!1}consumeClassSetOperand(){let e=null;return(e=this.consumeNestedClass())||(e=this.consumeClassStringDisjunction())?e:this.consumeClassSetCharacter()?{}:null}consumeNestedClass(){let e=this.index;if(this.eat(91)){let t=this.eat(94);this.onCharacterClassEnter(e,t,!0);let r=this.consumeClassContents();return this.eat(93)||this.raise("Unterminated character class"),t&&r.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(e,this.index,t),r}if(this.eat(92)){let t=this.consumeCharacterClassEscape();if(t)return t;this.rewind(e)}return null}consumeClassStringDisjunction(){let e=this.index;if(this.eat3(92,113,123)){this.onClassStringDisjunctionEnter(e);let t=0,r=!1;do this.consumeClassString(t++).mayContainStrings&&(r=!0);while(this.eat(124));if(this.eat(125))return this.onClassStringDisjunctionLeave(e,this.index),{mayContainStrings:r};this.raise("Unterminated class string disjunction")}return null}consumeClassString(e){let t=this.index,r=0;for(this.onStringAlternativeEnter(t,e);-1!==this.currentCodePoint&&this.consumeClassSetCharacter();)r++;return this.onStringAlternativeLeave(t,this.index,e),{mayContainStrings:1!==r}}consumeClassSetCharacter(){var e;let t=this.index,r=this.currentCodePoint;if((r!==this.nextCodePoint||!yB.has(r))&&-1!==r&&!yj.has(r))return this._lastIntValue=r,this.advance(),this.onCharacter(t,this.index,this._lastIntValue),!0;if(this.eat(92)){if(this.consumeCharacterEscape())return!0;if(e=this.currentCodePoint,yL.has(e))return this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(t,this.index,this._lastIntValue),!0;if(this.eat(98))return this._lastIntValue=8,this.onCharacter(t,this.index,this._lastIntValue),!0;this.rewind(t)}return!1}eatGroupName(){if(this.eat(60)){if(this.eatRegExpIdentifierName()&&this.eat(62))return!0;this.raise("Invalid capture group name")}return!1}eatRegExpIdentifierName(){if(this.eatRegExpIdentifierStart()){for(this._lastStrValue=String.fromCodePoint(this._lastIntValue);this.eatRegExpIdentifierPart();)this._lastStrValue+=String.fromCodePoint(this._lastIntValue);return!0}return!1}eatRegExpIdentifierStart(){var e,t;let r=this.index,n=!this._unicodeMode&&this.ecmaVersion>=2020,u=this.currentCodePoint;return(this.advance(),92===u&&this.eatRegExpUnicodeEscapeSequence(n)?u=this._lastIntValue:n&&yC(u)&&yA(this.currentCodePoint)&&(u=yD(u,this.currentCodePoint),this.advance()),!((t=e=u)<65)&&(t<91||!(t<97)&&(t<123||yo(t)))||36===e||95===e)?(this._lastIntValue=u,!0):(this.index!==r&&this.rewind(r),!1)}eatRegExpIdentifierPart(){var e;let t=this.index,r=!this._unicodeMode&&this.ecmaVersion>=2020,n=this.currentCodePoint;return(this.advance(),92===n&&this.eatRegExpUnicodeEscapeSequence(r)?n=this._lastIntValue:r&&yC(n)&&yA(this.currentCodePoint)&&(n=yD(n,this.currentCodePoint),this.advance()),yi(e=n)||36===e||8204===e||8205===e)?(this._lastIntValue=n,!0):(this.index!==t&&this.rewind(t),!1)}eatCControlLetter(){let e=this.index;if(this.eat(99)){if(this.eatControlLetter())return!0;this.rewind(e)}return!1}eatZero(){return!(48!==this.currentCodePoint||yv(this.nextCodePoint))&&(this._lastIntValue=0,this.advance(),!0)}eatControlEscape(){return this.eat(102)?(this._lastIntValue=12,!0):this.eat(110)?(this._lastIntValue=10,!0):this.eat(114)?(this._lastIntValue=13,!0):this.eat(116)?(this._lastIntValue=9,!0):!!this.eat(118)&&(this._lastIntValue=11,!0)}eatControlLetter(){let e=this.currentCodePoint;return!!yb(e)&&(this.advance(),this._lastIntValue=e%32,!0)}eatRegExpUnicodeEscapeSequence(e=!1){let t=this.index,r=e||this._unicodeMode;if(this.eat(117)){if(r&&this.eatRegExpUnicodeSurrogatePairEscape()||this.eatFixedHexDigits(4)||r&&this.eatRegExpUnicodeCodePointEscape())return!0;(this.strict||r)&&this.raise("Invalid unicode escape"),this.rewind(t)}return!1}eatRegExpUnicodeSurrogatePairEscape(){let e=this.index;if(this.eatFixedHexDigits(4)){let t=this._lastIntValue;if(yC(t)&&this.eat(92)&&this.eat(117)&&this.eatFixedHexDigits(4)){let e=this._lastIntValue;if(yA(e))return this._lastIntValue=yD(t,e),!0}this.rewind(e)}return!1}eatRegExpUnicodeCodePointEscape(){var e;let t=this.index;return!!(this.eat(123)&&this.eatHexDigits()&&this.eat(125))&&(e=this._lastIntValue)>=0&&e<=1114111||(this.rewind(t),!1)}eatIdentityEscape(){let e=this.currentCodePoint;return!!this.isValidIdentityEscape(e)&&(this._lastIntValue=e,this.advance(),!0)}isValidIdentityEscape(e){return -1!==e&&(this._unicodeMode?yI.has(e)||47===e:this.strict?!yi(e):this._nFlag?!(99===e||107===e):99!==e)}eatDecimalEscape(){this._lastIntValue=0;let e=this.currentCodePoint;if(e>=49&&e<=57){do this._lastIntValue=10*this._lastIntValue+(e-48),this.advance();while((e=this.currentCodePoint)>=48&&e<=57);return!0}return!1}eatUnicodePropertyValueExpression(){let e=this.index;if(this.eatUnicodePropertyName()&&this.eat(61)){let e=this._lastStrValue;if(this.eatUnicodePropertyValue()){let t=this._lastStrValue;if(yy(this.ecmaVersion,e,t))return{key:e,value:t||null};this.raise("Invalid property name")}}if(this.rewind(e),this.eatLoneUnicodePropertyNameOrValue()){var t;let e=this._lastStrValue;if(yy(this.ecmaVersion,"General_Category",e))return{key:"General_Category",value:e||null};if((t=this.ecmaVersion)>=2018&&ym.es2018.has(e)||t>=2019&&ym.es2019.has(e)||t>=2021&&ym.es2021.has(e))return{key:e,value:null};if(this._unicodeSetsMode&&this.ecmaVersion>=2024&&yg.es2024.has(e))return{key:e,value:null,strings:!0};this.raise("Invalid property name")}return null}eatUnicodePropertyName(){for(this._lastStrValue="";yO(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return""!==this._lastStrValue}eatUnicodePropertyValue(){var e;for(this._lastStrValue="";yO(e=this.currentCodePoint)||yv(e);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return""!==this._lastStrValue}eatLoneUnicodePropertyNameOrValue(){return this.eatUnicodePropertyValue()}eatHexEscapeSequence(){let e=this.index;if(this.eat(120)){if(this.eatFixedHexDigits(2))return!0;(this._unicodeMode||this.strict)&&this.raise("Invalid escape"),this.rewind(e)}return!1}eatDecimalDigits(){let e=this.index;for(this._lastIntValue=0;yv(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+yE(this.currentCodePoint),this.advance();return this.index!==e}eatHexDigits(){let e=this.index;for(this._lastIntValue=0;yx(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+yE(this.currentCodePoint),this.advance();return this.index!==e}eatLegacyOctalEscapeSequence(){if(this.eatOctalDigit()){let e=this._lastIntValue;if(this.eatOctalDigit()){let t=this._lastIntValue;e<=3&&this.eatOctalDigit()?this._lastIntValue=64*e+8*t+this._lastIntValue:this._lastIntValue=8*e+t}else this._lastIntValue=e;return!0}return!1}eatOctalDigit(){let e=this.currentCodePoint;return e>=48&&e<=55?(this.advance(),this._lastIntValue=e-48,!0):(this._lastIntValue=0,!1)}eatFixedHexDigits(e){let t=this.index;this._lastIntValue=0;for(let r=0;r<e;++r){let e=this.currentCodePoint;if(!yx(e))return this.rewind(t),!1;this._lastIntValue=16*this._lastIntValue+yE(e),this.advance()}return!0}}const yR={},yM={},y$={};function yU(e){return"Character"===e.type||"CharacterSet"===e.type||"CharacterClass"===e.type||"ExpressionCharacterClass"===e.type||"ClassStringDisjunction"===e.type}class yz{constructor(e){var t;this._node=yR,this._expressionBufferMap=new Map,this._flags=yM,this._backreferences=[],this._capturingGroups=[],this.source="",this.strict=!!(null==e?void 0:e.strict),this.ecmaVersion=null!==(t=null==e?void 0:e.ecmaVersion)&&void 0!==t?t:2025}get pattern(){if("Pattern"!==this._node.type)throw Error("UnknownError");return this._node}get flags(){if("Flags"!==this._flags.type)throw Error("UnknownError");return this._flags}onRegExpFlags(e,t,{global:r,ignoreCase:n,multiline:u,unicode:a,sticky:i,dotAll:o,hasIndices:s,unicodeSets:d}){this._flags={type:"Flags",parent:null,start:e,end:t,raw:this.source.slice(e,t),global:r,ignoreCase:n,multiline:u,unicode:a,sticky:i,dotAll:o,hasIndices:s,unicodeSets:d}}onPatternEnter(e){this._node={type:"Pattern",parent:null,start:e,end:e,raw:"",alternatives:[]},this._backreferences.length=0,this._capturingGroups.length=0}onPatternLeave(e,t){for(let r of(this._node.end=t,this._node.raw=this.source.slice(e,t),this._backreferences)){let e=r.ref,t="number"==typeof e?[this._capturingGroups[e-1]]:this._capturingGroups.filter(t=>t.name===e);if(1===t.length){let e=t[0];r.ambiguous=!1,r.resolved=e}else r.ambiguous=!0,r.resolved=t;for(let e of t)e.references.push(r)}}onAlternativeEnter(e){let t=this._node;if("Assertion"!==t.type&&"CapturingGroup"!==t.type&&"Group"!==t.type&&"Pattern"!==t.type)throw Error("UnknownError");this._node={type:"Alternative",parent:t,start:e,end:e,raw:"",elements:[]},t.alternatives.push(this._node)}onAlternativeLeave(e,t){let r=this._node;if("Alternative"!==r.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onGroupEnter(e){let t=this._node;if("Alternative"!==t.type)throw Error("UnknownError");this._node={type:"Group",parent:t,start:e,end:e,raw:"",alternatives:[]},t.elements.push(this._node)}onGroupLeave(e,t){let r=this._node;if("Group"!==r.type||"Alternative"!==r.parent.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onCapturingGroupEnter(e,t){let r=this._node;if("Alternative"!==r.type)throw Error("UnknownError");this._node={type:"CapturingGroup",parent:r,start:e,end:e,raw:"",name:t,alternatives:[],references:[]},r.elements.push(this._node),this._capturingGroups.push(this._node)}onCapturingGroupLeave(e,t){let r=this._node;if("CapturingGroup"!==r.type||"Alternative"!==r.parent.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onQuantifier(e,t,r,n,u){let a=this._node;if("Alternative"!==a.type)throw Error("UnknownError");let i=a.elements.pop();if(null==i||"Quantifier"===i.type||"Assertion"===i.type&&"lookahead"!==i.kind)throw Error("UnknownError");let o={type:"Quantifier",parent:a,start:i.start,end:t,raw:this.source.slice(i.start,t),min:r,max:n,greedy:u,element:i};a.elements.push(o),i.parent=o}onLookaroundAssertionEnter(e,t,r){let n=this._node;if("Alternative"!==n.type)throw Error("UnknownError");let u=this._node={type:"Assertion",parent:n,start:e,end:e,raw:"",kind:t,negate:r,alternatives:[]};n.elements.push(u)}onLookaroundAssertionLeave(e,t){let r=this._node;if("Assertion"!==r.type||"Alternative"!==r.parent.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onEdgeAssertion(e,t,r){let n=this._node;if("Alternative"!==n.type)throw Error("UnknownError");n.elements.push({type:"Assertion",parent:n,start:e,end:t,raw:this.source.slice(e,t),kind:r})}onWordBoundaryAssertion(e,t,r,n){let u=this._node;if("Alternative"!==u.type)throw Error("UnknownError");u.elements.push({type:"Assertion",parent:u,start:e,end:t,raw:this.source.slice(e,t),kind:r,negate:n})}onAnyCharacterSet(e,t,r){let n=this._node;if("Alternative"!==n.type)throw Error("UnknownError");n.elements.push({type:"CharacterSet",parent:n,start:e,end:t,raw:this.source.slice(e,t),kind:r})}onEscapeCharacterSet(e,t,r,n){let u=this._node;if("Alternative"!==u.type&&"CharacterClass"!==u.type)throw Error("UnknownError");u.elements.push({type:"CharacterSet",parent:u,start:e,end:t,raw:this.source.slice(e,t),kind:r,negate:n})}onUnicodePropertyCharacterSet(e,t,r,n,u,a,i){let o=this._node;if("Alternative"!==o.type&&"CharacterClass"!==o.type)throw Error("UnknownError");let s={type:"CharacterSet",parent:null,start:e,end:t,raw:this.source.slice(e,t),kind:r,strings:null,key:n};if(i){if("CharacterClass"===o.type&&!o.unicodeSets||a||null!==u)throw Error("UnknownError");o.elements.push(Object.assign(Object.assign({},s),{parent:o,strings:i,value:u,negate:a}))}else o.elements.push(Object.assign(Object.assign({},s),{parent:o,strings:i,value:u,negate:a}))}onCharacter(e,t,r){let n=this._node;if("Alternative"!==n.type&&"CharacterClass"!==n.type&&"StringAlternative"!==n.type)throw Error("UnknownError");n.elements.push({type:"Character",parent:n,start:e,end:t,raw:this.source.slice(e,t),value:r})}onBackreference(e,t,r){let n=this._node;if("Alternative"!==n.type)throw Error("UnknownError");let u={type:"Backreference",parent:n,start:e,end:t,raw:this.source.slice(e,t),ref:r,ambiguous:!1,resolved:y$};n.elements.push(u),this._backreferences.push(u)}onCharacterClassEnter(e,t,r){let n=this._node,u={type:"CharacterClass",parent:n,start:e,end:e,raw:"",unicodeSets:r,negate:t,elements:[]};if("Alternative"===n.type){let e=Object.assign(Object.assign({},u),{parent:n});this._node=e,n.elements.push(e)}else if("CharacterClass"===n.type&&n.unicodeSets&&r){let e=Object.assign(Object.assign({},u),{parent:n,unicodeSets:r});this._node=e,n.elements.push(e)}else throw Error("UnknownError")}onCharacterClassLeave(e,t){let r=this._node;if("CharacterClass"!==r.type||"Alternative"!==r.parent.type&&"CharacterClass"!==r.parent.type)throw Error("UnknownError");let n=r.parent;r.end=t,r.raw=this.source.slice(e,t),this._node=n;let u=this._expressionBufferMap.get(r);if(!u)return;if(r.elements.length>0)throw Error("UnknownError");this._expressionBufferMap.delete(r);let a={type:"ExpressionCharacterClass",parent:n,start:r.start,end:r.end,raw:r.raw,negate:r.negate,expression:u};if(u.parent=a,r!==n.elements.pop())throw Error("UnknownError");n.elements.push(a)}onCharacterClassRange(e,t){let r=this._node;if("CharacterClass"!==r.type)throw Error("UnknownError");let n=r.elements,u=n.pop();if(!u||"Character"!==u.type)throw Error("UnknownError");if(!r.unicodeSets){let e=n.pop();if(!e||"Character"!==e.type||45!==e.value)throw Error("UnknownError")}let a=n.pop();if(!a||"Character"!==a.type)throw Error("UnknownError");let i={type:"CharacterClassRange",parent:r,start:e,end:t,raw:this.source.slice(e,t),min:a,max:u};a.parent=i,u.parent=i,n.push(i)}onClassIntersection(e,t){var r;let n=this._node;if("CharacterClass"!==n.type||!n.unicodeSets)throw Error("UnknownError");let u=n.elements.pop(),a=null!==(r=this._expressionBufferMap.get(n))&&void 0!==r?r:n.elements.pop();if(!a||!u||"ClassSubtraction"===a.type||"ClassIntersection"!==a.type&&!yU(a)||!yU(u))throw Error("UnknownError");let i={type:"ClassIntersection",parent:n,start:e,end:t,raw:this.source.slice(e,t),left:a,right:u};a.parent=i,u.parent=i,this._expressionBufferMap.set(n,i)}onClassSubtraction(e,t){var r;let n=this._node;if("CharacterClass"!==n.type||!n.unicodeSets)throw Error("UnknownError");let u=n.elements.pop(),a=null!==(r=this._expressionBufferMap.get(n))&&void 0!==r?r:n.elements.pop();if(!a||!u||"ClassIntersection"===a.type||"ClassSubtraction"!==a.type&&!yU(a)||!yU(u))throw Error("UnknownError");let i={type:"ClassSubtraction",parent:n,start:e,end:t,raw:this.source.slice(e,t),left:a,right:u};a.parent=i,u.parent=i,this._expressionBufferMap.set(n,i)}onClassStringDisjunctionEnter(e){let t=this._node;if("CharacterClass"!==t.type||!t.unicodeSets)throw Error("UnknownError");this._node={type:"ClassStringDisjunction",parent:t,start:e,end:e,raw:"",alternatives:[]},t.elements.push(this._node)}onClassStringDisjunctionLeave(e,t){let r=this._node;if("ClassStringDisjunction"!==r.type||"CharacterClass"!==r.parent.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onStringAlternativeEnter(e){let t=this._node;if("ClassStringDisjunction"!==t.type)throw Error("UnknownError");this._node={type:"StringAlternative",parent:t,start:e,end:e,raw:"",elements:[]},t.alternatives.push(this._node)}onStringAlternativeLeave(e,t){let r=this._node;if("StringAlternative"!==r.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}}const yV=/^[!=]=/,yq=new class{constructor(e){this._state=new yz(e),this._validator=new yN(this._state)}parseLiteral(e,t=0,r=e.length){this._state.source=e,this._validator.validateLiteral(e,t,r);let n=this._state.pattern,u=this._state.flags,a={type:"RegExpLiteral",parent:null,start:t,end:r,raw:e,pattern:n,flags:u};return n.parent=a,u.parent=a,a}parseFlags(e,t=0,r=e.length){return this._state.source=e,this._validator.validateFlags(e,t,r),this._state.flags}parsePattern(e,t=0,r=e.length,n){return this._state.source=e,this._validator.validatePattern(e,t,r,n),this._state.pattern}};function yW(e){return p.ESLintUtils.nullThrows(e.parent?.type===p.AST_NODE_TYPES.ChainExpression?e.parent.parent:e.parent,p.ESLintUtils.NullThrowsReasons.MissingParent)}function yG(e){return e.type===p.AST_NODE_TYPES.BinaryExpression&&yV.test(e.operator)}var yZ={rules:{"array/no-unneeded-flat-map":P,"browser/prefer-location-assign":F,"jsx/no-template-literal":B,"jsx/no-unneeded-nested":j,"string/no-locale-case":O,"string/no-simple-template-literal":R,"type/no-instanceof-wrapper":$,"unicode/no-bidi":Z,"unicode/no-invisible":K,"ban-eslint-disable":g6,"no-redundant-variable":Y,"no-single-return":X,"prefer-early-return":ee,"prefer-fetch":et,"prefer-timer-id":eu,"import-dedupe":g9,"no-return-await":g7,"no-expression-empty-lines":yr,"object-format":yu,"string/prefer-string-starts-ends-with":f.createRule({name:"prefer-string-starts-ends-with",meta:{type:"suggestion",docs:{description:"Enforce using `String#startsWith` and `String#endsWith` over other equivalent methods of checking substrings"},messages:{preferStartsWith:"Use 'String#startsWith' method instead.",preferEndsWith:"Use the 'String#endsWith' method instead."},schema:[],fixable:"code"},create(e){f.ensureParserWithTypeInformation(e.sourceCode.parserServices);let t=e.sourceCode.parserServices,r=t.program.getTypeChecker(),n=e.sourceCode.scopeManager?.scopes[0];function u(e){let n=t.getTypeAtLocation(e);return"string"===h.getTypeName(r,n)}function a(e,t){let r=p.ASTUtils.getStaticValue(e,n);return null!=r&&r.value===t}function i(e){let t=p.ASTUtils.getStaticValue(e,n);return null!=t&&"string"==typeof t.value&&t.value[0]===t.value}function o(t,r){if(t.type===p.AST_NODE_TYPES.MemberExpression)return"length"===p.ASTUtils.getPropertyName(t,n)&&function(t,r){let n=e.sourceCode.getTokens(t),u=e.sourceCode.getTokens(r);if(n.length!==u.length)return!1;for(let e=0,t=n.length;e<t;++e){let t=n[e],r=u[e];if(t.type!==r.type||t.value!==r.value)return!1}return!0}(t.object,r);let u=p.ASTUtils.getStaticValue(t,n),a=p.ASTUtils.getStaticValue(r,n);return null!=u&&null!=a&&"number"==typeof u.value&&"string"==typeof a.value&&u.value===a.value.length}function s(e,t,r){return e.type===p.AST_NODE_TYPES.UnaryExpression&&"-"===e.operator&&o(e.argument,t)||e.type===p.AST_NODE_TYPES.BinaryExpression&&"-"===e.operator&&o(e.left,r)&&o(e.right,t)}function d(t){return[e.sourceCode.getTokenAfter(t.object,p.ASTUtils.isNotClosingParenToken).range[0],t.range[1]]}function l(e){let t=p.ASTUtils.getStaticValue(e,n);if(null==t||!(t.value instanceof RegExp))return null;let{source:r,flags:u}=t.value,a=r.startsWith("^"),i=r.endsWith("$");if(a===i||u.includes("i")||u.includes("m"))return null;let o=function(e,t){let r=yq.parsePattern(e,void 0,void 0,{unicode:t});if(1!==r.alternatives.length)return null;let n=r.alternatives[0].elements,u=n[0];return("Assertion"===u.type&&"start"===u.kind?n.shift():n.pop(),n.every(e=>"Character"===e.type))?String.fromCodePoint(...n.map(e=>e.value)):null}(r,u.includes("u"));return null==o?null:{isEndsWith:i,isStartsWith:a,text:o}}function*c(e,t,r,n,u){let a=d(function e(t){let r;if(t.type===p.AST_NODE_TYPES.ChainExpression)return e(t.expression);if((r=t.type===p.AST_NODE_TYPES.CallExpression?t.callee:t).type!==p.AST_NODE_TYPES.MemberExpression)throw Error(`Expected a MemberExpression, got ${r.type}`);return r}(t.left));n&&(yield e.insertTextBefore(t,"!")),yield e.replaceTextRange([a[0],t.right.range[0]],`${u?"?.":"."}${r}sWith(`),yield e.replaceTextRange([t.right.range[1],t.range[1]],")")}function*m(e,t,r,n,u,a,i){a&&(yield e.insertTextBefore(t,"!")),yield e.replaceTextRange(d(n),`${i?"?.":"."}${u}sWith`),yield e.removeRange([r.range[1],t.range[1]])}return{'BinaryExpression > MemberExpression.left[computed=true], BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="charAt"][computed=false], BinaryExpression > ChainExpression.left > MemberExpression[computed=true], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="charAt"][computed=false]'(t){var r,s;let d=yW(t),l=d.type===p.AST_NODE_TYPES.CallExpression,f=null;if(d.type===p.AST_NODE_TYPES.CallExpression?(1===d.arguments.length&&(f=d.arguments[0]),d=yW(d)):f=t.property,null==f||!yG(d)||!u(t.object))return;let h=(r=f,s=t.object,r.type===p.AST_NODE_TYPES.BinaryExpression&&"-"===r.operator&&o(r.left,s)&&a(r.right,1)),m=!h&&a(f,0);if(!m&&!h)return;let g=d;m&&!l&&function(e){if(!i(e))return!1;let t=p.ASTUtils.getStaticValue(e,n);return null!=t&&"string"==typeof t.value&&t.value[0]===t.value&&function(e){let t=e.codePointAt(0);return null!=t&&t>=0&&t<=127}(t.value)}(g.right)||e.report({node:d,messageId:m?"preferStartsWith":"preferEndsWith",fix:e=>i(g.right)?c(e,g,m?"start":"end",g.operator.startsWith("!"),t.optional):null})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="indexOf"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="indexOf"][computed=false]'(t){let r=yW(t),n=yW(r);1===r.arguments.length&&yG(n)&&a(n.right,0)&&u(t.object)&&e.report({node:n,messageId:"preferStartsWith",fix:e=>m(e,n,r,t,"start",n.operator.startsWith("!"),t.optional)})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="lastIndexOf"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="lastIndexOf"][computed=false]'(t){let r=yW(t),n=yW(r);1===r.arguments.length&&yG(n)&&n.right.type===p.AST_NODE_TYPES.BinaryExpression&&"-"===n.right.operator&&o(n.right.left,t.object)&&o(n.right.right,r.arguments[0])&&u(t.object)&&e.report({node:n,messageId:"preferEndsWith",fix:e=>m(e,n,r,t,"end",n.operator.startsWith("!"),t.optional)})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="match"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="match"][computed=false]'(t){let r=yW(t),a=yW(r);if(!yG(a)||!function(e){let t=p.ASTUtils.getStaticValue(e,n);return null!=t&&null==t.value}(a.right)||!u(t.object))return;let i=1===r.arguments.length?l(r.arguments[0]):null;if(null==i)return;let{isStartsWith:o,text:s}=i;e.report({node:r,messageId:o?"preferStartsWith":"preferEndsWith",*fix(e){a.operator.startsWith("!")||(yield e.insertTextBefore(a,"!")),yield e.replaceTextRange(d(t),`${t.optional?"?.":"."}${o?"start":"end"}sWith`),yield e.replaceText(r.arguments[0],JSON.stringify(s)),yield e.removeRange([r.range[1],a.range[1]])}})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="slice"][computed=false], BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="substring"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="slice"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="substring"][computed=false]'(t){let r=yW(t),n=yW(r);if(!yG(n)||!u(t.object))return;let i=!1,d=!1;if(1===r.arguments.length?s(r.arguments[0],n.right,t.object)&&(i=!0):2===r.arguments.length&&(a(r.arguments[0],0)&&o(r.arguments[1],n.right)?d=!0:(o(r.arguments[1],t.object)||a(r.arguments[1],0))&&s(r.arguments[0],n.right,t.object)&&(i=!0)),!d&&!i)return;let l="slice"===t.property.name;e.report({node:n,messageId:d?"preferStartsWith":"preferEndsWith",fix(e){if(2===n.operator.length&&(n.right.type!==p.AST_NODE_TYPES.Literal||"string"!=typeof n.right.value))return null;if(d){if(!o(r.arguments[1],n.right))return null}else{let e=r.arguments[0];if(!(e.type===p.AST_NODE_TYPES.BinaryExpression&&"-"===e.operator&&o(e.left,t.object)&&o(e.right,n.right)||l&&e.type===p.AST_NODE_TYPES.UnaryExpression&&"-"===e.operator&&o(e.argument,n.right)))return null}return c(e,n,d?"start":"end",n.operator.startsWith("!"),t.optional)}})},'CallExpression > MemberExpression.callee[property.name="test"][computed=false]':function(t){let r=yW(t),n=1===r.arguments.length?l(t.object):null;if(null==n)return;let{isStartsWith:u,text:a}=n,i=u?"startsWith":"endsWith";e.report({node:r,messageId:u?"preferStartsWith":"preferEndsWith",*fix(e){let n=r.arguments[0],u=n.type!==p.AST_NODE_TYPES.Literal&&n.type!==p.AST_NODE_TYPES.TemplateLiteral&&n.type!==p.AST_NODE_TYPES.Identifier&&n.type!==p.AST_NODE_TYPES.MemberExpression&&n.type!==p.AST_NODE_TYPES.CallExpression;yield e.removeRange([r.range[0],n.range[0]]),u&&(yield e.insertTextBefore(n,"("),yield e.insertTextAfter(n,")")),yield e.insertTextAfter(n,`${t.optional?"?.":"."}${i}(${JSON.stringify(a)}`)}})}}}}),"string/no-unneeded-to-string":ea,"type/no-force-cast-via-top-type":ei,"type/no-wrapper-type-reference":es,"no-default-error":ed,"no-export-const-enum":f.createRule({name:"no-export-const-enum",meta:{type:"suggestion",docs:{description:"Disallow using `const enum` expression as it can not be inlined and tree-shaken by swc/esbuild/babel/webpack/rollup/vite/bun/rspack"},messages:{noConstEnum:"Do not use `const enum` expression"},schema:[]},create(e){let t=(t,r)=>{let n=p.ASTUtils.findVariable(e.sourceCode.getScope(t),r);n?.defs.forEach(r=>{r.node.type===p.AST_NODE_TYPES.TSEnumDeclaration&&r.node.const&&e.report({node:t,messageId:"noConstEnum"})})};return{ExportNamedDeclaration(r){let n=r.declaration;if(n?.type===p.AST_NODE_TYPES.TSEnumDeclaration&&n.const){e.report({node:r,messageId:"noConstEnum"});return}if(n?.type===p.AST_NODE_TYPES.VariableDeclaration){let e=n.declarations[0].id;e.type===p.AST_NODE_TYPES.Identifier&&t(r,e)}},ExportDefaultDeclaration(e){let r=e.declaration;r.type===p.AST_NODE_TYPES.Identifier&&t(e,r)}}}}),...Object.fromEntries(Object.entries({"unicorn/better-regex":lS,"unicorn/catch-error-name":ge,"unicorn/custom-error-definition":gp,"unicorn/no-nested-ternary":tv,"unicorn/prefer-event-target":nz,"unicorn/prefer-keyboard-event-key":n0,"unicorn/prefer-text-content":n4,"unicorn/require-array-join-separator":uD,"unicorn/no-thenable":uj,"unicorn/no-invalid-remove-event-listener":uR,"unicorn/consistent-function-scoping":uJ,"unicorn/no-new-buffer":ah,"unicorn/no-console-spaces":ax,"unicorn/no-empty-file":aw,"unicorn/no-useless-fallback-in-spread":aI,"unicorn/no-useless-length-check":aM,"unicorn/no-useless-promise-resolve-reject":aV,"unicorn/no-zero-fractions":aY,"unicorn/prefer-export-from":ie,"unicorn/prefer-native-coercion-functions":ic,"unicorn/no-document-cookie":ix,"unicorn/prefer-add-event-listener":ij,"unicorn/prefer-array-index-of":iZ,"unicorn/prefer-blob-reading-methods":iY,"unicorn/prefer-date-now":i8,"unicorn/prefer-dom-node-dataset":oi,"unicorn/prefer-modern-math-apis":oA,"unicorn/number-literal-case":oR,"unicorn/prefer-number-properties":oG,"unicorn/prefer-reflect-apply":o1,"unicorn/prefer-set-size":o9,"unicorn/prefer-string-replace-all":sd,"unicorn/prefer-string-slice":sb,"unicorn/prefer-string-trim-start-end":sE,"unicorn/no-unreadable-iife":s_,"unicorn/throw-new-error":sk,"unicorn/escape-case":lj,"unicorn/no-hex-escape":lU,"unicorn/prefer-prototype-methods":lH,"unicorn/error-message":l1,"unicorn/no-instanceof-array":l9,"unicorn/prefer-type-error":cs,"unicorn/consistent-destructuring":ch,"unicorn/new-for-builtins":cE,"unicorn/no-array-push-push":cI,"unicorn/no-process-exit":cR,"unicorn/no-static-only-class":fe,"unicorn/no-unreadable-array-destructuring":fa,"unicorn/no-useless-spread":fA,"unicorn/no-useless-switch-case":fk,"unicorn/no-useless-undefined":fU,"unicorn/numeric-separators-style":fZ,"unicorn/prefer-array-find":pg,"unicorn/prefer-array-flat-map":pC,"unicorn/prefer-array-flat":pU,"unicorn/prefer-array-some":p3,"unicorn/prefer-code-point":p8,"unicorn/prefer-default-parameters":hs,"unicorn/prefer-logical-operator-over-ternary":hg,"unicorn/prefer-optional-catch-binding":hE,"unicorn/prefer-regexp-test":hO,"unicorn/prefer-set-has":hZ,"unicorn/prefer-string-raw":hX,"unicorn/prefer-switch":h8,"unicorn/require-number-to-fixed-digits-argument":me,"unicorn/template-indent":mj,"unicorn/no-single-promise-in-promise-methods":c0,"unicorn/no-await-in-promise-methods":mU,"unicorn/no-negation-in-equality-check":mX,"unicorn/no-length-as-slice-end":m4,"unicorn/no-lonely-if":gC,"unicorn/no-magic-array-flat-depth":gw,"unicorn/no-negated-condition":gj,"unicorn/no-object-as-default-parameter":gR,"unicorn/prefer-negative-index":gK,"unicorn/prefer-node-protocol":g3}).map(([e,t])=>{var r;return[e,{...t,meta:{schema:[],...t.meta,docs:{description:"",...t.meta.docs,url:em(e)}},create:(r=t.create,e=>{let t={},n=(e,r)=>{t[e]??(t[e]=[]),t[e].push(r)};for(let[t,u]of Object.entries(r(new Proxy(e,{get:(e,t,r)=>"on"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])n(r,t)}:"onExit"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])n(`${r}:exit`,t)}:Reflect.get(e,t,r)}),void 0)??{}))n(t,u);return Object.fromEntries(Object.entries(t).map(([t,r])=>[t,(...t)=>{for(let n of r)!function(e,t){if(e){for(let r of(yH(e)||(e=[e]),e))if(r){if(r.fix&&(r.fix=yJ(r.fix)),yH(r.suggest))for(let e of r.suggest)e.fix&&(e.fix=yJ(e.fix)),e.data={...r.data,...e.data};t.report(r)}}}(n(...t),e)}]))})}]}))}};const yH=e=>!!e&&Symbol.iterator in e;class yK extends Error{constructor(e,t){super(e,t),this.name="FixAbortError"}}const yY={abort(){throw new yK("Fix aborted.")}};function yJ(e){return t=>{let r=e(t,yY);if(yH(r))try{return[...r]}catch(e){if(e instanceof yK)return;throw e}return r}}module.exports=yZ;
|
|
32
|
+
`,a=e=>{if(!e.superClass)return!1;let{name:t,type:n,property:u}=e.superClass;return"MemberExpression"===n&&({name:t}=u),r.test(t)},i=e=>"ExpressionStatement"===e.type&&"CallExpression"===e.expression.type&&"Super"===e.expression.callee.type,o=(e,t)=>{if("ExpressionStatement"!==e.type||"AssignmentExpression"!==e.expression.type)return!1;let r=e.expression.left;return!!r.object&&"ThisExpression"===r.object.type&&r.property.name===t},s=(e,t)=>"PropertyDefinition"===e.type&&!e.computed&&"Identifier"===e.key.type&&e.key.name===t;function*d(e,t){if(!a(t)||null===t.id)return;let{name:r}=t.id,d=n(r);r!==d&&(yield{node:t.id,message:`Invalid class name, use \`${d}\`.`});let{body:l,range:c}=t.body,f=l.find(e=>"constructor"===e.kind);if(!f){yield{node:t,message:"Add a constructor to your error.",fix:e=>e.insertTextAfterRange([c[0],c[0]+1],u(r))};return}let p=f.value.body;if(!p)return;let h=p.body,m=h.find(e=>i(e)),g=h.findIndex(e=>o(e,"message"));if(m){if(-1!==g){let e=h[g];yield{node:m,message:"Pass the error message to `super()` instead of setting `this.message`.",*fix(t){if(0===m.expression.arguments.length){let r=e.expression.right;yield t.insertTextAfterRange([m.range[0],m.range[0]+6],r.raw||r.name)}yield t.removeRange([0===g?p.range[0]:h[g-1].range[1],e.range[1]])}}}}else yield{node:p,message:"Missing call to `super()` in constructor."};let y=h.find(e=>o(e,"name"));if(y)y.expression.right.value!==r&&(yield{node:y?.expression.right??p,message:`The \`name\` property should be set to \`${r}\`.`});else{let e=l.find(e=>s(e,"name"));e?.value&&e.value.value===r||(yield{node:e?.value??p,message:`The \`name\` property should be set to \`${r}\`.`})}}let l=(e,r)=>{let n=r.left.property.name,u=r.right;if("ClassExpression"!==u.type||!a(u)||!u.id)return;let i=u.id.name;if(n!==i)return{node:r.left.property,messageId:t,fix:e=>e.replaceText(r.left.property,i)}};return aY={create:e=>{e.on("ClassDeclaration",t=>d(e,t)),e.on("AssignmentExpression",t=>{if("ClassExpression"===t.right.type)return d(e,t.right)}),e.on("AssignmentExpression",t=>{if("MemberExpression"===t.left.type&&"Identifier"===t.left.object.type&&"exports"===t.left.object.name)return l(e,t)})},meta:{type:"problem",docs:{description:"Enforce correct `Error` subclassing.",recommended:!1},fixable:"code",messages:{[t]:"Exported error name should match error class"}}}}()),lS=/*@__PURE__*/oe(/*@__PURE__*/function(){if(aX)return aQ;aX=1;let{isParenthesized:e,isNotSemicolonToken:t}=sa,{needsSemicolon:r}=/*@__PURE__*/sL(),{removeSpacesAfter:n}=/*@__PURE__*/sZ(),u="no-lonely-if",a=e=>"IfStatement"===e.type&&!e.alternate,i=e=>"LogicalExpression"===e.type&&("||"===e.operator||"??"===e.operator)||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type;function o(e,t){let r={};r.ifToken=t.getFirstToken(e),r.openingParenthesisToken=t.getFirstToken(e,1);let{consequent:n}=e;return r.closingParenthesisToken=t.getTokenBefore(n),"BlockStatement"===n.type&&(r.openingBraceToken=t.getFirstToken(n),r.closingBraceToken=t.getLastToken(n)),r}return aQ={create:s=>({IfStatement(d){var l;if(a(d)&&("BlockStatement"===d.parent.type&&1===d.parent.body.length&&d.parent.body[0]===d&&a(d.parent.parent)&&d.parent.parent.consequent===d.parent||a(d.parent)&&d.parent.consequent===d))return{node:d,messageId:u,fix:(l=s.sourceCode,function*(u){let a=("BlockStatement"===d.parent.type?d.parent:d).parent,s={...a,...o(a,l)},c={...d,...o(d,l)};if(yield u.remove(c.ifToken),yield n(c.ifToken,l,u),s.openingBraceToken){yield u.remove(s.openingBraceToken),yield n(s.openingBraceToken,l,u),yield u.remove(s.closingBraceToken);let e=l.getTokenBefore(s.closingBraceToken,{includeComments:!0});yield n(e,l,u)}for(let{test:t,openingParenthesisToken:r,closingParenthesisToken:a}of(yield u.insertTextBefore(s.openingParenthesisToken,"("),yield u.insertTextAfter(c.closingParenthesisToken,`)${"EmptyStatement"===c.consequent.type?"":" "}`),yield u.insertTextAfter(s.closingParenthesisToken," && "),[s,c]))(e(t,l)||!i(t))&&(yield u.remove(r),yield u.remove(a)),yield n(a,l,u);if("BlockStatement"!==c.consequent.type){let e=l.getLastToken(c.consequent);if(t(e)){let t=l.getTokenAfter(s);t&&r(e,l,t.value)&&(yield u.insertTextBefore(t,";"))}}})}}}),meta:{type:"suggestion",docs:{description:"Disallow `if` statements as the only statement in `if` blocks without `else`.",recommended:!0},fixable:"code",messages:{[u]:"Unexpected `if` as the only statement in a `if` block without `else`."}}}}()),l_=/*@__PURE__*/oe(/*@__PURE__*/function(){if(a1)return a0;a1=1;let{isMethodCall:e,isNumberLiteral:t}=/*@__PURE__*/sh(),{getCallExpressionTokens:r}=/*@__PURE__*/sL(),n="no-magic-array-flat-depth";return a0={create:u=>({CallExpression(a){if(!e(a,{method:"flat",argumentsLength:1,optionalCall:!1}))return;let[i]=a.arguments;if(!t(i)||1===i.value)return;let{sourceCode:o}=u,{openingParenthesisToken:s,closingParenthesisToken:d}=r(o,a);if(!o.commentsExistBetween(s,d))return{node:i,messageId:n}}}),meta:{type:"suggestion",docs:{description:"Disallow a magic number as the `depth` argument in `Array#flat(…).`",recommended:!0},messages:{[n]:"Magic number as depth is not allowed."}}}}()),lw=/*@__PURE__*/oe(/*@__PURE__*/function(){if(a3)return a2;a3=1;let{removeParentheses:e,fixSpaceAroundKeyword:t,addParenthesizesToReturnOrThrowExpression:r}=/*@__PURE__*/sZ(),{getParenthesizedRange:n,isParenthesized:u}=/*@__PURE__*/so(),a=/*@__PURE__*/sw(),i=/*@__PURE__*/sk(),o="no-negated-condition";return a2={create:s=>{s.on(["IfStatement","ConditionalExpression"],d=>{if("IfStatement"===d.type&&(!d.alternate||"IfStatement"===d.alternate.type))return;let{test:l}=d;if(!(("UnaryExpression"!==l.type||"!"!==l.operator)&&("BinaryExpression"!==l.type||"!="!==l.operator&&"!=="!==l.operator)))return{node:l,messageId:o,*fix(o){let{sourceCode:c}=s;if(yield*function*(t,r,n){let{test:u}=r;if("UnaryExpression"===u.type){let a=n.getFirstToken(u);"IfStatement"===r.type&&(yield*e(u.argument,t,n)),yield t.remove(a);return}let a=n.getTokenAfter(u.left,e=>"Punctuator"===e.type&&e.value===u.operator);yield t.replaceText(a,"="+a.value.slice(1))}(o,d,c),yield*function*(e,t,r){let u="IfStatement"===t.type,[a,i]=[t.consequent,t.alternate].map(e=>{let t=n(e,r),a=r.text.slice(...t);return u&&"BlockStatement"!==e.type&&(a=`{${a}}`),{range:t,text:a}});a.text!==i.text&&(yield e.replaceTextRange(a.range,i.text),yield e.replaceTextRange(i.range,a.text))}(o,d,c),"ConditionalExpression"!==d.type||"UnaryExpression"!==l.type)return;yield*t(o,d,c);let{parent:f}=d,[p,h]=c.getFirstTokens(l,2);if(("ReturnStatement"===f.type||"ThrowStatement"===f.type)&&f.argument===d&&!a(p,h)&&!u(d,c)&&!u(l,c)){yield*r(o,f,c);return}i(c.getTokenBefore(d),c,h.value)&&(yield o.insertTextBefore(d,";"))}}})},meta:{type:"suggestion",docs:{description:"Disallow negated conditions.",recommended:!0},fixable:"code",messages:{[o]:"Unexpected negated condition."}}}}()),lT=/*@__PURE__*/oe(/*@__PURE__*/function(){if(a5)return a4;a5=1;let{isFunction:e}=/*@__PURE__*/sh(),t="identifier",r="non-identifier";return a4={create:()=>({AssignmentPattern(n){if(!("ObjectExpression"===n.right.type&&n.right.properties.length>0&&e(n.parent)&&n.parent.params.includes(n)))return;let{left:u,right:a}=n;return"Identifier"===u.type?{node:u,messageId:t,data:{parameter:u.name}}:{node:a,messageId:r}}}),meta:{type:"problem",docs:{description:"Disallow the use of objects as default parameters.",recommended:!0},messages:{[t]:"Do not use an object literal as default for parameter `{{parameter}}`.",[r]:"Do not use an object literal as default."}}}}()),lF=/*@__PURE__*/oe(/*@__PURE__*/function(){if(a7)return a9;a7=1;let{getNegativeIndexLengthNode:e,removeLengthNode:t}=/*@__PURE__*/function(){if(a6)return a8;a6=1;let e=/*@__PURE__*/sT(),{getParenthesizedRange:t}=/*@__PURE__*/so(),{isNumberLiteral:r}=/*@__PURE__*/sh(),n=e=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.property.type&&"length"===e.property.name,u=e=>r(e)&&e.value>0;return a8={getNegativeIndexLengthNode:function t(r,a){if(!r)return;let{type:i,operator:o,left:s,right:d}=r;return"BinaryExpression"===i&&"-"===o&&u(d)?n(s)&&e(s.object,a)?s:t(s,a):void 0},removeLengthNode:function(e,r,n){let[u,a]=t(e,n);return r.removeRange([u,a+n.text.slice(a).match(/\S|$/).index])}}}(),r=/*@__PURE__*/dL(),{isLiteral:n}=/*@__PURE__*/sh(),u="prefer-negative-index",a=new Map([["slice",{argumentsIndexes:[0,1],supportObjects:new Set(["Array","String","ArrayBuffer",...r])}],["subarray",{argumentsIndexes:[0,1],supportObjects:new Set(r)}],["splice",{argumentsIndexes:[0],supportObjects:new Set(["Array"])}],["toSpliced",{argumentsIndexes:[0],supportObjects:new Set(["Array"])}],["at",{argumentsIndexes:[0],supportObjects:new Set(["Array","String",...r])}],["with",{argumentsIndexes:[0],supportObjects:new Set(["Array",...r])}]]),i=e=>{let{type:t,property:r}=e;if("MemberExpression"===t&&"Identifier"===r.type)return r.name};return a9={create:r=>({CallExpression(o){if("MemberExpression"!==o.callee.type)return;let s=function(e){let{callee:t,arguments:r}=e,u=t.property.name,o=t.object,s=r;if(a.has(u))return{method:u,target:o,argumentsNodes:s};if("call"!==u&&"apply"!==u)return;let d="apply"===u;if(u=i(t.object),!a.has(u))return;let{supportObjects:l}=a.get(u),c=t.object.object;if("ArrayExpression"===c.type&&0===c.elements.length||"slice"===u&&n(c,"")||"prototype"===i(c)&&"Identifier"===c.object.type&&l.has(c.object.name)){if([o]=r,d){let[,e]=r;if(!e||"ArrayExpression"!==e.type)return;s=e.elements}else s=r.slice(1);return{method:u,target:o,argumentsNodes:s}}}(o);if(!s)return;let{method:d,target:l,argumentsNodes:c}=s,{argumentsIndexes:f}=a.get(d),p=f.map(t=>e(c[t],l)).filter(Boolean);if(0!==p.length)return{node:o,messageId:u,data:{method:d},*fix(e){let{sourceCode:n}=r;for(let r of p)yield t(r,e,n)}}}}),meta:{type:"suggestion",docs:{description:"Prefer negative index over `.length - index` when possible.",recommended:!0},fixable:"code",messages:{[u]:"Prefer negative index over length minus index for `{{method}}`."}}}}()),lk=/*@__PURE__*/ot(iy),lP=/*@__PURE__*/oe(/*@__PURE__*/function(){if(ii)return ia;ii=1;let e=function(){if(iu)return ir;iu=1;let e=new Set(function(){if(it)return ie;it=1;let{builtinModules:e}=lk,t=["sys"];return ie=(e||(process.binding?Object.keys(process.binding("natives")):[])||[]).filter(e=>!/^_|^(internal|v8|node-inspect)\/|\//.test(e)&&!t.includes(e)).sort()}()),t="node:";return ir=r=>{if("string"!=typeof r)throw TypeError("Expected a string");r.startsWith(t)&&(r=r.slice(t.length));let n=r.indexOf("/");return -1!==n&&n!==r.length-1&&(r=r.slice(0,n)),e.has(r)}}(),{replaceStringLiteral:t}=/*@__PURE__*/sZ(),r=/*@__PURE__*/sf(),n="prefer-node-protocol";return ia={create:()=>({Literal(u){if(!(("ImportDeclaration"===u.parent.type||"ExportNamedDeclaration"===u.parent.type||"ImportExpression"===u.parent.type)&&u.parent.source===u||r(u.parent)&&u.parent.arguments[0]===u))return;let{value:a}=u;if(!("string"!=typeof a||a.startsWith("node:")||/^bun(?::|$)/.test(a))&&e(a))return{node:u,messageId:n,data:{moduleName:a},fix:e=>t(e,u,"node:",0,0)}}}),meta:{type:"suggestion",docs:{description:"Prefer using the `node:` protocol when importing Node.js builtin modules.",recommended:!0},fixable:"code",messages:{[n]:"Prefer `node:{{moduleName}}` over `{{moduleName}}`."}}}}());const lI=RegExp("^\\s*(?<directive>eslint-disable(?:-(?:next-)?line)?)"),lB=RegExp("^eslint-disable(?:-next-line|-line)?(?<ruleId>$|(?:\\s+(?:@(?:[\\w-]+\\/){1,2})?[\\w-]+)?)"),lj=Symbol("rule-id-no-match");var lO=il.createRule({name:"ban-eslint-disable",meta:{type:"problem",docs:{description:"Ban `eslint-disable` comment directive"},schema:[{oneOf:[{type:"boolean"},{type:"string",enum:["allow-with-description"]}]}],messages:{"do-not-use":"Do not use `{{directive}}`","require-description":"Include a description after the `{{directive}}` directive to explain why the `{{directive}}` is necessary.","require-specific-rule":"Enforce specifying rules to disable in `eslint-disable` comments. If you want to disable ESLint on a file altogether, you should ignore it through ESLint configuration."}},create:(e,t="allow-with-description")=>!1===t?{}:{Program(r){if(r.comments&&0!==r.comments.length)for(let n of r.comments){let r=function(e){let t=lI.exec(e);return t?.groups?.directive}(n.value);if(r&&!("allow-with-description"===t&&n.value.includes("--"))){let u="allow-with-description"===t?"require-description":"do-not-use";e.report({node:n,data:{directive:r},messageId:u})}let u=function(e){let t=lB.exec(e.trim());return t?t.groups?.ruleId:lj}(n.value);u===lj||u||e.report({node:n,messageId:"require-specific-rule"})}}}}),lL=il.createRule({name:"import-dedupe",meta:{type:"problem",docs:{description:"Fix duplication in imports"},fixable:"code",schema:[],messages:{"import-dedupe":"Expect no duplication in imports"}},create:e=>({ImportDeclaration(t){if(t.specifiers.length<=1)return;let r=new Set;t.specifiers.forEach(n=>{let u=n.local.name;r.has(u)&&e.report({node:t,loc:{start:n.loc.end,end:n.loc.start},messageId:"import-dedupe",fix(t){let r=n.range[0],u=n.range[1];return","===e.sourceCode.text[u]&&(u+=1),t.removeRange([r,u])}}),r.add(u)})}})}),lN=il.createRule({name:"no-return-await",meta:{type:"suggestion",hasSuggestions:!0,docs:{description:"Disallows unnecessary `return await`"},fixable:void 0,deprecated:!1,schema:[],messages:{removeAwait:"Remove redundant `await`.",redundantUseOfAwait:"Redundant use of `await` on a return value."}},create:e=>({AwaitExpression(t){(function e(t){return t.parent?.type===ic.AST_NODE_TYPES.ArrowFunctionExpression||(t.parent?.type===ic.AST_NODE_TYPES.ReturnStatement?!lR(t.parent):(t.parent?.type===ic.AST_NODE_TYPES.ConditionalExpression&&(t===t.parent.consequent||t===t.parent.alternate)||t.parent?.type===ic.AST_NODE_TYPES.LogicalExpression&&t===t.parent.right||t.parent?.type===ic.AST_NODE_TYPES.SequenceExpression&&t===t.parent.expressions.at(-1))&&e(t.parent))})(t)&&!lR(t)&&e.report({node:e.sourceCode.getFirstToken(t),loc:t.loc,messageId:"redundantUseOfAwait",suggest:[{messageId:"removeAwait",fix(r){let n=e.sourceCode,[u,a]=n.getFirstTokens(t,2);if(u.loc.start.line!==a.loc.start.line)return null;let[i,o]=u.range,s=n.text[o];return r.removeRange([i,o+(" "===s?1:0)])}}]})}})});function lR(e){let t=e;for(;!ic.ASTUtils.isFunction(t)&&t.type!==ic.AST_NODE_TYPES.Program;){if(t.parent.type===ic.AST_NODE_TYPES.TryStatement&&(t===t.parent.block||t===t.parent.handler&&t.parent.finalizer))return!0;t=t.parent}return!1}function lM(e){return e.includes("\r\n")?"\r\n":"\n"}var l$=il.createRule({name:"no-expression-empty-lines",meta:{messages:{unexpectedEmptyLine:"Unexpected empty line before"},docs:{description:"Disallows empty lines inside expressions."},fixable:"whitespace",type:"suggestion",schema:[]},create(e){let t=e.sourceCode.getText(),r=lM(t);return{MemberExpression(n){let u=n.object.range[1],a=lU(t.slice(u));if(a.includes("\n")){let t=r+((lU(a).split(/\r\n|\n/u).at(-1)??"")+a.trimStart());a!==t&&e.report({fix:()=>({range:[u,u+a.length],text:t}),messageId:"unexpectedEmptyLine",node:n.property})}}}}});function lU(e){return e.slice(0,e.length-e.trimStart().length)}var lz=il.createRule({name:"object-format",meta:{fixable:"whitespace",schema:[{type:"object",properties:{maxLineLength:{type:"number",default:80},maxObjectSize:{type:"number",default:3}},additionalProperties:!1}],docs:{description:"Requires multiline or single-line object format.",recommended:"stylistic"},messages:{preferMultiline:"Prefer multiline object literal",preferSingleLine:"Prefer single-line object literal"},type:"layout"},create(e,t={}){let r=e.sourceCode.getText(),n=t=>r.slice(Math.min(t.range[0],...e.sourceCode.getCommentsBefore(t).map(e=>e.range[0])),t.range[1]),u=lM(r),a=`,${u}`,{maxLineLength:i=80,maxObjectSize:o=3}=t,s=e=>r.slice(e.range[1]).trimStart().startsWith("//");return{ObjectExpression(t){let d=t.properties.map(e=>n(e).trim());if(d.length>0){let n=e.sourceCode.getText(t),l=d.length>o||d.some(lV)||t.properties.some(s),c=lV(n),f=!n.includes("\n");l&&f&&e.report({fix:()=>({range:t.range,text:`{${u}${d.join(a)}${u}}`}),messageId:"preferMultiline",node:t}),!l&&c&&function(){var n;let u=e.sourceCode.getLocFromIndex(t.range[0]).column;return u+d.reduce((e,t)=>e+t.length,0)+2*(d.length-1)+4+("number"==typeof(n=t.range[1])?r.slice(n):r.slice(...n.range)).split(/\r\n|\n/u)[0].replace(/^((?: as const)?\S*).*/u,"$1").length}()<=i&&e.report({fix:()=>({range:t.range,text:`{${d.join(",")}}`}),messageId:"preferSingleLine",node:t})}}}}});function lV(e){return e.includes("\n")}function lq(e){return!(e<48)&&(e<58||!(e<65)&&(e<91||95===e||!(e<97)&&(e<123||lW(e)||lG(e,null!=t?t:t=lZ("53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 1o 8 17 n 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 3 1 3 2 a 0 b 1 3 9 f 0 3 2 1l 0 2 4 5 1 3 2 4 0 l b 4 0 c 2 1l 0 2 7 2 2 2 2 l 1 3 9 b 5 2 2 1l 0 2 6 3 1 3 2 8 2 b 1 3 9 j 0 1o 4 4 2 2 3 a 0 f 9 h 4 1k 0 2 6 2 2 2 3 8 1 c 1 3 9 i 2 1l 0 2 6 2 2 2 3 8 1 c 1 3 9 4 0 d 3 1k 1 2 6 2 2 2 3 a 0 b 1 3 9 i 2 1z 0 5 5 2 0 2 7 7 9 3 1 1q 0 3 6 d 7 2 9 2g 0 3 8 c 6 2 9 1r 1 7 9 c 0 2 0 2 0 5 1 1e j 2 1 6 a 2 z a 0 2t j 2 9 d 3 5 2 2 2 3 6 4 3 e b 2 e jk 2 a 8 pt 3 t 2 u 1 v 1 1t v a 0 3 9 y 2 2 a 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 f 1e 4 1c g c 9 i 8 d 2 v c 3 9 19 d 1d j 9 9 7 9 3b 2 2 k 5 0 7 0 3 2 5j 1r el 1 1e 1 k 0 3g c 5 0 4 b 2db 2 3y 0 2p v ff 5 2y 1 2p 0 n51 9 1y 0 5 9 x 1 29 1 7l 0 4 0 5 0 o 4 5 0 2c 1 1f h b 9 7 h e a t 7 q c 19 3 1c d g 9 c 0 b 9 1c d d 0 9 1 3 9 y 2 1f 0 2 2 3 1 6 1 2 0 16 4 6 1 6l 7 2 1 3 9 fmt 0 ki f h f 4 1 p 2 5d 9 12 0 12 0 ig 0 6b 0 46 4 86 9 120 2 2 1 6 3 15 2 5 0 4m 1 fy 3 9 9 7 9 w 4 8u 1 28 3 1z a 1e 3 3f 2 1i e w a 3 1 b 3 1a a 8 0 1a 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 3 0 4e b 6 9 7 3 1k 1 2 6 3 1 3 2 a 0 b 1 3 6 4 4 1w 8 2 0 3 0 2 3 2 4 2 0 f 1 2b h a 9 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 7 j 1m e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f 9j 9 1i 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 96 3 a 1 2 0 1d 6 4 4 e a 44m 0 7 e 8uh r 1t3 9 2f 9 13 4 1o 6 q 9 ev 9 d2 0 2 1i 8 3 2a 0 c 1 f58 1 382 9 ef 19 3 m f3 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 2t 0 4h 6 a 9 9x 0 1q d dv d 6t 1 2 9 k6 6 32 6 6 9 3o7 9 gvt3 6n")))))}function lW(t){return lG(t,null!=e?e:e=lZ("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 6 n 2 5 i 15 1n 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 3 0 3 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 w 1 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 h e i f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 7 1j t e 1 b 17 r z 16 2 b z 3 a 6 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 h c 2u 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 6c 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t h3g 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 1u 3 1 2 0 2 7 m f 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f d a 2 e 2 6 2 1 2 a 2 e 2 6 2 1 4 1f d 8m a l b 7 p 5 2 15 2 8 1y 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 1z 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 13 r a m 6z 15 7 1 h 2 1o s b 0 9 l 17 h 1b k s m d 1g 1m 1 3 0 e 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o k 1 1s 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 v 9 2 0 3 0 2 11 2 0 q 0 2 0 19 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 12 6 56 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 j 20 5k w w 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 94 i g 0 2 c 2 x 3h 0 28 pl 2v 32 i 5f 219 2o g tr i 5 q 32y 6 g6 5a2 t 1cz fs 8 u i 26 i t j 1b h 3 w k 6 i c1 18 5w 1r 3l 22 6 0 1v c 1t 1 2 0 t 4qf 9 yd 16 9 6w8 3 2 6 2 1 2 82 g 0 u 2 3 0 f 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1f9 u 7 5 7a 1p 43 18 b 6 h 0 8y t j 17 dh r 6d t 3 0 ds 6 2 3 2 1 2 e 2 5g 1o 1v 8 0 xh 3 2 q 2 1 2 0 3 0 2 9 2 3 2 0 2 0 7 0 5 0 2 0 2 0 2 2 2 1 2 0 3 0 2 0 2 0 2 0 2 0 2 1 2 0 3 3 2 6 2 3 2 3 2 0 2 9 2 g 6 2 2 4 2 g 3et wyn x 37d 7 65 3 4g1 f 5rk g h9 1wj f1 15v 3t6 6 38f"))}function lG(e,t){let r=0,n=t.length/2|0,u=0,a=0,i=0;for(;r<n;)if(a=t[2*(u=(r+n)/2|0)],i=t[2*u+1],e<a)n=u;else{if(!(e>i))return!0;r=u+1}return!1}function lZ(e){let t=0;return e.split(" ").map(e=>t+=0|parseInt(e,36))}class lH{constructor(e,t,r,n,u,a,i,o){this._raw2018=e,this._raw2019=t,this._raw2020=r,this._raw2021=n,this._raw2022=u,this._raw2023=a,this._raw2024=i,this._raw2025=o}get es2018(){var e;return null!==(e=this._set2018)&&void 0!==e?e:this._set2018=new Set(this._raw2018.split(" "))}get es2019(){var e;return null!==(e=this._set2019)&&void 0!==e?e:this._set2019=new Set(this._raw2019.split(" "))}get es2020(){var e;return null!==(e=this._set2020)&&void 0!==e?e:this._set2020=new Set(this._raw2020.split(" "))}get es2021(){var e;return null!==(e=this._set2021)&&void 0!==e?e:this._set2021=new Set(this._raw2021.split(" "))}get es2022(){var e;return null!==(e=this._set2022)&&void 0!==e?e:this._set2022=new Set(this._raw2022.split(" "))}get es2023(){var e;return null!==(e=this._set2023)&&void 0!==e?e:this._set2023=new Set(this._raw2023.split(" "))}get es2024(){var e;return null!==(e=this._set2024)&&void 0!==e?e:this._set2024=new Set(this._raw2024.split(" "))}get es2025(){var e;return null!==(e=this._set2025)&&void 0!==e?e:this._set2025=new Set(this._raw2025.split(" "))}}const lK=new Set(["General_Category","gc"]),lY=new Set(["Script","Script_Extensions","sc","scx"]),lJ=new lH("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct","","","","","","",""),lQ=new lH("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy","Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo","Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho","Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi","Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi","Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz","",""),lX=new lH("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space","Extended_Pictographic","","EBase EComp EMod EPres ExtPict","","","",""),l0=new lH("","","","","","","Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence","");function l1(e,t,r){return lK.has(t)?e>=2018&&lJ.es2018.has(r):!!lY.has(t)&&(e>=2018&&lQ.es2018.has(r)||e>=2019&&lQ.es2019.has(r)||e>=2020&&lQ.es2020.has(r)||e>=2021&&lQ.es2021.has(r)||e>=2022&&lQ.es2022.has(r)||e>=2023&&lQ.es2023.has(r))}function l2(e){return e>=65&&e<=90||e>=97&&e<=122}function l3(e){return e>=48&&e<=57}function l4(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function l5(e){return e>=97&&e<=102?e-97+10:e>=65&&e<=70?e-65+10:e-48}function l8(e){return e>=55296&&e<=56319}function l6(e){return e>=56320&&e<=57343}function l9(e,t){return(e-55296)*1024+(t-56320)+65536}class l7{constructor(){this.groupName=new Set}clear(){this.groupName.clear()}isEmpty(){return!this.groupName.size}hasInPattern(e){return this.groupName.has(e)}hasInScope(e){return this.hasInPattern(e)}addToScope(e){this.groupName.add(e)}enterDisjunction(){}enterAlternative(){}leaveDisjunction(){}}class ce{constructor(e,t){this.parent=e,this.base=null!=t?t:this}separatedFrom(e){var t,r;return!!(this.base===e.base&&this!==e||e.parent&&this.separatedFrom(e.parent))||null!==(r=null===(t=this.parent)||void 0===t?void 0:t.separatedFrom(e))&&void 0!==r&&r}child(){return new ce(this,null)}sibling(){return new ce(this.parent,this.base)}}class ct{constructor(){this.branchID=new ce(null,null),this.groupNames=new Map}clear(){this.branchID=new ce(null,null),this.groupNames.clear()}isEmpty(){return!this.groupNames.size}enterDisjunction(){this.branchID=this.branchID.child()}enterAlternative(e){0!==e&&(this.branchID=this.branchID.sibling())}leaveDisjunction(){this.branchID=this.branchID.parent}hasInPattern(e){return this.groupNames.has(e)}hasInScope(e){let t=this.groupNames.get(e);if(!t)return!1;for(let e of t)if(!e.separatedFrom(this.branchID))return!0;return!1}addToScope(e){let t=this.groupNames.get(e);if(t){t.push(this.branchID);return}this.groupNames.set(e,[this.branchID])}}const cr={at:(e,t,r)=>r<t?e.charCodeAt(r):-1,width:e=>1},cn={at:(e,t,r)=>r<t?e.codePointAt(r):-1,width:e=>e>65535?2:1};class cu{constructor(){this._impl=cr,this._s="",this._i=0,this._end=0,this._cp1=-1,this._w1=1,this._cp2=-1,this._w2=1,this._cp3=-1,this._w3=1,this._cp4=-1}get source(){return this._s}get index(){return this._i}get currentCodePoint(){return this._cp1}get nextCodePoint(){return this._cp2}get nextCodePoint2(){return this._cp3}get nextCodePoint3(){return this._cp4}reset(e,t,r,n){this._impl=n?cn:cr,this._s=e,this._end=r,this.rewind(t)}rewind(e){let t=this._impl;this._i=e,this._cp1=t.at(this._s,this._end,e),this._w1=t.width(this._cp1),this._cp2=t.at(this._s,this._end,e+this._w1),this._w2=t.width(this._cp2),this._cp3=t.at(this._s,this._end,e+this._w1+this._w2),this._w3=t.width(this._cp3),this._cp4=t.at(this._s,this._end,e+this._w1+this._w2+this._w3)}advance(){if(-1!==this._cp1){let e=this._impl;this._i+=this._w1,this._cp1=this._cp2,this._w1=this._w2,this._cp2=this._cp3,this._w2=e.width(this._cp2),this._cp3=this._cp4,this._w3=e.width(this._cp3),this._cp4=e.at(this._s,this._end,this._i+this._w1+this._w2+this._w3)}}eat(e){return this._cp1===e&&(this.advance(),!0)}eat2(e,t){return this._cp1===e&&this._cp2===t&&(this.advance(),this.advance(),!0)}eat3(e,t,r){return this._cp1===e&&this._cp2===t&&this._cp3===r&&(this.advance(),this.advance(),this.advance(),!0)}}class ca extends SyntaxError{constructor(e,t){super(e),this.index=t}}const ci=new Set([94,36,92,46,42,43,63,40,41,91,93,123,125,124]),co=new Set([38,33,35,36,37,42,43,44,46,58,59,60,61,62,63,64,94,96,126]),cs=new Set([40,41,91,93,123,125,47,45,92,124]),cd=new Set([38,45,33,35,37,44,58,59,60,61,62,64,96,126]);function cl(e){return l2(e)||95===e}class cc{constructor(e){this._reader=new cu,this._unicodeMode=!1,this._unicodeSetsMode=!1,this._nFlag=!1,this._lastIntValue=0,this._lastRange={min:0,max:Number.POSITIVE_INFINITY},this._lastStrValue="",this._lastAssertionIsQuantifiable=!1,this._numCapturingParens=0,this._backreferenceNames=new Set,this._srcCtx=null,this._options=null!=e?e:{},this._groupSpecifiers=this.ecmaVersion>=2025?new ct:new l7}validateLiteral(e,t=0,r=e.length){if(this._srcCtx={source:e,start:t,end:r,kind:"literal"},this._unicodeSetsMode=this._unicodeMode=this._nFlag=!1,this.reset(e,t,r),this.onLiteralEnter(t),this.eat(47)&&this.eatRegExpBody()&&this.eat(47)){let n=this.index,u=e.includes("u",n),a=e.includes("v",n);this.validateFlagsInternal(e,n,r),this.validatePatternInternal(e,t+1,n-1,{unicode:u,unicodeSets:a})}else if(t>=r)this.raise("Empty");else{let e=String.fromCodePoint(this.currentCodePoint);this.raise(`Unexpected character '${e}'`)}this.onLiteralLeave(t,r)}validateFlags(e,t=0,r=e.length){this._srcCtx={source:e,start:t,end:r,kind:"flags"},this.validateFlagsInternal(e,t,r)}validatePattern(e,t=0,r=e.length,n){this._srcCtx={source:e,start:t,end:r,kind:"pattern"},this.validatePatternInternal(e,t,r,n)}validatePatternInternal(e,t=0,r=e.length,n){let u=this._parseFlagsOptionToMode(n,r);this._unicodeMode=u.unicodeMode,this._nFlag=u.nFlag,this._unicodeSetsMode=u.unicodeSetsMode,this.reset(e,t,r),this.consumePattern(),this._nFlag||!(this.ecmaVersion>=2018)||this._groupSpecifiers.isEmpty()||(this._nFlag=!0,this.rewind(t),this.consumePattern())}validateFlagsInternal(e,t,r){let n=new Set,u=!1,a=!1,i=!1,o=!1,s=!1,d=!1,l=!1,c=!1;for(let f=t;f<r;++f){let r=e.charCodeAt(f);n.has(r)&&this.raise(`Duplicated flag '${e[f]}'`,{index:t}),n.add(r),103===r?u=!0:105===r?a=!0:109===r?i=!0:117===r&&this.ecmaVersion>=2015?s=!0:121===r&&this.ecmaVersion>=2015?o=!0:115===r&&this.ecmaVersion>=2018?d=!0:100===r&&this.ecmaVersion>=2022?l=!0:118===r&&this.ecmaVersion>=2024?c=!0:this.raise(`Invalid flag '${e[f]}'`,{index:t})}this.onRegExpFlags(t,r,{global:u,ignoreCase:a,multiline:i,unicode:s,sticky:o,dotAll:d,hasIndices:l,unicodeSets:c})}_parseFlagsOptionToMode(e,t){let r=!1,n=!1;return e&&this.ecmaVersion>=2015&&("object"==typeof e?(r=!!e.unicode,this.ecmaVersion>=2024&&(n=!!e.unicodeSets)):r=e),r&&n&&this.raise("Invalid regular expression flags",{index:t+1,unicode:r,unicodeSets:n}),{unicodeMode:r||n,nFlag:r&&this.ecmaVersion>=2018||n||!!(this._options.strict&&this.ecmaVersion>=2023),unicodeSetsMode:n}}get strict(){return!!this._options.strict||this._unicodeMode}get ecmaVersion(){var e;return null!==(e=this._options.ecmaVersion)&&void 0!==e?e:2025}onLiteralEnter(e){this._options.onLiteralEnter&&this._options.onLiteralEnter(e)}onLiteralLeave(e,t){this._options.onLiteralLeave&&this._options.onLiteralLeave(e,t)}onRegExpFlags(e,t,r){this._options.onRegExpFlags&&this._options.onRegExpFlags(e,t,r),this._options.onFlags&&this._options.onFlags(e,t,r.global,r.ignoreCase,r.multiline,r.unicode,r.sticky,r.dotAll,r.hasIndices)}onPatternEnter(e){this._options.onPatternEnter&&this._options.onPatternEnter(e)}onPatternLeave(e,t){this._options.onPatternLeave&&this._options.onPatternLeave(e,t)}onDisjunctionEnter(e){this._options.onDisjunctionEnter&&this._options.onDisjunctionEnter(e)}onDisjunctionLeave(e,t){this._options.onDisjunctionLeave&&this._options.onDisjunctionLeave(e,t)}onAlternativeEnter(e,t){this._options.onAlternativeEnter&&this._options.onAlternativeEnter(e,t)}onAlternativeLeave(e,t,r){this._options.onAlternativeLeave&&this._options.onAlternativeLeave(e,t,r)}onGroupEnter(e){this._options.onGroupEnter&&this._options.onGroupEnter(e)}onGroupLeave(e,t){this._options.onGroupLeave&&this._options.onGroupLeave(e,t)}onCapturingGroupEnter(e,t){this._options.onCapturingGroupEnter&&this._options.onCapturingGroupEnter(e,t)}onCapturingGroupLeave(e,t,r){this._options.onCapturingGroupLeave&&this._options.onCapturingGroupLeave(e,t,r)}onQuantifier(e,t,r,n,u){this._options.onQuantifier&&this._options.onQuantifier(e,t,r,n,u)}onLookaroundAssertionEnter(e,t,r){this._options.onLookaroundAssertionEnter&&this._options.onLookaroundAssertionEnter(e,t,r)}onLookaroundAssertionLeave(e,t,r,n){this._options.onLookaroundAssertionLeave&&this._options.onLookaroundAssertionLeave(e,t,r,n)}onEdgeAssertion(e,t,r){this._options.onEdgeAssertion&&this._options.onEdgeAssertion(e,t,r)}onWordBoundaryAssertion(e,t,r,n){this._options.onWordBoundaryAssertion&&this._options.onWordBoundaryAssertion(e,t,r,n)}onAnyCharacterSet(e,t,r){this._options.onAnyCharacterSet&&this._options.onAnyCharacterSet(e,t,r)}onEscapeCharacterSet(e,t,r,n){this._options.onEscapeCharacterSet&&this._options.onEscapeCharacterSet(e,t,r,n)}onUnicodePropertyCharacterSet(e,t,r,n,u,a,i){this._options.onUnicodePropertyCharacterSet&&this._options.onUnicodePropertyCharacterSet(e,t,r,n,u,a,i)}onCharacter(e,t,r){this._options.onCharacter&&this._options.onCharacter(e,t,r)}onBackreference(e,t,r){this._options.onBackreference&&this._options.onBackreference(e,t,r)}onCharacterClassEnter(e,t,r){this._options.onCharacterClassEnter&&this._options.onCharacterClassEnter(e,t,r)}onCharacterClassLeave(e,t,r){this._options.onCharacterClassLeave&&this._options.onCharacterClassLeave(e,t,r)}onCharacterClassRange(e,t,r,n){this._options.onCharacterClassRange&&this._options.onCharacterClassRange(e,t,r,n)}onClassIntersection(e,t){this._options.onClassIntersection&&this._options.onClassIntersection(e,t)}onClassSubtraction(e,t){this._options.onClassSubtraction&&this._options.onClassSubtraction(e,t)}onClassStringDisjunctionEnter(e){this._options.onClassStringDisjunctionEnter&&this._options.onClassStringDisjunctionEnter(e)}onClassStringDisjunctionLeave(e,t){this._options.onClassStringDisjunctionLeave&&this._options.onClassStringDisjunctionLeave(e,t)}onStringAlternativeEnter(e,t){this._options.onStringAlternativeEnter&&this._options.onStringAlternativeEnter(e,t)}onStringAlternativeLeave(e,t,r){this._options.onStringAlternativeLeave&&this._options.onStringAlternativeLeave(e,t,r)}get index(){return this._reader.index}get currentCodePoint(){return this._reader.currentCodePoint}get nextCodePoint(){return this._reader.nextCodePoint}get nextCodePoint2(){return this._reader.nextCodePoint2}get nextCodePoint3(){return this._reader.nextCodePoint3}reset(e,t,r){this._reader.reset(e,t,r,this._unicodeMode)}rewind(e){this._reader.rewind(e)}advance(){this._reader.advance()}eat(e){return this._reader.eat(e)}eat2(e,t){return this._reader.eat2(e,t)}eat3(e,t,r){return this._reader.eat3(e,t,r)}raise(e,t){var r,n,u;throw function(e,t,r,n){let u="";if("literal"===e.kind){let t=e.source.slice(e.start,e.end);t&&(u=`: ${t}`)}else if("pattern"===e.kind){let r=e.source.slice(e.start,e.end),n=`${t.unicode?"u":""}${t.unicodeSets?"v":""}`;u=`: /${r}/${n}`}return new ca(`Invalid regular expression${u}: ${n}`,r)}(this._srcCtx,{unicode:null!==(r=null==t?void 0:t.unicode)&&void 0!==r?r:this._unicodeMode&&!this._unicodeSetsMode,unicodeSets:null!==(n=null==t?void 0:t.unicodeSets)&&void 0!==n?n:this._unicodeSetsMode},null!==(u=null==t?void 0:t.index)&&void 0!==u?u:this.index,e)}eatRegExpBody(){let e=this.index,t=!1,r=!1;for(;;){var n;let u=this.currentCodePoint;if(-1===u||10===(n=u)||13===n||8232===n||8233===n){let e=t?"character class":"regular expression";this.raise(`Unterminated ${e}`)}if(r)r=!1;else if(92===u)r=!0;else if(91===u)t=!0;else if(93===u)t=!1;else if(47===u&&!t||42===u&&this.index===e)break;this.advance()}return this.index!==e}consumePattern(){let e=this.index;this._numCapturingParens=this.countCapturingParens(),this._groupSpecifiers.clear(),this._backreferenceNames.clear(),this.onPatternEnter(e),this.consumeDisjunction();let t=this.currentCodePoint;if(-1!==this.currentCodePoint){41===t&&this.raise("Unmatched ')'"),92===t&&this.raise("\\ at end of pattern"),(93===t||125===t)&&this.raise("Lone quantifier brackets");let e=String.fromCodePoint(t);this.raise(`Unexpected character '${e}'`)}for(let e of this._backreferenceNames)this._groupSpecifiers.hasInPattern(e)||this.raise("Invalid named capture referenced");this.onPatternLeave(e,this.index)}countCapturingParens(){let e=this.index,t=!1,r=!1,n=0,u=0;for(;-1!==(u=this.currentCodePoint);)r?r=!1:92===u?r=!0:91===u?t=!0:93===u?t=!1:40!==u||t||63===this.nextCodePoint&&(60!==this.nextCodePoint2||61===this.nextCodePoint3||33===this.nextCodePoint3)||(n+=1),this.advance();return this.rewind(e),n}consumeDisjunction(){let e=this.index,t=0;this._groupSpecifiers.enterDisjunction(),this.onDisjunctionEnter(e);do this.consumeAlternative(t++);while(this.eat(124));this.consumeQuantifier(!0)&&this.raise("Nothing to repeat"),this.eat(123)&&this.raise("Lone quantifier brackets"),this.onDisjunctionLeave(e,this.index),this._groupSpecifiers.leaveDisjunction()}consumeAlternative(e){let t=this.index;for(this._groupSpecifiers.enterAlternative(e),this.onAlternativeEnter(t,e);-1!==this.currentCodePoint&&this.consumeTerm(););this.onAlternativeLeave(t,this.index,e)}consumeTerm(){return this._unicodeMode||this.strict?this.consumeAssertion()||this.consumeAtom()&&this.consumeOptionalQuantifier():this.consumeAssertion()&&(!this._lastAssertionIsQuantifiable||this.consumeOptionalQuantifier())||this.consumeExtendedAtom()&&this.consumeOptionalQuantifier()}consumeOptionalQuantifier(){return this.consumeQuantifier(),!0}consumeAssertion(){let e=this.index;if(this._lastAssertionIsQuantifiable=!1,this.eat(94))return this.onEdgeAssertion(e,this.index,"start"),!0;if(this.eat(36))return this.onEdgeAssertion(e,this.index,"end"),!0;if(this.eat2(92,66))return this.onWordBoundaryAssertion(e,this.index,"word",!0),!0;if(this.eat2(92,98))return this.onWordBoundaryAssertion(e,this.index,"word",!1),!0;if(this.eat2(40,63)){let t=this.ecmaVersion>=2018&&this.eat(60),r=!1;if(this.eat(61)||(r=this.eat(33))){let n=t?"lookbehind":"lookahead";return this.onLookaroundAssertionEnter(e,n,r),this.consumeDisjunction(),this.eat(41)||this.raise("Unterminated group"),this._lastAssertionIsQuantifiable=!t&&!this.strict,this.onLookaroundAssertionLeave(e,this.index,n,r),!0}this.rewind(e)}return!1}consumeQuantifier(e=!1){let t=this.index,r=0,n=0,u=!1;if(this.eat(42))r=0,n=Number.POSITIVE_INFINITY;else if(this.eat(43))r=1,n=Number.POSITIVE_INFINITY;else if(this.eat(63))r=0,n=1;else{if(!this.eatBracedQuantifier(e))return!1;({min:r,max:n}=this._lastRange)}return u=!this.eat(63),e||this.onQuantifier(t,this.index,r,n,u),!0}eatBracedQuantifier(e){let t=this.index;if(this.eat(123)){if(this.eatDecimalDigits()){let t=this._lastIntValue,r=t;if(this.eat(44)&&(r=this.eatDecimalDigits()?this._lastIntValue:Number.POSITIVE_INFINITY),this.eat(125))return!e&&r<t&&this.raise("numbers out of order in {} quantifier"),this._lastRange={min:t,max:r},!0}!e&&(this._unicodeMode||this.strict)&&this.raise("Incomplete quantifier"),this.rewind(t)}return!1}consumeAtom(){return this.consumePatternCharacter()||this.consumeDot()||this.consumeReverseSolidusAtomEscape()||!!this.consumeCharacterClass()||this.consumeUncapturingGroup()||this.consumeCapturingGroup()}consumeDot(){return!!this.eat(46)&&(this.onAnyCharacterSet(this.index-1,this.index,"any"),!0)}consumeReverseSolidusAtomEscape(){let e=this.index;if(this.eat(92)){if(this.consumeAtomEscape())return!0;this.rewind(e)}return!1}consumeUncapturingGroup(){let e=this.index;return!!this.eat3(40,63,58)&&(this.onGroupEnter(e),this.consumeDisjunction(),this.eat(41)||this.raise("Unterminated group"),this.onGroupLeave(e,this.index),!0)}consumeCapturingGroup(){let e=this.index;if(this.eat(40)){let t=null;return this.ecmaVersion>=2018?this.consumeGroupSpecifier()&&(t=this._lastStrValue):63===this.currentCodePoint&&this.raise("Invalid group"),this.onCapturingGroupEnter(e,t),this.consumeDisjunction(),this.eat(41)||this.raise("Unterminated group"),this.onCapturingGroupLeave(e,this.index,t),!0}return!1}consumeExtendedAtom(){return this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeReverseSolidusFollowedByC()||!!this.consumeCharacterClass()||this.consumeUncapturingGroup()||this.consumeCapturingGroup()||this.consumeInvalidBracedQuantifier()||this.consumeExtendedPatternCharacter()}consumeReverseSolidusFollowedByC(){let e=this.index;return 92===this.currentCodePoint&&99===this.nextCodePoint&&(this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(e,this.index,92),!0)}consumeInvalidBracedQuantifier(){return this.eatBracedQuantifier(!0)&&this.raise("Nothing to repeat"),!1}consumePatternCharacter(){let e=this.index,t=this.currentCodePoint;return!(-1===t||ci.has(t))&&(this.advance(),this.onCharacter(e,this.index,t),!0)}consumeExtendedPatternCharacter(){let e=this.index,t=this.currentCodePoint;return -1!==t&&94!==t&&36!==t&&92!==t&&46!==t&&42!==t&&43!==t&&63!==t&&40!==t&&41!==t&&91!==t&&124!==t&&(this.advance(),this.onCharacter(e,this.index,t),!0)}consumeGroupSpecifier(){if(this.eat(63)){if(this.eatGroupName()){if(!this._groupSpecifiers.hasInScope(this._lastStrValue))return this._groupSpecifiers.addToScope(this._lastStrValue),!0;this.raise("Duplicate capture group name")}this.raise("Invalid group")}return!1}consumeAtomEscape(){return!!(this.consumeBackreference()||this.consumeCharacterClassEscape()||this.consumeCharacterEscape()||this._nFlag&&this.consumeKGroupName())||((this.strict||this._unicodeMode)&&this.raise("Invalid escape"),!1)}consumeBackreference(){let e=this.index;if(this.eatDecimalEscape()){let t=this._lastIntValue;if(t<=this._numCapturingParens)return this.onBackreference(e-1,this.index,t),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(e)}return!1}consumeCharacterClassEscape(){var e;let t=this.index;if(this.eat(100))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"digit",!1),{};if(this.eat(68))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"digit",!0),{};if(this.eat(115))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"space",!1),{};if(this.eat(83))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"space",!0),{};if(this.eat(119))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"word",!1),{};if(this.eat(87))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"word",!0),{};let r=!1;if(this._unicodeMode&&this.ecmaVersion>=2018&&(this.eat(112)||(r=this.eat(80)))){this._lastIntValue=-1;let n=null;if(this.eat(123)&&(n=this.eatUnicodePropertyValueExpression())&&this.eat(125))return r&&n.strings&&this.raise("Invalid property name"),this.onUnicodePropertyCharacterSet(t-1,this.index,"property",n.key,n.value,r,null!==(e=n.strings)&&void 0!==e&&e),{mayContainStrings:n.strings};this.raise("Invalid property name")}return null}consumeCharacterEscape(){let e=this.index;return!!(this.eatControlEscape()||this.eatCControlLetter()||this.eatZero()||this.eatHexEscapeSequence()||this.eatRegExpUnicodeEscapeSequence()||!this.strict&&!this._unicodeMode&&this.eatLegacyOctalEscapeSequence()||this.eatIdentityEscape())&&(this.onCharacter(e-1,this.index,this._lastIntValue),!0)}consumeKGroupName(){let e=this.index;if(this.eat(107)){if(this.eatGroupName()){let t=this._lastStrValue;return this._backreferenceNames.add(t),this.onBackreference(e-1,this.index,t),!0}this.raise("Invalid named reference")}return!1}consumeCharacterClass(){let e=this.index;if(this.eat(91)){let t=this.eat(94);this.onCharacterClassEnter(e,t,this._unicodeSetsMode);let r=this.consumeClassContents();return this.eat(93)||(-1===this.currentCodePoint&&this.raise("Unterminated character class"),this.raise("Invalid character in character class")),t&&r.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(e,this.index,t),r}return null}consumeClassContents(){if(this._unicodeSetsMode)return 93===this.currentCodePoint?{}:this.consumeClassSetExpression();let e=this.strict||this._unicodeMode;for(;;){let t=this.index;if(!this.consumeClassAtom())break;let r=this._lastIntValue;if(!this.eat(45))continue;if(this.onCharacter(this.index-1,this.index,45),!this.consumeClassAtom())break;let n=this._lastIntValue;if(-1===r||-1===n){e&&this.raise("Invalid character class");continue}r>n&&this.raise("Range out of order in character class"),this.onCharacterClassRange(t,this.index,r,n)}return{}}consumeClassAtom(){let e=this.index,t=this.currentCodePoint;if(-1!==t&&92!==t&&93!==t)return this.advance(),this._lastIntValue=t,this.onCharacter(e,this.index,this._lastIntValue),!0;if(this.eat(92)){if(this.consumeClassEscape())return!0;if(!this.strict&&99===this.currentCodePoint)return this._lastIntValue=92,this.onCharacter(e,this.index,this._lastIntValue),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(e)}return!1}consumeClassEscape(){let e=this.index;if(this.eat(98))return this._lastIntValue=8,this.onCharacter(e-1,this.index,this._lastIntValue),!0;if(this._unicodeMode&&this.eat(45))return this._lastIntValue=45,this.onCharacter(e-1,this.index,this._lastIntValue),!0;let t=0;return!this.strict&&!this._unicodeMode&&99===this.currentCodePoint&&(l3(t=this.nextCodePoint)||95===t)?(this.advance(),this.advance(),this._lastIntValue=t%32,this.onCharacter(e-1,this.index,this._lastIntValue),!0):!!this.consumeCharacterClassEscape()||this.consumeCharacterEscape()}consumeClassSetExpression(){let e=this.index,t=!1,r=null;if(this.consumeClassSetCharacter()){if(this.consumeClassSetRangeFromOperator(e))return this.consumeClassUnionRight({}),{};t=!1}else if(r=this.consumeClassSetOperand())t=r.mayContainStrings;else{let e=this.currentCodePoint;92===e&&(this.advance(),this.raise("Invalid escape")),e===this.nextCodePoint&&co.has(e)&&this.raise("Invalid set operation in character class"),this.raise("Invalid character in character class")}if(this.eat2(38,38)){for(;38!==this.currentCodePoint&&(r=this.consumeClassSetOperand());)if(this.onClassIntersection(e,this.index),r.mayContainStrings||(t=!1),!this.eat2(38,38))return{mayContainStrings:t};this.raise("Invalid character in character class")}if(this.eat2(45,45)){for(;this.consumeClassSetOperand();)if(this.onClassSubtraction(e,this.index),!this.eat2(45,45))return{mayContainStrings:t};this.raise("Invalid character in character class")}return this.consumeClassUnionRight({mayContainStrings:t})}consumeClassUnionRight(e){let t=e.mayContainStrings;for(;;){let e=this.index;if(this.consumeClassSetCharacter()){this.consumeClassSetRangeFromOperator(e);continue}let r=this.consumeClassSetOperand();if(r){r.mayContainStrings&&(t=!0);continue}break}return{mayContainStrings:t}}consumeClassSetRangeFromOperator(e){let t=this.index,r=this._lastIntValue;if(this.eat(45)){if(this.consumeClassSetCharacter()){let t=this._lastIntValue;return(-1===r||-1===t)&&this.raise("Invalid character class"),r>t&&this.raise("Range out of order in character class"),this.onCharacterClassRange(e,this.index,r,t),!0}this.rewind(t)}return!1}consumeClassSetOperand(){let e=null;return(e=this.consumeNestedClass())||(e=this.consumeClassStringDisjunction())?e:this.consumeClassSetCharacter()?{}:null}consumeNestedClass(){let e=this.index;if(this.eat(91)){let t=this.eat(94);this.onCharacterClassEnter(e,t,!0);let r=this.consumeClassContents();return this.eat(93)||this.raise("Unterminated character class"),t&&r.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(e,this.index,t),r}if(this.eat(92)){let t=this.consumeCharacterClassEscape();if(t)return t;this.rewind(e)}return null}consumeClassStringDisjunction(){let e=this.index;if(this.eat3(92,113,123)){this.onClassStringDisjunctionEnter(e);let t=0,r=!1;do this.consumeClassString(t++).mayContainStrings&&(r=!0);while(this.eat(124));if(this.eat(125))return this.onClassStringDisjunctionLeave(e,this.index),{mayContainStrings:r};this.raise("Unterminated class string disjunction")}return null}consumeClassString(e){let t=this.index,r=0;for(this.onStringAlternativeEnter(t,e);-1!==this.currentCodePoint&&this.consumeClassSetCharacter();)r++;return this.onStringAlternativeLeave(t,this.index,e),{mayContainStrings:1!==r}}consumeClassSetCharacter(){var e;let t=this.index,r=this.currentCodePoint;if((r!==this.nextCodePoint||!co.has(r))&&-1!==r&&!cs.has(r))return this._lastIntValue=r,this.advance(),this.onCharacter(t,this.index,this._lastIntValue),!0;if(this.eat(92)){if(this.consumeCharacterEscape())return!0;if(e=this.currentCodePoint,cd.has(e))return this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(t,this.index,this._lastIntValue),!0;if(this.eat(98))return this._lastIntValue=8,this.onCharacter(t,this.index,this._lastIntValue),!0;this.rewind(t)}return!1}eatGroupName(){if(this.eat(60)){if(this.eatRegExpIdentifierName()&&this.eat(62))return!0;this.raise("Invalid capture group name")}return!1}eatRegExpIdentifierName(){if(this.eatRegExpIdentifierStart()){for(this._lastStrValue=String.fromCodePoint(this._lastIntValue);this.eatRegExpIdentifierPart();)this._lastStrValue+=String.fromCodePoint(this._lastIntValue);return!0}return!1}eatRegExpIdentifierStart(){var e,t;let r=this.index,n=!this._unicodeMode&&this.ecmaVersion>=2020,u=this.currentCodePoint;return(this.advance(),92===u&&this.eatRegExpUnicodeEscapeSequence(n)?u=this._lastIntValue:n&&l8(u)&&l6(this.currentCodePoint)&&(u=l9(u,this.currentCodePoint),this.advance()),!((t=e=u)<65)&&(t<91||!(t<97)&&(t<123||lW(t)))||36===e||95===e)?(this._lastIntValue=u,!0):(this.index!==r&&this.rewind(r),!1)}eatRegExpIdentifierPart(){var e;let t=this.index,r=!this._unicodeMode&&this.ecmaVersion>=2020,n=this.currentCodePoint;return(this.advance(),92===n&&this.eatRegExpUnicodeEscapeSequence(r)?n=this._lastIntValue:r&&l8(n)&&l6(this.currentCodePoint)&&(n=l9(n,this.currentCodePoint),this.advance()),lq(e=n)||36===e||8204===e||8205===e)?(this._lastIntValue=n,!0):(this.index!==t&&this.rewind(t),!1)}eatCControlLetter(){let e=this.index;if(this.eat(99)){if(this.eatControlLetter())return!0;this.rewind(e)}return!1}eatZero(){return!(48!==this.currentCodePoint||l3(this.nextCodePoint))&&(this._lastIntValue=0,this.advance(),!0)}eatControlEscape(){return this.eat(102)?(this._lastIntValue=12,!0):this.eat(110)?(this._lastIntValue=10,!0):this.eat(114)?(this._lastIntValue=13,!0):this.eat(116)?(this._lastIntValue=9,!0):!!this.eat(118)&&(this._lastIntValue=11,!0)}eatControlLetter(){let e=this.currentCodePoint;return!!l2(e)&&(this.advance(),this._lastIntValue=e%32,!0)}eatRegExpUnicodeEscapeSequence(e=!1){let t=this.index,r=e||this._unicodeMode;if(this.eat(117)){if(r&&this.eatRegExpUnicodeSurrogatePairEscape()||this.eatFixedHexDigits(4)||r&&this.eatRegExpUnicodeCodePointEscape())return!0;(this.strict||r)&&this.raise("Invalid unicode escape"),this.rewind(t)}return!1}eatRegExpUnicodeSurrogatePairEscape(){let e=this.index;if(this.eatFixedHexDigits(4)){let t=this._lastIntValue;if(l8(t)&&this.eat(92)&&this.eat(117)&&this.eatFixedHexDigits(4)){let e=this._lastIntValue;if(l6(e))return this._lastIntValue=l9(t,e),!0}this.rewind(e)}return!1}eatRegExpUnicodeCodePointEscape(){var e;let t=this.index;return!!(this.eat(123)&&this.eatHexDigits()&&this.eat(125))&&(e=this._lastIntValue)>=0&&e<=1114111||(this.rewind(t),!1)}eatIdentityEscape(){let e=this.currentCodePoint;return!!this.isValidIdentityEscape(e)&&(this._lastIntValue=e,this.advance(),!0)}isValidIdentityEscape(e){return -1!==e&&(this._unicodeMode?ci.has(e)||47===e:this.strict?!lq(e):this._nFlag?!(99===e||107===e):99!==e)}eatDecimalEscape(){this._lastIntValue=0;let e=this.currentCodePoint;if(e>=49&&e<=57){do this._lastIntValue=10*this._lastIntValue+(e-48),this.advance();while((e=this.currentCodePoint)>=48&&e<=57);return!0}return!1}eatUnicodePropertyValueExpression(){let e=this.index;if(this.eatUnicodePropertyName()&&this.eat(61)){let e=this._lastStrValue;if(this.eatUnicodePropertyValue()){let t=this._lastStrValue;if(l1(this.ecmaVersion,e,t))return{key:e,value:t||null};this.raise("Invalid property name")}}if(this.rewind(e),this.eatLoneUnicodePropertyNameOrValue()){var t;let e=this._lastStrValue;if(l1(this.ecmaVersion,"General_Category",e))return{key:"General_Category",value:e||null};if((t=this.ecmaVersion)>=2018&&lX.es2018.has(e)||t>=2019&&lX.es2019.has(e)||t>=2021&&lX.es2021.has(e))return{key:e,value:null};if(this._unicodeSetsMode&&this.ecmaVersion>=2024&&l0.es2024.has(e))return{key:e,value:null,strings:!0};this.raise("Invalid property name")}return null}eatUnicodePropertyName(){for(this._lastStrValue="";cl(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return""!==this._lastStrValue}eatUnicodePropertyValue(){var e;for(this._lastStrValue="";cl(e=this.currentCodePoint)||l3(e);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return""!==this._lastStrValue}eatLoneUnicodePropertyNameOrValue(){return this.eatUnicodePropertyValue()}eatHexEscapeSequence(){let e=this.index;if(this.eat(120)){if(this.eatFixedHexDigits(2))return!0;(this._unicodeMode||this.strict)&&this.raise("Invalid escape"),this.rewind(e)}return!1}eatDecimalDigits(){let e=this.index;for(this._lastIntValue=0;l3(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+l5(this.currentCodePoint),this.advance();return this.index!==e}eatHexDigits(){let e=this.index;for(this._lastIntValue=0;l4(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+l5(this.currentCodePoint),this.advance();return this.index!==e}eatLegacyOctalEscapeSequence(){if(this.eatOctalDigit()){let e=this._lastIntValue;if(this.eatOctalDigit()){let t=this._lastIntValue;e<=3&&this.eatOctalDigit()?this._lastIntValue=64*e+8*t+this._lastIntValue:this._lastIntValue=8*e+t}else this._lastIntValue=e;return!0}return!1}eatOctalDigit(){let e=this.currentCodePoint;return e>=48&&e<=55?(this.advance(),this._lastIntValue=e-48,!0):(this._lastIntValue=0,!1)}eatFixedHexDigits(e){let t=this.index;this._lastIntValue=0;for(let r=0;r<e;++r){let e=this.currentCodePoint;if(!l4(e))return this.rewind(t),!1;this._lastIntValue=16*this._lastIntValue+l5(e),this.advance()}return!0}}const cf={},cp={},ch={};function cm(e){return"Character"===e.type||"CharacterSet"===e.type||"CharacterClass"===e.type||"ExpressionCharacterClass"===e.type||"ClassStringDisjunction"===e.type}class cg{constructor(e){var t;this._node=cf,this._expressionBufferMap=new Map,this._flags=cp,this._backreferences=[],this._capturingGroups=[],this.source="",this.strict=!!(null==e?void 0:e.strict),this.ecmaVersion=null!==(t=null==e?void 0:e.ecmaVersion)&&void 0!==t?t:2025}get pattern(){if("Pattern"!==this._node.type)throw Error("UnknownError");return this._node}get flags(){if("Flags"!==this._flags.type)throw Error("UnknownError");return this._flags}onRegExpFlags(e,t,{global:r,ignoreCase:n,multiline:u,unicode:a,sticky:i,dotAll:o,hasIndices:s,unicodeSets:d}){this._flags={type:"Flags",parent:null,start:e,end:t,raw:this.source.slice(e,t),global:r,ignoreCase:n,multiline:u,unicode:a,sticky:i,dotAll:o,hasIndices:s,unicodeSets:d}}onPatternEnter(e){this._node={type:"Pattern",parent:null,start:e,end:e,raw:"",alternatives:[]},this._backreferences.length=0,this._capturingGroups.length=0}onPatternLeave(e,t){for(let r of(this._node.end=t,this._node.raw=this.source.slice(e,t),this._backreferences)){let e=r.ref,t="number"==typeof e?[this._capturingGroups[e-1]]:this._capturingGroups.filter(t=>t.name===e);if(1===t.length){let e=t[0];r.ambiguous=!1,r.resolved=e}else r.ambiguous=!0,r.resolved=t;for(let e of t)e.references.push(r)}}onAlternativeEnter(e){let t=this._node;if("Assertion"!==t.type&&"CapturingGroup"!==t.type&&"Group"!==t.type&&"Pattern"!==t.type)throw Error("UnknownError");this._node={type:"Alternative",parent:t,start:e,end:e,raw:"",elements:[]},t.alternatives.push(this._node)}onAlternativeLeave(e,t){let r=this._node;if("Alternative"!==r.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onGroupEnter(e){let t=this._node;if("Alternative"!==t.type)throw Error("UnknownError");this._node={type:"Group",parent:t,start:e,end:e,raw:"",alternatives:[]},t.elements.push(this._node)}onGroupLeave(e,t){let r=this._node;if("Group"!==r.type||"Alternative"!==r.parent.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onCapturingGroupEnter(e,t){let r=this._node;if("Alternative"!==r.type)throw Error("UnknownError");this._node={type:"CapturingGroup",parent:r,start:e,end:e,raw:"",name:t,alternatives:[],references:[]},r.elements.push(this._node),this._capturingGroups.push(this._node)}onCapturingGroupLeave(e,t){let r=this._node;if("CapturingGroup"!==r.type||"Alternative"!==r.parent.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onQuantifier(e,t,r,n,u){let a=this._node;if("Alternative"!==a.type)throw Error("UnknownError");let i=a.elements.pop();if(null==i||"Quantifier"===i.type||"Assertion"===i.type&&"lookahead"!==i.kind)throw Error("UnknownError");let o={type:"Quantifier",parent:a,start:i.start,end:t,raw:this.source.slice(i.start,t),min:r,max:n,greedy:u,element:i};a.elements.push(o),i.parent=o}onLookaroundAssertionEnter(e,t,r){let n=this._node;if("Alternative"!==n.type)throw Error("UnknownError");let u=this._node={type:"Assertion",parent:n,start:e,end:e,raw:"",kind:t,negate:r,alternatives:[]};n.elements.push(u)}onLookaroundAssertionLeave(e,t){let r=this._node;if("Assertion"!==r.type||"Alternative"!==r.parent.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onEdgeAssertion(e,t,r){let n=this._node;if("Alternative"!==n.type)throw Error("UnknownError");n.elements.push({type:"Assertion",parent:n,start:e,end:t,raw:this.source.slice(e,t),kind:r})}onWordBoundaryAssertion(e,t,r,n){let u=this._node;if("Alternative"!==u.type)throw Error("UnknownError");u.elements.push({type:"Assertion",parent:u,start:e,end:t,raw:this.source.slice(e,t),kind:r,negate:n})}onAnyCharacterSet(e,t,r){let n=this._node;if("Alternative"!==n.type)throw Error("UnknownError");n.elements.push({type:"CharacterSet",parent:n,start:e,end:t,raw:this.source.slice(e,t),kind:r})}onEscapeCharacterSet(e,t,r,n){let u=this._node;if("Alternative"!==u.type&&"CharacterClass"!==u.type)throw Error("UnknownError");u.elements.push({type:"CharacterSet",parent:u,start:e,end:t,raw:this.source.slice(e,t),kind:r,negate:n})}onUnicodePropertyCharacterSet(e,t,r,n,u,a,i){let o=this._node;if("Alternative"!==o.type&&"CharacterClass"!==o.type)throw Error("UnknownError");let s={type:"CharacterSet",parent:null,start:e,end:t,raw:this.source.slice(e,t),kind:r,strings:null,key:n};if(i){if("CharacterClass"===o.type&&!o.unicodeSets||a||null!==u)throw Error("UnknownError");o.elements.push(Object.assign(Object.assign({},s),{parent:o,strings:i,value:u,negate:a}))}else o.elements.push(Object.assign(Object.assign({},s),{parent:o,strings:i,value:u,negate:a}))}onCharacter(e,t,r){let n=this._node;if("Alternative"!==n.type&&"CharacterClass"!==n.type&&"StringAlternative"!==n.type)throw Error("UnknownError");n.elements.push({type:"Character",parent:n,start:e,end:t,raw:this.source.slice(e,t),value:r})}onBackreference(e,t,r){let n=this._node;if("Alternative"!==n.type)throw Error("UnknownError");let u={type:"Backreference",parent:n,start:e,end:t,raw:this.source.slice(e,t),ref:r,ambiguous:!1,resolved:ch};n.elements.push(u),this._backreferences.push(u)}onCharacterClassEnter(e,t,r){let n=this._node,u={type:"CharacterClass",parent:n,start:e,end:e,raw:"",unicodeSets:r,negate:t,elements:[]};if("Alternative"===n.type){let e=Object.assign(Object.assign({},u),{parent:n});this._node=e,n.elements.push(e)}else if("CharacterClass"===n.type&&n.unicodeSets&&r){let e=Object.assign(Object.assign({},u),{parent:n,unicodeSets:r});this._node=e,n.elements.push(e)}else throw Error("UnknownError")}onCharacterClassLeave(e,t){let r=this._node;if("CharacterClass"!==r.type||"Alternative"!==r.parent.type&&"CharacterClass"!==r.parent.type)throw Error("UnknownError");let n=r.parent;r.end=t,r.raw=this.source.slice(e,t),this._node=n;let u=this._expressionBufferMap.get(r);if(!u)return;if(r.elements.length>0)throw Error("UnknownError");this._expressionBufferMap.delete(r);let a={type:"ExpressionCharacterClass",parent:n,start:r.start,end:r.end,raw:r.raw,negate:r.negate,expression:u};if(u.parent=a,r!==n.elements.pop())throw Error("UnknownError");n.elements.push(a)}onCharacterClassRange(e,t){let r=this._node;if("CharacterClass"!==r.type)throw Error("UnknownError");let n=r.elements,u=n.pop();if(!u||"Character"!==u.type)throw Error("UnknownError");if(!r.unicodeSets){let e=n.pop();if(!e||"Character"!==e.type||45!==e.value)throw Error("UnknownError")}let a=n.pop();if(!a||"Character"!==a.type)throw Error("UnknownError");let i={type:"CharacterClassRange",parent:r,start:e,end:t,raw:this.source.slice(e,t),min:a,max:u};a.parent=i,u.parent=i,n.push(i)}onClassIntersection(e,t){var r;let n=this._node;if("CharacterClass"!==n.type||!n.unicodeSets)throw Error("UnknownError");let u=n.elements.pop(),a=null!==(r=this._expressionBufferMap.get(n))&&void 0!==r?r:n.elements.pop();if(!a||!u||"ClassSubtraction"===a.type||"ClassIntersection"!==a.type&&!cm(a)||!cm(u))throw Error("UnknownError");let i={type:"ClassIntersection",parent:n,start:e,end:t,raw:this.source.slice(e,t),left:a,right:u};a.parent=i,u.parent=i,this._expressionBufferMap.set(n,i)}onClassSubtraction(e,t){var r;let n=this._node;if("CharacterClass"!==n.type||!n.unicodeSets)throw Error("UnknownError");let u=n.elements.pop(),a=null!==(r=this._expressionBufferMap.get(n))&&void 0!==r?r:n.elements.pop();if(!a||!u||"ClassIntersection"===a.type||"ClassSubtraction"!==a.type&&!cm(a)||!cm(u))throw Error("UnknownError");let i={type:"ClassSubtraction",parent:n,start:e,end:t,raw:this.source.slice(e,t),left:a,right:u};a.parent=i,u.parent=i,this._expressionBufferMap.set(n,i)}onClassStringDisjunctionEnter(e){let t=this._node;if("CharacterClass"!==t.type||!t.unicodeSets)throw Error("UnknownError");this._node={type:"ClassStringDisjunction",parent:t,start:e,end:e,raw:"",alternatives:[]},t.elements.push(this._node)}onClassStringDisjunctionLeave(e,t){let r=this._node;if("ClassStringDisjunction"!==r.type||"CharacterClass"!==r.parent.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onStringAlternativeEnter(e){let t=this._node;if("ClassStringDisjunction"!==t.type)throw Error("UnknownError");this._node={type:"StringAlternative",parent:t,start:e,end:e,raw:"",elements:[]},t.alternatives.push(this._node)}onStringAlternativeLeave(e,t){let r=this._node;if("StringAlternative"!==r.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}}const cy=/^[!=]=/,cb=new class{constructor(e){this._state=new cg(e),this._validator=new cc(this._state)}parseLiteral(e,t=0,r=e.length){this._state.source=e,this._validator.validateLiteral(e,t,r);let n=this._state.pattern,u=this._state.flags,a={type:"RegExpLiteral",parent:null,start:t,end:r,raw:e,pattern:n,flags:u};return n.parent=a,u.parent=a,a}parseFlags(e,t=0,r=e.length){return this._state.source=e,this._validator.validateFlags(e,t,r),this._state.flags}parsePattern(e,t=0,r=e.length,n){return this._state.source=e,this._validator.validatePattern(e,t,r,n),this._state.pattern}};function cv(e){return ic.ESLintUtils.nullThrows(e.parent?.type===ic.AST_NODE_TYPES.ChainExpression?e.parent.parent:e.parent,ic.ESLintUtils.NullThrowsReasons.MissingParent)}function cx(e){return e.type===ic.AST_NODE_TYPES.BinaryExpression&&cy.test(e.operator)}var cE={rules:{"array/no-unneeded-flat-map":iT,"browser/prefer-location-assign":ik,"jsx/no-template-literal":iI,"jsx/no-unneeded-nested":iB,"string/no-locale-case":iO,"string/no-simple-template-literal":iN,"type/no-instanceof-wrapper":iM,"unicode/no-bidi":iG,"unicode/no-invisible":iH,"ban-eslint-disable":lO,"no-redundant-variable":iK,"no-single-return":iJ,"prefer-early-return":iX,"prefer-fetch":i0,"prefer-timer-id":i3,"import-dedupe":lL,"no-return-await":lN,"no-expression-empty-lines":l$,"object-format":lz,"string/prefer-string-starts-ends-with":il.createRule({name:"prefer-string-starts-ends-with",meta:{type:"suggestion",docs:{description:"Enforce using `String#startsWith` and `String#endsWith` over other equivalent methods of checking substrings"},messages:{preferStartsWith:"Use 'String#startsWith' method instead.",preferEndsWith:"Use the 'String#endsWith' method instead."},schema:[],fixable:"code"},create(e){il.ensureParserWithTypeInformation(e.sourceCode.parserServices);let t=e.sourceCode.parserServices,r=t.program.getTypeChecker(),n=e.sourceCode.scopeManager?.scopes[0];function u(e){let n=t.getTypeAtLocation(e);return"string"===ip.getTypeName(r,n)}function a(e,t){let r=ic.ASTUtils.getStaticValue(e,n);return null!=r&&r.value===t}function i(e){let t=ic.ASTUtils.getStaticValue(e,n);return null!=t&&"string"==typeof t.value&&t.value[0]===t.value}function o(t,r){if(t.type===ic.AST_NODE_TYPES.MemberExpression)return"length"===ic.ASTUtils.getPropertyName(t,n)&&function(t,r){let n=e.sourceCode.getTokens(t),u=e.sourceCode.getTokens(r);if(n.length!==u.length)return!1;for(let e=0,t=n.length;e<t;++e){let t=n[e],r=u[e];if(t.type!==r.type||t.value!==r.value)return!1}return!0}(t.object,r);let u=ic.ASTUtils.getStaticValue(t,n),a=ic.ASTUtils.getStaticValue(r,n);return null!=u&&null!=a&&"number"==typeof u.value&&"string"==typeof a.value&&u.value===a.value.length}function s(e,t,r){return e.type===ic.AST_NODE_TYPES.UnaryExpression&&"-"===e.operator&&o(e.argument,t)||e.type===ic.AST_NODE_TYPES.BinaryExpression&&"-"===e.operator&&o(e.left,r)&&o(e.right,t)}function d(t){return[e.sourceCode.getTokenAfter(t.object,ic.ASTUtils.isNotClosingParenToken).range[0],t.range[1]]}function l(e){let t=ic.ASTUtils.getStaticValue(e,n);if(null==t||!(t.value instanceof RegExp))return null;let{source:r,flags:u}=t.value,a=r.startsWith("^"),i=r.endsWith("$");if(a===i||u.includes("i")||u.includes("m"))return null;let o=function(e,t){let r=cb.parsePattern(e,void 0,void 0,{unicode:t});if(1!==r.alternatives.length)return null;let n=r.alternatives[0].elements,u=n[0];return("Assertion"===u.type&&"start"===u.kind?n.shift():n.pop(),n.every(e=>"Character"===e.type))?String.fromCodePoint(...n.map(e=>e.value)):null}(r,u.includes("u"));return null==o?null:{isEndsWith:i,isStartsWith:a,text:o}}function*c(e,t,r,n,u){let a=d(function e(t){let r;if(t.type===ic.AST_NODE_TYPES.ChainExpression)return e(t.expression);if((r=t.type===ic.AST_NODE_TYPES.CallExpression?t.callee:t).type!==ic.AST_NODE_TYPES.MemberExpression)throw Error(`Expected a MemberExpression, got ${r.type}`);return r}(t.left));n&&(yield e.insertTextBefore(t,"!")),yield e.replaceTextRange([a[0],t.right.range[0]],`${u?"?.":"."}${r}sWith(`),yield e.replaceTextRange([t.right.range[1],t.range[1]],")")}function*f(e,t,r,n,u,a,i){a&&(yield e.insertTextBefore(t,"!")),yield e.replaceTextRange(d(n),`${i?"?.":"."}${u}sWith`),yield e.removeRange([r.range[1],t.range[1]])}return{'BinaryExpression > MemberExpression.left[computed=true], BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="charAt"][computed=false], BinaryExpression > ChainExpression.left > MemberExpression[computed=true], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="charAt"][computed=false]'(t){var r,s;let d=cv(t),l=d.type===ic.AST_NODE_TYPES.CallExpression,f=null;if(d.type===ic.AST_NODE_TYPES.CallExpression?(1===d.arguments.length&&(f=d.arguments[0]),d=cv(d)):f=t.property,null==f||!cx(d)||!u(t.object))return;let p=(r=f,s=t.object,r.type===ic.AST_NODE_TYPES.BinaryExpression&&"-"===r.operator&&o(r.left,s)&&a(r.right,1)),h=!p&&a(f,0);if(!h&&!p)return;let m=d;h&&!l&&function(e){if(!i(e))return!1;let t=ic.ASTUtils.getStaticValue(e,n);return null!=t&&"string"==typeof t.value&&t.value[0]===t.value&&function(e){let t=e.codePointAt(0);return null!=t&&t>=0&&t<=127}(t.value)}(m.right)||e.report({node:d,messageId:h?"preferStartsWith":"preferEndsWith",fix:e=>i(m.right)?c(e,m,h?"start":"end",m.operator.startsWith("!"),t.optional):null})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="indexOf"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="indexOf"][computed=false]'(t){let r=cv(t),n=cv(r);1===r.arguments.length&&cx(n)&&a(n.right,0)&&u(t.object)&&e.report({node:n,messageId:"preferStartsWith",fix:e=>f(e,n,r,t,"start",n.operator.startsWith("!"),t.optional)})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="lastIndexOf"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="lastIndexOf"][computed=false]'(t){let r=cv(t),n=cv(r);1===r.arguments.length&&cx(n)&&n.right.type===ic.AST_NODE_TYPES.BinaryExpression&&"-"===n.right.operator&&o(n.right.left,t.object)&&o(n.right.right,r.arguments[0])&&u(t.object)&&e.report({node:n,messageId:"preferEndsWith",fix:e=>f(e,n,r,t,"end",n.operator.startsWith("!"),t.optional)})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="match"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="match"][computed=false]'(t){let r=cv(t),a=cv(r);if(!cx(a)||!function(e){let t=ic.ASTUtils.getStaticValue(e,n);return null!=t&&null==t.value}(a.right)||!u(t.object))return;let i=1===r.arguments.length?l(r.arguments[0]):null;if(null==i)return;let{isStartsWith:o,text:s}=i;e.report({node:r,messageId:o?"preferStartsWith":"preferEndsWith",*fix(e){a.operator.startsWith("!")||(yield e.insertTextBefore(a,"!")),yield e.replaceTextRange(d(t),`${t.optional?"?.":"."}${o?"start":"end"}sWith`),yield e.replaceText(r.arguments[0],JSON.stringify(s)),yield e.removeRange([r.range[1],a.range[1]])}})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="slice"][computed=false], BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="substring"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="slice"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="substring"][computed=false]'(t){let r=cv(t),n=cv(r);if(!cx(n)||!u(t.object))return;let i=!1,d=!1;if(1===r.arguments.length?s(r.arguments[0],n.right,t.object)&&(i=!0):2===r.arguments.length&&(a(r.arguments[0],0)&&o(r.arguments[1],n.right)?d=!0:(o(r.arguments[1],t.object)||a(r.arguments[1],0))&&s(r.arguments[0],n.right,t.object)&&(i=!0)),!d&&!i)return;let l="slice"===t.property.name;e.report({node:n,messageId:d?"preferStartsWith":"preferEndsWith",fix(e){if(2===n.operator.length&&(n.right.type!==ic.AST_NODE_TYPES.Literal||"string"!=typeof n.right.value))return null;if(d){if(!o(r.arguments[1],n.right))return null}else{let e=r.arguments[0];if(!(e.type===ic.AST_NODE_TYPES.BinaryExpression&&"-"===e.operator&&o(e.left,t.object)&&o(e.right,n.right)||l&&e.type===ic.AST_NODE_TYPES.UnaryExpression&&"-"===e.operator&&o(e.argument,n.right)))return null}return c(e,n,d?"start":"end",n.operator.startsWith("!"),t.optional)}})},'CallExpression > MemberExpression.callee[property.name="test"][computed=false]':function(t){let r=cv(t),n=1===r.arguments.length?l(t.object):null;if(null==n)return;let{isStartsWith:u,text:a}=n,i=u?"startsWith":"endsWith";e.report({node:r,messageId:u?"preferStartsWith":"preferEndsWith",*fix(e){let n=r.arguments[0],u=n.type!==ic.AST_NODE_TYPES.Literal&&n.type!==ic.AST_NODE_TYPES.TemplateLiteral&&n.type!==ic.AST_NODE_TYPES.Identifier&&n.type!==ic.AST_NODE_TYPES.MemberExpression&&n.type!==ic.AST_NODE_TYPES.CallExpression;yield e.removeRange([r.range[0],n.range[0]]),u&&(yield e.insertTextBefore(n,"("),yield e.insertTextAfter(n,")")),yield e.insertTextAfter(n,`${t.optional?"?.":"."}${i}(${JSON.stringify(a)}`)}})}}}}),"string/no-unneeded-to-string":i4,"type/no-force-cast-via-top-type":i5,"type/no-wrapper-type-reference":i6,"no-default-error":i9,"no-export-const-enum":il.createRule({name:"no-export-const-enum",meta:{type:"suggestion",docs:{description:"Disallow using `const enum` expression as it can not be inlined and tree-shaken by swc/esbuild/babel/webpack/rollup/vite/bun/rspack"},messages:{noConstEnum:"Do not use `const enum` expression"},schema:[]},create(e){let t=(t,r)=>{let n=ic.ASTUtils.findVariable(e.sourceCode.getScope(t),r);n?.defs.forEach(r=>{r.node.type===ic.AST_NODE_TYPES.TSEnumDeclaration&&r.node.const&&e.report({node:t,messageId:"noConstEnum"})})};return{ExportNamedDeclaration(r){let n=r.declaration;if(n?.type===ic.AST_NODE_TYPES.TSEnumDeclaration&&n.const){e.report({node:r,messageId:"noConstEnum"});return}if(n?.type===ic.AST_NODE_TYPES.VariableDeclaration){let e=n.declarations[0].id;e.type===ic.AST_NODE_TYPES.Identifier&&t(r,e)}},ExportDefaultDeclaration(e){let r=e.declaration;r.type===ic.AST_NODE_TYPES.Identifier&&t(e,r)}}}}),...Object.fromEntries(Object.entries({"unicorn/better-regex":dT,"unicorn/catch-error-name":lC,"unicorn/custom-error-definition":lD,"unicorn/no-nested-ternary":si,"unicorn/prefer-event-target":sN,"unicorn/prefer-keyboard-event-key":sR,"unicorn/prefer-text-content":sM,"unicorn/require-array-join-separator":sH,"unicorn/no-thenable":sK,"unicorn/no-invalid-remove-event-listener":sY,"unicorn/consistent-function-scoping":sJ,"unicorn/no-new-buffer":sX,"unicorn/no-console-spaces":s0,"unicorn/no-empty-file":s1,"unicorn/no-useless-fallback-in-spread":s2,"unicorn/no-useless-length-check":s3,"unicorn/no-useless-promise-resolve-reject":s4,"unicorn/no-zero-fractions":s5,"unicorn/prefer-export-from":s8,"unicorn/prefer-native-coercion-functions":s6,"unicorn/no-document-cookie":s7,"unicorn/prefer-add-event-listener":de,"unicorn/prefer-array-index-of":dt,"unicorn/prefer-blob-reading-methods":dr,"unicorn/prefer-date-now":dn,"unicorn/prefer-dom-node-dataset":du,"unicorn/prefer-modern-math-apis":da,"unicorn/number-literal-case":dd,"unicorn/prefer-number-properties":dl,"unicorn/prefer-reflect-apply":dc,"unicorn/prefer-set-size":df,"unicorn/prefer-string-replace-all":dh,"unicorn/prefer-string-slice":dm,"unicorn/prefer-string-trim-start-end":dg,"unicorn/no-unreadable-iife":dy,"unicorn/throw-new-error":db,"unicorn/escape-case":dF,"unicorn/no-hex-escape":dk,"unicorn/prefer-prototype-methods":dP,"unicorn/error-message":dI,"unicorn/no-instanceof-array":dB,"unicorn/prefer-type-error":dj,"unicorn/consistent-destructuring":dO,"unicorn/new-for-builtins":dN,"unicorn/no-array-push-push":dR,"unicorn/no-process-exit":dM,"unicorn/no-static-only-class":dz,"unicorn/no-unreadable-array-destructuring":dV,"unicorn/no-useless-spread":dq,"unicorn/no-useless-switch-case":dW,"unicorn/no-useless-undefined":dG,"unicorn/numeric-separators-style":dZ,"unicorn/prefer-array-find":dH,"unicorn/prefer-array-flat-map":dK,"unicorn/prefer-array-flat":dY,"unicorn/prefer-array-some":dJ,"unicorn/prefer-code-point":dQ,"unicorn/prefer-default-parameters":dX,"unicorn/prefer-logical-operator-over-ternary":d0,"unicorn/prefer-optional-catch-binding":d1,"unicorn/prefer-regexp-test":d2,"unicorn/prefer-set-has":d3,"unicorn/prefer-string-raw":d4,"unicorn/prefer-switch":d5,"unicorn/require-number-to-fixed-digits-argument":d8,"unicorn/template-indent":lb,"unicorn/no-single-promise-in-promise-methods":d$,"unicorn/no-await-in-promise-methods":lv,"unicorn/no-negation-in-equality-check":lx,"unicorn/no-length-as-slice-end":lE,"unicorn/no-lonely-if":lS,"unicorn/no-magic-array-flat-depth":l_,"unicorn/no-negated-condition":lw,"unicorn/no-object-as-default-parameter":lT,"unicorn/prefer-negative-index":lF,"unicorn/prefer-node-protocol":lP}).map(([e,t])=>{var r;return[e,{...t,meta:{schema:[],...t.meta,docs:{description:"",...t.meta.docs,url:oa(e)}},create:(r=t.create,e=>{let t={},n=(e,r)=>{t[e]??(t[e]=[]),t[e].push(r)};for(let[t,u]of Object.entries(r(new Proxy(e,{get:(e,t,r)=>"on"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])n(r,t)}:"onExit"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])n(`${r}:exit`,t)}:Reflect.get(e,t,r)}),void 0)??{}))n(t,u);return Object.fromEntries(Object.entries(t).map(([t,r])=>[t,(...t)=>{for(let n of r)!function(e,t){if(e){for(let r of(cC(e)||(e=[e]),e))if(r){if(r.fix&&(r.fix=cS(r.fix)),cC(r.suggest))for(let e of r.suggest)e.fix&&(e.fix=cS(e.fix)),e.data={...r.data,...e.data};t.report(r)}}}(n(...t),e)}]))})}]}))}};const cC=e=>!!e&&Symbol.iterator in e;class cA extends Error{constructor(e,t){super(e,t),this.name="FixAbortError"}}const cD={abort(){throw new cA("Fix aborted.")}};function cS(e){return t=>{let r=e(t,cD);if(cC(r))try{return[...r]}catch(e){if(e instanceof cA)return;throw e}return r}}module.exports=cE;
|