eslint-plugin-sukka 5.1.2 → 6.0.0-beta.4

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 CHANGED
@@ -1,15 +1,15 @@
1
- "use strict";var e,t,r,u,n,a,i,o=require("node:path"),s=require("node:fs"),d=require("@eslint-sukka/shared");function c(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var u=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,u.get?u:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var l=c(o),f=c(s);function p(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 g(e){return e?.type==="Identifier"||e?.type==="PrivateIdentifier"}function m(e){return e?.type==="MemberExpression"}function y(e){return e?.type==="AwaitExpression"}function h(e,t){return!!g(e)&&("function"==typeof t?t(e.name):Array.isArray(t)?t.includes(e.name):e.name===t)}function b(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 v(e){return!!e&&["ArrowFunctionExpression","FunctionDeclaration","FunctionExpression"].includes(e.type)}function x(e,t){return e?.type==="Identifier"&&t?.type===e.type&&e.name===t.name}function E({name:e,meta:t,create:r,resolveOptions:u}){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=u?.(...e.options)??e.options[0];return Object.fromEntries(Object.entries(r(e,t)).filter(e=>e[1]))}})}var A=E({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||!h(t.callee.property,"flatMap")||!(v(r=t.arguments[0])&&1===r.params.length&&"Identifier"===r.params[0].type&&r.body&&(x(r.params[0],r.body)||"BlockStatement"===r.body.type&&1===r.body.body.length&&"ReturnStatement"===r.body.body[0].type&&x(r.params[0],r.body.body[0].argument))))return;let{property:u}=t.callee;e.report({node:t,messageId:"invalid",*fix(e){yield e.replaceText(u,"flat"),yield*t.arguments.map(t=>e.remove(t))}})}})});const D=new Set(["href","pathname","search","hash","origin"]);var C=E({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){let t=e.getSourceCode();return{AssignmentExpression(r){let u=function(e,t){if(h(e,t))return e;for(;m(e);){if(h(e.property,t))return e;e=e.object}}(r.left,"location");if(!u)return;let n=S(u.parent);e.report({node:r,messageId:"instead",data:{name:n},fix:function(e,t,r){let u=S(t.parent);if(D.has(u??"href"))return u=>u.replaceText(r,`${e.getText(t)}.assign(${e.getText(r.right)})`)}(t,u,r)})}}}});function S(e){if(m(e)&&g(e.property))return e.property.name}var F=E({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(u){let n=[...r.expressions,...r.quasis];n.sort((e,t)=>e.range[0]-t.range[0]);let a=e.getSourceCode(),i=n.map(e=>"TemplateElement"===e.type?e.value.cooked:"{"+a.getText(e)+"}");return u.replaceText(t,i.join(""))}})}})}),w=E({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.getSourceCode();return{JSXFragment(r){if(1!==r.children.length)return;let u=r.children[0];e.report({node:r,messageId:"invalid",*fix(e){"JSXExpressionContainer"===u.type?"JSXEmptyExpression"!==u.expression.type&&(yield e.replaceText(r,t.getText(u.expression))):yield e.replaceText(r,t.getText(u))}})}}}});const _=/^toLocale(?<name>Upper|Lower)Case$/g;var k=E({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||!m(t.callee)||!g(t.callee.property))return;let{property:r}=t.callee,u=_.exec(r.name);u&&e.report({node:t,data:{name:u.groups?.name},messageId:"instead",fix:e=>e.replaceText(r,r.name.replaceAll("Locale",""))})}})});function P(e){return JSON.stringify(e)}var T=E({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){let t=e.getSourceCode();return{TemplateLiteral(r){let u=r.parent?.type!=="TaggedTemplateExpression"&&1===r.quasis.length&&!function({loc:e}){return!!e&&e.start.line!==e.end.line}(r.quasis[0])&&0===r.expressions.length?e=>{let u=P(r.quasis[0].value.cooked),n=p(r,e=>"Property"===e.type&&e.key===r);return n?e.replaceText(n,`${u}: ${t.getText(n.value)}`):e.replaceText(r,u)}:2===r.quasis.length&&r.quasis.every(({value:e})=>""===e.cooked)&&1===r.expressions.length?e=>e.replaceText(r,t.getText(r.expressions[0])):void 0;u&&e.report({node:r,messageId:"invalid",fix:u})}}}});const I=["BigInt","Boolean","Function","Number","Object","String","Symbol","Array"];var B=E({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.getSourceCode(),r=e.getScope(),u=I.flatMap(e=>{let t=r.set.get(e);return!t||t.defs.length>0?[]:t.references??[]});return{Program(){for(let{identifier:r}of u){let u=r.parent;if(u?.type==="BinaryExpression"&&"instanceof"===u.operator&&u.right===r){if("Array"===r.name)e.report({node:u,messageId:"array",fix:e=>e.replaceText(u,`Array.isArray(${t.getText(u.left)})`)});else{let n=r.name.toLowerCase();e.report({node:u,messageId:"primitive",data:{typeName:n},fix:e=>e.replaceText(u,`typeof ${t.getText(u.left)} === ${P(n)}`)})}}}}}}});const R=/\P{ASCII}/u;function N(e,t){return{Program(r){for(let u 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}(u);!1!==r&&e.test(r)&&t(u,"code")}for(let u of r.comments??[])e.test(u.value)&&t(u,"comment")}}}function L(e,t){switch(e.type){case"String":case"Template":return r=>{let u=e.value.slice(0,1),n=e.value.slice(-1),a=O(e.value.slice(1,-1),t);return r.replaceText(e,`${u}${a}${n}`)};case"JSXText":return r=>{let u=e.value.replace(t,e=>`&#x${j(e.codePointAt(0))};`);return r.replaceText(e,u)};case"RegularExpression":return r=>{let u=new Set(e.regex.flags);u.add("u");let n=new RegExp(O(e.regex.pattern,t),[...u].join(""));return r.replaceText(e,n.toString())}}}function O(e,t){return e.replace(t,e=>{let t=e.codePointAt(0);return t>65535?`\\u{${j(t)}}`:`\\u${j(t)}`})}function j(e){return e.toString(16).padStart(4,"0").toUpperCase()}E({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"):R,only:e?.only}),create:(e,{pattern:t,only:r})=>N(t,(u,n)=>{if(r&&r!==n)return;let a=L(u,RegExp(t.source,"gu"));e.report({node:u,messageId:"illegal",fix:a})})});const M=/[\u061C\u202A-\u202E\u2066-\u2069]/;var $=E({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=>N(M,(t,r)=>{let u=RegExp(M.source,"gu"),n={kind:r,text:O(t.value,u)},a=L(t,u);e.report({node:t,data:n,messageId:"detected",fix:a})})});const z=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 U=E({name:"unicode/no-invisible",meta:{type:"problem",fixable:"code",docs:{description:"Disallow invisible characters",recommended:"recommended"},schema:[],messages:{illegal:"Illegal character detected"}},create:e=>N(z,t=>{let r=L(t,RegExp(z.source,"gu"));e.report({node:t,messageId:"illegal",fix:r})})}),q=E({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 u=t.find(W);if(!u)return;let n=t[t.indexOf(u)-1];n&&"VariableDeclaration"===n.type&&1===n.declarations.length&&n.declarations.some(({init:e,id:t})=>null!==e&&x(u.argument,t))&&e.report({node:u,messageId:"invalid",fix:(r=e.getSourceCode(),e=>{let{init:t,id:a}=n.declarations[0];if(!(t&&a&&u.argument))return null;let i=!y(t)||p(t,"TryStatement")?t:t.argument,o=(e=>{if(!a.typeAnnotation)return e;let u=r.getText(a.typeAnnotation.typeAnnotation);return`(${e}) as ${y(t)?`Promise<${u}>`:u}`})(r.getText(i));return[e.remove(n),e.replaceText(u.argument,o)]})})}})});function W(e){return"ReturnStatement"===e.type&&g(e.argument)}var V=E({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(!v(t))return;let u=function(e,t){let r=t.find(Z);if(!r)return;let u=t.find(e=>"VariableDeclaration"===e.type&&"const"!==e.kind&&e.declarations.some(({id:e})=>x(r.argument,e)));if(u)return e.getDeclaredVariables(u).find(({references:e})=>e.every(e=>e.isWriteOnly()||e.identifier.parent===r))}(e,r);for(let{identifier:t}of u?.references??[])t.parent&&e.report({node:t.parent,messageId:"invalid"})}})});function Z(e){return"ReturnStatement"===e.type&&g(e.argument)}var G=E({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:u}){var n;if(!v(u)||!(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=(n=r[0],function*(t){let r;if("IfStatement"!==n.type)return;let u=e.getSourceCode(),{test:a,consequent:i}=n;yield t.insertTextBefore(a,"!("),yield t.insertTextAfter(a,")"),yield t.replaceText(i,"return;");let o=(r=u.getText(i),"BlockStatement"===i.type?r.slice(1,-1):r);yield t.insertTextAfter(n,o)});e.report({node:r[0],messageId:"prefer",fix:a})}})}),H=E({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 h(e,"XMLHttpRequest")})(t)||h(t.callee,"ActiveXObject")&&b(t.arguments[0],/xmlhttp/i))&&e.report({node:t,messageId:"callee"})},CallExpression(t){((function({callee:e}){let t="$http";return h(e,t)||m(e)&&h(e.object,t)})(t)||function({callee:e,parent:t}){let r=["$","jQuery"];return h(e,r)&&m(t)&&h(t.property,"load")||m(e)&&h(e.object,r)&&h(e.property,["ajax","get","post","getJSON","getScript"])}(t)||K(t,"axios")||K(t,"request"))&&e.report({node:t,messageId:"callee"})}})});function K(e,t){return h(e.callee,"require")&&b(e.arguments[0],t)}const X=new Set(["setTimeout","setInterval","requestAnimationFrame","requestIdleCallback"]);var J=E({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&&(!X.has(t.callee.name)||function(e){if(!h(e.callee,"setTimeout"))return!1;let t=e.arguments[1];return!t||b(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 = ")}]}))}})});function Y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Q(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 u=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,u.get?u:{enumerable:!0,get:function(){return e[t]}})}),r}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var ee=Q(l),et=e=>{let t=ee.basename(e,".js");return`https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/${t}.md`},er=Y(et);const eu={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(eu))Object.freeze(eu[e]);Object.freeze(eu);const en=new Set(["parent","leadingComments","trailingComments"]);function ea(e){return!en.has(e)&&"_"!==e[0]}function ei(e,t){let r=t.range[0],u=e,n=!1;do for(let e of(n=!1,u.childScopes)){let t=e.block.range;if(t[0]<=r&&r<t[1]){u=e,n=!0;break}}while(n);return u}function eo(e,t){let r="",u=e;for("string"==typeof t?r=t:(r=t.name,u=ei(u,t));null!=u;){let e=u.set.get(r);if(null!=e)return e;u=u.upper}return null}function es(e){return!this(e)}function ed(e){return es.bind(e)}function ec(e,t){return"Punctuator"===e.type&&e.value===t}function el(e){return ec(e,"=>")}function ef(e){return ec(e,",")}function ep(e){return ec(e,";")}function eg(e){return ec(e,":")}function em(e){return ec(e,"(")}function ey(e){return ec(e,")")}function eh(e){return ec(e,"[")}function eb(e){return ec(e,"]")}function ev(e){return ec(e,"{")}function ex(e){return ec(e,"}")}function eE(e){return["Block","Line","Shebang"].includes(e.type)}const eA=ed(el),eD=ed(ef),eC=ed(ep),eS=ed(eg),eF=ed(em),ew=ed(ey),e_=ed(eh),ek=ed(eb),eP=ed(ev),eT=ed(ex),eI=ed(eE);function eB(e,t){let r=e.parent,u=null,n=null;if("ArrowFunctionExpression"===e.type){let r=t.getTokenBefore(e.body,el);u=r.loc.start,n=r.loc.end}else u="Property"===r.type||"MethodDefinition"===r.type||"PropertyDefinition"===r.type?r.loc.start:e.loc.start,n=(e.id?t.getTokenAfter(e.id,em):t.getFirstToken(e,em)).loc.start;return{start:{...u},end:{...n}}}const eR="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},eN=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"])),eL=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)),eO=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 eM(e,t){let r=[];for(let u=0;u<e.length;++u){let n=e[u];if(null==n)r.length=u+1;else if("SpreadElement"===n.type){let e=ez(n.argument,t);if(null==e)return null;r.push(...e.value)}else{let e=ez(n,t);if(null==e)return null;r.push(e.value)}}return r}const e$=Object.freeze({ArrayExpression(e,t){let r=eM(e.elements,t);return null!=r?{value:r}:null},AssignmentExpression:(e,t)=>"="===e.operator?ez(e.right,t):null,BinaryExpression(e,t){if("in"===e.operator||"instanceof"===e.operator)return null;let r=ez(e.left,t),u=ez(e.right,t);if(null!=r&&null!=u)switch(e.operator){case"==":return{value:r.value==u.value};case"!=":return{value:r.value!=u.value};case"===":return{value:r.value===u.value};case"!==":return{value:r.value!==u.value};case"<":return{value:r.value<u.value};case"<=":return{value:r.value<=u.value};case">":return{value:r.value>u.value};case">=":return{value:r.value>=u.value};case"<<":return{value:r.value<<u.value};case">>":return{value:r.value>>u.value};case">>>":return{value:r.value>>>u.value};case"+":return{value:r.value+u.value};case"-":return{value:r.value-u.value};case"*":return{value:r.value*u.value};case"/":return{value:r.value/u.value};case"%":return{value:r.value%u.value};case"**":return{value:r.value**u.value};case"|":return{value:r.value|u.value};case"^":return{value:r.value^u.value};case"&":return{value:r.value&u.value}}return null},CallExpression(e,t){let r=e.callee,u=eM(e.arguments,t);if(null!=u){if("MemberExpression"===r.type){if("PrivateIdentifier"===r.property.type)return null;let n=ez(r.object,t);if(null!=n){if(null==n.value&&(n.optional||e.optional))return{value:void 0,optional:!0};let a=eU(r,t);if(null!=a){let e=n.value,t=a.value;if(eL.has(e[t]))return{value:e[t](...u)};if(eO.has(e[t]))return{value:u[0]}}}}else{let n=ez(r,t);if(null!=n){if(null==n.value&&e.optional)return{value:void 0,optional:!0};let t=n.value;if(eL.has(t))return{value:t(...u)};if(eO.has(t))return{value:u[0]}}}}return null},ConditionalExpression(e,t){let r=ez(e.test,t);return null!=r?r.value?ez(e.consequent,t):ez(e.alternate,t):null},ExpressionStatement:(e,t)=>ez(e.expression,t),Identifier(e,t){if(null!=t){let r=eo(t,e);if(null!=r&&0===r.defs.length&&eN.has(r.name)&&r.name in eR)return{value:eR[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,u=t.filter(e=>e.isReadOnly()).length;return 1===r&&u+r===t.length}(r))&&"Identifier"===e.node.id.type)return ez(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=ez(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 u=ez(e.right,t);if(null!=u)return u}return null},MemberExpression(e,t){if("PrivateIdentifier"===e.property.type)return null;let r=ez(e.object,t);if(null!=r){if(null==r.value&&(r.optional||e.optional))return{value:void 0,optional:!0};let u=eU(e,t);if(null!=u){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,u.value))return{value:r.value[u.value]};for(let[e,t]of ej)if(r.value instanceof e&&t.has(u.value))return{value:r.value[u.value]}}}return null},ChainExpression(e,t){let r=ez(e.expression,t);return null!=r?{value:r.value}:null},NewExpression(e,t){let r=ez(e.callee,t),u=eM(e.arguments,t);if(null!=r&&null!=u){let e=r.value;if(eL.has(e))return{value:new e(...u)}}return null},ObjectExpression(e,t){let r={};for(let u of e.properties)if("Property"===u.type){if("init"!==u.kind)return null;let e=eU(u,t),n=ez(u.value,t);if(null==e||null==n)return null;r[e.value]=n.value}else{if("SpreadElement"!==u.type&&"ExperimentalSpreadProperty"!==u.type)return null;let e=ez(u.argument,t);if(null==e)return null;Object.assign(r,e.value)}return{value:r}},SequenceExpression:(e,t)=>ez(e.expressions[e.expressions.length-1],t),TaggedTemplateExpression(e,t){let r=ez(e.tag,t),u=eM(e.quasi.expressions,t);if(null!=r&&null!=u){let t=r.value,n=e.quasi.quasis.map(e=>e.value.cooked);if(n.raw=e.quasi.quasis.map(e=>e.value.raw),t===String.raw)return{value:t(n,...u)}}return null},TemplateLiteral(e,t){let r=eM(e.expressions,t);if(null!=r){let t=e.quasis[0].value.cooked;for(let u=0;u<r.length;++u)t+=r[u]+e.quasis[u+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=ez(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 ez(e,t){return null!=e&&Object.hasOwnProperty.call(e$,e.type)?e$[e.type](e,t):null}function eU(e,t){let r="Property"===e.type?e.key:e.property;return e.computed?ez(r,t):"Identifier"===r.type?{value:r.name}:"Literal"===r.type?r.bigint?{value:r.bigint}:{value:String(r.value)}:null}function eq(e,t=null){try{return ez(e,t)}catch(e){return null}}function eW(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=eq(e,t);return r&&String(r.value)}function eV(e,t){switch(e.type){case"MemberExpression":if(e.computed)return eW(e.property,t);if("PrivateIdentifier"===e.property.type)break;return e.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":if(e.computed)return eW(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 eZ(e,t){let r=e.parent,u=[],n="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&&u.push("static"),"PrivateIdentifier"===r.key.type&&u.push("private")),e.async&&u.push("async"),e.generator&&u.push("generator"),n||a){if("constructor"===r.kind)return"constructor";"get"===r.kind?u.push("getter"):"set"===r.kind?u.push("setter"):u.push("method")}else i?u.push("method"):("ArrowFunctionExpression"===e.type&&u.push("arrow"),u.push("function"));if(n||a||i){if("PrivateIdentifier"===r.key.type)u.push(`#${r.key.name}`);else{let e=eV(r);if(e)u.push(`'${e}'`);else if(t){let e=t.getText(r.key);e.includes("\n")||u.push(`[${e}]`)}}}else e.id?u.push(`'${e.id.name}'`):"VariableDeclarator"===r.type&&r.id&&"Identifier"===r.id.type?u.push(`'${r.id.name}'`):("AssignmentExpression"===r.type||"AssignmentPattern"===r.type)&&r.left&&"Identifier"===r.left.type?u.push(`'${r.left.name}'`):"ExportDefaultDeclaration"===r.type&&r.declaration===e&&u.push("'default'");return u.join(" ")}const eG=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),eH=Object.freeze(new Set(["-","+","!","~"]));function eK(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}const eX=Object.freeze(Object.assign(Object.create(null),{$visit(e,t,r){let{type:u}=e;return"function"==typeof this[u]?this[u](e,t,r):this.$visitChildren(e,t,r)},$visitChildren(e,t,r){let{type:u}=e;for(let n of r[u]||Object.keys(e).filter(ea)){let u=e[n];if(Array.isArray(u)){for(let e of u)if(eK(e)&&this.$visit(e,t,r))return!0}else if(eK(u)&&this.$visit(u,t,r))return!0}return!1},ArrowFunctionExpression:()=>!1,AssignmentExpression:()=>!0,AwaitExpression:()=>!0,BinaryExpression(e,t,r){return!!(t.considerImplicitTypeConversion&&eG.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&&eH.has(e.operator)&&"Literal"!==e.argument.type)||this.$visitChildren(e,t,r)},UpdateExpression:()=>!0,YieldExpression:()=>!0}));function eJ(e,t,{considerGetters:r=!1,considerImplicitTypeConversion:u=!1}={}){return eX.$visit(e,{considerGetters:r,considerImplicitTypeConversion:u},t.visitorKeys||eu)}function eY(e,t,r){let u,n,a,i,o;if("number"==typeof e){if(u=0|e,n=t,a=r,!(u>=1))throw TypeError("'times' should be a positive integer.")}else u=1,n=e,a=t;if(null==n||null==n.parent||"CatchClause"===n.parent.type&&n.parent.param===n)return!1;i=o=n;do i=a.getTokenBefore(i),o=a.getTokenAfter(o);while(null!=i&&null!=o&&em(i)&&ey(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,em);return null;case"DoWhileStatement":if(r.test===e)return t.getTokenAfter(r.body,em);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}}(n,a)&&--u>0);return 0===u}const eQ=/\$(?:[$&`']|[1-9][0-9]?)/gu,e0=new WeakMap;class e1{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.");e0.set(this,{pattern:new RegExp(e.source,e.flags),escaped:!!t})}*execAll(e){let{pattern:t,escaped:r}=e0.get(this),u=null,n=0;for(t.lastIndex=0;null!=(u=t.exec(e));)(r||!function(e,t){let r=!1;for(let u=t-1;u>=0&&92===e.charCodeAt(u);--u)r=!r;return r}(e,u.index))&&(n=t.lastIndex,yield u,t.lastIndex=n)}test(e){return!this.execAll(e).next().done}[Symbol.replace](e,t){return"function"==typeof t?function(e,t,r){let u=[],n=0;for(let a of e.execAll(t))u.push(t.slice(n,a.index)),u.push(String(r(...a,a.index,a.input))),n=a.index+a[0].length;return u.push(t.slice(n)),u.join("")}(this,String(e),t):function(e,t,r){let u=[],n=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))u.push(t.slice(n,a.index)),u.push(r.replace(eQ,i)),n=a.index+a[0].length;return u.push(t.slice(n)),u.join("")}(this,String(e),String(t))}}const e3=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,e2=Function.call.bind(Object.hasOwnProperty),e4=Symbol("read"),e5=Symbol("call"),e8=Symbol("construct"),e6=Symbol("esm"),e9={require:{[e5]:!0}};function e7(e){return null==e||0!==e.defs.length||e.references.some(e=>e.isWrite())}let te=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],u=[t],n=this.globalScope.set.get(t);e7(n)||(yield*this._iterateVariableReferences(n,u,r,!0))}for(let t of this.globalObjectNames){let r=[],u=this.globalScope.set.get(t);e7(u)||(yield*this._iterateVariableReferences(u,r,e,!1))}}*iterateCjsReferences(e){for(let{node:t}of this.iterateGlobalReferences(e9)){let r=eW(t.arguments[0]);if(null==r||!e2(e,r))continue;let u=e[r],n=[r];u[e4]&&(yield{node:t,path:n,type:e4,info:u[e4]}),yield*this._iteratePropertyReferences(t,n,u)}}*iterateEsmReferences(e){for(let t of this.globalScope.block.body){if(!e3.test(t.type)||null==t.source)continue;let r=t.source.value;if(!e2(e,r))continue;let u=e[r],n=[r];if(u[e4]&&(yield{node:t,path:n,type:e4,info:u[e4]}),"ExportAllDeclaration"===t.type)for(let e of Object.keys(u)){let r=u[e];r[e4]&&(yield{node:t,path:n.concat(e),type:e4,info:r[e4]})}else for(let e of t.specifiers){let t=e2(u,e6),r=this._iterateImportReferences(e,n,t?u:"legacy"===this.mode?{default:u,...u}:{default:u});if(t)yield*r;else for(let e of r)e.path=e.path.filter(tt),(e.path.length>=2||e.type!==e4)&&(yield e)}}}*_iterateVariableReferences(e,t,r,u){if(!this.variableStack.includes(e)){this.variableStack.push(e);try{for(let n of e.references){if(!n.isRead())continue;let e=n.identifier;u&&r[e4]&&(yield{node:e,path:t,type:e4,info:r[e4]}),yield*this._iteratePropertyReferences(e,t,r)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,t,r){let u=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}}(u);)u=u.parent;let n=u.parent;if("MemberExpression"===n.type){if(n.object===u){let e=eV(n);if(null==e||!e2(r,e))return;t=t.concat(e);let u=r[e];u[e4]&&(yield{node:n,path:t,type:e4,info:u[e4]}),yield*this._iteratePropertyReferences(n,t,u)}return}if("CallExpression"===n.type){n.callee===u&&r[e5]&&(yield{node:n,path:t,type:e5,info:r[e5]});return}if("NewExpression"===n.type){n.callee===u&&r[e8]&&(yield{node:n,path:t,type:e8,info:r[e8]});return}if("AssignmentExpression"===n.type){n.right===u&&(yield*this._iterateLhsReferences(n.left,t,r),yield*this._iteratePropertyReferences(n,t,r));return}if("AssignmentPattern"===n.type){n.right===u&&(yield*this._iterateLhsReferences(n.left,t,r));return}"VariableDeclarator"===n.type&&n.init===u&&(yield*this._iterateLhsReferences(n.id,t,r))}*_iterateLhsReferences(e,t,r){if("Identifier"===e.type){let u=eo(this.globalScope,e);null!=u&&(yield*this._iterateVariableReferences(u,t,r,!1));return}if("ObjectPattern"===e.type){for(let u of e.properties){let e=eV(u);if(null==e||!e2(r,e))continue;let n=t.concat(e),a=r[e];a[e4]&&(yield{node:u,path:n,type:e4,info:a[e4]}),yield*this._iterateLhsReferences(u.value,n,a)}return}"AssignmentPattern"===e.type&&(yield*this._iterateLhsReferences(e.left,t,r))}*_iterateImportReferences(e,t,r){let u=e.type;if("ImportSpecifier"===u||"ImportDefaultSpecifier"===u){let n="ImportDefaultSpecifier"===u?"default":e.imported.name;if(!e2(r,n))return;t=t.concat(n);let a=r[n];a[e4]&&(yield{node:e,path:t,type:e4,info:a[e4]}),yield*this._iterateVariableReferences(eo(this.globalScope,e.local),t,a,!1);return}if("ImportNamespaceSpecifier"===u){yield*this._iterateVariableReferences(eo(this.globalScope,e.local),t,r,!1);return}if("ExportSpecifier"===u){let u=e.local.name;if(!e2(r,u))return;t=t.concat(u);let n=r[u];n[e4]&&(yield{node:e,path:t,type:e4,info:n[e4]})}}};function tt(e,t){return!(1===t&&"default"===e)}te.READ=e4,te.CALL=e5,te.CONSTRUCT=e8,te.ESM=e6;var tr=Q(Object.freeze({__proto__:null,CALL:e5,CONSTRUCT:e8,ESM:e6,PatternMatcher:e1,READ:e4,ReferenceTracker:te,default:{CALL:e5,CONSTRUCT:e8,ESM:e6,findVariable:eo,getFunctionHeadLocation:eB,getFunctionNameWithKind:eZ,getInnermostScope:ei,getPropertyName:eV,getStaticValue:eq,getStringIfConstant:eW,hasSideEffect:eJ,isArrowToken:el,isClosingBraceToken:ex,isClosingBracketToken:eb,isClosingParenToken:ey,isColonToken:eg,isCommaToken:ef,isCommentToken:eE,isNotArrowToken:eA,isNotClosingBraceToken:eT,isNotClosingBracketToken:ek,isNotClosingParenToken:ew,isNotColonToken:eS,isNotCommaToken:eD,isNotCommentToken:eI,isNotOpeningBraceToken:eP,isNotOpeningBracketToken:e_,isNotOpeningParenToken:eF,isNotSemicolonToken:eC,isOpeningBraceToken:ev,isOpeningBracketToken:eh,isOpeningParenToken:em,isParenthesized:eY,isSemicolonToken:ep,PatternMatcher:e1,READ:e4,ReferenceTracker:te},findVariable:eo,getFunctionHeadLocation:eB,getFunctionNameWithKind:eZ,getInnermostScope:ei,getPropertyName:eV,getStaticValue:eq,getStringIfConstant:eW,hasSideEffect:eJ,isArrowToken:el,isClosingBraceToken:ex,isClosingBracketToken:eb,isClosingParenToken:ey,isColonToken:eg,isCommaToken:ef,isCommentToken:eE,isNotArrowToken:eA,isNotClosingBraceToken:eT,isNotClosingBracketToken:ek,isNotClosingParenToken:ew,isNotColonToken:eS,isNotCommaToken:eD,isNotCommentToken:eI,isNotOpeningBraceToken:eP,isNotOpeningBracketToken:e_,isNotOpeningParenToken:eF,isNotSemicolonToken:eC,isOpeningBraceToken:ev,isOpeningBracketToken:eh,isOpeningParenToken:em,isParenthesized:eY,isSemicolonToken:ep}));const{isParenthesized:tu}=tr,tn="too-deep",ta="should-parenthesized";var ti=Y({create:e=>({ConditionalExpression(t){if([t.test,t.consequent,t.alternate].some(e=>"ConditionalExpression"===e.type))return;let{sourceCode:r}=e,u=r.getAncestors(t).reverse(),n=u.findIndex(e=>"ConditionalExpression"!==e.type);return 1!==n||tu(t,r)?n>1?{node:n>2?u[n-3]:t,messageId:tn}:void 0:{node:t,messageId:ta,fix:e=>[e.insertTextBefore(t,"("),e.insertTextAfter(t,")")]}}}),meta:{type:"suggestion",docs:{description:"Disallow nested ternary expressions."},fixable:"code",messages:{[tn]:"Do not nest ternary expressions.",[ta]:"Nest ternary expression should be parenthesized."}}});const{isParenthesized:to,isOpeningParenToken:ts,isClosingParenToken:td}=tr;function tc(e,t){let r=0;for(;to(r+1,e,t);)r++;return r}function tl(e,t){let r=tc(e,t);return 0===r?[]:[...t.getTokensBefore(e,{count:r,filter:ts}),...t.getTokensAfter(e,{count:r,filter:td})]}function tf(e,t){let r=tl(e,t),[u]=(r[0]||e).range,[,n]=(r.at(-1)||e).range;return[u,n]}var tp={isParenthesized:to,getParenthesizedTimes:tc,getParentheses:tl,getParenthesizedRange:tf,getParenthesizedText:function(e,t){let[r,u]=tf(e,t);return t.text.slice(r,u)}};function tg(e,t){return e?.type==="Literal"&&(null===t?"null"===e.raw:e.value===t)}var tm={isLiteral:tg,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=>tg(e,null),isRegexLiteral:e=>"Literal"===e.type&&!!e.regex};function ty(e,t,r){if(!r.includes(e?.type))return!1;"string"==typeof t&&(t={names:[t]}),Array.isArray(t)&&(t={names:t});let{name:u,names:n,argumentsLength:a,minimumArguments:i,maximumArguments:o,allowSpreadElement:s,optional:d}={minimumArguments:0,maximumArguments:Number.POSITIVE_INFINITY,allowSpreadElement:!1,...t};if(u&&(n=[u]),!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(n)||!(n.length>0)||"Identifier"===e.callee.type&&!!n.includes(e.callee.name)}var th={isCallExpression:(e,t)=>ty(e,t,["CallExpression"]),isNewExpression:(e,t)=>{if("boolean"==typeof t?.optional)throw TypeError("Cannot check node.optional in `isNewExpression`.");return ty(e,t,["NewExpression"])},isCallOrNewExpression:(e,t)=>ty(e,t,["CallExpression","NewExpression"])},tb=["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"],tv=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:u,object:n,objects:a,optional:i,computed:o}={property:"",properties:[],object:"",...t};if(r&&(u=[r]),n&&(a=[n]),!0===i&&e.optional!==i||!1===i&&e.optional)return!1;if(Array.isArray(u)&&u.length>0){if("Identifier"!==e.property.type||!u.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:tx}=th,{isStringLiteral:tE}=tm,{isCallExpression:tA}=th,{isLiteral:tD,isStringLiteral:tC,isNumberLiteral:tS,isBigIntLiteral:tF,isNullLiteral:tw,isRegexLiteral:t_}=tm,{isNewExpression:tk,isCallExpression:tP,isCallOrNewExpression:tT}=th;var tI={isLiteral:tD,isStringLiteral:tC,isNumberLiteral:tS,isBigIntLiteral:tF,isNullLiteral:tw,isRegexLiteral:t_,isArrowFunctionBody:function(e){return"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e},isCallExpression:tP,isCallOrNewExpression:tT,isEmptyNode:function e(t,r){let{type:u}=t;return"BlockStatement"===u?t.body.every(t=>e(t,r)):!!("EmptyStatement"===u||r?.(t))},isExpressionStatement:function(e){return"ExpressionStatement"===e.type||"ChainExpression"===e.type&&"ExpressionStatement"===e.parent.type},isFunction:function(e){return tb.includes(e.type)},isMemberExpression:tv,isMethodCall:function(e,t){"string"==typeof t&&(t={methods:[t]}),Array.isArray(t)&&(t={methods:t});let{optionalCall:r,optionalMember:u,method:n,methods:a}={method:"",methods:[],...t};return tx(e,{argumentsLength:t.argumentsLength,minimumArguments:t.minimumArguments,maximumArguments:t.maximumArguments,allowSpreadElement:t.allowSpreadElement,optional:r})&&tv(e.callee,{object:t.object,objects:t.objects,computed:t.computed,property:n,properties:a,optional:u})},isNewExpression:tk,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"TSPropertySignature":return t.key===e}return!1}(e)},isStaticRequire:e=>tA(e,{name:"require",argumentsLength:1,optional:!1})&&tE(e.arguments[0]),isUndefined:function(e){return"Identifier"===e.type&&"undefined"===e.name},functionTypes:tb};const{isMemberExpression:tB}=tI;function tR(e,t){let{object:r,property:u,properties:n}={property:"",properties:[],...t};if(!tB(e,{property:u,properties:n,optional:!1}))return;let a=e.object;return tB(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}function tN(e,t){let r=t.trim().split(".");for(let t=r.length-1;t>=0;t--){let u=r[t];if(!u)return!1;if(0===t)return"Identifier"===e.type&&e.name===u||"this"===u&&"ThisExpression"===e.type;if("MemberExpression"!==e.type||e.optional||e.computed||"Identifier"!==e.property.type||e.property.name!==u)return!1;e=e.object}}var tL={isNodeMatchesNameOrPath:tN,isNodeMatches:function(e,t){return t.some(t=>tN(e,t))}},tO=e=>e?.type==="LogicalExpression"&&("&&"===e.operator||"||"===e.operator);const tj=e=>e?.type==="UnaryExpression"&&"!"===e.operator,tM=e=>tj(e.parent)&&e.parent.argument===e,t$=e=>tz(e.parent)&&e.parent.arguments[0]===e,tz=e=>e?.type==="CallExpression"&&"Identifier"===e.callee.type&&"Boolean"===e.callee.name&&1===e.arguments.length,tU=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 tq={},tW={};Object.defineProperty(tW,"__esModule",{value:!0}),tW.isIdentifierChar=tQ,tW.isIdentifierName=function(e){let t=!0;for(let r=0;r<e.length;r++){let u=e.charCodeAt(r);if((64512&u)==55296&&r+1<e.length){let t=e.charCodeAt(++r);(64512&t)==56320&&(u=65536+((1023&u)<<10)+(1023&t))}if(t){if(t=!1,!tY(u))return!1}else if(!tQ(u))return!1}return!t},tW.isIdentifierStart=tY;let tV="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",tZ="‌‍\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const tG=RegExp("["+tV+"]"),tH=RegExp("["+tV+tZ+"]");tV=tZ=null;const tK=[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],tX=[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 tJ(e,t){let r=65536;for(let u=0,n=t.length;u<n&&!((r+=t[u])>e);u+=2)if((r+=t[u+1])>=e)return!0;return!1}function tY(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&tG.test(String.fromCharCode(e)):tJ(e,tK)))}function tQ(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&tH.test(String.fromCharCode(e)):tJ(e,tK)||tJ(e,tX))))}var t0={};Object.defineProperty(t0,"__esModule",{value:!0}),t0.isKeyword=function(e){return t1.has(e)},t0.isReservedWord=t4,t0.isStrictBindOnlyReservedWord=t8,t0.isStrictBindReservedWord=function(e,t){return t5(e,t)||t8(e)},t0.isStrictReservedWord=t5;const t1=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"]),t3=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),t2=new Set(["eval","arguments"]);function t4(e,t){return t&&"await"===e||"enum"===e}function t5(e,t){return t4(e,t)||t3.has(e)}function t8(e){return t2.has(e)}Object.defineProperty(tq,"__esModule",{value:!0}),Object.defineProperty(tq,"isIdentifierChar",{enumerable:!0,get:function(){return e.isIdentifierChar}}),Object.defineProperty(tq,"isIdentifierName",{enumerable:!0,get:function(){return e.isIdentifierName}}),Object.defineProperty(tq,"isIdentifierStart",{enumerable:!0,get:function(){return e.isIdentifierStart}}),Object.defineProperty(tq,"isKeyword",{enumerable:!0,get:function(){return t.isKeyword}}),Object.defineProperty(tq,"isReservedWord",{enumerable:!0,get:function(){return t.isReservedWord}}),Object.defineProperty(tq,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return t.isStrictBindOnlyReservedWord}}),Object.defineProperty(tq,"isStrictBindReservedWord",{enumerable:!0,get:function(){return t.isStrictBindReservedWord}}),Object.defineProperty(tq,"isStrictReservedWord",{enumerable:!0,get:function(){return t.isStrictReservedWord}}),e=tW,t=t0;const t6=e=>[e,...e.childScopes.flatMap(e=>t6(e))];var t9=e=>[...new Set(t6(e).flatMap(({references:e})=>e))];const{isIdentifierName:t7,isStrictReservedWord:re,isKeyword:rt}=tq,rr=(e,t)=>{for(;t;){let r=t.set.get(e);if(r)return r;t=t.upper}},ru=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"]),rn=e=>"string"==typeof e&&!rt(e)&&!re(e,!0)&&t7(e)&&"arguments"!==e&&!ru.has(e),ra=(e,t)=>t9(t).some(({identifier:t,resolved:r})=>t?.name===e&&!r),ri=(e,t)=>!t.some(t=>rr(e,t)||ra(e,t)),ro=()=>!0;var rs=(e,t,r=ro)=>{if(rn(e)||rn(e+="_")){for(;!ri(e,t)||!r(e,t);)e+="_";return e}};const rd={},rc=rd.hasOwnProperty,rl=(e,t)=>{for(let r in e)rc.call(e,r)&&t(r,e[r])},rf=(e,t)=>(t&&rl(t,(t,r)=>{e[t]=r}),e),rp=(e,t)=>{let r=e.length,u=-1;for(;++u<r;)t(e[u])},rg=e=>"\\u"+("0000"+e).slice(-4),rm=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},ry=rd.toString,rh=Array.isArray,rb=e=>"function"==typeof Buffer&&Buffer.isBuffer(e),rv=e=>"[object Object]"==ry.call(e),rx=e=>"string"==typeof e||"[object String]"==ry.call(e),rE=e=>"number"==typeof e||"[object Number]"==ry.call(e),rA=e=>"function"==typeof e,rD=e=>"[object Map]"==ry.call(e),rC=e=>"[object Set]"==ry.call(e),rS={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},rF=/[\\\b\f\n\r\t]/,rw=/[0-9]/,r_=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,rk=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,rP=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,rT=(e,t)=>{let r;let u=()=>{c=d,++t.indentLevel,d=t.indent.repeat(t.indentLevel)},n={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&&(n.quotes="double",n.wrap=!0),"single"!=(t=rf(n,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),c="",l=t.__inline1__,f=t.__inline2__,p=o?"":"\n",g=!0,m="binary"==t.numbers,y="octal"==t.numbers,h="decimal"==t.numbers,b="hexadecimal"==t.numbers;if(a&&e&&rA(e.toJSON)&&(e=e.toJSON()),!rx(e)){if(rD(e))return 0==e.size?"new Map()":(o||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+rT(Array.from(e),t)+")");if(rC(e))return 0==e.size?"new Set()":"new Set("+rT(Array.from(e),t)+")";if(rb(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+rT(Array.from(e),t)+")";if(rh(e))return(r=[],t.wrap=!0,l&&(t.__inline1__=!1,t.__inline2__=!0),f||u(),rp(e,e=>{g=!1,f&&(t.__inline2__=!1),r.push((o||f?"":d)+rT(e,t))}),g)?"[]":f?"["+r.join(", ")+"]":"["+p+r.join(","+p)+p+(o?"":c)+"]";if(rE(e)){if(a)return JSON.stringify(e);if(h)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(y)return"0o"+e.toString(8)}else if(rv(e))return(r=[],t.wrap=!0,u(),rl(e,(e,u)=>{g=!1,r.push((o?"":d)+rT(e,t)+":"+(o?"":" ")+rT(u,t))}),g)?"{}":"{"+p+r.join(","+p)+p+(o?"":c)+"}";else return a?JSON.stringify(e)||"null":String(e)}let v=t.escapeEverything?rk:rP;return r=e.replace(v,(e,r,u,n,o,d)=>{if(r){if(t.minimal)return r;let e=r.charCodeAt(0),u=r.charCodeAt(1);return t.es6?"\\u{"+rm((e-55296)*1024+u-56320+65536,s)+"}":rg(rm(e,s))+rg(rm(u,s))}if(u)return rg(rm(u.charCodeAt(0),s));if("\0"==e&&!a&&!rw.test(d.charAt(o+1)))return"\\0";if(n)return n==i||t.escapeEverything?"\\"+n:n;if(rF.test(e))return rS[e];if(t.minimal&&!r_.test(e))return e;let c=rm(e.charCodeAt(0),s);return a||c.length>2?rg(c):"\\x"+("00"+c).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};rT.version="3.0.2";var rI=(e,t="'")=>{if("string"!=typeof e)throw TypeError("Unexpected string.");return rT(e,{quotes:'"'===t?"double":"single",wrap:!0,es6:!0,minimal:!0,lowercaseHex:!1})},rB=({identifiers:e,references:t})=>[...new Set([...e,...t.map(({identifier:e})=>e)])];const rR=e=>"MemberExpression"===e.type||"CallExpression"===e.type,{findVariable:rN}=tr,rL=(e,t)=>{let{references:r=[]}=rN(e,t)||{};return r};var rO=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:rj}=tI,rM=new Set(["ArrayExpression","ArrowFunctionExpression","ClassExpression","FunctionExpression","Literal","ObjectExpression","TemplateLiteral"]),{isUndefined:r$,isCallExpression:rz,isMethodCall:rU}=tI,rq=new Set(["ArrayExpression","BinaryExpression","ClassExpression","Literal","ObjectExpression","TemplateLiteral","UnaryExpression","UpdateExpression"]),rW=new Set(["AssignmentExpression","AwaitExpression","LogicalExpression","NewExpression","TaggedTemplateExpression","ThisExpression"]);var rV=function(e,t){return e.loc.start.line===t.loc.start.line};const{getStaticValue:rZ}=tr;function rG(e){let t;switch(e?.type){case"MemberExpression":t=e.property;break;case"ChainExpression":return rG(e.expression);case"Property":case"MethodDefinition":t=e.key}if(t){if("Identifier"===t.type&&!e.computed)return t.name;let r=rZ(t);if(!r)return;return String(r.value)}}var rH=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 u=rG(t);if(void 0!==u)return e(t.object,r.object)&&u===rG(r);return t.computed===r.computed&&e(t.object,r.object)&&e(t.property,r.property)}default:return!1}},rK=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:rX}=tI,rJ=new Set(["String","Null","Boolean","Numeric","RegularExpression"]),rY=new Set(["[","(","/","`","+","-","*",",","."]);var rQ=function(e,t,r){if(""===r||r&&!rY.has(r.charAt(0))||!e)return!1;let{type:u,value:n,range:a}=e,i=t.getNodeByRangeIndex(a[0]);if("Punctuator"===u){if(";"===n)return!1;if("]"===n)return!0;if(")"===n){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!!rJ.has(u)||("Template"===u?n.endsWith("`"):"ObjectExpression"===i.type||"Identifier"===u&&("of"!==n||"ForOfStatement"!==i.type)&&("await"!==n||"AwaitExpression"!==i.type))};const{isOpeningParenToken:r0,isClosingParenToken:r1}=tr;var r3=function(e,t){if(e.arguments.length>0)return!0;let[r,u]=t.getLastTokens(e,2);return r0(r)&&r1(u)&&e.callee.range[1]<e.range[1]};const{isNumberLiteral:r2,isBigIntLiteral:r4}=tI,r5=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,r8=e=>r5.test(e);var r6={isDecimalIntegerNode:e=>r2(e)&&r8(e.raw),isDecimalInteger:r8,isNumeric:e=>r2(e)||r4(e),isLegacyOctal:e=>r2(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:u="",power:n=""}=e.match(/^(?<number>[\d._]*?)(?:(?<mark>[Ee])(?<sign>[+-])?(?<power>[\d_]+))?$/).groups;return{number:t,mark:r,sign:u,power:n}},parseFloatNumber:function(e){let t=e.split("."),[r,u=""]=t;return{integer:r,dot:2===t.length?".":"",fractional:u}}};const{isDecimalIntegerNode:r9}=r6;var r7=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!r3(e,t);case"Literal":if(r9(e))return!0;return!1;default:return!0}};const ue=new Set(["CallExpression","Identifier","Literal","MemberExpression","NewExpression","TemplateLiteral","ThisExpression"]);var ut=e=>!ue.has(e.type),ur={exports:{}};r=function(){var e=[],t=[],r={},u={},n={};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,u){if(!e.length||r.hasOwnProperty(e))return t;for(var n=u.length;n--;){var a=u[n];if(a[0].test(t))return function(e,t){return e.replace(t[0],function(r,u){var n,a,o=(n=t[1],a=arguments,n.replace(/\$(\d{1,2})/g,function(e,t){return a[t]||""}));return""===r?i(e[u-1],o):i(r,o)})}(t,a)}return t}function s(e,t,r){return function(u){var n=u.toLowerCase();return t.hasOwnProperty(n)?i(u,n):e.hasOwnProperty(n)?i(u,e[n]):o(n,u,r)}}function d(e,t,r,u){return function(u){var n=u.toLowerCase();return!!t.hasOwnProperty(n)||!e.hasOwnProperty(n)&&o(n,n,r)===n}}function c(e,t,r){var u=1===t?c.singular(e):c.plural(e);return(r?t+" ":"")+u}return c.plural=s(n,u,e),c.isPlural=d(n,u,e),c.singular=s(u,n,t),c.isSingular=d(u,n,t),c.addPluralRule=function(t,r){e.push([a(t),r])},c.addSingularRule=function(e,r){t.push([a(e),r])},c.addUncountableRule=function(e){if("string"==typeof e){r[e.toLowerCase()]=!0;return}c.addPluralRule(e,"$0"),c.addSingularRule(e,"$0")},c.addIrregularRule=function(e,t){t=t.toLowerCase(),n[e=e.toLowerCase()]=t,u[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 c.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 c.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 c.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(c.addUncountableRule),c},ur.exports=r();const{singular:uu}=ur.exports;var un=function(e,t,r=0,u=0){let[n,a]=Array.isArray(e)?e:e.range;return{start:t.getLocFromIndex(n+r),end:t.getLocFromIndex(a+u)}};const{isParenthesized:ua,getParenthesizedTimes:ui,getParentheses:uo,getParenthesizedRange:us,getParenthesizedText:ud}=tp,{isArrayPrototypeProperty:uc,isObjectPrototypeProperty:ul}={isArrayPrototypeProperty:(e,t)=>tR(e,{...t,object:"Array"}),isObjectPrototypeProperty:(e,t)=>tR(e,{...t,object:"Object"})},{isNodeMatches:uf,isNodeMatchesNameOrPath:up}=tL,{isBooleanNode:ug,getBooleanAncestor:um}={isBooleanNode:function e(t){if(tj(t)||tM(t)||tz(t)||t$(t))return!0;let{parent:r}=t;return!!tU(r)||("IfStatement"===r.type||"ConditionalExpression"===r.type||"WhileStatement"===r.type||"DoWhileStatement"===r.type||"ForStatement"===r.type)&&r.test===t||!!tO(r)&&e(r)},getBooleanAncestor:function(e){let t=!1;for(;;)if(tM(e))t=!t,e=e.parent;else if(t$(e))e=e.parent;else break;return{node:e,isNegative:t}}};var uy={avoidCapture:rs,escapeString:rI,getBooleanAncestor:um,getParentheses:uo,getParenthesizedRange:us,getParenthesizedText:ud,getParenthesizedTimes:ui,getReferences:t9,getScopes:t6,getVariableIdentifiers:rB,hasOptionalChainElement:function e(t){return!!rR(t)&&(!!t.optional||"MemberExpression"===t.type&&e(t.object))},isArrayPrototypeProperty:uc,isBooleanNode:ug,isFunctionSelfUsedInside:function(e,t){if(t.block!==e)throw Error('"functionScope" should be the scope of "functionNode".');let{type:r,id:u}=e;return"ArrowFunctionExpression"!==r&&(!!(t.thisFound||rL(t,"arguments").some(({from:e})=>e===t))||!!u&&rL(t,u).length>0)},isLeftHandSide:rO,isLogicalExpression:tO,isMethodNamed:(e,t)=>"CallExpression"===e.type&&"MemberExpression"===e.callee.type&&"Identifier"===e.callee.property.type&&e.callee.property.name===t,isNodeMatches:uf,isNodeMatchesNameOrPath:up,isNodeValueNotDomNode:e=>rM.has(e.type)||rj(e),isNodeValueNotFunction:e=>rq.has(e.type)||rW.has(e.type)||r$(e)||rz(e)&&!rU(e,{method:"bind",optionalCall:!1,optionalMember:!1}),isObjectPrototypeProperty:ul,isOnSameLine:rV,isParenthesized:ua,isSameIdentifier:(e,t)=>"Identifier"===e.type&&"Identifier"===t.type&&e.name===t.name,isSameReference:rH,isShadowed:rK,isValueNotUsable:e=>rX(e.parent),needsSemicolon:rQ,shouldAddParenthesesToMemberExpressionObject:r7,shouldAddParenthesesToSpreadElementArgument:ut,singular:e=>{let t=uu(e);if(t!==e)return t},toLocation:un,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:uh}=tr,{getAncestor:ub}=uy,{isStaticRequire:uv,isStringLiteral:ux,isMemberExpression:uE}=tI,uA="prefer-event-target",uD=new Set(["@angular/core","eventemitter3"]),uC=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 uS(e){let t;return!!e&&(uv(e)?[t]=e.arguments:"AwaitExpression"===e.type&&"ImportExpression"===e.argument.type&&({source:t}=e.argument),!!(ux(t)&&uD.has(t.value)))}var uF=Y({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=ub(e,"ImportDeclaration");return!!(uD.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)&&uC(e.parent.parent)&&uS(e.parent.parent.parent.init)||uC(e)&&uE(e.parent.init,{property:"EventEmitter",optional:!1,computed:!1})&&uS(e.parent.init.object))}(uh(r,t)?.defs[0]?.name))return{node:t,messageId:uA}}}),meta:{type:"suggestion",docs:{description:"Prefer `EventTarget` over `EventEmitter`."},messages:{[uA]:"Prefer `EventTarget` over `EventEmitter`."}}});const uw={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:u_}=tI,uk="prefer-keyboard-event-key",uP=new Set(["keyCode","charCode","which"]),uT=e=>e?.type==="CallExpression"&&"MemberExpression"===e.callee.type&&"addEventListener"===e.callee.property.name,uI=(e,t)=>{let r=uR(t,"CallExpression",uT),u=r?.arguments[1];switch(u?.type){case"ArrowFunctionExpression":case"FunctionExpression":{let t=e.sourceCode.getDeclaredVariables(u)[0],r=t?.references;return{event:u.params[0],references:r}}default:return{}}},uB=(e,t)=>e?.parent?.type==="MemberExpression"&&e.parent.object===t,uR=(e,t,r=()=>!0)=>{let u=e;for(;u;){if(u.type===t&&r(u))return u;u=u.parent}},uN=(e,t)=>{let r=e;for(;r&&t;)t--,r=r.parent;if(0===t)return r},uL=e=>t=>{let r=uN(e,3);if(!r||"IfStatement"!==r.type)return;let{type:u,operator:n,right:a}=r.test;if(!("BinaryExpression"===u&&("=="===n||"==="===n)&&u_(a)))return;let i=uw[a.value]||String.fromCodePoint(a.value);if(i)return[t.replaceText(e,"key"),t.replaceText(a,rI(i))]},uO=e=>({messageId:uk,data:{name:e.name},node:e,fix:uL(e)});var uj=Y({create:e=>({Identifier(t){if("keyCode"!==t.name&&"charCode"!==t.name&&"which"!==t.name)return;let{event:r,references:u}=uI(e,t);if(r&&u&&u.some(e=>uB(t,e.identifier)))return uO(t)},Property(t){let r=t.value.name;if(!uP.has(r))return;let{event:u,references:n}=uI(e,t);if(!u)return;let a=uR(t,"VariableDeclarator"),i=a?.init;if(n&&n.some(e=>e.identifier===i))return uO(t.value);if("ObjectPattern"===u.type){for(let e of u.properties)if(e===t)return uO(t.value)}}}),meta:{type:"suggestion",docs:{description:"Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`."},fixable:"code",messages:{[uk]:"Use `.key` instead of `.{{name}}`."}}});const{isMemberExpression:uM}=tI,u$="error",uz="suggestion";var uU=Y({create:()=>({MemberExpression(e){if(!uM(e,{property:"innerText"}))return;let t=e.property;return{node:t,messageId:u$,suggest:[{messageId:uz,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:u$,suggest:[{messageId:uz,fix:t=>t.replaceText(e,e.parent.shorthand?"textContent: innerText":"textContent")}]}}}),meta:{type:"suggestion",docs:{description:"Prefer `.textContent` over `.innerText`."},hasSuggestions:!0,messages:{[u$]:"Prefer `.textContent` over `.innerText`.",[uz]:"Switch to `.textContent`."}}});const{getParentheses:uq}=tp,{isCommaToken:uW}=tr,{isCommaToken:uV}=tr,{getParentheses:uZ}=tp,{getParenthesizedRange:uG}=tp,{isSemicolonToken:uH}=tr;var uK=function*(e,t,r){if("ReturnStatement"!==t.type&&"ThrowStatement"!==t.type)return;let u=r.getFirstToken(t);yield e.insertTextAfter(u," (");let n=r.getLastToken(t);if(!uH(n)){yield e.insertTextAfter(t,")");return}yield e.insertTextBefore(n,")")},uX=function(e,t,r){let u=e;"object"==typeof e&&Array.isArray(e.range)&&(u=e.range[1]);let[n]=t.text.slice(u).match(/^\s*/);return r.removeRange([u,u+n.length])};const{isParenthesized:uJ}=tp,{isParenthesized:uY}=tp,{getParenthesizedRange:uQ}=tp;var u0=function(e,t,r){let[,u]=uQ(t.object,r),[,n]=t.range;return e.removeRange([u,n])};const{getParenthesizedRange:u1}=tp;var u3=function*(e,t,r){let u=t.callee;yield u0(e,u,r);let[,n]=u1(u,r),[,a]=t.range;yield e.removeRange([n,a])},u2=e=>"Property"===e.parent.type&&e.parent.shorthand&&e===e.parent.value,u4=(e,t)=>e&&t&&e.range[0]===t.range[0]&&e.range[1]===t.range[1];const u5=e=>"AssignmentPattern"===e.parent.type&&e.parent.left===e&&u2(e.parent),u8=e=>{let{type:t,local:r,imported:u}=e.parent;return"ImportSpecifier"===t&&u4(r,u)&&r===e},u6=e=>{let{type:t,local:r,exported:u}=e.parent;return"ExportSpecifier"===t&&u4(r,u)&&r===e};var u9=function(e,t,r){return u2(e)||u5(e)?r.replaceText(e,`${e.name}: ${t}`):u8(e)?r.replaceText(e,`${e.name} as ${t}`):u6(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:u7}=tp,{getParenthesizedRange:ne}=tp,nt=({type:e,value:t})=>"Keyword"===e&&/^[a-z]*$/.test(t)||"Identifier"===e&&"of"===t||"Identifier"===e&&"await"===t;var nr={extendFixRange:function*(e,t){yield e.insertTextBeforeRange(t,""),yield e.insertTextAfterRange(t,"")},removeParentheses:function*(e,t,r){for(let u of uq(e,r))yield t.remove(u)},appendArgument:function(e,t,r,u){if("CallExpression"!==t.type)throw Error(`Unexpected node "${t.type}".`);let[n,a]=u.getLastTokens(t,2);return t.arguments.length>0&&(r=uW(n)?` ${r},`:`, ${r}`),e.insertTextBefore(a,r)},removeArgument:function(e,t,r){let u=t.parent,n=u.arguments.indexOf(t),a=uZ(t,r),i=a[0]||t,o=a.at(-1)||t,[s]=i.range,[,d]=o.range;if(0!==n&&(s=r.getTokenBefore(i).range[0]),1===u.arguments.length){let e=r.getTokenBefore(o);uV(e)&&(d=e[1])}return e.replaceTextRange([s,d],"")},replaceArgument:function(e,t,r,u){return e.replaceTextRange(uG(t,u),r)},switchNewExpressionToCallExpression:function*(e,t,r){let u=t.getFirstToken(e);yield r.remove(u),yield uX(u,t,r),r3(e,t)||(yield r.insertTextAfter(e,"()")),rV(u,e.callee)||uJ(e,t)||(yield*uK(r,e.parent,t))},switchCallExpressionToNewExpression:function*(e,t,r){var u;yield r.insertTextBefore(e,"new ");let{callee:n}=e;!uY(n,t)&&"MemberExpression"===(u=n).type&&function(e){let t=e.object,r=e.object.type;for(;"MemberExpression"===r;)r=(t=t.object).type;return"CallExpression"===r}(u)&&(yield r.insertTextBefore(n,"("),yield r.insertTextAfter(n,")"))},removeMemberExpressionProperty:u0,removeMethodCall:u3,replaceTemplateElement:(e,t,r)=>{let{range:[u,n],tail:a}=t;return e.replaceTextRange([u+1,n-(a?1:2)],r)},replaceReferenceIdentifier:u9,renameVariable:(e,t,r)=>rB(e).map(e=>u9(e,t,r)),replaceNodeOrTokenAndSpacesBefore:function* e(t,r,u,n,a=n){for(let r of u7(t,a))yield*e(r,"",u,n,a);let[i,o]=t.range,[s]=n.text.slice(0,i).match(/\s*$/),[d]=s.match(/(?:\r?\n|\r){0,1}/);i-=s.length,yield u.replaceTextRange([i,o],`${d}${r}`)},removeSpacesAfter:uX,fixSpaceAroundKeyword:function*(e,t,r){let u=ne(t,r),n=r.getTokenBefore({range:u},{includeComments:!0});n&&u[0]===n.range[1]&&nt(n)&&(yield e.insertTextAfter(n," "));let a=r.getTokenAfter({range:u},{includeComments:!0});a&&u[1]===a.range[0]&&nt(a)&&(yield e.insertTextBefore(a," "))},replaceStringLiteral:function(e,t,r,u,n){let a=t.range[0]+1,i=Number.isInteger(n)?u+a:a,o=Number.isInteger(n)?n+a:t.range[1]-1;return e.replaceTextRange([i,o],r)},addParenthesizesToReturnOrThrowExpression:uK};const{appendArgument:nu}=nr,{isMethodCall:nn}=tI,{isArrayPrototypeProperty:na}=uy,ni="require-array-join-separator";var no=Y({create:e=>({CallExpression(t){if(!(nn(t,{method:"join",argumentsLength:0,optionalCall:!1})||nn(t,{method:"call",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&na(t.callee.object,{property:"join"})))return;let{sourceCode:r}=e,[u,n]=r.getLastTokens(t,2),a=1===t.arguments.length;return{loc:{start:u.loc[a?"end":"start"],end:n.loc.end},messageId:ni,fix:e=>nu(e,t,"','",r)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the separator argument with `Array#join()`."},fixable:"code",messages:{[ni]:"Missing the separator argument."}}});const{getStaticValue:ns,getPropertyName:nd}=tr,{isMethodCall:nc}=tI,nl="no-thenable-object",nf="no-thenable-export",np="no-thenable-class",ng=(e,t)=>ns(e,t.sourceCode.getScope(e))?.value==="then",nm=(e,t)=>{try{return"then"===nd(e,t.sourceCode.getScope(e))}catch{}return!1},ny=[{selector:"ObjectExpression",*getNodes(e,t){for(let r of e.properties)"Property"===r.type&&nm(r,t)&&(yield r.key)},messageId:nl},{selectors:["PropertyDefinition","MethodDefinition"],*getNodes(e,t){"then"===nd(e,t.sourceCode.getScope(e))&&(yield e.key)},messageId:np},{selector:"MemberExpression",*getNodes(e,t){"AssignmentExpression"===e.parent.type&&e.parent.left===e&&"then"===nd(e,t.sourceCode.getScope(e))&&(yield e.property)},messageId:nl},{selector:"CallExpression",*getNodes(e,t){if(!(nc(e,{objects:["Object","Reflect"],method:"defineProperty",minimumArguments:3,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==e.arguments[0].type))return;let[,r]=e.arguments;ng(r,t)&&(yield r)},messageId:nl},{selector:"CallExpression",*getNodes(e,t){if(nc(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;ng(e,t)&&(yield e)}}},messageId:nl},{selector:"Identifier",*getNodes(e){"then"===e.name&&"ExportSpecifier"===e.parent.type&&e.parent.exported===e&&(yield e)},messageId:nf},{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:nf},{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:nf}];var nh=Y({create:e=>{for(let{selector:t,selectors:r,messageId:u,getNodes:n}of ny)e.on(t??r,function*(t){for(let r of n(t,e))yield{node:r,messageId:u}})},meta:{type:"problem",docs:{description:"Disallow `then` property."},messages:{[nl]:"Do not add `then` to an object.",[nf]:"Do not export `then`.",[np]:"Do not add `then` to a class."}}});const{getFunctionHeadLocation:nb}=tr,{isMethodCall:nv}=tI,nx="no-invalid-remove-event-listener";var nE=Y({create:e=>({CallExpression(t){if(!(nv(t,{method:"removeEventListener",minimumArguments:2,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==t.arguments[0].type&&("FunctionExpression"===t.arguments[1].type||"ArrowFunctionExpression"===t.arguments[1].type||nv(t.arguments[1],{method:"bind",optionalCall:!1,optionalMember:!1}))))return;let[,r]=t.arguments;return["ArrowFunctionExpression","FunctionExpression"].includes(r.type)?{node:r,loc:nb(r,e.sourceCode),messageId:nx}:{node:r.callee.property,messageId:nx}}}),meta:{type:"problem",docs:{description:"Prevent calling `EventTarget#removeEventListener()` with the result of an expression."},messages:{[nx]:"The listener argument should be a function reference."}}});const{getFunctionHeadLocation:nA,getFunctionNameWithKind:nD}=tr,{getReferences:nC,isNodeMatches:nS}=uy,{functionTypes:nF}=tI,nw="consistent-function-scoping",n_=(e,t)=>e&&t&&(e===t||e.block===t.block),nk=["useState","useEffect","useContext","useReducer","useCallback","useMemo","useRef","useImperativeHandle","useLayoutEffect","useDebugValue"].flatMap(e=>[e,`React.${e}`]),nP=e=>e.block?.parent?.callee&&nS(e.block.parent.callee,nk),nT=e=>"function"===e.type&&e.block?.type==="ArrowFunctionExpression"&&(e.thisFound||e.childScopes.some(e=>nT(e))),nI=new Set(["FunctionExpression","ArrowFunctionExpression"]),nB=e=>nI.has(e.type)&&"CallExpression"===e.parent.type&&e.parent.callee===e;var nR=Y({create:e=>{let{checkArrowFunctions:t}={checkArrowFunctions:!0,...e.options[0]},{sourceCode:r}=e,{scopeManager:u}=r,n=[];e.on(nF,()=>{n.push(!1)}),e.on("JSXElement",()=>{n.length>0&&(n[n.length-1]=!0)}),e.onExit(nF,e=>{if(!(n.pop()||"ArrowFunctionExpression"===e.type&&!t||function(e,t){let r=t.acquire(e);if(!r||nT(r))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 n=t.acquire(u);return!!(!n||"global"===n.type||nP(n)||nB(u))||function(e,t,r){let u=e=>e.some(e=>{if(n_(t,e.from))return!0;let{resolved:r}=e,[u]=r.defs;return(u?.type!=="FunctionName"||r.name!==u.name.name)&&n_(t,r.scope)}),n=e=>e.some(e=>n_(t,r.acquire(e.node))),a=u=>u.some(u=>{if(!u.parent||"FunctionDeclaration"!==u.parent.type||r.acquire(u))return!1;let n=r.acquire(u.parent);return!(!n||n_(e,n))&&n_(t,n.upper)});return nC(e).map(({resolved:e})=>e).filter(Boolean).some(e=>u(e.references)||n(e.defs)||a(e.identifiers))}(r,n,t)}(e,u)))return{node:e,loc:nA(e,r),messageId:nw,data:{functionNameWithKind:nD(e,r)}}})},meta:{type:"suggestion",docs:{description:"Move function definitions to the highest possible scope."},schema:[{type:"object",additionalProperties:!1,properties:{checkArrowFunctions:{type:"boolean",default:!0}}}],messages:{[nw]:"Move {{functionNameWithKind}} to the outer scope."}}});const{getStaticValue:nN}=tr,{isNumberLiteral:nL}=tI,nO=(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),nj=(e,t)=>"CallExpression"===e.type&&!e.optional&&"Identifier"===e.callee.type&&e.callee.name===t,nM=new Set(["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"]),n$=e=>nO(e,"Math",nM),nz=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"]),nU=e=>"CallExpression"===e.type&&!e.optional&&nO(e.callee,"Math",nz),nq=e=>nj(e,"Number"),nW=new Set(["EPSILON","MAX_SAFE_INTEGER","MAX_VALUE","MIN_SAFE_INTEGER","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]),nV=e=>nO(e,"Number",nW),nZ=new Set(["parseFloat","parseInt"]),nG=e=>"CallExpression"===e.type&&!e.optional&&nO(e.callee,"Number",nZ),nH=e=>nj(e,"parseInt")||nj(e,"parseFloat"),nK=(e,t)=>"number"==typeof nN(e,t)?.value,nX=e=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.property.type&&"length"===e.property.name,nJ=new Set(["-","*","/","%","**","<<",">>","|","^","&"]);var nY=function e(t,r){if(nL(t)||n$(t)||nU(t)||nq(t)||nV(t)||nG(t)||nH(t)||nX(t))return!0;switch(t.type){case"AssignmentExpression":{let{operator:u}=t;if("="===u&&e(t.right,r))return!0}case"BinaryExpression":{let{operator:u}=t;if("AssignmentExpression"===t.type&&(u=u.slice(0,-1)),"+"===u&&e(t.left,r)&&e(t.right,r)||">>>"===u||nJ.has(u)&&(e(t.left,r)||e(t.right,r)))return!0;break}case"UnaryExpression":{let{operator:u}=t;if("+"===u||("-"===u||"~"===u)&&e(t.argument,r))return!0;break}case"UpdateExpression":if(e(t.argument,r))return!0;break;case"ConditionalExpression":{let u=e(t.consequent,r),n=e(t.alternate,r);if(u&&n)return!0;let a=nN(t.test,r);if(null!==a&&(a.value&&u||!a.value&&n))return!0;break}case"SequenceExpression":if(e(t.expressions.at(-1),r))return!0}return nK(t,r)};const{getStaticValue:nQ}=tr,{switchNewExpressionToCallExpression:n0}=nr,{isNewExpression:n1}=tI,n3="error",n2="error-unknown",n4="suggestion",n5=(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(nY(r,t))return"alloc";let u=nQ(r,t);if(u){let{value:e}=u;if("string"==typeof e||Array.isArray(e))return"from"}};function n8(e,t,r){return function*(u){yield u.insertTextAfter(e.callee,`.${r}`),yield*n0(e,t,u)}}var n6=Y({create:e=>{let{sourceCode:t}=e;return{NewExpression(e){if(!n1(e,{name:"Buffer"}))return;let r=n5(e.arguments,t.getScope(e));return r?{node:e,messageId:n3,data:{method:r},fix:n8(e,t,r)}:{node:e,messageId:n2,suggest:["from","alloc"].map(r=>({messageId:n4,data:{replacement:r},fix:n8(e,t,r)}))}}}},meta:{type:"problem",docs:{description:"Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`."},fixable:"code",hasSuggestions:!0,messages:{[n3]:"`new Buffer()` is deprecated, use `Buffer.{{method}}()` instead.",[n2]:"`new Buffer()` is deprecated, use `Buffer.alloc()` or `Buffer.from()` instead.",[n4]:"Switch to `Buffer.{{replacement}}()`."}}});const{isStringLiteral:n9,isMethodCall:n7}=tI,ae="no-console-spaces",at=e=>e.length>1&&" "===e.charAt(0)&&" "!==e.charAt(1),ar=e=>e.length>1&&" "===e.at(-1)&&" "!==e.at(-2);var au=Y({create:e=>{let{sourceCode:t}=e,r=(e,r,u)=>{let n="leading"===u?e.range[0]+1:e.range[1]-2,a=[n,n+1];return{loc:un(a,t),messageId:ae,data:{method:r,position:u},fix:e=>e.removeRange(a)}};return{*CallExpression(e){if(!n7(e,{object:"console",methods:["log","debug","info","warn","error"],minimumArguments:1,optionalCall:!1,optionalMember:!1}))return;let u=e.callee.property.name,{arguments:n}=e,{length:a}=n;for(let[e,i]of n.entries()){if(!n9(i)&&"TemplateLiteral"!==i.type)continue;let n=t.getText(i).slice(1,-1);0!==e&&at(n)&&(yield r(i,u,"leading")),e!==a-1&&ar(n)&&(yield r(i,u,"trailing"))}}}},meta:{type:"suggestion",docs:{description:"Do not use leading/trailing space between `console.log` parameters."},fixable:"code",messages:{[ae]:"Do not use {{position}} space between `console.{{method}}` parameters."}}});const{isEmptyNode:an}=tI,aa="no-empty-file",ai=e=>"ExpressionStatement"===e.type&&"string"==typeof e.directive,ao=e=>an(e,ai),as=e=>"Line"===e.type&&e.value.startsWith("/"),ad=e=>e.some(e=>as(e));var ac=Y({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=>!ao(e)))return;let{sourceCode:r}=e;if(!ad(r.getAllComments()))return{node:t,messageId:aa}}}},meta:{type:"suggestion",docs:{description:"Disallow empty files."},messages:{[aa]:"Empty files are not allowed."}}});const{isParenthesized:al,getParenthesizedRange:af}=tp,{removeParentheses:ap}=nr,ag="no-useless-fallback-in-spread";var am=Y({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:ag,*fix(r){let{sourceCode:u}=e,n=t.parent,{left:a}=n,i=al(a,u),[,o]=i?af(a,u):a.range,[,s]=n.range;yield r.removeRange([o,s]),(i||!ut(a))&&(yield*ap(n,r,u))}}}}),meta:{type:"suggestion",docs:{description:"Disallow useless fallback when spreading in object literals."},fixable:"code",messages:{[ag]:"The empty object is useless."}}});const{isMethodCall:ay,isMemberExpression:ah}=tI,{getParenthesizedRange:ab,isSameReference:av,isLogicalExpression:ax}=uy,aE=e=>"BinaryExpression"===e.type&&"Literal"===e.right.type&&"0"===e.right.raw&&ah(e.left,{property:"length",optional:!1})&&ax(e.parent);var aA=Y({create:e=>{let t=[],r=new Set,u=new Set,n=new Set,a=new Set;return{BinaryExpression(e){if(aE(e)){let{operator:t}=e;"==="===t?r.add(e):(">"===t||"!=="===t)&&u.add(e)}},CallExpression(e){ay(e,{optionalCall:!1,optionalMember:!1,computed:!1})&&"Identifier"===e.callee.property.type&&("some"===e.callee.property.name?n.add(e):"every"===e.callee.property.name&&a.add(e))},LogicalExpression(e){ax(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)&&av(e.left.object,t.callee.object))||"&&"===t&&u.has(e)&&i.some(t=>n.has(t)&&av(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:u,right:n}=i.parent,a=ab(u,r),o=ab(n,r),s=[];return u===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."},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:aD}=uy,{isFunction:aC,isMethodCall:aS}=tI;var aF=Y({create:e=>{let{sourceCode:t}=e;return{CallExpression(e){if(!(aS(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:u}=function(e){let t,r=!1;for(;e;e=e.parent){if(aC(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:u}=e,n=r.property.name;return{node:r,messageId:n,data:{type:"YieldExpression"===u.type?"yield":"return"},fix:t}}(e,function(e,t,r){if(e.arguments.length>1)return;let{callee:u,parent:n,arguments:[a]}=e;if(a?.type==="SpreadElement")return;let i="reject"===u.property.name,o="YieldExpression"===n.type;if(!i||!t&&(!o||"ExpressionStatement"===n.parent.type))return function(t){let u="ArrowFunctionExpression"===n.type,s=a?r.getText(a):"";if(a?.type==="SequenceExpression"&&(s=`(${s})`),i){if(s=s||"undefined",s=`throw ${s}`,o)return t.replaceTextRange(aD(n,r),s);if(s+=";",u)return s=`{ ${s} }`,t.replaceTextRange(aD(e,r),s)}else o?s=`yield${s?" ":""}${s}`:"ReturnStatement"===n.type?s=`return${s?" ":""}${s};`:(a?.type==="ObjectExpression"&&(s=`(${s})`),s=s||"{}");return t.replaceText(u?e:n,s)}}(e,u,t))}}},meta:{type:"suggestion",docs:{description:"Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks"},fixable:"code",messages:{resolve:"Prefer `{{type}} value` over `{{type}} Promise.resolve(value)`.",reject:"Prefer `throw error` over `{{type}} Promise.reject(error)`."}}});const{isParenthesized:aw}=tr,{isDecimalInteger:a_}=r6,{fixSpaceAroundKeyword:ak}=nr,{isNumberLiteral:aP}=tI,aT="zero-fraction",aI="dangling-dot";var aB=Y({create:e=>({Literal(t){if(!aP(t))return;let{raw:r}=t,u=r.match(/^(?<before>[\d_]*)(?<dotAndFractions>\.[\d_]*)(?<after>.*)$/);if(!u)return;let{before:n,dotAndFractions:a,after:i}=u.groups,o=(n+a.replaceAll(/[.0_]+$/g,"")||"0")+i;if(o===r)return;let s=t.range[0]+n.length+a.length,d=s-(r.length-o.length),{sourceCode:c}=e;return{loc:un([d,s],c),messageId:"."===a?aI:aT,*fix(e){let r=o;"MemberExpression"===t.parent.type&&t.parent.object===t&&a_(o)&&!aw(t,c)&&(r=`(${r})`,rQ(c.getTokenBefore(t),c,r)&&(r=`;${r}`)),yield e.replaceText(t,r),yield*ak(e,t,c)}}}}),meta:{type:"suggestion",docs:{description:"Disallow number literals with zero fractions or dangling dots."},fixable:"code",messages:{[aT]:"Don't use a zero fraction in the number.",[aI]:"Don't use a dangling dot in the number."}}});const{isCommaToken:aR,isOpeningBraceToken:aN,isClosingBraceToken:aL}=tr,{isStringLiteral:aO}=tI,aj="error",aM="suggestion",a$=Symbol.for("default"),az=Symbol("NAMESPACE_SPECIFIER_NAME"),aU=e=>{switch(e.type){case"Identifier":return Symbol.for(e.name);case"Literal":return e.value}},aq=e=>"type"===e.exportKind||"type"===e.parent.exportKind,aW=e=>"type"===e.importKind||"type"===e.parent.importKind;function*aV(e,t,r){switch(e.type){case"ImportSpecifier":case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":yield*function*(e,t,r){let{parent:u}=e,{specifiers:n}=u;if(1===n.length){yield*aV(u,t,r);return}switch(e.type){case"ImportSpecifier":if(!n.some(t=>t!==e&&t.type===e.type)){let u=r.getTokenAfter(e,aL),n=r.getTokenBefore(e,aR);yield t.replaceTextRange([n.range[0],u.range[1]],"");return}case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ImportDefaultSpecifier":{yield t.remove(e);let u=r.getTokenAfter(e);aR(u)&&(yield t.remove(u))}}}(e,t,r);return;case"ImportDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":yield t.remove(e)}}function aZ(e,t){let[r]=t.getTokenBefore(e.source,e=>"Identifier"===e.type&&"from"===e.value).range,[,u]=e.range;return t.text.slice(r,u)}var aG=Y({create:function(e){let{sourceCode:t}=e,{ignoreUsedVariables:r}={ignoreUsedVariables:!1,...e.options[0]},u=new Set,n=[];return{ImportDeclaration(e){e.specifiers.length>0&&u.add(e)},ExportNamedDeclaration(e){aO(e.source)&&n.push(e)},*"Program:exit"(e){for(let a of u){let u=t.getDeclaredVariables(a);if(u.some(e=>1!==e.defs.length||e.defs[0].parent!==a)||(u=u.map(e=>{let r=function(e,t){let r=e.defs[0].node,u={node:r,declaration:r.parent,variable:e,isTypeImport:aW(r)};switch(r.type){case"ImportDefaultSpecifier":return{name:a$,text:"default",...u};case"ImportSpecifier":return{name:aU(r.imported),text:t.getText(r.imported),...u};case"ImportNamespaceSpecifier":return{name:az,text:"*",...u}}}(e,t),u=function(e,t){let r=[];for(let{identifier:u}of e.variable.references){let n=function(e,t){let{parent:r}=e;switch(r.type){case"ExportDefaultDeclaration":return{node:r,name:a$,text:"default",isTypeExport:aq(r)};case"ExportSpecifier":return{node:r,name:aU(r.exported),text:t.getText(r.exported),isTypeExport:aq(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:u,references:n}]=r;return 1===u.length&&u[0]===e.id&&1===n.length&&n[0].identifier===e.id}(r,t))return{node:r.parent.parent,name:Symbol.for(r.id.name),text:t.getText(r.id)}}}(u,t);n&&(e.name!==az||n.name!==a$)&&r.push(n)}return r}(r,t);return{variable:e,imported:r,exports:u}}),r&&u.some(({variable:e,exports:t})=>e.references.length!==t.length)))continue;let i=r&&u.some(({variable:e})=>0===e.references.length);for(let{imported:r,exports:a}of u)for(let u of a){let a={node:u.node,messageId:aj,data:{exported:u.text}},o=function({sourceCode:e,imported:t,exported:r,exportDeclarations:u,program:n}){let a;let i=t.declaration,o=i.source.value,s=t.isTypeImport||r.isTypeExport;return s&&(a=u.find(({source:e,exportKind:t})=>e.value===o&&"type"===t)),a||(a=u.find(({source:e,exportKind:t})=>e.value===o&&"type"!==t)),function*(u){if(t.name===az)yield u.insertTextAfter(n,`
2
- export * as ${r.text} ${aZ(i,e)}`);else{let o=r.name===t.name?r.text:`${t.text} as ${r.text}`;if(s&&(!a||"type"!==a.exportKind)&&(o=`type ${o}`),a){let t=a.specifiers.at(-1);if(t)yield u.insertTextAfter(t,`, ${o}`);else{let t=e.getFirstToken(a,aN);yield u.insertTextAfter(t,o)}}else yield u.insertTextAfter(n,`
3
- export {${o}} ${aZ(i,e)}`)}1===t.variable.references.length&&(yield*aV(t.node,u,e)),yield*aV(r.node,u,e)}}({sourceCode:t,imported:r,exported:u,exportDeclarations:n,program:e});i?a.suggest=[{messageId:aM,fix:o}]:a.fix=o,yield a}}}}},meta:{type:"suggestion",docs:{description:"Prefer `export…from` when re-exporting."},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignoreUsedVariables:{type:"boolean",default:!1}}}],messages:{[aj]:"Use `export…from` to re-export `{{exported}}`.",[aM]:"Switch to `export…from`."}}});const{getFunctionHeadLocation:aH,getFunctionNameWithKind:aK}=tr,{functionTypes:aX}=tI,aJ="prefer-native-coercion-functions",aY=new Set(["String","Number","BigInt","Boolean","Symbol"]),aQ=new Set(["every","filter","find","findLast","findIndex","findLastIndex","some"]),a0=(e,t)=>e?.type==="CallExpression"&&!e.optional&&"Identifier"===e.callee.type&&aY.has(e.callee.name)&&e.arguments[0]?.type==="Identifier"&&e.arguments[0].name===t,a1=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,a3=e=>a1(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&&aQ.has(e.parent.callee.property.name);var a2=Y({create:e=>{e.on(aX,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(a3(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&&a0(e.body,t)?e.body:"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&a0(e.body.body[0].argument,t)?e.body.body[0].argument:void 0}(e);if(!t)return;let{name:r}=t.callee,u={replacementFunction:r};return"FunctionDeclaration"===e.type||1!==t.arguments.length||(u.fix=t=>{let u=r;return"Property"===e.parent.type&&e.parent.method&&e.parent.value===e?u=`: ${u}`:"MethodDefinition"===e.parent.type&&(u=` = ${u};`),t.replaceText(e,u)}),u}(t);if(!r)return;let{sourceCode:u}=e,{replacementFunction:n,fix:a}=r;return r={node:t,loc:aH(t,u),messageId:aJ,data:{functionNameWithKind:aK(t,u),replacementFunction:n}},!a||1!==t.params.length||u.getCommentsInside(t).length>0||(r.fix=a),r})},meta:{type:"suggestion",docs:{description:"Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly."},fixable:"code",messages:{[aJ]:"{{functionNameWithKind}} is equivalent to `{{replacementFunction}}`. Use `{{replacementFunction}}` directly."}}});const{ReferenceTracker:a4}=tr,a5=(e,t)=>{let r={[t]:!0};for(let t of e.split(".").reverse())r={[t]:r};return r};let a8=class{#e={};#t;#r;constructor({object:e,objects:t=[e],filter:r,handle:u,type:n=a4.READ}){for(let e of t)Object.assign(this.#e,a5(e,n));this.#t=r,this.#r=u}*track(e){for(let t of new a4(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(a8,{READ:a4.READ,CALL:a4.CALL,CONSTRUCT:a4.CONSTRUCT});var a6={GlobalReferenceTracker:a8};const{GlobalReferenceTracker:a9}=a6,a7="no-document-cookie",ie=new a9({object:"document.cookie",filter:({node:e})=>"AssignmentExpression"===e.parent.type&&e.parent.left===e,handle:({node:e})=>({node:e,messageId:a7})});var it=Y({create:e=>ie.createListeners(e),meta:{type:"problem",docs:{description:"Do not use `document.cookie` directly."},messages:{[a7]:"Do not use `document.cookie` directly."}}});const ir=e=>[`webkit${e}`,`o${e.toLowerCase()}`,e.toLowerCase()];var iu=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",...ir("AnimationStart"),...ir("AnimationEnd"),...ir("AnimationIteration"),...ir("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}=tr,{isUndefined:ii,isNullLiteral:io,isStaticRequire:is}=tI,id="prefer-add-event-listener",ic={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')`."},il=e=>e.property.name,ip=e=>e.slice(2),ig=(e,t,r,u)=>{let n=ip(il(u)),a=t.getText(u.object);ia(u.object,t)&&(a=`(${a})`);let i=t.getText(r.right);ia(r.right,t)&&(i=`(${i})`);let o=`${a}.addEventListener('${n}', ${i})`;return e.replaceText(r,o)},im=(e,t)=>("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type)&&"BlockStatement"===e.body.type&&!t.get(e),iy=e=>ii(e)||io(e);var ih=Y({create:e=>{let t,r;let u=new Set((e.options[0]||{}).excludedPackages||["koa","sax"]),n=new WeakMap;return{onCodePathStart(e,t){r={node:t,upper:r,returnsSomething:!1}},onCodePathEnd(){n.set(r.node,r.returnsSomething),r=r.upper},CallExpression(e){is(e)&&!t&&u.has(e.arguments[0].value)&&(t=!0)},Literal(e){"ImportDeclaration"===e.parent.type&&!t&&u.has(e.value)&&(t=!0)},ReturnStatement(e){r.returnsSomething=r.returnsSomething||!!e.argument},"AssignmentExpression:exit"(r){let u;if(t)return;let{left:a,right:i,operator:o}=r;if("MemberExpression"!==a.type||a.computed)return;let s=il(a);if(!s||!s.startsWith("on"))return;let d=ip(s);if(!iu.has(d))return;let c="addEventListener",l="";return iy(i)?c="removeEventListener":"beforeunload"!==d||im(i,n)?"message"===d?l=ic.message:"error"===d?l=ic.error:"="===o&&"ExpressionStatement"===r.parent.type&&r.parent.expression===r&&(u=t=>ig(t,e.sourceCode,r,a)):l=ic.beforeunload,{node:a.property,messageId:id,data:{replacement:c,method:s,extra:l?` ${l}`:""},fix:u}}}},meta:{type:"suggestion",docs:{description:"Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions."},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{excludedPackages:{type:"array",items:{type:"string"},uniqueItems:!0}}}],messages:{[id]:"Prefer `{{replacement}}` over `{{method}}`.{{extra}}"}}});const{hasSideEffect:ib,isParenthesized:iv,findVariable:ix}=tr,{isMethodCall:iE}=tI,{isSameIdentifier:iA,isFunctionSelfUsedInside:iD}=uy,iC=(e,t)=>"BinaryExpression"===e.type&&"==="===e.operator&&(iA(e.left,t)||iA(e.right,t)),iS=e=>"ArrowFunctionExpression"===e.type&&!e.async&&1===e.params.length&&iC(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&&iC(e.body.body[0].argument,e.params[0]),iF=({type:e,name:t},r)=>"Identifier"===e&&t===r,iw=function({method:e,replacement:t}){let r=`prefer-${t}-over-${e}/`,u=`${r}error`,n=`${r}suggestion`;return{messages:{[u]:({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],[n]:`Replace \`.${e}()\` with \`.${t}()\`.`},listen:function(r){let{sourceCode:a}=r,{scopeManager:i}=a;r.on("CallExpression",r=>{let o,s;if(!iE(r,{method:e,argumentsLength:1,optionalCall:!1,optionalMember:!1})||!iS(r.arguments[0]))return;let[d]=r.arguments,c="BinaryExpression"===d.body.type?d.body:d.body.body[0].argument,[l]=d.params,{left:f,right:p}=c,{name:g}=l;if(iF(f,g))o=p,s=f;else{if(!iF(p,g))return;o=f,s=p}let m=i.acquire(d);if(ix(m,l).references.some(({identifier:e})=>e!==s)||iD(d,m))return;let y=r.callee.property,h={node:y,messageId:u,suggest:[]},b=function*(e){let r=a.getText(o);iv(o,a)&&!iv(d,a)&&(r=`(${r})`),yield e.replaceText(y,t),yield e.replaceText(d,r)};return ib(o,a)?h.suggest.push({messageId:n,fix:b}):h.fix=b,h})}}},i_=iw({method:"findIndex",replacement:"indexOf"}),ik=iw({method:"findLastIndex",replacement:"lastIndexOf"});var iP=Y({create(e){i_.listen(e),ik.listen(e)},meta:{type:"suggestion",docs:{description:"Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item."},fixable:"code",hasSuggestions:!0,messages:{...i_.messages,...ik.messages}}});const{isMethodCall:iT}=tI,iI="error";var iB=Y({create:()=>({CallExpression(e){if(!iT(e,{methods:["readAsText","readAsArrayBuffer"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let t=e.callee.property,r=t.name;return{node:t,messageId:iI,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(…)`."},messages:{[iI]:"Prefer `Blob#{{replacement}}()` over `FileReader#{{method}}(blob)`."}}});const{isMethodCall:iR,isCallExpression:iN,isNewExpression:iL}=tI,{fixSpaceAroundKeyword:iO}=nr,ij="prefer-date",iM="prefer-date-now-over-methods",i$="prefer-date-now-over-number-data-object",iz=e=>iL(e,{name:"Date",argumentsLength:0}),iU=(e,t,r)=>({node:e,messageId:ij,*fix(t){yield t.replaceText(e,"Date.now()"),"UnaryExpression"===e.type&&(yield*iO(t,e,r))},...t});var iq=Y({create:e=>({CallExpression(e){if(iR(e,{methods:["getTime","valueOf"],argumentsLength:0,optionalCall:!1,optionalMember:!1})&&iz(e.callee.object)){let t=e.callee.property;return iU(e,{node:t,messageId:iM,data:{method:t.name}})}if(iN(e,{names:["Number","BigInt"],argumentsLength:1,optional:!1})&&iz(e.arguments[0])){let{name:t}=e.callee;return"Number"===t?iU(e,{messageId:i$}):iU(e.arguments[0])}},UnaryExpression(t){if(("+"===t.operator||"-"===t.operator)&&iz(t.argument))return iU("-"===t.operator?t.argument:t,{},e.sourceCode)},AssignmentExpression(e){if(("-="===e.operator||"*="===e.operator||"/="===e.operator||"%="===e.operator||"**="===e.operator)&&iz(e.right))return iU(e.right)},*BinaryExpression(e){if("-"===e.operator||"*"===e.operator||"/"===e.operator||"%"===e.operator||"**"===e.operator)for(let t of[e.left,e.right])iz(t)&&(yield iU(t))}}),meta:{type:"suggestion",docs:{description:"Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch."},fixable:"code",messages:{[ij]:"Prefer `Date.now()` over `new Date()`.",[iM]:"Prefer `Date.now()` over `Date#{{method}}()`.",[i$]:"Prefer `Date.now()` over `Number(new Date())`."}}});const{isIdentifierName:iW}=tq,{escapeString:iV,hasOptionalChainElement:iZ,isValueNotUsable:iG}=uy,{isMethodCall:iH,isStringLiteral:iK,isExpressionStatement:iX}=tI,iJ="prefer-dom-node-dataset",iY=e=>e.replaceAll(/-[a-z]/g,e=>e[1].toUpperCase());var iQ=Y({create:e=>({CallExpression(t){if((iH(t,{method:"setAttribute",argumentsLength:2,optionalCall:!1,optionalMember:!1})||iH(t,{methods:["getAttribute","removeAttribute","hasAttribute"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&iK(t.arguments[0])&&t.arguments[0].value.toLowerCase().startsWith("data-"))return{node:t,messageId:iJ,data:{method:t.callee.property.name},fix:function(e,t){let r=e.callee.property.name;if(!("setAttribute"===r&&iZ(e.callee))&&("setAttribute"!==r||iG(e))&&("removeAttribute"!==r||iX(e.parent)))return u=>{let[n]=e.arguments,a=iY(n.value.toLowerCase().slice(5)),{sourceCode:i}=t,o="",s=`${i.getText(e.callee.object)}.dataset`;switch(r){case"setAttribute":case"getAttribute":case"removeAttribute":o=iW(a)?`.${a}`:`[${iV(a,n.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}, ${iV(a,n.raw.charAt(0))})`}return u.replaceText(e,o)}}(t,e)}}}),meta:{type:"suggestion",docs:{description:"Prefer using `.dataset` on DOM elements over calling attribute methods."},fixable:"code",messages:{[iJ]:"Prefer `.dataset` over `{{method}}(…)`."}}});const{getParenthesizedText:i0,getParenthesizedRange:i1,isSameReference:i3}=uy,{isLiteral:i2,isMethodCall:i4}=tI,{replaceNodeOrTokenAndSpacesBefore:i5,removeParentheses:i8}=nr,i6="prefer-modern-math-apis",i9=(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,i7=(e,t)=>"CallExpression"===e.type&&!e.optional&&i9(e.callee,t)&&1===e.arguments.length&&"SpreadElement"!==e.arguments[0].type;function oe({constantName:e,replacementMethod:t}){let r=`Math.${t}(…)`;return function(u,n){let a,i;if(!("BinaryExpression"===u.type&&"*"===u.operator)||(i7(u.left,"log")&&i9(u.right,e)?(a=u.left,i=`Math.log(…) * Math.${e}`):i7(u.right,"log")&&i9(u.left,e)&&(a=u.right,i=`Math.${e} * Math.log(…)`),!a))return;let[o]=a.arguments;return{node:u,messageId:i6,data:{replacement:r,description:i},fix:e=>e.replaceText(u,`Math.${t}(${i0(o,n.sourceCode)})`)}}}function ot({constantName:e,replacementMethod:t}){let r={messageId:i6,data:{replacement:`Math.${t}(…)`,description:`Math.log(…) / Math.${e}`}};return function(u,n){if(!("BinaryExpression"===u.type&&"/"===u.operator&&i7(u.left,"log")&&i9(u.right,e)))return;let[a]=u.left.arguments;return{...r,node:u,fix:e=>e.replaceText(u,`Math.${t}(${i0(a,n.sourceCode)})`)}}}const or=[oe({constantName:"LOG10E",replacementMethod:"log10"}),oe({constantName:"LOG2E",replacementMethod:"log2"}),ot({constantName:"LN10",replacementMethod:"log10"}),ot({constantName:"LN2",replacementMethod:"log2"})],ou=e=>"BinaryExpression"===e.type&&"+"===e.operator,on=e=>"BinaryExpression"===e.type&&("*"===e.operator&&i3(e.left,e.right)||"**"===e.operator&&i2(e.right,2)),oa=e=>ou(e)?[e.left,e.right].flatMap(e=>oa(e)):[e];var oi=Y({create:e=>{let t=[];return{CallExpression(t){if(!i4(t,{object:"Math",method:"sqrt",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let r=oa(t.arguments[0]);if(r.some(e=>!on(e)))return;let u=1===r.length?"abs":"hypot",n=new Set(1===r.length?[]:r.map(e=>e.parent));return{node:t.callee.property,messageId:i6,data:{replacement:`Math.${u}(…)`,description:"Math.sqrt(…)"},*fix(a){let{sourceCode:i}=e;for(let e of(yield a.replaceText(t.callee.property,u),n)){let t=i.getTokenAfter(e.left,e=>"Punctuator"===e.type&&"+"===e.value);yield*i5(t,",",a,i),yield*i8(e,a,i)}for(let e of r)yield a.removeRange([i1(e.left,i)[1],e.range[1]])}}},BinaryExpression(e){t.push(e)},*"Program:exit"(){for(let r of t)for(let t of or){let u=t(r,e);u&&(yield u)}}}},meta:{type:"suggestion",docs:{description:"Prefer modern `Math` APIs over legacy patterns."},fixable:"code",messages:{[i6]:"Prefer `{{replacement}}` over `{{description}}`."}}}),oo=Q(f);const os=e=>"function"==typeof e?.[Symbol.iterator];let od=class extends Error{};const oc={abort(){throw new od("Fix aborted.")}};function ol(e){return t=>{let r=e(t,oc);if(os(r))try{return[...r]}catch(e){if(e instanceof od)return;throw e}return r}}const of=new Set;function op(e){if(of.has(e))return e;let t=t=>{let r={},u=(e,t)=>{r[e]??=[],r[e].push(t)};for(let[r,n]of Object.entries(e(new Proxy(t,{get:(e,t,r)=>"on"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])u(r,t)}:"onExit"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])u(`${r}:exit`,t)}:Reflect.get(e,t,r)}))??{}))u(r,n);return Object.fromEntries(Object.entries(r).map(([e,r])=>[e,(...e)=>{for(let u of r)!function(e,t){if(e)for(let r of(os(e)||(e=[e]),e)){if(r.fix&&(r.fix=ol(r.fix)),Array.isArray(r.suggest))for(let e of r.suggest)e.fix&&(e.fix=ol(e.fix)),e.data={...r.data,...e.data};t.report(r)}}(u(...e),t)}]))};return of.add(t),t}function og(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:et(e)}},create:op(t.create)}}var om={loadRule:og,loadRules:function(){return Object.fromEntries(oo.readdirSync(ee.join(__dirname,".."),{withFileTypes:!0}).filter(e=>e.isFile()).map(e=>{let t=ee.basename(e.name,".js");return[t,og(t)]}))},checkVueTemplate:function(e,t){let{visitScriptBlock:r}={visitScriptBlock:!0,...t};e=op(e);let u=t=>{let u=e(t),{parserServices:n}=t.sourceCode;return n?.defineTemplateBodyVisitor?r?n.defineTemplateBodyVisitor(u,u):n.defineTemplateBodyVisitor(u):u};return of.add(u),u}};const{checkVueTemplate:oy}=om,{isNumberLiteral:oh,isBigIntLiteral:ob}=tI,ov="number-literal-case",ox=e=>{let t=e.toLowerCase();return t.startsWith("0x")&&(t="0x"+t.slice(2).toUpperCase()),t};var oE=Y({create:oy(()=>({Literal(e){let{raw:t}=e,r=t;if(oh(e)?r=ox(t):ob(e)&&(r=ox(t.slice(0,-1))+"n"),t!==r)return{node:e,messageId:ov,fix:t=>t.replaceText(e,r)}}})),meta:{type:"suggestion",docs:{description:"Enforce proper case for numeric literals."},fixable:"code",messages:{[ov]:"Invalid number literal casing."}}});const{GlobalReferenceTracker:oA}=a6,{replaceReferenceIdentifier:oD}=nr,{fixSpaceAroundKeyword:oC}=nr,oS="error",oF="suggestion",ow={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};var ok=Y({create:e=>{let{checkInfinity:t}={checkInfinity:!0,...e.options[0]},{sourceCode:r}=e,u=Object.keys(ow);return t||(u=u.filter(e=>"Infinity"!==e)),new oA({objects:u,handle:e=>(function({node:e,path:[t]},r){let{parent:u}=e,n=t;"Infinity"===t&&(n=o_(e)?"NEGATIVE_INFINITY":"POSITIVE_INFINITY");let a={node:e,messageId:oS,data:{description:t,property:n}};if("NEGATIVE_INFINITY"===n)return a.node=u,a.data.description="-Infinity",a.fix=function*(e){yield e.replaceText(u,"Number.NEGATIVE_INFINITY"),yield*oC(e,u,r)},a;let i=t=>oD(e,`Number.${n}`,t,r);return ow[t]?a.fix=i:a.suggest=[{messageId:oF,fix:i}],a})(e,r),filter:({node:e})=>!rO(e)}).createListeners(e)},meta:{type:"suggestion",docs:{description:"Prefer `Number` static properties over global ones."},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkInfinity:{type:"boolean",default:!0}}}],messages:{[oS]:"Prefer `Number.{{property}}` over `{{description}}`.",[oF]:"Replace `{{description}}` with `Number.{{property}}`."}}});const{getPropertyName:oP}=tr,{isNullLiteral:oT,isMethodCall:oI}=tI,oB="prefer-reflect-apply",oR=(e,t)=>(oT(e)||"ThisExpression"===e.type)&&("ArrayExpression"===t.type||"Identifier"===t.type&&"arguments"===t.name),oN=(e,t,r,u)=>`Reflect.apply(${e.getText(t)}, ${e.getText(r)}, ${e.getText(u)})`,oL=(e,t)=>{if("apply"===oP(e.callee)&&2===e.arguments.length&&oR(e.arguments[0],e.arguments[1]))return r=>r.replaceText(e,oN(t,e.callee.object,e.arguments[0],e.arguments[1]))},oO=(e,t)=>{if("call"===oP(e.callee)&&"apply"===oP(e.callee.object)&&"prototype"===oP(e.callee.object.object)&&e.callee.object.object.object?.type==="Identifier"&&"Function"===e.callee.object.object.object.name&&3===e.arguments.length&&oR(e.arguments[1],e.arguments[2]))return r=>r.replaceText(e,oN(t,e.arguments[0],e.arguments[1],e.arguments[2]))};var oj=Y({create:e=>({CallExpression(t){if(!oI(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,u=oL(t,r)||oO(t,r);if(u)return{node:t,messageId:oB,fix:u}}}),meta:{type:"suggestion",docs:{description:"Prefer `Reflect.apply()` over `Function#apply()`."},fixable:"code",messages:{[oB]:"Prefer `Reflect.apply()` over `Function#apply()`."}}});const{findVariable:oM}=tr,{fixSpaceAroundKeyword:o$}=nr,{isNewExpression:oz,isMemberExpression:oU}=tI,oq="prefer-set-size",oW=e=>oz(e,{name:"Set"});var oV=Y({create:e=>{let{sourceCode:t}=e;return{MemberExpression(e){if(!oU(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(oW(e))return!0;if("Identifier"!==e.type)return!1;let r=oM(t,e);if(!r||1!==r.defs.length)return!1;let[u]=r.defs;if("Variable"!==u.type||"const"!==u.kind)return!1;let n=u.node;return"VariableDeclarator"===n.type&&"Identifier"===n.id.type&&oW(u.node.init)}(r,t.getScope(r)))return{node:e.property,messageId:oq,fix:function(e,t){let{object:r,property:u}=t,n=r.elements[0].argument;if(!(e.getCommentsInside(r).length>e.getCommentsInside(n).length))return function*(a){yield a.replaceText(u,"size"),yield a.replaceText(r,e.getText(n)),yield*o$(a,t,e)}}(t,e)}}}},meta:{type:"suggestion",docs:{description:"Prefer using `Set#size` instead of `Array#length`."},fixable:"code",messages:{[oq]:"Prefer using `Set#size` instead of `Array#length`."}}}),oZ={exports:{}};a=String.fromCodePoint||(u=String.fromCharCode,n=Math.floor,function(){var e,t,r=[],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||n(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)),(a+1==i||r.length>16384)&&(o+=u.apply(null,r),r.length=0)}return o}),i={parse:function(e,t,r){function u(t){return t.raw=e.substring(t.range[0],t.range[1]),t}function n(e,t){return e.range[0]=t,u(e)}function i(e,t){return u({type:"anchor",kind:e,range:[X-t,X]})}function o(e,t,r,n){return u({type:"value",kind:e,codePoint:t,range:[r,n]})}function s(e,t,r,u){return u=u||0,o(e,t,X-(r.length+u),X)}function d(e){var t,r=e[0],u=r.charCodeAt(0);return K&&1===r.length&&u>=55296&&u<=56319&&(t=h().charCodeAt(0))>=56320&&t<=57343?o("symbol",(u-55296)*1024+t-56320+65536,++X-2,X):o("symbol",u,X-1,X)}function c(e,t,r,n,a){return null==n&&(r=X-1,n=X),u({type:"quantifier",min:e,max:t,greedy:!0,body:null,symbol:a,range:[r,n]})}function l(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&&U("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 g(t){t=t||1;var r=e.substring(X,X+t);return X+=t||1,r}function m(e){y(e)||U("character",e)}function y(t){if(e.indexOf(t,X)===X)return g(t.length)}function h(){return e[X]}function b(t){return e.indexOf(t,X)===X}function v(t){return e[X+1]===t}function x(t){var r=e.substring(X).match(t);return r&&(r.range=[],r.range[0]=X,g(r[0].length),r.range[1]=X),r}function E(){var e=[],t=X;for(e.push(A());y("|");)e.push(A());return 1===e.length?e[0]:u({type:"disjunction",body:e,range:[t,X]})}function A(){for(var t,a=[],s=X;t=function(){if(X>=e.length||b("|")||b(")"))return null;var t=y("^")?i("start",1):y("$")?i("end",1):y("\\b")?i("boundary",2):y("\\B")?i("not-boundary",2):D("(?=","lookahead","(?!","negativeLookahead");if(!t){var a=function(){if((t=x(/^[^^$\\.*+?()[\]{}|]/))||!K&&(t=x(/^(?:]|})/)))return d(t);if(y("."))return u({type:"dot",range:[X-1,X]});if(y("\\")){if(!(t=w())){if(!K&&"c"==h())return o("symbol",92,X-1,X);U("atomEscape")}return t}if(t=N())return t;if(r.lookbehind&&(t=D("(?<=","lookbehind","(?<!","negativeLookbehind")))return t;if(r.namedGroups&&y("(?<")){var t,n,a,i,s,c,l=I();m(">");var f=C("normal",l.range[0]-3);return f.name=l,f}else return r.modifiers&&e.indexOf("(?")==X&&":"!=e[X+2]?(a=X,g(2),i=x(/^[sim]+/),y("-")?(n=x(/^[sim]+/))||U("Invalid flags for modifiers group"):i||U("Invalid flags for modifiers group"),((s=(i=i?i[0]:"")+(n=n?n[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))&&U("flags cannot be duplicated for modifiers group"),m(":"),(c=C("ignore",a)).modifierFlags={enabling:i,disabling:n},c):D("(?:","ignore","(","normal")}();if(!a){var s,c,l=X;(s=S()||!1)&&(X=l,U("Expected atom")),!K&&(c=x(/^{/))?a=d(c):U("Expected atom")}t=a}return(s=S()||!1)?(s.body=p(t),n(s,t.range[0]),s):t}();)a.push(t);return 1===a.length?a[0]:u({type:"alternative",body:a,range:[s,X]})}function D(e,t,r,u){var n=null,a=X;if(y(e))n=t;else{if(!y(r))return!1;n=u}return C(n,a)}function C(e,t){var r=E();r||U("Expected disjunction"),m(")");var n=u({type:"group",behavior:e,body:p(r),range:[t,X]});return"normal"==e&&V&&W++,n}function S(){var e,t,r,u,n=X;return y("*")?e=c(0,void 0,void 0,void 0,"*"):y("+")?e=c(1,void 0,void 0,void 0,"+"):y("?")?e=c(0,1,void 0,void 0,"?"):(u=x(/^\{([0-9]+)\}/))?e=c(t=parseInt(u[1],10),t,u.range[0],u.range[1]):(u=x(/^\{([0-9]+),\}/))?e=c(t=parseInt(u[1],10),void 0,u.range[0],u.range[1]):(u=x(/^\{([0-9]+),([0-9]+)\}/))&&((t=parseInt(u[1],10))>(r=parseInt(u[2],10))&&U("numbers out of order in {} quantifier","",n,X),e=c(t,r,u.range[0],u.range[1])),(t&&!Number.isSafeInteger(t)||r&&!Number.isSafeInteger(r))&&U("iterations outside JS safe integer range in quantifier","",n,X),e&&y("?")&&(e.greedy=!1,e.range[1]+=1),e}function F(e){if(K){var t,r;if("unicodeEscape"==e.kind&&(t=e.codePoint)>=55296&&t<=56319&&b("\\")&&v("u")){var n=X;X++;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)):X=n}}return e}function w(e){var t,a,i=X;if(a=function(e){var t,r,a=X;if(t=x(/^(?!0)\d+/)){r=t[0];var i,o=parseInt(t[0],10);return o<=W&&!e?u({type:"reference",matchIndex:parseInt(i=t[0],10),range:[X-1-i.length,X]}):(q.push(o),V?Z=!0:_(a,X),g(-t[0].length),t=x(/^[0-7]{1,3}/))?s("octal",parseInt(t[0],8),t[0],1):n(t=d(x(/^[89]/)),t.range[0]-1)}return!!(t=x(/^[0-7]{1,3}/))&&(("0"!==(r=t[0])&&_(a,X),/^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(">"),u({type:"reference",name:e,range:[e.range[0]-3,X]})}}())return a;if(e){if(y("b"))return s("singleEscape",8,"\\b");if(y("B"))U("\\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&&y("-"))return s("singleEscape",45,"\\-")}return((t=x(/^[dDsSwW]/))?u({type:"characterClassEscape",value:t[0],range:[X-2,X]}):r.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]}):!!(r.unicodeSet&&H&&y("q{"))&&function(){var e=X-3,t=[];do t.push(function(){for(var e,t=[],r=X;e=M();)t.push(e);return u({type:"classString",characters:t,range:[r,X]})}());while(y("|"));return m("}"),u({type:"classStrings",strings:t,range:[e,X]})}())||P()}function _(e,t){K&&U("Invalid decimal escape in unicode mode",null,e,t)}function k(){var e;return(e=x(/^u([0-9a-fA-F]{4})/))?F(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 P(){var e,t,u,n=X;if(u=x(/^[fnrtv]/)){var a=0;switch(u[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,"\\"+u[0])}return(u=x(/^c([a-zA-Z])/))?s("controlLetter",u[1].charCodeAt(0)%32,u[1],2):(u=x(/^x([0-9a-fA-F]{2})/))?s("hexadecimalEscape",parseInt(u[1],16),u[1],2):(u=k())?((!u||u.codePoint>1114111)&&U("Invalid escape sequence",null,n,X),u):(t=h(),K&&/[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/.test(t)||!K&&"c"!==t?"k"===t&&r.lookbehind?null:s("identifier",(e=g()).charCodeAt(0),e,1):null)}function T(t){var r=h(),u=X;if("\\"===r){g();var n=k();return n&&t(n.codePoint)||U("Invalid escape sequence",null,u,X),a(n.codePoint)}var i=r.charCodeAt(0);if(i>=55296&&i<=56319){var o=(r+=e[X+1]).charCodeAt(1);o>=56320&&o<=57343&&(i=(i-55296)*1024+o-56320+65536)}if(t(i))return g(),i>65535&&g(),r}function I(){var e,t=X,r=T(B);for(r||U("Invalid identifier");e=T(R);)r+=e;return u({type:"identifier",value:r,range:[t,X]})}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(a(e))}function R(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(a(e))}function N(){var e,t=X;return(e=x(/^\[\^/))?(e=L(),m("]"),l(e,!0,t,X)):y("[")?(e=L(),m("]"),l(e,!1,t,X)):null}function L(){var e,t;return b("]")?{kind:"union",body:[]}:H?function(){var e,t=[],r=j(!0);for(t.push(r),e="classRange"===r.type?"union":b("&")?"intersection":b("-")?"subtraction":"union";!b("]");)"intersection"===e?(m("&"),m("&"),b("&")&&U("&& cannot be followed by &. Wrap it in brackets: &&[&].")):"subtraction"===e&&(m("-"),m("-")),t.push(r=j("union"===e));return{kind:e,body:t}}():((t=O())||U("classAtom"),(e=b("]")?[t]:function e(t){if(b("-")&&!v("]")){r=t.range[0],i=d(y("-")),(a=O())||U("classAtom"),u=X;var r,u,n,a,i,o,s=L();return(s||U("classRanges"),"codePoint"in t&&"codePoint"in a?n=[f(t,a,r,u)]:K?U("invalid character class"):n=[t,i,a],"empty"===s.type)?n:n.concat(s.body)}return(o=O())||U("classAtom"),(n=b("]")?o:e(o))||U("nonEmptyClassRangesNoDash"),[t].concat(n)}(t))||U("nonEmptyClassRanges"),{kind:"union",body:e})}function O(){var e;return y("-")?d("-"):(e=x(/^[^\\\]-]/))?d(e[0]):y("\\")?((e=w(!0))||U("classEscape"),F(e)):void 0}function j(e){var t,r,u=X;if(y("\\")){if(r=w(!0))t=r;else{if(r=z())return r;U("Invalid escape","\\"+h(),u)}}else if(r=$())t=r;else{if(r=N())return r;U("Invalid character",h())}if(e&&b("-")&&!v("-")){if(m("-"),r=M())return f(t,r,u,X);U("Invalid range end",h())}return t}function M(){if(y("\\")){var e,t=X;if(e=z())return e;U("Invalid escape","\\"+h(),t)}return $()}function $(){var e;if(e=x(/^[^()[\]{}/\-\\|]/))return d(e)}function z(){var e;if(y("b"))return s("singleEscape",8,"\\b");if(y("B"))U("\\B not possible inside of ClassContents","",X-2);else if(e=x(/^[&\-!#%,:;<=>@_`~]/))return s("identifier",e[0].codePointAt(0),e[0]);else if(e=P())return e;else return null}function U(t,r,u,n){u=null==u?X:u,n=null==n?u:n;var a=Math.max(0,u-10),i=Math.min(n+10,e.length),o=" "+e.substring(a,i),s=" "+Array(u-a+1).join(" ")+"^";throw SyntaxError(t+" at position "+u+(r?": "+r:"")+"\n"+o+"\n"+s)}r||(r={});var q=[],W=0,V=!0,Z=!1,G=-1!==(t||"").indexOf("u"),H=-1!==(t||"").indexOf("v"),K=G||H,X=0;if(H&&!r.unicodeSet)throw Error('The "v" flag is only supported when the .unicodeSet option is enabled.');if(G&&H)throw Error('The "u" and "v" flags are mutually exclusive.');""===(e=String(e))&&(e="(?:)");var J=E();return(J.range[1]!==e.length&&U("Could not parse entire input - got stuck","",J.range[1]),Z=Z||q.some(function(e){return e<=W}))?(X=0,V=!1,E()):J}},oZ.exports?oZ.exports=i:window.regjsparser=i;var oG=oZ.exports;const{getStaticValue:oH}=tr,{parse:oK}=oG,{isRegexLiteral:oX,isNewExpression:oJ,isMethodCall:oY}=tI,oQ="method",o0="pattern",o1=(e,t)=>{if(oX(e))return e.regex.flags.includes("g");if(oJ(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=oH(e,t);if(!r)return!1;let{value:u}=r;return"[object RegExp]"===Object.prototype.toString.call(u)&&u.global};var o3=Y({create:e=>({CallExpression(t){if(!oY(t,{methods:["replace","replaceAll"],argumentsLength:2,optionalCall:!1,optionalMember:!1}))return;let{arguments:[r],callee:{property:u}}=t;if(!o1(r,e.sourceCode.getScope(r)))return;let n=u.name,a=function(e){let t;if(!oX(e))return;let{pattern:r,flags:u}=e.regex;if("g"!==u.replace("u","").replace("v",""))return;try{t=oK(r,u,{unicodePropertyEscape:u.includes("u"),unicodeSet:u.includes("v"),namedGroups:!0,lookbehind:!0})}catch{return}let n="alternative"===t.type?t.body:[t];if(!n.some(e=>"value"!==e.type))return rI(String.fromCodePoint(...n.map(e=>e.codePoint)))}(r);if("replaceAll"===n){if(!a)return;return{node:r,messageId:o0,data:{replacement:a.length<20?a:"a string literal"},fix:e=>e.replaceText(r,a)}}return{node:u,messageId:oQ,*fix(e){yield e.insertTextAfter(u,"All"),a&&(yield e.replaceText(r,a))}}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#replaceAll()` over regex searches with the global flag."},fixable:"code",messages:{[oQ]:"Prefer `String#replaceAll()` over `String#replace()`.",[o0]:"This pattern can be replaced with {{replacement}}."}}});const{getStaticValue:o2}=tr,{getParenthesizedText:o4,getParenthesizedRange:o5}=tp,{replaceArgument:o8}=nr,{isNumberLiteral:o6,isMethodCall:o9}=tI,o7=e=>o6(e)?e.value:"UnaryExpression"===e.type&&"-"===e.operator?-o7(e.argument):void 0,se=e=>e?.type==="MemberExpression"&&!1===e.computed&&"Identifier"===e.property.type&&"length"===e.property.name;var st=Y({create:e=>({CallExpression(t){if(!o9(t,{methods:["substr","substring"]}))return;let r=t.callee.property.name;return{node:t,messageId:r,*fix(u,{abort:n}){if(yield u.replaceText(t.callee.property,"slice"),0!==t.arguments.length){if(t.arguments.length>2||t.arguments.some(e=>"SpreadElement"===e.type))return n();yield*("substr"===r?function*({node:e,fixer:t,context:r,abort:u}){let n=e.arguments,[a,i]=n;if(!i)return;let{sourceCode:o}=r,s=o.getScope(e),d=o2(a,s),c=o5(i,o),l=e=>o8(t,i,e,o);if(d?.value===0){if(o6(i)||se(i))return;if("number"==typeof o7(i)){yield l(Math.max(0,o7(i)));return}yield t.insertTextBeforeRange(c,"Math.max(0, "),yield t.insertTextAfterRange(c,")");return}if(n.every(e=>o6(e))){yield l(a.value+i.value);return}if(n.every(e=>nY(e,s))){let e=o4(a,o);yield t.insertTextBeforeRange(c,`${e} + `);return}return u()}:function*({node:e,fixer:t,context:r,abort:u}){let{sourceCode:n}=r,[a,i]=e.arguments,o=a?o7(a):void 0,s=o4(a,n),d=e=>o8(t,a,e,n);if(!i){if(se(a))return;if(void 0!==o){yield d(Math.max(0,o));return}let e=o5(a,n);yield t.insertTextBeforeRange(e,"Math.max(0, "),yield t.insertTextAfterRange(e,")");return}let c=o7(i),l=o4(i,n),f=e=>o8(t,i,e,n);if(void 0!==o&&void 0!==c){let e=[Math.max(0,o),Math.max(0,c)];o>c&&e.reverse(),e[0]!==o&&(yield d(e[0])),e[1]!==c&&(yield f(e[1]));return}if(0===o||0===c){yield d(0),yield f(`Math.max(0, ${0===o?l:s})`);return}return u()})({node:t,fixer:u,context:e,abort:n})}}}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#slice()` over `String#substr()` and `String#substring()`."},fixable:"code",messages:{substr:"Prefer `String#slice()` over `String#substr()`.",substring:"Prefer `String#slice()` over `String#substring()`."}}});const{isMethodCall:sr}=tI,su="prefer-string-trim-start-end";var sn=Y({create:()=>({CallExpression(e){if(!sr(e,{methods:["trimLeft","trimRight"],argumentsLength:0,optionalCall:!1}))return;let t=e.callee.property,r=t.name,u="trimLeft"===r?"trimStart":"trimEnd";return{node:t,messageId:su,data:{method:r,replacement:u},fix:e=>e.replaceText(t,u)}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`."},fixable:"code",messages:{[su]:"Prefer `String#{{replacement}}()` over `String#{{method}}()`."}}});const{isParenthesized:sa,getParenthesizedRange:si,toLocation:so}=uy,ss="no-unreadable-iife";var sd=Y({create:e=>({CallExpression(t){let{sourceCode:r}=e;if("ArrowFunctionExpression"===t.callee.type&&"BlockStatement"!==t.callee.body.type&&sa(t.callee.body,r))return{node:t,loc:so(si(t.callee.body,r),r),messageId:ss}}}),meta:{type:"suggestion",docs:{description:"Disallow unreadable IIFEs."},hasSuggestions:!1,messages:{[ss]:"IIFE with parenthesized arrow function body is considered unreadable."}}});const{switchCallExpressionToNewExpression:sc}=nr,sl="throw-new-error",sf=/^(?:[A-Z][\da-z]*)*Error$/;var sp=Y({create:e=>({CallExpression(t){if(!("ThrowStatement"===t.parent.type&&t.parent.argument===t))return;let{callee:r}=t;if("Identifier"===r.type&&sf.test(r.name)||"MemberExpression"===r.type&&!r.computed&&"Identifier"===r.property.type&&sf.test(r.property.name))return{node:t,messageId:sl,fix:r=>sc(t,e.sourceCode,r)}}}),meta:{type:"suggestion",docs:{description:"Require `new` when throwing an error."},fixable:"code",messages:{[sl]:"Use `new` when throwing an error."}}}),sg=/[|\\{}()[\]^$+*?.]/g,sm=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 sy=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(sg,"\\$&")},sh=(e,t)=>!t||t.split("").every(t=>e.includes(t));function sb(e){return e?sv[e.type](e):""}var sv={RegExp:function(e){return"/"+sb(e.body)+"/"+e.flags},Alternative:function(e){return(e.expressions||[]).map(sb).join("")},Disjunction:function(e){return sb(e.left)+"|"+sb(e.right)},Group:function(e){var t=sb(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=sb(e.assertion);if(e.negative)return"(?!"+t+")";return"(?="+t+")";case"Lookbehind":var r=sb(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(sb).join("");return e.negative?"[^"+t+"]":"["+t+"]"},ClassRange:function(e){return sb(e.from)+"-"+sb(e.to)},Repetition:function(e){return""+sb(e.expression)+sb(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+"}"}},sx={generate:sb},sE={General_Category:"gc",Script:"sc",Script_Extensions:"scx"},sA=sk(sE),sD={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"},sC=sk(sD),sS={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"},sF=sk(sS),sw={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"},s_=sk(sw);function sk(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var u=e[r];if(Array.isArray(u))for(var n=0;n<u.length;n++)t[u[n]]=r;else t[u]=r}return t}function sP(e){return sS.hasOwnProperty(e)||sF.hasOwnProperty(e)}var sT=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],u=!0,n=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(u=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);u=!0);}catch(e){n=!0,a=e}finally{try{!u&&o.return&&o.return()}finally{if(n)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function sI(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 sB=void 0,sR={},sN=void 0,sL=void 0;function sO(e,t){return sR.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 sj=[[-1,1,function(e,t){sL=sO(t,t),sN=e}],[0,4,function(e,t,r,u,n,a,i,o){sL=sO(n,o),sN=s8({type:"RegExp",body:t,flags:function(e){var t=new Set,r=!0,u=!1,n=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){u=!0,n=e}finally{try{!r&&i.return&&i.return()}finally{if(u)throw n}}return e.split("").sort().join("")}(u)},s6(n,o||i))}],[1,1,function(e,t){sL=sO(t,t),sN=e}],[1,0,function(){sL=null,sN=""}],[2,1,function(e,t){sL=sO(t,t),sN=e}],[2,2,function(e,t,r,u){sL=sO(r,u),sN=e+t}],[3,1,function(e,t){sL=sO(t,t),sN=e}],[4,1,function(e,t){sL=sO(t,t),sN=e}],[4,3,function(e,t,r,u,n,a){sL=sO(u,a);var i=null;n&&(i=s6(u||n,a||n)),sN=s8({type:"Disjunction",left:e,right:r},i)}],[5,1,function(e,t){if(sL=sO(t,t),0===e.length){sN=null;return}sN=1===e.length?s8(e[0],sL):s8({type:"Alternative",expressions:e},sL)}],[6,0,function(){sL=null,sN=[]}],[6,2,function(e,t,r,u){sL=sO(r,u),sN=e.concat(t)}],[7,1,function(e,t){sL=sO(t,t),sN=s8(Object.assign({type:"Assertion"},e),sL)}],[7,2,function(e,t,r,u){sL=sO(r,u),sN=e,t&&(sN=s8({type:"Repetition",expression:e,quantifier:t},sL))}],[8,1,function(e,t){sL=sO(t,t),sN={kind:"^"}}],[8,1,function(e,t){sL=sO(t,t),sN={kind:"$"}}],[8,1,function(e,t){sL=sO(t,t),sN={kind:"\\b"}}],[8,1,function(e,t){sL=sO(t,t),sN={kind:"\\B"}}],[8,3,function(e,t,r,u,n,a){sL=sO(u,a),sN={kind:"Lookahead",assertion:t}}],[8,3,function(e,t,r,u,n,a){sL=sO(u,a),sN={kind:"Lookahead",negative:!0,assertion:t}}],[8,3,function(e,t,r,u,n,a){sL=sO(u,a),sN={kind:"Lookbehind",assertion:t}}],[8,3,function(e,t,r,u,n,a){sL=sO(u,a),sN={kind:"Lookbehind",negative:!0,assertion:t}}],[9,1,function(e,t){sL=sO(t,t),sN=e}],[9,1,function(e,t){sL=sO(t,t),sN=e}],[9,1,function(e,t){sL=sO(t,t),sN=e}],[10,1,function(e,t){sN=sQ(e,"simple",sL=sO(t,t))}],[10,1,function(e,t){sL=sO(t,t),(sN=sQ(e.slice(1),"simple",sL)).escaped=!0}],[10,1,function(e,t){(sN=sQ(e,"unicode",sL=sO(t,t))).isSurrogatePair=!0}],[10,1,function(e,t){sN=sQ(e,"unicode",sL=sO(t,t))}],[10,1,function(e,t){sN=function(e,t){var r="P"===e[1],u=e.indexOf("="),n=e.slice(3,-1!==u?u:-1),a=void 0,i=-1===u&&sY.isGeneralCategoryValue(n),o=-1===u&&sY.isBinaryPropertyName(n);if(i)a=n,n="General_Category";else if(o)a=n;else{if(!sY.isValidName(n))throw SyntaxError("Invalid unicode property name: "+n+".");if(a=e.slice(u+1,-1),!sY.isValidValue(n,a))throw SyntaxError("Invalid "+n+" unicode property value: "+a+".")}return s8({type:"UnicodeProperty",name:n,value:a,negative:r,shorthand:i,binary:o,canonicalName:sY.getCanonicalName(n)||n,canonicalValue:sY.getCanonicalValue(a)||a},t)}(e,sL=sO(t,t))}],[10,1,function(e,t){sN=sQ(e,"control",sL=sO(t,t))}],[10,1,function(e,t){sN=sQ(e,"hex",sL=sO(t,t))}],[10,1,function(e,t){sN=sQ(e,"oct",sL=sO(t,t))}],[10,1,function(e,t){var r,u;r=sL=sO(t,t),sN=(u=Number(e.slice(1)))>0&&u<=sG?s8({type:"Backreference",kind:"number",number:u,reference:u},r):sQ(e,"decimal",r)}],[10,1,function(e,t){sN=sQ(e,"meta",sL=sO(t,t))}],[10,1,function(e,t){sN=sQ(e,"meta",sL=sO(t,t))}],[10,1,function(e,t){sL=sO(t,t),sN=function(e,t){var r=e.slice(3,-1),u=s5(r);if(sH.hasOwnProperty(u))return s8({type:"Backreference",kind:"name",number:sH[u],reference:u,referenceRaw:r},t);var n=null,a=null,i=null,o=null;t&&(n=t.startOffset,a=t.startLine,i=t.endLine,o=t.startColumn);var s=/^[\w$<>]/,d=void 0,c=[sQ(e.slice(1,2),"simple",n?{startLine:a,endLine:i,startColumn:o,startOffset:n,endOffset:n+=2,endColumn:o+=2}:null)];for(c[0].escaped=!0,e=e.slice(2);e.length>0;){var l=null;(l=e.match(s0))||(l=e.match(s1))?(n&&(d={startLine:a,endLine:i,startColumn:o,startOffset:n,endOffset:n+=l[0].length,endColumn:o+=l[0].length}),c.push(sQ(l[0],"unicode",d)),e=e.slice(l[0].length)):(l=e.match(s))&&(n&&(d={startLine:a,endLine:i,startColumn:o,startOffset:n,endOffset:++n,endColumn:++o}),c.push(sQ(l[0],"simple",d)),e=e.slice(1))}return c}(e,t)}],[11,1,function(e,t){sL=sO(t,t),sN=e}],[11,0],[12,1,function(e,t){sL=sO(t,t),sN=e}],[12,2,function(e,t,r,u){sL=sO(r,u),e.greedy=!1,sN=e}],[13,1,function(e,t){sN=s8({type:"Quantifier",kind:e,greedy:!0},sL=sO(t,t))}],[13,1,function(e,t){sN=s8({type:"Quantifier",kind:e,greedy:!0},sL=sO(t,t))}],[13,1,function(e,t){sN=s8({type:"Quantifier",kind:e,greedy:!0},sL=sO(t,t))}],[13,1,function(e,t){sL=sO(t,t);var r=sX(e);sN=s8({type:"Quantifier",kind:"Range",from:r[0],to:r[0],greedy:!0},sL)}],[13,1,function(e,t){sL=sO(t,t),sN=s8({type:"Quantifier",kind:"Range",from:sX(e)[0],greedy:!0},sL)}],[13,1,function(e,t){sL=sO(t,t);var r=sX(e);sN=s8({type:"Quantifier",kind:"Range",from:r[0],to:r[1],greedy:!0},sL)}],[14,1,function(e,t){sL=sO(t,t),sN=e}],[14,1,function(e,t){sL=sO(t,t),sN=e}],[15,3,function(e,t,r,u,n,a){sL=sO(u,a);var i=String(e),o=s5(i);if(!sR.options.allowGroupNameDuplicates&&sH.hasOwnProperty(o))throw SyntaxError('Duplicate of the named group "'+o+'".');sH[o]=e.groupNumber,sN=s8({type:"Group",capturing:!0,name:o,nameRaw:i,number:e.groupNumber,expression:t},sL)}],[15,3,function(e,t,r,u,n,a){sL=sO(u,a),sN=s8({type:"Group",capturing:!0,number:e.groupNumber,expression:t},sL)}],[16,3,function(e,t,r,u,n,a){sN=s8({type:"Group",capturing:!1,expression:t},sL=sO(u,a))}],[17,3,function(e,t,r,u,n,a){sN=s8({type:"CharacterClass",negative:!0,expressions:t},sL=sO(u,a))}],[17,3,function(e,t,r,u,n,a){sN=s8({type:"CharacterClass",expressions:t},sL=sO(u,a))}],[18,0,function(){sL=null,sN=[]}],[18,1,function(e,t){sL=sO(t,t),sN=e}],[19,1,function(e,t){sL=sO(t,t),sN=[e]}],[19,2,function(e,t,r,u){sL=sO(r,u),sN=[e].concat(t)}],[19,4,function(e,t,r,u,n,a,i,o){sL=sO(n,o),sJ(e,r),sN=[s8({type:"ClassRange",from:e,to:r},s6(n,i))],u&&(sN=sN.concat(u))}],[20,1,function(e,t){sL=sO(t,t),sN=e}],[20,2,function(e,t,r,u){sL=sO(r,u),sN=[e].concat(t)}],[20,4,function(e,t,r,u,n,a,i,o){sL=sO(n,o),sJ(e,r),sN=[s8({type:"ClassRange",from:e,to:r},s6(n,i))],u&&(sN=sN.concat(u))}],[21,1,function(e,t){sN=sQ(e,"simple",sL=sO(t,t))}],[21,1,function(e,t){sL=sO(t,t),sN=e}],[22,1,function(e,t){sL=sO(t,t),sN=e}],[22,1,function(e,t){sN=sQ(e,"meta",sL=sO(t,t))}]],sM={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"},s$=[{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"}],sz=[],sU=void 0,sq=[[/^#[^\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 s2(sB.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&&"\\-"===sB);else if("u"===e||"xu"===e||"u_class"===e)throw SyntaxError("invalid Unicode escape "+sB);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 s2(sB=sB.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"}]],sW={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]},sV={type:"$",value:""};sU={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(sV);for(var e=this._string.slice(this._cursor),t=sW[this.getCurrentState()],r=0;r<t.length;r++){var u=sq[t[r]],n=this._match(e,u[0]);if(""===e&&""===n&&this._cursor++,null!==n){(sB=n).length;var a=u[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,sI(o))}return this.onToken(this._toToken(a,sB))}}if(this.isEOF())return this._cursor++,sV;this.throwUnexpectedToken(e[0],this._currentLine,this._currentColumn)},throwUnexpectedToken:function(e,t,r){var u=this._string.split("\n")[t-1],n="";throw u&&(n="\n\n"+u+"\n"+" ".repeat(r)+"^\n"),SyntaxError(n+'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}},sR.lexer=sU,sR.tokenizer=sU,sR.options={captureLocations:!0};var sZ={setOptions:function(e){return sR.options=e,this},getOptions:function(){return sR.options},parse:function(e,t){if(!sU)throw Error("Tokenizer instance wasn't specified.");sU.initString(e);var r=sR.options;t&&(sR.options=Object.assign({},sR.options,t)),sZ.onParseBegin(e,sU,sR.options),sz.length=0,sz.push(0);var u=sU.getNextToken(),n=null;do{u||(sR.options=r,s7());var a=sz[sz.length-1],i=sM[u.type];s$[a].hasOwnProperty(i)||(sR.options=r,s9(u));var o=s$[a][i];if("s"===o[0]){var s=null;sR.options.captureLocations&&(s={startOffset:u.startOffset,endOffset:u.endOffset,startLine:u.startLine,endLine:u.endLine,startColumn:u.startColumn,endColumn:u.endColumn}),n=this.onShift(u),sz.push({symbol:sM[n.type],semanticValue:n.value,loc:s},Number(o.slice(1))),u=sU.getNextToken()}else if("r"===o[0]){var d=sj[o.slice(1)],c="function"==typeof d[2],l=c?[]:null,f=c&&sR.options.captureLocations?[]:null;if(0!==d[1])for(var p=d[1];p-- >0;){sz.pop();var g=sz.pop();c&&(l.unshift(g.semanticValue),f&&f.unshift(g.loc))}var m={symbol:d[0]};if(c){sB=n?n.value:null,n&&n.value.length;var y=null!==f?l.concat(f):l;d[2].apply(d,sI(y)),m.semanticValue=sN,f&&(m.loc=sL)}var h=sz[sz.length-1],b=d[0];sz.push(m,s$[h][b])}else if("acc"===o){sz.pop();var v=sz.pop();if((1!==sz.length||0!==sz[0]||sU.hasMoreTokens())&&(sR.options=r,s9(u)),v.hasOwnProperty("semanticValue"))return sR.options=r,sZ.onParseEnd(v.semanticValue),v.semanticValue;return sZ.onParseEnd(),sR.options=r,!0}}while(sU.hasMoreTokens()||sz.length>1)},setTokenizer:function(e){return sU=e,sZ},getTokenizer:function(){return sU},onParseBegin:function(e,t,r){},onParseEnd:function(e){},onShift:function(e){return e}},sG=0,sH={},sK="";function sX(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 sJ(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")}sZ.onParseBegin=function(e,t){sK=e,sG=0,sH={};var r=e.lastIndexOf("/"),u=e.slice(r);u.includes("x")&&u.includes("u")?t.pushState("xu"):(u.includes("x")&&t.pushState("x"),u.includes("u")&&t.pushState("u"))},sZ.onShift=function(e){return("L_PAREN"===e.type||"NAMED_CAPTURE_GROUP"===e.type)&&(e.value=new String(e.value),e.value.groupNumber=++sG),e};var sY={isValidName:function(e){return sE.hasOwnProperty(e)||sA.hasOwnProperty(e)||sD.hasOwnProperty(e)||sC.hasOwnProperty(e)},isValidValue:function(e,t){return"General_Category"===e||"gc"==e?sP(t):!!("Script"===e||"Script_Extensions"===e||"sc"===e||"scx"===e)&&(sw.hasOwnProperty(t)||s_.hasOwnProperty(t))},isGeneralCategoryValue:sP,isBinaryPropertyName:function(e){return sD.hasOwnProperty(e)||sC.hasOwnProperty(e)},getCanonicalName:function(e){return sA.hasOwnProperty(e)?sA[e]:sC.hasOwnProperty(e)?sC[e]:null},getCanonicalValue:function(e){return sF.hasOwnProperty(e)?sF[e]:s_.hasOwnProperty(e)?s_[e]:sC.hasOwnProperty(e)?sC[e]:null}};function sQ(e,t,r){var u=void 0,n=void 0;switch(t){case"decimal":u=String.fromCodePoint(n=Number(e.slice(1)));break;case"oct":u=String.fromCodePoint(n=parseInt(e.slice(1),8));break;case"hex":case"unicode":if(e.lastIndexOf("\\u")>0){var a=sT(e.split("\\u").slice(1),2),i=a[0],o=a[1];u=String.fromCodePoint(n=((i=parseInt(i,16))-55296)*1024+((o=parseInt(o,16))-56320)+65536)}else{if((n=parseInt(e.slice(2).replace("{",""),16))>1114111)throw SyntaxError("Bad character escape sequence: "+e);u=String.fromCodePoint(n)}break;case"meta":switch(e){case"\\t":n=(u=" ").codePointAt(0);break;case"\\n":n=(u="\n").codePointAt(0);break;case"\\r":n=(u="\r").codePointAt(0);break;case"\\v":n=(u="\v").codePointAt(0);break;case"\\f":n=(u="\f").codePointAt(0);break;case"\\b":n=(u="\b").codePointAt(0);case"\\0":u="\0",n=0;case".":u=".",n=NaN;break;default:n=NaN}break;case"simple":n=(u=e).codePointAt(0)}return s8({type:"Char",value:e,kind:t,symbol:u,codePoint:n},r)}var s0=/^\\u[0-9a-fA-F]{4}/,s1=/^\\u\{[0-9a-fA-F]{1,}\}/,s3=/\\u\{[0-9a-fA-F]{1,}\}/;function s2(e,t){if(s3.test(e)&&!("u"===t||"xu"===t||"u_class"===t))throw SyntaxError('invalid group Unicode name "'+e+'", use `u` flag.');return e}var s4=/\\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 s5(e){return e.replace(RegExp(s4,"g"),function(e,t,r,u,n,a,i){return t?String.fromCodePoint(parseInt(t,16),parseInt(r,16)):u?String.fromCodePoint(parseInt(u,16)):n?String.fromCodePoint(parseInt(n,16)):a?String.fromCodePoint(parseInt(a,16)):i?String.fromCodePoint(parseInt(i,16)):e})}function s8(e,t){return sR.options.captureLocations&&(e.loc={source:sK.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 s6(e,t){return sR.options.captureLocations?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:null}function s9(e){"$"===e.type&&s7(),sU.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function s7(){!function(e){throw SyntaxError(e)}("Unexpected end of input.")}var de=sZ.parse.bind(sZ);sZ.parse=function(e,t){return de(""+e,t)},sZ.setOptions({captureLocations:!1});var dt=function(){function e(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,r,u){return r&&e(t.prototype,r),u&&e(t,u),t}}(),dr="expressions",du="expression",dn=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=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=u,this.index=n}return dt(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,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=void 0;return null!=r?(u||(u=dr),this._enforceProp(u),this.node[u][r]=t,n=e.getForNode(t,this,u,r)):(u||(u=du),this._enforceProp(u),this.node[u]=t,n=e.getForNode(t,this,u,null)),n}},{key:"appendChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t||(t=dr),this._enforceProp(t);var r=this.node[t].length;return this.setChild(e,r,t)}},{key:"insertChildAt",value:function(t,r){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:dr;this._enforceProp(u),this.node[u].splice(r,0,t),r<=e.getTraversingIndex()&&e.updateTraversingIndex(1),this._rebuildIndex(this.node,u)}},{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 u=e.getForNode(t),n=0;n<t[r].length;n++)e.getForNode(t[r][n],u,r,n).index=n}},{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,dr,t):this.node.expression&&0==t?e.getForNode(this.node.expression,this,du):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,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=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,u,-1==n?null:n));var a=e.registry.get(t);return null!==r&&(a.parentPath=r,a.parent=a.parentPath.node),null!==u&&(a.property=u),n>=0&&(a.index=n),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}dn.initRegistry(),dn.traversingIndexStack=[];var di=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{asNodes:!1};function u(e,t,r,u){var n=dn.getForNode(t);return dn.getForNode(e,n,r,u)}Array.isArray(t)||(t=[t]),t=t.filter(function(t){return"function"!=typeof t.shouldRun||t.shouldRun(e)}),dn.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,u=t.post,n=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(n?n(d,t):"$"===d[0])continue;var c=t[d];if(Array.isArray(c)){var l=0;for(dn.traversingIndexStack.push(l);l<c.length;)e(c[l],t,d,l),l=dn.updateTraversingIndex(1);dn.traversingIndexStack.pop()}else e(c,t,d)}}u&&u(t,a,i,o)}}(e,null)}(e,{pre:function(e,n,a,i){var o=void 0;r.asNodes||(o=u(e,n,a,i));var s=!0,d=!1,c=void 0;try{for(var l,f=t[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var p=l.value;if("function"==typeof p["*"]){if(o){if(!o.isRemoved()){var g=p["*"](o);if(!1===g)return!1}}else p["*"](e,n,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 y=m.call(p,o);if(!1===y)return!1}}else m.call(p,e,n,a,i)}}}catch(e){d=!0,c=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw c}}},post:function(e,n,a,i){if(e){var o=void 0;r.asNodes||(o=u(e,n,a,i));var s=!0,d=!1,c=void 0;try{for(var l,f=t[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var p=l.value,g=void 0;if("object"==typeof p[e.type]&&"function"==typeof p[e.type].post&&(g=p[e.type].post),g){if(o){if(!o.isRemoved()){var m=g.call(p,o);if(!1===m)return!1}}else g.call(p,e,n,a,i)}}}catch(e){d=!0,c=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw c}}}},skipProperty:function(e){return"loc"===e}})},ds=function(){function e(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,r,u){return r&&e(t.prototype,r),u&&e(t,u),t}}(),dd=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=sx.generate(this._ast.body)),this._source}},{key:"getFlags",value:function(){return this._ast.flags}},{key:"toString",value:function(){return this._string||(this._string=sx.generate(this._ast)),this._string}}]),e}(),dc=function(e,t){var r=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(r=sZ.parse(e,{captureLocations:!0})),di(r,t),new dd(r)},dl={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",u="￿";this._hasUFlag&&(r="\\u{10FFFF}",u="\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:u}}]})}}},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",""))}}},df="A".codePointAt(0),dp="Z".codePointAt(0),dg="a".codePointAt(0),dm="z".codePointAt(0),dy="0".codePointAt(0),dh="9".codePointAt(0),db="A".codePointAt(0),dv="Z".codePointAt(0),dx=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},dE=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 dA(e){return e.greedy&&("+"===e.kind||"*"===e.kind||"Range"===e.kind&&!e.to)}function dD(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 dC(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 dS=[function(e){return dF(e," ")}].concat(dC(["\\f","\\n","\\r","\\t","\\v"].map(function(e){return function(t){return dw(t,e)}})),dC([160,5760,8232,8233,8239,8287,12288,65279].map(function(e){return function(t){return d_(t,e)}})),[function(e){return"ClassRange"===e.type&&d_(e.from,8192)&&d_(e.to,8202)}]);function dF(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 dw(e,t){return dF(e,t,"meta")}function d_(e,t){return"Char"===e.type&&"unicode"===e.kind&&e.codePoint===t}function dk(e,t,r){for(var u=e,n=(r?u>=0:u<t.expressions.length)&&t.expressions[u];n&&"Char"===n.type&&"simple"===n.kind&&!n.escaped&&/\d/.test(n.value);)r?u--:u++,n=(r?u>=0:u<t.expressions.length)&&t.expressions[u];return Math.abs(e-u)}function dP(e,t){return e&&"Char"===e.type&&"simple"===e.kind&&!e.escaped&&e.value===t}function dT(e,t){var r=dI(e),u=dI(t);if(r===u){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 dI(e.to)-dI(t.to);if(dB(e)&&dB(t)||dR(e)&&dR(t))return e.value<t.value?-1:1}return r-u}function dI(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 dB(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 dR(e){return"Char"===e.type&&"control"===e.kind}function dN(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 dL(e){return e.codePoint>=48&&e.codePoint<=57}function dO(e,t){return dL(e)||e.codePoint>=65&&e.codePoint<=90||e.codePoint>=97&&e.codePoint<=122||"_"===e.value||t&&(383===e.codePoint||8490===e.codePoint)}function dj(e){return e&&"Char"===e.type&&!isNaN(e.codePoint)&&(dO(e,!1)||"unicode"===e.kind||"hex"===e.kind||"oct"===e.kind||"decimal"===e.kind)}var dM={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 d$(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 dz(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 dU=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||(u=r.from,n=r.to,u.codePoint>=dy&&u.codePoint<=dh&&n.codePoint>=dy&&n.codePoint<=dh||u.codePoint>=df&&u.codePoint<=dp&&n.codePoint>=df&&n.codePoint<=dp||u.codePoint>=dg&&u.codePoint<=dm&&n.codePoint>=dg&&n.codePoint<=dm))&&(a=t.codePoint)>=32&&a<=126){var u,n,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,u=e.node,n=e.parent;if(!isNaN(u.codePoint)&&(this._hasUFlag||!(u.codePoint>=4096))){if("ClassRange"===n.type){if(!this._AZClassRanges.has(n)&&(t=n.from,r=n.to,!(t.codePoint>=db)||!(t.codePoint<=dv)||!(r.codePoint>=db)||!(r.codePoint<=dv)))return;this._AZClassRanges.add(n)}var a=u.symbol.toLowerCase();a!==u.symbol&&(u.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 u={lead:(Math.floor((r-65536)/1024)+55296).toString(16),trail:((r-65536)%1024+56320).toString(16)},n=u.lead,a=u.trail;return"\\u"+"0".repeat(4-n.length)+n+"\\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,u),u.symbol=a,u.codePoint=a.codePointAt(0))}}}],["charClassRemoveDuplicates",{CharacterClass:function(e){for(var t=e.node,r={},u=0;u<t.expressions.length;u++){var n=e.getChild(u),a=n.jsonEncode();r.hasOwnProperty(a)&&(n.remove(),u--),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 u=dD(r.node.quantifier),n=u.from,a=u.to,i=dD(t.quantifier),o=i.from,s=i.to;if(r.node.quantifier.greedy!==t.quantifier.greedy&&!dA(r.node.quantifier)&&!dA(t.quantifier))return;t.quantifier.kind="Range",t.quantifier.from=n+o,a&&s?t.quantifier.to=a+s:delete t.quantifier.to,(dA(r.node.quantifier)||dA(t.quantifier))&&(t.quantifier.greedy=!0),r.remove()}else{if(!r.hasEqualSource(e.getChild()))return;dE(t.quantifier),r.remove()}}}}}],["quantifierRangeToSymbol",{Quantifier:function(e){if("Range"===e.node.kind){var t,r,u;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===(u=e.node).from&&1===u.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,u,n,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,u=e.node,n=null,a=null,i=null,o=null,s=null,d=null,u.expressions.forEach(function(u,c){dw(u,"\\d")?n=e.getChild(c):"ClassRange"===u.type&&"a"===u.from.value&&"z"===u.to.value?a=e.getChild(c):"ClassRange"===u.type&&"A"===u.from.value&&"Z"===u.to.value?i=e.getChild(c):"Char"===u.type&&"_"===u.value&&"simple"===u.kind?o=e.getChild(c):t&&r&&d_(u,383)?s=e.getChild(c):t&&r&&d_(u,8490)&&(d=e.getChild(c))}),n&&(a&&i||t&&(a||i))&&o&&(!r||!t||s&&d)&&(n.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<dS.length)&&dS.every(function(e){return t.expressions.some(function(t){return e(t)})})){var r=t.expressions.find(function(e){return dw(e,"\\n")});r.value="\\s",r.symbol=void 0,r.codePoint=NaN,t.expressions.map(function(t,r){return dS.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 u=t.expressions[r-1];return null==u||("Backreference"!==u.type||"number"!==u.kind)&&("Char"!==u.type||"decimal"!==u.kind)}(e)&&"Char"===(r=t.expressions[0]).type&&"\\b"!==r.value){var r,u,n,a,i=t.expressions[0],o=i.value,s=i.kind,d=i.escaped;if(t.negative){if(u=o,!/^\\[dwsDWS]$/.test(u))return;n=o,o=/[dws]/.test(n)?n.toUpperCase():n.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,u,n,a=e.node;a.escaped&&(t=this._hasXFlag,r=e.node.value,u=e.index,("CharacterClass"!==(n=e.parent).type&&"ClassRange"!==n.type?"{"===r?function(e,t){if(null==e)return!1;var r=dk(e+1,t),u=e+r+1,n=u<t.expressions.length&&t.expressions[u];if(r){if(dP(n,"}"))return!0;if(dP(n,","))return r=dk(u+1,t),dP(n=(u=u+r+1)<t.expressions.length&&t.expressions[u],"}")}return!1}(u,n):"}"===r?function(e,t){if(null==e)return!1;var r=dk(e-1,t,!0),u=e-r-1,n=u>=0&&t.expressions[u];return!!(r&&dP(n,"{"))||!!dP(n,",")&&(r=dk(u-1,t,!0),n=(u=u-r-1)<t.expressions.length&&t.expressions[u],r&&dP(n,"{"))}(u,n):!!(t&&/[ #]/.test(r))||/[*[()+?^$./\\|]/.test(r):"^"===r?0===u&&!n.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){dB(e)&&r.push(e.value)}),t.sort(dT);for(var u=0;u<t.length;u++){var n,a=t[u];if(function(e,t,r){for(var u=0;u<t.length;u++)if(function e(t,r,u){return"ClassRange"===t.type?e(t.from,r,u)&&e(t.to,r,u):!!("\\S"===r&&(dB(t,"\\w")||dB(t,"\\d"))||"\\D"===r&&(dB(t,"\\W")||dB(t,"\\s"))||"\\w"===r&&dB(t,"\\d")||"\\W"===r&&dB(t,"\\s"))||!("Char"!==t.type||isNaN(t.codePoint))&&("\\s"===r?dN(t):"\\S"===r?!dN(t):"\\d"===r?dL(t):"\\D"===r?!dL(t):"\\w"===r?dO(t,u):"\\W"===r&&!dO(t,u))}(e,t[u],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(dj(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[u-1])||(n=t[u+1])&&"ClassRange"===n.type&&dj(a)&&n.from.codePoint===a.codePoint+1&&(n.from=a,1))t.splice(u,1),u--;else{var i=function(e,t,r){if(!dj(e))return 0;for(var u=0;t>0;){var n=r[t],a=r[t-1];if(dj(a)&&a.codePoint===n.codePoint-1)u++,t--;else break}return u>1?(r[t]={type:"ClassRange",from:r[t],to:e},u):0}(a,u,t);t.splice(u-i+1,i),u-=i}}}}],["disjunctionRemoveDuplicates",{Disjunction:function(e){var t=e.node,r={},u=dx(t).filter(function(e){var t=e?dn.getForNode(e).jsonEncode():"null";return!r.hasOwnProperty(t)&&(r[t]=e,!0)});e.replace(u.reduce(function(e,t){return{type:"Disjunction",left:e,right:t}}))}}],["groupSingleCharsToCharClass",{Disjunction:function(e){var t=e.node,r=e.parent;if(dM[r.type]){var u=new Map;if(function e(t,r){if(!t)return!1;var u=t.type;if("Disjunction"===u){var n=t.left,a=t.right;return e(n,r)&&e(a,r)}if("Char"===u){if("meta"===t.kind&&"."===t.symbol)return!1;var i=t.value;return r.set(i,t),!0}return"CharacterClass"===u&&!t.negative&&t.expressions.every(function(t){return e(t,r)})}(t,u)&&u.size){var n={type:"CharacterClass",expressions:Array.from(u.keys()).sort().map(function(e){return u.get(e)})};dM[r.type](e.getParent(),n)}}}}],["removeEmptyGroup",{Group:function(e){var t=e.node,r=e.parent,u=e.getChild();t.capturing||u||("Repetition"===r.type?e.getParent().replace(t):"RegExp"!==r.type&&e.remove())}}],["ungroup",{Group:function(e){var t=e.node,r=e.parent,u=e.getChild();if(!t.capturing&&u&&function(e){var t=e.parent,r=e.index;if("Alternative"!==t.type)return!0;var u=t.expressions[r-1];return null==u||("Backreference"!==u.type||"number"!==u.kind)&&("Char"!==u.type||"decimal"!==u.kind)}(e)&&("Disjunction"!==u.node.type||"RegExp"===r.type)&&("Repetition"!==r.type||"Char"===u.node.type||"CharacterClass"===u.node.type)){if("Alternative"===u.node.type){var n=e.getParent();"Alternative"===n.node.type&&n.replace({type:"Alternative",expressions:[].concat(d$(r.expressions.slice(0,e.index)),d$(u.node.expressions),d$(r.expressions.slice(e.index+1)))})}else e.replace(u.node)}}}],["combineRepeatingPatterns",{Alternative:function(e){for(var t=e.node,r=1;r<t.expressions.length;){var u=e.getChild(r);if((r=Math.max(1,function(e,t,r){for(var u=e.node,n=Math.ceil(r/2),a=0;a<n;){var i=r-2*a-1,o=void 0,s=void 0;if(0===a?(o=t,s=e.getChild(i)):(o=dn.getForNode({type:"Alternative",expressions:[].concat(dz(u.expressions.slice(r-a,r)),[t.node])}),s=dn.getForNode({type:"Alternative",expressions:[].concat(dz(u.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,u,r)))>=t.expressions.length||(u=e.getChild(r),(r=Math.max(1,function(e,t,r){for(var u=e.node,n=0;n<r;){var a=e.getChild(n);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()),n+1===r?"Group"!==(o=t).node.type||o.node.capturing||(o=o.getChild()):o=dn.getForNode({type:"Alternative",expressions:[].concat(dz(u.expressions.slice(n+1,r+1)))}),i.hasEqualSource(o)){for(var s=n;s<r;s++)e.getChild(n+1).remove();return dE(a.node.quantifier),n}}n++}return r}(e,u,r)))>=t.expressions.length))break;u=e.getChild(r),r=Math.max(1,function(e,t,r){var u=e.node;if("Repetition"===t.node.type&&t.node.quantifier.greedy){var n=t.getChild(),a=void 0;"Group"!==n.node.type||n.node.capturing||(n=n.getChild());var i=void 0;if("Alternative"===n.node.type?(i=n.node.expressions.length,a=dn.getForNode({type:"Alternative",expressions:[].concat(dz(u.expressions.slice(r-i,r)))})):(i=1,"Group"!==(a=e.getChild(r-1)).node.type||a.node.capturing||(a=a.getChild())),a.hasEqualSource(n)){for(var o=r-i;o<r;o++)e.getChild(r-i).remove();return dE(t.node.quantifier),r-i}}return r}(e,u,r)),r++}}}]]),dq=function e(t){if(null===t||"object"!=typeof t)return t;var r=void 0;for(var u in r=Array.isArray(t)?[]:{},t)r[u]=e(t[u]);return r},dW=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],u=!0,n=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(u=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);u=!0);}catch(e){n=!0,a=e}finally{try{!u&&o.return&&o.return()}finally{if(n)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")},dV=function(){function e(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,r,u){return r&&e(t.prototype,r),u&&e(t,u),t}}(),dZ=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 dV(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 u in r)"ε*"!==u&&this._alphabet.add(u)}}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 u,n=this.getAcceptingStates()[Symbol.iterator]();!(e=(u=n.next()).done);e=!0){var a=u.value;this._acceptingStateNumbers.add(a.number)}}catch(e){t=!0,r=e}finally{try{!e&&n.return&&n.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 u(n){if(!t.has(n)){t.add(n),n.number=t.size,e._transitionTable[n.number]={},n.accepting&&e._acceptingStates.add(n);var a=n.getTransitions(),i=!0,o=!1,s=void 0;try{for(var d,c=a[Symbol.iterator]();!(i=(d=c.next()).done);i=!0){var l=d.value,f=dW(l,2),p=f[0],g=f[1],m=[];r.add(p);var y=!0,h=!1,b=void 0;try{for(var v,x=g[Symbol.iterator]();!(y=(v=x.next()).done);y=!0){var E=v.value;u(E),m.push(E.number)}}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}e._transitionTable[n.number][p]=m}}catch(e){o=!0,s=e}finally{try{!i&&c.return&&c.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}(),dG=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],u=!0,n=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(u=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);u=!0);}catch(e){n=!0,a=e}finally{try{!u&&o.return&&o.return()}finally{if(n)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function dH(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 dK=null,dX=function(){function e(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,r,u){return r&&e(t.prototype,r),u&&e(t,u),t}}();function dJ(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 dY=function(e){var t=e.getTransitionTable(),r=Object.keys(t),u=e.getAlphabet(),n=e.getAcceptingStateNumbers();dK={};var a=new Set;r.forEach(function(e){e=Number(e),n.has(e)?dK[e]=n:(a.add(e),dK[e]=a)});var i=[[a,n].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 u=e[r],n=t[r];if(u.size!==n.size||[].concat(dH(u)).sort().join(",")!==[].concat(dH(n)).sort().join(","))return!1}return!0}(o,s);)!function(){var e={},r=!0,n=!1,a=void 0;try{for(var d,c=o[Symbol.iterator]();!(r=(d=c.next()).done);r=!0){var l=d.value,f={},p=Array.isArray(l)?l:Array.from(l),g=p[0],m=p.slice(1);f[g]=new Set([g]);var y=!0,h=!1,b=void 0;try{e:for(var v,x=m[Symbol.iterator]();!(y=(v=x.next()).done);y=!0){var E=v.value,A=!0,D=!1,C=void 0;try{for(var S,F=Object.keys(f)[Symbol.iterator]();!(A=(S=F.next()).done);A=!0){var w=S.value;if(function(e,t,r,u){var n=!0,a=!1,i=void 0;try{for(var o,s=u[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var d=o.value;if(!function(e,t,r,u){if(!dK[e]||!dK[t])return!1;var n=r[e][u],a=r[t][u];return!n&&!a||dK[e].has(n)&&dK[t].has(a)}(e,t,r,d))return!1}}catch(e){a=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(a)throw i}}return!0}(E,w,t,u)){f[w].add(E),f[E]=f[w];continue e}}}catch(e){D=!0,C=e}finally{try{!A&&F.return&&F.return()}finally{if(D)throw C}}f[E]=new Set([E])}}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}Object.assign(e,f)}}catch(e){n=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(n)throw a}}dK=e;var _=new Set(Object.keys(e).map(function(t){return e[t]}));i.push([].concat(dH(_))),o=i[i.length-1],s=i[i.length-2]}();var d=new Map,c=1;o.forEach(function(e){return d.set(e,c++)});var l={},f=new Set,p=!0,g=!1,m=void 0;try{for(var y,h=d.entries()[Symbol.iterator]();!(p=(y=h.next()).done);p=!0){var b=y.value,v=dG(b,2),x=v[0],E=v[1];l[E]={};var A=!0,D=!1,C=void 0;try{for(var S,F=u[Symbol.iterator]();!(A=(S=F.next()).done);A=!0){var w=S.value;!function(e,t){var r=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;n.has(s)&&f.add(t)}}catch(e){u=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(u)throw a}}}(x,E);var _=void 0,k=!0,P=!1,T=void 0;try{for(var I,B=x[Symbol.iterator]();!(k=(I=B.next()).done)&&!(_=t[I.value][w]);k=!0);}catch(e){P=!0,T=e}finally{try{!k&&B.return&&B.return()}finally{if(P)throw T}}_&&(l[E][w]=d.get(dK[_]))}}catch(e){D=!0,C=e}finally{try{!A&&F.return&&F.return()}finally{if(D)throw C}}}}catch(e){g=!0,m=e}finally{try{!p&&h.return&&h.return()}finally{if(g)throw m}}return e.setTransitionTable(l),e.setAcceptingStateNumbers(f),e},dQ=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 dX(e,[{key:"minimize",value:function(){this.getTransitionTable(),this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._originalTransitionTable=this._transitionTable,dY(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 u=[t[r[0]]["ε*"]],n=this.getAlphabet(),a=this._nfa.getAcceptingStateNumbers(),i={};u.length>0;){var o=u.shift(),s=o.join(",");i[s]={};var d=!0,c=!1,l=void 0;try{for(var f,p=n[Symbol.iterator]();!(d=(f=p.next()).done);d=!0){var g=f.value,m=[];!function(t){var r=!0,u=!1,n=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){u=!0,n=e}finally{try{!r&&o.return&&o.return()}finally{if(u)throw n}}}(o);var y=!0,h=!1,b=void 0;try{for(var v,x=o[Symbol.iterator]();!(y=(v=x.next()).done);y=!0){var E=t[v.value][g];if(E){var A=!0,D=!1,C=void 0;try{for(var S,F=E[Symbol.iterator]();!(A=(S=F.next()).done);A=!0){var w=S.value;t[w]&&m.push.apply(m,dJ(t[w]["ε*"]))}}catch(e){D=!0,C=e}finally{try{!A&&F.return&&F.return()}finally{if(D)throw C}}}}}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}var _=new Set(m),k=[].concat(dJ(_));if(k.length>0){var P=k.join(",");i[s][g]=P,i.hasOwnProperty(P)||u.unshift(k)}}}catch(e){c=!0,l=e}finally{try{!d&&p.return&&p.return()}finally{if(c)throw l}}}return this._transitionTable=this._remapStateNumbers(i)}},{key:"_remapStateNumbers",value:function(e){var t={};this._originalTransitionTable=e;var r={};for(var u in Object.keys(e).forEach(function(e,r){t[e]=r+1}),e){var n=e[u],a={};for(var i in n)a[i]=t[n[i]];r[t[u]]=a}this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._acceptingStateNumbers=new Set;var o=!0,s=!1,d=void 0;try{for(var c,l=this._originalAcceptingStateNumbers[Symbol.iterator]();!(o=(c=l.next()).done);o=!0){var f=c.value;this._acceptingStateNumbers.add(t[f])}}catch(e){s=!0,d=e}finally{try{!o&&l.return&&l.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,u=this.getTransitionTable();e[r];)if(!(t=u[t][e[r++]]))return!1;return!!this.getAcceptingStateNumbers().has(t)}}]),e}(),d0=function(){function e(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,r,u){return r&&e(t.prototype,r),u&&e(t,u),t}}(),d1=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 d0(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}(),d3=function(){function e(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,r,u){return r&&e(t.prototype,r),u&&e(t,u),t}}(),d2=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),d3(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,u=!1,n=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){u=!0,n=e}finally{try{!r&&i.return&&i.return()}finally{if(u)throw n}}return!1}var o=e[0],s=e.slice(1),d=this.getTransitionsOnSymbol(o),c=!0,l=!1,f=void 0;try{for(var p,g=d[Symbol.iterator]();!(c=(p=g.next()).done);c=!0)if(p.value.matches(s))return!0}catch(e){l=!0,f=e}finally{try{!c&&g.return&&g.return()}finally{if(l)throw f}}var m=!0,y=!1,h=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){y=!0,h=e}finally{try{!m&&v.return&&v.return()}finally{if(y)throw h}}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 u=!0,n=!1,a=void 0;try{for(var i,o=t[Symbol.iterator]();!(u=(i=o.next()).done);u=!0){var s=i.value;r.has(s)||(r.add(s),s.getEpsilonClosure().forEach(function(e){return r.add(e)}))}}catch(e){n=!0,a=e}finally{try{!u&&o.return&&o.return()}finally{if(n)throw a}}}(),this._epsilonClosure}}]),t}(d1);function d4(e){var t=new d2,r=new d2({accepting:!0});return new dZ(t.addTransition(e,r),r)}var d5={alt:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),u=1;u<t;u++)r[u-1]=arguments[u];var n=!0,a=!1,i=void 0;try{for(var o,s=r[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var d,c=o.value;(d=e).out.accepting=!1,c.out.accepting=!0,d.out.addTransition("ε",c.in),e=new dZ(d.in,c.out)}}catch(e){a=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(a)throw i}}return e},char:d4,e:function(){return d4("ε")},or:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),u=1;u<t;u++)r[u-1]=arguments[u];var n=!0,a=!1,i=void 0;try{for(var o,s=r[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var d=o.value;e=function(e,t){var r=new d2,u=new d2;return r.addTransition("ε",e.in),r.addTransition("ε",t.in),u.accepting=!0,e.out.accepting=!1,t.out.accepting=!1,e.out.addTransition("ε",u),t.out.addTransition("ε",u),new dZ(r,u)}(e,d)}}catch(e){a=!0,i=e}finally{try{!n&&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 d2,r=new d2({accepting:!0});return t.addTransition("ε",e.in),t.addTransition("ε",r),e.out.accepting=!1,e.out.addTransition("ε",r),r.addTransition("ε",e.in),new dZ(t,r)},plusRep:function(e){return e.out.addTransition("ε",e.in),e},questionRep:function(e){return e.in.addTransition("ε",e.out),e}},d8=d5.alt,d6=d5.char,d9=d5.or,d7=d5.rep,ce=d5.plusRep,ct=d5.questionRep;function cr(e){if(e&&!cu[e.type])throw Error(e.type+" is not supported in NFA/DFA interpreter.");return e?cu[e.type](e):""}var cu={RegExp:function(e){if(""!==e.flags)throw Error("NFA/DFA: Flags are not supported yet.");return cr(e.body)},Alternative:function(e){var t=(e.expressions||[]).map(cr);return d8.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 d9(cr(e.left),cr(e.right))},Repetition:function(e){switch(e.quantifier.kind){case"*":return d7(cr(e.expression));case"+":return ce(cr(e.expression));case"?":return ct(cr(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 d6(e.value)},Group:function(e){return cr(e.expression)}},cn=function(e){var t=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(t=sZ.parse(e,{captureLocations:!0})),cr(t)},ca=function(){function e(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,r,u){return r&&e(t.prototype,r),u&&e(t,u),t}}(),ci=function(){function e(t,r){var u=r.flags,n=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=n,this.flags=u,this.source=a||t.source,this.dotAll=u.includes("s"),this.global=t.global,this.ignoreCase=t.ignoreCase,this.multiline=t.multiline,this.sticky=t.sticky,this.unicode=t.unicode}return ca(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 u=this._groups[r];t.groups[r]=t[u]}return t}}]),e}(),co=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.length>0?t:Object.keys(dl),u=void 0,n={};return r.forEach(function(t){if(!dl.hasOwnProperty(t))throw Error("Unknown compat-transform: "+t+". Available transforms are: "+Object.keys(dl).join(", "));var r=dl[t];e=(u=dc(e,r)).getAST(),"function"==typeof r.getExtra&&(n[t]=r.getExtra())}),u.setExtra(n),u},cs=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.whitelist,u=void 0===r?[]:r,n=t.blacklist,a=void 0===n?[]:n,i=(u.length>0?u:Array.from(dU.keys())).filter(function(e){return!a.includes(e)}),o=e;e instanceof RegExp&&(e=""+e),"string"==typeof e&&(o=sZ.parse(e));var s=new dd(o),d=void 0;do d=s.toString(),o=dq(s.getAST()),i.forEach(function(e){if(!dU.has(e))throw Error("Unknown optimization-transform: "+e+". Available transforms are: "+Array.from(dU.keys()).join(", "));var t=dU.get(e),r=dc(o,t);r.toString()!==s.toString()&&(r.toString().length<=s.toString().length?s=r:o=dq(s.getAST()))});while(s.toString()!==d);return s};const cd=(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 sm){let u=r[0],n=r[1];sh(t,n.flags)&&(e=e.replace(RegExp(sy(u),"g"),n.value))}return e},{optimize:cc}={parser:sZ,fa:{NFA:dZ,DFA:dQ,builders:d5,toNFA:function(e){return cn(e)},toDFA:function(e){return new dQ(this.toNFA(e))},test:function(e,t){return this.toDFA(e).matches(t)}},TransformResult:dd,parse:function(e,t){return sZ.parse(""+e,t)},traverse:function(e,t,r){return di(e,t,r)},transform:function(e,t){return dc(e,t)},generate:function(e){return sx.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 cs(e,{whitelist:t,blacklist:r.blacklist})},compatTranspile:function(e,t){return co(e,t)},exec:function(e,t){if("string"==typeof e){var r=this.compatTranspile(e),u=r.getExtra();e=u.namedCapturingGroups?new ci(r.toRegExp(),{flags:r.getFlags(),source:r.getSource(),groups:u.namedCapturingGroups}):r.toRegExp()}return e.exec(t)}},{isStringLiteral:cl,isNewExpression:cf,isRegexLiteral:cp}=tI,cg="better-regex",cm="better-regex/parse-error";var cy=Y({create:e=>{let{sortCharacterClasses:t}=e.options[0]||{},r=[];return!1===t&&r.push("charClassClassrangesMerge"),{Literal(e){if(!cp(e))return;let{raw:t,regex:u}=e;if(u.flags.includes("u")||u.flags.includes("v"))return;let n=t;try{n=cc(t,void 0,{blacklist:r}).toString()}catch(r){return{node:e,messageId:cm,data:{original:t,error:r.message}}}if(t===n)return;let a={node:e,messageId:cg,data:{original:t,optimized:n}};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,n)}):a},NewExpression(e){if(!cf(e,{name:"RegExp",minimumArguments:1}))return;let[t,r]=e.arguments;if(!cl(t))return;let u=t.value,n=cd(u,cl(r)?r.value:"");if(u!==n)return{node:e,messageId:cg,data:{original:u,optimized:n},fix:e=>e.replaceText(t,rI(n,t.raw.charAt(0)))}}}},meta:{type:"suggestion",docs:{description:"Improve regexes by making them shorter, consistent, and safer."},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{sortCharacterClasses:{type:"boolean",default:!0}}}],messages:{[cg]:"{{original}} can be optimized to {{optimized}}.",[cm]:"Problem parsing {{original}}: {{error}}"}}});const{replaceTemplateElement:ch}=nr,{isRegexLiteral:cb,isStringLiteral:cv}=tI,cx="escape-case",cE=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+})/g,cA=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+}|c[a-z])/g,cD=({node:e,original:t,regex:r=cE,fix:u})=>{let n=t.replace(r,e=>e.slice(0,1)+e.slice(1).toUpperCase());if(n!==t)return{node:e,messageId:cx,fix:t=>u?u(t,n):t.replaceText(e,n)}};var cC=Y({create:e=>{e.on("Literal",e=>{if(cv(e))return cD({node:e,original:e.raw})}),e.on("Literal",e=>{if(cb(e))return cD({node:e,original:e.raw,regex:cA})}),e.on("TemplateElement",e=>cD({node:e,original:e.value.raw,fix:(t,r)=>ch(t,e,r)}))},meta:{type:"suggestion",docs:{description:"Require escape sequences to use uppercase values."},fixable:"code",messages:{[cx]:"Use uppercase characters for the value of the escape sequence."}}});const{replaceTemplateElement:cS}=nr,{isStringLiteral:cF,isRegexLiteral:cw}=tI,c_="no-hex-escape";function ck(e,t,r){let u=r.replaceAll(/(?<=(?:^|[^\\])(?:\\\\)*\\)x/g,"u00");if(r!==u)return{node:t,messageId:c_,fix:e=>"TemplateElement"===t.type?cS(e,t,u):e.replaceText(t,u)}}var cP=Y({create:e=>({Literal(t){if(cF(t)||cw(t))return ck(e,t,t.raw)},TemplateElement:t=>ck(e,t,t.value.raw)}),meta:{type:"suggestion",docs:{description:"Enforce the use of Unicode escapes instead of hexadecimal escapes."},fixable:"code",messages:{[c_]:"Use Unicode escapes instead of hexadecimal escapes."}}});const{getPropertyName:cT}=tr,{fixSpaceAroundKeyword:cI}=nr,{isMemberExpression:cB,isMethodCall:cR}=tI;var cN=Y({create:function(e){return{CallExpression(t){let r;if(cR(t,{object:"Reflect",method:"apply",minimumArguments:1,optionalCall:!1,optionalMember:!1})?r=t.arguments[0]:cR(t,{methods:["apply","bind","call"],optionalCall:!1,optionalMember:!1})&&(r=t.callee.object),!r||!cB(r,{optional:!1}))return;let u=r.object;if(!("ArrayExpression"===u.type&&0===u.elements.length||"ObjectExpression"===u.type&&0===u.properties.length))return;let n="ArrayExpression"===u.type?"Array":"Object",{sourceCode:a}=e,i=cT(r,a.getScope(r));return{node:r,messageId:i?"known-method":"unknown-method",data:{constructorName:n,methodName:i},*fix(e){yield e.replaceText(u,`${n}.prototype`),("ArrayExpression"===u.type||"ObjectExpression"===u.type)&&(yield*cI(e,t,a))}}}}},meta:{type:"suggestion",docs:{description:"Prefer borrowing methods from the prototype instead of the instance."},fixable:"code",messages:{"known-method":"Prefer using `{{constructorName}}.prototype.{{methodName}}`.","unknown-method":"Prefer using method from `{{constructorName}}.prototype`."}}});const{getStaticValue:cL}=tr,{isCallOrNewExpression:cO}=tI,cj="missing-message",cM="message-is-empty-string",c$="message-is-not-a-string",cz=["Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","InternalError","AggregateError"];var cU=Y({create:e=>{e.on(["CallExpression","NewExpression"],t=>{if(!cO(t,{names:cz,optional:!1}))return;let r=e.sourceCode.getScope(t);if(rK(r,t.callee))return;let u=t.callee.name,n="AggregateError"===u?1:0,a=t.arguments;if(a.some((e,t)=>t<=n&&"SpreadElement"===e.type))return;let i=a[n];if(!i)return{node:t,messageId:cj,data:{constructorName:u}};if("ArrayExpression"===i.type||"ObjectExpression"===i.type)return{node:i,messageId:c$};let o=cL(i,r);if(!o)return;let{value:s}=o;return"string"!=typeof s?{node:i,messageId:c$}:""===s?{node:i,messageId:cM}:void 0})},meta:{type:"problem",docs:{description:"Enforce passing a `message` value when creating a built-in error."},messages:{[cj]:"Pass a message to the `{{constructorName}}` constructor.",[cM]:"Error message should not be an empty string.",[c$]:"Error message should be a string."}}});const{checkVueTemplate:cq}=om,{getParenthesizedRange:cW}=tp,{replaceNodeOrTokenAndSpacesBefore:cV,fixSpaceAroundKeyword:cZ}=nr,cG=e=>"instanceof"===e.value&&"Keyword"===e.type,cH="no-instanceof-array";var cK=Y({create:cq(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:u}=e,n=t,a=n.getTokenAfter(r,cG);return!a&&t.parserServices.getTemplateBodyTokenStore&&(a=(n=t.parserServices.getTemplateBodyTokenStore()).getTokenAfter(r,cG)),{node:a,messageId:cH,*fix(i){yield*cZ(i,e,t);let o=cW(r,n);yield i.insertTextBeforeRange(o,"Array.isArray("),yield i.insertTextAfterRange(o,")"),yield*cV(a,"",i,t,n),yield*cV(u,"",i,t,n)}}}}}),meta:{type:"suggestion",docs:{description:"Require `Array.isArray()` instead of `instanceof Array`."},fixable:"code",messages:{[cH]:"Use `Array.isArray()` instead of `instanceof Array`."}}});const{isNewExpression:cX}=tI,cJ="prefer-type-error",cY=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"]),cQ=new Set(["isNaN","isFinite"]),c0=(e,t,r)=>void 0!==t&&t.arguments.length>0&&"Identifier"===e.type&&(!0===r&&cY.has(e.name)||!1===r&&cQ.has(e.name)),c1=e=>e.parent&&e.parent.body&&1===e.parent.body.length,c3=(e,t)=>!!c0(e.property,t,!0)||"MemberExpression"===e.object.type&&c3(e.object,t),c2=(e,t)=>{switch(e.type){case"Identifier":return c0(e,t,!1);case"MemberExpression":return c3(e,t);case"CallExpression":return c2(e.callee,e);case"UnaryExpression":return"typeof"===e.operator||"!"===e.operator&&c2(e.argument);case"BinaryExpression":return"instanceof"===e.operator||c2(e.left,t)||c2(e.right,t);case"LogicalExpression":return c2(e.left,t)&&c2(e.right,t);default:return!1}},c4=e=>"IfStatement"===e.type&&c2(e.test);var c5=Y({create:()=>({ThrowStatement(e){if(cX(e.argument,{name:"Error"})&&c1(e)&&e.parent.parent&&c4(e.parent.parent)){let t=e.argument.callee;return{node:t,messageId:cJ,fix:e=>e.insertTextBefore(t,"Type")}}}}),meta:{type:"suggestion",docs:{description:"Enforce throwing `TypeError` in type checking conditions."},fixable:"code",messages:{[cJ]:"`new Error()` is too unspecific for a type check. Use `new TypeError()` instead."}}});const{isCallOrNewExpression:c8}=tI,c6="consistentDestructuring",c9="consistentDestructuringSuggest",c7=e=>{for(;e;){if(e.computed)return!1;if("MemberExpression"!==e.type)break;e=e.object}return"Identifier"===e.type||"ThisExpression"===e.type},le=(e,t)=>{for(;e;){if(e===t)return!0;e=e.upper}return!1};var lt=Y({create:e=>{let{sourceCode:t}=e,r=new Map;return{VariableDeclarator(e){"ObjectPattern"===e.id.type&&e.init&&"Literal"!==e.init.type&&c7(e.init)&&r.set(t.getText(e.init),{scope:t.getScope(e),variables:t.getDeclaredVariables(e),objectPattern:e.id})},MemberExpression(e){if(e.computed||c8(e.parent)&&e.parent.callee===e||rO(e))return;let u=r.get(t.getText(e.object));if(!u)return;let{scope:n,objectPattern:a}=u,i=t.getScope(e);if(!le(i,n))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,c=t.getText(e),l=t.getText(e.property),f=o.find(e=>e.key.name===l);if(!f&&(d||rs(l,[i])!==l))return;if("MemberExpression"===e.parent.type)return{node:e,messageId:c6};let p=f?f.value.name:l;return{node:e,messageId:c6,suggest:[{messageId:c9,data:{expression:c,property:p},*fix(t){let{properties:r}=a,u=r.at(-1);yield t.replaceText(e,p),f||(yield u?t.insertTextAfter(u,`, ${p}`):t.replaceText(a,`{${p}}`))}}]}}}},meta:{type:"suggestion",docs:{description:"Use destructured variables over properties."},fixable:"code",hasSuggestions:!0,messages:{[c6]:"Use destructured variables over properties.",[c9]:"Replace `{{expression}}` with destructured property `{{property}}`."}}}),lr=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];const lu=["Object","Array","ArrayBuffer","DataView","Date","Error","Function","Map","WeakMap","Set","WeakSet","Promise","RegExp","SharedArrayBuffer","Proxy","WeakRef","FinalizationRegistry",...lr],{GlobalReferenceTracker:ln}=a6,la=["BigInt","Boolean","Number","String","Symbol"],{switchCallExpressionToNewExpression:li,switchNewExpressionToCallExpression:lo}=nr;var ls=Y({create:e=>{let{sourceCode:t}=e,r=new ln({objects:la,type:ln.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*lo(e,r,t)}),u})(e,t)}),u=new ln({objects:lu,type:ln.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=>li(e,r,t)}})(e,t)});return{*"Program:exit"(e){let n=t.getScope(e);yield*r.track(n),yield*u.track(n)}}},meta:{type:"suggestion",docs:{description:"Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`."},fixable:"code",messages:{enforce:"Use `new {{name}}()` instead of `{{name}}()`.",disallow:"Use `{{name}}()` instead of `new {{name}}()`."}}});const{isOpeningParenToken:ld}=tr,{hasSideEffect:lc,isCommaToken:ll,isSemicolonToken:lf}=tr,lp=(e,t)=>{let r=t.getTokenAfter(e.callee,ld),u=t.getLastToken(e);return t.text.slice(r.range[1],u.range[0])},{isNodeMatches:lg}=tL,lm=function(e,t){let{parent:r}=e;for(let u of t.visitorKeys[r.type]||Object.keys(r)){let t=r[u];if(t===e)return;if(Array.isArray(t)){let r=t.indexOf(e);if(-1!==r)return t[r-1]}}},{isMethodCall:ly}=tI,lh="error",lb="suggestion",lv=e=>e&&"ExpressionStatement"===e.parent.type&&e.parent.expression===e&&ly(e,{method:"push",optionalCall:!1,optionalMember:!1});var lx=Y({create:function(e){let{ignore:t}={ignore:[],...e.options[0]},r=["stream","this","this.stream","process.stdin","process.stdout","process.stderr",...t],{sourceCode:u}=e;return{CallExpression(e){if(!lv(e))return;let t=e.callee.object;if(lg(t,r))return;let n=function(e,t){let r=lm(e.parent,t)?.expression;if(lv(r))return r}(e,u);if(!n||!rH(n.callee.object,t))return;let a=e.arguments,i={node:e.callee.property,messageId:lh},o=function*(t){if(a.length>0){let r=lp(e,u),[a,i]=u.getLastTokens(n,2);yield ll(a)?t.insertTextAfter(a,` ${r}`):t.insertTextBefore(i,n.arguments.length>0?`, ${r}`:r)}let r=n.parent,i=e.parent,o=!lf(u.getLastToken(r))&&lf(u.getLastToken(i));yield t.replaceTextRange([r.range[1],i.range[1]],o?";":"")};return a.some(e=>lc(e,u))?i.suggest=[{messageId:lb,fix:o}]:i.fix=o,i}}},meta:{type:"suggestion",docs:{description:"Enforce combining multiple `Array#push()` into one call."},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignore:{type:"array",uniqueItems:!0}}}],messages:{[lh]:"Do not call `Array#push()` multiple times.",[lb]:"Merge with previous one."}}});const{isStaticRequire:lE,isMethodCall:lA,isLiteral:lD}=tI,lC="no-process-exit",lS=e=>lD(e,"node:worker_threads")||lD(e,"worker_threads");var lF=Y({create:e=>{let t;if(0===e.sourceCode.lines[0].indexOf("#!"))return{};let r=!1,u=[];e.on("CallExpression",e=>{lE(e)&&lS(e.arguments[0])&&(r=!0)}),e.on("ImportDeclaration",e=>{"Literal"===e.source.type&&lS(e.source)&&(r=!0)}),e.on("CallExpression",e=>{lA(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&&lA(e,{object:"process",method:"exit",optionalCall:!1,optionalMember:!1})&&u.push(e)}),e.onExit("Program",function*(){if(!r)for(let e of u)yield{node:e,messageId:lC}})},meta:{type:"suggestion",docs:{description:"Disallow `process.exit()`."},messages:{[lC]:"Only use `process.exit()` in CLI apps. Throw an error instead."}}}),lw=function(e,{test:t,expected:r,ruleId:u}){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 n=`'${JSON.stringify({value:e.value,type:e.type})}'`;r=r.map(e=>`'${JSON.stringify(e)}'`).join(" or ");let a=`\`${u}\`: Unexpected token ${n}`,i=`https://github.com/sindresorhus/eslint-plugin-unicorn/issues/new?title=${encodeURIComponent(a)}`;throw Error(`Expected token ${r}, got ${n}.
4
- Please open an issue at ${i}.`)};const{isSemicolonToken:l_}=tr,lk=function(e,t){let{loc:r,body:u}=e,n=t.getTokenBefore(u),{start:a}=r,{end:i}=n.loc;return{start:a,end:i}},{removeSpacesAfter:lP}=nr,lT="no-static-only-class",lI=({type:e,value:t})=>"Punctuator"===e&&"="===t,lB=e=>"ClassDeclaration"===e.type&&"ExportDefaultDeclaration"===e.parent.type&&e.parent.declaration===e,lR=e=>"PropertyDefinition"===e.type,lN=e=>"MethodDefinition"===e.type;var lL=Y({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:u,readonly:n,accessibility:a,decorators:i,key:o}=e;return!(!lR(e)&&!lN(e)||!r||t||"PrivateIdentifier"===o.type||u||n||void 0!==a||Array.isArray(i)&&i.length>0)}(e)))return;let{sourceCode:r}=e;return{node:t,loc:lk(t,r),messageId:lT,fix:function(e,t){let{type:r,id:u,body:n,declare:a,abstract:i,implements:o,parent:s}=e;if(a||i||Array.isArray(o)&&o.length>0||"ClassExpression"===r&&u)return;let d=lB(e);if(!d||!u){for(let e of n.body)if(lR(e)&&(e.typeAnnotation||e.value&&t.getText(e.value).includes("this")))return;return function*(u){let a=t.getFirstToken(e);if(lw(a,{expected:{type:"Keyword",value:"class"},ruleId:"no-static-only-class"}),d||"ClassExpression"===r){if("ClassExpression"===r&&"ReturnStatement"===s.type&&n.loc.start.line!==s.loc.start.line&&t.text.slice(a.range[1],n.range[0]).trim()){yield u.replaceText(a,"{");let e=t.getFirstToken(n);yield u.remove(e)}else yield u.replaceText(a,""),yield lP(a,t,u)}else yield u.replaceText(a,"const"),yield u.insertTextBefore(n,"= "),yield u.insertTextAfter(n,";");for(let e of n.body)yield*function*(e,t,r){let u=t.getFirstToken(e);lw(u,{expected:{type:"Keyword",value:"static"},ruleId:"no-static-only-class"}),yield r.remove(u),yield lP(u,t,r);let n=lR(e)?t.getLastToken(e):t.getTokenAfter(e),a=l_(n);if(lR(e)){let{key:u,value:i}=e;if(i){let e=t.getTokenAfter(u,lI);yield r.replaceText(e,":")}else a?yield r.insertTextBefore(n,": undefined"):yield r.insertTextAfter(e,": undefined")}yield a?r.replaceText(n,","):r.insertTextAfter(e,",")}(e,t,u)}}}(t,r)}})},meta:{type:"suggestion",docs:{description:"Disallow classes that only have static members."},fixable:"code",messages:{[lT]:"Use an object instead of a class with only static members."}}});const{isParenthesized:lO}=tr,{fixSpaceAroundKeyword:lj}=nr,lM="no-unreadable-array-destructuring",l$=(e,t,r)=>null===e&&null===r[t+1];var lz=Y({create:e=>{let{sourceCode:t}=e;return{ArrayPattern(e){let{elements:r,parent:u}=e;if(r.length<3||!r.some((e,t,r)=>l$(e,t,r)))return;let n={node:e,messageId:lM},a=r.filter(e=>null!==e);if("VariableDeclarator"===u.type&&u.id===e&&null!==u.init&&1===a.length){let[i]=a;"AssignmentPattern"!==i.type&&(n.fix=function*(n){let a=r.indexOf(i),o="RestElement"===i.type,s=o?i.argument:i;yield n.replaceText(e,t.getText(s));let d=o?`.slice(${a})`:`[${a}]`,c=u.init;!lO(c,t)&&r7(c,t)?(yield n.insertTextBefore(c,"("),yield n.insertTextAfter(u,`)${d}`)):yield n.insertTextAfter(u,d),yield*lj(n,e,t)})}return n}}},meta:{type:"suggestion",docs:{description:"Disallow unreadable array destructuring."},fixable:"code",messages:{[lM]:"Array destructuring may not contain consecutive ignored values."}}});const{isCommaToken:lU}=tr,{removeParentheses:lq,fixSpaceAroundKeyword:lW,addParenthesizesToReturnOrThrowExpression:lV}=nr,{isParenthesized:lZ,isOnSameLine:lG}=uy,{isNewExpression:lH,isMethodCall:lK,isCallOrNewExpression:lX}=tI,lJ="spread-in-list",lY="iterable-to-array",lQ="iterable-to-array-in-for-of",l0="iterable-to-array-in-yield-star",l1="clone-array",l3=e=>"ArrayExpression"===e.type&&1===e.elements.length&&e.elements[0]?.type==="SpreadElement",l2={ArrayExpression:"array literal",ObjectExpression:"object literal",CallExpression:"arguments",NewExpression:"arguments"};function*l4(e,t,r){let[u,n,a]=r.getFirstTokens(t,3);yield e.remove(u),yield e.remove(n);let[i,o]=r.getLastTokens(t,2);yield e.remove(o),lU(i)&&(yield e.remove(i));let{parent:s}=t;if(("ReturnStatement"===s.type||"ThrowStatement"===s.type)&&s.argument===t&&!lG(u,a)&&!lZ(t,r)){yield*lV(e,s,r);return}yield*lW(e,t,r)}var l5=Y({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)||lX(e.parent.parent)&&e.parent.parent.arguments.includes(e.parent)))))return;let r=e.parent,u=t.getFirstToken(r),n=r.parent.type;return{node:u,messageId:lJ,data:{argumentType:"ArrayExpression"===e.type?"array":"object",parentDescription:l2[n]},*fix(r){let a;yield r.remove(u),yield*lq(e,r,t);let i=t.getFirstToken(e);yield r.remove(i);let[o,s]=t.getLastTokens(e,2);if(yield r.remove(s),lU(o)&&(yield r.remove(o)),"CallExpression"===n||"NewExpression"===n)for(let[u,n]of(a=t.getFirstToken(e),e.elements.map((r,u,n)=>{if(u===n.length-1){let r=t.getLastToken(e,{skip:1});return lU(r)?r:void 0}let i=t.getTokenAfter(r||a,lU);return a=i,i})).entries())e.elements[u]||(yield r.insertTextBefore(n,"undefined"))}}}),e.on("ArrayExpression",e=>{if(!l3(e))return;let{parent:r}=e;if(!("ForOfStatement"===r.type&&r.right===e||"YieldExpression"===r.type&&r.delegate&&r.argument===e||(lH(r,{names:["Map","WeakMap","Set","WeakSet"],argumentsLength:1})||lH(r,{names:lr,minimumArguments:1})||lK(r,{object:"Promise",methods:["all","allSettled","any","race"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||lK(r,{objects:["Array",...lr],method:"from",argumentsLength:1,optionalCall:!1,optionalMember:!1})||lK(r,{object:"Object",method:"fromEntries",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&r.arguments[0]===e))return;let u="",n=lY;switch(r.type){case"ForOfStatement":n=lQ;break;case"YieldExpression":n=l0;break;case"NewExpression":u=`new ${r.callee.name}(…)`;break;case"CallExpression":u=`${r.callee.object.name}.${r.callee.property.name}(…)`}return{node:e,messageId:n,data:{parentDescription:u},fix:r=>l4(r,e,t)}}),e.on("ArrayExpression",e=>{if(!l3(e))return;let r=e.elements[0].argument;if(!(lK(r,{methods:["concat","copyWithin","filter","flat","flatMap","map","slice","splice","toReversed","toSorted","toSpliced","with"],optionalCall:!1,optionalMember:!1})||lK(r,{method:"split",optionalCall:!1,optionalMember:!1})||lK(r,{object:"Object",methods:["keys","values"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||"AwaitExpression"===r.type&&lK(r.argument,{object:"Promise",methods:["all","allSettled"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||lK(r,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||lH(r,{name:"Array"})))return;let u={node:e,messageId:l1};return lH(r,{name:"Array"})||"CallExpression"===r.type&&"MemberExpression"===r.callee.type&&"Identifier"===r.callee.property.type&&"slice"===r.callee.property.name?u:Object.assign(u,{fix:r=>l4(r,e,t)})})},meta:{type:"suggestion",docs:{description:"Disallow unnecessary spread."},fixable:"code",messages:{[lJ]:"Spread an {{argumentType}} literal in {{parentDescription}} is unnecessary.",[lY]:"`{{parentDescription}}` accepts iterable as argument, it's unnecessary to convert to an array.",[lQ]:"`for…of` can iterate over iterable, it's unnecessary to convert to an array.",[l0]:"`yield*` can delegate iterable, it's unnecessary to convert to an array.",[l1]:"Unnecessarily cloning an array."}}});const{isColonToken:l8}=tr,{isEmptyNode:l6}=tI,l9=function(e,t){let r=e.test||t.getFirstToken(e),u=t.getTokenAfter(r,l8);return{start:e.loc.start,end:u.loc.end}},l7="no-useless-switch-case/error",fe="no-useless-switch-case/suggestion",ft=e=>e.consequent.every(e=>l6(e));var fr=Y({create:e=>({*SwitchStatement(t){let{cases:r}=t,u=r.filter(e=>null===e.test);if(1!==u.length)return;let[n]=u;if(n!==r.at(-1))return;let a=[];for(let e=r.length-2;e>=0;e--){let t=r[e];if(ft(t))a.unshift(t);else break}for(let t of a)yield{node:t,loc:l9(t,e.sourceCode),messageId:l7,suggest:[{messageId:fe,fix:e=>e.remove(t)}]}}}),meta:{type:"suggestion",docs:{description:"Disallow useless case in switch statements."},hasSuggestions:!0,messages:{[l7]:"Useless case in switch statement.",[fe]:"Remove this case."}}});const{isCommaToken:fu}=tr,{replaceNodeOrTokenAndSpacesBefore:fn}=nr,{isUndefined:fa,isFunction:fi}=tI,fo="no-useless-undefined",fs=new Set(["is","equal","notEqual","strictEqual","notStrictEqual","propertyVal","notPropertyVal","not","include","property","toBe","toHaveBeenCalledWith","toContain","toContainEqual","toEqual","same","notSame","strictSame","strictNotSame"]),fd=e=>{let t;return"Identifier"===e.type?t=e.name:"MemberExpression"===e.type&&!1===e.computed&&"Identifier"===e.property.type&&(t=e.property.name),fs.has(t)||"push"===t||"unshift"===t||"includes"===t||"add"===t||"has"===t||"set"===t||"createContext"===t||/^set[A-Z]/.test(t)||"ref"===t},fc=e=>{for(;e;e=e.upper)if("function"===e.type)return e.block},fl=e=>!e.optional&&"MemberExpression"===e.callee.type&&!e.callee.computed&&"Identifier"===e.callee.property.type&&"bind"===e.callee.property.name,ff=e=>/\.(?:ts|mts|cts|tsx)$/i.test(e.physicalFilename);var fp=Y({create:e=>{let{sourceCode:t}=e,r=(e,r,u)=>{if(u){let r=fc(t.getScope(e));if(r?.returnType)return}return{node:e,messageId:fo,fix:r}},u={checkArguments:!0,checkArrowFunctionBody:!0,...e.options[0]},n=(e,r)=>fn(e,"",r,t);e.on("Identifier",e=>{if(fa(e)&&"ReturnStatement"===e.parent.type&&e.parent.argument===e)return r(e,t=>n(e,t),!0)}),e.on("Identifier",e=>{if(fa(e)&&"YieldExpression"===e.parent.type&&!e.parent.delegate&&e.parent.argument===e)return r(e,t=>n(e,t))}),u.checkArrowFunctionBody&&e.on("Identifier",e=>{if(fa(e)&&"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e)return r(e,r=>fn(e," {}",r,t),!0)}),e.on("Identifier",e=>{if(fa(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(fa(t)&&"AssignmentPattern"===t.parent.type&&t.parent.right===t)return r(t,function*(r){let u=t.parent,{left:n}=u;yield r.removeRange([n.range[1],t.range[1]]),(n.typeAnnotation||ff(e))&&!n.optional&&fi(u.parent)&&u.parent.params.includes(u)&&(yield n.typeAnnotation?r.insertTextBefore(n.typeAnnotation,"?"):r.insertTextAfter(n,"?"))},!0)}),u.checkArguments&&e.on("CallExpression",e=>{if(fd(e.callee))return;let r=e.arguments;if(fl(e)&&1!==r.length)return;let u=[];for(let e=r.length-1;e>=0;e--){let t=r[e];if(fa(t))u.unshift(t);else break}if(0===u.length)return;let n=u[0],a=u.at(-1);return{messageId:fo,loc:{start:n.loc.start,end:a.loc.end},fix(e){let i=n.range[0],o=a.range[1],s=r[r.length-u.length-1];if(s)i=s.range[1];else{let e=t.getTokenAfter(a);fu(e)&&(o=e.range[1])}return e.removeRange([i,o])}}})},meta:{type:"suggestion",docs:{description:"Disallow useless `undefined`."},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{checkArguments:{type:"boolean"},checkArrowFunctionBody:{type:"boolean"}}}],messages:{[fo]:"Do not use useless `undefined`."}}});const{isBigIntLiteral:fg}=tI,fm="numeric-separators-style";function fy(e,{minimumDigits:t,groupLength:r},u){let{length:n}=e;if(n<t)return e;let a=[];if(u)for(let t=0;t<n;t+=r){let u=Math.min(t+r,n);a.push(e.slice(t,u))}else for(let t=n;t>0;t-=r){let u=Math.max(t-r,0);a.unshift(e.slice(u,t))}return a.join("_")}const fh={binary:{minimumDigits:0,groupLength:4},octal:{minimumDigits:0,groupLength:4},hexadecimal:{minimumDigits:0,groupLength:2},number:{minimumDigits:5,groupLength:3}},fb=({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 fv=Y({create:e=>{let{onlyIfContainsSeparator:t,binary:r,octal:u,hexadecimal:n,number:a}={onlyIfContainsSeparator:!1,...e.options[0]},i={"0b":{onlyIfContainsSeparator:t,...fh.binary,...r},"0o":{onlyIfContainsSeparator:t,...fh.octal,...u},"0x":{onlyIfContainsSeparator:t,...fh.hexadecimal,...n},"":{onlyIfContainsSeparator:t,...fh.number,...a}};return{Literal(e){if(!r6.isNumeric(e)||r6.isLegacyOctal(e))return;let{raw:t}=e,r=t,u="";fg(e)&&(r=t.slice(0,-1),u="n");let n=r.replaceAll("_",""),{prefix:a,data:o}=r6.getPrefix(n),{onlyIfContainsSeparator:s}=i[a.toLowerCase()];if(s&&!t.includes("_"))return;let d=function(e,{prefix:t,data:r},u){let n=u[t.toLowerCase()];if(t)return t+fy(r,n);let{number:a,mark:i,sign:o,power:s}=r6.parseNumber(e);return function(e,t){let{integer:r,dot:u,fractional:n}=r6.parseFloatNumber(e);return fy(r,t)+u+fy(n,t,!0)}(a,n)+i+o+fy(s,u[""])}(n,{prefix:a,data:o},i)+u;if(t!==d)return{node:e,messageId:fm,fix:t=>t.replaceText(e,d)}}}},meta:{type:"suggestion",docs:{description:"Enforce the style of numeric separators by correctly grouping digits."},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{...Object.fromEntries(Object.entries(fh).map(([e,t])=>[e,fb(t)])),onlyIfContainsSeparator:{type:"boolean",default:!1}}}],messages:{[fm]:"Invalid group length in numeric value."}}});const{isParenthesized:fx,findVariable:fE}=tr,{extendFixRange:fA,removeMemberExpressionProperty:fD,removeMethodCall:fC,renameVariable:fS}=nr,{isLeftHandSide:fF,singular:fw,getScopes:f_,avoidCapture:fk,getVariableIdentifiers:fP}=uy,{isMethodCall:fT}=tI,fI="error-zero-index",fB="error-shift",fR="error-pop",fN="error-at-minus-one",fL="error-destructuring-declaration",fO="error-destructuring-assignment",fj="error-variable",fM="suggest-nullish-coalescing-operator",f$="suggest-logical-or-operator",fz=e=>fT(e,{method:"filter",minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}),fU=(e,t)=>{if("AssignmentExpression"!==e.type||fx(e,t))return!1;let{left:r}=fW(e),[u]=r.elements,{type:n}="AssignmentPattern"===u.type?u.left:u;return"ObjectExpression"===n||"ObjectPattern"===n},fq=(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,fW=e=>e?"AssignmentExpression"===e.type?e:"VariableDeclarator"===e.type?{left:e.id,right:e.init}:{}:{};function*fV(e,t,r){let{left:u}=fW(e),[n]=u.elements,a=t.getText("AssignmentPattern"===n.type?n.left:n);yield r.replaceText(u,a),fU(e,t)&&(yield r.insertTextBefore(e,"("),yield r.insertTextAfter(e,")"))}const fZ=e=>"AssignmentPattern"===fW(e).left.elements[0].type,fG=(e,t,r,u)=>{let{left:n,right:a}=fW(e),[i]=n.elements,o=i.right,s=t.getText(o);return(fx(o,t)||fq(o,u))&&(s=`(${s})`),r.insertTextAfter(a,` ${u} ${s}`)},fH=(e,t)=>{let r,u;let{property:n}=fW(t).right.callee;return fZ(t)?r=[{operator:"??",messageId:fM},{operator:"||",messageId:f$}].map(({messageId:r,operator:u})=>({messageId:r,*fix(r){yield r.replaceText(n,"find"),yield fG(t,e,r,u),yield*fV(t,e,r)}})):u=function*(r){yield r.replaceText(n,"find"),yield*fV(t,e,r)},{fix:u,suggest:r}},fK=e=>"MemberExpression"===e.parent.type&&!0===e.parent.computed&&e.parent.object===e&&"Literal"===e.parent.property.type&&"0"===e.parent.property.raw,fX=e=>{let{left:t,right:r}=fW(e.parent);return t&&r&&r===e&&"ArrayPattern"===t.type&&1===t.elements.length&&t.elements[0]&&"RestElement"!==t.elements[0].type};var fJ=Y({create:e=>{let{sourceCode:t}=e,{checkFromLast:r}={checkFromLast:!1,...e.options[0]};e.on("MemberExpression",e=>{if(e.computed&&"Literal"===e.property.type&&"0"===e.property.raw&&fz(e.object)&&!fF(e))return{node:e.object.callee.property,messageId:fI,fix:r=>[r.replaceText(e.object.callee.property,"find"),fD(r,e,t)]}}),e.on("CallExpression",e=>{if(fT(e,{method:"shift",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&fz(e.callee.object))return{node:e.callee.object.callee.property,messageId:fB,fix:r=>[r.replaceText(e.callee.object.callee.property,"find"),...fC(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&&fz(e.init))return{node:e.init.callee.property,messageId:fL,...fH(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&&fz(e.right))return{node:e.right.callee.property,messageId:fO,...fH(t,e)}}),e.on("VariableDeclarator",e=>{if(!("Identifier"===e.id.type&&fz(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),u=fE(r,e.id),n=fP(u).filter(t=>t!==e.id);if(0===n.length)return;let a=[],i=[];for(let e of n)if(fK(e))a.push(e.parent);else{if(!fX(e))return;i.push(e.parent)}let o={node:e.init.callee.property,messageId:fj};return i.some(e=>fZ(e))||(o.fix=function*(n){yield n.replaceText(e.init.callee.property,"find");let o=fw(e.id.name);if(o){let e=fk(o,f_(r));yield*fS(u,e,n),yield*fA(n,t.ast.range)}for(let e of a)yield fD(n,e,t);for(let e of i)yield*fV(e,t,n)}),o}),r&&(e.on("CallExpression",e=>{if(fT(e,{method:"pop",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&fz(e.callee.object))return{node:e.callee.object.callee.property,messageId:fR,fix:r=>[r.replaceText(e.callee.object.callee.property,"findLast"),...fC(r,e,t)]}}),e.on("CallExpression",e=>{if(fT(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&&fz(e.callee.object))return{node:e.callee.object.callee.property,messageId:fN,fix:r=>[r.replaceText(e.callee.object.callee.property,"findLast"),...fC(r,e,t)]}}))},meta:{type:"suggestion",docs:{description:"Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`."},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkFromLast:{type:"boolean",default:!1}}}],messages:{[fj]:"Prefer `.find(…)` over `.filter(…)`.",[fI]:"Prefer `.find(…)` over `.filter(…)[0]`.",[fB]:"Prefer `.find(…)` over `.filter(…).shift()`.",[fR]:"Prefer `.findLast(…)` over `.filter(…).pop()`.",[fN]:"Prefer `.findLast(…)` over `.filter(…).at(-1)`.",[fL]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[fO]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[fM]:"Replace `.filter(…)` with `.find(…) ?? …`.",[f$]:"Replace `.filter(…)` with `.find(…) || …`."}}});const{isNodeMatches:fY}=tL,{isMethodCall:fQ}=tI,{removeMethodCall:f0}=nr,f1="prefer-array-flat-map",f3=["React.Children","Children"];var f2=Y({create:e=>({CallExpression(t){if(!(fQ(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)&&fQ(t.callee.object,{method:"map",optionalCall:!1,optionalMember:!1})))return;let r=t.callee.object;if(fY(r.callee.object,f3))return;let{sourceCode:u}=e,n=r.callee.property;return{node:t,loc:{start:n.loc.start,end:t.loc.end},messageId:f1,*fix(e){yield*f0(e,t,u),yield e.replaceText(n,"flatMap")}}}}),meta:{type:"suggestion",docs:{description:"Prefer `.flatMap(…)` over `.map(…).flat()`."},fixable:"code",messages:{[f1]:"Prefer `.flatMap(…)` over `.map(…).flat()`."}}});const{getParenthesizedText:f4,isArrayPrototypeProperty:f5,isNodeMatches:f8,isNodeMatchesNameOrPath:f6,isParenthesized:f9,isSameIdentifier:f7,needsSemicolon:pe,shouldAddParenthesesToMemberExpressionObject:pt}=uy,{fixSpaceAroundKeyword:pr}=nr,{isMethodCall:pu,isCallExpression:pn}=tI,pa="prefer-array-flat",pi=e=>"ArrayExpression"===e.type&&0===e.elements.length,po={testFunction(e){if(!pu(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&&f7(t.params[0],t.body)},getArrayNode:e=>e.callee.object,description:"Array#flatMap()"},ps={testFunction(e){if(!pu(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&&pi(r)))return!1;let u=t.body,[n,a]=t.params;return pu(u,{method:"concat",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&f7(n,u.callee.object)&&f7(a,u.arguments[0])||"ArrayExpression"===u.type&&2===u.elements.length&&u.elements.every((e,r)=>e?.type==="SpreadElement"&&"Identifier"===e.argument.type&&f7(t.params[r],e.argument))},getArrayNode:e=>e.callee.object,description:"Array#reduce()"},pd={testFunction:e=>pu(e,{method:"concat",argumentsLength:1,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&pi(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},pc={testFunction(e){if(!(pu(e,{methods:["apply","call"],argumentsLength:2,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&f5(e.callee.object,{property:"concat"})))return!1;let[t,r]=e.arguments;return pi(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},pl=["_.flatten","lodash.flatten","underscore.flatten"];var pf=Y({create:function(e){let{functions:t}={functions:[],...e.options[0]},r=[...t,...pl],u=[po,ps,pd,pc,{testFunction:e=>pn(e,{argumentsLength:1,optional:!1})&&f8(e.callee,r),getArrayNode:e=>e.arguments[0],description:e=>`${r.find(t=>f6(e.callee,t)).trim()}()`}];return{*CallExpression(t){for(let{testFunction:r,description:n,getArrayNode:a,shouldSwitchToArray:i}of u){if(!r(t))continue;let u=a(t),o={description:"string"==typeof n?n:n(t)},s={node:t,messageId:pa,data:o},{sourceCode:d}=e;d.getCommentsInside(t).length===d.getCommentsInside(u).length&&(s.fix=function(e,t,r,u){return"function"==typeof u&&(u=u(e)),function*(n){let a=f4(t,r);u?a=`[${a}]`:!f9(t,r)&&pt(t,r)&&(a=`(${a})`),a=`${a}.flat()`,pe(r.getTokenBefore(e),r,a)&&(a=`;${a}`),yield n.replaceText(e,a),yield*pr(n,e,r)}}(t,u,d,i)),yield s}}}},meta:{type:"suggestion",docs:{description:"Prefer `Array#flat()` over legacy techniques to flatten arrays."},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{functions:{type:"array",uniqueItems:!0}}}],messages:{[pa]:"Prefer `Array#flat()` over `{{description}}` to flatten an array."}}});const{checkVueTemplate:pp}=om,{isBooleanNode:pg,getParenthesizedRange:pm,isNodeValueNotFunction:py}=uy,{removeMemberExpressionProperty:ph}=nr,{isLiteral:pb,isUndefined:pv,isMethodCall:px,isMemberExpression:pE}=tI,pA="some",pD="some-suggestion",pC="filter",pS=e=>"BinaryExpression"===e.parent.type&&e.parent.left===e&&(("!="===e.parent.operator||"=="===e.parent.operator||"==="===e.parent.operator||"!=="===e.parent.operator)&&pv(e.parent.right)||("!="===e.parent.operator||"=="===e.parent.operator)&&pb(e.parent.right,null));var pF=Y({create:pp(e=>({CallExpression(t){if(!px(t,{methods:["find","findLast"],minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}))return;let r=pS(t);if(!r&&!pg(t))return;let u=t.callee.property;return{node:u,messageId:pA,data:{method:u.name},suggest:[{messageId:pD,*fix(n){if(yield n.replaceText(u,"some"),!r)return;let a=pm(t,e.sourceCode);yield n.replaceTextRange([a[1],t.parent.range[1]],""),"!="!==t.parent.operator&&"!=="!==t.parent.operator&&(yield n.insertTextBeforeRange(a,"!"))}}]}},BinaryExpression(t){if(!((">"===t.operator||"!=="===t.operator)&&"Literal"===t.right.type&&"0"===t.right.raw&&pE(t.left,{property:"length",optional:!1})&&px(t.left.object,{method:"filter",optionalCall:!1,optionalMember:!1})))return;let r=t.left.object,[u]=r.arguments;if(!u||py(u))return;let n=r.callee.property;return{node:n,messageId:pC,*fix(r){yield r.replaceText(n,"some");let{sourceCode:u}=e,a=t.left;yield ph(r,a,u),yield r.removeRange([pm(a,u)[1],t.range[1]])}}}})),meta:{type:"suggestion",docs:{description:"Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast}(…)`."},fixable:"code",messages:{[pA]:"Prefer `.some(…)` over `.{{method}}(…)`.",[pD]:"Replace `.{{method}}(…)` with `.some(…)`.",[pC]:"Prefer `.some(…)` over non-zero length check from `.filter(…)`."},hasSuggestions:!0}});const{isMethodCall:pw}=tI,p_=e=>pw(e,{method:"charCodeAt",optionalCall:!1,optionalMember:!1})?"codePointAt":pw(e,{object:"String",method:"fromCharCode",optionalCall:!1,optionalMember:!1})?"fromCodePoint":void 0;var pk=Y({create:()=>({CallExpression(e){let t=p_(e);if(!t)return;let r=e.callee.property,u=r.name;return{node:r,messageId:`error/${u}`,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(…)`."},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:pP}=tr,{functionTypes:pT}=tI,pI="preferDefaultParameters",pB="preferDefaultParametersSuggest",pR=(e,t)=>e&&t&&"Identifier"===e.type&&"LogicalExpression"===t.type&&("||"===t.operator||"??"===t.operator)&&"Identifier"===t.left.type&&"Literal"===t.right.type,pN=(e,t)=>{if(!t)return!1;if("CallExpression"===t.type)return!0;for(let r of e.visitorKeys[t.type]){let u=t[r];if(Array.isArray(u)){for(let t of u)if(pN(e,t))return!0}else if(pN(e,u))return!0}return!1},pL=(e,t,r)=>{for(let u of t.body.body){if(u===r)break;if(pN(e,u))return!0}return!1},pO=(e,t,r)=>!!e&&t[0].identifier!==r||!e&&t.length>1,pj=(e,t)=>{let r=e.at(-1);return t&&t===r},pM=(e,t)=>{if("ArrowFunctionExpression"!==t.type||t.params.length>1)return!1;let[r]=t.params,u=e.getTokenBefore(r),n=e.getTokenAfter(r);return!n||!u||"("!==u.value||")"!==n.value},p$=(e,t,r)=>{let{line:u}=r.loc.start,{column:n}=r.loc.end,a=t.getText(r),i=t.lines[u-1],o=i.trim()===a,s=" "===i[n];return o?e.removeRange([t.getIndexFromLoc({line:u,column:0}),t.getIndexFromLoc({line:u+1,column:0})]):s?e.removeRange([r.range[0],r.range[1]+1]):e.remove(r)};var pz=Y({create:e=>{let{sourceCode:t}=e,r=[],u=(e,u,n,a)=>{let i=r.at(-1);if(!i||!pR(u,n))return;let{name:o}=u,{left:{name:s},right:{raw:d}}=n;if(a&&o!==s)return;let c=pP(t.getScope(e),s);if(!c)return;let{references:l}=c,{params:f}=i,p=f.find(e=>"Identifier"===e.type&&e.name===s);if(pL(t,i,e)||pO(a,l,u)||!pj(f,p))return;let g=pM(t,i)?`(${o} = ${d})`:`${o} = ${d}`;return{node:e,messageId:pI,suggest:[{messageId:pB,fix:r=>[r.replaceText(p,g),p$(r,t,e)]}]}};e.on(pT,e=>{r.push(e)}),e.onExit(pT,()=>{r.pop()}),e.on("AssignmentExpression",e=>{if("ExpressionStatement"===e.parent.type&&e.parent.expression===e)return u(e.parent,e.left,e.right,!0)}),e.on("VariableDeclarator",e=>{if("VariableDeclaration"===e.parent.type&&e.parent.declarations[0]===e)return u(e.parent,e.id,e.init,!1)})},meta:{type:"suggestion",docs:{description:"Prefer default parameters over reassignment."},fixable:"code",hasSuggestions:!0,messages:{[pI]:"Prefer default parameters over reassignment.",[pB]:"Replace reassignment with default parameter."}}});const{isParenthesized:pU,getParenthesizedText:pq}=tp,pW=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)},pV="prefer-logical-operator-over-ternary/error",pZ="prefer-logical-operator-over-ternary/suggestion";function pG(e,t,r){if(rH(e,t))return!0;if(e.type!==t.type)return!1;switch(e.type){case"AwaitExpression":return pG(e.argument,t.argument,r);case"LogicalExpression":return e.operator===t.operator&&pG(e.left,t.left,r)&&pG(e.right,t.right,r);case"UnaryExpression":return e.operator===t.operator&&e.prefix===t.prefix&&pG(e.argument,t.argument,r);case"UpdateExpression":return!1}return r.getText(e)===r.getText(t)}function pH({sourceCode:e,conditionalExpression:t,left:r,right:u}){return{node:t,messageId:pV,suggest:["??","||"].map(n=>({messageId:pZ,data:{operator:n},fix:a=>(function({fixer:e,sourceCode:t,conditionalExpression:r,left:u,right:n,operator:a}){let i=[u,n].map((e,r)=>{let u=pU(e,t),n=u?pq(e,t):t.getText(e);return!u&&pW(e,{operator:a,property:0===r?"left":"right"})&&(n=`(${n})`),n}).join(` ${a} `);return rQ(t.getTokenBefore(r),t,i)&&(i=`;${i}`),e.replaceText(r,i)})({fixer:a,sourceCode:e,conditionalExpression:t,left:r,right:u,operator:n})}))}}var pK=Y({create:e=>{let{sourceCode:t}=e;return{ConditionalExpression(e){let{test:r,consequent:u,alternate:n}=e;return pG(r,u,t)?pH({sourceCode:t,conditionalExpression:e,left:r,right:n}):"UnaryExpression"===r.type&&"!"===r.operator&&r.prefix&&pG(r.argument,n,t)?pH({sourceCode:t,conditionalExpression:e,left:r.argument,right:u}):void 0}}},meta:{type:"suggestion",docs:{description:"Prefer using a logical operator over a ternary."},hasSuggestions:!0,messages:{[pV]:"Prefer using a logical operator over a ternary.",[pZ]:"Switch to `{{operator}}` operator."}}});const{isOpeningParenToken:pX,isClosingParenToken:pJ}=tr,pY="with-name",pQ="without-name";var p0=Y({create:e=>({CatchClause(t){let r=t.param;if(!r)return;let{sourceCode:u}=e;if(u.getDeclaredVariables(r.parent).some(e=>e.references.length>0))return;let{type:n,name:a,parent:i}=r;return{node:r,messageId:"Identifier"===n?pY:pQ,data:{name:a},*fix(e){let t=u.getTokenBefore(r);lw(t,{test:pX,expected:"(",ruleId:"prefer-optional-catch-binding"});let n=u.getTokenAfter(r);lw(n,{test:pJ,expected:")",ruleId:"prefer-optional-catch-binding"}),yield e.remove(t),yield e.remove(r),yield e.remove(n);let[,a]=n.range,[o]=i.body.range,s=u.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."},fixable:"code",messages:{[pY]:"Remove unused catch binding `{{name}}`.",[pQ]:"Remove unused catch binding."}}});const{isParenthesized:p1,getStaticValue:p3}=tr,{checkVueTemplate:p2}=om,{isRegexLiteral:p4,isNewExpression:p5,isMethodCall:p8}=tI,{isBooleanNode:p6,shouldAddParenthesesToMemberExpressionObject:p9}=uy,p7="regexp-exec",ge="string-match",gt="suggestion",gr=[{type:p7,test:e=>p8(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:ge,test:e=>p8(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:u},n){yield e.replaceText(r,"test");let a=n.getText(t);p1(u,n)||"SequenceExpression"!==t.type||(a=`(${a})`),yield e.replaceText(u,a);let i=n.getText(u);!p1(t,n)&&p9(u,n)&&(i=`(${i})`),yield e.replaceText(t,i)}}],gu=e=>p4(e)||p5(e,{name:"RegExp"}),gn=(e,t)=>{if(p4(e))return!e.regex.flags.includes("g");let r=p3(e,t);if(!r)return!1;let{value:u}=r;return"[object RegExp]"===Object.prototype.toString.call(u)&&!u.global};var ga=Y({create:p2(e=>({*CallExpression(t){if(p6(t))for(let{type:r,test:u,getNodes:n,fix:a}of gr){if(!u(t))continue;let i=n(t),{methodNode:o,regexpNode:s}=i;if("Literal"===s.type&&!s.regex)continue;let d={node:r===p7?o:t,messageId:r},{sourceCode:c}=e,l=e=>a(e,i,c);gu(s)||gn(s,c.getScope(s))?d.fix=l:d.suggest=[{messageId:gt,fix:l}],yield d}}})),meta:{type:"suggestion",docs:{description:"Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`."},fixable:"code",hasSuggestions:!0,messages:{[p7]:"Prefer `.test(…)` over `.exec(…)`.",[ge]:"Prefer `RegExp#test(…)` over `String#match(…)`.",[gt]:"Switch to `RegExp#test(…)`."}}});const{findVariable:gi}=tr,{getVariableIdentifiers:go}=uy,{isCallOrNewExpression:gs,isMethodCall:gd}=tI,gc="error",gl="suggestion",gf=["concat","copyWithin","fill","filter","flat","flatMap","map","reverse","slice","sort","splice","toReversed","toSorted","toSpliced","with"],gp=e=>{let{type:t,optional:r,callee:u,arguments:n}=e.parent.parent??{};return"CallExpression"===t&&!r&&"MemberExpression"===u.type&&!u.computed&&!u.optional&&u.object===e&&"Identifier"===u.property.type&&"includes"===u.property.name&&1===n.length&&"SpreadElement"!==n[0].type},gg=new Set(["ForOfStatement","ForStatement","ForInStatement","WhileStatement","DoWhileStatement","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]),gm=(e,t)=>{let r=t.parent.parent.parent,{parent:u}=e.parent;for(;u&&u!==r;){if(gg.has(u.type))return!0;u=u.parent}return!1};var gy=Y({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||gs(r.init,{name:"Array",optional:!1})||gd(r.init,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||gd(r.init,{methods:gf,optionalCall:!1,optionalMember:!1}))))return;let u=gi(e.sourceCode.getScope(t),t);if(!u)return;let n=go(u).filter(e=>e!==t);if(0===n.length||n.some(e=>!gp(e))||1===n.length&&n.every(e=>!gm(e,t)))return;let a={node:t,messageId:gc,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,")"),n))yield e.replaceText(r.parent.property,"has")};return t.typeAnnotation?a.suggest=[{messageId:gl,fix:i}]:a.fix=i,a}}),meta:{type:"suggestion",docs:{description:"Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence."},fixable:"code",hasSuggestions:!0,messages:{[gc]:"`{{name}}` should be a `Set`, and use `{{name}}.has()` to check existence or non-existence.",[gl]:"Switch `{{name}}` to `Set`."}}});const{hasSideEffect:gh}=tr,gb=function(e,t){let{line:r,column:u}=t.getLocFromIndex(e.range[0]);return t.getLines()[r-1].slice(0,u).match(/\s*$/)[0]},gv="prefer-switch",gx=(e,t)=>e===t||rH(e,t),gE=new Set(["WhileStatement","DoWhileStatement","ForStatement","ForOfStatement","ForInStatement","SwitchStatement"]),gA=e=>{for(;e.parent;e=e.parent)if(gE.has(e.type))return e},gD=(e,t)=>e.range[0]>=t.range[0]&&e.range[1]<=t.range[1];var gC=Y({create:e=>{let t={minimumCases:3,emptyDefaultCase:"no-default-comment",insertBreakInDefaultCase:!1,...e.options[0]},{sourceCode:r}=e,u=new Set,n=[],a=new Set;return{IfStatement(e){u.add(e)},BreakStatement(e){e.label||n.push(e)},*"Program:exit"(){for(let e of u){if(a.has(e))continue;let{discriminant:u,ifStatements:i}=function(e){let t;let r=[];for(;e&&"IfStatement"===e.type;e=e.alternate){let{test:u}=e,n=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}(u);if(0===n.length)break;if(!t){let[{left:e,right:r}]=n;t=[e,r]}let a=function(e,t){for(let{left:r,right:u}of e)if(0===(t=t.filter(e=>gx(e,r)||gx(e,u))).length)break;return t}(n,t);if(0===a.length)break;t=a,r.push({statement:e,compareExpressions:n})}return{ifStatements:r,discriminant:t&&t[0]}}(e);if(!u||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:gv};gh(u,r)||i.some(({statement:e})=>(function(e,t){for(let r of e){if(!gD(r,t))continue;let e=gA(r);if(!e||gD(t,e))return!0}return!1})(n,e))||(o.fix=function({discriminant:e,ifStatements:t},r,u){let n=r.getText(e);return function*(a){let i=t[0].statement,o=gb(i,r);yield a.insertTextBefore(i,`switch (${n}) {`);let s=t.at(-1).statement;if(s.alternate){let{alternate:e}=s;yield a.insertTextBefore(e,`
1
+ "use strict";var e,t,r,u,n,a,i,o=require("node:path"),s=require("node:fs"),d=require("@eslint-sukka/shared");function c(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var u=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,u.get?u:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var l=c(o),f=c(s);function p(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 m(e){return e?.type==="Identifier"||e?.type==="PrivateIdentifier"}function g(e){return e?.type==="MemberExpression"}function y(e){return e?.type==="AwaitExpression"}function h(e,t){return!!m(e)&&("function"==typeof t?t(e.name):Array.isArray(t)?t.includes(e.name):e.name===t)}function b(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 v(e){return!!e&&["ArrowFunctionExpression","FunctionDeclaration","FunctionExpression"].includes(e.type)}function x(e,t){return e?.type==="Identifier"&&t?.type===e.type&&e.name===t.name}function E({name:e,meta:t,create:r,resolveOptions:u}){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=u?.(...e.options)??e.options[0];return Object.fromEntries(Object.entries(r(e,t)).filter(e=>e[1]))}})}var A=E({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||!h(t.callee.property,"flatMap")||!(v(r=t.arguments[0])&&1===r.params.length&&"Identifier"===r.params[0].type&&r.body&&(x(r.params[0],r.body)||"BlockStatement"===r.body.type&&1===r.body.body.length&&"ReturnStatement"===r.body.body[0].type&&x(r.params[0],r.body.body[0].argument))))return;let{property:u}=t.callee;e.report({node:t,messageId:"invalid",*fix(e){yield e.replaceText(u,"flat"),yield*t.arguments.map(t=>e.remove(t))}})}})});const D=new Set(["href","pathname","search","hash","origin"]);var C=E({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(h(e,t))return e;for(;g(e);){if(h(e.property,t))return e;e=e.object}}(t.left,"location");if(!r)return;let u=S(r.parent);e.report({node:t,messageId:"instead",data:{name:u},fix:function(e,t,r){let u=S(t.parent);if(D.has(u??"href"))return u=>u.replaceText(r,`${e.getText(t)}.assign(${e.getText(r.right)})`)}(e.sourceCode,r,t)})}})});function S(e){if(g(e)&&m(e.property))return e.property.name}var F=E({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(u){let n=[...r.expressions,...r.quasis];n.sort((e,t)=>e.range[0]-t.range[0]);let a=n.map(t=>"TemplateElement"===t.type?t.value.cooked:"{"+e.sourceCode.getText(t)+"}");return u.replaceText(t,a.join(""))}})}})}),w=E({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 u=r.children[0];e.report({node:r,messageId:"invalid",*fix(e){"JSXExpressionContainer"===u.type?"JSXEmptyExpression"!==u.expression.type&&(yield e.replaceText(r,t.getText(u.expression))):yield e.replaceText(r,t.getText(u))}})}}}});const _=/^toLocale(?<name>Upper|Lower)Case$/g;var k=E({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||!g(t.callee)||!m(t.callee.property))return;let{property:r}=t.callee,u=_.exec(r.name);u&&e.report({node:t,data:{name:u.groups?.name},messageId:"instead",fix:e=>e.replaceText(r,r.name.replaceAll("Locale",""))})}})});function P(e){return JSON.stringify(e)}var T=E({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 u=(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 u=P(t.quasis[0].value.cooked),n=p(t,e=>"Property"===e.type&&e.key===t);return n?e.replaceText(n,`${u}: ${r.getText(n.value)}`):e.replaceText(t,u)}: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);u&&e.report({node:t,messageId:"invalid",fix:u})}})});const I=["BigInt","Boolean","Function","Number","Object","String","Symbol","Array"];var B=E({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,u=I.flatMap(e=>{let t=r?.set.get(e);return!t||t.defs.length>0?[]:t.references??[]});return{Program(){for(let{identifier:r}of u){let u=r.parent;if(u?.type==="BinaryExpression"&&"instanceof"===u.operator&&u.right===r){if("Array"===r.name)e.report({node:u,messageId:"array",fix:e=>e.replaceText(u,`Array.isArray(${t.getText(u.left)})`)});else{let n=r.name.toLowerCase();e.report({node:u,messageId:"primitive",data:{typeName:n},fix:e=>e.replaceText(u,`typeof ${t.getText(u.left)} === ${P(n)}`)})}}}}}}});const R=/\P{ASCII}/u;function N(e,t){return{Program(r){for(let u 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}(u);!1!==r&&e.test(r)&&t(u,"code")}for(let u of r.comments??[])e.test(u.value)&&t(u,"comment")}}}function L(e,t){switch(e.type){case"String":case"Template":return r=>{let u=e.value.slice(0,1),n=e.value.slice(-1),a=j(e.value.slice(1,-1),t);return r.replaceText(e,`${u}${a}${n}`)};case"JSXText":return r=>{let u=e.value.replace(t,e=>`&#x${O(e.codePointAt(0))};`);return r.replaceText(e,u)};case"RegularExpression":return r=>{let u=new Set(e.regex.flags);u.add("u");let n=new RegExp(j(e.regex.pattern,t),[...u].join(""));return r.replaceText(e,n.toString())}}}function j(e,t){return e.replace(t,e=>{let t=e.codePointAt(0);return t>65535?`\\u{${O(t)}}`:`\\u${O(t)}`})}function O(e){return e.toString(16).padStart(4,"0").toUpperCase()}E({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"):R,only:e?.only}),create:(e,{pattern:t,only:r})=>N(t,(u,n)=>{if(r&&r!==n)return;let a=L(u,RegExp(t.source,"gu"));e.report({node:u,messageId:"illegal",fix:a})})});const M=/[\u061C\u202A-\u202E\u2066-\u2069]/;var $=E({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=>N(M,(t,r)=>{let u=RegExp(M.source,"gu"),n={kind:r,text:j(t.value,u)},a=L(t,u);e.report({node:t,data:n,messageId:"detected",fix:a})})});const z=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 U=E({name:"unicode/no-invisible",meta:{type:"problem",fixable:"code",docs:{description:"Disallow invisible characters",recommended:"recommended"},schema:[],messages:{illegal:"Illegal character detected"}},create:e=>N(z,t=>{let r=L(t,RegExp(z.source,"gu"));e.report({node:t,messageId:"illegal",fix:r})})}),q=E({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 u=t.find(W);if(!u)return;let n=t[t.indexOf(u)-1];n&&"VariableDeclaration"===n.type&&1===n.declarations.length&&n.declarations.some(({init:e,id:t})=>null!==e&&x(u.argument,t))&&e.report({node:u,messageId:"invalid",fix:(r=e.sourceCode,e=>{let{init:t,id:a}=n.declarations[0];if(!(t&&a&&u.argument))return null;let i=!y(t)||p(t,"TryStatement")?t:t.argument,o=(e=>{if(!a.typeAnnotation)return e;let u=r.getText(a.typeAnnotation.typeAnnotation);return`(${e}) as ${y(t)?`Promise<${u}>`:u}`})(r.getText(i));return[e.remove(n),e.replaceText(u.argument,o)]})})}})});function W(e){return"ReturnStatement"===e.type&&m(e.argument)}var V=E({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(!v(t))return;let u=function(e,t){let r=t.find(Z);if(!r)return;let u=t.find(e=>"VariableDeclaration"===e.type&&"const"!==e.kind&&e.declarations.some(({id:e})=>x(r.argument,e)));if(u)return e.sourceCode.getDeclaredVariables(u).find(({references:e})=>e.every(e=>e.isWriteOnly()||e.identifier.parent===r))}(e,r);for(let{identifier:t}of u?.references??[])t.parent&&e.report({node:t.parent,messageId:"invalid"})}})});function Z(e){return"ReturnStatement"===e.type&&m(e.argument)}var G=E({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:u}){var n;if(!v(u)||!(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=(n=r[0],function*(t){let r;if("IfStatement"!==n.type)return;let{test:u,consequent:a}=n;yield t.insertTextBefore(u,"!("),yield t.insertTextAfter(u,")"),yield t.replaceText(a,"return;");let i=(r=e.sourceCode.getText(a),"BlockStatement"===a.type?r.slice(1,-1):r);yield t.insertTextAfter(n,i)});e.report({node:r[0],messageId:"prefer",fix:a})}})}),H=E({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 h(e,"XMLHttpRequest")})(t)||h(t.callee,"ActiveXObject")&&b(t.arguments[0],/xmlhttp/i))&&e.report({node:t,messageId:"callee"})},CallExpression(t){((function({callee:e}){let t="$http";return h(e,t)||g(e)&&h(e.object,t)})(t)||function({callee:e,parent:t}){let r=["$","jQuery"];return h(e,r)&&g(t)&&h(t.property,"load")||g(e)&&h(e.object,r)&&h(e.property,["ajax","get","post","getJSON","getScript"])}(t)||K(t,"axios")||K(t,"request"))&&e.report({node:t,messageId:"callee"})}})});function K(e,t){return h(e.callee,"require")&&b(e.arguments[0],t)}const X=new Set(["setTimeout","setInterval","requestAnimationFrame","requestIdleCallback"]);var J=E({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&&(!X.has(t.callee.name)||function(e){if(!h(e.callee,"setTimeout"))return!1;let t=e.arguments[1];return!t||b(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 = ")}]}))}})});function Y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Q(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 u=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,u.get?u:{enumerable:!0,get:function(){return e[t]}})}),r}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var ee=Q(l),et=function(e){let t=ee.basename(e,".js");return`https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/${t}.md`},er=Y(et);const eu={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(eu))Object.freeze(eu[e]);Object.freeze(eu);const en=new Set(["parent","leadingComments","trailingComments"]);function ea(e){return!en.has(e)&&"_"!==e[0]}function ei(e,t){let r=t.range[0],u=e,n=!1;do for(let e of(n=!1,u.childScopes)){let t=e.block.range;if(t[0]<=r&&r<t[1]){u=e,n=!0;break}}while(n);return u}function eo(e,t){let r="",u=e;for("string"==typeof t?r=t:(r=t.name,u=ei(u,t));null!=u;){let e=u.set.get(r);if(null!=e)return e;u=u.upper}return null}function es(e){return!this(e)}function ed(e){return es.bind(e)}function ec(e,t){return"Punctuator"===e.type&&e.value===t}function el(e){return ec(e,"=>")}function ef(e){return ec(e,",")}function ep(e){return ec(e,";")}function em(e){return ec(e,":")}function eg(e){return ec(e,"(")}function ey(e){return ec(e,")")}function eh(e){return ec(e,"[")}function eb(e){return ec(e,"]")}function ev(e){return ec(e,"{")}function ex(e){return ec(e,"}")}function eE(e){return["Block","Line","Shebang"].includes(e.type)}const eA=ed(el),eD=ed(ef),eC=ed(ep),eS=ed(em),eF=ed(eg),ew=ed(ey),e_=ed(eh),ek=ed(eb),eP=ed(ev),eT=ed(ex),eI=ed(eE);function eB(e,t){let r=e.parent,u=null,n=null;if("ArrowFunctionExpression"===e.type){let r=t.getTokenBefore(e.body,el);u=r.loc.start,n=r.loc.end}else u="Property"===r.type||"MethodDefinition"===r.type||"PropertyDefinition"===r.type?r.loc.start:e.loc.start,n=(e.id?t.getTokenAfter(e.id,eg):t.getFirstToken(e,eg)).loc.start;return{start:{...u},end:{...n}}}const eR="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},eN=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"])),eL=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)),ej=new Set([Object.freeze,Object.preventExtensions,Object.seal]),eO=[[Map,new Set(["size"])],[RegExp,new Set(["dotAll","flags","global","hasIndices","ignoreCase","multiline","source","sticky","unicode"])],[Set,new Set(["size"])]];function eM(e,t){let r=[];for(let u=0;u<e.length;++u){let n=e[u];if(null==n)r.length=u+1;else if("SpreadElement"===n.type){let e=ez(n.argument,t);if(null==e)return null;r.push(...e.value)}else{let e=ez(n,t);if(null==e)return null;r.push(e.value)}}return r}const e$=Object.freeze({ArrayExpression(e,t){let r=eM(e.elements,t);return null!=r?{value:r}:null},AssignmentExpression:(e,t)=>"="===e.operator?ez(e.right,t):null,BinaryExpression(e,t){if("in"===e.operator||"instanceof"===e.operator)return null;let r=ez(e.left,t),u=ez(e.right,t);if(null!=r&&null!=u)switch(e.operator){case"==":return{value:r.value==u.value};case"!=":return{value:r.value!=u.value};case"===":return{value:r.value===u.value};case"!==":return{value:r.value!==u.value};case"<":return{value:r.value<u.value};case"<=":return{value:r.value<=u.value};case">":return{value:r.value>u.value};case">=":return{value:r.value>=u.value};case"<<":return{value:r.value<<u.value};case">>":return{value:r.value>>u.value};case">>>":return{value:r.value>>>u.value};case"+":return{value:r.value+u.value};case"-":return{value:r.value-u.value};case"*":return{value:r.value*u.value};case"/":return{value:r.value/u.value};case"%":return{value:r.value%u.value};case"**":return{value:r.value**u.value};case"|":return{value:r.value|u.value};case"^":return{value:r.value^u.value};case"&":return{value:r.value&u.value}}return null},CallExpression(e,t){let r=e.callee,u=eM(e.arguments,t);if(null!=u){if("MemberExpression"===r.type){if("PrivateIdentifier"===r.property.type)return null;let n=ez(r.object,t);if(null!=n){if(null==n.value&&(n.optional||e.optional))return{value:void 0,optional:!0};let a=eU(r,t);if(null!=a){let e=n.value,t=a.value;if(eL.has(e[t]))return{value:e[t](...u)};if(ej.has(e[t]))return{value:u[0]}}}}else{let n=ez(r,t);if(null!=n){if(null==n.value&&e.optional)return{value:void 0,optional:!0};let t=n.value;if(eL.has(t))return{value:t(...u)};if(ej.has(t))return{value:u[0]}}}}return null},ConditionalExpression(e,t){let r=ez(e.test,t);return null!=r?r.value?ez(e.consequent,t):ez(e.alternate,t):null},ExpressionStatement:(e,t)=>ez(e.expression,t),Identifier(e,t){if(null!=t){let r=eo(t,e);if(null!=r&&0===r.defs.length&&eN.has(r.name)&&r.name in eR)return{value:eR[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,u=t.filter(e=>e.isReadOnly()).length;return 1===r&&u+r===t.length}(r))&&"Identifier"===e.node.id.type)return ez(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=ez(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 u=ez(e.right,t);if(null!=u)return u}return null},MemberExpression(e,t){if("PrivateIdentifier"===e.property.type)return null;let r=ez(e.object,t);if(null!=r){if(null==r.value&&(r.optional||e.optional))return{value:void 0,optional:!0};let u=eU(e,t);if(null!=u){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,u.value))return{value:r.value[u.value]};for(let[e,t]of eO)if(r.value instanceof e&&t.has(u.value))return{value:r.value[u.value]}}}return null},ChainExpression(e,t){let r=ez(e.expression,t);return null!=r?{value:r.value}:null},NewExpression(e,t){let r=ez(e.callee,t),u=eM(e.arguments,t);if(null!=r&&null!=u){let e=r.value;if(eL.has(e))return{value:new e(...u)}}return null},ObjectExpression(e,t){let r={};for(let u of e.properties)if("Property"===u.type){if("init"!==u.kind)return null;let e=eU(u,t),n=ez(u.value,t);if(null==e||null==n)return null;r[e.value]=n.value}else{if("SpreadElement"!==u.type&&"ExperimentalSpreadProperty"!==u.type)return null;let e=ez(u.argument,t);if(null==e)return null;Object.assign(r,e.value)}return{value:r}},SequenceExpression:(e,t)=>ez(e.expressions[e.expressions.length-1],t),TaggedTemplateExpression(e,t){let r=ez(e.tag,t),u=eM(e.quasi.expressions,t);if(null!=r&&null!=u){let t=r.value,n=e.quasi.quasis.map(e=>e.value.cooked);if(n.raw=e.quasi.quasis.map(e=>e.value.raw),t===String.raw)return{value:t(n,...u)}}return null},TemplateLiteral(e,t){let r=eM(e.expressions,t);if(null!=r){let t=e.quasis[0].value.cooked;for(let u=0;u<r.length;++u)t+=r[u]+e.quasis[u+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=ez(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 ez(e,t){return null!=e&&Object.hasOwnProperty.call(e$,e.type)?e$[e.type](e,t):null}function eU(e,t){let r="Property"===e.type?e.key:e.property;return e.computed?ez(r,t):"Identifier"===r.type?{value:r.name}:"Literal"===r.type?r.bigint?{value:r.bigint}:{value:String(r.value)}:null}function eq(e,t=null){try{return ez(e,t)}catch(e){return null}}function eW(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=eq(e,t);return r&&String(r.value)}function eV(e,t){switch(e.type){case"MemberExpression":if(e.computed)return eW(e.property,t);if("PrivateIdentifier"===e.property.type)break;return e.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":if(e.computed)return eW(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 eZ(e,t){let r=e.parent,u=[],n="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&&u.push("static"),"PrivateIdentifier"===r.key.type&&u.push("private")),e.async&&u.push("async"),e.generator&&u.push("generator"),n||a){if("constructor"===r.kind)return"constructor";"get"===r.kind?u.push("getter"):"set"===r.kind?u.push("setter"):u.push("method")}else i?u.push("method"):("ArrowFunctionExpression"===e.type&&u.push("arrow"),u.push("function"));if(n||a||i){if("PrivateIdentifier"===r.key.type)u.push(`#${r.key.name}`);else{let e=eV(r);if(e)u.push(`'${e}'`);else if(t){let e=t.getText(r.key);e.includes("\n")||u.push(`[${e}]`)}}}else e.id?u.push(`'${e.id.name}'`):"VariableDeclarator"===r.type&&r.id&&"Identifier"===r.id.type?u.push(`'${r.id.name}'`):("AssignmentExpression"===r.type||"AssignmentPattern"===r.type)&&r.left&&"Identifier"===r.left.type?u.push(`'${r.left.name}'`):"ExportDefaultDeclaration"===r.type&&r.declaration===e&&u.push("'default'");return u.join(" ")}const eG=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),eH=Object.freeze(new Set(["-","+","!","~"]));function eK(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}const eX=Object.freeze(Object.assign(Object.create(null),{$visit(e,t,r){let{type:u}=e;return"function"==typeof this[u]?this[u](e,t,r):this.$visitChildren(e,t,r)},$visitChildren(e,t,r){let{type:u}=e;for(let n of r[u]||Object.keys(e).filter(ea)){let u=e[n];if(Array.isArray(u)){for(let e of u)if(eK(e)&&this.$visit(e,t,r))return!0}else if(eK(u)&&this.$visit(u,t,r))return!0}return!1},ArrowFunctionExpression:()=>!1,AssignmentExpression:()=>!0,AwaitExpression:()=>!0,BinaryExpression(e,t,r){return!!(t.considerImplicitTypeConversion&&eG.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&&eH.has(e.operator)&&"Literal"!==e.argument.type)||this.$visitChildren(e,t,r)},UpdateExpression:()=>!0,YieldExpression:()=>!0}));function eJ(e,t,{considerGetters:r=!1,considerImplicitTypeConversion:u=!1}={}){return eX.$visit(e,{considerGetters:r,considerImplicitTypeConversion:u},t.visitorKeys||eu)}function eY(e,t,r){let u,n,a,i,o;if("number"==typeof e){if(u=0|e,n=t,a=r,!(u>=1))throw TypeError("'times' should be a positive integer.")}else u=1,n=e,a=t;if(null==n||null==n.parent||"CatchClause"===n.parent.type&&n.parent.param===n)return!1;i=o=n;do i=a.getTokenBefore(i),o=a.getTokenAfter(o);while(null!=i&&null!=o&&eg(i)&&ey(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,eg);return null;case"DoWhileStatement":if(r.test===e)return t.getTokenAfter(r.body,eg);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}}(n,a)&&--u>0);return 0===u}const eQ=/\$(?:[$&`']|[1-9][0-9]?)/gu,e0=new WeakMap;class e1{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.");e0.set(this,{pattern:new RegExp(e.source,e.flags),escaped:!!t})}*execAll(e){let{pattern:t,escaped:r}=e0.get(this),u=null,n=0;for(t.lastIndex=0;null!=(u=t.exec(e));)(r||!function(e,t){let r=!1;for(let u=t-1;u>=0&&92===e.charCodeAt(u);--u)r=!r;return r}(e,u.index))&&(n=t.lastIndex,yield u,t.lastIndex=n)}test(e){return!this.execAll(e).next().done}[Symbol.replace](e,t){return"function"==typeof t?function(e,t,r){let u=[],n=0;for(let a of e.execAll(t))u.push(t.slice(n,a.index)),u.push(String(r(...a,a.index,a.input))),n=a.index+a[0].length;return u.push(t.slice(n)),u.join("")}(this,String(e),t):function(e,t,r){let u=[],n=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))u.push(t.slice(n,a.index)),u.push(r.replace(eQ,i)),n=a.index+a[0].length;return u.push(t.slice(n)),u.join("")}(this,String(e),String(t))}}const e3=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,e2=Function.call.bind(Object.hasOwnProperty),e4=Symbol("read"),e5=Symbol("call"),e8=Symbol("construct"),e6=Symbol("esm"),e9={require:{[e5]:!0}};function e7(e){return null==e||0!==e.defs.length||e.references.some(e=>e.isWrite())}let te=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],u=[t],n=this.globalScope.set.get(t);e7(n)||(yield*this._iterateVariableReferences(n,u,r,!0))}for(let t of this.globalObjectNames){let r=[],u=this.globalScope.set.get(t);e7(u)||(yield*this._iterateVariableReferences(u,r,e,!1))}}*iterateCjsReferences(e){for(let{node:t}of this.iterateGlobalReferences(e9)){let r=eW(t.arguments[0]);if(null==r||!e2(e,r))continue;let u=e[r],n=[r];u[e4]&&(yield{node:t,path:n,type:e4,info:u[e4]}),yield*this._iteratePropertyReferences(t,n,u)}}*iterateEsmReferences(e){for(let t of this.globalScope.block.body){if(!e3.test(t.type)||null==t.source)continue;let r=t.source.value;if(!e2(e,r))continue;let u=e[r],n=[r];if(u[e4]&&(yield{node:t,path:n,type:e4,info:u[e4]}),"ExportAllDeclaration"===t.type)for(let e of Object.keys(u)){let r=u[e];r[e4]&&(yield{node:t,path:n.concat(e),type:e4,info:r[e4]})}else for(let e of t.specifiers){let t=e2(u,e6),r=this._iterateImportReferences(e,n,t?u:"legacy"===this.mode?{default:u,...u}:{default:u});if(t)yield*r;else for(let e of r)e.path=e.path.filter(tt),(e.path.length>=2||e.type!==e4)&&(yield e)}}}*_iterateVariableReferences(e,t,r,u){if(!this.variableStack.includes(e)){this.variableStack.push(e);try{for(let n of e.references){if(!n.isRead())continue;let e=n.identifier;u&&r[e4]&&(yield{node:e,path:t,type:e4,info:r[e4]}),yield*this._iteratePropertyReferences(e,t,r)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,t,r){let u=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}}(u);)u=u.parent;let n=u.parent;if("MemberExpression"===n.type){if(n.object===u){let e=eV(n);if(null==e||!e2(r,e))return;t=t.concat(e);let u=r[e];u[e4]&&(yield{node:n,path:t,type:e4,info:u[e4]}),yield*this._iteratePropertyReferences(n,t,u)}return}if("CallExpression"===n.type){n.callee===u&&r[e5]&&(yield{node:n,path:t,type:e5,info:r[e5]});return}if("NewExpression"===n.type){n.callee===u&&r[e8]&&(yield{node:n,path:t,type:e8,info:r[e8]});return}if("AssignmentExpression"===n.type){n.right===u&&(yield*this._iterateLhsReferences(n.left,t,r),yield*this._iteratePropertyReferences(n,t,r));return}if("AssignmentPattern"===n.type){n.right===u&&(yield*this._iterateLhsReferences(n.left,t,r));return}"VariableDeclarator"===n.type&&n.init===u&&(yield*this._iterateLhsReferences(n.id,t,r))}*_iterateLhsReferences(e,t,r){if("Identifier"===e.type){let u=eo(this.globalScope,e);null!=u&&(yield*this._iterateVariableReferences(u,t,r,!1));return}if("ObjectPattern"===e.type){for(let u of e.properties){let e=eV(u);if(null==e||!e2(r,e))continue;let n=t.concat(e),a=r[e];a[e4]&&(yield{node:u,path:n,type:e4,info:a[e4]}),yield*this._iterateLhsReferences(u.value,n,a)}return}"AssignmentPattern"===e.type&&(yield*this._iterateLhsReferences(e.left,t,r))}*_iterateImportReferences(e,t,r){let u=e.type;if("ImportSpecifier"===u||"ImportDefaultSpecifier"===u){let n="ImportDefaultSpecifier"===u?"default":e.imported.name;if(!e2(r,n))return;t=t.concat(n);let a=r[n];a[e4]&&(yield{node:e,path:t,type:e4,info:a[e4]}),yield*this._iterateVariableReferences(eo(this.globalScope,e.local),t,a,!1);return}if("ImportNamespaceSpecifier"===u){yield*this._iterateVariableReferences(eo(this.globalScope,e.local),t,r,!1);return}if("ExportSpecifier"===u){let u=e.local.name;if(!e2(r,u))return;t=t.concat(u);let n=r[u];n[e4]&&(yield{node:e,path:t,type:e4,info:n[e4]})}}};function tt(e,t){return!(1===t&&"default"===e)}te.READ=e4,te.CALL=e5,te.CONSTRUCT=e8,te.ESM=e6;var tr=Q(Object.freeze({__proto__:null,CALL:e5,CONSTRUCT:e8,ESM:e6,PatternMatcher:e1,READ:e4,ReferenceTracker:te,default:{CALL:e5,CONSTRUCT:e8,ESM:e6,findVariable:eo,getFunctionHeadLocation:eB,getFunctionNameWithKind:eZ,getInnermostScope:ei,getPropertyName:eV,getStaticValue:eq,getStringIfConstant:eW,hasSideEffect:eJ,isArrowToken:el,isClosingBraceToken:ex,isClosingBracketToken:eb,isClosingParenToken:ey,isColonToken:em,isCommaToken:ef,isCommentToken:eE,isNotArrowToken:eA,isNotClosingBraceToken:eT,isNotClosingBracketToken:ek,isNotClosingParenToken:ew,isNotColonToken:eS,isNotCommaToken:eD,isNotCommentToken:eI,isNotOpeningBraceToken:eP,isNotOpeningBracketToken:e_,isNotOpeningParenToken:eF,isNotSemicolonToken:eC,isOpeningBraceToken:ev,isOpeningBracketToken:eh,isOpeningParenToken:eg,isParenthesized:eY,isSemicolonToken:ep,PatternMatcher:e1,READ:e4,ReferenceTracker:te},findVariable:eo,getFunctionHeadLocation:eB,getFunctionNameWithKind:eZ,getInnermostScope:ei,getPropertyName:eV,getStaticValue:eq,getStringIfConstant:eW,hasSideEffect:eJ,isArrowToken:el,isClosingBraceToken:ex,isClosingBracketToken:eb,isClosingParenToken:ey,isColonToken:em,isCommaToken:ef,isCommentToken:eE,isNotArrowToken:eA,isNotClosingBraceToken:eT,isNotClosingBracketToken:ek,isNotClosingParenToken:ew,isNotColonToken:eS,isNotCommaToken:eD,isNotCommentToken:eI,isNotOpeningBraceToken:eP,isNotOpeningBracketToken:e_,isNotOpeningParenToken:eF,isNotSemicolonToken:eC,isOpeningBraceToken:ev,isOpeningBracketToken:eh,isOpeningParenToken:eg,isParenthesized:eY,isSemicolonToken:ep}));const{isParenthesized:tu}=tr,tn="too-deep",ta="should-parenthesized";var ti=Y({create:e=>({ConditionalExpression(t){if([t.test,t.consequent,t.alternate].some(e=>"ConditionalExpression"===e.type))return;let{sourceCode:r}=e,u=r.getAncestors(t).reverse(),n=u.findIndex(e=>"ConditionalExpression"!==e.type);return 1!==n||tu(t,r)?n>1?{node:n>2?u[n-3]:t,messageId:tn}:void 0:{node:t,messageId:ta,fix:e=>[e.insertTextBefore(t,"("),e.insertTextAfter(t,")")]}}}),meta:{type:"suggestion",docs:{description:"Disallow nested ternary expressions."},fixable:"code",messages:{[tn]:"Do not nest ternary expressions.",[ta]:"Nest ternary expression should be parenthesized."}}});const{isParenthesized:to,isOpeningParenToken:ts,isClosingParenToken:td}=tr;function tc(e,t){let r=0;for(;to(r+1,e,t);)r++;return r}function tl(e,t){let r=tc(e,t);return 0===r?[]:[...t.getTokensBefore(e,{count:r,filter:ts}),...t.getTokensAfter(e,{count:r,filter:td})]}function tf(e,t){let r=tl(e,t),[u]=(r[0]||e).range,[,n]=(r.at(-1)||e).range;return[u,n]}var tp={isParenthesized:to,getParenthesizedTimes:tc,getParentheses:tl,getParenthesizedRange:tf,getParenthesizedText:function(e,t){let[r,u]=tf(e,t);return t.text.slice(r,u)}};function tm(e,t){return e?.type==="Literal"&&(null===t?"null"===e.raw:e.value===t)}var tg={isLiteral:tm,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=>tm(e,null),isRegexLiteral:e=>"Literal"===e.type&&!!e.regex};function ty(e,t,r){if(!r.includes(e?.type))return!1;"string"==typeof t&&(t={names:[t]}),Array.isArray(t)&&(t={names:t});let{name:u,names:n,argumentsLength:a,minimumArguments:i,maximumArguments:o,allowSpreadElement:s,optional:d}={minimumArguments:0,maximumArguments:Number.POSITIVE_INFINITY,allowSpreadElement:!1,...t};if(u&&(n=[u]),!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(n)||!(n.length>0)||"Identifier"===e.callee.type&&!!n.includes(e.callee.name)}var th={isCallExpression:(e,t)=>ty(e,t,["CallExpression"]),isNewExpression:(e,t)=>{if("boolean"==typeof t?.optional)throw TypeError("Cannot check node.optional in `isNewExpression`.");return ty(e,t,["NewExpression"])},isCallOrNewExpression:(e,t)=>ty(e,t,["CallExpression","NewExpression"])},tb=["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"],tv=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:u,object:n,objects:a,optional:i,computed:o}={property:"",properties:[],object:"",...t};if(r&&(u=[r]),n&&(a=[n]),!0===i&&e.optional!==i||!1===i&&e.optional)return!1;if(Array.isArray(u)&&u.length>0){if("Identifier"!==e.property.type||!u.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:tx}=th,{isStringLiteral:tE}=tg,{isCallExpression:tA}=th,{isLiteral:tD,isStringLiteral:tC,isNumberLiteral:tS,isBigIntLiteral:tF,isNullLiteral:tw,isRegexLiteral:t_}=tg,{isNewExpression:tk,isCallExpression:tP,isCallOrNewExpression:tT}=th;var tI={isLiteral:tD,isStringLiteral:tC,isNumberLiteral:tS,isBigIntLiteral:tF,isNullLiteral:tw,isRegexLiteral:t_,isArrowFunctionBody:function(e){return"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e},isCallExpression:tP,isCallOrNewExpression:tT,isEmptyNode:function e(t,r){let{type:u}=t;return"BlockStatement"===u?t.body.every(t=>e(t,r)):!!("EmptyStatement"===u||r?.(t))},isExpressionStatement:function(e){return"ExpressionStatement"===e.type||"ChainExpression"===e.type&&"ExpressionStatement"===e.parent.type},isFunction:function(e){return tb.includes(e.type)},isMemberExpression:tv,isMethodCall:function(e,t){"string"==typeof t&&(t={methods:[t]}),Array.isArray(t)&&(t={methods:t});let{optionalCall:r,optionalMember:u,method:n,methods:a}={method:"",methods:[],...t};return tx(e,{argumentsLength:t.argumentsLength,minimumArguments:t.minimumArguments,maximumArguments:t.maximumArguments,allowSpreadElement:t.allowSpreadElement,optional:r})&&tv(e.callee,{object:t.object,objects:t.objects,computed:t.computed,property:n,properties:a,optional:u})},isNewExpression:tk,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"TSPropertySignature":return t.key===e}return!1}(e)},isStaticRequire:e=>tA(e,{name:"require",argumentsLength:1,optional:!1})&&tE(e.arguments[0]),isUndefined:function(e){return"Identifier"===e.type&&"undefined"===e.name},functionTypes:tb};const{isMemberExpression:tB}=tI;function tR(e,t){let{object:r,property:u,properties:n}={property:"",properties:[],...t};if(!tB(e,{property:u,properties:n,optional:!1}))return;let a=e.object;return tB(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}function tN(e,t){let r=t.trim().split(".");for(let t=r.length-1;t>=0;t--){let u=r[t];if(!u)return!1;if(0===t)return"Identifier"===e.type&&e.name===u||"this"===u&&"ThisExpression"===e.type;if("MemberExpression"!==e.type||e.optional||e.computed||"Identifier"!==e.property.type||e.property.name!==u)return!1;e=e.object}}var tL={isNodeMatchesNameOrPath:tN,isNodeMatches:function(e,t){return t.some(t=>tN(e,t))}},tj=e=>e?.type==="LogicalExpression"&&("&&"===e.operator||"||"===e.operator);const tO=e=>e?.type==="UnaryExpression"&&"!"===e.operator,tM=e=>tO(e.parent)&&e.parent.argument===e,t$=e=>tz(e.parent)&&e.parent.arguments[0]===e,tz=e=>e?.type==="CallExpression"&&"Identifier"===e.callee.type&&"Boolean"===e.callee.name&&1===e.arguments.length,tU=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 tq={},tW={};Object.defineProperty(tW,"__esModule",{value:!0}),tW.isIdentifierChar=tQ,tW.isIdentifierName=function(e){let t=!0;for(let r=0;r<e.length;r++){let u=e.charCodeAt(r);if((64512&u)==55296&&r+1<e.length){let t=e.charCodeAt(++r);(64512&t)==56320&&(u=65536+((1023&u)<<10)+(1023&t))}if(t){if(t=!1,!tY(u))return!1}else if(!tQ(u))return!1}return!t},tW.isIdentifierStart=tY;let tV="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",tZ="‌‍\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const tG=RegExp("["+tV+"]"),tH=RegExp("["+tV+tZ+"]");tV=tZ=null;const tK=[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],tX=[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 tJ(e,t){let r=65536;for(let u=0,n=t.length;u<n&&!((r+=t[u])>e);u+=2)if((r+=t[u+1])>=e)return!0;return!1}function tY(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&tG.test(String.fromCharCode(e)):tJ(e,tK)))}function tQ(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&tH.test(String.fromCharCode(e)):tJ(e,tK)||tJ(e,tX))))}var t0={};Object.defineProperty(t0,"__esModule",{value:!0}),t0.isKeyword=function(e){return t1.has(e)},t0.isReservedWord=t4,t0.isStrictBindOnlyReservedWord=t8,t0.isStrictBindReservedWord=function(e,t){return t5(e,t)||t8(e)},t0.isStrictReservedWord=t5;const t1=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"]),t3=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),t2=new Set(["eval","arguments"]);function t4(e,t){return t&&"await"===e||"enum"===e}function t5(e,t){return t4(e,t)||t3.has(e)}function t8(e){return t2.has(e)}Object.defineProperty(tq,"__esModule",{value:!0}),Object.defineProperty(tq,"isIdentifierChar",{enumerable:!0,get:function(){return e.isIdentifierChar}}),Object.defineProperty(tq,"isIdentifierName",{enumerable:!0,get:function(){return e.isIdentifierName}}),Object.defineProperty(tq,"isIdentifierStart",{enumerable:!0,get:function(){return e.isIdentifierStart}}),Object.defineProperty(tq,"isKeyword",{enumerable:!0,get:function(){return t.isKeyword}}),Object.defineProperty(tq,"isReservedWord",{enumerable:!0,get:function(){return t.isReservedWord}}),Object.defineProperty(tq,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return t.isStrictBindOnlyReservedWord}}),Object.defineProperty(tq,"isStrictBindReservedWord",{enumerable:!0,get:function(){return t.isStrictBindReservedWord}}),Object.defineProperty(tq,"isStrictReservedWord",{enumerable:!0,get:function(){return t.isStrictReservedWord}}),e=tW,t=t0;const t6=e=>[e,...e.childScopes.flatMap(e=>t6(e))];var t9=e=>[...new Set(t6(e).flatMap(({references:e})=>e))];const{isIdentifierName:t7,isStrictReservedWord:re,isKeyword:rt}=tq,rr=function(e,t){for(;t;){let r=t.set.get(e);if(r)return r;t=t.upper}},ru=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"]),rn=e=>"string"==typeof e&&!rt(e)&&!re(e,!0)&&t7(e)&&"arguments"!==e&&!ru.has(e),ra=(e,t)=>t9(t).some(({identifier:t,resolved:r})=>t?.name===e&&!r),ri=(e,t)=>!t.some(t=>rr(e,t)||ra(e,t)),ro=()=>!0;var rs=function(e,t,r=ro){if(rn(e)||rn(e+="_")){for(;!ri(e,t)||!r(e,t);)e+="_";return e}};const rd={},rc=rd.hasOwnProperty,rl=(e,t)=>{for(let r in e)rc.call(e,r)&&t(r,e[r])},rf=(e,t)=>(t&&rl(t,(t,r)=>{e[t]=r}),e),rp=(e,t)=>{let r=e.length,u=-1;for(;++u<r;)t(e[u])},rm=e=>"\\u"+("0000"+e).slice(-4),rg=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},ry=rd.toString,rh=Array.isArray,rb=e=>"function"==typeof Buffer&&Buffer.isBuffer(e),rv=e=>"[object Object]"==ry.call(e),rx=e=>"string"==typeof e||"[object String]"==ry.call(e),rE=e=>"number"==typeof e||"[object Number]"==ry.call(e),rA=e=>"function"==typeof e,rD=e=>"[object Map]"==ry.call(e),rC=e=>"[object Set]"==ry.call(e),rS={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},rF=/[\\\b\f\n\r\t]/,rw=/[0-9]/,r_=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,rk=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,rP=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,rT=(e,t)=>{let r;let u=()=>{c=d,++t.indentLevel,d=t.indent.repeat(t.indentLevel)},n={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&&(n.quotes="double",n.wrap=!0),"single"!=(t=rf(n,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),c="",l=t.__inline1__,f=t.__inline2__,p=o?"":"\n",m=!0,g="binary"==t.numbers,y="octal"==t.numbers,h="decimal"==t.numbers,b="hexadecimal"==t.numbers;if(a&&e&&rA(e.toJSON)&&(e=e.toJSON()),!rx(e)){if(rD(e))return 0==e.size?"new Map()":(o||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+rT(Array.from(e),t)+")");if(rC(e))return 0==e.size?"new Set()":"new Set("+rT(Array.from(e),t)+")";if(rb(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+rT(Array.from(e),t)+")";if(rh(e))return(r=[],t.wrap=!0,l&&(t.__inline1__=!1,t.__inline2__=!0),f||u(),rp(e,e=>{m=!1,f&&(t.__inline2__=!1),r.push((o||f?"":d)+rT(e,t))}),m)?"[]":f?"["+r.join(", ")+"]":"["+p+r.join(","+p)+p+(o?"":c)+"]";if(rE(e)){if(a)return JSON.stringify(e);if(h)return String(e);if(b){let t=e.toString(16);return s||(t=t.toUpperCase()),"0x"+t}if(g)return"0b"+e.toString(2);if(y)return"0o"+e.toString(8)}else if(rv(e))return(r=[],t.wrap=!0,u(),rl(e,(e,u)=>{m=!1,r.push((o?"":d)+rT(e,t)+":"+(o?"":" ")+rT(u,t))}),m)?"{}":"{"+p+r.join(","+p)+p+(o?"":c)+"}";else return a?JSON.stringify(e)||"null":String(e)}let v=t.escapeEverything?rk:rP;return r=e.replace(v,(e,r,u,n,o,d)=>{if(r){if(t.minimal)return r;let e=r.charCodeAt(0),u=r.charCodeAt(1);return t.es6?"\\u{"+rg((e-55296)*1024+u-56320+65536,s)+"}":rm(rg(e,s))+rm(rg(u,s))}if(u)return rm(rg(u.charCodeAt(0),s));if("\0"==e&&!a&&!rw.test(d.charAt(o+1)))return"\\0";if(n)return n==i||t.escapeEverything?"\\"+n:n;if(rF.test(e))return rS[e];if(t.minimal&&!r_.test(e))return e;let c=rg(e.charCodeAt(0),s);return a||c.length>2?rm(c):"\\x"+("00"+c).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};rT.version="3.0.2";var rI=function(e,t="'"){if("string"!=typeof e)throw TypeError("Unexpected string.");return rT(e,{quotes:'"'===t?"double":"single",wrap:!0,es6:!0,minimal:!0,lowercaseHex:!1})},rB=({identifiers:e,references:t})=>[...new Set([...e,...t.map(({identifier:e})=>e)])];const rR=e=>"MemberExpression"===e.type||"CallExpression"===e.type,{findVariable:rN}=tr,rL=(e,t)=>{let{references:r=[]}=rN(e,t)||{};return r};var rj=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:rO}=tI,rM=new Set(["ArrayExpression","ArrowFunctionExpression","ClassExpression","FunctionExpression","Literal","ObjectExpression","TemplateLiteral"]),{isUndefined:r$,isCallExpression:rz,isMethodCall:rU}=tI,rq=new Set(["ArrayExpression","BinaryExpression","ClassExpression","Literal","ObjectExpression","TemplateLiteral","UnaryExpression","UpdateExpression"]),rW=new Set(["AssignmentExpression","AwaitExpression","NewExpression","TaggedTemplateExpression","ThisExpression"]);var rV=function(e,t){return e.loc.start.line===t.loc.start.line};const{getStaticValue:rZ}=tr;function rG(e){let t;switch(e?.type){case"MemberExpression":t=e.property;break;case"ChainExpression":return rG(e.expression);case"Property":case"MethodDefinition":t=e.key}if(t){if("Identifier"===t.type&&!e.computed)return t.name;let r=rZ(t);if(!r)return;return String(r.value)}}var rH=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 u=rG(t);if(void 0!==u)return e(t.object,r.object)&&u===rG(r);return t.computed===r.computed&&e(t.object,r.object)&&e(t.property,r.property)}default:return!1}},rK=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:rX}=tI,rJ=new Set(["String","Null","Boolean","Numeric","RegularExpression"]),rY=new Set(["[","(","/","`","+","-","*",",","."]);var rQ=function(e,t,r){if(""===r||r&&!rY.has(r.charAt(0))||!e)return!1;let{type:u,value:n,range:a}=e,i=t.getNodeByRangeIndex(a[0]);if("Punctuator"===u){if(";"===n)return!1;if("]"===n)return!0;if(")"===n){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!!rJ.has(u)||("Template"===u?n.endsWith("`"):"ObjectExpression"===i.type||"Identifier"===u&&("of"!==n||"ForOfStatement"!==i.type)&&("await"!==n||"AwaitExpression"!==i.type))};const{isOpeningParenToken:r0,isClosingParenToken:r1}=tr;var r3=function(e,t){if(e.arguments.length>0)return!0;let[r,u]=t.getLastTokens(e,2);return r0(r)&&r1(u)&&e.callee.range[1]<e.range[1]};const{isNumberLiteral:r2,isBigIntLiteral:r4}=tI,r5=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,r8=e=>r5.test(e);var r6={isDecimalIntegerNode:e=>r2(e)&&r8(e.raw),isDecimalInteger:r8,isNumeric:e=>r2(e)||r4(e),isLegacyOctal:e=>r2(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:u="",power:n=""}=e.match(/^(?<number>[\d._]*?)(?:(?<mark>[Ee])(?<sign>[+-])?(?<power>[\d_]+))?$/).groups;return{number:t,mark:r,sign:u,power:n}},parseFloatNumber:function(e){let t=e.split("."),[r,u=""]=t;return{integer:r,dot:2===t.length?".":"",fractional:u}}};const{isDecimalIntegerNode:r9}=r6;var r7=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!r3(e,t);case"Literal":if(r9(e))return!0;return!1;default:return!0}},ue={exports:{}};r=function(){var e=[],t=[],r={},u={},n={};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,u){if(!e.length||r.hasOwnProperty(e))return t;for(var n=u.length;n--;){var a=u[n];if(a[0].test(t))return function(e,t){return e.replace(t[0],function(r,u){var n,a,o=(n=t[1],a=arguments,n.replace(/\$(\d{1,2})/g,function(e,t){return a[t]||""}));return""===r?i(e[u-1],o):i(r,o)})}(t,a)}return t}function s(e,t,r){return function(u){var n=u.toLowerCase();return t.hasOwnProperty(n)?i(u,n):e.hasOwnProperty(n)?i(u,e[n]):o(n,u,r)}}function d(e,t,r,u){return function(u){var n=u.toLowerCase();return!!t.hasOwnProperty(n)||!e.hasOwnProperty(n)&&o(n,n,r)===n}}function c(e,t,r){var u=1===t?c.singular(e):c.plural(e);return(r?t+" ":"")+u}return c.plural=s(n,u,e),c.isPlural=d(n,u,e),c.singular=s(u,n,t),c.isSingular=d(u,n,t),c.addPluralRule=function(t,r){e.push([a(t),r])},c.addSingularRule=function(e,r){t.push([a(e),r])},c.addUncountableRule=function(e){if("string"==typeof e){r[e.toLowerCase()]=!0;return}c.addPluralRule(e,"$0"),c.addSingularRule(e,"$0")},c.addIrregularRule=function(e,t){t=t.toLowerCase(),n[e=e.toLowerCase()]=t,u[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 c.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 c.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 c.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(c.addUncountableRule),c},ue.exports=r();const{singular:ut}=ue.exports;var ur=function(e,t,r=0,u=0){let[n,a]=Array.isArray(e)?e:e.range;return{start:t.getLocFromIndex(n+r),end:t.getLocFromIndex(a+u)}};const{isParenthesized:uu,getParenthesizedTimes:un,getParentheses:ua,getParenthesizedRange:ui,getParenthesizedText:uo}=tp,{isArrayPrototypeProperty:us,isObjectPrototypeProperty:ud}={isArrayPrototypeProperty:(e,t)=>tR(e,{...t,object:"Array"}),isObjectPrototypeProperty:(e,t)=>tR(e,{...t,object:"Object"})},{isNodeMatches:uc,isNodeMatchesNameOrPath:ul}=tL,{isBooleanNode:uf,getBooleanAncestor:up}={isBooleanNode:function e(t){if(tO(t)||tM(t)||tz(t)||t$(t))return!0;let{parent:r}=t;return!!tU(r)||("IfStatement"===r.type||"ConditionalExpression"===r.type||"WhileStatement"===r.type||"DoWhileStatement"===r.type||"ForStatement"===r.type)&&r.test===t||!!tj(r)&&e(r)},getBooleanAncestor:function(e){let t=!1;for(;;)if(tM(e))t=!t,e=e.parent;else if(t$(e))e=e.parent;else break;return{node:e,isNegative:t}}};var um={avoidCapture:rs,escapeString:rI,getBooleanAncestor:up,getParentheses:ua,getParenthesizedRange:ui,getParenthesizedText:uo,getParenthesizedTimes:un,getReferences:t9,getScopes:t6,getVariableIdentifiers:rB,hasOptionalChainElement:function e(t){return!!rR(t)&&(!!t.optional||"MemberExpression"===t.type&&e(t.object))},isArrayPrototypeProperty:us,isBooleanNode:uf,isFunctionSelfUsedInside:function(e,t){if(t.block!==e)throw Error('"functionScope" should be the scope of "functionNode".');let{type:r,id:u}=e;return"ArrowFunctionExpression"!==r&&(!!(t.thisFound||rL(t,"arguments").some(({from:e})=>e===t))||!!u&&rL(t,u).length>0)},isLeftHandSide:rj,isLogicalExpression:tj,isMethodNamed:(e,t)=>"CallExpression"===e.type&&"MemberExpression"===e.callee.type&&"Identifier"===e.callee.property.type&&e.callee.property.name===t,isNodeMatches:uc,isNodeMatchesNameOrPath:ul,isNodeValueNotDomNode:e=>rM.has(e.type)||rO(e),isNodeValueNotFunction:e=>rq.has(e.type)||rW.has(e.type)||r$(e)||rz(e)&&!rU(e,{method:"bind",optionalCall:!1,optionalMember:!1}),isObjectPrototypeProperty:ud,isOnSameLine:rV,isParenthesized:uu,isSameIdentifier:(e,t)=>"Identifier"===e.type&&"Identifier"===t.type&&e.name===t.name,isSameReference:rH,isShadowed:rK,isValueNotUsable:e=>rX(e.parent),needsSemicolon:rQ,shouldAddParenthesesToMemberExpressionObject:r7,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=ut(e);if(t!==e)return t},toLocation:ur,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:ug}=tr,{getAncestor:uy}=um,{isStaticRequire:uh,isStringLiteral:ub,isMemberExpression:uv}=tI,ux="prefer-event-target",uE=new Set(["@angular/core","eventemitter3"]),uA=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 uD(e){let t;return!!e&&(uh(e)?[t]=e.arguments:"AwaitExpression"===e.type&&"ImportExpression"===e.argument.type&&({source:t}=e.argument),!!(ub(t)&&uE.has(t.value)))}var uC=Y({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=uy(e,"ImportDeclaration");return!!(uE.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)&&uA(e.parent.parent)&&uD(e.parent.parent.parent.init)||uA(e)&&uv(e.parent.init,{property:"EventEmitter",optional:!1,computed:!1})&&uD(e.parent.init.object))}(ug(r,t)?.defs[0]?.name))return{node:t,messageId:ux}}}),meta:{type:"suggestion",docs:{description:"Prefer `EventTarget` over `EventEmitter`."},messages:{[ux]:"Prefer `EventTarget` over `EventEmitter`."}}});const uS={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:uF}=tI,uw="prefer-keyboard-event-key",u_=new Set(["keyCode","charCode","which"]),uk=e=>e?.type==="CallExpression"&&"MemberExpression"===e.callee.type&&"addEventListener"===e.callee.property.name,uP=(e,t)=>{let r=uI(t,"CallExpression",uk),u=r?.arguments[1];switch(u?.type){case"ArrowFunctionExpression":case"FunctionExpression":{let t=e.sourceCode.getDeclaredVariables(u)[0],r=t?.references;return{event:u.params[0],references:r}}default:return{}}},uT=(e,t)=>e?.parent?.type==="MemberExpression"&&e.parent.object===t,uI=(e,t,r=()=>!0)=>{let u=e;for(;u;){if(u.type===t&&r(u))return u;u=u.parent}},uB=(e,t)=>{let r=e;for(;r&&t;)t--,r=r.parent;if(0===t)return r},uR=e=>t=>{let r=uB(e,3);if(!r||"IfStatement"!==r.type)return;let{type:u,operator:n,right:a}=r.test;if(!("BinaryExpression"===u&&("=="===n||"==="===n)&&uF(a)))return;let i=uS[a.value]||String.fromCodePoint(a.value);if(i)return[t.replaceText(e,"key"),t.replaceText(a,rI(i))]},uN=e=>({messageId:uw,data:{name:e.name},node:e,fix:uR(e)});var uL=Y({create:e=>({Identifier(t){if("keyCode"!==t.name&&"charCode"!==t.name&&"which"!==t.name)return;let{event:r,references:u}=uP(e,t);if(r&&u&&u.some(e=>uT(t,e.identifier)))return uN(t)},Property(t){let r=t.value.name;if(!u_.has(r))return;let{event:u,references:n}=uP(e,t);if(!u)return;let a=uI(t,"VariableDeclarator"),i=a?.init;if(n&&n.some(e=>e.identifier===i))return uN(t.value);if("ObjectPattern"===u.type){for(let e of u.properties)if(e===t)return uN(t.value)}}}),meta:{type:"suggestion",docs:{description:"Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`."},fixable:"code",messages:{[uw]:"Use `.key` instead of `.{{name}}`."}}});const{isMemberExpression:uj}=tI,uO="error",uM="suggestion";var u$=Y({create:()=>({MemberExpression(e){if(!uj(e,{property:"innerText"}))return;let t=e.property;return{node:t,messageId:uO,suggest:[{messageId:uM,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:uO,suggest:[{messageId:uM,fix:t=>t.replaceText(e,e.parent.shorthand?"textContent: innerText":"textContent")}]}}}),meta:{type:"suggestion",docs:{description:"Prefer `.textContent` over `.innerText`."},hasSuggestions:!0,messages:{[uO]:"Prefer `.textContent` over `.innerText`.",[uM]:"Switch to `.textContent`."}}});const{getParentheses:uz}=tp,{isCommaToken:uU}=tr,{isCommaToken:uq}=tr,{getParentheses:uW}=tp,{getParenthesizedRange:uV}=tp,{isSemicolonToken:uZ}=tr;var uG=function*(e,t,r){if("ReturnStatement"!==t.type&&"ThrowStatement"!==t.type)return;let u=r.getFirstToken(t);yield e.insertTextAfter(u," (");let n=r.getLastToken(t);if(!uZ(n)){yield e.insertTextAfter(t,")");return}yield e.insertTextBefore(n,")")},uH=function(e,t,r){let u=e;"object"==typeof e&&Array.isArray(e.range)&&(u=e.range[1]);let[n]=t.text.slice(u).match(/^\s*/);return r.removeRange([u,u+n.length])};const{isParenthesized:uK}=tp,{isParenthesized:uX}=tp,{getParenthesizedRange:uJ}=tp;var uY=function(e,t,r){let[,u]=uJ(t.object,r),[,n]=t.range;return e.removeRange([u,n])};const{getParenthesizedRange:uQ}=tp;var u0=function*(e,t,r){let u=t.callee;yield uY(e,u,r);let[,n]=uQ(u,r),[,a]=t.range;yield e.removeRange([n,a])},u1=e=>"Property"===e.parent.type&&e.parent.shorthand&&e===e.parent.value,u3=(e,t)=>e&&t&&e.range[0]===t.range[0]&&e.range[1]===t.range[1];const u2=e=>"AssignmentPattern"===e.parent.type&&e.parent.left===e&&u1(e.parent),u4=e=>{let{type:t,local:r,imported:u}=e.parent;return"ImportSpecifier"===t&&u3(r,u)&&r===e},u5=e=>{let{type:t,local:r,exported:u}=e.parent;return"ExportSpecifier"===t&&u3(r,u)&&r===e};var u8=function(e,t,r){return u1(e)||u2(e)?r.replaceText(e,`${e.name}: ${t}`):u4(e)?r.replaceText(e,`${e.name} as ${t}`):u5(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:u6}=tp,{getParenthesizedRange:u9}=tp,u7=({type:e,value:t})=>"Keyword"===e&&/^[a-z]*$/.test(t)||"Identifier"===e&&"of"===t||"Identifier"===e&&"await"===t;var ne={extendFixRange:function*(e,t){yield e.insertTextBeforeRange(t,""),yield e.insertTextAfterRange(t,"")},removeParentheses:function*(e,t,r){for(let u of uz(e,r))yield t.remove(u)},appendArgument:function(e,t,r,u){if("CallExpression"!==t.type)throw Error(`Unexpected node "${t.type}".`);let[n,a]=u.getLastTokens(t,2);return t.arguments.length>0&&(r=uU(n)?` ${r},`:`, ${r}`),e.insertTextBefore(a,r)},removeArgument:function(e,t,r){let u=t.parent,n=u.arguments.indexOf(t),a=uW(t,r),i=a[0]||t,o=a.at(-1)||t,[s]=i.range,[,d]=o.range;if(0!==n&&(s=r.getTokenBefore(i).range[0]),1===u.arguments.length){let e=r.getTokenBefore(o);uq(e)&&(d=e[1])}return e.replaceTextRange([s,d],"")},replaceArgument:function(e,t,r,u){return e.replaceTextRange(uV(t,u),r)},switchNewExpressionToCallExpression:function*(e,t,r){let u=t.getFirstToken(e);yield r.remove(u),yield uH(u,t,r),r3(e,t)||(yield r.insertTextAfter(e,"()")),rV(u,e.callee)||uK(e,t)||(yield*uG(r,e.parent,t))},switchCallExpressionToNewExpression:function*(e,t,r){var u;yield r.insertTextBefore(e,"new ");let{callee:n}=e;!uX(n,t)&&"MemberExpression"===(u=n).type&&function(e){let t=e.object,r=e.object.type;for(;"MemberExpression"===r;)r=(t=t.object).type;return"CallExpression"===r}(u)&&(yield r.insertTextBefore(n,"("),yield r.insertTextAfter(n,")"))},removeMemberExpressionProperty:uY,removeMethodCall:u0,replaceTemplateElement:(e,t,r)=>{let{range:[u,n],tail:a}=t;return e.replaceTextRange([u+1,n-(a?1:2)],r)},replaceReferenceIdentifier:u8,renameVariable:(e,t,r)=>rB(e).map(e=>u8(e,t,r)),replaceNodeOrTokenAndSpacesBefore:function* e(t,r,u,n,a=n){for(let r of u6(t,a))yield*e(r,"",u,n,a);let[i,o]=t.range,[s]=n.text.slice(0,i).match(/\s*$/),[d]=s.match(/(?:\r?\n|\r){0,1}/);i-=s.length,yield u.replaceTextRange([i,o],`${d}${r}`)},removeSpacesAfter:uH,fixSpaceAroundKeyword:function*(e,t,r){let u=u9(t,r),n=r.getTokenBefore({range:u},{includeComments:!0});n&&u[0]===n.range[1]&&u7(n)&&(yield e.insertTextAfter(n," "));let a=r.getTokenAfter({range:u},{includeComments:!0});a&&u[1]===a.range[0]&&u7(a)&&(yield e.insertTextBefore(a," "))},replaceStringLiteral:function(e,t,r,u,n){let a=t.range[0]+1,i=Number.isInteger(n)?u+a:a,o=Number.isInteger(n)?n+a:t.range[1]-1;return e.replaceTextRange([i,o],r)},addParenthesizesToReturnOrThrowExpression:uG};const{appendArgument:nt}=ne,{isMethodCall:nr}=tI,{isArrayPrototypeProperty:nu}=um,nn="require-array-join-separator";var na=Y({create:e=>({CallExpression(t){if(!(nr(t,{method:"join",argumentsLength:0,optionalCall:!1})||nr(t,{method:"call",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&nu(t.callee.object,{property:"join"})))return;let{sourceCode:r}=e,[u,n]=r.getLastTokens(t,2),a=1===t.arguments.length;return{loc:{start:u.loc[a?"end":"start"],end:n.loc.end},messageId:nn,fix:e=>nt(e,t,"','",r)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the separator argument with `Array#join()`."},fixable:"code",messages:{[nn]:"Missing the separator argument."}}});const{getStaticValue:ni,getPropertyName:no}=tr,{isMethodCall:ns}=tI,nd="no-thenable-object",nc="no-thenable-export",nl="no-thenable-class",nf=(e,t)=>ni(e,t.sourceCode.getScope(e))?.value==="then",np=(e,t)=>{try{return"then"===no(e,t.sourceCode.getScope(e))}catch{}return!1},nm=[{selector:"ObjectExpression",*getNodes(e,t){for(let r of e.properties)"Property"===r.type&&np(r,t)&&(yield r.key)},messageId:nd},{selectors:["PropertyDefinition","MethodDefinition"],*getNodes(e,t){"then"===no(e,t.sourceCode.getScope(e))&&(yield e.key)},messageId:nl},{selector:"MemberExpression",*getNodes(e,t){"AssignmentExpression"===e.parent.type&&e.parent.left===e&&"then"===no(e,t.sourceCode.getScope(e))&&(yield e.property)},messageId:nd},{selector:"CallExpression",*getNodes(e,t){if(!(ns(e,{objects:["Object","Reflect"],method:"defineProperty",minimumArguments:3,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==e.arguments[0].type))return;let[,r]=e.arguments;nf(r,t)&&(yield r)},messageId:nd},{selector:"CallExpression",*getNodes(e,t){if(ns(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;nf(e,t)&&(yield e)}}},messageId:nd},{selector:"Identifier",*getNodes(e){"then"===e.name&&"ExportSpecifier"===e.parent.type&&e.parent.exported===e&&(yield e)},messageId:nc},{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:nc},{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:nc}];var ng=Y({create:e=>{for(let{selector:t,selectors:r,messageId:u,getNodes:n}of nm)e.on(t??r,function*(t){for(let r of n(t,e))yield{node:r,messageId:u}})},meta:{type:"problem",docs:{description:"Disallow `then` property."},messages:{[nd]:"Do not add `then` to an object.",[nc]:"Do not export `then`.",[nl]:"Do not add `then` to a class."}}});const{getFunctionHeadLocation:ny}=tr,{isMethodCall:nh}=tI,nb="no-invalid-remove-event-listener";var nv=Y({create:e=>({CallExpression(t){if(!(nh(t,{method:"removeEventListener",minimumArguments:2,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==t.arguments[0].type&&("FunctionExpression"===t.arguments[1].type||"ArrowFunctionExpression"===t.arguments[1].type||nh(t.arguments[1],{method:"bind",optionalCall:!1,optionalMember:!1}))))return;let[,r]=t.arguments;return["ArrowFunctionExpression","FunctionExpression"].includes(r.type)?{node:r,loc:ny(r,e.sourceCode),messageId:nb}:{node:r.callee.property,messageId:nb}}}),meta:{type:"problem",docs:{description:"Prevent calling `EventTarget#removeEventListener()` with the result of an expression."},messages:{[nb]:"The listener argument should be a function reference."}}});const{getFunctionHeadLocation:nx,getFunctionNameWithKind:nE}=tr,{getReferences:nA,isNodeMatches:nD}=um,{functionTypes:nC}=tI,nS="consistent-function-scoping",nF=(e,t)=>e&&t&&(e===t||e.block===t.block),nw=["useState","useEffect","useContext","useReducer","useCallback","useMemo","useRef","useImperativeHandle","useLayoutEffect","useDebugValue"].flatMap(e=>[e,`React.${e}`]),n_=e=>e.block?.parent?.callee&&nD(e.block.parent.callee,nw),nk=e=>"function"===e.type&&e.block?.type==="ArrowFunctionExpression"&&(e.thisFound||e.childScopes.some(e=>nk(e))),nP=new Set(["FunctionExpression","ArrowFunctionExpression"]),nT=e=>nP.has(e.type)&&"CallExpression"===e.parent.type&&e.parent.callee===e;var nI=Y({create:e=>{let{checkArrowFunctions:t}={checkArrowFunctions:!0,...e.options[0]},{sourceCode:r}=e,{scopeManager:u}=r,n=[];e.on(nC,()=>{n.push(!1)}),e.on("JSXElement",()=>{n.length>0&&(n[n.length-1]=!0)}),e.onExit(nC,e=>{if(!(n.pop()||"ArrowFunctionExpression"===e.type&&!t||function(e,t){let r=t.acquire(e);if(!r||nk(r))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 n=t.acquire(u);return!!(!n||"global"===n.type||n_(n)||nT(u))||function(e,t,r){let u=e=>e.some(e=>{if(nF(t,e.from))return!0;let{resolved:r}=e,[u]=r.defs;return(u?.type!=="FunctionName"||r.name!==u.name.name)&&nF(t,r.scope)}),n=e=>e.some(e=>nF(t,r.acquire(e.node))),a=u=>u.some(u=>{if(!u.parent||"FunctionDeclaration"!==u.parent.type||r.acquire(u))return!1;let n=r.acquire(u.parent);return!(!n||nF(e,n))&&nF(t,n.upper)});return nA(e).map(({resolved:e})=>e).filter(Boolean).some(e=>u(e.references)||n(e.defs)||a(e.identifiers))}(r,n,t)}(e,u)))return{node:e,loc:nx(e,r),messageId:nS,data:{functionNameWithKind:nE(e,r)}}})},meta:{type:"suggestion",docs:{description:"Move function definitions to the highest possible scope."},schema:[{type:"object",additionalProperties:!1,properties:{checkArrowFunctions:{type:"boolean",default:!0}}}],messages:{[nS]:"Move {{functionNameWithKind}} to the outer scope."}}});const{getStaticValue:nB}=tr,{isNumberLiteral:nR}=tI,nN=(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),nL=(e,t)=>"CallExpression"===e.type&&!e.optional&&"Identifier"===e.callee.type&&e.callee.name===t,nj=new Set(["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"]),nO=e=>nN(e,"Math",nj),nM=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"]),n$=e=>"CallExpression"===e.type&&!e.optional&&nN(e.callee,"Math",nM),nz=e=>nL(e,"Number"),nU=new Set(["EPSILON","MAX_SAFE_INTEGER","MAX_VALUE","MIN_SAFE_INTEGER","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]),nq=e=>nN(e,"Number",nU),nW=new Set(["parseFloat","parseInt"]),nV=e=>"CallExpression"===e.type&&!e.optional&&nN(e.callee,"Number",nW),nZ=e=>nL(e,"parseInt")||nL(e,"parseFloat"),nG=(e,t)=>"number"==typeof nB(e,t)?.value,nH=e=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.property.type&&"length"===e.property.name,nK=new Set(["-","*","/","%","**","<<",">>","|","^","&"]);var nX=function e(t,r){if(nR(t)||nO(t)||n$(t)||nz(t)||nq(t)||nV(t)||nZ(t)||nH(t))return!0;switch(t.type){case"AssignmentExpression":{let{operator:u}=t;if("="===u&&e(t.right,r))return!0}case"BinaryExpression":{let{operator:u}=t;if("AssignmentExpression"===t.type&&(u=u.slice(0,-1)),"+"===u&&e(t.left,r)&&e(t.right,r)||">>>"===u||nK.has(u)&&(e(t.left,r)||e(t.right,r)))return!0;break}case"UnaryExpression":{let{operator:u}=t;if("+"===u||("-"===u||"~"===u)&&e(t.argument,r))return!0;break}case"UpdateExpression":if(e(t.argument,r))return!0;break;case"ConditionalExpression":{let u=e(t.consequent,r),n=e(t.alternate,r);if(u&&n)return!0;let a=nB(t.test,r);if(null!==a&&(a.value&&u||!a.value&&n))return!0;break}case"SequenceExpression":if(e(t.expressions.at(-1),r))return!0}return nG(t,r)};const{getStaticValue:nJ}=tr,{switchNewExpressionToCallExpression:nY}=ne,{isNewExpression:nQ}=tI,n0="error",n1="error-unknown",n3="suggestion",n2=(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(nX(r,t))return"alloc";let u=nJ(r,t);if(u){let{value:e}=u;if("string"==typeof e||Array.isArray(e))return"from"}};function n4(e,t,r){return function*(u){yield u.insertTextAfter(e.callee,`.${r}`),yield*nY(e,t,u)}}var n5=Y({create:e=>{let{sourceCode:t}=e;return{NewExpression(e){if(!nQ(e,{name:"Buffer"}))return;let r=n2(e.arguments,t.getScope(e));return r?{node:e,messageId:n0,data:{method:r},fix:n4(e,t,r)}:{node:e,messageId:n1,suggest:["from","alloc"].map(r=>({messageId:n3,data:{replacement:r},fix:n4(e,t,r)}))}}}},meta:{type:"problem",docs:{description:"Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`."},fixable:"code",hasSuggestions:!0,messages:{[n0]:"`new Buffer()` is deprecated, use `Buffer.{{method}}()` instead.",[n1]:"`new Buffer()` is deprecated, use `Buffer.alloc()` or `Buffer.from()` instead.",[n3]:"Switch to `Buffer.{{replacement}}()`."}}});const{isStringLiteral:n8,isMethodCall:n6}=tI,n9="no-console-spaces",n7=e=>e.length>1&&" "===e.charAt(0)&&" "!==e.charAt(1),ae=e=>e.length>1&&" "===e.at(-1)&&" "!==e.at(-2);var at=Y({create:e=>{let{sourceCode:t}=e,r=(e,r,u)=>{let n="leading"===u?e.range[0]+1:e.range[1]-2,a=[n,n+1];return{loc:ur(a,t),messageId:n9,data:{method:r,position:u},fix:e=>e.removeRange(a)}};return{*CallExpression(e){if(!n6(e,{object:"console",methods:["log","debug","info","warn","error"],minimumArguments:1,optionalCall:!1,optionalMember:!1}))return;let u=e.callee.property.name,{arguments:n}=e,{length:a}=n;for(let[e,i]of n.entries()){if(!n8(i)&&"TemplateLiteral"!==i.type)continue;let n=t.getText(i).slice(1,-1);0!==e&&n7(n)&&(yield r(i,u,"leading")),e!==a-1&&ae(n)&&(yield r(i,u,"trailing"))}}}},meta:{type:"suggestion",docs:{description:"Do not use leading/trailing space between `console.log` parameters."},fixable:"code",messages:{[n9]:"Do not use {{position}} space between `console.{{method}}` parameters."}}});const{isEmptyNode:ar}=tI,au="no-empty-file",an=e=>"ExpressionStatement"===e.type&&"string"==typeof e.directive,aa=e=>ar(e,an),ai=e=>"Line"===e.type&&e.value.startsWith("/"),ao=e=>e.some(e=>ai(e));var as=Y({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=>!aa(e)))return;let{sourceCode:r}=e;if(!ao(r.getAllComments()))return{node:t,messageId:au}}}},meta:{type:"suggestion",docs:{description:"Disallow empty files."},messages:{[au]:"Empty files are not allowed."}}});const{isParenthesized:ad,getParenthesizedRange:ac}=tp,{removeParentheses:al}=ne,af="no-useless-fallback-in-spread";var ap=Y({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:u}=e,n=t.parent,{left:a}=n,i=ad(a,u),[,o]=i?ac(a,u):a.range,[,s]=n.range;yield r.removeRange([o,s]),(i||"SequenceExpression"!==a.type)&&(yield*al(n,r,u))}}}}),meta:{type:"suggestion",docs:{description:"Disallow useless fallback when spreading in object literals."},fixable:"code",messages:{[af]:"The empty object is useless."}}});const{isMethodCall:am,isMemberExpression:ag}=tI,{getParenthesizedRange:ay,isSameReference:ah,isLogicalExpression:ab}=um,av=e=>"BinaryExpression"===e.type&&"Literal"===e.right.type&&"0"===e.right.raw&&ag(e.left,{property:"length",optional:!1})&&ab(e.parent);var ax=Y({create:e=>{let t=[],r=new Set,u=new Set,n=new Set,a=new Set;return{BinaryExpression(e){if(av(e)){let{operator:t}=e;"==="===t?r.add(e):(">"===t||"!=="===t)&&u.add(e)}},CallExpression(e){am(e,{optionalCall:!1,optionalMember:!1,computed:!1})&&"Identifier"===e.callee.property.type&&("some"===e.callee.property.name?n.add(e):"every"===e.callee.property.name&&a.add(e))},LogicalExpression(e){ab(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)&&ah(e.left.object,t.callee.object))||"&&"===t&&u.has(e)&&i.some(t=>n.has(t)&&ah(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:u,right:n}=i.parent,a=ay(u,r),o=ay(n,r),s=[];return u===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."},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:aE}=um,{isFunction:aA,isMethodCall:aD}=tI;var aC=Y({create:e=>{let{sourceCode:t}=e;return{CallExpression(e){if(!(aD(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:u}=function(e){let t,r=!1;for(;e;e=e.parent){if(aA(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:u}=e,n=r.property.name;return{node:r,messageId:n,data:{type:"YieldExpression"===u.type?"yield":"return"},fix:t}}(e,function(e,t,r){if(e.arguments.length>1)return;let{callee:u,parent:n,arguments:[a]}=e;if(a?.type==="SpreadElement")return;let i="reject"===u.property.name,o="YieldExpression"===n.type;if(!i||!t&&(!o||"ExpressionStatement"===n.parent.type))return function(t){let u="ArrowFunctionExpression"===n.type,s=a?r.getText(a):"";if(a?.type==="SequenceExpression"&&(s=`(${s})`),i){if(s=s||"undefined",s=`throw ${s}`,o)return t.replaceTextRange(aE(n,r),s);if(s+=";",u)return s=`{ ${s} }`,t.replaceTextRange(aE(e,r),s)}else o?s=`yield${s?" ":""}${s}`:"ReturnStatement"===n.type?s=`return${s?" ":""}${s};`:(a?.type==="ObjectExpression"&&(s=`(${s})`),s=s||"{}");return t.replaceText(u?e:n,s)}}(e,u,t))}}},meta:{type:"suggestion",docs:{description:"Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks"},fixable:"code",messages:{resolve:"Prefer `{{type}} value` over `{{type}} Promise.resolve(value)`.",reject:"Prefer `throw error` over `{{type}} Promise.reject(error)`."}}});const{isParenthesized:aS}=tr,{isDecimalInteger:aF}=r6,{fixSpaceAroundKeyword:aw}=ne,{isNumberLiteral:a_}=tI,ak="zero-fraction",aP="dangling-dot";var aT=Y({create:e=>({Literal(t){if(!a_(t))return;let{raw:r}=t,u=r.match(/^(?<before>[\d_]*)(?<dotAndFractions>\.[\d_]*)(?<after>.*)$/);if(!u)return;let{before:n,dotAndFractions:a,after:i}=u.groups,o=(n+a.replaceAll(/[.0_]+$/g,"")||"0")+i;if(o===r)return;let s=t.range[0]+n.length+a.length,d=s-(r.length-o.length),{sourceCode:c}=e;return{loc:ur([d,s],c),messageId:"."===a?aP:ak,*fix(e){let r=o;"MemberExpression"===t.parent.type&&t.parent.object===t&&aF(o)&&!aS(t,c)&&(r=`(${r})`,rQ(c.getTokenBefore(t),c,r)&&(r=`;${r}`)),yield e.replaceText(t,r),yield*aw(e,t,c)}}}}),meta:{type:"suggestion",docs:{description:"Disallow number literals with zero fractions or dangling dots."},fixable:"code",messages:{[ak]:"Don't use a zero fraction in the number.",[aP]:"Don't use a dangling dot in the number."}}});const{isCommaToken:aI,isOpeningBraceToken:aB,isClosingBraceToken:aR}=tr,{isStringLiteral:aN}=tI,aL="error",aj="suggestion",aO=Symbol.for("default"),aM=Symbol("NAMESPACE_SPECIFIER_NAME"),a$=e=>{switch(e.type){case"Identifier":return Symbol.for(e.name);case"Literal":return e.value}},az=e=>"type"===e.exportKind||"type"===e.parent.exportKind,aU=e=>"type"===e.importKind||"type"===e.parent.importKind;function*aq(e,t,r){switch(e.type){case"ImportSpecifier":case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":yield*function*(e,t,r){let{parent:u}=e,{specifiers:n}=u;if(1===n.length){yield*aq(u,t,r);return}switch(e.type){case"ImportSpecifier":if(!n.some(t=>t!==e&&t.type===e.type)){let u=r.getTokenAfter(e,aR),n=r.getTokenBefore(e,aI);yield t.replaceTextRange([n.range[0],u.range[1]],"");return}case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ImportDefaultSpecifier":{yield t.remove(e);let u=r.getTokenAfter(e);aI(u)&&(yield t.remove(u))}}}(e,t,r);return;case"ImportDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":yield t.remove(e)}}function aW(e,t){let[r]=t.getTokenBefore(e.source,e=>"Identifier"===e.type&&"from"===e.value).range,[,u]=e.range;return t.text.slice(r,u)}var aV=Y({create:function(e){let{sourceCode:t}=e,{ignoreUsedVariables:r}={ignoreUsedVariables:!1,...e.options[0]},u=new Set,n=[];return{ImportDeclaration(e){e.specifiers.length>0&&u.add(e)},ExportNamedDeclaration(e){aN(e.source)&&n.push(e)},*"Program:exit"(e){for(let a of u){let u=t.getDeclaredVariables(a);if(u.some(e=>1!==e.defs.length||e.defs[0].parent!==a)||(u=u.map(e=>{let r=function(e,t){let r=e.defs[0].node,u={node:r,declaration:r.parent,variable:e,isTypeImport:aU(r)};switch(r.type){case"ImportDefaultSpecifier":return{name:aO,text:"default",...u};case"ImportSpecifier":return{name:a$(r.imported),text:t.getText(r.imported),...u};case"ImportNamespaceSpecifier":return{name:aM,text:"*",...u}}}(e,t),u=function(e,t){let r=[];for(let{identifier:u}of e.variable.references){let n=function(e,t){let{parent:r}=e;switch(r.type){case"ExportDefaultDeclaration":return{node:r,name:aO,text:"default",isTypeExport:az(r)};case"ExportSpecifier":return{node:r,name:a$(r.exported),text:t.getText(r.exported),isTypeExport:az(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:u,references:n}]=r;return 1===u.length&&u[0]===e.id&&1===n.length&&n[0].identifier===e.id}(r,t))return{node:r.parent.parent,name:Symbol.for(r.id.name),text:t.getText(r.id)}}}(u,t);n&&(e.name!==aM||n.name!==aO)&&r.push(n)}return r}(r,t);return{variable:e,imported:r,exports:u}}),r&&u.some(({variable:e,exports:t})=>e.references.length!==t.length)))continue;let i=r&&u.some(({variable:e})=>0===e.references.length);for(let{imported:r,exports:a}of u)for(let u of a){let a={node:u.node,messageId:aL,data:{exported:u.text}},o=function({sourceCode:e,imported:t,exported:r,exportDeclarations:u,program:n}){let a;let i=t.declaration,o=i.source.value,s=t.isTypeImport||r.isTypeExport;return s&&(a=u.find(({source:e,exportKind:t})=>e.value===o&&"type"===t)),a||(a=u.find(({source:e,exportKind:t})=>e.value===o&&"type"!==t)),function*(u){if(t.name===aM)yield u.insertTextAfter(n,`
2
+ export * as ${r.text} ${aW(i,e)}`);else{let o=r.name===t.name?r.text:`${t.text} as ${r.text}`;if(s&&(!a||"type"!==a.exportKind)&&(o=`type ${o}`),a){let t=a.specifiers.at(-1);if(t)yield u.insertTextAfter(t,`, ${o}`);else{let t=e.getFirstToken(a,aB);yield u.insertTextAfter(t,o)}}else yield u.insertTextAfter(n,`
3
+ export {${o}} ${aW(i,e)}`)}1===t.variable.references.length&&(yield*aq(t.node,u,e)),yield*aq(r.node,u,e)}}({sourceCode:t,imported:r,exported:u,exportDeclarations:n,program:e});i?a.suggest=[{messageId:aj,fix:o}]:a.fix=o,yield a}}}}},meta:{type:"suggestion",docs:{description:"Prefer `export…from` when re-exporting."},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignoreUsedVariables:{type:"boolean",default:!1}}}],messages:{[aL]:"Use `export…from` to re-export `{{exported}}`.",[aj]:"Switch to `export…from`."}}});const{getFunctionHeadLocation:aZ,getFunctionNameWithKind:aG}=tr,{functionTypes:aH}=tI,aK="prefer-native-coercion-functions",aX=new Set(["String","Number","BigInt","Boolean","Symbol"]),aJ=new Set(["every","filter","find","findLast","findIndex","findLastIndex","some"]),aY=(e,t)=>e?.type==="CallExpression"&&!e.optional&&"Identifier"===e.callee.type&&aX.has(e.callee.name)&&e.arguments[0]?.type==="Identifier"&&e.arguments[0].name===t,aQ=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,a0=e=>aQ(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&&aJ.has(e.parent.callee.property.name);var a1=Y({create:e=>{e.on(aH,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(a0(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&&aY(e.body,t)?e.body:"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&aY(e.body.body[0].argument,t)?e.body.body[0].argument:void 0}(e);if(!t)return;let{name:r}=t.callee,u={replacementFunction:r};return"FunctionDeclaration"===e.type||1!==t.arguments.length||(u.fix=t=>{let u=r;return"Property"===e.parent.type&&e.parent.method&&e.parent.value===e?u=`: ${u}`:"MethodDefinition"===e.parent.type&&(u=` = ${u};`),t.replaceText(e,u)}),u}(t);if(!r)return;let{sourceCode:u}=e,{replacementFunction:n,fix:a}=r;return r={node:t,loc:aZ(t,u),messageId:aK,data:{functionNameWithKind:aG(t,u),replacementFunction:n}},!a||1!==t.params.length||u.getCommentsInside(t).length>0||(r.fix=a),r})},meta:{type:"suggestion",docs:{description:"Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly."},fixable:"code",messages:{[aK]:"{{functionNameWithKind}} is equivalent to `{{replacementFunction}}`. Use `{{replacementFunction}}` directly."}}});const{ReferenceTracker:a3}=tr,a2=(e,t)=>{let r={[t]:!0};for(let t of e.split(".").reverse())r={[t]:r};return r};let a4=class{#e={};#t;#r;constructor({object:e,objects:t=[e],filter:r,handle:u,type:n=a3.READ}){for(let e of t)Object.assign(this.#e,a2(e,n));this.#t=r,this.#r=u}*track(e){for(let t of new a3(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(a4,{READ:a3.READ,CALL:a3.CALL,CONSTRUCT:a3.CONSTRUCT});var a5={GlobalReferenceTracker:a4};const{GlobalReferenceTracker:a8}=a5,a6="no-document-cookie",a9=new a8({object:"document.cookie",filter:({node:e})=>"AssignmentExpression"===e.parent.type&&e.parent.left===e,handle:({node:e})=>({node:e,messageId:a6})});var a7=Y({create:e=>a9.createListeners(e),meta:{type:"problem",docs:{description:"Do not use `document.cookie` directly."},messages:{[a6]:"Do not use `document.cookie` directly."}}});const ie=e=>[`webkit${e}`,`o${e.toLowerCase()}`,e.toLowerCase()];var it=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:ir}=tr,{isUndefined:iu,isNullLiteral:ia,isStaticRequire:ii}=tI,io="prefer-add-event-listener",is={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')`."},id=e=>e.property.name,ic=e=>e.slice(2),il=(e,t,r,u)=>{let n=ic(id(u)),a=t.getText(u.object);ir(u.object,t)&&(a=`(${a})`);let i=t.getText(r.right);ir(r.right,t)&&(i=`(${i})`);let o=`${a}.addEventListener('${n}', ${i})`;return e.replaceText(r,o)},ip=(e,t)=>("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type)&&"BlockStatement"===e.body.type&&!t.get(e),im=e=>iu(e)||ia(e);var ig=Y({create:e=>{let t,r;let u=new Set((e.options[0]||{}).excludedPackages||["koa","sax"]),n=new WeakMap;return{onCodePathStart(e,t){r={node:t,upper:r,returnsSomething:!1}},onCodePathEnd(){n.set(r.node,r.returnsSomething),r=r.upper},CallExpression(e){ii(e)&&!t&&u.has(e.arguments[0].value)&&(t=!0)},Literal(e){"ImportDeclaration"===e.parent.type&&!t&&u.has(e.value)&&(t=!0)},ReturnStatement(e){r.returnsSomething=r.returnsSomething||!!e.argument},"AssignmentExpression:exit"(r){let u;if(t)return;let{left:a,right:i,operator:o}=r;if("MemberExpression"!==a.type||a.computed)return;let s=id(a);if(!s||!s.startsWith("on"))return;let d=ic(s);if(!it.has(d))return;let c="addEventListener",l="";return im(i)?c="removeEventListener":"beforeunload"!==d||ip(i,n)?"message"===d?l=is.message:"error"===d?l=is.error:"="===o&&"ExpressionStatement"===r.parent.type&&r.parent.expression===r&&(u=t=>il(t,e.sourceCode,r,a)):l=is.beforeunload,{node:a.property,messageId:io,data:{replacement:c,method:s,extra:l?` ${l}`:""},fix:u}}}},meta:{type:"suggestion",docs:{description:"Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions."},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{excludedPackages:{type:"array",items:{type:"string"},uniqueItems:!0}}}],messages:{[io]:"Prefer `{{replacement}}` over `{{method}}`.{{extra}}"}}});const{hasSideEffect:iy,isParenthesized:ih,findVariable:ib}=tr,{isMethodCall:iv}=tI,{isSameIdentifier:ix,isFunctionSelfUsedInside:iE}=um,iA=(e,t)=>"BinaryExpression"===e.type&&"==="===e.operator&&(ix(e.left,t)||ix(e.right,t)),iD=e=>"ArrowFunctionExpression"===e.type&&!e.async&&1===e.params.length&&iA(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&&iA(e.body.body[0].argument,e.params[0]),iC=({type:e,name:t},r)=>"Identifier"===e&&t===r,iS=function({method:e,replacement:t}){let r=`prefer-${t}-over-${e}/`,u=`${r}error`,n=`${r}suggestion`;return{messages:{[u]:({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],[n]:`Replace \`.${e}()\` with \`.${t}()\`.`},listen:function(r){let{sourceCode:a}=r,{scopeManager:i}=a;r.on("CallExpression",r=>{let o,s;if(!iv(r,{method:e,argumentsLength:1,optionalCall:!1,optionalMember:!1})||!iD(r.arguments[0]))return;let[d]=r.arguments,c="BinaryExpression"===d.body.type?d.body:d.body.body[0].argument,[l]=d.params,{left:f,right:p}=c,{name:m}=l;if(iC(f,m))o=p,s=f;else{if(!iC(p,m))return;o=f,s=p}let g=i.acquire(d);if(ib(g,l).references.some(({identifier:e})=>e!==s)||iE(d,g))return;let y=r.callee.property,h={node:y,messageId:u,suggest:[]},b=function*(e){let r=a.getText(o);ih(o,a)&&!ih(d,a)&&(r=`(${r})`),yield e.replaceText(y,t),yield e.replaceText(d,r)};return iy(o,a)?h.suggest.push({messageId:n,fix:b}):h.fix=b,h})}}},iF=iS({method:"findIndex",replacement:"indexOf"}),iw=iS({method:"findLastIndex",replacement:"lastIndexOf"});var i_=Y({create(e){iF.listen(e),iw.listen(e)},meta:{type:"suggestion",docs:{description:"Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item."},fixable:"code",hasSuggestions:!0,messages:{...iF.messages,...iw.messages}}});const{isMethodCall:ik}=tI,iP="error";var iT=Y({create:()=>({CallExpression(e){if(!ik(e,{methods:["readAsText","readAsArrayBuffer"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let t=e.callee.property,r=t.name;return{node:t,messageId:iP,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(…)`."},messages:{[iP]:"Prefer `Blob#{{replacement}}()` over `FileReader#{{method}}(blob)`."}}});const{isMethodCall:iI,isCallExpression:iB,isNewExpression:iR}=tI,{fixSpaceAroundKeyword:iN}=ne,iL="prefer-date",ij="prefer-date-now-over-methods",iO="prefer-date-now-over-number-data-object",iM=e=>iR(e,{name:"Date",argumentsLength:0}),i$=(e,t,r)=>({node:e,messageId:iL,*fix(t){yield t.replaceText(e,"Date.now()"),"UnaryExpression"===e.type&&(yield*iN(t,e,r))},...t});var iz=Y({create:e=>({CallExpression(e){if(iI(e,{methods:["getTime","valueOf"],argumentsLength:0,optionalCall:!1,optionalMember:!1})&&iM(e.callee.object)){let t=e.callee.property;return i$(e,{node:t,messageId:ij,data:{method:t.name}})}if(iB(e,{names:["Number","BigInt"],argumentsLength:1,optional:!1})&&iM(e.arguments[0])){let{name:t}=e.callee;return"Number"===t?i$(e,{messageId:iO}):i$(e.arguments[0])}},UnaryExpression(t){if(("+"===t.operator||"-"===t.operator)&&iM(t.argument))return i$("-"===t.operator?t.argument:t,{},e.sourceCode)},AssignmentExpression(e){if(("-="===e.operator||"*="===e.operator||"/="===e.operator||"%="===e.operator||"**="===e.operator)&&iM(e.right))return i$(e.right)},*BinaryExpression(e){if("-"===e.operator||"*"===e.operator||"/"===e.operator||"%"===e.operator||"**"===e.operator)for(let t of[e.left,e.right])iM(t)&&(yield i$(t))}}),meta:{type:"suggestion",docs:{description:"Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch."},fixable:"code",messages:{[iL]:"Prefer `Date.now()` over `new Date()`.",[ij]:"Prefer `Date.now()` over `Date#{{method}}()`.",[iO]:"Prefer `Date.now()` over `Number(new Date())`."}}});const{isIdentifierName:iU}=tq,{escapeString:iq,hasOptionalChainElement:iW,isValueNotUsable:iV}=um,{isMethodCall:iZ,isStringLiteral:iG,isExpressionStatement:iH}=tI,iK="prefer-dom-node-dataset",iX=e=>e.replaceAll(/-[a-z]/g,e=>e[1].toUpperCase());var iJ=Y({create:e=>({CallExpression(t){if((iZ(t,{method:"setAttribute",argumentsLength:2,optionalCall:!1,optionalMember:!1})||iZ(t,{methods:["getAttribute","removeAttribute","hasAttribute"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&iG(t.arguments[0])&&t.arguments[0].value.toLowerCase().startsWith("data-"))return{node:t,messageId:iK,data:{method:t.callee.property.name},fix:function(e,t){let r=e.callee.property.name;if(!("setAttribute"===r&&iW(e.callee))&&("setAttribute"!==r||iV(e))&&("removeAttribute"!==r||iH(e.parent)))return u=>{let[n]=e.arguments,a=iX(n.value.toLowerCase().slice(5)),{sourceCode:i}=t,o="",s=`${i.getText(e.callee.object)}.dataset`;switch(r){case"setAttribute":case"getAttribute":case"removeAttribute":o=iU(a)?`.${a}`:`[${iq(a,n.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}, ${iq(a,n.raw.charAt(0))})`}return u.replaceText(e,o)}}(t,e)}}}),meta:{type:"suggestion",docs:{description:"Prefer using `.dataset` on DOM elements over calling attribute methods."},fixable:"code",messages:{[iK]:"Prefer `.dataset` over `{{method}}(…)`."}}});const{getParenthesizedText:iY,getParenthesizedRange:iQ,isSameReference:i0}=um,{isLiteral:i1,isMethodCall:i3}=tI,{replaceNodeOrTokenAndSpacesBefore:i2,removeParentheses:i4}=ne,i5="prefer-modern-math-apis",i8=(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,i6=(e,t)=>"CallExpression"===e.type&&!e.optional&&i8(e.callee,t)&&1===e.arguments.length&&"SpreadElement"!==e.arguments[0].type;function i9({constantName:e,replacementMethod:t}){let r=`Math.${t}(…)`;return function(u,n){let a,i;if(!("BinaryExpression"===u.type&&"*"===u.operator)||(i6(u.left,"log")&&i8(u.right,e)?(a=u.left,i=`Math.log(…) * Math.${e}`):i6(u.right,"log")&&i8(u.left,e)&&(a=u.right,i=`Math.${e} * Math.log(…)`),!a))return;let[o]=a.arguments;return{node:u,messageId:i5,data:{replacement:r,description:i},fix:e=>e.replaceText(u,`Math.${t}(${iY(o,n.sourceCode)})`)}}}function i7({constantName:e,replacementMethod:t}){let r={messageId:i5,data:{replacement:`Math.${t}(…)`,description:`Math.log(…) / Math.${e}`}};return function(u,n){if(!("BinaryExpression"===u.type&&"/"===u.operator&&i6(u.left,"log")&&i8(u.right,e)))return;let[a]=u.left.arguments;return{...r,node:u,fix:e=>e.replaceText(u,`Math.${t}(${iY(a,n.sourceCode)})`)}}}const oe=[i9({constantName:"LOG10E",replacementMethod:"log10"}),i9({constantName:"LOG2E",replacementMethod:"log2"}),i7({constantName:"LN10",replacementMethod:"log10"}),i7({constantName:"LN2",replacementMethod:"log2"})],ot=e=>"BinaryExpression"===e.type&&"+"===e.operator,or=e=>"BinaryExpression"===e.type&&("*"===e.operator&&i0(e.left,e.right)||"**"===e.operator&&i1(e.right,2)),ou=e=>ot(e)?[e.left,e.right].flatMap(e=>ou(e)):[e];var on=Y({create:e=>{let t=[];return{CallExpression(t){if(!i3(t,{object:"Math",method:"sqrt",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let r=ou(t.arguments[0]);if(r.some(e=>!or(e)))return;let u=1===r.length?"abs":"hypot",n=new Set(1===r.length?[]:r.map(e=>e.parent));return{node:t.callee.property,messageId:i5,data:{replacement:`Math.${u}(…)`,description:"Math.sqrt(…)"},*fix(a){let{sourceCode:i}=e;for(let e of(yield a.replaceText(t.callee.property,u),n)){let t=i.getTokenAfter(e.left,e=>"Punctuator"===e.type&&"+"===e.value);yield*i2(t,",",a,i),yield*i4(e,a,i)}for(let e of r)yield a.removeRange([iQ(e.left,i)[1],e.range[1]])}}},BinaryExpression(e){t.push(e)},*"Program:exit"(){for(let r of t)for(let t of oe){let u=t(r,e);u&&(yield u)}}}},meta:{type:"suggestion",docs:{description:"Prefer modern `Math` APIs over legacy patterns."},fixable:"code",messages:{[i5]:"Prefer `{{replacement}}` over `{{description}}`."}}}),oa=Q(f);const oi=e=>"function"==typeof e?.[Symbol.iterator];let oo=class extends Error{};const os={abort(){throw new oo("Fix aborted.")}};function od(e){return t=>{let r=e(t,os);if(oi(r))try{return[...r]}catch(e){if(e instanceof oo)return;throw e}return r}}const oc=new Set;function ol(e){if(oc.has(e))return e;let t=t=>{let r={},u=(e,t)=>{r[e]??=[],r[e].push(t)};for(let[r,n]of Object.entries(e(new Proxy(t,{get:(e,t,r)=>"on"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])u(r,t)}:"onExit"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])u(`${r}:exit`,t)}:Reflect.get(e,t,r)}))??{}))u(r,n);return Object.fromEntries(Object.entries(r).map(([e,r])=>[e,(...e)=>{for(let u of r)!function(e,t){if(e){for(let r of(oi(e)||(e=[e]),e))if(r){if(r.fix&&(r.fix=od(r.fix)),Array.isArray(r.suggest))for(let e of r.suggest)e.fix&&(e.fix=od(e.fix)),e.data={...r.data,...e.data};t.report(r)}}}(u(...e),t)}]))};return oc.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:et(e)}},create:ol(t.create)}}var op={loadRule:of,loadRules:function(){return Object.fromEntries(oa.readdirSync(ee.join(__dirname,".."),{withFileTypes:!0}).filter(e=>e.isFile()).map(e=>{let t=ee.basename(e.name,".js");return[t,of(t)]}))},checkVueTemplate:function(e,t){let{visitScriptBlock:r}={visitScriptBlock:!0,...t};e=ol(e);let u=t=>{let u=e(t),{parserServices:n}=t.sourceCode;return n?.defineTemplateBodyVisitor?r?n.defineTemplateBodyVisitor(u,u):n.defineTemplateBodyVisitor(u):u};return oc.add(u),u}};const{checkVueTemplate:om}=op,{isNumberLiteral:og,isBigIntLiteral:oy}=tI,oh="number-literal-case",ob=e=>{let t=e.toLowerCase();return t.startsWith("0x")&&(t="0x"+t.slice(2).toUpperCase()),t};var ov=Y({create:om(()=>({Literal(e){let{raw:t}=e,r=t;if(og(e)?r=ob(t):oy(e)&&(r=ob(t.slice(0,-1))+"n"),t!==r)return{node:e,messageId:oh,fix:t=>t.replaceText(e,r)}}})),meta:{type:"suggestion",docs:{description:"Enforce proper case for numeric literals."},fixable:"code",messages:{[oh]:"Invalid number literal casing."}}});const{GlobalReferenceTracker:ox}=a5,{replaceReferenceIdentifier:oE}=ne,{fixSpaceAroundKeyword:oA}=ne,oD="error",oC="suggestion",oS={parseInt:!0,parseFloat:!0,NaN:!0,Infinity:!0,isNaN:!1,isFinite:!1},oF=e=>{let{parent:t}=e;return"UnaryExpression"===t.type&&"-"===t.operator&&t.argument===e};var ow=Y({create:e=>{let{checkInfinity:t}={checkInfinity:!0,...e.options[0]},{sourceCode:r}=e,u=Object.keys(oS);return t||(u=u.filter(e=>"Infinity"!==e)),new ox({objects:u,handle:e=>(function({node:e,path:[t]},r){let{parent:u}=e,n=t;"Infinity"===t&&(n=oF(e)?"NEGATIVE_INFINITY":"POSITIVE_INFINITY");let a={node:e,messageId:oD,data:{description:t,property:n}};if("NEGATIVE_INFINITY"===n)return a.node=u,a.data.description="-Infinity",a.fix=function*(e){yield e.replaceText(u,"Number.NEGATIVE_INFINITY"),yield*oA(e,u,r)},a;let i=t=>oE(e,`Number.${n}`,t,r);return oS[t]?a.fix=i:a.suggest=[{messageId:oC,fix:i}],a})(e,r),filter:({node:e})=>!rj(e)}).createListeners(e)},meta:{type:"suggestion",docs:{description:"Prefer `Number` static properties over global ones."},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkInfinity:{type:"boolean",default:!0}}}],messages:{[oD]:"Prefer `Number.{{property}}` over `{{description}}`.",[oC]:"Replace `{{description}}` with `Number.{{property}}`."}}});const{getPropertyName:o_}=tr,{isNullLiteral:ok,isMethodCall:oP}=tI,oT="prefer-reflect-apply",oI=(e,t)=>(ok(e)||"ThisExpression"===e.type)&&("ArrayExpression"===t.type||"Identifier"===t.type&&"arguments"===t.name),oB=(e,t,r,u)=>`Reflect.apply(${e.getText(t)}, ${e.getText(r)}, ${e.getText(u)})`,oR=(e,t)=>{if("apply"===o_(e.callee)&&2===e.arguments.length&&oI(e.arguments[0],e.arguments[1]))return r=>r.replaceText(e,oB(t,e.callee.object,e.arguments[0],e.arguments[1]))},oN=(e,t)=>{if("call"===o_(e.callee)&&"apply"===o_(e.callee.object)&&"prototype"===o_(e.callee.object.object)&&e.callee.object.object.object?.type==="Identifier"&&"Function"===e.callee.object.object.object.name&&3===e.arguments.length&&oI(e.arguments[1],e.arguments[2]))return r=>r.replaceText(e,oB(t,e.arguments[0],e.arguments[1],e.arguments[2]))};var oL=Y({create:e=>({CallExpression(t){if(!oP(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,u=oR(t,r)||oN(t,r);if(u)return{node:t,messageId:oT,fix:u}}}),meta:{type:"suggestion",docs:{description:"Prefer `Reflect.apply()` over `Function#apply()`."},fixable:"code",messages:{[oT]:"Prefer `Reflect.apply()` over `Function#apply()`."}}});const{findVariable:oj}=tr,{fixSpaceAroundKeyword:oO}=ne,{isNewExpression:oM,isMemberExpression:o$}=tI,oz="prefer-set-size",oU=e=>oM(e,{name:"Set"});var oq=Y({create:e=>{let{sourceCode:t}=e;return{MemberExpression(e){if(!o$(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(oU(e))return!0;if("Identifier"!==e.type)return!1;let r=oj(t,e);if(!r||1!==r.defs.length)return!1;let[u]=r.defs;if("Variable"!==u.type||"const"!==u.kind)return!1;let n=u.node;return"VariableDeclarator"===n.type&&"Identifier"===n.id.type&&oU(u.node.init)}(r,t.getScope(r)))return{node:e.property,messageId:oz,fix:function(e,t){let{object:r,property:u}=t,n=r.elements[0].argument;if(!(e.getCommentsInside(r).length>e.getCommentsInside(n).length))return function*(a){yield a.replaceText(u,"size"),yield a.replaceText(r,e.getText(n)),yield*oO(a,t,e)}}(t,e)}}}},meta:{type:"suggestion",docs:{description:"Prefer using `Set#size` instead of `Array#length`."},fixable:"code",messages:{[oz]:"Prefer using `Set#size` instead of `Array#length`."}}}),oW={exports:{}};a=String.fromCodePoint||(u=String.fromCharCode,n=Math.floor,function(){var e,t,r=[],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||n(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)),(a+1==i||r.length>16384)&&(o+=u.apply(null,r),r.length=0)}return o}),i={parse:function(e,t,r){function u(t){return t.raw=e.substring(t.range[0],t.range[1]),t}function n(e,t){return e.range[0]=t,u(e)}function i(e,t){return u({type:"anchor",kind:e,range:[X-t,X]})}function o(e,t,r,n){return u({type:"value",kind:e,codePoint:t,range:[r,n]})}function s(e,t,r,u){return u=u||0,o(e,t,X-(r.length+u),X)}function d(e){var t,r=e[0],u=r.charCodeAt(0);return K&&1===r.length&&u>=55296&&u<=56319&&(t=h().charCodeAt(0))>=56320&&t<=57343?o("symbol",(u-55296)*1024+t-56320+65536,++X-2,X):o("symbol",u,X-1,X)}function c(e,t,r,n,a){return null==n&&(r=X-1,n=X),u({type:"quantifier",min:e,max:t,greedy:!0,body:null,symbol:a,range:[r,n]})}function l(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&&U("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 m(t){t=t||1;var r=e.substring(X,X+t);return X+=t||1,r}function g(e){y(e)||U("character",e)}function y(t){if(e.indexOf(t,X)===X)return m(t.length)}function h(){return e[X]}function b(t){return e.indexOf(t,X)===X}function v(t){return e[X+1]===t}function x(t){var r=e.substring(X).match(t);return r&&(r.range=[],r.range[0]=X,m(r[0].length),r.range[1]=X),r}function E(){var e=[],t=X;for(e.push(A());y("|");)e.push(A());return 1===e.length?e[0]:u({type:"disjunction",body:e,range:[t,X]})}function A(){for(var t,a=[],s=X;t=function(){if(X>=e.length||b("|")||b(")"))return null;var t=y("^")?i("start",1):y("$")?i("end",1):y("\\b")?i("boundary",2):y("\\B")?i("not-boundary",2):D("(?=","lookahead","(?!","negativeLookahead");if(!t){var a=function(){if((t=x(/^[^^$\\.*+?()[\]{}|]/))||!K&&(t=x(/^(?:]|})/)))return d(t);if(y("."))return u({type:"dot",range:[X-1,X]});if(y("\\")){if(!(t=w())){if(!K&&"c"==h())return o("symbol",92,X-1,X);U("atomEscape")}return t}if(t=N())return t;if(r.lookbehind&&(t=D("(?<=","lookbehind","(?<!","negativeLookbehind")))return t;if(r.namedGroups&&y("(?<")){var t,n,a,i,s,c,l=I();g(">");var f=C("normal",l.range[0]-3);return f.name=l,f}else return r.modifiers&&e.indexOf("(?")==X&&":"!=e[X+2]?(a=X,m(2),i=x(/^[sim]+/),y("-")?(n=x(/^[sim]+/))||U("Invalid flags for modifiers group"):i||U("Invalid flags for modifiers group"),((s=(i=i?i[0]:"")+(n=n?n[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))&&U("flags cannot be duplicated for modifiers group"),g(":"),(c=C("ignore",a)).modifierFlags={enabling:i,disabling:n},c):D("(?:","ignore","(","normal")}();if(!a){var s,c,l=X;(s=S()||!1)&&(X=l,U("Expected atom")),!K&&(c=x(/^{/))?a=d(c):U("Expected atom")}t=a}return(s=S()||!1)?(s.body=p(t),n(s,t.range[0]),s):t}();)a.push(t);return 1===a.length?a[0]:u({type:"alternative",body:a,range:[s,X]})}function D(e,t,r,u){var n=null,a=X;if(y(e))n=t;else{if(!y(r))return!1;n=u}return C(n,a)}function C(e,t){var r=E();r||U("Expected disjunction"),g(")");var n=u({type:"group",behavior:e,body:p(r),range:[t,X]});return"normal"==e&&V&&W++,n}function S(){var e,t,r,u,n=X;return y("*")?e=c(0,void 0,void 0,void 0,"*"):y("+")?e=c(1,void 0,void 0,void 0,"+"):y("?")?e=c(0,1,void 0,void 0,"?"):(u=x(/^\{([0-9]+)\}/))?e=c(t=parseInt(u[1],10),t,u.range[0],u.range[1]):(u=x(/^\{([0-9]+),\}/))?e=c(t=parseInt(u[1],10),void 0,u.range[0],u.range[1]):(u=x(/^\{([0-9]+),([0-9]+)\}/))&&((t=parseInt(u[1],10))>(r=parseInt(u[2],10))&&U("numbers out of order in {} quantifier","",n,X),e=c(t,r,u.range[0],u.range[1])),(t&&!Number.isSafeInteger(t)||r&&!Number.isSafeInteger(r))&&U("iterations outside JS safe integer range in quantifier","",n,X),e&&y("?")&&(e.greedy=!1,e.range[1]+=1),e}function F(e){if(K){var t,r;if("unicodeEscape"==e.kind&&(t=e.codePoint)>=55296&&t<=56319&&b("\\")&&v("u")){var n=X;X++;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)):X=n}}return e}function w(e){var t,a,i=X;if(a=function(e){var t,r,a=X;if(t=x(/^(?!0)\d+/)){r=t[0];var i,o=parseInt(t[0],10);return o<=W&&!e?u({type:"reference",matchIndex:parseInt(i=t[0],10),range:[X-1-i.length,X]}):(q.push(o),V?Z=!0:_(a,X),m(-t[0].length),t=x(/^[0-7]{1,3}/))?s("octal",parseInt(t[0],8),t[0],1):n(t=d(x(/^[89]/)),t.range[0]-1)}return!!(t=x(/^[0-7]{1,3}/))&&(("0"!==(r=t[0])&&_(a,X),/^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 g(">"),u({type:"reference",name:e,range:[e.range[0]-3,X]})}}())return a;if(e){if(y("b"))return s("singleEscape",8,"\\b");if(y("B"))U("\\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&&y("-"))return s("singleEscape",45,"\\-")}return((t=x(/^[dDsSwW]/))?u({type:"characterClassEscape",value:t[0],range:[X-2,X]}):r.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]}):!!(r.unicodeSet&&H&&y("q{"))&&function(){var e=X-3,t=[];do t.push(function(){for(var e,t=[],r=X;e=M();)t.push(e);return u({type:"classString",characters:t,range:[r,X]})}());while(y("|"));return g("}"),u({type:"classStrings",strings:t,range:[e,X]})}())||P()}function _(e,t){K&&U("Invalid decimal escape in unicode mode",null,e,t)}function k(){var e;return(e=x(/^u([0-9a-fA-F]{4})/))?F(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 P(){var e,t,u,n=X;if(u=x(/^[fnrtv]/)){var a=0;switch(u[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,"\\"+u[0])}return(u=x(/^c([a-zA-Z])/))?s("controlLetter",u[1].charCodeAt(0)%32,u[1],2):(u=x(/^x([0-9a-fA-F]{2})/))?s("hexadecimalEscape",parseInt(u[1],16),u[1],2):(u=k())?((!u||u.codePoint>1114111)&&U("Invalid escape sequence",null,n,X),u):(t=h(),K&&/[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/.test(t)||!K&&"c"!==t?"k"===t&&r.lookbehind?null:s("identifier",(e=m()).charCodeAt(0),e,1):null)}function T(t){var r=h(),u=X;if("\\"===r){m();var n=k();return n&&t(n.codePoint)||U("Invalid escape sequence",null,u,X),a(n.codePoint)}var i=r.charCodeAt(0);if(i>=55296&&i<=56319){var o=(r+=e[X+1]).charCodeAt(1);o>=56320&&o<=57343&&(i=(i-55296)*1024+o-56320+65536)}if(t(i))return m(),i>65535&&m(),r}function I(){var e,t=X,r=T(B);for(r||U("Invalid identifier");e=T(R);)r+=e;return u({type:"identifier",value:r,range:[t,X]})}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(a(e))}function R(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(a(e))}function N(){var e,t=X;return(e=x(/^\[\^/))?(e=L(),g("]"),l(e,!0,t,X)):y("[")?(e=L(),g("]"),l(e,!1,t,X)):null}function L(){var e,t;return b("]")?{kind:"union",body:[]}:H?function(){var e,t=[],r=O(!0);for(t.push(r),e="classRange"===r.type?"union":b("&")?"intersection":b("-")?"subtraction":"union";!b("]");)"intersection"===e?(g("&"),g("&"),b("&")&&U("&& cannot be followed by &. Wrap it in brackets: &&[&].")):"subtraction"===e&&(g("-"),g("-")),t.push(r=O("union"===e));return{kind:e,body:t}}():((t=j())||U("classAtom"),(e=b("]")?[t]:function e(t){if(b("-")&&!v("]")){r=t.range[0],i=d(y("-")),(a=j())||U("classAtom"),u=X;var r,u,n,a,i,o,s=L();return(s||U("classRanges"),"codePoint"in t&&"codePoint"in a?n=[f(t,a,r,u)]:K?U("invalid character class"):n=[t,i,a],"empty"===s.type)?n:n.concat(s.body)}return(o=j())||U("classAtom"),(n=b("]")?o:e(o))||U("nonEmptyClassRangesNoDash"),[t].concat(n)}(t))||U("nonEmptyClassRanges"),{kind:"union",body:e})}function j(){var e;return y("-")?d("-"):(e=x(/^[^\\\]-]/))?d(e[0]):y("\\")?((e=w(!0))||U("classEscape"),F(e)):void 0}function O(e){var t,r,u=X;if(y("\\")){if(r=w(!0))t=r;else{if(r=z())return r;U("Invalid escape","\\"+h(),u)}}else if(r=$())t=r;else{if(r=N())return r;U("Invalid character",h())}if(e&&b("-")&&!v("-")){if(g("-"),r=M())return f(t,r,u,X);U("Invalid range end",h())}return t}function M(){if(y("\\")){var e,t=X;if(e=z())return e;U("Invalid escape","\\"+h(),t)}return $()}function $(){var e;if(e=x(/^[^()[\]{}/\-\\|]/))return d(e)}function z(){var e;if(y("b"))return s("singleEscape",8,"\\b");if(y("B"))U("\\B not possible inside of ClassContents","",X-2);else if(e=x(/^[&\-!#%,:;<=>@_`~]/))return s("identifier",e[0].codePointAt(0),e[0]);else if(e=P())return e;else return null}function U(t,r,u,n){u=null==u?X:u,n=null==n?u:n;var a=Math.max(0,u-10),i=Math.min(n+10,e.length),o=" "+e.substring(a,i),s=" "+Array(u-a+1).join(" ")+"^";throw SyntaxError(t+" at position "+u+(r?": "+r:"")+"\n"+o+"\n"+s)}r||(r={});var q=[],W=0,V=!0,Z=!1,G=-1!==(t||"").indexOf("u"),H=-1!==(t||"").indexOf("v"),K=G||H,X=0;if(H&&!r.unicodeSet)throw Error('The "v" flag is only supported when the .unicodeSet option is enabled.');if(G&&H)throw Error('The "u" and "v" flags are mutually exclusive.');""===(e=String(e))&&(e="(?:)");var J=E();return(J.range[1]!==e.length&&U("Could not parse entire input - got stuck","",J.range[1]),Z=Z||q.some(function(e){return e<=W}))?(X=0,V=!1,E()):J}},oW.exports?oW.exports=i:window.regjsparser=i;var oV=oW.exports;const{getStaticValue:oZ}=tr,{parse:oG}=oV,{isRegexLiteral:oH,isNewExpression:oK,isMethodCall:oX}=tI,oJ="method",oY="pattern",oQ=(e,t)=>{if(oH(e))return e.regex.flags.includes("g");if(oK(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=oZ(e,t);if(!r)return!1;let{value:u}=r;return"[object RegExp]"===Object.prototype.toString.call(u)&&u.global};var o0=Y({create:e=>({CallExpression(t){if(!oX(t,{methods:["replace","replaceAll"],argumentsLength:2,optionalCall:!1,optionalMember:!1}))return;let{arguments:[r],callee:{property:u}}=t;if(!oQ(r,e.sourceCode.getScope(r)))return;let n=u.name,a=function(e){let t;if(!oH(e))return;let{pattern:r,flags:u}=e.regex;if("g"!==u.replace("u","").replace("v",""))return;try{t=oG(r,u,{unicodePropertyEscape:u.includes("u"),unicodeSet:u.includes("v"),namedGroups:!0,lookbehind:!0})}catch{return}let n="alternative"===t.type?t.body:[t];if(!n.some(e=>"value"!==e.type))return rI(String.fromCodePoint(...n.map(e=>e.codePoint)))}(r);if("replaceAll"===n){if(!a)return;return{node:r,messageId:oY,data:{replacement:a.length<20?a:"a string literal"},fix:e=>e.replaceText(r,a)}}return{node:u,messageId:oJ,*fix(e){yield e.insertTextAfter(u,"All"),a&&(yield e.replaceText(r,a))}}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#replaceAll()` over regex searches with the global flag."},fixable:"code",messages:{[oJ]:"Prefer `String#replaceAll()` over `String#replace()`.",[oY]:"This pattern can be replaced with {{replacement}}."}}});const{getStaticValue:o1}=tr,{getParenthesizedText:o3,getParenthesizedRange:o2}=tp,{replaceArgument:o4}=ne,{isNumberLiteral:o5,isMethodCall:o8}=tI,o6=e=>o5(e)?e.value:"UnaryExpression"===e.type&&"-"===e.operator?-o6(e.argument):void 0,o9=e=>e?.type==="MemberExpression"&&!1===e.computed&&"Identifier"===e.property.type&&"length"===e.property.name;var o7=Y({create:e=>({CallExpression(t){if(!o8(t,{methods:["substr","substring"]}))return;let r=t.callee.property.name;return{node:t,messageId:r,*fix(u,{abort:n}){if(yield u.replaceText(t.callee.property,"slice"),0!==t.arguments.length){if(t.arguments.length>2||t.arguments.some(e=>"SpreadElement"===e.type))return n();yield*("substr"===r?function*({node:e,fixer:t,context:r,abort:u}){let n=e.arguments,[a,i]=n;if(!i)return;let{sourceCode:o}=r,s=o.getScope(e),d=o1(a,s),c=o2(i,o),l=e=>o4(t,i,e,o);if(d?.value===0){if(o5(i)||o9(i))return;if("number"==typeof o6(i)){yield l(Math.max(0,o6(i)));return}yield t.insertTextBeforeRange(c,"Math.max(0, "),yield t.insertTextAfterRange(c,")");return}if(n.every(e=>o5(e))){yield l(a.value+i.value);return}if(n.every(e=>nX(e,s))){let e=o3(a,o);yield t.insertTextBeforeRange(c,`${e} + `);return}return u()}:function*({node:e,fixer:t,context:r,abort:u}){let{sourceCode:n}=r,[a,i]=e.arguments,o=a?o6(a):void 0,s=o3(a,n),d=e=>o4(t,a,e,n);if(!i){if(o9(a))return;if(void 0!==o){yield d(Math.max(0,o));return}let e=o2(a,n);yield t.insertTextBeforeRange(e,"Math.max(0, "),yield t.insertTextAfterRange(e,")");return}let c=o6(i),l=o3(i,n),f=e=>o4(t,i,e,n);if(void 0!==o&&void 0!==c){let e=[Math.max(0,o),Math.max(0,c)];o>c&&e.reverse(),e[0]!==o&&(yield d(e[0])),e[1]!==c&&(yield f(e[1]));return}if(0===o||0===c){yield d(0),yield f(`Math.max(0, ${0===o?l:s})`);return}return u()})({node:t,fixer:u,context:e,abort:n})}}}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#slice()` over `String#substr()` and `String#substring()`."},fixable:"code",messages:{substr:"Prefer `String#slice()` over `String#substr()`.",substring:"Prefer `String#slice()` over `String#substring()`."}}});const{isMethodCall:se}=tI,st="prefer-string-trim-start-end";var sr=Y({create:()=>({CallExpression(e){if(!se(e,{methods:["trimLeft","trimRight"],argumentsLength:0,optionalCall:!1}))return;let t=e.callee.property,r=t.name,u="trimLeft"===r?"trimStart":"trimEnd";return{node:t,messageId:st,data:{method:r,replacement:u},fix:e=>e.replaceText(t,u)}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`."},fixable:"code",messages:{[st]:"Prefer `String#{{replacement}}()` over `String#{{method}}()`."}}});const{isParenthesized:su,getParenthesizedRange:sn,toLocation:sa}=um,si="no-unreadable-iife";var so=Y({create:e=>({CallExpression(t){let{sourceCode:r}=e;if("ArrowFunctionExpression"===t.callee.type&&"BlockStatement"!==t.callee.body.type&&su(t.callee.body,r))return{node:t,loc:sa(sn(t.callee.body,r),r),messageId:si}}}),meta:{type:"suggestion",docs:{description:"Disallow unreadable IIFEs."},hasSuggestions:!1,messages:{[si]:"IIFE with parenthesized arrow function body is considered unreadable."}}});const{switchCallExpressionToNewExpression:ss}=ne,sd="throw-new-error",sc=/^(?:[A-Z][\da-z]*)*Error$/;var sl=Y({create:e=>({CallExpression(t){if(!("ThrowStatement"===t.parent.type&&t.parent.argument===t))return;let{callee:r}=t;if("Identifier"===r.type&&sc.test(r.name)||"MemberExpression"===r.type&&!r.computed&&"Identifier"===r.property.type&&sc.test(r.property.name))return{node:t,messageId:sd,fix:r=>ss(t,e.sourceCode,r)}}}),meta:{type:"suggestion",docs:{description:"Require `new` when throwing an error."},fixable:"code",messages:{[sd]:"Use `new` when throwing an error."}}}),sf=/[|\\{}()[\]^$+*?.]/g,sp=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 sm=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(sf,"\\$&")},sg=(e,t)=>!t||t.split("").every(t=>e.includes(t));function sy(e){return e?sh[e.type](e):""}var sh={RegExp:function(e){return"/"+sy(e.body)+"/"+e.flags},Alternative:function(e){return(e.expressions||[]).map(sy).join("")},Disjunction:function(e){return sy(e.left)+"|"+sy(e.right)},Group:function(e){var t=sy(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=sy(e.assertion);if(e.negative)return"(?!"+t+")";return"(?="+t+")";case"Lookbehind":var r=sy(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(sy).join("");return e.negative?"[^"+t+"]":"["+t+"]"},ClassRange:function(e){return sy(e.from)+"-"+sy(e.to)},Repetition:function(e){return""+sy(e.expression)+sy(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+"}"}},sb={generate:sy},sv={General_Category:"gc",Script:"sc",Script_Extensions:"scx"},sx=sw(sv),sE={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"},sA=sw(sE),sD={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"},sC=sw(sD),sS={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"},sF=sw(sS);function sw(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var u=e[r];if(Array.isArray(u))for(var n=0;n<u.length;n++)t[u[n]]=r;else t[u]=r}return t}function s_(e){return sD.hasOwnProperty(e)||sC.hasOwnProperty(e)}var sk=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],u=!0,n=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(u=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);u=!0);}catch(e){n=!0,a=e}finally{try{!u&&o.return&&o.return()}finally{if(n)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function sP(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 sT=void 0,sI={},sB=void 0,sR=void 0;function sN(e,t){return sI.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 sL=[[-1,1,function(e,t){sR=sN(t,t),sB=e}],[0,4,function(e,t,r,u,n,a,i,o){sR=sN(n,o),sB=s4({type:"RegExp",body:t,flags:function(e){var t=new Set,r=!0,u=!1,n=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){u=!0,n=e}finally{try{!r&&i.return&&i.return()}finally{if(u)throw n}}return e.split("").sort().join("")}(u)},s5(n,o||i))}],[1,1,function(e,t){sR=sN(t,t),sB=e}],[1,0,function(){sR=null,sB=""}],[2,1,function(e,t){sR=sN(t,t),sB=e}],[2,2,function(e,t,r,u){sR=sN(r,u),sB=e+t}],[3,1,function(e,t){sR=sN(t,t),sB=e}],[4,1,function(e,t){sR=sN(t,t),sB=e}],[4,3,function(e,t,r,u,n,a){sR=sN(u,a);var i=null;n&&(i=s5(u||n,a||n)),sB=s4({type:"Disjunction",left:e,right:r},i)}],[5,1,function(e,t){if(sR=sN(t,t),0===e.length){sB=null;return}sB=1===e.length?s4(e[0],sR):s4({type:"Alternative",expressions:e},sR)}],[6,0,function(){sR=null,sB=[]}],[6,2,function(e,t,r,u){sR=sN(r,u),sB=e.concat(t)}],[7,1,function(e,t){sR=sN(t,t),sB=s4(Object.assign({type:"Assertion"},e),sR)}],[7,2,function(e,t,r,u){sR=sN(r,u),sB=e,t&&(sB=s4({type:"Repetition",expression:e,quantifier:t},sR))}],[8,1,function(e,t){sR=sN(t,t),sB={kind:"^"}}],[8,1,function(e,t){sR=sN(t,t),sB={kind:"$"}}],[8,1,function(e,t){sR=sN(t,t),sB={kind:"\\b"}}],[8,1,function(e,t){sR=sN(t,t),sB={kind:"\\B"}}],[8,3,function(e,t,r,u,n,a){sR=sN(u,a),sB={kind:"Lookahead",assertion:t}}],[8,3,function(e,t,r,u,n,a){sR=sN(u,a),sB={kind:"Lookahead",negative:!0,assertion:t}}],[8,3,function(e,t,r,u,n,a){sR=sN(u,a),sB={kind:"Lookbehind",assertion:t}}],[8,3,function(e,t,r,u,n,a){sR=sN(u,a),sB={kind:"Lookbehind",negative:!0,assertion:t}}],[9,1,function(e,t){sR=sN(t,t),sB=e}],[9,1,function(e,t){sR=sN(t,t),sB=e}],[9,1,function(e,t){sR=sN(t,t),sB=e}],[10,1,function(e,t){sB=sJ(e,"simple",sR=sN(t,t))}],[10,1,function(e,t){sR=sN(t,t),(sB=sJ(e.slice(1),"simple",sR)).escaped=!0}],[10,1,function(e,t){(sB=sJ(e,"unicode",sR=sN(t,t))).isSurrogatePair=!0}],[10,1,function(e,t){sB=sJ(e,"unicode",sR=sN(t,t))}],[10,1,function(e,t){sB=function(e,t){var r="P"===e[1],u=e.indexOf("="),n=e.slice(3,-1!==u?u:-1),a=void 0,i=-1===u&&sX.isGeneralCategoryValue(n),o=-1===u&&sX.isBinaryPropertyName(n);if(i)a=n,n="General_Category";else if(o)a=n;else{if(!sX.isValidName(n))throw SyntaxError("Invalid unicode property name: "+n+".");if(a=e.slice(u+1,-1),!sX.isValidValue(n,a))throw SyntaxError("Invalid "+n+" unicode property value: "+a+".")}return s4({type:"UnicodeProperty",name:n,value:a,negative:r,shorthand:i,binary:o,canonicalName:sX.getCanonicalName(n)||n,canonicalValue:sX.getCanonicalValue(a)||a},t)}(e,sR=sN(t,t))}],[10,1,function(e,t){sB=sJ(e,"control",sR=sN(t,t))}],[10,1,function(e,t){sB=sJ(e,"hex",sR=sN(t,t))}],[10,1,function(e,t){sB=sJ(e,"oct",sR=sN(t,t))}],[10,1,function(e,t){var r,u;r=sR=sN(t,t),sB=(u=Number(e.slice(1)))>0&&u<=sV?s4({type:"Backreference",kind:"number",number:u,reference:u},r):sJ(e,"decimal",r)}],[10,1,function(e,t){sB=sJ(e,"meta",sR=sN(t,t))}],[10,1,function(e,t){sB=sJ(e,"meta",sR=sN(t,t))}],[10,1,function(e,t){sR=sN(t,t),sB=function(e,t){var r=e.slice(3,-1),u=s2(r);if(sZ.hasOwnProperty(u))return s4({type:"Backreference",kind:"name",number:sZ[u],reference:u,referenceRaw:r},t);var n=null,a=null,i=null,o=null;t&&(n=t.startOffset,a=t.startLine,i=t.endLine,o=t.startColumn);var s=/^[\w$<>]/,d=void 0,c=[sJ(e.slice(1,2),"simple",n?{startLine:a,endLine:i,startColumn:o,startOffset:n,endOffset:n+=2,endColumn:o+=2}:null)];for(c[0].escaped=!0,e=e.slice(2);e.length>0;){var l=null;(l=e.match(sY))||(l=e.match(sQ))?(n&&(d={startLine:a,endLine:i,startColumn:o,startOffset:n,endOffset:n+=l[0].length,endColumn:o+=l[0].length}),c.push(sJ(l[0],"unicode",d)),e=e.slice(l[0].length)):(l=e.match(s))&&(n&&(d={startLine:a,endLine:i,startColumn:o,startOffset:n,endOffset:++n,endColumn:++o}),c.push(sJ(l[0],"simple",d)),e=e.slice(1))}return c}(e,t)}],[11,1,function(e,t){sR=sN(t,t),sB=e}],[11,0],[12,1,function(e,t){sR=sN(t,t),sB=e}],[12,2,function(e,t,r,u){sR=sN(r,u),e.greedy=!1,sB=e}],[13,1,function(e,t){sB=s4({type:"Quantifier",kind:e,greedy:!0},sR=sN(t,t))}],[13,1,function(e,t){sB=s4({type:"Quantifier",kind:e,greedy:!0},sR=sN(t,t))}],[13,1,function(e,t){sB=s4({type:"Quantifier",kind:e,greedy:!0},sR=sN(t,t))}],[13,1,function(e,t){sR=sN(t,t);var r=sH(e);sB=s4({type:"Quantifier",kind:"Range",from:r[0],to:r[0],greedy:!0},sR)}],[13,1,function(e,t){sR=sN(t,t),sB=s4({type:"Quantifier",kind:"Range",from:sH(e)[0],greedy:!0},sR)}],[13,1,function(e,t){sR=sN(t,t);var r=sH(e);sB=s4({type:"Quantifier",kind:"Range",from:r[0],to:r[1],greedy:!0},sR)}],[14,1,function(e,t){sR=sN(t,t),sB=e}],[14,1,function(e,t){sR=sN(t,t),sB=e}],[15,3,function(e,t,r,u,n,a){sR=sN(u,a);var i=String(e),o=s2(i);if(!sI.options.allowGroupNameDuplicates&&sZ.hasOwnProperty(o))throw SyntaxError('Duplicate of the named group "'+o+'".');sZ[o]=e.groupNumber,sB=s4({type:"Group",capturing:!0,name:o,nameRaw:i,number:e.groupNumber,expression:t},sR)}],[15,3,function(e,t,r,u,n,a){sR=sN(u,a),sB=s4({type:"Group",capturing:!0,number:e.groupNumber,expression:t},sR)}],[16,3,function(e,t,r,u,n,a){sB=s4({type:"Group",capturing:!1,expression:t},sR=sN(u,a))}],[17,3,function(e,t,r,u,n,a){sB=s4({type:"CharacterClass",negative:!0,expressions:t},sR=sN(u,a))}],[17,3,function(e,t,r,u,n,a){sB=s4({type:"CharacterClass",expressions:t},sR=sN(u,a))}],[18,0,function(){sR=null,sB=[]}],[18,1,function(e,t){sR=sN(t,t),sB=e}],[19,1,function(e,t){sR=sN(t,t),sB=[e]}],[19,2,function(e,t,r,u){sR=sN(r,u),sB=[e].concat(t)}],[19,4,function(e,t,r,u,n,a,i,o){sR=sN(n,o),sK(e,r),sB=[s4({type:"ClassRange",from:e,to:r},s5(n,i))],u&&(sB=sB.concat(u))}],[20,1,function(e,t){sR=sN(t,t),sB=e}],[20,2,function(e,t,r,u){sR=sN(r,u),sB=[e].concat(t)}],[20,4,function(e,t,r,u,n,a,i,o){sR=sN(n,o),sK(e,r),sB=[s4({type:"ClassRange",from:e,to:r},s5(n,i))],u&&(sB=sB.concat(u))}],[21,1,function(e,t){sB=sJ(e,"simple",sR=sN(t,t))}],[21,1,function(e,t){sR=sN(t,t),sB=e}],[22,1,function(e,t){sR=sN(t,t),sB=e}],[22,1,function(e,t){sB=sJ(e,"meta",sR=sN(t,t))}]],sj={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"},sO=[{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"}],sM=[],s$=void 0,sz=[[/^#[^\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 s1(sT.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&&"\\-"===sT);else if("u"===e||"xu"===e||"u_class"===e)throw SyntaxError("invalid Unicode escape "+sT);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 s1(sT=sT.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"}]],sU={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]},sq={type:"$",value:""};s$={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(sq);for(var e=this._string.slice(this._cursor),t=sU[this.getCurrentState()],r=0;r<t.length;r++){var u=sz[t[r]],n=this._match(e,u[0]);if(""===e&&""===n&&this._cursor++,null!==n){(sT=n).length;var a=u[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,sP(o))}return this.onToken(this._toToken(a,sT))}}if(this.isEOF())return this._cursor++,sq;this.throwUnexpectedToken(e[0],this._currentLine,this._currentColumn)},throwUnexpectedToken:function(e,t,r){var u=this._string.split("\n")[t-1],n="";throw u&&(n="\n\n"+u+"\n"+" ".repeat(r)+"^\n"),SyntaxError(n+'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}},sI.lexer=s$,sI.tokenizer=s$,sI.options={captureLocations:!0};var sW={setOptions:function(e){return sI.options=e,this},getOptions:function(){return sI.options},parse:function(e,t){if(!s$)throw Error("Tokenizer instance wasn't specified.");s$.initString(e);var r=sI.options;t&&(sI.options=Object.assign({},sI.options,t)),sW.onParseBegin(e,s$,sI.options),sM.length=0,sM.push(0);var u=s$.getNextToken(),n=null;do{u||(sI.options=r,s6());var a=sM[sM.length-1],i=sj[u.type];sO[a].hasOwnProperty(i)||(sI.options=r,s8(u));var o=sO[a][i];if("s"===o[0]){var s=null;sI.options.captureLocations&&(s={startOffset:u.startOffset,endOffset:u.endOffset,startLine:u.startLine,endLine:u.endLine,startColumn:u.startColumn,endColumn:u.endColumn}),n=this.onShift(u),sM.push({symbol:sj[n.type],semanticValue:n.value,loc:s},Number(o.slice(1))),u=s$.getNextToken()}else if("r"===o[0]){var d=sL[o.slice(1)],c="function"==typeof d[2],l=c?[]:null,f=c&&sI.options.captureLocations?[]:null;if(0!==d[1])for(var p=d[1];p-- >0;){sM.pop();var m=sM.pop();c&&(l.unshift(m.semanticValue),f&&f.unshift(m.loc))}var g={symbol:d[0]};if(c){sT=n?n.value:null,n&&n.value.length;var y=null!==f?l.concat(f):l;d[2].apply(d,sP(y)),g.semanticValue=sB,f&&(g.loc=sR)}var h=sM[sM.length-1],b=d[0];sM.push(g,sO[h][b])}else if("acc"===o){sM.pop();var v=sM.pop();if((1!==sM.length||0!==sM[0]||s$.hasMoreTokens())&&(sI.options=r,s8(u)),v.hasOwnProperty("semanticValue"))return sI.options=r,sW.onParseEnd(v.semanticValue),v.semanticValue;return sW.onParseEnd(),sI.options=r,!0}}while(s$.hasMoreTokens()||sM.length>1)},setTokenizer:function(e){return s$=e,sW},getTokenizer:function(){return s$},onParseBegin:function(e,t,r){},onParseEnd:function(e){},onShift:function(e){return e}},sV=0,sZ={},sG="";function sH(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 sK(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")}sW.onParseBegin=function(e,t){sG=e,sV=0,sZ={};var r=e.lastIndexOf("/"),u=e.slice(r);u.includes("x")&&u.includes("u")?t.pushState("xu"):(u.includes("x")&&t.pushState("x"),u.includes("u")&&t.pushState("u"))},sW.onShift=function(e){return("L_PAREN"===e.type||"NAMED_CAPTURE_GROUP"===e.type)&&(e.value=new String(e.value),e.value.groupNumber=++sV),e};var sX={isValidName:function(e){return sv.hasOwnProperty(e)||sx.hasOwnProperty(e)||sE.hasOwnProperty(e)||sA.hasOwnProperty(e)},isValidValue:function(e,t){return"General_Category"===e||"gc"==e?s_(t):!!("Script"===e||"Script_Extensions"===e||"sc"===e||"scx"===e)&&(sS.hasOwnProperty(t)||sF.hasOwnProperty(t))},isGeneralCategoryValue:s_,isBinaryPropertyName:function(e){return sE.hasOwnProperty(e)||sA.hasOwnProperty(e)},getCanonicalName:function(e){return sx.hasOwnProperty(e)?sx[e]:sA.hasOwnProperty(e)?sA[e]:null},getCanonicalValue:function(e){return sC.hasOwnProperty(e)?sC[e]:sF.hasOwnProperty(e)?sF[e]:sA.hasOwnProperty(e)?sA[e]:null}};function sJ(e,t,r){var u=void 0,n=void 0;switch(t){case"decimal":u=String.fromCodePoint(n=Number(e.slice(1)));break;case"oct":u=String.fromCodePoint(n=parseInt(e.slice(1),8));break;case"hex":case"unicode":if(e.lastIndexOf("\\u")>0){var a=sk(e.split("\\u").slice(1),2),i=a[0],o=a[1];u=String.fromCodePoint(n=((i=parseInt(i,16))-55296)*1024+((o=parseInt(o,16))-56320)+65536)}else{if((n=parseInt(e.slice(2).replace("{",""),16))>1114111)throw SyntaxError("Bad character escape sequence: "+e);u=String.fromCodePoint(n)}break;case"meta":switch(e){case"\\t":n=(u=" ").codePointAt(0);break;case"\\n":n=(u="\n").codePointAt(0);break;case"\\r":n=(u="\r").codePointAt(0);break;case"\\v":n=(u="\v").codePointAt(0);break;case"\\f":n=(u="\f").codePointAt(0);break;case"\\b":n=(u="\b").codePointAt(0);case"\\0":u="\0",n=0;case".":u=".",n=NaN;break;default:n=NaN}break;case"simple":n=(u=e).codePointAt(0)}return s4({type:"Char",value:e,kind:t,symbol:u,codePoint:n},r)}var sY=/^\\u[0-9a-fA-F]{4}/,sQ=/^\\u\{[0-9a-fA-F]{1,}\}/,s0=/\\u\{[0-9a-fA-F]{1,}\}/;function s1(e,t){if(s0.test(e)&&!("u"===t||"xu"===t||"u_class"===t))throw SyntaxError('invalid group Unicode name "'+e+'", use `u` flag.');return e}var s3=/\\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 s2(e){return e.replace(RegExp(s3,"g"),function(e,t,r,u,n,a,i){return t?String.fromCodePoint(parseInt(t,16),parseInt(r,16)):u?String.fromCodePoint(parseInt(u,16)):n?String.fromCodePoint(parseInt(n,16)):a?String.fromCodePoint(parseInt(a,16)):i?String.fromCodePoint(parseInt(i,16)):e})}function s4(e,t){return sI.options.captureLocations&&(e.loc={source:sG.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 s5(e,t){return sI.options.captureLocations?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:null}function s8(e){"$"===e.type&&s6(),s$.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function s6(){!function(e){throw SyntaxError(e)}("Unexpected end of input.")}var s9=sW.parse.bind(sW);sW.parse=function(e,t){return s9(""+e,t)},sW.setOptions({captureLocations:!1});var s7=function(){function e(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,r,u){return r&&e(t.prototype,r),u&&e(t,u),t}}(),de="expressions",dt="expression",dr=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=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=u,this.index=n}return s7(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,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=void 0;return null!=r?(u||(u=de),this._enforceProp(u),this.node[u][r]=t,n=e.getForNode(t,this,u,r)):(u||(u=dt),this._enforceProp(u),this.node[u]=t,n=e.getForNode(t,this,u,null)),n}},{key:"appendChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t||(t=de),this._enforceProp(t);var r=this.node[t].length;return this.setChild(e,r,t)}},{key:"insertChildAt",value:function(t,r){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:de;this._enforceProp(u),this.node[u].splice(r,0,t),r<=e.getTraversingIndex()&&e.updateTraversingIndex(1),this._rebuildIndex(this.node,u)}},{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 u=e.getForNode(t),n=0;n<t[r].length;n++)e.getForNode(t[r][n],u,r,n).index=n}},{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,de,t):this.node.expression&&0==t?e.getForNode(this.node.expression,this,dt):null}},{key:"hasEqualSource",value:function(e){return JSON.stringify(this.node,du)===JSON.stringify(e.node,du)}},{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:du,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,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=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,u,-1==n?null:n));var a=e.registry.get(t);return null!==r&&(a.parentPath=r,a.parent=a.parentPath.node),null!==u&&(a.property=u),n>=0&&(a.index=n),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 du(e,t){if("loc"!==e)return t}dr.initRegistry(),dr.traversingIndexStack=[];var dn=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{asNodes:!1};function u(e,t,r,u){var n=dr.getForNode(t);return dr.getForNode(e,n,r,u)}Array.isArray(t)||(t=[t]),t=t.filter(function(t){return"function"!=typeof t.shouldRun||t.shouldRun(e)}),dr.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,u=t.post,n=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(n?n(d,t):"$"===d[0])continue;var c=t[d];if(Array.isArray(c)){var l=0;for(dr.traversingIndexStack.push(l);l<c.length;)e(c[l],t,d,l),l=dr.updateTraversingIndex(1);dr.traversingIndexStack.pop()}else e(c,t,d)}}u&&u(t,a,i,o)}}(e,null)}(e,{pre:function(e,n,a,i){var o=void 0;r.asNodes||(o=u(e,n,a,i));var s=!0,d=!1,c=void 0;try{for(var l,f=t[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var p=l.value;if("function"==typeof p["*"]){if(o){if(!o.isRemoved()){var m=p["*"](o);if(!1===m)return!1}}else p["*"](e,n,a,i)}var g=void 0;if("function"==typeof p[e.type]?g=p[e.type]:"object"==typeof p[e.type]&&"function"==typeof p[e.type].pre&&(g=p[e.type].pre),g){if(o){if(!o.isRemoved()){var y=g.call(p,o);if(!1===y)return!1}}else g.call(p,e,n,a,i)}}}catch(e){d=!0,c=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw c}}},post:function(e,n,a,i){if(e){var o=void 0;r.asNodes||(o=u(e,n,a,i));var s=!0,d=!1,c=void 0;try{for(var l,f=t[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var p=l.value,m=void 0;if("object"==typeof p[e.type]&&"function"==typeof p[e.type].post&&(m=p[e.type].post),m){if(o){if(!o.isRemoved()){var g=m.call(p,o);if(!1===g)return!1}}else m.call(p,e,n,a,i)}}}catch(e){d=!0,c=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw c}}}},skipProperty:function(e){return"loc"===e}})},da=function(){function e(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,r,u){return r&&e(t.prototype,r),u&&e(t,u),t}}(),di=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 da(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=sb.generate(this._ast.body)),this._source}},{key:"getFlags",value:function(){return this._ast.flags}},{key:"toString",value:function(){return this._string||(this._string=sb.generate(this._ast)),this._string}}]),e}(),ds=function(e,t){var r=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(r=sW.parse(e,{captureLocations:!0})),dn(r,t),new di(r)},dd={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",u="￿";this._hasUFlag&&(r="\\u{10FFFF}",u="\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:u}}]})}}},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",""))}}},dc="A".codePointAt(0),dl="Z".codePointAt(0),df="a".codePointAt(0),dp="z".codePointAt(0),dm="0".codePointAt(0),dg="9".codePointAt(0),dy="A".codePointAt(0),dh="Z".codePointAt(0),db=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},dv=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 dx(e){return e.greedy&&("+"===e.kind||"*"===e.kind||"Range"===e.kind&&!e.to)}function dE(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 dA(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 dD=[function(e){return dC(e," ")}].concat(dA(["\\f","\\n","\\r","\\t","\\v"].map(function(e){return function(t){return dS(t,e)}})),dA([160,5760,8232,8233,8239,8287,12288,65279].map(function(e){return function(t){return dF(t,e)}})),[function(e){return"ClassRange"===e.type&&dF(e.from,8192)&&dF(e.to,8202)}]);function dC(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 dS(e,t){return dC(e,t,"meta")}function dF(e,t){return"Char"===e.type&&"unicode"===e.kind&&e.codePoint===t}function dw(e,t,r){for(var u=e,n=(r?u>=0:u<t.expressions.length)&&t.expressions[u];n&&"Char"===n.type&&"simple"===n.kind&&!n.escaped&&/\d/.test(n.value);)r?u--:u++,n=(r?u>=0:u<t.expressions.length)&&t.expressions[u];return Math.abs(e-u)}function d_(e,t){return e&&"Char"===e.type&&"simple"===e.kind&&!e.escaped&&e.value===t}function dk(e,t){var r=dP(e),u=dP(t);if(r===u){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 dP(e.to)-dP(t.to);if(dT(e)&&dT(t)||dI(e)&&dI(t))return e.value<t.value?-1:1}return r-u}function dP(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 dT(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 dI(e){return"Char"===e.type&&"control"===e.kind}function dB(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 dR(e){return e.codePoint>=48&&e.codePoint<=57}function dN(e,t){return dR(e)||e.codePoint>=65&&e.codePoint<=90||e.codePoint>=97&&e.codePoint<=122||"_"===e.value||t&&(383===e.codePoint||8490===e.codePoint)}function dL(e){return e&&"Char"===e.type&&!isNaN(e.codePoint)&&(dN(e,!1)||"unicode"===e.kind||"hex"===e.kind||"oct"===e.kind||"decimal"===e.kind)}var dj={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 dO(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 dM(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 d$=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||(u=r.from,n=r.to,u.codePoint>=dm&&u.codePoint<=dg&&n.codePoint>=dm&&n.codePoint<=dg||u.codePoint>=dc&&u.codePoint<=dl&&n.codePoint>=dc&&n.codePoint<=dl||u.codePoint>=df&&u.codePoint<=dp&&n.codePoint>=df&&n.codePoint<=dp))&&(a=t.codePoint)>=32&&a<=126){var u,n,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,u=e.node,n=e.parent;if(!isNaN(u.codePoint)&&(this._hasUFlag||!(u.codePoint>=4096))){if("ClassRange"===n.type){if(!this._AZClassRanges.has(n)&&(t=n.from,r=n.to,!(t.codePoint>=dy)||!(t.codePoint<=dh)||!(r.codePoint>=dy)||!(r.codePoint<=dh)))return;this._AZClassRanges.add(n)}var a=u.symbol.toLowerCase();a!==u.symbol&&(u.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 u={lead:(Math.floor((r-65536)/1024)+55296).toString(16),trail:((r-65536)%1024+56320).toString(16)},n=u.lead,a=u.trail;return"\\u"+"0".repeat(4-n.length)+n+"\\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,u),u.symbol=a,u.codePoint=a.codePointAt(0))}}}],["charClassRemoveDuplicates",{CharacterClass:function(e){for(var t=e.node,r={},u=0;u<t.expressions.length;u++){var n=e.getChild(u),a=n.jsonEncode();r.hasOwnProperty(a)&&(n.remove(),u--),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 u=dE(r.node.quantifier),n=u.from,a=u.to,i=dE(t.quantifier),o=i.from,s=i.to;if(r.node.quantifier.greedy!==t.quantifier.greedy&&!dx(r.node.quantifier)&&!dx(t.quantifier))return;t.quantifier.kind="Range",t.quantifier.from=n+o,a&&s?t.quantifier.to=a+s:delete t.quantifier.to,(dx(r.node.quantifier)||dx(t.quantifier))&&(t.quantifier.greedy=!0),r.remove()}else{if(!r.hasEqualSource(e.getChild()))return;dv(t.quantifier),r.remove()}}}}}],["quantifierRangeToSymbol",{Quantifier:function(e){if("Range"===e.node.kind){var t,r,u;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===(u=e.node).from&&1===u.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,u,n,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,u=e.node,n=null,a=null,i=null,o=null,s=null,d=null,u.expressions.forEach(function(u,c){dS(u,"\\d")?n=e.getChild(c):"ClassRange"===u.type&&"a"===u.from.value&&"z"===u.to.value?a=e.getChild(c):"ClassRange"===u.type&&"A"===u.from.value&&"Z"===u.to.value?i=e.getChild(c):"Char"===u.type&&"_"===u.value&&"simple"===u.kind?o=e.getChild(c):t&&r&&dF(u,383)?s=e.getChild(c):t&&r&&dF(u,8490)&&(d=e.getChild(c))}),n&&(a&&i||t&&(a||i))&&o&&(!r||!t||s&&d)&&(n.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<dD.length)&&dD.every(function(e){return t.expressions.some(function(t){return e(t)})})){var r=t.expressions.find(function(e){return dS(e,"\\n")});r.value="\\s",r.symbol=void 0,r.codePoint=NaN,t.expressions.map(function(t,r){return dD.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 u=t.expressions[r-1];return null==u||("Backreference"!==u.type||"number"!==u.kind)&&("Char"!==u.type||"decimal"!==u.kind)}(e)&&"Char"===(r=t.expressions[0]).type&&"\\b"!==r.value){var r,u,n,a,i=t.expressions[0],o=i.value,s=i.kind,d=i.escaped;if(t.negative){if(u=o,!/^\\[dwsDWS]$/.test(u))return;n=o,o=/[dws]/.test(n)?n.toUpperCase():n.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,u,n,a=e.node;a.escaped&&(t=this._hasXFlag,r=e.node.value,u=e.index,("CharacterClass"!==(n=e.parent).type&&"ClassRange"!==n.type?"{"===r?function(e,t){if(null==e)return!1;var r=dw(e+1,t),u=e+r+1,n=u<t.expressions.length&&t.expressions[u];if(r){if(d_(n,"}"))return!0;if(d_(n,","))return r=dw(u+1,t),d_(n=(u=u+r+1)<t.expressions.length&&t.expressions[u],"}")}return!1}(u,n):"}"===r?function(e,t){if(null==e)return!1;var r=dw(e-1,t,!0),u=e-r-1,n=u>=0&&t.expressions[u];return!!(r&&d_(n,"{"))||!!d_(n,",")&&(r=dw(u-1,t,!0),n=(u=u-r-1)<t.expressions.length&&t.expressions[u],r&&d_(n,"{"))}(u,n):!!(t&&/[ #]/.test(r))||/[*[()+?^$./\\|]/.test(r):"^"===r?0===u&&!n.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){dT(e)&&r.push(e.value)}),t.sort(dk);for(var u=0;u<t.length;u++){var n,a=t[u];if(function(e,t,r){for(var u=0;u<t.length;u++)if(function e(t,r,u){return"ClassRange"===t.type?e(t.from,r,u)&&e(t.to,r,u):!!("\\S"===r&&(dT(t,"\\w")||dT(t,"\\d"))||"\\D"===r&&(dT(t,"\\W")||dT(t,"\\s"))||"\\w"===r&&dT(t,"\\d")||"\\W"===r&&dT(t,"\\s"))||!("Char"!==t.type||isNaN(t.codePoint))&&("\\s"===r?dB(t):"\\S"===r?!dB(t):"\\d"===r?dR(t):"\\D"===r?!dR(t):"\\w"===r?dN(t,u):"\\W"===r&&!dN(t,u))}(e,t[u],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(dL(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[u-1])||(n=t[u+1])&&"ClassRange"===n.type&&dL(a)&&n.from.codePoint===a.codePoint+1&&(n.from=a,1))t.splice(u,1),u--;else{var i=function(e,t,r){if(!dL(e))return 0;for(var u=0;t>0;){var n=r[t],a=r[t-1];if(dL(a)&&a.codePoint===n.codePoint-1)u++,t--;else break}return u>1?(r[t]={type:"ClassRange",from:r[t],to:e},u):0}(a,u,t);t.splice(u-i+1,i),u-=i}}}}],["disjunctionRemoveDuplicates",{Disjunction:function(e){var t=e.node,r={},u=db(t).filter(function(e){var t=e?dr.getForNode(e).jsonEncode():"null";return!r.hasOwnProperty(t)&&(r[t]=e,!0)});e.replace(u.reduce(function(e,t){return{type:"Disjunction",left:e,right:t}}))}}],["groupSingleCharsToCharClass",{Disjunction:function(e){var t=e.node,r=e.parent;if(dj[r.type]){var u=new Map;if(function e(t,r){if(!t)return!1;var u=t.type;if("Disjunction"===u){var n=t.left,a=t.right;return e(n,r)&&e(a,r)}if("Char"===u){if("meta"===t.kind&&"."===t.symbol)return!1;var i=t.value;return r.set(i,t),!0}return"CharacterClass"===u&&!t.negative&&t.expressions.every(function(t){return e(t,r)})}(t,u)&&u.size){var n={type:"CharacterClass",expressions:Array.from(u.keys()).sort().map(function(e){return u.get(e)})};dj[r.type](e.getParent(),n)}}}}],["removeEmptyGroup",{Group:function(e){var t=e.node,r=e.parent,u=e.getChild();t.capturing||u||("Repetition"===r.type?e.getParent().replace(t):"RegExp"!==r.type&&e.remove())}}],["ungroup",{Group:function(e){var t=e.node,r=e.parent,u=e.getChild();if(!t.capturing&&u&&function(e){var t=e.parent,r=e.index;if("Alternative"!==t.type)return!0;var u=t.expressions[r-1];return null==u||("Backreference"!==u.type||"number"!==u.kind)&&("Char"!==u.type||"decimal"!==u.kind)}(e)&&("Disjunction"!==u.node.type||"RegExp"===r.type)&&("Repetition"!==r.type||"Char"===u.node.type||"CharacterClass"===u.node.type)){if("Alternative"===u.node.type){var n=e.getParent();"Alternative"===n.node.type&&n.replace({type:"Alternative",expressions:[].concat(dO(r.expressions.slice(0,e.index)),dO(u.node.expressions),dO(r.expressions.slice(e.index+1)))})}else e.replace(u.node)}}}],["combineRepeatingPatterns",{Alternative:function(e){for(var t=e.node,r=1;r<t.expressions.length;){var u=e.getChild(r);if((r=Math.max(1,function(e,t,r){for(var u=e.node,n=Math.ceil(r/2),a=0;a<n;){var i=r-2*a-1,o=void 0,s=void 0;if(0===a?(o=t,s=e.getChild(i)):(o=dr.getForNode({type:"Alternative",expressions:[].concat(dM(u.expressions.slice(r-a,r)),[t.node])}),s=dr.getForNode({type:"Alternative",expressions:[].concat(dM(u.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,u,r)))>=t.expressions.length||(u=e.getChild(r),(r=Math.max(1,function(e,t,r){for(var u=e.node,n=0;n<r;){var a=e.getChild(n);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()),n+1===r?"Group"!==(o=t).node.type||o.node.capturing||(o=o.getChild()):o=dr.getForNode({type:"Alternative",expressions:[].concat(dM(u.expressions.slice(n+1,r+1)))}),i.hasEqualSource(o)){for(var s=n;s<r;s++)e.getChild(n+1).remove();return dv(a.node.quantifier),n}}n++}return r}(e,u,r)))>=t.expressions.length))break;u=e.getChild(r),r=Math.max(1,function(e,t,r){var u=e.node;if("Repetition"===t.node.type&&t.node.quantifier.greedy){var n=t.getChild(),a=void 0;"Group"!==n.node.type||n.node.capturing||(n=n.getChild());var i=void 0;if("Alternative"===n.node.type?(i=n.node.expressions.length,a=dr.getForNode({type:"Alternative",expressions:[].concat(dM(u.expressions.slice(r-i,r)))})):(i=1,"Group"!==(a=e.getChild(r-1)).node.type||a.node.capturing||(a=a.getChild())),a.hasEqualSource(n)){for(var o=r-i;o<r;o++)e.getChild(r-i).remove();return dv(t.node.quantifier),r-i}}return r}(e,u,r)),r++}}}]]),dz=function e(t){if(null===t||"object"!=typeof t)return t;var r=void 0;for(var u in r=Array.isArray(t)?[]:{},t)r[u]=e(t[u]);return r},dU=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],u=!0,n=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(u=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);u=!0);}catch(e){n=!0,a=e}finally{try{!u&&o.return&&o.return()}finally{if(n)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")},dq=function(){function e(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,r,u){return r&&e(t.prototype,r),u&&e(t,u),t}}(),dW=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 dq(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 u in r)"ε*"!==u&&this._alphabet.add(u)}}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 u,n=this.getAcceptingStates()[Symbol.iterator]();!(e=(u=n.next()).done);e=!0){var a=u.value;this._acceptingStateNumbers.add(a.number)}}catch(e){t=!0,r=e}finally{try{!e&&n.return&&n.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 u(n){if(!t.has(n)){t.add(n),n.number=t.size,e._transitionTable[n.number]={},n.accepting&&e._acceptingStates.add(n);var a=n.getTransitions(),i=!0,o=!1,s=void 0;try{for(var d,c=a[Symbol.iterator]();!(i=(d=c.next()).done);i=!0){var l=d.value,f=dU(l,2),p=f[0],m=f[1],g=[];r.add(p);var y=!0,h=!1,b=void 0;try{for(var v,x=m[Symbol.iterator]();!(y=(v=x.next()).done);y=!0){var E=v.value;u(E),g.push(E.number)}}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}e._transitionTable[n.number][p]=g}}catch(e){o=!0,s=e}finally{try{!i&&c.return&&c.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}(),dV=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],u=!0,n=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(u=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);u=!0);}catch(e){n=!0,a=e}finally{try{!u&&o.return&&o.return()}finally{if(n)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function dZ(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 dG=null,dH=function(){function e(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,r,u){return r&&e(t.prototype,r),u&&e(t,u),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}var dX=function(e){var t=e.getTransitionTable(),r=Object.keys(t),u=e.getAlphabet(),n=e.getAcceptingStateNumbers();dG={};var a=new Set;r.forEach(function(e){e=Number(e),n.has(e)?dG[e]=n:(a.add(e),dG[e]=a)});var i=[[a,n].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 u=e[r],n=t[r];if(u.size!==n.size||[].concat(dZ(u)).sort().join(",")!==[].concat(dZ(n)).sort().join(","))return!1}return!0}(o,s);)!function(){var e={},r=!0,n=!1,a=void 0;try{for(var d,c=o[Symbol.iterator]();!(r=(d=c.next()).done);r=!0){var l=d.value,f={},p=Array.isArray(l)?l:Array.from(l),m=p[0],g=p.slice(1);f[m]=new Set([m]);var y=!0,h=!1,b=void 0;try{e:for(var v,x=g[Symbol.iterator]();!(y=(v=x.next()).done);y=!0){var E=v.value,A=!0,D=!1,C=void 0;try{for(var S,F=Object.keys(f)[Symbol.iterator]();!(A=(S=F.next()).done);A=!0){var w=S.value;if(function(e,t,r,u){var n=!0,a=!1,i=void 0;try{for(var o,s=u[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var d=o.value;if(!function(e,t,r,u){if(!dG[e]||!dG[t])return!1;var n=r[e][u],a=r[t][u];return!n&&!a||dG[e].has(n)&&dG[t].has(a)}(e,t,r,d))return!1}}catch(e){a=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(a)throw i}}return!0}(E,w,t,u)){f[w].add(E),f[E]=f[w];continue e}}}catch(e){D=!0,C=e}finally{try{!A&&F.return&&F.return()}finally{if(D)throw C}}f[E]=new Set([E])}}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}Object.assign(e,f)}}catch(e){n=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(n)throw a}}dG=e;var _=new Set(Object.keys(e).map(function(t){return e[t]}));i.push([].concat(dZ(_))),o=i[i.length-1],s=i[i.length-2]}();var d=new Map,c=1;o.forEach(function(e){return d.set(e,c++)});var l={},f=new Set,p=!0,m=!1,g=void 0;try{for(var y,h=d.entries()[Symbol.iterator]();!(p=(y=h.next()).done);p=!0){var b=y.value,v=dV(b,2),x=v[0],E=v[1];l[E]={};var A=!0,D=!1,C=void 0;try{for(var S,F=u[Symbol.iterator]();!(A=(S=F.next()).done);A=!0){var w=S.value;!function(e,t){var r=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;n.has(s)&&f.add(t)}}catch(e){u=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(u)throw a}}}(x,E);var _=void 0,k=!0,P=!1,T=void 0;try{for(var I,B=x[Symbol.iterator]();!(k=(I=B.next()).done)&&!(_=t[I.value][w]);k=!0);}catch(e){P=!0,T=e}finally{try{!k&&B.return&&B.return()}finally{if(P)throw T}}_&&(l[E][w]=d.get(dG[_]))}}catch(e){D=!0,C=e}finally{try{!A&&F.return&&F.return()}finally{if(D)throw C}}}}catch(e){m=!0,g=e}finally{try{!p&&h.return&&h.return()}finally{if(m)throw g}}return e.setTransitionTable(l),e.setAcceptingStateNumbers(f),e},dJ=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 dH(e,[{key:"minimize",value:function(){this.getTransitionTable(),this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._originalTransitionTable=this._transitionTable,dX(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 u=[t[r[0]]["ε*"]],n=this.getAlphabet(),a=this._nfa.getAcceptingStateNumbers(),i={};u.length>0;){var o=u.shift(),s=o.join(",");i[s]={};var d=!0,c=!1,l=void 0;try{for(var f,p=n[Symbol.iterator]();!(d=(f=p.next()).done);d=!0){var m=f.value,g=[];!function(t){var r=!0,u=!1,n=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){u=!0,n=e}finally{try{!r&&o.return&&o.return()}finally{if(u)throw n}}}(o);var y=!0,h=!1,b=void 0;try{for(var v,x=o[Symbol.iterator]();!(y=(v=x.next()).done);y=!0){var E=t[v.value][m];if(E){var A=!0,D=!1,C=void 0;try{for(var S,F=E[Symbol.iterator]();!(A=(S=F.next()).done);A=!0){var w=S.value;t[w]&&g.push.apply(g,dK(t[w]["ε*"]))}}catch(e){D=!0,C=e}finally{try{!A&&F.return&&F.return()}finally{if(D)throw C}}}}}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}var _=new Set(g),k=[].concat(dK(_));if(k.length>0){var P=k.join(",");i[s][m]=P,i.hasOwnProperty(P)||u.unshift(k)}}}catch(e){c=!0,l=e}finally{try{!d&&p.return&&p.return()}finally{if(c)throw l}}}return this._transitionTable=this._remapStateNumbers(i)}},{key:"_remapStateNumbers",value:function(e){var t={};this._originalTransitionTable=e;var r={};for(var u in Object.keys(e).forEach(function(e,r){t[e]=r+1}),e){var n=e[u],a={};for(var i in n)a[i]=t[n[i]];r[t[u]]=a}this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._acceptingStateNumbers=new Set;var o=!0,s=!1,d=void 0;try{for(var c,l=this._originalAcceptingStateNumbers[Symbol.iterator]();!(o=(c=l.next()).done);o=!0){var f=c.value;this._acceptingStateNumbers.add(t[f])}}catch(e){s=!0,d=e}finally{try{!o&&l.return&&l.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,u=this.getTransitionTable();e[r];)if(!(t=u[t][e[r++]]))return!1;return!!this.getAcceptingStateNumbers().has(t)}}]),e}(),dY=function(){function e(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,r,u){return r&&e(t.prototype,r),u&&e(t,u),t}}(),dQ=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 dY(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}(),d0=function(){function e(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,r,u){return r&&e(t.prototype,r),u&&e(t,u),t}}(),d1=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),d0(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,u=!1,n=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){u=!0,n=e}finally{try{!r&&i.return&&i.return()}finally{if(u)throw n}}return!1}var o=e[0],s=e.slice(1),d=this.getTransitionsOnSymbol(o),c=!0,l=!1,f=void 0;try{for(var p,m=d[Symbol.iterator]();!(c=(p=m.next()).done);c=!0)if(p.value.matches(s))return!0}catch(e){l=!0,f=e}finally{try{!c&&m.return&&m.return()}finally{if(l)throw f}}var g=!0,y=!1,h=void 0;try{for(var b,v=this.getTransitionsOnSymbol("ε")[Symbol.iterator]();!(g=(b=v.next()).done);g=!0)if(b.value.matches(e,t))return!0}catch(e){y=!0,h=e}finally{try{!g&&v.return&&v.return()}finally{if(y)throw h}}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 u=!0,n=!1,a=void 0;try{for(var i,o=t[Symbol.iterator]();!(u=(i=o.next()).done);u=!0){var s=i.value;r.has(s)||(r.add(s),s.getEpsilonClosure().forEach(function(e){return r.add(e)}))}}catch(e){n=!0,a=e}finally{try{!u&&o.return&&o.return()}finally{if(n)throw a}}}(),this._epsilonClosure}}]),t}(dQ);function d3(e){var t=new d1,r=new d1({accepting:!0});return new dW(t.addTransition(e,r),r)}var d2={alt:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),u=1;u<t;u++)r[u-1]=arguments[u];var n=!0,a=!1,i=void 0;try{for(var o,s=r[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var d,c=o.value;(d=e).out.accepting=!1,c.out.accepting=!0,d.out.addTransition("ε",c.in),e=new dW(d.in,c.out)}}catch(e){a=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(a)throw i}}return e},char:d3,e:function(){return d3("ε")},or:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),u=1;u<t;u++)r[u-1]=arguments[u];var n=!0,a=!1,i=void 0;try{for(var o,s=r[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var d=o.value;e=function(e,t){var r=new d1,u=new d1;return r.addTransition("ε",e.in),r.addTransition("ε",t.in),u.accepting=!0,e.out.accepting=!1,t.out.accepting=!1,e.out.addTransition("ε",u),t.out.addTransition("ε",u),new dW(r,u)}(e,d)}}catch(e){a=!0,i=e}finally{try{!n&&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 d1,r=new d1({accepting:!0});return t.addTransition("ε",e.in),t.addTransition("ε",r),e.out.accepting=!1,e.out.addTransition("ε",r),r.addTransition("ε",e.in),new dW(t,r)},plusRep:function(e){return e.out.addTransition("ε",e.in),e},questionRep:function(e){return e.in.addTransition("ε",e.out),e}},d4=d2.alt,d5=d2.char,d8=d2.or,d6=d2.rep,d9=d2.plusRep,d7=d2.questionRep;function ce(e){if(e&&!ct[e.type])throw Error(e.type+" is not supported in NFA/DFA interpreter.");return e?ct[e.type](e):""}var ct={RegExp:function(e){if(""!==e.flags)throw Error("NFA/DFA: Flags are not supported yet.");return ce(e.body)},Alternative:function(e){var t=(e.expressions||[]).map(ce);return d4.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 d8(ce(e.left),ce(e.right))},Repetition:function(e){switch(e.quantifier.kind){case"*":return d6(ce(e.expression));case"+":return d9(ce(e.expression));case"?":return d7(ce(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 d5(e.value)},Group:function(e){return ce(e.expression)}},cr=function(e){var t=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(t=sW.parse(e,{captureLocations:!0})),ce(t)},cu=function(){function e(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,r,u){return r&&e(t.prototype,r),u&&e(t,u),t}}(),cn=function(){function e(t,r){var u=r.flags,n=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=n,this.flags=u,this.source=a||t.source,this.dotAll=u.includes("s"),this.global=t.global,this.ignoreCase=t.ignoreCase,this.multiline=t.multiline,this.sticky=t.sticky,this.unicode=t.unicode}return cu(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 u=this._groups[r];t.groups[r]=t[u]}return t}}]),e}(),ca=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.length>0?t:Object.keys(dd),u=void 0,n={};return r.forEach(function(t){if(!dd.hasOwnProperty(t))throw Error("Unknown compat-transform: "+t+". Available transforms are: "+Object.keys(dd).join(", "));var r=dd[t];e=(u=ds(e,r)).getAST(),"function"==typeof r.getExtra&&(n[t]=r.getExtra())}),u.setExtra(n),u},ci=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.whitelist,u=void 0===r?[]:r,n=t.blacklist,a=void 0===n?[]:n,i=(u.length>0?u:Array.from(d$.keys())).filter(function(e){return!a.includes(e)}),o=e;e instanceof RegExp&&(e=""+e),"string"==typeof e&&(o=sW.parse(e));var s=new di(o),d=void 0;do d=s.toString(),o=dz(s.getAST()),i.forEach(function(e){if(!d$.has(e))throw Error("Unknown optimization-transform: "+e+". Available transforms are: "+Array.from(d$.keys()).join(", "));var t=d$.get(e),r=ds(o,t);r.toString()!==s.toString()&&(r.toString().length<=s.toString().length?s=r:o=dz(s.getAST()))});while(s.toString()!==d);return s};const co=(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 sp){let u=r[0],n=r[1];sg(t,n.flags)&&(e=e.replace(RegExp(sm(u),"g"),n.value))}return e},{optimize:cs}={parser:sW,fa:{NFA:dW,DFA:dJ,builders:d2,toNFA:function(e){return cr(e)},toDFA:function(e){return new dJ(this.toNFA(e))},test:function(e,t){return this.toDFA(e).matches(t)}},TransformResult:di,parse:function(e,t){return sW.parse(""+e,t)},traverse:function(e,t,r){return dn(e,t,r)},transform:function(e,t){return ds(e,t)},generate:function(e){return sb.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 ci(e,{whitelist:t,blacklist:r.blacklist})},compatTranspile:function(e,t){return ca(e,t)},exec:function(e,t){if("string"==typeof e){var r=this.compatTranspile(e),u=r.getExtra();e=u.namedCapturingGroups?new cn(r.toRegExp(),{flags:r.getFlags(),source:r.getSource(),groups:u.namedCapturingGroups}):r.toRegExp()}return e.exec(t)}},{isStringLiteral:cd,isNewExpression:cc,isRegexLiteral:cl}=tI,cf="better-regex",cp="better-regex/parse-error";var cm=Y({create:e=>{let{sortCharacterClasses:t}=e.options[0]||{},r=[];return!1===t&&r.push("charClassClassrangesMerge"),{Literal(e){if(!cl(e))return;let{raw:t,regex:u}=e;if(u.flags.includes("u")||u.flags.includes("v"))return;let n=t;try{n=cs(t,void 0,{blacklist:r}).toString()}catch(r){return{node:e,messageId:cp,data:{original:t,error:r.message}}}if(t===n)return;let a={node:e,messageId:cf,data:{original:t,optimized:n}};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,n)}):a},NewExpression(e){if(!cc(e,{name:"RegExp",minimumArguments:1}))return;let[t,r]=e.arguments;if(!cd(t))return;let u=t.value,n=co(u,cd(r)?r.value:"");if(u!==n)return{node:e,messageId:cf,data:{original:u,optimized:n},fix:e=>e.replaceText(t,rI(n,t.raw.charAt(0)))}}}},meta:{type:"suggestion",docs:{description:"Improve regexes by making them shorter, consistent, and safer."},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{sortCharacterClasses:{type:"boolean",default:!0}}}],messages:{[cf]:"{{original}} can be optimized to {{optimized}}.",[cp]:"Problem parsing {{original}}: {{error}}"}}});const{replaceTemplateElement:cg}=ne,{isRegexLiteral:cy,isStringLiteral:ch}=tI,cb="escape-case",cv=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+})/g,cx=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+}|c[a-z])/g,cE=({node:e,original:t,regex:r=cv,fix:u})=>{let n=t.replace(r,e=>e.slice(0,1)+e.slice(1).toUpperCase());if(n!==t)return{node:e,messageId:cb,fix:t=>u?u(t,n):t.replaceText(e,n)}};var cA=Y({create:e=>{e.on("Literal",e=>{if(ch(e))return cE({node:e,original:e.raw})}),e.on("Literal",e=>{if(cy(e))return cE({node:e,original:e.raw,regex:cx})}),e.on("TemplateElement",e=>cE({node:e,original:e.value.raw,fix:(t,r)=>cg(t,e,r)}))},meta:{type:"suggestion",docs:{description:"Require escape sequences to use uppercase values."},fixable:"code",messages:{[cb]:"Use uppercase characters for the value of the escape sequence."}}});const{replaceTemplateElement:cD}=ne,{isStringLiteral:cC,isRegexLiteral:cS}=tI,cF="no-hex-escape";function cw(e,t,r){let u=r.replaceAll(/(?<=(?:^|[^\\])(?:\\\\)*\\)x/g,"u00");if(r!==u)return{node:t,messageId:cF,fix:e=>"TemplateElement"===t.type?cD(e,t,u):e.replaceText(t,u)}}var c_=Y({create:e=>({Literal(t){if(cC(t)||cS(t))return cw(e,t,t.raw)},TemplateElement:t=>cw(e,t,t.value.raw)}),meta:{type:"suggestion",docs:{description:"Enforce the use of Unicode escapes instead of hexadecimal escapes."},fixable:"code",messages:{[cF]:"Use Unicode escapes instead of hexadecimal escapes."}}});const{getPropertyName:ck,ReferenceTracker:cP}=tr,{fixSpaceAroundKeyword:cT}=ne,{isMemberExpression:cI,isMethodCall:cB}=tI,cR=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];var cN=Y({create:function(e){let{sourceCode:t}=e,r=[];e.on("CallExpression",e=>{r.push(e)}),e.on("Program:exit",function*(e){let u=new WeakMap;for(let{node:r,path:n}of new cP(t.getScope(e)).iterateGlobalReferences(Object.fromEntries(cR.map(e=>[e,{[cP.READ]:!0}]))))u.set(r,n);for(let e of r)yield function(e,{sourceCode:t,globalReferences:r}){let u;cB(e,{object:"Reflect",method:"apply",minimumArguments:1,optionalCall:!1,optionalMember:!1})?u=e.arguments[0]:cB(e,{methods:["apply","bind","call"],optionalCall:!1,optionalMember:!1})&&(u=e.callee.object);let{isGlobalReference:n,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(!cI(e,{optional:!1}))return;let u=e.object;if(!(("ArrayExpression"!==u.type||0!==u.elements.length)&&("ObjectExpression"!==u.type||0!==u.properties.length)))return{constructorName:"ArrayExpression"===u.type?"Array":"Object",methodName:ck(e,t.getScope(e))}}(u,{sourceCode:t,globalReferences:r})??{};if(a)return{node:u,messageId:i?"known-method":"unknown-method",data:{constructorName:a,methodName:i},*fix(r){if(n){yield r.replaceText(u,`${a}.prototype.${i}`);return}if(cI(u)){let n=u.object;yield r.replaceText(n,`${a}.prototype`),("ArrayExpression"===n.type||"ObjectExpression"===n.type)&&(yield*cT(r,e,t))}}}}(e,{sourceCode:t,globalReferences:u})})},meta:{type:"suggestion",docs:{description:"Prefer borrowing methods from the prototype instead of the instance."},fixable:"code",messages:{"known-method":"Prefer using `{{constructorName}}.prototype.{{methodName}}`.","unknown-method":"Prefer using method from `{{constructorName}}.prototype`."}}});const{getStaticValue:cL}=tr,{isCallOrNewExpression:cj}=tI,cO="missing-message",cM="message-is-empty-string",c$="message-is-not-a-string",cz=["Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","InternalError","AggregateError"];var cU=Y({create:e=>{e.on(["CallExpression","NewExpression"],t=>{if(!cj(t,{names:cz,optional:!1}))return;let r=e.sourceCode.getScope(t);if(rK(r,t.callee))return;let u=t.callee.name,n="AggregateError"===u?1:0,a=t.arguments;if(a.some((e,t)=>t<=n&&"SpreadElement"===e.type))return;let i=a[n];if(!i)return{node:t,messageId:cO,data:{constructorName:u}};if("ArrayExpression"===i.type||"ObjectExpression"===i.type)return{node:i,messageId:c$};let o=cL(i,r);if(!o)return;let{value:s}=o;return"string"!=typeof s?{node:i,messageId:c$}:""===s?{node:i,messageId:cM}:void 0})},meta:{type:"problem",docs:{description:"Enforce passing a `message` value when creating a built-in error."},messages:{[cO]:"Pass a message to the `{{constructorName}}` constructor.",[cM]:"Error message should not be an empty string.",[c$]:"Error message should be a string."}}});const{checkVueTemplate:cq}=op,{getParenthesizedRange:cW}=tp,{replaceNodeOrTokenAndSpacesBefore:cV,fixSpaceAroundKeyword:cZ}=ne,cG=e=>"instanceof"===e.value&&"Keyword"===e.type,cH="no-instanceof-array";var cK=Y({create:cq(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:u}=e,n=t,a=n.getTokenAfter(r,cG);return!a&&t.parserServices.getTemplateBodyTokenStore&&(a=(n=t.parserServices.getTemplateBodyTokenStore()).getTokenAfter(r,cG)),{node:a,messageId:cH,*fix(i){yield*cZ(i,e,t);let o=cW(r,n);yield i.insertTextBeforeRange(o,"Array.isArray("),yield i.insertTextAfterRange(o,")"),yield*cV(a,"",i,t,n),yield*cV(u,"",i,t,n)}}}}}),meta:{type:"suggestion",docs:{description:"Require `Array.isArray()` instead of `instanceof Array`."},fixable:"code",messages:{[cH]:"Use `Array.isArray()` instead of `instanceof Array`."}}});const{isNewExpression:cX}=tI,cJ="prefer-type-error",cY=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"]),cQ=new Set(["isNaN","isFinite"]),c0=(e,t,r)=>void 0!==t&&t.arguments.length>0&&"Identifier"===e.type&&(!0===r&&cY.has(e.name)||!1===r&&cQ.has(e.name)),c1=e=>e.parent&&e.parent.body&&1===e.parent.body.length,c3=(e,t)=>!!c0(e.property,t,!0)||"MemberExpression"===e.object.type&&c3(e.object,t),c2=(e,t)=>{switch(e.type){case"Identifier":return c0(e,t,!1);case"MemberExpression":return c3(e,t);case"CallExpression":return c2(e.callee,e);case"UnaryExpression":return"typeof"===e.operator||"!"===e.operator&&c2(e.argument);case"BinaryExpression":return"instanceof"===e.operator||c2(e.left,t)||c2(e.right,t);case"LogicalExpression":return c2(e.left,t)&&c2(e.right,t);default:return!1}},c4=e=>"IfStatement"===e.type&&c2(e.test);var c5=Y({create:()=>({ThrowStatement(e){if(cX(e.argument,{name:"Error"})&&c1(e)&&e.parent.parent&&c4(e.parent.parent)){let t=e.argument.callee;return{node:t,messageId:cJ,fix:e=>e.insertTextBefore(t,"Type")}}}}),meta:{type:"suggestion",docs:{description:"Enforce throwing `TypeError` in type checking conditions."},fixable:"code",messages:{[cJ]:"`new Error()` is too unspecific for a type check. Use `new TypeError()` instead."}}});const{isCallOrNewExpression:c8}=tI,c6="consistentDestructuring",c9="consistentDestructuringSuggest",c7=e=>{for(;e;){if(e.computed)return!1;if("MemberExpression"!==e.type)break;e=e.object}return"Identifier"===e.type||"ThisExpression"===e.type},le=(e,t)=>{for(;e;){if(e===t)return!0;e=e.upper}return!1};var lt=Y({create:e=>{let{sourceCode:t}=e,r=new Map;return{VariableDeclarator(e){"ObjectPattern"===e.id.type&&e.init&&"Literal"!==e.init.type&&c7(e.init)&&r.set(t.getText(e.init),{scope:t.getScope(e),variables:t.getDeclaredVariables(e),objectPattern:e.id})},MemberExpression(e){if(e.computed||c8(e.parent)&&e.parent.callee===e||rj(e))return;let u=r.get(t.getText(e.object));if(!u)return;let{scope:n,objectPattern:a}=u,i=t.getScope(e);if(!le(i,n))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,c=t.getText(e),l=t.getText(e.property),f=o.find(e=>e.key.name===l);if(!f&&(d||rs(l,[i])!==l))return;if("MemberExpression"===e.parent.type)return{node:e,messageId:c6};let p=f?f.value.name:l;return{node:e,messageId:c6,suggest:[{messageId:c9,data:{expression:c,property:p},*fix(t){let{properties:r}=a,u=r.at(-1);yield t.replaceText(e,p),f||(yield u?t.insertTextAfter(u,`, ${p}`):t.replaceText(a,`{${p}}`))}}]}}}},meta:{type:"suggestion",docs:{description:"Use destructured variables over properties."},fixable:"code",hasSuggestions:!0,messages:{[c6]:"Use destructured variables over properties.",[c9]:"Replace `{{expression}}` with destructured property `{{property}}`."}}}),lr=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];const lu=["Object","Array","ArrayBuffer","DataView","Date","Error","Function","Map","WeakMap","Set","WeakSet","Promise","RegExp","SharedArrayBuffer","Proxy","WeakRef","FinalizationRegistry",...lr],{GlobalReferenceTracker:ln}=a5,la=["BigInt","Boolean","Number","String","Symbol"],{switchCallExpressionToNewExpression:li,switchNewExpressionToCallExpression:lo}=ne;var ls=Y({create:e=>{let{sourceCode:t}=e,r=new ln({objects:la,type:ln.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*lo(e,r,t)}),u})(e,t)}),u=new ln({objects:lu,type:ln.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=>li(e,r,t)}})(e,t)});return{*"Program:exit"(e){let n=t.getScope(e);yield*r.track(n),yield*u.track(n)}}},meta:{type:"suggestion",docs:{description:"Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`."},fixable:"code",messages:{enforce:"Use `new {{name}}()` instead of `{{name}}()`.",disallow:"Use `{{name}}()` instead of `new {{name}}()`."}}});const{isOpeningParenToken:ld}=tr,{hasSideEffect:lc,isCommaToken:ll,isSemicolonToken:lf}=tr,lp=(e,t)=>{let r=t.getTokenAfter(e.callee,ld),u=t.getLastToken(e);return t.text.slice(r.range[1],u.range[0])},{isNodeMatches:lm}=tL,lg=function(e,t){let{parent:r}=e;for(let u of t.visitorKeys[r.type]||Object.keys(r)){let t=r[u];if(t===e)return;if(Array.isArray(t)){let r=t.indexOf(e);if(-1!==r)return t[r-1]}}},{isMethodCall:ly}=tI,lh="error",lb="suggestion",lv=e=>e&&"ExpressionStatement"===e.parent.type&&e.parent.expression===e&&ly(e,{method:"push",optionalCall:!1,optionalMember:!1});var lx=Y({create:function(e){let{ignore:t}={ignore:[],...e.options[0]},r=["stream","this","this.stream","process.stdin","process.stdout","process.stderr",...t],{sourceCode:u}=e;return{CallExpression(e){if(!lv(e))return;let t=e.callee.object;if(lm(t,r))return;let n=function(e,t){let r=lg(e.parent,t)?.expression;if(lv(r))return r}(e,u);if(!n||!rH(n.callee.object,t))return;let a=e.arguments,i={node:e.callee.property,messageId:lh},o=function*(t){if(a.length>0){let r=lp(e,u),[a,i]=u.getLastTokens(n,2);yield ll(a)?t.insertTextAfter(a,` ${r}`):t.insertTextBefore(i,n.arguments.length>0?`, ${r}`:r)}let r=n.parent,i=e.parent,o=!lf(u.getLastToken(r))&&lf(u.getLastToken(i));yield t.replaceTextRange([r.range[1],i.range[1]],o?";":"")};return a.some(e=>lc(e,u))?i.suggest=[{messageId:lb,fix:o}]:i.fix=o,i}}},meta:{type:"suggestion",docs:{description:"Enforce combining multiple `Array#push()` into one call."},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignore:{type:"array",uniqueItems:!0}}}],messages:{[lh]:"Do not call `Array#push()` multiple times.",[lb]:"Merge with previous one."}}});const{isStaticRequire:lE,isMethodCall:lA,isLiteral:lD}=tI,lC="no-process-exit",lS=e=>lD(e,"node:worker_threads")||lD(e,"worker_threads");var lF=Y({create:e=>{let t;if(0===e.sourceCode.lines[0].indexOf("#!"))return{};let r=!1,u=[];e.on("CallExpression",e=>{lE(e)&&lS(e.arguments[0])&&(r=!0)}),e.on("ImportDeclaration",e=>{"Literal"===e.source.type&&lS(e.source)&&(r=!0)}),e.on("CallExpression",e=>{lA(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&&lA(e,{object:"process",method:"exit",optionalCall:!1,optionalMember:!1})&&u.push(e)}),e.onExit("Program",function*(){if(!r)for(let e of u)yield{node:e,messageId:lC}})},meta:{type:"suggestion",docs:{description:"Disallow `process.exit()`."},messages:{[lC]:"Only use `process.exit()` in CLI apps. Throw an error instead."}}}),lw=function(e,{test:t,expected:r,ruleId:u}){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 n=`'${JSON.stringify({value:e.value,type:e.type})}'`;r=r.map(e=>`'${JSON.stringify(e)}'`).join(" or ");let a=`\`${u}\`: Unexpected token ${n}`,i=`https://github.com/sindresorhus/eslint-plugin-unicorn/issues/new?title=${encodeURIComponent(a)}`;throw Error(`Expected token ${r}, got ${n}.
4
+ Please open an issue at ${i}.`)};const{isSemicolonToken:l_}=tr,lk=function(e,t){let{loc:r,body:u}=e,n=t.getTokenBefore(u),{start:a}=r,{end:i}=n.loc;return{start:a,end:i}},{removeSpacesAfter:lP}=ne,lT="no-static-only-class",lI=({type:e,value:t})=>"Punctuator"===e&&"="===t,lB=e=>"ClassDeclaration"===e.type&&"ExportDefaultDeclaration"===e.parent.type&&e.parent.declaration===e,lR=e=>"PropertyDefinition"===e.type,lN=e=>"MethodDefinition"===e.type;var lL=Y({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:u,readonly:n,accessibility:a,decorators:i,key:o}=e;return!(!lR(e)&&!lN(e)||!r||t||"PrivateIdentifier"===o.type||u||n||void 0!==a||Array.isArray(i)&&i.length>0)}(e)))return;let{sourceCode:r}=e;return{node:t,loc:lk(t,r),messageId:lT,fix:function(e,t){let{type:r,id:u,body:n,declare:a,abstract:i,implements:o,parent:s}=e;if(a||i||Array.isArray(o)&&o.length>0||"ClassExpression"===r&&u)return;let d=lB(e);if(!d||!u){for(let e of n.body)if(lR(e)&&(e.typeAnnotation||e.value&&t.getText(e.value).includes("this")))return;return function*(u){let a=t.getFirstToken(e);if(lw(a,{expected:{type:"Keyword",value:"class"},ruleId:"no-static-only-class"}),d||"ClassExpression"===r){if("ClassExpression"===r&&"ReturnStatement"===s.type&&n.loc.start.line!==s.loc.start.line&&t.text.slice(a.range[1],n.range[0]).trim()){yield u.replaceText(a,"{");let e=t.getFirstToken(n);yield u.remove(e)}else yield u.replaceText(a,""),yield lP(a,t,u)}else yield u.replaceText(a,"const"),yield u.insertTextBefore(n,"= "),yield u.insertTextAfter(n,";");for(let e of n.body)yield*function*(e,t,r){let u=t.getFirstToken(e);lw(u,{expected:{type:"Keyword",value:"static"},ruleId:"no-static-only-class"}),yield r.remove(u),yield lP(u,t,r);let n=lR(e)?t.getLastToken(e):t.getTokenAfter(e),a=l_(n);if(lR(e)){let{key:u,value:i}=e;if(i){let e=t.getTokenAfter(u,lI);yield r.replaceText(e,":")}else a?yield r.insertTextBefore(n,": undefined"):yield r.insertTextAfter(e,": undefined")}yield a?r.replaceText(n,","):r.insertTextAfter(e,",")}(e,t,u)}}}(t,r)}})},meta:{type:"suggestion",docs:{description:"Disallow classes that only have static members."},fixable:"code",messages:{[lT]:"Use an object instead of a class with only static members."}}});const{isParenthesized:lj}=tr,{fixSpaceAroundKeyword:lO}=ne,lM="no-unreadable-array-destructuring",l$=(e,t,r)=>null===e&&null===r[t+1];var lz=Y({create:e=>{let{sourceCode:t}=e;return{ArrayPattern(e){let{elements:r,parent:u}=e;if(r.length<3||!r.some((e,t,r)=>l$(e,t,r)))return;let n={node:e,messageId:lM},a=r.filter(e=>null!==e);if("VariableDeclarator"===u.type&&u.id===e&&null!==u.init&&1===a.length){let[i]=a;"AssignmentPattern"!==i.type&&(n.fix=function*(n){let a=r.indexOf(i),o="RestElement"===i.type,s=o?i.argument:i;yield n.replaceText(e,t.getText(s));let d=o?`.slice(${a})`:`[${a}]`,c=u.init;!lj(c,t)&&r7(c,t)?(yield n.insertTextBefore(c,"("),yield n.insertTextAfter(u,`)${d}`)):yield n.insertTextAfter(u,d),yield*lO(n,e,t)})}return n}}},meta:{type:"suggestion",docs:{description:"Disallow unreadable array destructuring."},fixable:"code",messages:{[lM]:"Array destructuring may not contain consecutive ignored values."}}});const{isCommaToken:lU}=tr,{removeParentheses:lq,fixSpaceAroundKeyword:lW,addParenthesizesToReturnOrThrowExpression:lV}=ne,{isParenthesized:lZ,isOnSameLine:lG}=um,{isNewExpression:lH,isMethodCall:lK,isCallOrNewExpression:lX}=tI,lJ="spread-in-list",lY="iterable-to-array",lQ="iterable-to-array-in-for-of",l0="iterable-to-array-in-yield-star",l1="clone-array",l3=e=>"ArrayExpression"===e.type&&1===e.elements.length&&e.elements[0]?.type==="SpreadElement",l2={ArrayExpression:"array literal",ObjectExpression:"object literal",CallExpression:"arguments",NewExpression:"arguments"};function*l4(e,t,r){let[u,n,a]=r.getFirstTokens(t,3);yield e.remove(u),yield e.remove(n);let[i,o]=r.getLastTokens(t,2);yield e.remove(o),lU(i)&&(yield e.remove(i));let{parent:s}=t;if(("ReturnStatement"===s.type||"ThrowStatement"===s.type)&&s.argument===t&&!lG(u,a)&&!lZ(t,r)){yield*lV(e,s,r);return}yield*lW(e,t,r)}var l5=Y({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)||lX(e.parent.parent)&&e.parent.parent.arguments.includes(e.parent)))))return;let r=e.parent,u=t.getFirstToken(r),n=r.parent.type;return{node:u,messageId:lJ,data:{argumentType:"ArrayExpression"===e.type?"array":"object",parentDescription:l2[n]},*fix(r){let a;yield r.remove(u),yield*lq(e,r,t);let i=t.getFirstToken(e);yield r.remove(i);let[o,s]=t.getLastTokens(e,2);if(yield r.remove(s),lU(o)&&(yield r.remove(o)),"CallExpression"===n||"NewExpression"===n)for(let[u,n]of(a=t.getFirstToken(e),e.elements.map((r,u,n)=>{if(u===n.length-1){let r=t.getLastToken(e,{skip:1});return lU(r)?r:void 0}let i=t.getTokenAfter(r||a,lU);return a=i,i})).entries())e.elements[u]||(yield r.insertTextBefore(n,"undefined"))}}}),e.on("ArrayExpression",e=>{if(!l3(e))return;let{parent:r}=e;if(!("ForOfStatement"===r.type&&r.right===e||"YieldExpression"===r.type&&r.delegate&&r.argument===e||(lH(r,{names:["Map","WeakMap","Set","WeakSet"],argumentsLength:1})||lH(r,{names:lr,minimumArguments:1})||lK(r,{object:"Promise",methods:["all","allSettled","any","race"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||lK(r,{objects:["Array",...lr],method:"from",argumentsLength:1,optionalCall:!1,optionalMember:!1})||lK(r,{object:"Object",method:"fromEntries",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&r.arguments[0]===e))return;let u="",n=lY;switch(r.type){case"ForOfStatement":n=lQ;break;case"YieldExpression":n=l0;break;case"NewExpression":u=`new ${r.callee.name}(…)`;break;case"CallExpression":u=`${r.callee.object.name}.${r.callee.property.name}(…)`}return{node:e,messageId:n,data:{parentDescription:u},fix:r=>l4(r,e,t)}}),e.on("ArrayExpression",e=>{if(!l3(e))return;let r=e.elements[0].argument;if(!(lK(r,{methods:["concat","copyWithin","filter","flat","flatMap","map","slice","splice","toReversed","toSorted","toSpliced","with"],optionalCall:!1,optionalMember:!1})||lK(r,{method:"split",optionalCall:!1,optionalMember:!1})||lK(r,{object:"Object",methods:["keys","values"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||"AwaitExpression"===r.type&&lK(r.argument,{object:"Promise",methods:["all","allSettled"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||lK(r,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||lH(r,{name:"Array"})))return;let u={node:e,messageId:l1};return lH(r,{name:"Array"})||"CallExpression"===r.type&&"MemberExpression"===r.callee.type&&"Identifier"===r.callee.property.type&&"slice"===r.callee.property.name?u:Object.assign(u,{fix:r=>l4(r,e,t)})})},meta:{type:"suggestion",docs:{description:"Disallow unnecessary spread."},fixable:"code",messages:{[lJ]:"Spread an {{argumentType}} literal in {{parentDescription}} is unnecessary.",[lY]:"`{{parentDescription}}` accepts iterable as argument, it's unnecessary to convert to an array.",[lQ]:"`for…of` can iterate over iterable, it's unnecessary to convert to an array.",[l0]:"`yield*` can delegate iterable, it's unnecessary to convert to an array.",[l1]:"Unnecessarily cloning an array."}}});const{isColonToken:l8}=tr,{isEmptyNode:l6}=tI,l9=function(e,t){let r=e.test||t.getFirstToken(e),u=t.getTokenAfter(r,l8);return{start:e.loc.start,end:u.loc.end}},l7="no-useless-switch-case/error",fe="no-useless-switch-case/suggestion",ft=e=>e.consequent.every(e=>l6(e));var fr=Y({create:e=>({*SwitchStatement(t){let{cases:r}=t,u=r.filter(e=>null===e.test);if(1!==u.length)return;let[n]=u;if(n!==r.at(-1))return;let a=[];for(let e=r.length-2;e>=0;e--){let t=r[e];if(ft(t))a.unshift(t);else break}for(let t of a)yield{node:t,loc:l9(t,e.sourceCode),messageId:l7,suggest:[{messageId:fe,fix:e=>e.remove(t)}]}}}),meta:{type:"suggestion",docs:{description:"Disallow useless case in switch statements."},hasSuggestions:!0,messages:{[l7]:"Useless case in switch statement.",[fe]:"Remove this case."}}});const{isCommaToken:fu}=tr,{replaceNodeOrTokenAndSpacesBefore:fn}=ne,{isUndefined:fa,isFunction:fi}=tI,fo="no-useless-undefined",fs=new Set(["is","equal","notEqual","strictEqual","notStrictEqual","propertyVal","notPropertyVal","not","include","property","toBe","toHaveBeenCalledWith","toContain","toContainEqual","toEqual","same","notSame","strictSame","strictNotSame"]),fd=e=>{let t;return"Identifier"===e.type?t=e.name:"MemberExpression"===e.type&&!1===e.computed&&"Identifier"===e.property.type&&(t=e.property.name),fs.has(t)||"push"===t||"unshift"===t||"includes"===t||"add"===t||"has"===t||"set"===t||"createContext"===t||/^set[A-Z]/.test(t)||"ref"===t},fc=e=>{for(;e;e=e.upper)if("function"===e.type)return e.block},fl=e=>!e.optional&&"MemberExpression"===e.callee.type&&!e.callee.computed&&"Identifier"===e.callee.property.type&&"bind"===e.callee.property.name,ff=e=>/\.(?:ts|mts|cts|tsx)$/i.test(e.physicalFilename);var fp=Y({create:e=>{let{sourceCode:t}=e,r=(e,r,u)=>{if(u){let r=fc(t.getScope(e));if(r?.returnType)return}return{node:e,messageId:fo,fix:r}},u={checkArguments:!0,checkArrowFunctionBody:!0,...e.options[0]},n=(e,r)=>fn(e,"",r,t);e.on("Identifier",e=>{if(fa(e)&&"ReturnStatement"===e.parent.type&&e.parent.argument===e)return r(e,t=>n(e,t),!0)}),e.on("Identifier",e=>{if(fa(e)&&"YieldExpression"===e.parent.type&&!e.parent.delegate&&e.parent.argument===e)return r(e,t=>n(e,t))}),u.checkArrowFunctionBody&&e.on("Identifier",e=>{if(fa(e)&&"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e)return r(e,r=>fn(e," {}",r,t),!0)}),e.on("Identifier",e=>{if(fa(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(fa(t)&&"AssignmentPattern"===t.parent.type&&t.parent.right===t)return r(t,function*(r){let u=t.parent,{left:n}=u;yield r.removeRange([n.range[1],t.range[1]]),(n.typeAnnotation||ff(e))&&!n.optional&&fi(u.parent)&&u.parent.params.includes(u)&&(yield n.typeAnnotation?r.insertTextBefore(n.typeAnnotation,"?"):r.insertTextAfter(n,"?"))},!0)}),u.checkArguments&&e.on("CallExpression",e=>{if(fd(e.callee))return;let r=e.arguments;if(fl(e)&&1!==r.length)return;let u=[];for(let e=r.length-1;e>=0;e--){let t=r[e];if(fa(t))u.unshift(t);else break}if(0===u.length)return;let n=u[0],a=u.at(-1);return{messageId:fo,loc:{start:n.loc.start,end:a.loc.end},fix(e){let i=n.range[0],o=a.range[1],s=r[r.length-u.length-1];if(s)i=s.range[1];else{let e=t.getTokenAfter(a);fu(e)&&(o=e.range[1])}return e.removeRange([i,o])}}})},meta:{type:"suggestion",docs:{description:"Disallow useless `undefined`."},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{checkArguments:{type:"boolean"},checkArrowFunctionBody:{type:"boolean"}}}],messages:{[fo]:"Do not use useless `undefined`."}}});const{isBigIntLiteral:fm}=tI,fg="numeric-separators-style";function fy(e,{minimumDigits:t,groupLength:r},u){let{length:n}=e;if(n<t)return e;let a=[];if(u)for(let t=0;t<n;t+=r){let u=Math.min(t+r,n);a.push(e.slice(t,u))}else for(let t=n;t>0;t-=r){let u=Math.max(t-r,0);a.unshift(e.slice(u,t))}return a.join("_")}const fh={binary:{minimumDigits:0,groupLength:4},octal:{minimumDigits:0,groupLength:4},hexadecimal:{minimumDigits:0,groupLength:2},number:{minimumDigits:5,groupLength:3}},fb=({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 fv=Y({create:e=>{let{onlyIfContainsSeparator:t,binary:r,octal:u,hexadecimal:n,number:a}={onlyIfContainsSeparator:!1,...e.options[0]},i={"0b":{onlyIfContainsSeparator:t,...fh.binary,...r},"0o":{onlyIfContainsSeparator:t,...fh.octal,...u},"0x":{onlyIfContainsSeparator:t,...fh.hexadecimal,...n},"":{onlyIfContainsSeparator:t,...fh.number,...a}};return{Literal(e){if(!r6.isNumeric(e)||r6.isLegacyOctal(e))return;let{raw:t}=e,r=t,u="";fm(e)&&(r=t.slice(0,-1),u="n");let n=r.replaceAll("_",""),{prefix:a,data:o}=r6.getPrefix(n),{onlyIfContainsSeparator:s}=i[a.toLowerCase()];if(s&&!t.includes("_"))return;let d=function(e,{prefix:t,data:r},u){let n=u[t.toLowerCase()];if(t)return t+fy(r,n);let{number:a,mark:i,sign:o,power:s}=r6.parseNumber(e);return function(e,t){let{integer:r,dot:u,fractional:n}=r6.parseFloatNumber(e);return fy(r,t)+u+fy(n,t,!0)}(a,n)+i+o+fy(s,u[""])}(n,{prefix:a,data:o},i)+u;if(t!==d)return{node:e,messageId:fg,fix:t=>t.replaceText(e,d)}}}},meta:{type:"suggestion",docs:{description:"Enforce the style of numeric separators by correctly grouping digits."},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{...Object.fromEntries(Object.entries(fh).map(([e,t])=>[e,fb(t)])),onlyIfContainsSeparator:{type:"boolean",default:!1}}}],messages:{[fg]:"Invalid group length in numeric value."}}});const{isParenthesized:fx,findVariable:fE}=tr,{extendFixRange:fA,removeMemberExpressionProperty:fD,removeMethodCall:fC,renameVariable:fS}=ne,{isLeftHandSide:fF,singular:fw,getScopes:f_,avoidCapture:fk,getVariableIdentifiers:fP}=um,{isMethodCall:fT}=tI,fI="error-zero-index",fB="error-shift",fR="error-pop",fN="error-at-zero",fL="error-at-minus-one",fj="error-destructuring-declaration",fO="error-destructuring-assignment",fM="error-variable",f$="suggest-nullish-coalescing-operator",fz="suggest-logical-or-operator",fU=e=>fT(e,{method:"filter",minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}),fq=(e,t)=>{if("AssignmentExpression"!==e.type||fx(e,t))return!1;let{left:r}=fV(e),[u]=r.elements,{type:n}="AssignmentPattern"===u.type?u.left:u;return"ObjectExpression"===n||"ObjectPattern"===n},fW=(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,fV=e=>e?"AssignmentExpression"===e.type?e:"VariableDeclarator"===e.type?{left:e.id,right:e.init}:{}:{};function*fZ(e,t,r){let{left:u}=fV(e),[n]=u.elements,a=t.getText("AssignmentPattern"===n.type?n.left:n);yield r.replaceText(u,a),fq(e,t)&&(yield r.insertTextBefore(e,"("),yield r.insertTextAfter(e,")"))}const fG=e=>"AssignmentPattern"===fV(e).left.elements[0].type,fH=(e,t,r,u)=>{let{left:n,right:a}=fV(e),[i]=n.elements,o=i.right,s=t.getText(o);return(fx(o,t)||fW(o,u))&&(s=`(${s})`),r.insertTextAfter(a,` ${u} ${s}`)},fK=(e,t)=>{let r,u;let{property:n}=fV(t).right.callee;return fG(t)?r=[{operator:"??",messageId:f$},{operator:"||",messageId:fz}].map(({messageId:r,operator:u})=>({messageId:r,*fix(r){yield r.replaceText(n,"find"),yield fH(t,e,r,u),yield*fZ(t,e,r)}})):u=function*(r){yield r.replaceText(n,"find"),yield*fZ(t,e,r)},{fix:u,suggest:r}},fX=e=>"MemberExpression"===e.parent.type&&!0===e.parent.computed&&e.parent.object===e&&"Literal"===e.parent.property.type&&"0"===e.parent.property.raw,fJ=e=>{let{left:t,right:r}=fV(e.parent);return t&&r&&r===e&&"ArrayPattern"===t.type&&1===t.elements.length&&t.elements[0]&&"RestElement"!==t.elements[0].type};var fY=Y({create:e=>{let{sourceCode:t}=e,{checkFromLast:r}={checkFromLast:!1,...e.options[0]};e.on("MemberExpression",e=>{if(e.computed&&"Literal"===e.property.type&&"0"===e.property.raw&&fU(e.object)&&!fF(e))return{node:e.object.callee.property,messageId:fI,fix:r=>[r.replaceText(e.object.callee.property,"find"),fD(r,e,t)]}}),e.on("CallExpression",e=>{if(fT(e,{method:"shift",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&fU(e.callee.object))return{node:e.callee.object.callee.property,messageId:fB,fix:r=>[r.replaceText(e.callee.object.callee.property,"find"),...fC(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&&fU(e.init))return{node:e.init.callee.property,messageId:fj,...fK(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&&fU(e.right))return{node:e.right.callee.property,messageId:fO,...fK(t,e)}}),e.on("VariableDeclarator",e=>{if(!("Identifier"===e.id.type&&fU(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),u=fE(r,e.id),n=fP(u).filter(t=>t!==e.id);if(0===n.length)return;let a=[],i=[];for(let e of n)if(fX(e))a.push(e.parent);else{if(!fJ(e))return;i.push(e.parent)}let o={node:e.init.callee.property,messageId:fM};return i.some(e=>fG(e))||(o.fix=function*(n){yield n.replaceText(e.init.callee.property,"find");let o=fw(e.id.name);if(o){let e=fk(o,f_(r));yield*fS(u,e,n),yield*fA(n,t.ast.range)}for(let e of a)yield fD(n,e,t);for(let e of i)yield*fZ(e,t,n)}),o}),e.on("CallExpression",e=>{if(fT(e,{method:"at",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"Literal"===e.arguments[0].type&&"0"===e.arguments[0].raw&&fU(e.callee.object))return{node:e.callee.object.callee.property,messageId:fN,fix:r=>[r.replaceText(e.callee.object.callee.property,"find"),...fC(r,e,t)]}}),r&&(e.on("CallExpression",e=>{if(fT(e,{method:"pop",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&fU(e.callee.object))return{node:e.callee.object.callee.property,messageId:fR,fix:r=>[r.replaceText(e.callee.object.callee.property,"findLast"),...fC(r,e,t)]}}),e.on("CallExpression",e=>{if(fT(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&&fU(e.callee.object))return{node:e.callee.object.callee.property,messageId:fL,fix:r=>[r.replaceText(e.callee.object.callee.property,"findLast"),...fC(r,e,t)]}}))},meta:{type:"suggestion",docs:{description:"Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`."},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkFromLast:{type:"boolean",default:!1}}}],messages:{[fM]:"Prefer `.find(…)` over `.filter(…)`.",[fI]:"Prefer `.find(…)` over `.filter(…)[0]`.",[fN]:"Prefer `.find(…)` over `.filter(…).at(0)`.",[fB]:"Prefer `.find(…)` over `.filter(…).shift()`.",[fR]:"Prefer `.findLast(…)` over `.filter(…).pop()`.",[fL]:"Prefer `.findLast(…)` over `.filter(…).at(-1)`.",[fj]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[fO]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[f$]:"Replace `.filter(…)` with `.find(…) ?? …`.",[fz]:"Replace `.filter(…)` with `.find(…) || …`."}}});const{isNodeMatches:fQ}=tL,{isMethodCall:f0}=tI,{removeMethodCall:f1}=ne,f3="prefer-array-flat-map",f2=["React.Children","Children"];var f4=Y({create:e=>({CallExpression(t){if(!(f0(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)&&f0(t.callee.object,{method:"map",optionalCall:!1,optionalMember:!1})))return;let r=t.callee.object;if(fQ(r.callee.object,f2))return;let{sourceCode:u}=e,n=r.callee.property;return{node:t,loc:{start:n.loc.start,end:t.loc.end},messageId:f3,*fix(e){yield*f1(e,t,u),yield e.replaceText(n,"flatMap")}}}}),meta:{type:"suggestion",docs:{description:"Prefer `.flatMap(…)` over `.map(…).flat()`."},fixable:"code",messages:{[f3]:"Prefer `.flatMap(…)` over `.map(…).flat()`."}}});const{getParenthesizedText:f5,isArrayPrototypeProperty:f8,isNodeMatches:f6,isNodeMatchesNameOrPath:f9,isParenthesized:f7,isSameIdentifier:pe,needsSemicolon:pt,shouldAddParenthesesToMemberExpressionObject:pr}=um,{fixSpaceAroundKeyword:pu}=ne,{isMethodCall:pn,isCallExpression:pa}=tI,pi="prefer-array-flat",po=e=>"ArrayExpression"===e.type&&0===e.elements.length,ps={testFunction(e){if(!pn(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&&pe(t.params[0],t.body)},getArrayNode:e=>e.callee.object,description:"Array#flatMap()"},pd={testFunction(e){if(!pn(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&&po(r)))return!1;let u=t.body,[n,a]=t.params;return pn(u,{method:"concat",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&pe(n,u.callee.object)&&pe(a,u.arguments[0])||"ArrayExpression"===u.type&&2===u.elements.length&&u.elements.every((e,r)=>e?.type==="SpreadElement"&&"Identifier"===e.argument.type&&pe(t.params[r],e.argument))},getArrayNode:e=>e.callee.object,description:"Array#reduce()"},pc={testFunction:e=>pn(e,{method:"concat",argumentsLength:1,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&po(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},pl={testFunction(e){if(!(pn(e,{methods:["apply","call"],argumentsLength:2,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&f8(e.callee.object,{property:"concat"})))return!1;let[t,r]=e.arguments;return po(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},pf=["_.flatten","lodash.flatten","underscore.flatten"];var pp=Y({create:function(e){let{functions:t}={functions:[],...e.options[0]},r=[...t,...pf],u=[ps,pd,pc,pl,{testFunction:e=>pa(e,{argumentsLength:1,optional:!1})&&f6(e.callee,r),getArrayNode:e=>e.arguments[0],description:e=>`${r.find(t=>f9(e.callee,t)).trim()}()`}];return{*CallExpression(t){for(let{testFunction:r,description:n,getArrayNode:a,shouldSwitchToArray:i}of u){if(!r(t))continue;let u=a(t),o={description:"string"==typeof n?n:n(t)},s={node:t,messageId:pi,data:o},{sourceCode:d}=e;d.getCommentsInside(t).length===d.getCommentsInside(u).length&&(s.fix=function(e,t,r,u){return"function"==typeof u&&(u=u(e)),function*(n){let a=f5(t,r);u?a=`[${a}]`:!f7(t,r)&&pr(t,r)&&(a=`(${a})`),a=`${a}.flat()`,pt(r.getTokenBefore(e),r,a)&&(a=`;${a}`),yield n.replaceText(e,a),yield*pu(n,e,r)}}(t,u,d,i)),yield s}}}},meta:{type:"suggestion",docs:{description:"Prefer `Array#flat()` over legacy techniques to flatten arrays."},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{functions:{type:"array",uniqueItems:!0}}}],messages:{[pi]:"Prefer `Array#flat()` over `{{description}}` to flatten an array."}}});const{checkVueTemplate:pm}=op,{isBooleanNode:pg,getParenthesizedRange:py,isNodeValueNotFunction:ph}=um,{removeMemberExpressionProperty:pb}=ne,{isLiteral:pv,isUndefined:px,isMethodCall:pE,isMemberExpression:pA}=tI,pD="some",pC="some-suggestion",pS="filter",pF=e=>"BinaryExpression"===e.parent.type&&e.parent.left===e&&(("!="===e.parent.operator||"=="===e.parent.operator||"==="===e.parent.operator||"!=="===e.parent.operator)&&px(e.parent.right)||("!="===e.parent.operator||"=="===e.parent.operator)&&pv(e.parent.right,null));var pw=Y({create:pm(e=>({CallExpression(t){if(!pE(t,{methods:["find","findLast"],minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}))return;let r=pF(t);if(!r&&!pg(t))return;let u=t.callee.property;return{node:u,messageId:pD,data:{method:u.name},suggest:[{messageId:pC,*fix(n){if(yield n.replaceText(u,"some"),!r)return;let a=py(t,e.sourceCode);yield n.replaceTextRange([a[1],t.parent.range[1]],""),"!="!==t.parent.operator&&"!=="!==t.parent.operator&&(yield n.insertTextBeforeRange(a,"!"))}}]}},BinaryExpression(t){if(!((">"===t.operator||"!=="===t.operator)&&"Literal"===t.right.type&&"0"===t.right.raw&&pA(t.left,{property:"length",optional:!1})&&pE(t.left.object,{method:"filter",optionalCall:!1,optionalMember:!1})))return;let r=t.left.object,[u]=r.arguments;if(!u||ph(u))return;let n=r.callee.property;return{node:n,messageId:pS,*fix(r){yield r.replaceText(n,"some");let{sourceCode:u}=e,a=t.left;yield pb(r,a,u),yield r.removeRange([py(a,u)[1],t.range[1]])}}}})),meta:{type:"suggestion",docs:{description:"Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast}(…)`."},fixable:"code",messages:{[pD]:"Prefer `.some(…)` over `.{{method}}(…)`.",[pC]:"Replace `.{{method}}(…)` with `.some(…)`.",[pS]:"Prefer `.some(…)` over non-zero length check from `.filter(…)`."},hasSuggestions:!0}});const{isMethodCall:p_}=tI,pk=e=>p_(e,{method:"charCodeAt",optionalCall:!1,optionalMember:!1})?"codePointAt":p_(e,{object:"String",method:"fromCharCode",optionalCall:!1,optionalMember:!1})?"fromCodePoint":void 0;var pP=Y({create:()=>({CallExpression(e){let t=pk(e);if(!t)return;let r=e.callee.property,u=r.name;return{node:r,messageId:`error/${u}`,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(…)`."},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:pT}=tr,{functionTypes:pI}=tI,pB="preferDefaultParameters",pR="preferDefaultParametersSuggest",pN=(e,t)=>e&&t&&"Identifier"===e.type&&"LogicalExpression"===t.type&&("||"===t.operator||"??"===t.operator)&&"Identifier"===t.left.type&&"Literal"===t.right.type,pL=(e,t)=>{if(!t)return!1;if("CallExpression"===t.type)return!0;for(let r of e.visitorKeys[t.type]){let u=t[r];if(Array.isArray(u)){for(let t of u)if(pL(e,t))return!0}else if(pL(e,u))return!0}return!1},pj=(e,t,r)=>{for(let u of t.body.body){if(u===r)break;if(pL(e,u))return!0}return!1},pO=(e,t,r)=>!!e&&t[0].identifier!==r||!e&&t.length>1,pM=(e,t)=>{let r=e.at(-1);return t&&t===r},p$=(e,t)=>{if("ArrowFunctionExpression"!==t.type||t.params.length>1)return!1;let[r]=t.params,u=e.getTokenBefore(r),n=e.getTokenAfter(r);return!n||!u||"("!==u.value||")"!==n.value},pz=(e,t,r)=>{let{line:u}=r.loc.start,{column:n}=r.loc.end,a=t.getText(r),i=t.lines[u-1],o=i.trim()===a,s=" "===i[n];return o?e.removeRange([t.getIndexFromLoc({line:u,column:0}),t.getIndexFromLoc({line:u+1,column:0})]):s?e.removeRange([r.range[0],r.range[1]+1]):e.remove(r)};var pU=Y({create:e=>{let{sourceCode:t}=e,r=[],u=(e,u,n,a)=>{let i=r.at(-1);if(!i||!pN(u,n))return;let{name:o}=u,{left:{name:s},right:{raw:d}}=n;if(a&&o!==s)return;let c=pT(t.getScope(e),s);if(!c)return;let{references:l}=c,{params:f}=i,p=f.find(e=>"Identifier"===e.type&&e.name===s);if(pj(t,i,e)||pO(a,l,u)||!pM(f,p))return;let m=p$(t,i)?`(${o} = ${d})`:`${o} = ${d}`;return{node:e,messageId:pB,suggest:[{messageId:pR,fix:r=>[r.replaceText(p,m),pz(r,t,e)]}]}};e.on(pI,e=>{r.push(e)}),e.onExit(pI,()=>{r.pop()}),e.on("AssignmentExpression",e=>{if("ExpressionStatement"===e.parent.type&&e.parent.expression===e)return u(e.parent,e.left,e.right,!0)}),e.on("VariableDeclarator",e=>{if("VariableDeclaration"===e.parent.type&&e.parent.declarations[0]===e)return u(e.parent,e.id,e.init,!1)})},meta:{type:"suggestion",docs:{description:"Prefer default parameters over reassignment."},fixable:"code",hasSuggestions:!0,messages:{[pB]:"Prefer default parameters over reassignment.",[pR]:"Replace reassignment with default parameter."}}});const{isParenthesized:pq,getParenthesizedText:pW}=tp,pV=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)},pZ="prefer-logical-operator-over-ternary/error",pG="prefer-logical-operator-over-ternary/suggestion";function pH(e,t,r){if(rH(e,t))return!0;if(e.type!==t.type)return!1;switch(e.type){case"AwaitExpression":return pH(e.argument,t.argument,r);case"LogicalExpression":return e.operator===t.operator&&pH(e.left,t.left,r)&&pH(e.right,t.right,r);case"UnaryExpression":return e.operator===t.operator&&e.prefix===t.prefix&&pH(e.argument,t.argument,r);case"UpdateExpression":return!1}return r.getText(e)===r.getText(t)}function pK({sourceCode:e,conditionalExpression:t,left:r,right:u}){return{node:t,messageId:pZ,suggest:["??","||"].map(n=>({messageId:pG,data:{operator:n},fix:a=>(function({fixer:e,sourceCode:t,conditionalExpression:r,left:u,right:n,operator:a}){let i=[u,n].map((e,r)=>{let u=pq(e,t),n=u?pW(e,t):t.getText(e);return!u&&pV(e,{operator:a,property:0===r?"left":"right"})&&(n=`(${n})`),n}).join(` ${a} `);return rQ(t.getTokenBefore(r),t,i)&&(i=`;${i}`),e.replaceText(r,i)})({fixer:a,sourceCode:e,conditionalExpression:t,left:r,right:u,operator:n})}))}}var pX=Y({create:e=>{let{sourceCode:t}=e;return{ConditionalExpression(e){let{test:r,consequent:u,alternate:n}=e;return pH(r,u,t)?pK({sourceCode:t,conditionalExpression:e,left:r,right:n}):"UnaryExpression"===r.type&&"!"===r.operator&&r.prefix&&pH(r.argument,n,t)?pK({sourceCode:t,conditionalExpression:e,left:r.argument,right:u}):void 0}}},meta:{type:"suggestion",docs:{description:"Prefer using a logical operator over a ternary."},hasSuggestions:!0,messages:{[pZ]:"Prefer using a logical operator over a ternary.",[pG]:"Switch to `{{operator}}` operator."}}});const{isOpeningParenToken:pJ,isClosingParenToken:pY}=tr,pQ="with-name",p0="without-name";var p1=Y({create:e=>({CatchClause(t){let r=t.param;if(!r)return;let{sourceCode:u}=e;if(u.getDeclaredVariables(r.parent).some(e=>e.references.length>0))return;let{type:n,name:a,parent:i}=r;return{node:r,messageId:"Identifier"===n?pQ:p0,data:{name:a},*fix(e){let t=u.getTokenBefore(r);lw(t,{test:pJ,expected:"(",ruleId:"prefer-optional-catch-binding"});let n=u.getTokenAfter(r);lw(n,{test:pY,expected:")",ruleId:"prefer-optional-catch-binding"}),yield e.remove(t),yield e.remove(r),yield e.remove(n);let[,a]=n.range,[o]=i.body.range,s=u.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."},fixable:"code",messages:{[pQ]:"Remove unused catch binding `{{name}}`.",[p0]:"Remove unused catch binding."}}});const{isParenthesized:p3,getStaticValue:p2}=tr,{checkVueTemplate:p4}=op,{isRegexLiteral:p5,isNewExpression:p8,isMethodCall:p6}=tI,{isBooleanNode:p9,shouldAddParenthesesToMemberExpressionObject:p7}=um,me="regexp-exec",mt="string-match",mr="suggestion",mu=[{type:me,test:e=>p6(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:mt,test:e=>p6(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:u},n){yield e.replaceText(r,"test");let a=n.getText(t);p3(u,n)||"SequenceExpression"!==t.type||(a=`(${a})`),yield e.replaceText(u,a);let i=n.getText(u);!p3(t,n)&&p7(u,n)&&(i=`(${i})`),yield e.replaceText(t,i)}}],mn=e=>p5(e)||p8(e,{name:"RegExp"}),ma=(e,t)=>{if(p5(e))return!e.regex.flags.includes("g");let r=p2(e,t);if(!r)return!1;let{value:u}=r;return"[object RegExp]"===Object.prototype.toString.call(u)&&!u.global};var mi=Y({create:p4(e=>({*CallExpression(t){if(p9(t))for(let{type:r,test:u,getNodes:n,fix:a}of mu){if(!u(t))continue;let i=n(t),{methodNode:o,regexpNode:s}=i;if("Literal"===s.type&&!s.regex)continue;let d={node:r===me?o:t,messageId:r},{sourceCode:c}=e,l=e=>a(e,i,c);mn(s)||ma(s,c.getScope(s))?d.fix=l:d.suggest=[{messageId:mr,fix:l}],yield d}}})),meta:{type:"suggestion",docs:{description:"Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`."},fixable:"code",hasSuggestions:!0,messages:{[me]:"Prefer `.test(…)` over `.exec(…)`.",[mt]:"Prefer `RegExp#test(…)` over `String#match(…)`.",[mr]:"Switch to `RegExp#test(…)`."}}});const{findVariable:mo}=tr,{getVariableIdentifiers:ms}=um,{isCallOrNewExpression:md,isMethodCall:mc}=tI,ml="error",mf="suggestion",mp=["concat","copyWithin","fill","filter","flat","flatMap","map","reverse","slice","sort","splice","toReversed","toSorted","toSpliced","with"],mm=e=>{let{type:t,optional:r,callee:u,arguments:n}=e.parent.parent??{};return"CallExpression"===t&&!r&&"MemberExpression"===u.type&&!u.computed&&!u.optional&&u.object===e&&"Identifier"===u.property.type&&"includes"===u.property.name&&1===n.length&&"SpreadElement"!==n[0].type},mg=new Set(["ForOfStatement","ForStatement","ForInStatement","WhileStatement","DoWhileStatement","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]),my=(e,t)=>{let r=t.parent.parent.parent,{parent:u}=e.parent;for(;u&&u!==r;){if(mg.has(u.type))return!0;u=u.parent}return!1};var mh=Y({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||md(r.init,{name:"Array",optional:!1})||mc(r.init,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||mc(r.init,{methods:mp,optionalCall:!1,optionalMember:!1}))))return;let u=mo(e.sourceCode.getScope(t),t);if(!u)return;let n=ms(u).filter(e=>e!==t);if(0===n.length||n.some(e=>!mm(e))||1===n.length&&n.every(e=>!my(e,t)))return;let a={node:t,messageId:ml,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,")"),n))yield e.replaceText(r.parent.property,"has")};return t.typeAnnotation?a.suggest=[{messageId:mf,fix:i}]:a.fix=i,a}}),meta:{type:"suggestion",docs:{description:"Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence."},fixable:"code",hasSuggestions:!0,messages:{[ml]:"`{{name}}` should be a `Set`, and use `{{name}}.has()` to check existence or non-existence.",[mf]:"Switch `{{name}}` to `Set`."}}});const{hasSideEffect:mb}=tr,mv=function(e,t){let{line:r,column:u}=t.getLocFromIndex(e.range[0]);return t.getLines()[r-1].slice(0,u).match(/\s*$/)[0]},mx="prefer-switch",mE=(e,t)=>e===t||rH(e,t),mA=new Set(["WhileStatement","DoWhileStatement","ForStatement","ForOfStatement","ForInStatement","SwitchStatement"]),mD=e=>{for(;e.parent;e=e.parent)if(mA.has(e.type))return e},mC=(e,t)=>e.range[0]>=t.range[0]&&e.range[1]<=t.range[1];var mS=Y({create:e=>{let t={minimumCases:3,emptyDefaultCase:"no-default-comment",insertBreakInDefaultCase:!1,...e.options[0]},{sourceCode:r}=e,u=new Set,n=[],a=new Set;return{IfStatement(e){u.add(e)},BreakStatement(e){e.label||n.push(e)},*"Program:exit"(){for(let e of u){if(a.has(e))continue;let{discriminant:u,ifStatements:i}=function(e){let t;let r=[];for(;e&&"IfStatement"===e.type;e=e.alternate){let{test:u}=e,n=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}(u);if(0===n.length)break;if(!t){let[{left:e,right:r}]=n;t=[e,r]}let a=function(e,t){for(let{left:r,right:u}of e)if(0===(t=t.filter(e=>mE(e,r)||mE(e,u))).length)break;return t}(n,t);if(0===a.length)break;t=a,r.push({statement:e,compareExpressions:n})}return{ifStatements:r,discriminant:t&&t[0]}}(e);if(!u||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:mx};mb(u,r)||i.some(({statement:e})=>(function(e,t){for(let r of e){if(!mC(r,t))continue;let e=mD(r);if(!e||mC(t,e))return!0}return!1})(n,e))||(o.fix=function({discriminant:e,ifStatements:t},r,u){let n=r.getText(e);return function*(a){let i=t[0].statement,o=mv(i,r);yield a.insertTextBefore(i,`switch (${n}) {`);let s=t.at(-1).statement;if(s.alternate){let{alternate:e}=s;yield a.insertTextBefore(e,`
5
5
  ${o}default: `)}else switch(u.emptyDefaultCase){case"no-default-comment":yield a.insertTextAfter(i,`
6
6
  ${o}// No default`);break;case"do-nothing-comment":yield a.insertTextAfter(i,`
7
7
  ${o}default:
8
8
  ${o}// Do nothing`)}for(let{statement:u,compareExpressions:n}of(yield a.insertTextAfter(i,`
9
- ${o}}`),t)){let{consequent:t,alternate:i,range:s}=u,d=[s[0],t.range[0]];if(i){let[,e]=t.range,[r]=i.range;yield a.replaceTextRange([e,r],"")}for(let{left:u,right:i}of(yield a.replaceTextRange(d,""),n)){let n=gx(u,e)?i:u,s=r.getText(n);yield a.insertTextBefore(t,`
9
+ ${o}}`),t)){let{consequent:t,alternate:i,range:s}=u,d=[s[0],t.range[0]];if(i){let[,e]=t.range,[r]=i.range;yield a.replaceTextRange([e,r],"")}for(let{left:u,right:i}of(yield a.replaceTextRange(d,""),n)){let n=mE(u,e)?i:u,s=r.getText(n);yield a.insertTextBefore(t,`
10
10
  ${o}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 u=r[t];if("FunctionDeclaration"!==u.type&&"EmptyStatement"!==u.type){if("BlockStatement"===u.type){let t=e(u);if(t)return t;continue}return u}}}(t);return!r||e(r)}default:return!0}})(t)&&(yield*function*(e,t,r,u){if("BlockStatement"===e.type){let n=r.getLastToken(e);yield t.insertTextBefore(n,`
11
11
  ${u}break;
12
12
  ${u}`)}else yield t.insertTextAfter(e,`
13
13
  ${u}break;`)}(t,a,r,o),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:u,ifStatements:i},r,t)),yield o}}}},meta:{type:"suggestion",docs:{description:"Prefer `switch` over multiple `else-if`."},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:{[gv]:"Use `switch` instead of multiple `else-if`."}}});const{appendArgument:gS}=nr,{isMethodCall:gF}=tI,gw="require-number-to-fixed-digits-argument";var g_=Y({create:e=>({CallExpression(t){if(!gF(t,{method:"toFixed",argumentsLength:0,optionalCall:!1,optionalMember:!1})||"NewExpression"===t.callee.object.type)return;let{sourceCode:r}=e,[u,n]=r.getLastTokens(t,2);return{loc:{start:u.loc.start,end:n.loc.end},messageId:gw,fix:e=>gS(e,t,"0",r)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the digits argument with `Number#toFixed()`."},fixable:"code",messages:{[gw]:"Missing the digits argument."}}});const gk=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((e,t)=>Math.min(e,t.length),1/0):0};function gP(e){return(gP="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 gT(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 u,n,a,i,o=[],s=!0,d=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(u=a.call(r)).done)&&(o.push(u.value),o.length!==t);s=!0);}catch(e){d=!0,n=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw n}}return o}}(e,t)||gI(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 gI(e,t){if(e){if("string"==typeof e)return gB(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)?gB(e,t):void 0}}function gB(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,u=Array(t);r<t;r++)u[r]=e[r];return u}function gR(e,t){return e(t={exports:{}},t.exports),t.exports}var gN=gR(function(e,t){!function e(t){var r,u,n,a,i,o;function s(e){var t,r,u={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],u[t]="object"==typeof r&&null!==r?s(r):r);return u}function d(e,t){this.parent=e,this.key=t}function c(e,t,r,u){this.node=e,this.path=t,this.wrap=r,this.ref=u}function l(){}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 g(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 l).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"},n={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"]},u={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)},l.prototype.path=function(){var e,t,r,u,n;function a(e,t){if(Array.isArray(t))for(r=0,u=t.length;r<u;++r)e.push(t[r]);else e.push(t)}if(!this.__current.path)return null;for(n=[],e=2,t=this.__leavelist.length;e<t;++e)a(n,this.__leavelist[e].path);return a(n,this.__current.path),n},l.prototype.type=function(){return this.current().type||this.__current.wrap},l.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},l.prototype.current=function(){return this.__current.node},l.prototype.__execute=function(e,t){var r,u;return u=void 0,r=this.__current,this.__current=t,this.__state=null,e&&(u=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=r,u},l.prototype.notify=function(e){this.__state=e},l.prototype.skip=function(){this.notify(i)},l.prototype.break=function(){this.notify(a)},l.prototype.remove=function(){this.notify(o)},l.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=n,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},l.prototype.traverse=function(e,t){var r,u,n,o,s,d,l,m,y,h,b,v;for(this.__initialize(e,t),v={},r=this.__worklist,u=this.__leavelist,r.push(new c(e,null,null,null)),u.push(new c(null,null,null,null));r.length;)if((n=r.pop())!==v){if(n.node){if(d=this.__execute(t.enter,n),this.__state===a||d===a)return;if(r.push(v),u.push(n),this.__state===i||d===i)continue;if(s=(o=n.node).type||n.wrap,!(h=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");h=this.__fallback(o)}for(m=h.length;(m-=1)>=0;)if(b=o[l=h[m]]){if(Array.isArray(b)){for(y=b.length;(y-=1)>=0;)if(b[y]&&!g(u,b[y])){if(p(s,h[m]))n=new c(b[y],[l,y],"Property",null);else{if(!f(b[y]))continue;n=new c(b[y],[l,y],null,null)}r.push(n)}}else if(f(b)){if(g(u,b))continue;r.push(new c(b,l,null,null))}}}}else if(n=u.pop(),d=this.__execute(t.leave,n),this.__state===a||d===a)return},l.prototype.replace=function(e,t){var r,u,n,s,l,g,m,y,h,b,v,x,E;function A(e){var t,u,n,a;if(e.ref.remove()){for(u=e.ref.key,a=e.ref.parent,t=r.length;t--;)if((n=r[t]).ref&&n.ref.parent===a){if(n.ref.key<u)break;--n.ref.key}}}for(this.__initialize(e,t),v={},r=this.__worklist,u=this.__leavelist,g=new c(e,null,null,new d(x={root:e},"root")),r.push(g),u.push(g);r.length;)if((g=r.pop())!==v){if(void 0!==(l=this.__execute(t.enter,g))&&l!==a&&l!==i&&l!==o&&(g.ref.replace(l),g.node=l),this.__state!==o&&l!==o||(A(g),g.node=null),this.__state===a||l===a)return x.root;if((n=g.node)&&(r.push(v),u.push(g),this.__state!==i&&l!==i)){if(s=n.type||g.wrap,!(h=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");h=this.__fallback(n)}for(m=h.length;(m-=1)>=0;)if(b=n[E=h[m]]){if(Array.isArray(b)){for(y=b.length;(y-=1)>=0;)if(b[y]){if(p(s,h[m]))g=new c(b[y],[E,y],"Property",new d(b,y));else{if(!f(b[y]))continue;g=new c(b[y],[E,y],null,new d(b,y))}r.push(g)}}else f(b)&&r.push(new c(b,E,null,new d(n,E)))}}}else if(g=u.pop(),void 0!==(l=this.__execute(t.leave,g))&&l!==a&&l!==i&&l!==o&&g.ref.replace(l),this.__state!==o&&l!==o||A(g),this.__state===a||l===a)break;return x.root},t.Syntax=r,t.traverse=m,t.replace=function(e,t){return(new l).replace(e,t)},t.attachComments=function(e,t,r){var n,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)(n=s(t[i])).extendedRange=[0,e.range[0]],d.push(n);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,u,n,a;for(u=e.length,n=0;u;)t(e[a=n+(r=u>>>1)])?u=r:(n=a+1,u-=r+1);return n}(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?u.Break:d[o].extendedRange[0]>e.range[1]?u.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?u.Break:d[o].extendedRange[0]>e.range[1]?u.Skip:void 0}}),e},t.VisitorKeys=n,t.VisitorOption=u,t.Controller=l,t.cloneEnvironment=function(){return e({})},t}(t)}),gL=gR(function(e){e.exports&&(e.exports=function(){function e(t,r,u,n){this.message=t,this.expected=r,this.found=u,this.location=n,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'"'+n(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 u(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(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"+u(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+u(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"+u(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+u(e)})}return"Expected "+function(e){var t,u,n,a=Array(e.length);for(t=0;t<e.length;t++)a[t]=r[(n=e[t]).type](n);if(a.sort(),a.length>0){for(t=1,u=1;t<a.length;t++)a[t-1]!==a[t]&&(a[u]=a[t],u++);a.length=u}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?'"'+n(t)+'"':"end of input")+" found."},{SyntaxError:e,parse:function(t,r){r=void 0!==r?r:{};var u,n,a,i,o,s,d,c,l={},f={start:eb},p=eb,g=eg(" ",!1),m=/^[^ [\],():#!=><~+.]/,y=em([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),h=eg(">",!1),b=eg("~",!1),v=eg("+",!1),x=eg(",",!1),E=eg("!",!1),A=eg("*",!1),D=eg("#",!1),C=eg("[",!1),S=eg("]",!1),F=/^[><!]/,w=em([">","<","!"],!1,!1),_=eg("=",!1),k=function(e){return(e||"")+"="},P=/^[><]/,T=em([">","<"],!1,!1),I=eg(".",!1),B=function(e,t,r){return{type:"attribute",name:e,operator:t,value:r}},R=eg('"',!1),N=/^[^\\"]/,L=em(["\\",'"'],!0,!1),O=eg("\\",!1),j={type:"any"},M=function(e,t){return e+t},$=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=eg("'",!1),U=/^[^\\']/,q=em(["\\","'"],!0,!1),W=/^[0-9]/,V=em([["0","9"]],!1,!1),Z=eg("type(",!1),G=/^[^ )]/,H=em([" ",")"],!0,!1),K=eg(")",!1),X=/^[imsu]/,J=em(["i","m","s","u"],!1,!1),Y=eg("/",!1),Q=/^[^\/]/,ee=em(["/"],!0,!1),et=eg(":not(",!1),er=eg(":matches(",!1),eu=eg(":has(",!1),en=eg(":first-child",!1),ea=eg(":last-child",!1),ei=eg(":nth-child(",!1),eo=eg(":nth-last-child(",!1),es=eg(":",!1),ed=0,ec=[{line:1,column:1}],el=0,ef=[],ep={};if("startRule"in r){if(!(r.startRule in f))throw Error("Can't start parsing from rule \""+r.startRule+'".');p=f[r.startRule]}function eg(e,t){return{type:"literal",text:e,ignoreCase:t}}function em(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function ey(e){var r,u=ec[e];if(u)return u;for(r=e-1;!ec[r];)r--;for(u={line:(u=ec[r]).line,column:u.column};r<e;)10===t.charCodeAt(r)?(u.line++,u.column=1):u.column++,r++;return ec[e]=u,u}function eh(e){ed<el||(ed>el&&(el=ed,ef=[]),ef.push(e))}function eb(){var e,t,r,u,n=30*ed+0,a=ep[n];return a?(ed=a.nextPos,a.result):(e=ed,(t=ev())!==l&&(r=eA())!==l&&ev()!==l?e=t=1===(u=r).length?u[0]:{type:"matches",selectors:u}:(ed=e,e=l),e===l&&(e=ed,(t=ev())!==l&&(t=void 0),e=t),ep[n]={nextPos:ed,result:e},e)}function ev(){var e,r,u=30*ed+1,n=ep[u];if(n)return ed=n.nextPos,n.result;for(e=[],32===t.charCodeAt(ed)?(r=" ",ed++):(r=l,eh(g));r!==l;)e.push(r),32===t.charCodeAt(ed)?(r=" ",ed++):(r=l,eh(g));return ep[u]={nextPos:ed,result:e},e}function ex(){var e,r,u,n=30*ed+2,a=ep[n];if(a)return ed=a.nextPos,a.result;if(r=[],m.test(t.charAt(ed))?(u=t.charAt(ed),ed++):(u=l,eh(y)),u!==l)for(;u!==l;)r.push(u),m.test(t.charAt(ed))?(u=t.charAt(ed),ed++):(u=l,eh(y));else r=l;return r!==l&&(r=r.join("")),e=r,ep[n]={nextPos:ed,result:e},e}function eE(){var e,r,u,n=30*ed+3,a=ep[n];return a?(ed=a.nextPos,a.result):(e=ed,(r=ev())!==l?(62===t.charCodeAt(ed)?(u=">",ed++):(u=l,eh(h)),u!==l&&ev()!==l?e=r="child":(ed=e,e=l)):(ed=e,e=l),e===l&&(e=ed,(r=ev())!==l?(126===t.charCodeAt(ed)?(u="~",ed++):(u=l,eh(b)),u!==l&&ev()!==l?e=r="sibling":(ed=e,e=l)):(ed=e,e=l),e===l&&(e=ed,(r=ev())!==l?(43===t.charCodeAt(ed)?(u="+",ed++):(u=l,eh(v)),u!==l&&ev()!==l?e=r="adjacent":(ed=e,e=l)):(ed=e,e=l),e===l&&(e=ed,32===t.charCodeAt(ed)?(r=" ",ed++):(r=l,eh(g)),r!==l&&(u=ev())!==l?e=r="descendant":(ed=e,e=l)))),ep[n]={nextPos:ed,result:e},e)}function eA(){var e,r,u,n,a,i,o,s,d=30*ed+4,c=ep[d];if(c)return ed=c.nextPos,c.result;if(e=ed,(r=eD())!==l){for(u=[],n=ed,(a=ev())!==l?(44===t.charCodeAt(ed)?(i=",",ed++):(i=l,eh(x)),i!==l&&(o=ev())!==l&&(s=eD())!==l?n=a=[a,i,o,s]:(ed=n,n=l)):(ed=n,n=l);n!==l;)u.push(n),n=ed,(a=ev())!==l?(44===t.charCodeAt(ed)?(i=",",ed++):(i=l,eh(x)),i!==l&&(o=ev())!==l&&(s=eD())!==l?n=a=[a,i,o,s]:(ed=n,n=l)):(ed=n,n=l);u!==l?e=r=[r].concat(u.map(function(e){return e[3]})):(ed=e,e=l)}else ed=e,e=l;return ep[d]={nextPos:ed,result:e},e}function eD(){var e,t,r,u,n,a,i,o=30*ed+5,s=ep[o];if(s)return ed=s.nextPos,s.result;if(e=ed,(t=eC())!==l){for(r=[],u=ed,(n=eE())!==l&&(a=eC())!==l?u=n=[n,a]:(ed=u,u=l);u!==l;)r.push(u),u=ed,(n=eE())!==l&&(a=eC())!==l?u=n=[n,a]:(ed=u,u=l);r!==l?(i=t,e=t=r.reduce(function(e,t){return{type:t[0],left:e,right:t[1]}},i)):(ed=e,e=l)}else ed=e,e=l;return ep[o]={nextPos:ed,result:e},e}function eC(){var e,r,u,n,a,i,o,s=30*ed+6,d=ep[s];if(d)return ed=d.nextPos,d.result;if(e=ed,33===t.charCodeAt(ed)?(r="!",ed++):(r=l,eh(E)),r===l&&(r=null),r!==l){if(u=[],(n=eS())!==l)for(;n!==l;)u.push(n),n=eS();else u=l;u!==l?(a=r,o=1===(i=u).length?i[0]:{type:"compound",selectors:i},a&&(o.subject=!0),e=r=o):(ed=e,e=l)}else ed=e,e=l;return ep[s]={nextPos:ed,result:e},e}function eS(){var e,r,u,n,a,i,o,s,d,c,f,p,g,m,y,h,b,v,x,ec,el,ef,eg,em,ey,eb,eE,eD,eC,eS,ek,eP,eT,eI,eB,eR,eN,eL,eO,ej,eM,e$,ez,eU,eq,eW,eV,eZ,eG,eH,eK,eX,eJ,eY,eQ,e0,e1,e3,e2,e4,e5,e8,e6,e9,e7,te,tt,tr=30*ed+7,tu=ep[tr];return tu?(ed=tu.nextPos,tu.result):((tt=(n=ep[u=30*ed+8])?(ed=n.nextPos,n.result):(42===t.charCodeAt(ed)?(r="*",ed++):(r=l,eh(A)),r!==l&&(r={type:"wildcard",value:r}),e=r,ep[u]={nextPos:ed,result:e},e))===l&&(tt=(d=ep[s=30*ed+9])?(ed=d.nextPos,d.result):(a=ed,35===t.charCodeAt(ed)?(i="#",ed++):(i=l,eh(D)),i===l&&(i=null),i!==l&&(o=ex())!==l?a=i={type:"identifier",value:o}:(ed=a,a=l),ep[s]={nextPos:ed,result:a},a))===l&&(tt=(y=ep[m=30*ed+10])?(ed=y.nextPos,y.result):(c=ed,91===t.charCodeAt(ed)?(f="[",ed++):(f=l,eh(C)),f!==l&&ev()!==l&&(p=(el=ep[ec=30*ed+14])?(ed=el.nextPos,el.result):(h=ed,(b=eF())!==l&&ev()!==l&&(v=(eb=ep[ey=30*ed+12])?(ed=eb.nextPos,eb.result):(ef=ed,33===t.charCodeAt(ed)?(eg="!",ed++):(eg=l,eh(E)),eg===l&&(eg=null),eg!==l?(61===t.charCodeAt(ed)?(em="=",ed++):(em=l,eh(_)),em!==l?ef=eg=k(eg):(ed=ef,ef=l)):(ed=ef,ef=l),ep[ey]={nextPos:ed,result:ef},ef))!==l&&ev()!==l?((x=function(){var e,r,u,n,a,i=30*ed+18,o=ep[i];if(o)return ed=o.nextPos,o.result;if(e=ed,"type("===t.substr(ed,5)?(r="type(",ed+=5):(r=l,eh(Z)),r!==l){if(ev()!==l){if(u=[],G.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(H)),n!==l)for(;n!==l;)u.push(n),G.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(H));else u=l;u!==l&&(n=ev())!==l?(41===t.charCodeAt(ed)?(a=")",ed++):(a=l,eh(K)),a!==l?e=r={type:"type",value:u.join("")}:(ed=e,e=l)):(ed=e,e=l)}else ed=e,e=l}else ed=e,e=l;return ep[i]={nextPos:ed,result:e},e}())===l&&(x=function(){var e,r,u,n,a,i,o=30*ed+20,s=ep[o];if(s)return ed=s.nextPos,s.result;if(e=ed,47===t.charCodeAt(ed)?(r="/",ed++):(r=l,eh(Y)),r!==l){if(u=[],Q.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(ee)),n!==l)for(;n!==l;)u.push(n),Q.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(ee));else u=l;u!==l?(47===t.charCodeAt(ed)?(n="/",ed++):(n=l,eh(Y)),n!==l?((a=function(){var e,r,u=30*ed+19,n=ep[u];if(n)return ed=n.nextPos,n.result;if(e=[],X.test(t.charAt(ed))?(r=t.charAt(ed),ed++):(r=l,eh(J)),r!==l)for(;r!==l;)e.push(r),X.test(t.charAt(ed))?(r=t.charAt(ed),ed++):(r=l,eh(J));else e=l;return ep[u]={nextPos:ed,result:e},e}())===l&&(a=null),a!==l?(i=a,e=r={type:"regexp",value:new RegExp(u.join(""),i?i.join(""):"")}):(ed=e,e=l)):(ed=e,e=l)):(ed=e,e=l)}else ed=e,e=l;return ep[o]={nextPos:ed,result:e},e}()),x!==l?h=b=B(b,v,x):(ed=h,h=l)):(ed=h,h=l),h===l&&(h=ed,(b=eF())!==l&&ev()!==l&&(v=(ek=ep[eS=30*ed+11])?(ed=ek.nextPos,ek.result):(eE=ed,F.test(t.charAt(ed))?(eD=t.charAt(ed),ed++):(eD=l,eh(w)),eD===l&&(eD=null),eD!==l?(61===t.charCodeAt(ed)?(eC="=",ed++):(eC=l,eh(_)),eC!==l?eE=eD=k(eD):(ed=eE,eE=l)):(ed=eE,eE=l),eE===l&&(P.test(t.charAt(ed))?(eE=t.charAt(ed),ed++):(eE=l,eh(T))),ep[eS]={nextPos:ed,result:eE},eE))!==l&&ev()!==l?((x=function(){var e,r,u,n,a,i,o=30*ed+15,s=ep[o];if(s)return ed=s.nextPos,s.result;if(e=ed,34===t.charCodeAt(ed)?(r='"',ed++):(r=l,eh(R)),r!==l){for(u=[],N.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(L)),n===l&&(n=ed,92===t.charCodeAt(ed)?(a="\\",ed++):(a=l,eh(O)),a!==l?(t.length>ed?(i=t.charAt(ed),ed++):(i=l,eh(j)),i!==l?n=a=M(a,i):(ed=n,n=l)):(ed=n,n=l));n!==l;)u.push(n),N.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(L)),n===l&&(n=ed,92===t.charCodeAt(ed)?(a="\\",ed++):(a=l,eh(O)),a!==l?(t.length>ed?(i=t.charAt(ed),ed++):(i=l,eh(j)),i!==l?n=a=M(a,i):(ed=n,n=l)):(ed=n,n=l));u!==l?(34===t.charCodeAt(ed)?(n='"',ed++):(n=l,eh(R)),n!==l?e=r=$(u):(ed=e,e=l)):(ed=e,e=l)}else ed=e,e=l;if(e===l){if(e=ed,39===t.charCodeAt(ed)?(r="'",ed++):(r=l,eh(z)),r!==l){for(u=[],U.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(q)),n===l&&(n=ed,92===t.charCodeAt(ed)?(a="\\",ed++):(a=l,eh(O)),a!==l?(t.length>ed?(i=t.charAt(ed),ed++):(i=l,eh(j)),i!==l?n=a=M(a,i):(ed=n,n=l)):(ed=n,n=l));n!==l;)u.push(n),U.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(q)),n===l&&(n=ed,92===t.charCodeAt(ed)?(a="\\",ed++):(a=l,eh(O)),a!==l?(t.length>ed?(i=t.charAt(ed),ed++):(i=l,eh(j)),i!==l?n=a=M(a,i):(ed=n,n=l)):(ed=n,n=l));u!==l?(39===t.charCodeAt(ed)?(n="'",ed++):(n=l,eh(z)),n!==l?e=r=$(u):(ed=e,e=l)):(ed=e,e=l)}else ed=e,e=l}return ep[o]={nextPos:ed,result:e},e}())===l&&(x=function(){var e,r,u,n,a,i,o=30*ed+16,s=ep[o];if(s)return ed=s.nextPos,s.result;for(e=ed,r=ed,u=[],W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(V));n!==l;)u.push(n),W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(V));if(u!==l?(46===t.charCodeAt(ed)?(n=".",ed++):(n=l,eh(I)),n!==l?r=u=[u,n]:(ed=r,r=l)):(ed=r,r=l),r===l&&(r=null),r!==l){if(u=[],W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(V)),n!==l)for(;n!==l;)u.push(n),W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(V));else u=l;u!==l?(i=u,e=r={type:"literal",value:parseFloat(((a=r)?[].concat.apply([],a).join(""):"")+i.join(""))}):(ed=e,e=l)}else ed=e,e=l;return ep[o]={nextPos:ed,result:e},e}())===l&&(x=(eB=ep[eI=30*ed+17])?(ed=eB.nextPos,eB.result):((eT=ex())!==l&&(eT={type:"literal",value:eT}),eP=eT,ep[eI]={nextPos:ed,result:eP},eP)),x!==l?h=b=B(b,v,x):(ed=h,h=l)):(ed=h,h=l),h===l&&(h=ed,(b=eF())!==l&&(b={type:"attribute",name:b}),h=b)),ep[ec]={nextPos:ed,result:h},h))!==l&&ev()!==l?(93===t.charCodeAt(ed)?(g="]",ed++):(g=l,eh(S)),g!==l?c=f=p:(ed=c,c=l)):(ed=c,c=l),ep[m]={nextPos:ed,result:c},c))===l&&(tt=function(){var e,r,u,n,a,i,o,s=30*ed+21,d=ep[s];if(d)return ed=d.nextPos,d.result;if(e=ed,46===t.charCodeAt(ed)?(r=".",ed++):(r=l,eh(I)),r!==l){if((u=ex())!==l){for(n=[],a=ed,46===t.charCodeAt(ed)?(i=".",ed++):(i=l,eh(I)),i!==l&&(o=ex())!==l?a=i=[i,o]:(ed=a,a=l);a!==l;)n.push(a),a=ed,46===t.charCodeAt(ed)?(i=".",ed++):(i=l,eh(I)),i!==l&&(o=ex())!==l?a=i=[i,o]:(ed=a,a=l);n!==l?e=r={type:"field",name:n.reduce(function(e,t){return e+t[0]+t[1]},u)}:(ed=e,e=l)}else ed=e,e=l}else ed=e,e=l;return ep[s]={nextPos:ed,result:e},e}())===l&&(tt=(eM=ep[ej=30*ed+22])?(ed=eM.nextPos,eM.result):(eR=ed,":not("===t.substr(ed,5)?(eN=":not(",ed+=5):(eN=l,eh(et)),eN!==l&&ev()!==l&&(eL=eA())!==l&&ev()!==l?(41===t.charCodeAt(ed)?(eO=")",ed++):(eO=l,eh(K)),eO!==l?eR=eN={type:"not",selectors:eL}:(ed=eR,eR=l)):(ed=eR,eR=l),ep[ej]={nextPos:ed,result:eR},eR))===l&&(tt=(eV=ep[eW=30*ed+23])?(ed=eV.nextPos,eV.result):(e$=ed,":matches("===t.substr(ed,9)?(ez=":matches(",ed+=9):(ez=l,eh(er)),ez!==l&&ev()!==l&&(eU=eA())!==l&&ev()!==l?(41===t.charCodeAt(ed)?(eq=")",ed++):(eq=l,eh(K)),eq!==l?e$=ez={type:"matches",selectors:eU}:(ed=e$,e$=l)):(ed=e$,e$=l),ep[eW]={nextPos:ed,result:e$},e$))===l&&(tt=(eJ=ep[eX=30*ed+24])?(ed=eJ.nextPos,eJ.result):(eZ=ed,":has("===t.substr(ed,5)?(eG=":has(",ed+=5):(eG=l,eh(eu)),eG!==l&&ev()!==l&&(eH=eA())!==l&&ev()!==l?(41===t.charCodeAt(ed)?(eK=")",ed++):(eK=l,eh(K)),eK!==l?eZ=eG={type:"has",selectors:eH}:(ed=eZ,eZ=l)):(ed=eZ,eZ=l),ep[eX]={nextPos:ed,result:eZ},eZ))===l&&(tt=(e1=ep[e0=30*ed+25])?(ed=e1.nextPos,e1.result):(":first-child"===t.substr(ed,12)?(eQ=":first-child",ed+=12):(eQ=l,eh(en)),eQ!==l&&(eQ=ew(1)),eY=eQ,ep[e0]={nextPos:ed,result:eY},eY))===l&&(tt=(e5=ep[e4=30*ed+26])?(ed=e5.nextPos,e5.result):(":last-child"===t.substr(ed,11)?(e2=":last-child",ed+=11):(e2=l,eh(ea)),e2!==l&&(e2=e_(1)),e3=e2,ep[e4]={nextPos:ed,result:e3},e3))===l&&(tt=function(){var e,r,u,n,a,i=30*ed+27,o=ep[i];if(o)return ed=o.nextPos,o.result;if(e=ed,":nth-child("===t.substr(ed,11)?(r=":nth-child(",ed+=11):(r=l,eh(ei)),r!==l){if(ev()!==l){if(u=[],W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(V)),n!==l)for(;n!==l;)u.push(n),W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(V));else u=l;u!==l&&(n=ev())!==l?(41===t.charCodeAt(ed)?(a=")",ed++):(a=l,eh(K)),a!==l?e=r=ew(parseInt(u.join(""),10)):(ed=e,e=l)):(ed=e,e=l)}else ed=e,e=l}else ed=e,e=l;return ep[i]={nextPos:ed,result:e},e}())===l&&(tt=function(){var e,r,u,n,a,i=30*ed+28,o=ep[i];if(o)return ed=o.nextPos,o.result;if(e=ed,":nth-last-child("===t.substr(ed,16)?(r=":nth-last-child(",ed+=16):(r=l,eh(eo)),r!==l){if(ev()!==l){if(u=[],W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(V)),n!==l)for(;n!==l;)u.push(n),W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(V));else u=l;u!==l&&(n=ev())!==l?(41===t.charCodeAt(ed)?(a=")",ed++):(a=l,eh(K)),a!==l?e=r=e_(parseInt(u.join(""),10)):(ed=e,e=l)):(ed=e,e=l)}else ed=e,e=l}else ed=e,e=l;return ep[i]={nextPos:ed,result:e},e}())===l&&(tt=(te=ep[e7=30*ed+29])?(ed=te.nextPos,te.result):(e8=ed,58===t.charCodeAt(ed)?(e6=":",ed++):(e6=l,eh(es)),e6!==l&&(e9=ex())!==l?e8=e6={type:"class",name:e9}:(ed=e8,e8=l),ep[e7]={nextPos:ed,result:e8},e8)),ep[tr]={nextPos:ed,result:tt},tt)}function eF(){var e,r,u,n,a,i,o,s=30*ed+13,d=ep[s];if(d)return ed=d.nextPos,d.result;if(e=ed,(r=ex())!==l){for(u=[],n=ed,46===t.charCodeAt(ed)?(a=".",ed++):(a=l,eh(I)),a!==l&&(i=ex())!==l?n=a=[a,i]:(ed=n,n=l);n!==l;)u.push(n),n=ed,46===t.charCodeAt(ed)?(a=".",ed++):(a=l,eh(I)),a!==l&&(i=ex())!==l?n=a=[a,i]:(ed=n,n=l);u!==l?(o=r,e=r=[].concat.apply([o],u).join("")):(ed=e,e=l)}else ed=e,e=l;return ep[s]={nextPos:ed,result:e},e}function ew(e){return{type:"nth-child",index:{type:"literal",value:e}}}function e_(e){return{type:"nth-last-child",index:{type:"literal",value:e}}}if((o=p())!==l&&ed===t.length)return o;throw o!==l&&ed<t.length&&eh({type:"end"}),s=ef,d=el<t.length?t.charAt(el):null,u=el,n=el<t.length?el+1:el,a=ey(u),i=ey(n),c={start:{offset:u,line:a.line,column:a.column},end:{offset:n,line:i.line,column:i.column}},new e(e.buildMessage(s,d),s,d,c)}}}())});function gO(e,t){for(var r=0;r<t.length&&null!=e;++r)e=e[t[r]];return e}var gj="function"==typeof WeakMap?new WeakMap:null;function gM(e){if(null==e)return function(){return!0};if(null!=gj){var t=gj.get(e);return null!=t||(t=g$(e),gj.set(e,t)),t}return g$(e)}function g$(e){switch(e.type){case"wildcard":return function(){return!0};case"identifier":var t=e.value.toLowerCase();return function(e,r,u){return t===e[u&&u.nodeTypeKey||"type"].toLowerCase()};case"field":var r=e.name.split(".");return function(e,t){return function e(t,r,u,n){for(var a=r,i=n;i<u.length;++i){if(null==a)return!1;var o=a[u[i]];if(Array.isArray(o)){for(var s=0;s<o.length;++s)if(e(t,o[s],u,i+1))return!0;return!1}a=o}return t===a}(e,t[r.length-1],r,0)};case"matches":var u=e.selectors.map(gM);return function(e,t,r){for(var n=0;n<u.length;++n)if(u[n](e,t,r))return!0;return!1};case"compound":var n=e.selectors.map(gM);return function(e,t,r){for(var u=0;u<n.length;++u)if(!n[u](e,t,r))return!1;return!0};case"not":var a=e.selectors.map(gM);return function(e,t,r){for(var u=0;u<a.length;++u)if(a[u](e,t,r))return!1;return!0};case"has":var i=e.selectors.map(gM);return function(e,t,r){var u=!1,n=[];return gN.traverse(e,{enter:function(e,t){null!=t&&n.unshift(t);for(var a=0;a<i.length;++a)if(i[a](e,n,r))return u=!0,void this.break()},leave:function(){n.shift()},keys:r&&r.visitorKeys,fallback:r&&r.fallback||"iteration"}),u};case"child":var o=gM(e.left),s=gM(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=gM(e.left),c=gM(e.right);return function(e,t,r){if(c(e,t,r)){for(var u=0,n=t.length;u<n;++u)if(d(t[u],t.slice(u+1),r))return!0}return!1};case"attribute":var l=e.name.split(".");switch(e.operator){case void 0:return function(e){return null!=gO(e,l)};case"=":switch(e.value.type){case"regexp":return function(t){var r=gO(t,l);return"string"==typeof r&&e.value.value.test(r)};case"literal":var f="".concat(e.value.value);return function(e){return f==="".concat(gO(e,l))};case"type":return function(t){return e.value.value===gP(gO(t,l))}}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(gO(t,l))};case"literal":var p="".concat(e.value.value);return function(e){return p!=="".concat(gO(e,l))};case"type":return function(t){return e.value.value!==gP(gO(t,l))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"<=":return function(t){return gO(t,l)<=e.value.value};case"<":return function(t){return gO(t,l)<e.value.value};case">":return function(t){return gO(t,l)>e.value.value};case">=":return function(t){return gO(t,l)>=e.value.value}}throw Error("Unknown operator: ".concat(e.operator));case"sibling":var g=gM(e.left),m=gM(e.right);return function(t,r,u){return m(t,r,u)&&gq(t,g,r,"LEFT_SIDE",u)||e.left.subject&&g(t,r,u)&&gq(t,m,r,"RIGHT_SIDE",u)};case"adjacent":var y=gM(e.left),h=gM(e.right);return function(t,r,u){return h(t,r,u)&&gW(t,y,r,"LEFT_SIDE",u)||e.right.subject&&y(t,r,u)&&gW(t,h,r,"RIGHT_SIDE",u)};case"nth-child":var b=e.index.value,v=gM(e.right);return function(e,t,r){return v(e,t,r)&&gV(e,t,b,r)};case"nth-last-child":var x=-e.index.value,E=gM(e.right);return function(e,t,r){return E(e,t,r)&&gV(e,t,x,r)};case"class":return function(t,r,u){if(u&&u.matchClass)return u.matchClass(e.name,t,r);if(u&&u.nodeTypeKey)return!1;switch(e.name.toLowerCase()){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 gz(e,t){var r=t&&t.nodeTypeKey||"type",u=e[r];return t&&t.visitorKeys&&t.visitorKeys[u]?t.visitorKeys[u]:gN.VisitorKeys[u]?gN.VisitorKeys[u]:t&&"function"==typeof t.fallback?t.fallback(e):Object.keys(e).filter(function(e){return e!==r})}function gU(e,t){var r=t&&t.nodeTypeKey||"type";return null!==e&&"object"===gP(e)&&"string"==typeof e[r]}function gq(e,t,r,u,n){var a=gT(r,1)[0];if(!a)return!1;for(var i=gz(a,n),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 c=void 0,l=void 0;"LEFT_SIDE"===u?(c=0,l=d):(c=d+1,l=s.length);for(var f=c;f<l;++f)if(gU(s[f],n)&&t(s[f],r,n))return!0}}return!1}function gW(e,t,r,u,n){var a=gT(r,1)[0];if(!a)return!1;for(var i=gz(a,n),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"===u&&d>0&&gU(s[d-1],n)&&t(s[d-1],r,n)||"RIGHT_SIDE"===u&&d<s.length-1&&gU(s[d+1],n)&&t(s[d+1],r,n))return!0}}return!1}function gV(e,t,r,u){if(0===r)return!1;var n=gT(t,1)[0];if(!n)return!1;for(var a=gz(n,u),i=0;i<a.length;++i){var o=n[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 gZ(e,t,r,u){if(t){var n=[],a=gM(t),i=(function e(t,r){if(null==t||"object"!=gP(t))return[];null==r&&(r=t);for(var u=t.subject?[r]:[],n=Object.keys(t),a=0;a<n.length;++a){var i,o=n[a],s=t[o];u.push.apply(u,function(e){if(Array.isArray(e))return gB(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)||gI(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 u})(t).map(gM);gN.traverse(e,{enter:function(e,t){if(null!=t&&n.unshift(t),a(e,n,u)){if(i.length)for(var o=0,s=i.length;o<s;++o){i[o](e,n,u)&&r(e,t,n);for(var d=0,c=n.length;d<c;++d){var l=n.slice(d+1);i[o](n[d],l,u)&&r(n[d],t,l)}}else r(e,t,n)}},leave:function(){n.shift()},keys:u&&u.visitorKeys,fallback:u&&u.fallback||"iteration"})}}function gG(e,t,r){var u=[];return gZ(e,t,function(e){u.push(e)},r),u}function gH(e){return gL.parse(e)}function gK(e,t,r){return gG(e,gH(t),r)}gK.parse=gH,gK.match=gG,gK.traverse=gZ,gK.matches=function(e,t,r,u){return!t||!!e&&(r||(r=[]),gM(t)(e,r,u))},gK.query=gK;var gX=Q(Object.freeze({__proto__:null,default:gK}));const gJ=e=>{let t=gk(e);if(0===t)return e;let r=RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")},gY=(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 u=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(u,r.indent.repeat(t))},{replaceTemplateElement:gQ}=nr,{isMethodCall:g0,isCallExpression:g1}=tI,g3="template-indent",g2=e=>g0(e.parent,{method:"toMatchInlineSnapshot",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&e.parent.arguments[0]===e&&g1(e.parent.callee.object,{name:"expect",argumentsLength:1,optionalCall:!1,optionalMember:!1}),g4=new Map,g5=e=>(g4.has(e)||g4.set(e,gX.parse(e)),g4.get(e));var g8=Y({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 u=e=>{let u;let n="__PLACEHOLDER__"+Math.random(),a=e.quasis.map(e=>t.getText(e).slice(1,e.tail?-1:-2)).join(n),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]:"";u="string"==typeof r.indent?r.indent:"number"==typeof r.indent?" ".repeat(r.indent):d.startsWith(" ")?" ":" ";let c=gJ(a).replaceAll(RegExp(`^${o}|${o}[ ]*$`,"g"),""),l=o+gY(c,1,{indent:d+u})+o+d;if(l!==a)return{node:e,messageId:g3,fix:t=>l.split(n).map((r,u)=>gQ(t,e.quasis[u],r))}},n=e=>{if(r.comments.length>0){let u=t.getTokenBefore(e,{includeComments:!0});if(u?.type==="Block"&&r.comments.includes(u.value.trim().toLowerCase()))return!0}if(g2(e)||r.tags.length>0&&"TaggedTemplateExpression"===e.parent.type&&e.parent.quasi===e&&"Identifier"===e.parent.tag.type&&r.tags.includes(e.parent.tag.name)||r.functions.length>0&&"CallExpression"===e.parent.type&&e.parent.arguments.includes(e)&&"Identifier"===e.parent.callee.type&&r.functions.includes(e.parent.callee.name))return!0;if(r.selectors.length>0){let u=t.getAncestors(e).reverse();if(r.selectors.some(t=>gX.matches(e,g5(t),u)))return!0}return!1};return{TemplateLiteral(e){if(n(e))return u(e)}}},meta:{type:"suggestion",docs:{description:"Fix whitespace-insensitive template indentation."},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:{[g3]:"Templates should be properly indented."}}});const g6=RegExp("^\\s*(?<directive>eslint-disable(?:-(?:next-)?line)?)"),g9=RegExp("^eslint-disable(?:-next-line|-line)?(?<ruleId>$|(?:\\s+(?:@(?:[\\w-]+\\/){1,2})?[\\w-]+)?)"),g7=Symbol("rule-id-no-match");var me={rules:{"array/no-unneeded-flat-map":A,"browser/prefer-location-assign":C,"jsx/no-template-literal":F,"jsx/no-unneeded-nested":w,"string/no-locale-case":k,"string/no-simple-template-literal":T,"type/no-instanceof-wrapper":B,"unicode/no-bidi":$,"unicode/no-invisible":U,"ban-eslint-disable":d.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 u of r.comments){let r=function(e){let t=g6.exec(e);return t?.groups?.directive}(u.value);if(r&&!("allow-with-description"===t&&u.value.includes("--"))){let n="allow-with-description"===t?"require-description":"do-not-use";e.report({node:u,data:{directive:r},messageId:n})}let n=function(e){let t=g9.exec(e.trim());return t?t.groups?.ruleId:g7}(u.value);n===g7||n||e.report({node:u,messageId:"require-specific-rule"})}}}}),"no-redundant-variable":q,"no-single-return":V,"prefer-early-return":G,"prefer-fetch":H,"prefer-timer-id":J,"import-dedupe":d.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(u=>{let n=u.local.name;r.has(n)&&e.report({node:t,loc:{start:u.loc.end,end:u.loc.start},messageId:"import-dedupe",fix(t){let r=u.range[0],n=u.range[1];return","===e.getSourceCode().text[n]&&(n+=1),t.removeRange([r,n])}}),r.add(n)})}})}),"unicorn/better-regex":mt(cy,"unicorn/better-regex"),"unicorn/no-nested-ternary":mt(ti,"unicorn/no-nested-ternary"),"unicorn/prefer-event-target":mt(uF,"unicorn/prefer-event-target"),"unicorn/prefer-keyboard-event-key":mt(uj,"unicorn/prefer-keyboard-event-key"),"unicorn/prefer-text-content":mt(uU,"unicorn/prefer-text-content"),"unicorn/require-array-join-separator":mt(no,"unicorn/require-array-join-separator"),"unicorn/no-thenable":mt(nh,"unicorn/no-thenable"),"unicorn/no-invalid-remove-event-listener":mt(nE,"unicorn/no-invalid-remove-event-listener"),"unicorn/consistent-function-scoping":mt(nR,"unicorn/consistent-function-scoping"),"unicorn/no-new-buffer":mt(n6,"unicorn/no-new-buffer"),"unicorn/no-console-spaces":mt(au,"unicorn/no-console-spaces"),"unicorn/no-empty-file":mt(ac,"unicorn/no-empty-file"),"unicorn/no-useless-fallback-in-spread":mt(am,"unicorn/no-useless-fallback-in-spread"),"unicorn/no-useless-length-check":mt(aA,"unicorn/no-useless-length-check"),"unicorn/no-useless-promise-resolve-reject":mt(aF,"unicorn/no-useless-promise-resolve-reject"),"unicorn/no-zero-fractions":mt(aB,"unicorn/no-zero-fractions"),"unicorn/prefer-export-from":mt(aG,"unicorn/prefer-export-from"),"unicorn/prefer-native-coercion-functions":mt(a2,"unicorn/prefer-native-coercion-functions"),"unicorn/no-document-cookie":mt(it,"unicorn/no-document-cookie"),"unicorn/prefer-add-event-listener":mt(ih,"unicorn/prefer-add-event-listener"),"unicorn/prefer-array-index-of":mt(iP,"unicorn/prefer-array-index-of"),"unicorn/prefer-blob-reading-methods":mt(iB,"unicorn/prefer-blob-reading-methods"),"unicorn/prefer-date-now":mt(iq,"unicorn/prefer-date-now"),"unicorn/prefer-dom-node-dataset":mt(iQ,"unicorn/prefer-dom-node-dataset"),"unicorn/prefer-modern-math-apis":mt(oi,"unicorn/prefer-modern-math-apis"),"unicorn/number-literal-case":mt(oE,"unicorn/number-literal-case"),"unicorn/prefer-number-properties":mt(ok,"unicorn/prefer-number-properties"),"unicorn/prefer-reflect-apply":mt(oj,"unicorn/prefer-reflect-apply"),"unicorn/prefer-set-size":mt(oV,"unicorn/prefer-set-size"),"unicorn/prefer-string-replace-all":mt(o3,"unicorn/prefer-string-replace-all"),"unicorn/prefer-string-slice":mt(st,"unicorn/prefer-string-slice"),"unicorn/prefer-string-trim-start-end":mt(sn,"unicorn/prefer-string-trim-start-end"),"unicorn/no-unreadable-iife":mt(sd,"unicorn/no-unreadable-iife"),"unicorn/throw-new-error":mt(sp,"unicorn/throw-new-error"),"unicorn/escape-case":mt(cC,"unicorn/escape-case"),"unicorn/no-hex-escape":mt(cP,"unicorn/no-hex-escape"),"unicorn/prefer-prototype-methods":mt(cN,"unicorn/prefer-prototype-methods"),"unicorn/error-message":mt(cU,"unicorn/error-message"),"unicorn/no-instanceof-array":mt(cK,"unicorn/no-instanceof-array"),"unicorn/prefer-type-error":mt(c5,"unicorn/prefer-type-error"),"unicorn/consistent-destructuring":mt(lt,"unicorn/consistent-destructuring"),"unicorn/new-for-builtins":mt(ls,"unicorn/new-for-builtins"),"unicorn/no-array-push-push":mt(lx,"unicorn/no-array-push-push"),"unicorn/no-process-exit":mt(lF,"unicorn/no-process-exit"),"unicorn/no-static-only-class":mt(lL,"unicorn/no-static-only-class"),"unicorn/no-unreadable-array-destructuring":mt(lz,"unicorn/no-unreadable-array-destructuring"),"unicorn/no-useless-spread":mt(l5,"unicorn/no-useless-spread"),"unicorn/no-useless-switch-case":mt(fr,"unicorn/no-useless-switch-case"),"unicorn/no-useless-undefined":mt(fp,"unicorn/no-useless-undefined"),"unicorn/numeric-separators-style":mt(fv,"unicorn/numeric-separators-style"),"unicorn/prefer-array-find":mt(fJ,"unicorn/prefer-array-find"),"unicorn/prefer-array-flat-map":mt(f2,"unicorn/prefer-array-flat-map"),"unicorn/prefer-array-flat":mt(pf,"unicorn/prefer-array-flat"),"unicorn/prefer-array-some":mt(pF,"unicorn/prefer-array-some"),"unicorn/prefer-code-point":mt(pk,"unicorn/prefer-code-point"),"unicorn/prefer-default-parameters":mt(pz,"unicorn/prefer-default-parameters"),"unicorn/prefer-logical-operator-over-ternary":mt(pK,"unicorn/prefer-logical-operator-over-ternary"),"unicorn/prefer-optional-catch-binding":mt(p0,"unicorn/prefer-optional-catch-binding"),"unicorn/prefer-prototype-methods":mt(cN,"unicorn/prefer-prototype-methods"),"unicorn/prefer-regexp-test":mt(ga,"unicorn/prefer-regexp-test"),"unicorn/prefer-set-has":mt(gy,"unicorn/prefer-set-has"),"unicorn/prefer-switch":mt(gC,"unicorn/prefer-switch"),"unicorn/require-number-to-fixed-digits-argument":mt(g_,"unicorn/require-number-to-fixed-digits-argument"),"unicorn/template-indent":mt(g8,"unicorn/template-indent")}};function mt(e,t){var r;return{meta:{schema:[],...e.meta,docs:{...e.meta.docs,url:er(t)}},create:(r=e.create,e=>{let t={},u=(e,r)=>{t[e]??(t[e]=[]),t[e].push(r)};for(let[t,n]of Object.entries(r(new Proxy(e,{get:(e,t,r)=>"on"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])u(r,t)}:"onExit"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])u(`${r}:exit`,t)}:Reflect.get(e,t,r)}))??{}))u(t,n);return Object.fromEntries(Object.entries(t).map(([t,r])=>[t,(...t)=>{for(let u of r)!function(e,t){if(e)for(let r of(mr(e)||(e=[e]),e)){if(r.fix&&(r.fix=ma(r.fix)),mr(r.suggest))for(let e of r.suggest)e.fix&&(e.fix=ma(e.fix)),e.data={...r.data,...e.data};t.report(r)}}(u(...t),e)}]))})}}const mr=e=>"function"==typeof e?.[Symbol.iterator];class mu extends Error{}const mn={abort(){throw new mu("Fix aborted.")}};function ma(e){return t=>{let r=e(t,mn);if(mr(r))try{return[...r]}catch(e){if(e instanceof mu)return;throw e}return r}}module.exports=me;
15
+ ${r}}`))}(t,a,o))}}}({discriminant:u,ifStatements:i},r,t)),yield o}}}},meta:{type:"suggestion",docs:{description:"Prefer `switch` over multiple `else-if`."},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:{[mx]:"Use `switch` instead of multiple `else-if`."}}});const{appendArgument:mF}=ne,{isMethodCall:mw}=tI,m_="require-number-to-fixed-digits-argument";var mk=Y({create:e=>({CallExpression(t){if(!mw(t,{method:"toFixed",argumentsLength:0,optionalCall:!1,optionalMember:!1})||"NewExpression"===t.callee.object.type)return;let{sourceCode:r}=e,[u,n]=r.getLastTokens(t,2);return{loc:{start:u.loc.start,end:n.loc.end},messageId:m_,fix:e=>mF(e,t,"0",r)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the digits argument with `Number#toFixed()`."},fixable:"code",messages:{[m_]:"Missing the digits argument."}}});const mP=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((e,t)=>Math.min(e,t.length),1/0):0};function mT(e){return(mT="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 mI(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 u,n,a,i,o=[],s=!0,d=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(u=a.call(r)).done)&&(o.push(u.value),o.length!==t);s=!0);}catch(e){d=!0,n=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw n}}return o}}(e,t)||mB(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 mB(e,t){if(e){if("string"==typeof e)return mR(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)?mR(e,t):void 0}}function mR(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,u=Array(t);r<t;r++)u[r]=e[r];return u}function mN(e,t){return e(t={exports:{}},t.exports),t.exports}var mL=mN(function(e,t){!function e(t){var r,u,n,a,i,o;function s(e){var t,r,u={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],u[t]="object"==typeof r&&null!==r?s(r):r);return u}function d(e,t){this.parent=e,this.key=t}function c(e,t,r,u){this.node=e,this.path=t,this.wrap=r,this.ref=u}function l(){}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 m(e,t){for(var r=e.length-1;r>=0;--r)if(e[r].node===t)return!0;return!1}function g(e,t){return(new l).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"},n={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"]},u={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)},l.prototype.path=function(){var e,t,r,u,n;function a(e,t){if(Array.isArray(t))for(r=0,u=t.length;r<u;++r)e.push(t[r]);else e.push(t)}if(!this.__current.path)return null;for(n=[],e=2,t=this.__leavelist.length;e<t;++e)a(n,this.__leavelist[e].path);return a(n,this.__current.path),n},l.prototype.type=function(){return this.current().type||this.__current.wrap},l.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},l.prototype.current=function(){return this.__current.node},l.prototype.__execute=function(e,t){var r,u;return u=void 0,r=this.__current,this.__current=t,this.__state=null,e&&(u=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=r,u},l.prototype.notify=function(e){this.__state=e},l.prototype.skip=function(){this.notify(i)},l.prototype.break=function(){this.notify(a)},l.prototype.remove=function(){this.notify(o)},l.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=n,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},l.prototype.traverse=function(e,t){var r,u,n,o,s,d,l,g,y,h,b,v;for(this.__initialize(e,t),v={},r=this.__worklist,u=this.__leavelist,r.push(new c(e,null,null,null)),u.push(new c(null,null,null,null));r.length;)if((n=r.pop())!==v){if(n.node){if(d=this.__execute(t.enter,n),this.__state===a||d===a)return;if(r.push(v),u.push(n),this.__state===i||d===i)continue;if(s=(o=n.node).type||n.wrap,!(h=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");h=this.__fallback(o)}for(g=h.length;(g-=1)>=0;)if(b=o[l=h[g]]){if(Array.isArray(b)){for(y=b.length;(y-=1)>=0;)if(b[y]&&!m(u,b[y])){if(p(s,h[g]))n=new c(b[y],[l,y],"Property",null);else{if(!f(b[y]))continue;n=new c(b[y],[l,y],null,null)}r.push(n)}}else if(f(b)){if(m(u,b))continue;r.push(new c(b,l,null,null))}}}}else if(n=u.pop(),d=this.__execute(t.leave,n),this.__state===a||d===a)return},l.prototype.replace=function(e,t){var r,u,n,s,l,m,g,y,h,b,v,x,E;function A(e){var t,u,n,a;if(e.ref.remove()){for(u=e.ref.key,a=e.ref.parent,t=r.length;t--;)if((n=r[t]).ref&&n.ref.parent===a){if(n.ref.key<u)break;--n.ref.key}}}for(this.__initialize(e,t),v={},r=this.__worklist,u=this.__leavelist,m=new c(e,null,null,new d(x={root:e},"root")),r.push(m),u.push(m);r.length;)if((m=r.pop())!==v){if(void 0!==(l=this.__execute(t.enter,m))&&l!==a&&l!==i&&l!==o&&(m.ref.replace(l),m.node=l),this.__state!==o&&l!==o||(A(m),m.node=null),this.__state===a||l===a)return x.root;if((n=m.node)&&(r.push(v),u.push(m),this.__state!==i&&l!==i)){if(s=n.type||m.wrap,!(h=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");h=this.__fallback(n)}for(g=h.length;(g-=1)>=0;)if(b=n[E=h[g]]){if(Array.isArray(b)){for(y=b.length;(y-=1)>=0;)if(b[y]){if(p(s,h[g]))m=new c(b[y],[E,y],"Property",new d(b,y));else{if(!f(b[y]))continue;m=new c(b[y],[E,y],null,new d(b,y))}r.push(m)}}else f(b)&&r.push(new c(b,E,null,new d(n,E)))}}}else if(m=u.pop(),void 0!==(l=this.__execute(t.leave,m))&&l!==a&&l!==i&&l!==o&&m.ref.replace(l),this.__state!==o&&l!==o||A(m),this.__state===a||l===a)break;return x.root},t.Syntax=r,t.traverse=g,t.replace=function(e,t){return(new l).replace(e,t)},t.attachComments=function(e,t,r){var n,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)(n=s(t[i])).extendedRange=[0,e.range[0]],d.push(n);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,u,n,a;for(u=e.length,n=0;u;)t(e[a=n+(r=u>>>1)])?u=r:(n=a+1,u-=r+1);return n}(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,g(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?u.Break:d[o].extendedRange[0]>e.range[1]?u.Skip:void 0}}),o=0,g(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?u.Break:d[o].extendedRange[0]>e.range[1]?u.Skip:void 0}}),e},t.VisitorKeys=n,t.VisitorOption=u,t.Controller=l,t.cloneEnvironment=function(){return e({})},t}(t)}),mj=mN(function(e){e.exports&&(e.exports=function(){function e(t,r,u,n){this.message=t,this.expected=r,this.found=u,this.location=n,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'"'+n(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 u(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(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"+u(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+u(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"+u(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+u(e)})}return"Expected "+function(e){var t,u,n,a=Array(e.length);for(t=0;t<e.length;t++)a[t]=r[(n=e[t]).type](n);if(a.sort(),a.length>0){for(t=1,u=1;t<a.length;t++)a[t-1]!==a[t]&&(a[u]=a[t],u++);a.length=u}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?'"'+n(t)+'"':"end of input")+" found."},{SyntaxError:e,parse:function(t,r){r=void 0!==r?r:{};var u,n,a,i,o,s,d,c,l={},f={start:eb},p=eb,m=em(" ",!1),g=/^[^ [\],():#!=><~+.]/,y=eg([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),h=em(">",!1),b=em("~",!1),v=em("+",!1),x=em(",",!1),E=em("!",!1),A=em("*",!1),D=em("#",!1),C=em("[",!1),S=em("]",!1),F=/^[><!]/,w=eg([">","<","!"],!1,!1),_=em("=",!1),k=function(e){return(e||"")+"="},P=/^[><]/,T=eg([">","<"],!1,!1),I=em(".",!1),B=function(e,t,r){return{type:"attribute",name:e,operator:t,value:r}},R=em('"',!1),N=/^[^\\"]/,L=eg(["\\",'"'],!0,!1),j=em("\\",!1),O={type:"any"},M=function(e,t){return e+t},$=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),U=/^[^\\']/,q=eg(["\\","'"],!0,!1),W=/^[0-9]/,V=eg([["0","9"]],!1,!1),Z=em("type(",!1),G=/^[^ )]/,H=eg([" ",")"],!0,!1),K=em(")",!1),X=/^[imsu]/,J=eg(["i","m","s","u"],!1,!1),Y=em("/",!1),Q=/^[^\/]/,ee=eg(["/"],!0,!1),et=em(":not(",!1),er=em(":matches(",!1),eu=em(":has(",!1),en=em(":first-child",!1),ea=em(":last-child",!1),ei=em(":nth-child(",!1),eo=em(":nth-last-child(",!1),es=em(":",!1),ed=0,ec=[{line:1,column:1}],el=0,ef=[],ep={};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,u=ec[e];if(u)return u;for(r=e-1;!ec[r];)r--;for(u={line:(u=ec[r]).line,column:u.column};r<e;)10===t.charCodeAt(r)?(u.line++,u.column=1):u.column++,r++;return ec[e]=u,u}function eh(e){ed<el||(ed>el&&(el=ed,ef=[]),ef.push(e))}function eb(){var e,t,r,u,n=30*ed+0,a=ep[n];return a?(ed=a.nextPos,a.result):(e=ed,(t=ev())!==l&&(r=eA())!==l&&ev()!==l?e=t=1===(u=r).length?u[0]:{type:"matches",selectors:u}:(ed=e,e=l),e===l&&(e=ed,(t=ev())!==l&&(t=void 0),e=t),ep[n]={nextPos:ed,result:e},e)}function ev(){var e,r,u=30*ed+1,n=ep[u];if(n)return ed=n.nextPos,n.result;for(e=[],32===t.charCodeAt(ed)?(r=" ",ed++):(r=l,eh(m));r!==l;)e.push(r),32===t.charCodeAt(ed)?(r=" ",ed++):(r=l,eh(m));return ep[u]={nextPos:ed,result:e},e}function ex(){var e,r,u,n=30*ed+2,a=ep[n];if(a)return ed=a.nextPos,a.result;if(r=[],g.test(t.charAt(ed))?(u=t.charAt(ed),ed++):(u=l,eh(y)),u!==l)for(;u!==l;)r.push(u),g.test(t.charAt(ed))?(u=t.charAt(ed),ed++):(u=l,eh(y));else r=l;return r!==l&&(r=r.join("")),e=r,ep[n]={nextPos:ed,result:e},e}function eE(){var e,r,u,n=30*ed+3,a=ep[n];return a?(ed=a.nextPos,a.result):(e=ed,(r=ev())!==l?(62===t.charCodeAt(ed)?(u=">",ed++):(u=l,eh(h)),u!==l&&ev()!==l?e=r="child":(ed=e,e=l)):(ed=e,e=l),e===l&&(e=ed,(r=ev())!==l?(126===t.charCodeAt(ed)?(u="~",ed++):(u=l,eh(b)),u!==l&&ev()!==l?e=r="sibling":(ed=e,e=l)):(ed=e,e=l),e===l&&(e=ed,(r=ev())!==l?(43===t.charCodeAt(ed)?(u="+",ed++):(u=l,eh(v)),u!==l&&ev()!==l?e=r="adjacent":(ed=e,e=l)):(ed=e,e=l),e===l&&(e=ed,32===t.charCodeAt(ed)?(r=" ",ed++):(r=l,eh(m)),r!==l&&(u=ev())!==l?e=r="descendant":(ed=e,e=l)))),ep[n]={nextPos:ed,result:e},e)}function eA(){var e,r,u,n,a,i,o,s,d=30*ed+4,c=ep[d];if(c)return ed=c.nextPos,c.result;if(e=ed,(r=eD())!==l){for(u=[],n=ed,(a=ev())!==l?(44===t.charCodeAt(ed)?(i=",",ed++):(i=l,eh(x)),i!==l&&(o=ev())!==l&&(s=eD())!==l?n=a=[a,i,o,s]:(ed=n,n=l)):(ed=n,n=l);n!==l;)u.push(n),n=ed,(a=ev())!==l?(44===t.charCodeAt(ed)?(i=",",ed++):(i=l,eh(x)),i!==l&&(o=ev())!==l&&(s=eD())!==l?n=a=[a,i,o,s]:(ed=n,n=l)):(ed=n,n=l);u!==l?e=r=[r].concat(u.map(function(e){return e[3]})):(ed=e,e=l)}else ed=e,e=l;return ep[d]={nextPos:ed,result:e},e}function eD(){var e,t,r,u,n,a,i,o=30*ed+5,s=ep[o];if(s)return ed=s.nextPos,s.result;if(e=ed,(t=eC())!==l){for(r=[],u=ed,(n=eE())!==l&&(a=eC())!==l?u=n=[n,a]:(ed=u,u=l);u!==l;)r.push(u),u=ed,(n=eE())!==l&&(a=eC())!==l?u=n=[n,a]:(ed=u,u=l);r!==l?(i=t,e=t=r.reduce(function(e,t){return{type:t[0],left:e,right:t[1]}},i)):(ed=e,e=l)}else ed=e,e=l;return ep[o]={nextPos:ed,result:e},e}function eC(){var e,r,u,n,a,i,o,s=30*ed+6,d=ep[s];if(d)return ed=d.nextPos,d.result;if(e=ed,33===t.charCodeAt(ed)?(r="!",ed++):(r=l,eh(E)),r===l&&(r=null),r!==l){if(u=[],(n=eS())!==l)for(;n!==l;)u.push(n),n=eS();else u=l;u!==l?(a=r,o=1===(i=u).length?i[0]:{type:"compound",selectors:i},a&&(o.subject=!0),e=r=o):(ed=e,e=l)}else ed=e,e=l;return ep[s]={nextPos:ed,result:e},e}function eS(){var e,r,u,n,a,i,o,s,d,c,f,p,m,g,y,h,b,v,x,ec,el,ef,em,eg,ey,eb,eE,eD,eC,eS,ek,eP,eT,eI,eB,eR,eN,eL,ej,eO,eM,e$,ez,eU,eq,eW,eV,eZ,eG,eH,eK,eX,eJ,eY,eQ,e0,e1,e3,e2,e4,e5,e8,e6,e9,e7,te,tt,tr=30*ed+7,tu=ep[tr];return tu?(ed=tu.nextPos,tu.result):((tt=(n=ep[u=30*ed+8])?(ed=n.nextPos,n.result):(42===t.charCodeAt(ed)?(r="*",ed++):(r=l,eh(A)),r!==l&&(r={type:"wildcard",value:r}),e=r,ep[u]={nextPos:ed,result:e},e))===l&&(tt=(d=ep[s=30*ed+9])?(ed=d.nextPos,d.result):(a=ed,35===t.charCodeAt(ed)?(i="#",ed++):(i=l,eh(D)),i===l&&(i=null),i!==l&&(o=ex())!==l?a=i={type:"identifier",value:o}:(ed=a,a=l),ep[s]={nextPos:ed,result:a},a))===l&&(tt=(y=ep[g=30*ed+10])?(ed=y.nextPos,y.result):(c=ed,91===t.charCodeAt(ed)?(f="[",ed++):(f=l,eh(C)),f!==l&&ev()!==l&&(p=(el=ep[ec=30*ed+14])?(ed=el.nextPos,el.result):(h=ed,(b=eF())!==l&&ev()!==l&&(v=(eb=ep[ey=30*ed+12])?(ed=eb.nextPos,eb.result):(ef=ed,33===t.charCodeAt(ed)?(em="!",ed++):(em=l,eh(E)),em===l&&(em=null),em!==l?(61===t.charCodeAt(ed)?(eg="=",ed++):(eg=l,eh(_)),eg!==l?ef=em=k(em):(ed=ef,ef=l)):(ed=ef,ef=l),ep[ey]={nextPos:ed,result:ef},ef))!==l&&ev()!==l?((x=function(){var e,r,u,n,a,i=30*ed+18,o=ep[i];if(o)return ed=o.nextPos,o.result;if(e=ed,"type("===t.substr(ed,5)?(r="type(",ed+=5):(r=l,eh(Z)),r!==l){if(ev()!==l){if(u=[],G.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(H)),n!==l)for(;n!==l;)u.push(n),G.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(H));else u=l;u!==l&&(n=ev())!==l?(41===t.charCodeAt(ed)?(a=")",ed++):(a=l,eh(K)),a!==l?e=r={type:"type",value:u.join("")}:(ed=e,e=l)):(ed=e,e=l)}else ed=e,e=l}else ed=e,e=l;return ep[i]={nextPos:ed,result:e},e}())===l&&(x=function(){var e,r,u,n,a,i,o=30*ed+20,s=ep[o];if(s)return ed=s.nextPos,s.result;if(e=ed,47===t.charCodeAt(ed)?(r="/",ed++):(r=l,eh(Y)),r!==l){if(u=[],Q.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(ee)),n!==l)for(;n!==l;)u.push(n),Q.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(ee));else u=l;u!==l?(47===t.charCodeAt(ed)?(n="/",ed++):(n=l,eh(Y)),n!==l?((a=function(){var e,r,u=30*ed+19,n=ep[u];if(n)return ed=n.nextPos,n.result;if(e=[],X.test(t.charAt(ed))?(r=t.charAt(ed),ed++):(r=l,eh(J)),r!==l)for(;r!==l;)e.push(r),X.test(t.charAt(ed))?(r=t.charAt(ed),ed++):(r=l,eh(J));else e=l;return ep[u]={nextPos:ed,result:e},e}())===l&&(a=null),a!==l?(i=a,e=r={type:"regexp",value:new RegExp(u.join(""),i?i.join(""):"")}):(ed=e,e=l)):(ed=e,e=l)):(ed=e,e=l)}else ed=e,e=l;return ep[o]={nextPos:ed,result:e},e}()),x!==l?h=b=B(b,v,x):(ed=h,h=l)):(ed=h,h=l),h===l&&(h=ed,(b=eF())!==l&&ev()!==l&&(v=(ek=ep[eS=30*ed+11])?(ed=ek.nextPos,ek.result):(eE=ed,F.test(t.charAt(ed))?(eD=t.charAt(ed),ed++):(eD=l,eh(w)),eD===l&&(eD=null),eD!==l?(61===t.charCodeAt(ed)?(eC="=",ed++):(eC=l,eh(_)),eC!==l?eE=eD=k(eD):(ed=eE,eE=l)):(ed=eE,eE=l),eE===l&&(P.test(t.charAt(ed))?(eE=t.charAt(ed),ed++):(eE=l,eh(T))),ep[eS]={nextPos:ed,result:eE},eE))!==l&&ev()!==l?((x=function(){var e,r,u,n,a,i,o=30*ed+15,s=ep[o];if(s)return ed=s.nextPos,s.result;if(e=ed,34===t.charCodeAt(ed)?(r='"',ed++):(r=l,eh(R)),r!==l){for(u=[],N.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(L)),n===l&&(n=ed,92===t.charCodeAt(ed)?(a="\\",ed++):(a=l,eh(j)),a!==l?(t.length>ed?(i=t.charAt(ed),ed++):(i=l,eh(O)),i!==l?n=a=M(a,i):(ed=n,n=l)):(ed=n,n=l));n!==l;)u.push(n),N.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(L)),n===l&&(n=ed,92===t.charCodeAt(ed)?(a="\\",ed++):(a=l,eh(j)),a!==l?(t.length>ed?(i=t.charAt(ed),ed++):(i=l,eh(O)),i!==l?n=a=M(a,i):(ed=n,n=l)):(ed=n,n=l));u!==l?(34===t.charCodeAt(ed)?(n='"',ed++):(n=l,eh(R)),n!==l?e=r=$(u):(ed=e,e=l)):(ed=e,e=l)}else ed=e,e=l;if(e===l){if(e=ed,39===t.charCodeAt(ed)?(r="'",ed++):(r=l,eh(z)),r!==l){for(u=[],U.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(q)),n===l&&(n=ed,92===t.charCodeAt(ed)?(a="\\",ed++):(a=l,eh(j)),a!==l?(t.length>ed?(i=t.charAt(ed),ed++):(i=l,eh(O)),i!==l?n=a=M(a,i):(ed=n,n=l)):(ed=n,n=l));n!==l;)u.push(n),U.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(q)),n===l&&(n=ed,92===t.charCodeAt(ed)?(a="\\",ed++):(a=l,eh(j)),a!==l?(t.length>ed?(i=t.charAt(ed),ed++):(i=l,eh(O)),i!==l?n=a=M(a,i):(ed=n,n=l)):(ed=n,n=l));u!==l?(39===t.charCodeAt(ed)?(n="'",ed++):(n=l,eh(z)),n!==l?e=r=$(u):(ed=e,e=l)):(ed=e,e=l)}else ed=e,e=l}return ep[o]={nextPos:ed,result:e},e}())===l&&(x=function(){var e,r,u,n,a,i,o=30*ed+16,s=ep[o];if(s)return ed=s.nextPos,s.result;for(e=ed,r=ed,u=[],W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(V));n!==l;)u.push(n),W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(V));if(u!==l?(46===t.charCodeAt(ed)?(n=".",ed++):(n=l,eh(I)),n!==l?r=u=[u,n]:(ed=r,r=l)):(ed=r,r=l),r===l&&(r=null),r!==l){if(u=[],W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(V)),n!==l)for(;n!==l;)u.push(n),W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(V));else u=l;u!==l?(i=u,e=r={type:"literal",value:parseFloat(((a=r)?[].concat.apply([],a).join(""):"")+i.join(""))}):(ed=e,e=l)}else ed=e,e=l;return ep[o]={nextPos:ed,result:e},e}())===l&&(x=(eB=ep[eI=30*ed+17])?(ed=eB.nextPos,eB.result):((eT=ex())!==l&&(eT={type:"literal",value:eT}),eP=eT,ep[eI]={nextPos:ed,result:eP},eP)),x!==l?h=b=B(b,v,x):(ed=h,h=l)):(ed=h,h=l),h===l&&(h=ed,(b=eF())!==l&&(b={type:"attribute",name:b}),h=b)),ep[ec]={nextPos:ed,result:h},h))!==l&&ev()!==l?(93===t.charCodeAt(ed)?(m="]",ed++):(m=l,eh(S)),m!==l?c=f=p:(ed=c,c=l)):(ed=c,c=l),ep[g]={nextPos:ed,result:c},c))===l&&(tt=function(){var e,r,u,n,a,i,o,s=30*ed+21,d=ep[s];if(d)return ed=d.nextPos,d.result;if(e=ed,46===t.charCodeAt(ed)?(r=".",ed++):(r=l,eh(I)),r!==l){if((u=ex())!==l){for(n=[],a=ed,46===t.charCodeAt(ed)?(i=".",ed++):(i=l,eh(I)),i!==l&&(o=ex())!==l?a=i=[i,o]:(ed=a,a=l);a!==l;)n.push(a),a=ed,46===t.charCodeAt(ed)?(i=".",ed++):(i=l,eh(I)),i!==l&&(o=ex())!==l?a=i=[i,o]:(ed=a,a=l);n!==l?e=r={type:"field",name:n.reduce(function(e,t){return e+t[0]+t[1]},u)}:(ed=e,e=l)}else ed=e,e=l}else ed=e,e=l;return ep[s]={nextPos:ed,result:e},e}())===l&&(tt=(eM=ep[eO=30*ed+22])?(ed=eM.nextPos,eM.result):(eR=ed,":not("===t.substr(ed,5)?(eN=":not(",ed+=5):(eN=l,eh(et)),eN!==l&&ev()!==l&&(eL=eA())!==l&&ev()!==l?(41===t.charCodeAt(ed)?(ej=")",ed++):(ej=l,eh(K)),ej!==l?eR=eN={type:"not",selectors:eL}:(ed=eR,eR=l)):(ed=eR,eR=l),ep[eO]={nextPos:ed,result:eR},eR))===l&&(tt=(eV=ep[eW=30*ed+23])?(ed=eV.nextPos,eV.result):(e$=ed,":matches("===t.substr(ed,9)?(ez=":matches(",ed+=9):(ez=l,eh(er)),ez!==l&&ev()!==l&&(eU=eA())!==l&&ev()!==l?(41===t.charCodeAt(ed)?(eq=")",ed++):(eq=l,eh(K)),eq!==l?e$=ez={type:"matches",selectors:eU}:(ed=e$,e$=l)):(ed=e$,e$=l),ep[eW]={nextPos:ed,result:e$},e$))===l&&(tt=(eJ=ep[eX=30*ed+24])?(ed=eJ.nextPos,eJ.result):(eZ=ed,":has("===t.substr(ed,5)?(eG=":has(",ed+=5):(eG=l,eh(eu)),eG!==l&&ev()!==l&&(eH=eA())!==l&&ev()!==l?(41===t.charCodeAt(ed)?(eK=")",ed++):(eK=l,eh(K)),eK!==l?eZ=eG={type:"has",selectors:eH}:(ed=eZ,eZ=l)):(ed=eZ,eZ=l),ep[eX]={nextPos:ed,result:eZ},eZ))===l&&(tt=(e1=ep[e0=30*ed+25])?(ed=e1.nextPos,e1.result):(":first-child"===t.substr(ed,12)?(eQ=":first-child",ed+=12):(eQ=l,eh(en)),eQ!==l&&(eQ=ew(1)),eY=eQ,ep[e0]={nextPos:ed,result:eY},eY))===l&&(tt=(e5=ep[e4=30*ed+26])?(ed=e5.nextPos,e5.result):(":last-child"===t.substr(ed,11)?(e2=":last-child",ed+=11):(e2=l,eh(ea)),e2!==l&&(e2=e_(1)),e3=e2,ep[e4]={nextPos:ed,result:e3},e3))===l&&(tt=function(){var e,r,u,n,a,i=30*ed+27,o=ep[i];if(o)return ed=o.nextPos,o.result;if(e=ed,":nth-child("===t.substr(ed,11)?(r=":nth-child(",ed+=11):(r=l,eh(ei)),r!==l){if(ev()!==l){if(u=[],W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(V)),n!==l)for(;n!==l;)u.push(n),W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(V));else u=l;u!==l&&(n=ev())!==l?(41===t.charCodeAt(ed)?(a=")",ed++):(a=l,eh(K)),a!==l?e=r=ew(parseInt(u.join(""),10)):(ed=e,e=l)):(ed=e,e=l)}else ed=e,e=l}else ed=e,e=l;return ep[i]={nextPos:ed,result:e},e}())===l&&(tt=function(){var e,r,u,n,a,i=30*ed+28,o=ep[i];if(o)return ed=o.nextPos,o.result;if(e=ed,":nth-last-child("===t.substr(ed,16)?(r=":nth-last-child(",ed+=16):(r=l,eh(eo)),r!==l){if(ev()!==l){if(u=[],W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(V)),n!==l)for(;n!==l;)u.push(n),W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=l,eh(V));else u=l;u!==l&&(n=ev())!==l?(41===t.charCodeAt(ed)?(a=")",ed++):(a=l,eh(K)),a!==l?e=r=e_(parseInt(u.join(""),10)):(ed=e,e=l)):(ed=e,e=l)}else ed=e,e=l}else ed=e,e=l;return ep[i]={nextPos:ed,result:e},e}())===l&&(tt=(te=ep[e7=30*ed+29])?(ed=te.nextPos,te.result):(e8=ed,58===t.charCodeAt(ed)?(e6=":",ed++):(e6=l,eh(es)),e6!==l&&(e9=ex())!==l?e8=e6={type:"class",name:e9}:(ed=e8,e8=l),ep[e7]={nextPos:ed,result:e8},e8)),ep[tr]={nextPos:ed,result:tt},tt)}function eF(){var e,r,u,n,a,i,o,s=30*ed+13,d=ep[s];if(d)return ed=d.nextPos,d.result;if(e=ed,(r=ex())!==l){for(u=[],n=ed,46===t.charCodeAt(ed)?(a=".",ed++):(a=l,eh(I)),a!==l&&(i=ex())!==l?n=a=[a,i]:(ed=n,n=l);n!==l;)u.push(n),n=ed,46===t.charCodeAt(ed)?(a=".",ed++):(a=l,eh(I)),a!==l&&(i=ex())!==l?n=a=[a,i]:(ed=n,n=l);u!==l?(o=r,e=r=[].concat.apply([o],u).join("")):(ed=e,e=l)}else ed=e,e=l;return ep[s]={nextPos:ed,result:e},e}function ew(e){return{type:"nth-child",index:{type:"literal",value:e}}}function e_(e){return{type:"nth-last-child",index:{type:"literal",value:e}}}if((o=p())!==l&&ed===t.length)return o;throw o!==l&&ed<t.length&&eh({type:"end"}),s=ef,d=el<t.length?t.charAt(el):null,u=el,n=el<t.length?el+1:el,a=ey(u),i=ey(n),c={start:{offset:u,line:a.line,column:a.column},end:{offset:n,line:i.line,column:i.column}},new e(e.buildMessage(s,d),s,d,c)}}}())});function mO(e,t){for(var r=0;r<t.length&&null!=e;++r)e=e[t[r]];return e}var mM="function"==typeof WeakMap?new WeakMap:null;function m$(e){if(null==e)return function(){return!0};if(null!=mM){var t=mM.get(e);return null!=t||(t=mz(e),mM.set(e,t)),t}return mz(e)}function mz(e){switch(e.type){case"wildcard":return function(){return!0};case"identifier":var t=e.value.toLowerCase();return function(e,r,u){return t===e[u&&u.nodeTypeKey||"type"].toLowerCase()};case"field":var r=e.name.split(".");return function(e,t){return function e(t,r,u,n){for(var a=r,i=n;i<u.length;++i){if(null==a)return!1;var o=a[u[i]];if(Array.isArray(o)){for(var s=0;s<o.length;++s)if(e(t,o[s],u,i+1))return!0;return!1}a=o}return t===a}(e,t[r.length-1],r,0)};case"matches":var u=e.selectors.map(m$);return function(e,t,r){for(var n=0;n<u.length;++n)if(u[n](e,t,r))return!0;return!1};case"compound":var n=e.selectors.map(m$);return function(e,t,r){for(var u=0;u<n.length;++u)if(!n[u](e,t,r))return!1;return!0};case"not":var a=e.selectors.map(m$);return function(e,t,r){for(var u=0;u<a.length;++u)if(a[u](e,t,r))return!1;return!0};case"has":var i=e.selectors.map(m$);return function(e,t,r){var u=!1,n=[];return mL.traverse(e,{enter:function(e,t){null!=t&&n.unshift(t);for(var a=0;a<i.length;++a)if(i[a](e,n,r))return u=!0,void this.break()},leave:function(){n.shift()},keys:r&&r.visitorKeys,fallback:r&&r.fallback||"iteration"}),u};case"child":var o=m$(e.left),s=m$(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=m$(e.left),c=m$(e.right);return function(e,t,r){if(c(e,t,r)){for(var u=0,n=t.length;u<n;++u)if(d(t[u],t.slice(u+1),r))return!0}return!1};case"attribute":var l=e.name.split(".");switch(e.operator){case void 0:return function(e){return null!=mO(e,l)};case"=":switch(e.value.type){case"regexp":return function(t){var r=mO(t,l);return"string"==typeof r&&e.value.value.test(r)};case"literal":var f="".concat(e.value.value);return function(e){return f==="".concat(mO(e,l))};case"type":return function(t){return e.value.value===mT(mO(t,l))}}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(mO(t,l))};case"literal":var p="".concat(e.value.value);return function(e){return p!=="".concat(mO(e,l))};case"type":return function(t){return e.value.value!==mT(mO(t,l))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"<=":return function(t){return mO(t,l)<=e.value.value};case"<":return function(t){return mO(t,l)<e.value.value};case">":return function(t){return mO(t,l)>e.value.value};case">=":return function(t){return mO(t,l)>=e.value.value}}throw Error("Unknown operator: ".concat(e.operator));case"sibling":var m=m$(e.left),g=m$(e.right);return function(t,r,u){return g(t,r,u)&&mW(t,m,r,"LEFT_SIDE",u)||e.left.subject&&m(t,r,u)&&mW(t,g,r,"RIGHT_SIDE",u)};case"adjacent":var y=m$(e.left),h=m$(e.right);return function(t,r,u){return h(t,r,u)&&mV(t,y,r,"LEFT_SIDE",u)||e.right.subject&&y(t,r,u)&&mV(t,h,r,"RIGHT_SIDE",u)};case"nth-child":var b=e.index.value,v=m$(e.right);return function(e,t,r){return v(e,t,r)&&mZ(e,t,b,r)};case"nth-last-child":var x=-e.index.value,E=m$(e.right);return function(e,t,r){return E(e,t,r)&&mZ(e,t,x,r)};case"class":return function(t,r,u){if(u&&u.matchClass)return u.matchClass(e.name,t,r);if(u&&u.nodeTypeKey)return!1;switch(e.name.toLowerCase()){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 mU(e,t){var r=t&&t.nodeTypeKey||"type",u=e[r];return t&&t.visitorKeys&&t.visitorKeys[u]?t.visitorKeys[u]:mL.VisitorKeys[u]?mL.VisitorKeys[u]:t&&"function"==typeof t.fallback?t.fallback(e):Object.keys(e).filter(function(e){return e!==r})}function mq(e,t){var r=t&&t.nodeTypeKey||"type";return null!==e&&"object"===mT(e)&&"string"==typeof e[r]}function mW(e,t,r,u,n){var a=mI(r,1)[0];if(!a)return!1;for(var i=mU(a,n),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 c=void 0,l=void 0;"LEFT_SIDE"===u?(c=0,l=d):(c=d+1,l=s.length);for(var f=c;f<l;++f)if(mq(s[f],n)&&t(s[f],r,n))return!0}}return!1}function mV(e,t,r,u,n){var a=mI(r,1)[0];if(!a)return!1;for(var i=mU(a,n),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"===u&&d>0&&mq(s[d-1],n)&&t(s[d-1],r,n)||"RIGHT_SIDE"===u&&d<s.length-1&&mq(s[d+1],n)&&t(s[d+1],r,n))return!0}}return!1}function mZ(e,t,r,u){if(0===r)return!1;var n=mI(t,1)[0];if(!n)return!1;for(var a=mU(n,u),i=0;i<a.length;++i){var o=n[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 mG(e,t,r,u){if(t){var n=[],a=m$(t),i=(function e(t,r){if(null==t||"object"!=mT(t))return[];null==r&&(r=t);for(var u=t.subject?[r]:[],n=Object.keys(t),a=0;a<n.length;++a){var i,o=n[a],s=t[o];u.push.apply(u,function(e){if(Array.isArray(e))return mR(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)||mB(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 u})(t).map(m$);mL.traverse(e,{enter:function(e,t){if(null!=t&&n.unshift(t),a(e,n,u)){if(i.length)for(var o=0,s=i.length;o<s;++o){i[o](e,n,u)&&r(e,t,n);for(var d=0,c=n.length;d<c;++d){var l=n.slice(d+1);i[o](n[d],l,u)&&r(n[d],t,l)}}else r(e,t,n)}},leave:function(){n.shift()},keys:u&&u.visitorKeys,fallback:u&&u.fallback||"iteration"})}}function mH(e,t,r){var u=[];return mG(e,t,function(e){u.push(e)},r),u}function mK(e){return mj.parse(e)}function mX(e,t,r){return mH(e,mK(t),r)}mX.parse=mK,mX.match=mH,mX.traverse=mG,mX.matches=function(e,t,r,u){return!t||!!e&&(r||(r=[]),m$(t)(e,r,u))},mX.query=mX;var mJ=Q(Object.freeze({__proto__:null,default:mX}));const mY=e=>{let t=mP(e);if(0===t)return e;let r=RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")},mQ=(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 u=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(u,r.indent.repeat(t))},{replaceTemplateElement:m0}=ne,{isMethodCall:m1,isCallExpression:m3}=tI,m2="template-indent",m4=e=>m1(e.parent,{method:"toMatchInlineSnapshot",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&e.parent.arguments[0]===e&&m3(e.parent.callee.object,{name:"expect",argumentsLength:1,optionalCall:!1,optionalMember:!1}),m5=new Map,m8=e=>(m5.has(e)||m5.set(e,mJ.parse(e)),m5.get(e));var m6=Y({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 u=e=>{let u;let n="__PLACEHOLDER__"+Math.random(),a=e.quasis.map(e=>t.getText(e).slice(1,e.tail?-1:-2)).join(n),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]:"";u="string"==typeof r.indent?r.indent:"number"==typeof r.indent?" ".repeat(r.indent):d.startsWith(" ")?" ":" ";let c=mY(a).replaceAll(RegExp(`^${o}|${o}[ ]*$`,"g"),""),l=o+mQ(c,1,{indent:d+u})+o+d;if(l!==a)return{node:e,messageId:m2,fix:t=>l.split(n).map((r,u)=>m0(t,e.quasis[u],r))}},n=e=>{if(r.comments.length>0){let u=t.getTokenBefore(e,{includeComments:!0});if(u?.type==="Block"&&r.comments.includes(u.value.trim().toLowerCase()))return!0}if(m4(e)||r.tags.length>0&&"TaggedTemplateExpression"===e.parent.type&&e.parent.quasi===e&&"Identifier"===e.parent.tag.type&&r.tags.includes(e.parent.tag.name)||r.functions.length>0&&"CallExpression"===e.parent.type&&e.parent.arguments.includes(e)&&"Identifier"===e.parent.callee.type&&r.functions.includes(e.parent.callee.name))return!0;if(r.selectors.length>0){let u=t.getAncestors(e).reverse();if(r.selectors.some(t=>mJ.matches(e,m8(t),u)))return!0}return!1};return{TemplateLiteral(e){if(n(e))return u(e)}}},meta:{type:"suggestion",docs:{description:"Fix whitespace-insensitive template indentation."},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:{[m2]:"Templates should be properly indented."}}});const m9=RegExp("^\\s*(?<directive>eslint-disable(?:-(?:next-)?line)?)"),m7=RegExp("^eslint-disable(?:-next-line|-line)?(?<ruleId>$|(?:\\s+(?:@(?:[\\w-]+\\/){1,2})?[\\w-]+)?)"),ge=Symbol("rule-id-no-match");var gt={rules:{"array/no-unneeded-flat-map":A,"browser/prefer-location-assign":C,"jsx/no-template-literal":F,"jsx/no-unneeded-nested":w,"string/no-locale-case":k,"string/no-simple-template-literal":T,"type/no-instanceof-wrapper":B,"unicode/no-bidi":$,"unicode/no-invisible":U,"ban-eslint-disable":d.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 u of r.comments){let r=function(e){let t=m9.exec(e);return t?.groups?.directive}(u.value);if(r&&!("allow-with-description"===t&&u.value.includes("--"))){let n="allow-with-description"===t?"require-description":"do-not-use";e.report({node:u,data:{directive:r},messageId:n})}let n=function(e){let t=m7.exec(e.trim());return t?t.groups?.ruleId:ge}(u.value);n===ge||n||e.report({node:u,messageId:"require-specific-rule"})}}}}),"no-redundant-variable":q,"no-single-return":V,"prefer-early-return":G,"prefer-fetch":H,"prefer-timer-id":J,"import-dedupe":d.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(u=>{let n=u.local.name;r.has(n)&&e.report({node:t,loc:{start:u.loc.end,end:u.loc.start},messageId:"import-dedupe",fix(t){let r=u.range[0],n=u.range[1];return","===e.getSourceCode().text[n]&&(n+=1),t.removeRange([r,n])}}),r.add(n)})}})}),"unicorn/better-regex":gr(cm,"unicorn/better-regex"),"unicorn/no-nested-ternary":gr(ti,"unicorn/no-nested-ternary"),"unicorn/prefer-event-target":gr(uC,"unicorn/prefer-event-target"),"unicorn/prefer-keyboard-event-key":gr(uL,"unicorn/prefer-keyboard-event-key"),"unicorn/prefer-text-content":gr(u$,"unicorn/prefer-text-content"),"unicorn/require-array-join-separator":gr(na,"unicorn/require-array-join-separator"),"unicorn/no-thenable":gr(ng,"unicorn/no-thenable"),"unicorn/no-invalid-remove-event-listener":gr(nv,"unicorn/no-invalid-remove-event-listener"),"unicorn/consistent-function-scoping":gr(nI,"unicorn/consistent-function-scoping"),"unicorn/no-new-buffer":gr(n5,"unicorn/no-new-buffer"),"unicorn/no-console-spaces":gr(at,"unicorn/no-console-spaces"),"unicorn/no-empty-file":gr(as,"unicorn/no-empty-file"),"unicorn/no-useless-fallback-in-spread":gr(ap,"unicorn/no-useless-fallback-in-spread"),"unicorn/no-useless-length-check":gr(ax,"unicorn/no-useless-length-check"),"unicorn/no-useless-promise-resolve-reject":gr(aC,"unicorn/no-useless-promise-resolve-reject"),"unicorn/no-zero-fractions":gr(aT,"unicorn/no-zero-fractions"),"unicorn/prefer-export-from":gr(aV,"unicorn/prefer-export-from"),"unicorn/prefer-native-coercion-functions":gr(a1,"unicorn/prefer-native-coercion-functions"),"unicorn/no-document-cookie":gr(a7,"unicorn/no-document-cookie"),"unicorn/prefer-add-event-listener":gr(ig,"unicorn/prefer-add-event-listener"),"unicorn/prefer-array-index-of":gr(i_,"unicorn/prefer-array-index-of"),"unicorn/prefer-blob-reading-methods":gr(iT,"unicorn/prefer-blob-reading-methods"),"unicorn/prefer-date-now":gr(iz,"unicorn/prefer-date-now"),"unicorn/prefer-dom-node-dataset":gr(iJ,"unicorn/prefer-dom-node-dataset"),"unicorn/prefer-modern-math-apis":gr(on,"unicorn/prefer-modern-math-apis"),"unicorn/number-literal-case":gr(ov,"unicorn/number-literal-case"),"unicorn/prefer-number-properties":gr(ow,"unicorn/prefer-number-properties"),"unicorn/prefer-reflect-apply":gr(oL,"unicorn/prefer-reflect-apply"),"unicorn/prefer-set-size":gr(oq,"unicorn/prefer-set-size"),"unicorn/prefer-string-replace-all":gr(o0,"unicorn/prefer-string-replace-all"),"unicorn/prefer-string-slice":gr(o7,"unicorn/prefer-string-slice"),"unicorn/prefer-string-trim-start-end":gr(sr,"unicorn/prefer-string-trim-start-end"),"unicorn/no-unreadable-iife":gr(so,"unicorn/no-unreadable-iife"),"unicorn/throw-new-error":gr(sl,"unicorn/throw-new-error"),"unicorn/escape-case":gr(cA,"unicorn/escape-case"),"unicorn/no-hex-escape":gr(c_,"unicorn/no-hex-escape"),"unicorn/prefer-prototype-methods":gr(cN,"unicorn/prefer-prototype-methods"),"unicorn/error-message":gr(cU,"unicorn/error-message"),"unicorn/no-instanceof-array":gr(cK,"unicorn/no-instanceof-array"),"unicorn/prefer-type-error":gr(c5,"unicorn/prefer-type-error"),"unicorn/consistent-destructuring":gr(lt,"unicorn/consistent-destructuring"),"unicorn/new-for-builtins":gr(ls,"unicorn/new-for-builtins"),"unicorn/no-array-push-push":gr(lx,"unicorn/no-array-push-push"),"unicorn/no-process-exit":gr(lF,"unicorn/no-process-exit"),"unicorn/no-static-only-class":gr(lL,"unicorn/no-static-only-class"),"unicorn/no-unreadable-array-destructuring":gr(lz,"unicorn/no-unreadable-array-destructuring"),"unicorn/no-useless-spread":gr(l5,"unicorn/no-useless-spread"),"unicorn/no-useless-switch-case":gr(fr,"unicorn/no-useless-switch-case"),"unicorn/no-useless-undefined":gr(fp,"unicorn/no-useless-undefined"),"unicorn/numeric-separators-style":gr(fv,"unicorn/numeric-separators-style"),"unicorn/prefer-array-find":gr(fY,"unicorn/prefer-array-find"),"unicorn/prefer-array-flat-map":gr(f4,"unicorn/prefer-array-flat-map"),"unicorn/prefer-array-flat":gr(pp,"unicorn/prefer-array-flat"),"unicorn/prefer-array-some":gr(pw,"unicorn/prefer-array-some"),"unicorn/prefer-code-point":gr(pP,"unicorn/prefer-code-point"),"unicorn/prefer-default-parameters":gr(pU,"unicorn/prefer-default-parameters"),"unicorn/prefer-logical-operator-over-ternary":gr(pX,"unicorn/prefer-logical-operator-over-ternary"),"unicorn/prefer-optional-catch-binding":gr(p1,"unicorn/prefer-optional-catch-binding"),"unicorn/prefer-prototype-methods":gr(cN,"unicorn/prefer-prototype-methods"),"unicorn/prefer-regexp-test":gr(mi,"unicorn/prefer-regexp-test"),"unicorn/prefer-set-has":gr(mh,"unicorn/prefer-set-has"),"unicorn/prefer-switch":gr(mS,"unicorn/prefer-switch"),"unicorn/require-number-to-fixed-digits-argument":gr(mk,"unicorn/require-number-to-fixed-digits-argument"),"unicorn/template-indent":gr(m6,"unicorn/template-indent")}};function gr(e,t){var r;return{meta:{schema:[],...e.meta,docs:{...e.meta.docs,url:er(t)}},create:(r=e.create,e=>{let t={},u=(e,r)=>{t[e]??(t[e]=[]),t[e].push(r)};for(let[t,n]of Object.entries(r(new Proxy(e,{get:(e,t,r)=>"on"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])u(r,t)}:"onExit"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])u(`${r}:exit`,t)}:Reflect.get(e,t,r)}))??{}))u(t,n);return Object.fromEntries(Object.entries(t).map(([t,r])=>[t,(...t)=>{for(let u of r)!function(e,t){if(e){for(let r of(gu(e)||(e=[e]),e))if(r){if(r.fix&&(r.fix=gi(r.fix)),gu(r.suggest))for(let e of r.suggest)e.fix&&(e.fix=gi(e.fix)),e.data={...r.data,...e.data};t.report(r)}}}(u(...t),e)}]))})}}const gu=e=>"function"==typeof e?.[Symbol.iterator];class gn extends Error{}const ga={abort(){throw new gn("Fix aborted.")}};function gi(e){return t=>{let r=e(t,ga);if(gu(r))try{return[...r]}catch(e){if(e instanceof gn)return;throw e}return r}}module.exports=gt;