eslint-plugin-sukka 6.4.2 → 6.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -12,7 +12,7 @@ ${n}break;
|
|
|
12
12
|
${n}`)}else yield t.insertTextAfter(e,`
|
|
13
13
|
${n}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:n,ifStatements:i},r,t)),yield o}}}},meta:{type:"suggestion",docs:{description:"Prefer `switch` over multiple `else-if`.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{minimumCases:{type:"integer",minimum:2,default:3},emptyDefaultCase:{enum:["no-default-comment","do-nothing-comment","no-default-case"],default:"no-default-comment"}}}],messages:{[h0]:"Use `switch` instead of multiple `else-if`."}}});let{appendArgument:h8}=ub,{isMethodCall:h6}=tH,h9="require-number-to-fixed-digits-argument";var h7=/*@__PURE__*/el({create:e=>({CallExpression(t){if(!h6(t,{method:"toFixed",argumentsLength:0,optionalCall:!1,optionalMember:!1})||"NewExpression"===t.callee.object.type)return;let{sourceCode:r}=e,[n,u]=r.getLastTokens(t,2);return{loc:{start:n.loc.start,end:u.loc.end},messageId:h9,fix:e=>h8(e,t,"0",r)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the digits argument with `Number#toFixed()`.",recommended:!0},fixable:"code",messages:{[h9]:"Missing the digits argument."}}});let me=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 mr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,u,a,i,o=[],s=!0,d=!1;try{if(a=(r=r.call(e)).next,0===t);else for(;!(s=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){d=!0,u=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw u}}return o}}(e,t)||mn(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 mn(e,t){if(e){if("string"==typeof e)return mu(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)?mu(e,t):void 0}}function mu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ma(e,t){return e(t={exports:{}},t.exports),t.exports}var mi=ma(function(e,t){!function e(t){var r,n,u,a,i,o;function s(e){var t,r,n={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],n[t]="object"==typeof r&&null!==r?s(r):r);return n}function d(e,t){this.parent=e,this.key=t}function l(e,t,r,n){this.node=e,this.path=t,this.wrap=r,this.ref=n}function c(){}function f(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function p(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function h(e,t){for(var r=e.length-1;r>=0;--r)if(e[r].node===t)return!0;return!1}function m(e,t){return(new c).traverse(e,t)}return r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},u={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},n={Break:a={},Skip:i={},Remove:o={}},d.prototype.replace=function(e){this.parent[this.key]=e},d.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},c.prototype.path=function(){var e,t,r,n,u;function a(e,t){if(Array.isArray(t))for(r=0,n=t.length;r<n;++r)e.push(t[r]);else e.push(t)}if(!this.__current.path)return null;for(u=[],e=2,t=this.__leavelist.length;e<t;++e)a(u,this.__leavelist[e].path);return a(u,this.__current.path),u},c.prototype.type=function(){return this.current().type||this.__current.wrap},c.prototype.parents=function(){var e,t,r;for(r=[],e=1,t=this.__leavelist.length;e<t;++e)r.push(this.__leavelist[e].node);return r},c.prototype.current=function(){return this.__current.node},c.prototype.__execute=function(e,t){var r,n;return n=void 0,r=this.__current,this.__current=t,this.__state=null,e&&(n=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=r,n},c.prototype.notify=function(e){this.__state=e},c.prototype.skip=function(){this.notify(i)},c.prototype.break=function(){this.notify(a)},c.prototype.remove=function(){this.notify(o)},c.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===t.fallback?this.__fallback=Object.keys:"function"==typeof t.fallback&&(this.__fallback=t.fallback),this.__keys=u,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},c.prototype.traverse=function(e,t){var r,n,u,o,s,d,c,m,g,y,b,v;for(this.__initialize(e,t),v={},r=this.__worklist,n=this.__leavelist,r.push(new l(e,null,null,null)),n.push(new l(null,null,null,null));r.length;)if((u=r.pop())!==v){if(u.node){if(d=this.__execute(t.enter,u),this.__state===a||d===a)return;if(r.push(v),n.push(u),this.__state===i||d===i)continue;if(s=(o=u.node).type||u.wrap,!(y=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");y=this.__fallback(o)}for(m=y.length;(m-=1)>=0;)if(b=o[c=y[m]]){if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]&&!h(n,b[g])){if(p(s,y[m]))u=new l(b[g],[c,g],"Property",null);else{if(!f(b[g]))continue;u=new l(b[g],[c,g],null,null)}r.push(u)}}else if(f(b)){if(h(n,b))continue;r.push(new l(b,c,null,null))}}}}else if(u=n.pop(),d=this.__execute(t.leave,u),this.__state===a||d===a)return},c.prototype.replace=function(e,t){var r,n,u,s,c,h,m,g,y,b,v,x,E;function C(e){var t,n,u,a;if(e.ref.remove()){for(n=e.ref.key,a=e.ref.parent,t=r.length;t--;)if((u=r[t]).ref&&u.ref.parent===a){if(u.ref.key<n)break;--u.ref.key}}}for(this.__initialize(e,t),v={},r=this.__worklist,n=this.__leavelist,h=new l(e,null,null,new d(x={root:e},"root")),r.push(h),n.push(h);r.length;)if((h=r.pop())!==v){if(void 0!==(c=this.__execute(t.enter,h))&&c!==a&&c!==i&&c!==o&&(h.ref.replace(c),h.node=c),this.__state!==o&&c!==o||(C(h),h.node=null),this.__state===a||c===a)return x.root;if((u=h.node)&&(r.push(v),n.push(h),this.__state!==i&&c!==i)){if(s=u.type||h.wrap,!(y=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");y=this.__fallback(u)}for(m=y.length;(m-=1)>=0;)if(b=u[E=y[m]]){if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]){if(p(s,y[m]))h=new l(b[g],[E,g],"Property",new d(b,g));else{if(!f(b[g]))continue;h=new l(b[g],[E,g],null,new d(b,g))}r.push(h)}}else f(b)&&r.push(new l(b,E,null,new d(u,E)))}}}else if(h=n.pop(),void 0!==(c=this.__execute(t.leave,h))&&c!==a&&c!==i&&c!==o&&h.ref.replace(c),this.__state!==o&&c!==o||C(h),this.__state===a||c===a)break;return x.root},t.Syntax=r,t.traverse=m,t.replace=function(e,t){return(new c).replace(e,t)},t.attachComments=function(e,t,r){var u,a,i,o,d=[];if(!e.range)throw Error("attachComments needs range information");if(!r.length){if(t.length){for(i=0,a=t.length;i<a;i+=1)(u=s(t[i])).extendedRange=[0,e.range[0]],d.push(u);e.leadingComments=d}return e}for(i=0,a=t.length;i<a;i+=1)d.push(function(e,t){var r;return r=function(e,t){var r,n,u,a;for(n=e.length,u=0;n;)t(e[a=u+(r=n>>>1)])?n=r:(u=a+1,n-=r+1);return u}(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}(s(t[i]),r));return o=0,m(e,{enter:function(e){for(var t;o<d.length&&!((t=d[o]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?n.Break:d[o].extendedRange[0]>e.range[1]?n.Skip:void 0}}),o=0,m(e,{leave:function(e){for(var t;o<d.length&&(t=d[o],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?n.Break:d[o].extendedRange[0]>e.range[1]?n.Skip:void 0}}),e},t.VisitorKeys=u,t.VisitorOption=n,t.Controller=c,t.cloneEnvironment=function(){return e({})},t}(t)}),mo=ma(function(e){e.exports&&(e.exports=function(){function e(t,r,n,u){this.message=t,this.expected=r,this.found=n,this.location=u,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.buildMessage=function(e,t){var r={literal:function(e){return'"'+u(e.text)+'"'},class:function(e){var t,r="";for(t=0;t<e.parts.length;t++)r+=e.parts[t]instanceof Array?a(e.parts[t][0])+"-"+a(e.parts[t][1]):a(e.parts[t]);return"["+(e.inverted?"^":"")+r+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function u(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function a(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}return"Expected "+function(e){var t,n,u,a=Array(e.length);for(t=0;t<e.length;t++)a[t]=r[(u=e[t]).type](u);if(a.sort(),a.length>0){for(t=1,n=1;t<a.length;t++)a[t-1]!==a[t]&&(a[n]=a[t],n++);a.length=n}switch(a.length){case 1:return a[0];case 2:return a[0]+" or "+a[1];default:return a.slice(0,-1).join(", ")+", or "+a[a.length-1]}}(e)+" but "+(t?'"'+u(t)+'"':"end of input")+" found."},{SyntaxError:e,parse:function(t,r){r=void 0!==r?r:{};var n,u,a,i,o,s,d,l,c={},f={start:ev},p=ev,h=em(" ",!1),m=/^[^ [\],():#!=><~+.]/,g=eg([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),y=em(">",!1),b=em("~",!1),v=em("+",!1),x=em(",",!1),E=function(e,t){return[e].concat(t.map(function(e){return e[3]}))},C=em("!",!1),A=em("*",!1),D=em("#",!1),S=em("[",!1),_=em("]",!1),w=/^[><!]/,k=eg([">","<","!"],!1,!1),F=em("=",!1),P=function(e){return(e||"")+"="},T=/^[><]/,I=eg([">","<"],!1,!1),B=em(".",!1),j=function(e,t,r){return{type:"attribute",name:e,operator:t,value:r}},L=em('"',!1),O=/^[^\\"]/,N=eg(["\\",'"'],!0,!1),R=em("\\",!1),M={type:"any"},$=function(e,t){return e+t},U=function(e){return{type:"literal",value:e.join("").replace(/\\(.)/g,function(e,t){switch(t){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return" ";case"v":return"\v";default:return t}})}},z=em("'",!1),V=/^[^\\']/,W=eg(["\\","'"],!0,!1),q=/^[0-9]/,G=eg([["0","9"]],!1,!1),Z=em("type(",!1),H=/^[^ )]/,K=eg([" ",")"],!0,!1),J=em(")",!1),X=/^[imsu]/,Q=eg(["i","m","s","u"],!1,!1),Y=em("/",!1),ee=/^[^\/]/,et=eg(["/"],!0,!1),er=em(":not(",!1),en=em(":matches(",!1),eu=em(":has(",!1),ea=em(":first-child",!1),ei=em(":last-child",!1),eo=em(":nth-child(",!1),es=em(":nth-last-child(",!1),ed=em(":",!1),el=0,ec=[{line:1,column:1}],ef=0,ep=[],eh={};if("startRule"in r){if(!(r.startRule in f))throw Error("Can't start parsing from rule \""+r.startRule+'".');p=f[r.startRule]}function em(e,t){return{type:"literal",text:e,ignoreCase:t}}function eg(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function ey(e){var r,n=ec[e];if(n)return n;for(r=e-1;!ec[r];)r--;for(n={line:(n=ec[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return ec[e]=n,n}function eb(e){el<ef||(el>ef&&(ef=el,ep=[]),ep.push(e))}function ev(){var e,t,r,n,u=32*el+0,a=eh[u];return a?(el=a.nextPos,a.result):(e=el,(t=ex())!==c&&(r=eA())!==c&&ex()!==c?e=t=1===(n=r).length?n[0]:{type:"matches",selectors:n}:(el=e,e=c),e===c&&(e=el,(t=ex())!==c&&(t=void 0),e=t),eh[u]={nextPos:el,result:e},e)}function ex(){var e,r,n=32*el+1,u=eh[n];if(u)return el=u.nextPos,u.result;for(e=[],32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(h));r!==c;)e.push(r),32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(h));return eh[n]={nextPos:el,result:e},e}function eE(){var e,r,n,u=32*el+2,a=eh[u];if(a)return el=a.nextPos,a.result;if(r=[],m.test(t.charAt(el))?(n=t.charAt(el),el++):(n=c,eb(g)),n!==c)for(;n!==c;)r.push(n),m.test(t.charAt(el))?(n=t.charAt(el),el++):(n=c,eb(g));else r=c;return r!==c&&(r=r.join("")),e=r,eh[u]={nextPos:el,result:e},e}function eC(){var e,r,n,u=32*el+3,a=eh[u];return a?(el=a.nextPos,a.result):(e=el,(r=ex())!==c?(62===t.charCodeAt(el)?(n=">",el++):(n=c,eb(y)),n!==c&&ex()!==c?e=r="child":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,(r=ex())!==c?(126===t.charCodeAt(el)?(n="~",el++):(n=c,eb(b)),n!==c&&ex()!==c?e=r="sibling":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,(r=ex())!==c?(43===t.charCodeAt(el)?(n="+",el++):(n=c,eb(v)),n!==c&&ex()!==c?e=r="adjacent":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(h)),r!==c&&(n=ex())!==c?e=r="descendant":(el=e,e=c)))),eh[u]={nextPos:el,result:e},e)}function eA(){var e,r,n,u,a,i,o,s,d=32*el+5,l=eh[d];if(l)return el=l.nextPos,l.result;if(e=el,(r=eS())!==c){for(n=[],u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eS())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);u!==c;)n.push(u),u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eS())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=E(r,n):(el=e,e=c)}else el=e,e=c;return eh[d]={nextPos:el,result:e},e}function eD(){var e,t,r,n,u,a=32*el+6,i=eh[a];return i?(el=i.nextPos,i.result):(e=el,(t=eC())===c&&(t=null),t!==c&&(r=eS())!==c?(u=r,e=t=(n=t)?{type:n,left:{type:"exactNode"},right:u}:u):(el=e,e=c),eh[a]={nextPos:el,result:e},e)}function eS(){var e,t,r,n,u,a,i,o=32*el+7,s=eh[o];if(s)return el=s.nextPos,s.result;if(e=el,(t=e_())!==c){for(r=[],n=el,(u=eC())!==c&&(a=e_())!==c?n=u=[u,a]:(el=n,n=c);n!==c;)r.push(n),n=el,(u=eC())!==c&&(a=e_())!==c?n=u=[u,a]:(el=n,n=c);r!==c?(i=t,e=t=r.reduce(function(e,t){return{type:t[0],left:e,right:t[1]}},i)):(el=e,e=c)}else el=e,e=c;return eh[o]={nextPos:el,result:e},e}function e_(){var e,r,n,u,a,i,o,s=32*el+8,d=eh[s];if(d)return el=d.nextPos,d.result;if(e=el,33===t.charCodeAt(el)?(r="!",el++):(r=c,eb(C)),r===c&&(r=null),r!==c){if(n=[],(u=ew())!==c)for(;u!==c;)n.push(u),u=ew();else n=c;n!==c?(a=r,o=1===(i=n).length?i[0]:{type:"compound",selectors:i},a&&(o.subject=!0),e=r=o):(el=e,e=c)}else el=e,e=c;return eh[s]={nextPos:el,result:e},e}function ew(){var e,r,n,u,a,i,o,s,d,l,f,p,h,m,g,y,b,v,ec,ef,ep,em,eg,ey,ev,eC,eS,e_,ew,eT,eI,eB,ej,eL,eO,eN,eR,eM,e$,eU,ez,eV,eW,eq,eG,eZ,eH,eK,eJ,eX,eQ,eY,e0,e1,e2,e3,e4,e5,e8,e6,e9,e7,te,tt,tr,tn,tu,ta=32*el+9,ti=eh[ta];return ti?(el=ti.nextPos,ti.result):((tu=(u=eh[n=32*el+10])?(el=u.nextPos,u.result):(42===t.charCodeAt(el)?(r="*",el++):(r=c,eb(A)),r!==c&&(r={type:"wildcard",value:r}),e=r,eh[n]={nextPos:el,result:e},e))===c&&(tu=(d=eh[s=32*el+11])?(el=d.nextPos,d.result):(a=el,35===t.charCodeAt(el)?(i="#",el++):(i=c,eb(D)),i===c&&(i=null),i!==c&&(o=eE())!==c?a=i={type:"identifier",value:o}:(el=a,a=c),eh[s]={nextPos:el,result:a},a))===c&&(tu=(g=eh[m=32*el+12])?(el=g.nextPos,g.result):(l=el,91===t.charCodeAt(el)?(f="[",el++):(f=c,eb(S)),f!==c&&ex()!==c&&(p=(ep=eh[ef=32*el+16])?(el=ep.nextPos,ep.result):(y=el,(b=ek())!==c&&ex()!==c&&(v=(eC=eh[ev=32*el+14])?(el=eC.nextPos,eC.result):(em=el,33===t.charCodeAt(el)?(eg="!",el++):(eg=c,eb(C)),eg===c&&(eg=null),eg!==c?(61===t.charCodeAt(el)?(ey="=",el++):(ey=c,eb(F)),ey!==c?em=eg=P(eg):(el=em,em=c)):(el=em,em=c),eh[ev]={nextPos:el,result:em},em))!==c&&ex()!==c?((ec=function(){var e,r,n,u,a,i=32*el+20,o=eh[i];if(o)return el=o.nextPos,o.result;if(e=el,"type("===t.substr(el,5)?(r="type(",el+=5):(r=c,eb(Z)),r!==c){if(ex()!==c){if(n=[],H.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(K)),u!==c)for(;u!==c;)n.push(u),H.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(K));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(J)),a!==c?e=r={type:"type",value:n.join("")}:(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[i]={nextPos:el,result:e},e}())===c&&(ec=function(){var e,r,n,u,a,i,o=32*el+22,s=eh[o];if(s)return el=s.nextPos,s.result;if(e=el,47===t.charCodeAt(el)?(r="/",el++):(r=c,eb(Y)),r!==c){if(n=[],ee.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(et)),u!==c)for(;u!==c;)n.push(u),ee.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(et));else n=c;n!==c?(47===t.charCodeAt(el)?(u="/",el++):(u=c,eb(Y)),u!==c?((a=function(){var e,r,n=32*el+21,u=eh[n];if(u)return el=u.nextPos,u.result;if(e=[],X.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(Q)),r!==c)for(;r!==c;)e.push(r),X.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(Q));else e=c;return eh[n]={nextPos:el,result:e},e}())===c&&(a=null),a!==c?(i=a,e=r={type:"regexp",value:new RegExp(n.join(""),i?i.join(""):"")}):(el=e,e=c)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c;return eh[o]={nextPos:el,result:e},e}()),ec!==c?y=b=j(b,v,ec):(el=y,y=c)):(el=y,y=c),y===c&&(y=el,(b=ek())!==c&&ex()!==c&&(v=(eI=eh[eT=32*el+13])?(el=eI.nextPos,eI.result):(eS=el,w.test(t.charAt(el))?(e_=t.charAt(el),el++):(e_=c,eb(k)),e_===c&&(e_=null),e_!==c?(61===t.charCodeAt(el)?(ew="=",el++):(ew=c,eb(F)),ew!==c?eS=e_=P(e_):(el=eS,eS=c)):(el=eS,eS=c),eS===c&&(T.test(t.charAt(el))?(eS=t.charAt(el),el++):(eS=c,eb(I))),eh[eT]={nextPos:el,result:eS},eS))!==c&&ex()!==c?((ec=function(){var e,r,n,u,a,i,o=32*el+17,s=eh[o];if(s)return el=s.nextPos,s.result;if(e=el,34===t.charCodeAt(el)?(r='"',el++):(r=c,eb(L)),r!==c){for(n=[],O.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(N)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));u!==c;)n.push(u),O.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(N)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));n!==c?(34===t.charCodeAt(el)?(u='"',el++):(u=c,eb(L)),u!==c?e=r=U(n):(el=e,e=c)):(el=e,e=c)}else el=e,e=c;if(e===c){if(e=el,39===t.charCodeAt(el)?(r="'",el++):(r=c,eb(z)),r!==c){for(n=[],V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(W)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));u!==c;)n.push(u),V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(W)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));n!==c?(39===t.charCodeAt(el)?(u="'",el++):(u=c,eb(z)),u!==c?e=r=U(n):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}return eh[o]={nextPos:el,result:e},e}())===c&&(ec=function(){var e,r,n,u,a,i,o=32*el+18,s=eh[o];if(s)return el=s.nextPos,s.result;for(e=el,r=el,n=[],q.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));u!==c;)n.push(u),q.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));if(n!==c?(46===t.charCodeAt(el)?(u=".",el++):(u=c,eb(B)),u!==c?r=n=[n,u]:(el=r,r=c)):(el=r,r=c),r===c&&(r=null),r!==c){if(n=[],q.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G)),u!==c)for(;u!==c;)n.push(u),q.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));else n=c;n!==c?(i=n,e=r={type:"literal",value:parseFloat(((a=r)?[].concat.apply([],a).join(""):"")+i.join(""))}):(el=e,e=c)}else el=e,e=c;return eh[o]={nextPos:el,result:e},e}())===c&&(ec=(eO=eh[eL=32*el+19])?(el=eO.nextPos,eO.result):((ej=eE())!==c&&(ej={type:"literal",value:ej}),eB=ej,eh[eL]={nextPos:el,result:eB},eB)),ec!==c?y=b=j(b,v,ec):(el=y,y=c)):(el=y,y=c),y===c&&(y=el,(b=ek())!==c&&(b={type:"attribute",name:b}),y=b)),eh[ef]={nextPos:el,result:y},y))!==c&&ex()!==c?(93===t.charCodeAt(el)?(h="]",el++):(h=c,eb(_)),h!==c?l=f=p:(el=l,l=c)):(el=l,l=c),eh[m]={nextPos:el,result:l},l))===c&&(tu=function(){var e,r,n,u,a,i,o,s=32*el+23,d=eh[s];if(d)return el=d.nextPos,d.result;if(e=el,46===t.charCodeAt(el)?(r=".",el++):(r=c,eb(B)),r!==c){if((n=eE())!==c){for(u=[],a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(B)),i!==c&&(o=eE())!==c?a=i=[i,o]:(el=a,a=c);a!==c;)u.push(a),a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(B)),i!==c&&(o=eE())!==c?a=i=[i,o]:(el=a,a=c);u!==c?e=r={type:"field",name:u.reduce(function(e,t){return e+t[0]+t[1]},n)}:(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[s]={nextPos:el,result:e},e}())===c&&(tu=(ez=eh[eU=32*el+24])?(el=ez.nextPos,ez.result):(eN=el,":not("===t.substr(el,5)?(eR=":not(",el+=5):(eR=c,eb(er)),eR!==c&&ex()!==c&&(eM=eA())!==c&&ex()!==c?(41===t.charCodeAt(el)?(e$=")",el++):(e$=c,eb(J)),e$!==c?eN=eR={type:"not",selectors:eM}:(el=eN,eN=c)):(el=eN,eN=c),eh[eU]={nextPos:el,result:eN},eN))===c&&(tu=(eH=eh[eZ=32*el+25])?(el=eH.nextPos,eH.result):(eV=el,":matches("===t.substr(el,9)?(eW=":matches(",el+=9):(eW=c,eb(en)),eW!==c&&ex()!==c&&(eq=eA())!==c&&ex()!==c?(41===t.charCodeAt(el)?(eG=")",el++):(eG=c,eb(J)),eG!==c?eV=eW={type:"matches",selectors:eq}:(el=eV,eV=c)):(el=eV,eV=c),eh[eZ]={nextPos:el,result:eV},eV))===c&&(tu=(e0=eh[eY=32*el+26])?(el=e0.nextPos,e0.result):(eK=el,":has("===t.substr(el,5)?(eJ=":has(",el+=5):(eJ=c,eb(eu)),eJ!==c&&ex()!==c&&(eX=function(){var e,r,n,u,a,i,o,s,d=32*el+4,l=eh[d];if(l)return el=l.nextPos,l.result;if(e=el,(r=eD())!==c){for(n=[],u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eD())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);u!==c;)n.push(u),u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eD())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=E(r,n):(el=e,e=c)}else el=e,e=c;return eh[d]={nextPos:el,result:e},e}())!==c&&ex()!==c?(41===t.charCodeAt(el)?(eQ=")",el++):(eQ=c,eb(J)),eQ!==c?eK=eJ={type:"has",selectors:eX}:(el=eK,eK=c)):(el=eK,eK=c),eh[eY]={nextPos:el,result:eK},eK))===c&&(tu=(e4=eh[e3=32*el+27])?(el=e4.nextPos,e4.result):(":first-child"===t.substr(el,12)?(e2=":first-child",el+=12):(e2=c,eb(ea)),e2!==c&&(e2=eF(1)),e1=e2,eh[e3]={nextPos:el,result:e1},e1))===c&&(tu=(e9=eh[e6=32*el+28])?(el=e9.nextPos,e9.result):(":last-child"===t.substr(el,11)?(e8=":last-child",el+=11):(e8=c,eb(ei)),e8!==c&&(e8=eP(1)),e5=e8,eh[e6]={nextPos:el,result:e5},e5))===c&&(tu=function(){var e,r,n,u,a,i=32*el+29,o=eh[i];if(o)return el=o.nextPos,o.result;if(e=el,":nth-child("===t.substr(el,11)?(r=":nth-child(",el+=11):(r=c,eb(eo)),r!==c){if(ex()!==c){if(n=[],q.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G)),u!==c)for(;u!==c;)n.push(u),q.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(J)),a!==c?e=r=eF(parseInt(n.join(""),10)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[i]={nextPos:el,result:e},e}())===c&&(tu=function(){var e,r,n,u,a,i=32*el+30,o=eh[i];if(o)return el=o.nextPos,o.result;if(e=el,":nth-last-child("===t.substr(el,16)?(r=":nth-last-child(",el+=16):(r=c,eb(es)),r!==c){if(ex()!==c){if(n=[],q.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G)),u!==c)for(;u!==c;)n.push(u),q.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(J)),a!==c?e=r=eP(parseInt(n.join(""),10)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[i]={nextPos:el,result:e},e}())===c&&(tu=(tn=eh[tr=32*el+31])?(el=tn.nextPos,tn.result):(e7=el,58===t.charCodeAt(el)?(te=":",el++):(te=c,eb(ed)),te!==c&&(tt=eE())!==c?e7=te={type:"class",name:tt}:(el=e7,e7=c),eh[tr]={nextPos:el,result:e7},e7)),eh[ta]={nextPos:el,result:tu},tu)}function ek(){var e,r,n,u,a,i,o,s=32*el+15,d=eh[s];if(d)return el=d.nextPos,d.result;if(e=el,(r=eE())!==c){for(n=[],u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(B)),a!==c&&(i=eE())!==c?u=a=[a,i]:(el=u,u=c);u!==c;)n.push(u),u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(B)),a!==c&&(i=eE())!==c?u=a=[a,i]:(el=u,u=c);n!==c?(o=r,e=r=[].concat.apply([o],n).join("")):(el=e,e=c)}else el=e,e=c;return eh[s]={nextPos:el,result:e},e}function eF(e){return{type:"nth-child",index:{type:"literal",value:e}}}function eP(e){return{type:"nth-last-child",index:{type:"literal",value:e}}}if((o=p())!==c&&el===t.length)return o;throw o!==c&&el<t.length&&eb({type:"end"}),s=ep,d=ef<t.length?t.charAt(ef):null,n=ef,u=ef<t.length?ef+1:ef,a=ey(n),i=ey(u),l={start:{offset:n,line:a.line,column:a.column},end:{offset:u,line:i.line,column:i.column}},new e(e.buildMessage(s,d),s,d,l)}}}())});function ms(e,t){for(var r=0;r<t.length&&null!=e;++r)e=e[t[r]];return e}var md="function"==typeof WeakMap?new WeakMap:null;function ml(e){if(null==e)return function(){return!0};if(null!=md){var t=md.get(e);return null!=t||(t=mc(e),md.set(e,t)),t}return mc(e)}function mc(e){switch(e.type){case"wildcard":return function(){return!0};case"identifier":var t=e.value.toLowerCase();return function(e,r,n){return t===e[n&&n.nodeTypeKey||"type"].toLowerCase()};case"exactNode":return function(e,t){return 0===t.length};case"field":var r=e.name.split(".");return function(e,t){return function e(t,r,n,u){for(var a=r,i=u;i<n.length;++i){if(null==a)return!1;var o=a[n[i]];if(Array.isArray(o)){for(var s=0;s<o.length;++s)if(e(t,o[s],n,i+1))return!0;return!1}a=o}return t===a}(e,t[r.length-1],r,0)};case"matches":var n=e.selectors.map(ml);return function(e,t,r){for(var u=0;u<n.length;++u)if(n[u](e,t,r))return!0;return!1};case"compound":var u=e.selectors.map(ml);return function(e,t,r){for(var n=0;n<u.length;++n)if(!u[n](e,t,r))return!1;return!0};case"not":var a=e.selectors.map(ml);return function(e,t,r){for(var n=0;n<a.length;++n)if(a[n](e,t,r))return!1;return!0};case"has":var i=e.selectors.map(ml);return function(e,t,r){var n=!1,u=[];return mi.traverse(e,{enter:function(e,t){null!=t&&u.unshift(t);for(var a=0;a<i.length;++a)if(i[a](e,u,r))return n=!0,void this.break()},leave:function(){u.shift()},keys:r&&r.visitorKeys,fallback:r&&r.fallback||"iteration"}),n};case"child":var o=ml(e.left),s=ml(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=ml(e.left),l=ml(e.right);return function(e,t,r){if(l(e,t,r)){for(var n=0,u=t.length;n<u;++n)if(d(t[n],t.slice(n+1),r))return!0}return!1};case"attribute":var c=e.name.split(".");switch(e.operator){case void 0:return function(e){return null!=ms(e,c)};case"=":switch(e.value.type){case"regexp":return function(t){var r=ms(t,c);return"string"==typeof r&&e.value.value.test(r)};case"literal":var f="".concat(e.value.value);return function(e){return f==="".concat(ms(e,c))};case"type":return function(t){return e.value.value===mt(ms(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"!=":switch(e.value.type){case"regexp":return function(t){return!e.value.value.test(ms(t,c))};case"literal":var p="".concat(e.value.value);return function(e){return p!=="".concat(ms(e,c))};case"type":return function(t){return e.value.value!==mt(ms(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"<=":return function(t){return ms(t,c)<=e.value.value};case"<":return function(t){return ms(t,c)<e.value.value};case">":return function(t){return ms(t,c)>e.value.value};case">=":return function(t){return ms(t,c)>=e.value.value}}throw Error("Unknown operator: ".concat(e.operator));case"sibling":var h=ml(e.left),m=ml(e.right);return function(t,r,n){return m(t,r,n)&&mh(t,h,r,"LEFT_SIDE",n)||e.left.subject&&h(t,r,n)&&mh(t,m,r,"RIGHT_SIDE",n)};case"adjacent":var g=ml(e.left),y=ml(e.right);return function(t,r,n){return y(t,r,n)&&mm(t,g,r,"LEFT_SIDE",n)||e.right.subject&&g(t,r,n)&&mm(t,y,r,"RIGHT_SIDE",n)};case"nth-child":var b=e.index.value,v=ml(e.right);return function(e,t,r){return v(e,t,r)&&mg(e,t,b,r)};case"nth-last-child":var x=-e.index.value,E=ml(e.right);return function(e,t,r){return E(e,t,r)&&mg(e,t,x,r)};case"class":var C=e.name.toLowerCase();return function(t,r,n){if(n&&n.matchClass)return n.matchClass(e.name,t,r);if(n&&n.nodeTypeKey)return!1;switch(C){case"statement":if("Statement"===t.type.slice(-9))return!0;case"declaration":return"Declaration"===t.type.slice(-11);case"pattern":if("Pattern"===t.type.slice(-7))return!0;case"expression":return"Expression"===t.type.slice(-10)||"Literal"===t.type.slice(-7)||"Identifier"===t.type&&(0===r.length||"MetaProperty"!==r[0].type)||"MetaProperty"===t.type;case"function":return"FunctionDeclaration"===t.type||"FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type}throw Error("Unknown class name: ".concat(e.name))}}throw Error("Unknown selector type: ".concat(e.type))}function mf(e,t){var r=t&&t.nodeTypeKey||"type",n=e[r];return t&&t.visitorKeys&&t.visitorKeys[n]?t.visitorKeys[n]:mi.VisitorKeys[n]?mi.VisitorKeys[n]:t&&"function"==typeof t.fallback?t.fallback(e):Object.keys(e).filter(function(e){return e!==r})}function mp(e,t){var r=t&&t.nodeTypeKey||"type";return null!==e&&"object"===mt(e)&&"string"==typeof e[r]}function mh(e,t,r,n,u){var a=mr(r,1)[0];if(!a)return!1;for(var i=mf(a,u),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;var l=void 0,c=void 0;"LEFT_SIDE"===n?(l=0,c=d):(l=d+1,c=s.length);for(var f=l;f<c;++f)if(mp(s[f],u)&&t(s[f],r,u))return!0}}return!1}function mm(e,t,r,n,u){var a=mr(r,1)[0];if(!a)return!1;for(var i=mf(a,u),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;if("LEFT_SIDE"===n&&d>0&&mp(s[d-1],u)&&t(s[d-1],r,u)||"RIGHT_SIDE"===n&&d<s.length-1&&mp(s[d+1],u)&&t(s[d+1],r,u))return!0}}return!1}function mg(e,t,r,n){if(0===r)return!1;var u=mr(t,1)[0];if(!u)return!1;for(var a=mf(u,n),i=0;i<a.length;++i){var o=u[a[i]];if(Array.isArray(o)){var s=r<0?o.length+r:r-1;if(s>=0&&s<o.length&&o[s]===e)return!0}}return!1}function my(e,t,r,n){if(t){var u=[],a=ml(t),i=(function e(t,r){if(null==t||"object"!=mt(t))return[];null==r&&(r=t);for(var n=t.subject?[r]:[],u=Object.keys(t),a=0;a<u.length;++a){var i,o=u[a],s=t[o];n.push.apply(n,function(e){if(Array.isArray(e))return mu(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)||mn(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return n})(t).map(ml);mi.traverse(e,{enter:function(e,t){if(null!=t&&u.unshift(t),a(e,u,n)){if(i.length)for(var o=0,s=i.length;o<s;++o){i[o](e,u,n)&&r(e,t,u);for(var d=0,l=u.length;d<l;++d){var c=u.slice(d+1);i[o](u[d],c,n)&&r(u[d],t,c)}}else r(e,t,u)}},leave:function(){u.shift()},keys:n&&n.visitorKeys,fallback:n&&n.fallback||"iteration"})}}function mb(e,t,r){var n=[];return my(e,t,function(e){n.push(e)},r),n}function mv(e){return mo.parse(e)}function mx(e,t,r){return mb(e,mv(t),r)}mx.parse=mv,mx.match=mb,mx.traverse=my,mx.matches=function(e,t,r,n){return!t||!!e&&(r||(r=[]),ml(t)(e,r,n))},mx.query=mx;var mE=/*@__PURE__*/ec(/*#__PURE__*/Object.freeze({__proto__:null,default:mx}));let mC=e=>{let t=me(e);if(0===t)return e;let r=RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")},mA=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},"string"!=typeof e)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if("string"!=typeof r.indent)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(0===t)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))},{replaceTemplateElement:mD}=ub,{isMethodCall:mS,isCallExpression:m_,isTaggedTemplateLiteral:mw}=tH,{isNodeMatches:mk}=nT,mF="template-indent",mP=e=>mS(e.parent,{method:"toMatchInlineSnapshot",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&e.parent.arguments[0]===e&&m_(e.parent.callee.object,{name:"expect",argumentsLength:1,optionalCall:!1,optionalMember:!1}),mT=new Map,mI=e=>(mT.has(e)||mT.set(e,mE.parse(e)),mT.get(e));var mB=/*@__PURE__*/el({create:e=>{let{sourceCode:t}=e,r={tags:["outdent","dedent","gql","sql","html","styled"],functions:["dedent","stripIndent"],selectors:[],comments:["HTML","indent"],...e.options[0]};r.comments=r.comments.map(e=>e.toLowerCase());let n=e=>{let n;let u="__PLACEHOLDER__"+Math.random(),a=e.quasis.map(e=>t.getText(e).slice(1,e.tail?-1:-2)).join(u),i=a.match(/\r?\n/);if(!i)return;let o=i[0],s=t.lines[e.loc.start.line-1].match(/^(\s*)\S/),d=s?s[1]:"";n="string"==typeof r.indent?r.indent:"number"==typeof r.indent?" ".repeat(r.indent):d.startsWith(" ")?" ":" ";let l=mC(a).replaceAll(RegExp(`^${o}|${o}[ ]*$`,"g"),""),c=o+mA(l,1,{indent:d+n})+o+d;if(c!==a)return{node:e,messageId:mF,fix:t=>c.split(u).map((r,n)=>mD(t,e.quasis[n],r))}},u=e=>{if(r.comments.length>0){let n=t.getTokenBefore(e,{includeComments:!0});if(n?.type==="Block"&&r.comments.includes(n.value.trim().toLowerCase()))return!0}if(mP(e)||r.tags.length>0&&mw(e,r.tags)||r.functions.length>0&&"CallExpression"===e.parent.type&&e.parent.arguments.includes(e)&&mk(e.parent.callee,r.functions))return!0;if(r.selectors.length>0){let n=t.getAncestors(e).reverse();if(r.selectors.some(t=>mE.matches(e,mI(t),n)))return!0}return!1};return{TemplateLiteral(e){if(u(e))return n(e)}}},meta:{type:"suggestion",docs:{description:"Fix whitespace-insensitive template indentation.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{indent:{oneOf:[{type:"string",pattern:/^\s+$/.source},{type:"integer",minimum:1}]},tags:{type:"array",uniqueItems:!0,items:{type:"string"}},functions:{type:"array",uniqueItems:!0,items:{type:"string"}},selectors:{type:"array",uniqueItems:!0,items:{type:"string"}},comments:{type:"array",uniqueItems:!0,items:{type:"string"}}}}],messages:{[mF]:"Templates should be properly indented."}}});let{isMethodCall:mj}=tH,{removeSpacesAfter:mL}=ub,mO="no-await-in-promise-methods/error",mN="no-await-in-promise-methods/suggestion",mR=["all","allSettled","any","race"],mM=e=>mj(e,{object:"Promise",methods:mR,optionalMember:!1,optionalCall:!1,argumentsLength:1})&&"ArrayExpression"===e.arguments[0].type;var m$=/*@__PURE__*/el({create:e=>({*CallExpression(t){if(mM(t))for(let r of t.arguments[0].elements)r?.type==="AwaitExpression"&&(yield{node:r,messageId:mO,data:{method:t.callee.property.name},suggest:[{messageId:mN,*fix(t){let{sourceCode:n}=e,u=e.sourceCode.getFirstToken(r);yield t.remove(u),yield mL(u,n,t)}}]})}}),meta:{type:"suggestion",docs:{description:"Disallow using `await` in `Promise` method parameters.",recommended:!0},hasSuggestions:!0,messages:{[mO]:"Promise in `Promise.{{method}}()` should not be awaited.",[mN]:"Remove `await`."}}});let{fixSpaceAroundKeyword:mU,addParenthesizesToReturnOrThrowExpression:mz}=ub,{needsSemicolon:mV,isParenthesized:mW,isOnSameLine:mq}=nT,mG="no-negation-in-equality-check/error",mZ="no-negation-in-equality-check/suggestion",mH=new Set(["===","!==","==","!="]),mK=e=>"BinaryExpression"===e.type&&mH.has(e.operator),mJ=e=>"UnaryExpression"===e.type&&e.prefix&&"!"===e.operator;var mX=/*@__PURE__*/el({create:e=>({BinaryExpression(t){let{operator:r,left:n}=t;if(!(mK(t)&&mJ(n)&&!mJ(n.argument)))return;let{sourceCode:u}=e,a=u.getFirstToken(n),i=`${r.startsWith("!")?"=":"!"}${r.slice(1)}`;return{node:a,messageId:mG,suggest:[{messageId:mZ,data:{operator:i},*fix(e){yield*mU(e,t,u);let o=u.getTokenAfter(a),{parent:s}=t;"ReturnStatement"!==s.type&&"ThrowStatement"!==s.type||mW(t,u)||mq(u.getFirstToken(s),o)||(yield*mz(e,s,u)),yield e.remove(a),mV(u.getTokenBefore(a),u,o.value)&&(yield e.insertTextAfter(a,";"));let d=u.getTokenAfter(n,e=>"Punctuator"===e.type&&e.value===r);yield e.replaceText(d,i)}}]}}}),meta:{type:"problem",docs:{description:"Disallow negated expression in equality check.",recommended:!0},hasSuggestions:!0,messages:{[mG]:"Negated expression in not allowed in equality check.",[mZ]:"Switch to '{{operator}}' check."}}});let{isMethodCall:mQ,isMemberExpression:mY}=tH,{removeArgument:m0}=ub,{isSameReference:m1}=nT,m2="no-length-as-slice-end";var m3=/*@__PURE__*/el({create:e=>{e.on("CallExpression",t=>{if(!mQ(t,{method:"slice",argumentsLength:2,optionalCall:!1}))return;let r=t.arguments[1],n="ChainExpression"===r.type?r.expression:r;if(mY(n,{property:"length",computed:!1})&&m1(t.callee.object,n.object))return{node:n,messageId:m2,fix:t=>m0(t,r,e.sourceCode)}})},meta:{type:"suggestion",docs:{description:"Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.",recommended:!0},fixable:"code",messages:{[m2]:"Passing `….length` as the `end` argument is unnecessary."}}});let{findVariable:m4}=th,{renameVariable:m5}=ub,{isMethodCall:m8}=tH,m6="catch-error-name",m9=e=>("FunctionExpression"===e.parent.type||"ArrowFunctionExpression"===e.parent.type)&&e.parent.params[0]===e&&(m8(e.parent.parent,{method:"then",argumentsLength:2,optionalCall:!1,optionalMember:!1})||m8(e.parent.parent,{method:"catch",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&e.parent.parent.arguments.at(-1)===e.parent;var m7=/*@__PURE__*/el({create:e=>{let t={name:"error",ignore:[],...e.options[0]},{name:r}=t,n=t.ignore.map(e=>e instanceof RegExp?e:RegExp(e,"u")),u=e=>e===r||n.some(t=>t.test(e))||e.endsWith(r)||e.endsWith(r.charAt(0).toUpperCase()+r.slice(1));return{Identifier(t){if(!("CatchClause"===t.parent.type&&t.parent.param===t)&&!m9(t))return;let n=t.name;if(u(n)||u(n.replaceAll(/_+$/g,"")))return;let a=m4(e.sourceCode.getScope(t),t);if(!a||"_"===n&&0===a.references.length)return;let i=rC(r,[a.scope,...a.references.map(({from:e})=>e)]),o={node:t,messageId:m6,data:{originalName:n,fixedName:i||r}};return i&&(o.fix=e=>m5(a,i,e)),o}}},meta:{type:"suggestion",docs:{description:"Enforce a specific parameter name in catch clauses.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{name:{type:"string"},ignore:{type:"array",uniqueItems:!0}}}],messages:{[m6]:"The catch parameter `{{originalName}}` should be named `{{fixedName}}`."}}}),ge={exports:{}};ge.exports,function(e,t){var r,n,u,a,i,o,s,d,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,h={};((e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})})(h,{camelCase:()=>tR,defaultsDeep:()=>t1,kebabCase:()=>t2,lowerFirst:()=>t3,snakeCase:()=>t4,upperFirst:()=>to}),e.exports=((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of f(t))p.call(e,u)||u===r||l(e,u,{get:()=>t[u],enumerable:!(n=c(t,u))||n.enumerable});return e})(l({},"__esModule",{value:!0}),h);var m="object"==typeof ed&&ed&&ed.Object===Object&&ed,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),b=y.Symbol,v=Object.prototype,x=v.hasOwnProperty,E=v.toString,C=b?b.toStringTag:void 0,A=function(e){var t=x.call(e,C),r=e[C];try{e[C]=void 0;var n=!0}catch(e){}var u=E.call(e);return n&&(t?e[C]=r:delete e[C]),u},D=Object.prototype.toString,S=b?b.toStringTag:void 0,_=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?A(e):D.call(e)},w=function(e){return null!=e&&"object"==typeof e},k=function(e,t){for(var r=-1,n=null==e?0:e.length,u=Array(n);++r<n;)u[r]=t(e[r],r,e);return u},F=Array.isArray,P=1/0,T=b?b.prototype:void 0,I=T?T.toString:void 0,B=function e(t){if("string"==typeof t)return t;if(F(t))return k(t,e)+"";if("symbol"==typeof t||w(t)&&"[object Symbol]"==_(t))return I?I.call(t):"";var r=t+"";return"0"==r&&1/t==-P?"-0":r},j=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},L=function(e){return e},O=function(e){if(!j(e))return!1;var t=_(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},N=y["__core-js_shared__"],R=(r=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",M=Function.prototype.toString,$=function(e){if(null!=e){try{return M.call(e)}catch(e){}try{return e+""}catch(e){}}return""},U=/^\[object .+?Constructor\]$/,z=Object.prototype,V=Function.prototype.toString,W=z.hasOwnProperty,q=RegExp("^"+V.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=function(e,t){var r,n=null==e?void 0:e[t];return j(r=n)&&(!R||!(R in r))&&(O(r)?q:U).test($(r))?n:void 0},Z=Object.create,H=function(){function e(){}return function(t){if(!j(t))return{};if(Z)return Z(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),K=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},J=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},X=Date.now,Q=function(){try{var e=G(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Y=(n=Q?function(e,t){return Q(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:L,u=0,a=0,function(){var e=X(),t=16-(e-a);if(a=e,t>0){if(++u>=800)return arguments[0]}else u=0;return n.apply(void 0,arguments)}),ee=/^(?:0|[1-9]\d*)$/,et=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&ee.test(e))&&e>-1&&e%1==0&&e<t},er=function(e,t,r){"__proto__"==t&&Q?Q(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},en=function(e,t){return e===t||e!=e&&t!=t},eu=Object.prototype.hasOwnProperty,ea=function(e,t,r){var n=e[t];eu.call(e,t)&&en(n,r)&&(void 0!==r||t in e)||er(e,t,r)},ei=function(e,t,r,n){var u=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var o=t[a],s=n?n(r[o],e[o],o,r,e):void 0;void 0===s&&(s=e[o]),u?er(r,o,s):ea(r,o,s)}return r},eo=Math.max,es=function(e,t){var r;return Y((r=eo(void 0===(r=t)?e.length-1:r,0),function(){for(var t=arguments,n=-1,u=eo(t.length-r,0),a=Array(u);++n<u;)a[n]=t[r+n];n=-1;for(var i=Array(r+1);++n<r;)i[n]=t[n];return i[r]=L(a),K(e,this,i)}),e+"")},el=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},ec=function(e){return null!=e&&el(e.length)&&!O(e)},ef=function(e,t,r){if(!j(r))return!1;var n=typeof t;return("number"==n?!!(ec(r)&&et(t,r.length)):"string"==n&&t in r)&&en(r[t],e)},ep=Object.prototype,eh=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ep)},em=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},eg=function(e){return w(e)&&"[object Arguments]"==_(e)},ey=Object.prototype,eb=ey.hasOwnProperty,ev=ey.propertyIsEnumerable,ex=eg(function(){return arguments}())?eg:function(e){return w(e)&&eb.call(e,"callee")&&!ev.call(e,"callee")},eE=t&&!t.nodeType&&t,eC=eE&&e&&!e.nodeType&&e,eA=eC&&eC.exports===eE?y.Buffer:void 0,eD=(eA?eA.isBuffer:void 0)||function(){return!1},eS={};eS["[object Float32Array]"]=eS["[object Float64Array]"]=eS["[object Int8Array]"]=eS["[object Int16Array]"]=eS["[object Int32Array]"]=eS["[object Uint8Array]"]=eS["[object Uint8ClampedArray]"]=eS["[object Uint16Array]"]=eS["[object Uint32Array]"]=!0,eS["[object Arguments]"]=eS["[object Array]"]=eS["[object ArrayBuffer]"]=eS["[object Boolean]"]=eS["[object DataView]"]=eS["[object Date]"]=eS["[object Error]"]=eS["[object Function]"]=eS["[object Map]"]=eS["[object Number]"]=eS["[object Object]"]=eS["[object RegExp]"]=eS["[object Set]"]=eS["[object String]"]=eS["[object WeakMap]"]=!1;var e_=t&&!t.nodeType&&t,ew=e_&&e&&!e.nodeType&&e,ek=ew&&ew.exports===e_&&m.process,eF=function(){try{var e=ew&&ew.require&&ew.require("util").types;if(e)return e;return ek&&ek.binding&&ek.binding("util")}catch(e){}}(),eP=eF&&eF.isTypedArray,eT=eP?function(e){return eP(e)}:function(e){return w(e)&&el(e.length)&&!!eS[_(e)]},eI=Object.prototype.hasOwnProperty,eB=function(e,t){var r=F(e),n=!r&&ex(e),u=!r&&!n&&eD(e),a=!r&&!n&&!u&&eT(e),i=r||n||u||a,o=i?em(e.length,String):[],s=o.length;for(var d in e)(t||eI.call(e,d))&&!(i&&("length"==d||u&&("offset"==d||"parent"==d)||a&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||et(d,s)))&&o.push(d);return o},ej=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},eL=Object.prototype.hasOwnProperty,eO=function(e){if(!j(e))return ej(e);var t=eh(e),r=[];for(var n in e)"constructor"==n&&(t||!eL.call(e,n))||r.push(n);return r},eN=function(e){return ec(e)?eB(e,!0):eO(e)},eR=G(Object,"create"),eM=Object.prototype.hasOwnProperty,e$=Object.prototype.hasOwnProperty;function eU(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eU.prototype.clear=function(){this.__data__=eR?eR(null):{},this.size=0},eU.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},eU.prototype.get=function(e){var t=this.__data__;if(eR){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return eM.call(t,e)?t[e]:void 0},eU.prototype.has=function(e){var t=this.__data__;return eR?void 0!==t[e]:e$.call(t,e)},eU.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=eR&&void 0===t?"__lodash_hash_undefined__":t,this};var ez=function(e,t){for(var r=e.length;r--;)if(en(e[r][0],t))return r;return -1},eV=Array.prototype.splice;function eW(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eW.prototype.clear=function(){this.__data__=[],this.size=0},eW.prototype.delete=function(e){var t=this.__data__,r=ez(t,e);return!(r<0)&&(r==t.length-1?t.pop():eV.call(t,r,1),--this.size,!0)},eW.prototype.get=function(e){var t=this.__data__,r=ez(t,e);return r<0?void 0:t[r][1]},eW.prototype.has=function(e){return ez(this.__data__,e)>-1},eW.prototype.set=function(e,t){var r=this.__data__,n=ez(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var eq=G(y,"Map"),eG=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},eZ=function(e,t){var r=e.__data__;return eG(t)?r["string"==typeof t?"string":"hash"]:r.map};function eH(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eH.prototype.clear=function(){this.size=0,this.__data__={hash:new eU,map:new(eq||eW),string:new eU}},eH.prototype.delete=function(e){var t=eZ(this,e).delete(e);return this.size-=t?1:0,t},eH.prototype.get=function(e){return eZ(this,e).get(e)},eH.prototype.has=function(e){return eZ(this,e).has(e)},eH.prototype.set=function(e,t){var r=eZ(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var eK=function(e){return null==e?"":B(e)},eJ=(i=Object.getPrototypeOf,o=Object,function(e){return i(o(e))}),eX=Object.prototype,eQ=Function.prototype.toString,eY=eX.hasOwnProperty,e0=eQ.call(Object),e1=function(e){if(!w(e)||"[object Object]"!=_(e))return!1;var t=eJ(e);if(null===t)return!0;var r=eY.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&eQ.call(r)==e0},e2=function(e,t,r){var n=-1,u=e.length;t<0&&(t=-t>u?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(u);++n<u;)a[n]=e[n+t];return a},e3=function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:e2(e,t,r)},e4=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),e5=function(e){return e4.test(e)},e8="\ud800-\udfff",e6="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",e9="\ud83c[\udffb-\udfff]",e7="[^"+e8+"]",te="(?:\ud83c[\udde6-\uddff]){2}",tt="[\ud800-\udbff][\udc00-\udfff]",tr="(?:"+e6+"|"+e9+")?",tn="[\\ufe0e\\ufe0f]?",tu="(?:\\u200d(?:"+[e7,te,tt].join("|")+")"+tn+tr+")*",ta=RegExp(e9+"(?="+e9+")|(?:"+[e7+e6+"?",e6,te,tt,"["+e8+"]"].join("|")+")"+(tn+tr+tu),"g"),ti=function(e){return function(t){var r,n=e5(t=eK(t))?e5(r=t)?r.match(ta)||[]:r.split(""):void 0,u=n?n[0]:t.charAt(0),a=n?e3(n,1).join(""):t.slice(1);return u[e]()+a}},to=ti("toUpperCase"),ts=function(e,t,r,n){var u=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++u]);++u<a;)r=t(r,e[u],u,e);return r},td=(s={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},function(e){return null==s?void 0:s[e]}),tl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tc=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),tf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,th="\ud800-\udfff",tm="\\u2700-\\u27bf",tg="a-z\\xdf-\\xf6\\xf8-\\xff",ty="A-Z\\xc0-\\xd6\\xd8-\\xde",tb="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tv="['’]",tx="["+tb+"]",tE="["+tg+"]",tC="[^"+th+tb+"\\d+"+tm+tg+ty+"]",tA="(?:\ud83c[\udde6-\uddff]){2}",tD="[\ud800-\udbff][\udc00-\udfff]",tS="["+ty+"]",t_="(?:"+tE+"|"+tC+")",tw="(?:"+tS+"|"+tC+")",tk="(?:"+tv+"(?:d|ll|m|re|s|t|ve))?",tF="(?:"+tv+"(?:D|LL|M|RE|S|T|VE))?",tP="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",tT="[\\ufe0e\\ufe0f]?",tI="(?:\\u200d(?:"+["[^"+th+"]",tA,tD].join("|")+")"+tT+tP+")*",tB="(?:"+["["+tm+"]",tA,tD].join("|")+")"+(tT+tP+tI),tj=RegExp([tS+"?"+tE+"+"+tk+"(?="+[tx,tS,"$"].join("|")+")",tw+"+"+tF+"(?="+[tx,tS+t_,"$"].join("|")+")",tS+"?"+t_+"+"+tk,tS+"+"+tF,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",tB].join("|"),"g"),tL=function(e,t,r){if(e=eK(e),void 0===(t=r?void 0:t)){var n;return(n=e,tp.test(n))?e.match(tj)||[]:e.match(tf)||[]}return e.match(t)||[]},tO=RegExp("['’]","g"),tN=function(e){return function(t){var r;return ts(tL(((r=eK(r=t))&&r.replace(tl,td).replace(tc,"")).replace(tO,"")),e,"")}},tR=tN(function(e,t,r){return t=t.toLowerCase(),e+(r?to(eK(t).toLowerCase()):t)});function tM(e){var t=this.__data__=new eW(e);this.size=t.size}tM.prototype.clear=function(){this.__data__=new eW,this.size=0},tM.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},tM.prototype.get=function(e){return this.__data__.get(e)},tM.prototype.has=function(e){return this.__data__.has(e)},tM.prototype.set=function(e,t){var r=this.__data__;if(r instanceof eW){var n=r.__data__;if(!eq||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new eH(n)}return r.set(e,t),this.size=r.size,this};var t$=t&&!t.nodeType&&t,tU=t$&&e&&!e.nodeType&&e,tz=tU&&tU.exports===t$?y.Buffer:void 0,tV=tz?tz.allocUnsafe:void 0,tW=function(e,t){if(t)return e.slice();var r=e.length,n=tV?tV(r):new e.constructor(r);return e.copy(n),n},tq=y.Uint8Array,tG=function(e){var t=new e.constructor(e.byteLength);return new tq(t).set(new tq(e)),t},tZ=function(e,t){var r=t?tG(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},tH=function(e,t,r){for(var n=-1,u=Object(e),a=r(e),i=a.length;i--;){var o=a[++n];if(!1===t(u[o],o,u))break}return e},tK=function(e,t,r){(void 0===r||en(e[t],r))&&(void 0!==r||t in e)||er(e,t,r)},tJ=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},tX=function(e,t,r,n,u,a,i){var o=tJ(e,r),s=tJ(t,r),d=i.get(s);if(d){tK(e,r,d);return}var l=a?a(o,s,r+"",e,t,i):void 0,c=void 0===l;if(c){var f=F(s),p=!f&&eD(s),h=!f&&!p&&eT(s);(l=s,f||p||h)?F(o)?l=o:w(o)&&ec(o)?l=J(o):p?(c=!1,l=tW(s,!0)):h?(c=!1,l=tZ(s,!0)):l=[]:e1(s)||ex(s)?(l=o,ex(o))?l=ei(o,eN(o)):(!j(o)||O(o))&&(l="function"!=typeof s.constructor||eh(s)?{}:H(eJ(s))):c=!1}c&&(i.set(s,l),u(l,s,n,a,i),i.delete(s)),tK(e,r,l)},tQ=function e(t,r,n,u,a){t!==r&&tH(r,function(i,o){if(a||(a=new tM),j(i))tX(t,r,o,n,e,u,a);else{var s=u?u(tJ(t,o),i,o+"",t,r,a):void 0;void 0===s&&(s=i),tK(t,o,s)}},eN)},tY=function e(t,r,n,u,a,i){return j(t)&&j(r)&&(i.set(r,t),tQ(t,r,void 0,e,i),i.delete(r)),t},t0=(d=function(e,t,r,n){tQ(e,t,r,n)},es(function(e,t){var r=-1,n=t.length,u=n>1?t[n-1]:void 0,a=n>2?t[2]:void 0;for(u=d.length>3&&"function"==typeof u?(n--,u):void 0,a&&ef(t[0],t[1],a)&&(u=n<3?void 0:u,n=1),e=Object(e);++r<n;){var i=t[r];i&&d(e,i,r,u)}return e})),t1=es(function(e){return e.push(void 0,tY),K(t0,void 0,e)}),t2=tN(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),t3=ti("toLowerCase"),t4=tN(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});/*! Bundled license information:
|
|
15
|
+
${r}}`))}(t,a,o))}}}({discriminant:n,ifStatements:i},r,t)),yield o}}}},meta:{type:"suggestion",docs:{description:"Prefer `switch` over multiple `else-if`.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{minimumCases:{type:"integer",minimum:2,default:3},emptyDefaultCase:{enum:["no-default-comment","do-nothing-comment","no-default-case"],default:"no-default-comment"}}}],messages:{[h0]:"Use `switch` instead of multiple `else-if`."}}});let{appendArgument:h8}=ub,{isMethodCall:h6}=tH,h9="require-number-to-fixed-digits-argument";var h7=/*@__PURE__*/el({create:e=>({CallExpression(t){if(!h6(t,{method:"toFixed",argumentsLength:0,optionalCall:!1,optionalMember:!1})||"NewExpression"===t.callee.object.type)return;let{sourceCode:r}=e,[n,u]=r.getLastTokens(t,2);return{loc:{start:n.loc.start,end:u.loc.end},messageId:h9,fix:e=>h8(e,t,"0",r)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the digits argument with `Number#toFixed()`.",recommended:!0},fixable:"code",messages:{[h9]:"Missing the digits argument."}}});let me=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 mr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,u,a,i,o=[],s=!0,d=!1;try{if(a=(r=r.call(e)).next,0===t);else for(;!(s=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){d=!0,u=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw u}}return o}}(e,t)||mn(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 mn(e,t){if(e){if("string"==typeof e)return mu(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)?mu(e,t):void 0}}function mu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ma(e,t){return e(t={exports:{}},t.exports),t.exports}var mi=ma(function(e,t){!function e(t){var r,n,u,a,i,o;function s(e){var t,r,n={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],n[t]="object"==typeof r&&null!==r?s(r):r);return n}function d(e,t){this.parent=e,this.key=t}function l(e,t,r,n){this.node=e,this.path=t,this.wrap=r,this.ref=n}function c(){}function f(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function p(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function h(e,t){for(var r=e.length-1;r>=0;--r)if(e[r].node===t)return!0;return!1}function m(e,t){return(new c).traverse(e,t)}return r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},u={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},n={Break:a={},Skip:i={},Remove:o={}},d.prototype.replace=function(e){this.parent[this.key]=e},d.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},c.prototype.path=function(){var e,t,r,n,u;function a(e,t){if(Array.isArray(t))for(r=0,n=t.length;r<n;++r)e.push(t[r]);else e.push(t)}if(!this.__current.path)return null;for(u=[],e=2,t=this.__leavelist.length;e<t;++e)a(u,this.__leavelist[e].path);return a(u,this.__current.path),u},c.prototype.type=function(){return this.current().type||this.__current.wrap},c.prototype.parents=function(){var e,t,r;for(r=[],e=1,t=this.__leavelist.length;e<t;++e)r.push(this.__leavelist[e].node);return r},c.prototype.current=function(){return this.__current.node},c.prototype.__execute=function(e,t){var r,n;return n=void 0,r=this.__current,this.__current=t,this.__state=null,e&&(n=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=r,n},c.prototype.notify=function(e){this.__state=e},c.prototype.skip=function(){this.notify(i)},c.prototype.break=function(){this.notify(a)},c.prototype.remove=function(){this.notify(o)},c.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===t.fallback?this.__fallback=Object.keys:"function"==typeof t.fallback&&(this.__fallback=t.fallback),this.__keys=u,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},c.prototype.traverse=function(e,t){var r,n,u,o,s,d,c,m,g,y,b,v;for(this.__initialize(e,t),v={},r=this.__worklist,n=this.__leavelist,r.push(new l(e,null,null,null)),n.push(new l(null,null,null,null));r.length;)if((u=r.pop())!==v){if(u.node){if(d=this.__execute(t.enter,u),this.__state===a||d===a)return;if(r.push(v),n.push(u),this.__state===i||d===i)continue;if(s=(o=u.node).type||u.wrap,!(y=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");y=this.__fallback(o)}for(m=y.length;(m-=1)>=0;)if(b=o[c=y[m]]){if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]&&!h(n,b[g])){if(p(s,y[m]))u=new l(b[g],[c,g],"Property",null);else{if(!f(b[g]))continue;u=new l(b[g],[c,g],null,null)}r.push(u)}}else if(f(b)){if(h(n,b))continue;r.push(new l(b,c,null,null))}}}}else if(u=n.pop(),d=this.__execute(t.leave,u),this.__state===a||d===a)return},c.prototype.replace=function(e,t){var r,n,u,s,c,h,m,g,y,b,v,x,E;function C(e){var t,n,u,a;if(e.ref.remove()){for(n=e.ref.key,a=e.ref.parent,t=r.length;t--;)if((u=r[t]).ref&&u.ref.parent===a){if(u.ref.key<n)break;--u.ref.key}}}for(this.__initialize(e,t),v={},r=this.__worklist,n=this.__leavelist,h=new l(e,null,null,new d(x={root:e},"root")),r.push(h),n.push(h);r.length;)if((h=r.pop())!==v){if(void 0!==(c=this.__execute(t.enter,h))&&c!==a&&c!==i&&c!==o&&(h.ref.replace(c),h.node=c),this.__state!==o&&c!==o||(C(h),h.node=null),this.__state===a||c===a)return x.root;if((u=h.node)&&(r.push(v),n.push(h),this.__state!==i&&c!==i)){if(s=u.type||h.wrap,!(y=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");y=this.__fallback(u)}for(m=y.length;(m-=1)>=0;)if(b=u[E=y[m]]){if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]){if(p(s,y[m]))h=new l(b[g],[E,g],"Property",new d(b,g));else{if(!f(b[g]))continue;h=new l(b[g],[E,g],null,new d(b,g))}r.push(h)}}else f(b)&&r.push(new l(b,E,null,new d(u,E)))}}}else if(h=n.pop(),void 0!==(c=this.__execute(t.leave,h))&&c!==a&&c!==i&&c!==o&&h.ref.replace(c),this.__state!==o&&c!==o||C(h),this.__state===a||c===a)break;return x.root},t.Syntax=r,t.traverse=m,t.replace=function(e,t){return(new c).replace(e,t)},t.attachComments=function(e,t,r){var u,a,i,o,d=[];if(!e.range)throw Error("attachComments needs range information");if(!r.length){if(t.length){for(i=0,a=t.length;i<a;i+=1)(u=s(t[i])).extendedRange=[0,e.range[0]],d.push(u);e.leadingComments=d}return e}for(i=0,a=t.length;i<a;i+=1)d.push(function(e,t){var r;return r=function(e,t){var r,n,u,a;for(n=e.length,u=0;n;)t(e[a=u+(r=n>>>1)])?n=r:(u=a+1,n-=r+1);return u}(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}(s(t[i]),r));return o=0,m(e,{enter:function(e){for(var t;o<d.length&&!((t=d[o]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?n.Break:d[o].extendedRange[0]>e.range[1]?n.Skip:void 0}}),o=0,m(e,{leave:function(e){for(var t;o<d.length&&(t=d[o],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?n.Break:d[o].extendedRange[0]>e.range[1]?n.Skip:void 0}}),e},t.VisitorKeys=u,t.VisitorOption=n,t.Controller=c,t.cloneEnvironment=function(){return e({})},t}(t)}),mo=ma(function(e){e.exports&&(e.exports=function(){function e(t,r,n,u){this.message=t,this.expected=r,this.found=n,this.location=u,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.buildMessage=function(e,t){var r={literal:function(e){return'"'+u(e.text)+'"'},class:function(e){var t,r="";for(t=0;t<e.parts.length;t++)r+=e.parts[t]instanceof Array?a(e.parts[t][0])+"-"+a(e.parts[t][1]):a(e.parts[t]);return"["+(e.inverted?"^":"")+r+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function u(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function a(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}return"Expected "+function(e){var t,n,u,a=Array(e.length);for(t=0;t<e.length;t++)a[t]=r[(u=e[t]).type](u);if(a.sort(),a.length>0){for(t=1,n=1;t<a.length;t++)a[t-1]!==a[t]&&(a[n]=a[t],n++);a.length=n}switch(a.length){case 1:return a[0];case 2:return a[0]+" or "+a[1];default:return a.slice(0,-1).join(", ")+", or "+a[a.length-1]}}(e)+" but "+(t?'"'+u(t)+'"':"end of input")+" found."},{SyntaxError:e,parse:function(t,r){r=void 0!==r?r:{};var n,u,a,i,o,s,d,l,c={},f={start:ev},p=ev,h=em(" ",!1),m=/^[^ [\],():#!=><~+.]/,g=eg([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),y=em(">",!1),b=em("~",!1),v=em("+",!1),x=em(",",!1),E=function(e,t){return[e].concat(t.map(function(e){return e[3]}))},C=em("!",!1),A=em("*",!1),D=em("#",!1),S=em("[",!1),_=em("]",!1),w=/^[><!]/,k=eg([">","<","!"],!1,!1),F=em("=",!1),P=function(e){return(e||"")+"="},T=/^[><]/,I=eg([">","<"],!1,!1),B=em(".",!1),j=function(e,t,r){return{type:"attribute",name:e,operator:t,value:r}},L=em('"',!1),O=/^[^\\"]/,N=eg(["\\",'"'],!0,!1),R=em("\\",!1),M={type:"any"},$=function(e,t){return e+t},U=function(e){return{type:"literal",value:e.join("").replace(/\\(.)/g,function(e,t){switch(t){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return" ";case"v":return"\v";default:return t}})}},z=em("'",!1),V=/^[^\\']/,W=eg(["\\","'"],!0,!1),q=/^[0-9]/,G=eg([["0","9"]],!1,!1),Z=em("type(",!1),H=/^[^ )]/,K=eg([" ",")"],!0,!1),J=em(")",!1),X=/^[imsu]/,Q=eg(["i","m","s","u"],!1,!1),Y=em("/",!1),ee=/^[^\/]/,et=eg(["/"],!0,!1),er=em(":not(",!1),en=em(":matches(",!1),eu=em(":has(",!1),ea=em(":first-child",!1),ei=em(":last-child",!1),eo=em(":nth-child(",!1),es=em(":nth-last-child(",!1),ed=em(":",!1),el=0,ec=[{line:1,column:1}],ef=0,ep=[],eh={};if("startRule"in r){if(!(r.startRule in f))throw Error("Can't start parsing from rule \""+r.startRule+'".');p=f[r.startRule]}function em(e,t){return{type:"literal",text:e,ignoreCase:t}}function eg(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function ey(e){var r,n=ec[e];if(n)return n;for(r=e-1;!ec[r];)r--;for(n={line:(n=ec[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return ec[e]=n,n}function eb(e){el<ef||(el>ef&&(ef=el,ep=[]),ep.push(e))}function ev(){var e,t,r,n,u=32*el+0,a=eh[u];return a?(el=a.nextPos,a.result):(e=el,(t=ex())!==c&&(r=eA())!==c&&ex()!==c?e=t=1===(n=r).length?n[0]:{type:"matches",selectors:n}:(el=e,e=c),e===c&&(e=el,(t=ex())!==c&&(t=void 0),e=t),eh[u]={nextPos:el,result:e},e)}function ex(){var e,r,n=32*el+1,u=eh[n];if(u)return el=u.nextPos,u.result;for(e=[],32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(h));r!==c;)e.push(r),32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(h));return eh[n]={nextPos:el,result:e},e}function eE(){var e,r,n,u=32*el+2,a=eh[u];if(a)return el=a.nextPos,a.result;if(r=[],m.test(t.charAt(el))?(n=t.charAt(el),el++):(n=c,eb(g)),n!==c)for(;n!==c;)r.push(n),m.test(t.charAt(el))?(n=t.charAt(el),el++):(n=c,eb(g));else r=c;return r!==c&&(r=r.join("")),e=r,eh[u]={nextPos:el,result:e},e}function eC(){var e,r,n,u=32*el+3,a=eh[u];return a?(el=a.nextPos,a.result):(e=el,(r=ex())!==c?(62===t.charCodeAt(el)?(n=">",el++):(n=c,eb(y)),n!==c&&ex()!==c?e=r="child":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,(r=ex())!==c?(126===t.charCodeAt(el)?(n="~",el++):(n=c,eb(b)),n!==c&&ex()!==c?e=r="sibling":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,(r=ex())!==c?(43===t.charCodeAt(el)?(n="+",el++):(n=c,eb(v)),n!==c&&ex()!==c?e=r="adjacent":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(h)),r!==c&&(n=ex())!==c?e=r="descendant":(el=e,e=c)))),eh[u]={nextPos:el,result:e},e)}function eA(){var e,r,n,u,a,i,o,s,d=32*el+5,l=eh[d];if(l)return el=l.nextPos,l.result;if(e=el,(r=eS())!==c){for(n=[],u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eS())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);u!==c;)n.push(u),u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eS())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=E(r,n):(el=e,e=c)}else el=e,e=c;return eh[d]={nextPos:el,result:e},e}function eD(){var e,t,r,n,u,a=32*el+6,i=eh[a];return i?(el=i.nextPos,i.result):(e=el,(t=eC())===c&&(t=null),t!==c&&(r=eS())!==c?(u=r,e=t=(n=t)?{type:n,left:{type:"exactNode"},right:u}:u):(el=e,e=c),eh[a]={nextPos:el,result:e},e)}function eS(){var e,t,r,n,u,a,i,o=32*el+7,s=eh[o];if(s)return el=s.nextPos,s.result;if(e=el,(t=e_())!==c){for(r=[],n=el,(u=eC())!==c&&(a=e_())!==c?n=u=[u,a]:(el=n,n=c);n!==c;)r.push(n),n=el,(u=eC())!==c&&(a=e_())!==c?n=u=[u,a]:(el=n,n=c);r!==c?(i=t,e=t=r.reduce(function(e,t){return{type:t[0],left:e,right:t[1]}},i)):(el=e,e=c)}else el=e,e=c;return eh[o]={nextPos:el,result:e},e}function e_(){var e,r,n,u,a,i,o,s=32*el+8,d=eh[s];if(d)return el=d.nextPos,d.result;if(e=el,33===t.charCodeAt(el)?(r="!",el++):(r=c,eb(C)),r===c&&(r=null),r!==c){if(n=[],(u=ew())!==c)for(;u!==c;)n.push(u),u=ew();else n=c;n!==c?(a=r,o=1===(i=n).length?i[0]:{type:"compound",selectors:i},a&&(o.subject=!0),e=r=o):(el=e,e=c)}else el=e,e=c;return eh[s]={nextPos:el,result:e},e}function ew(){var e,r,n,u,a,i,o,s,d,l,f,p,h,m,g,y,b,v,ec,ef,ep,em,eg,ey,ev,eC,eS,e_,ew,eT,eI,eB,ej,eL,eO,eN,eR,eM,e$,eU,ez,eV,eW,eq,eG,eZ,eH,eK,eJ,eX,eQ,eY,e0,e1,e2,e3,e4,e5,e8,e6,e9,e7,te,tt,tr,tn,tu,ta=32*el+9,ti=eh[ta];return ti?(el=ti.nextPos,ti.result):((tu=(u=eh[n=32*el+10])?(el=u.nextPos,u.result):(42===t.charCodeAt(el)?(r="*",el++):(r=c,eb(A)),r!==c&&(r={type:"wildcard",value:r}),e=r,eh[n]={nextPos:el,result:e},e))===c&&(tu=(d=eh[s=32*el+11])?(el=d.nextPos,d.result):(a=el,35===t.charCodeAt(el)?(i="#",el++):(i=c,eb(D)),i===c&&(i=null),i!==c&&(o=eE())!==c?a=i={type:"identifier",value:o}:(el=a,a=c),eh[s]={nextPos:el,result:a},a))===c&&(tu=(g=eh[m=32*el+12])?(el=g.nextPos,g.result):(l=el,91===t.charCodeAt(el)?(f="[",el++):(f=c,eb(S)),f!==c&&ex()!==c&&(p=(ep=eh[ef=32*el+16])?(el=ep.nextPos,ep.result):(y=el,(b=ek())!==c&&ex()!==c&&(v=(eC=eh[ev=32*el+14])?(el=eC.nextPos,eC.result):(em=el,33===t.charCodeAt(el)?(eg="!",el++):(eg=c,eb(C)),eg===c&&(eg=null),eg!==c?(61===t.charCodeAt(el)?(ey="=",el++):(ey=c,eb(F)),ey!==c?em=eg=P(eg):(el=em,em=c)):(el=em,em=c),eh[ev]={nextPos:el,result:em},em))!==c&&ex()!==c?((ec=function(){var e,r,n,u,a,i=32*el+20,o=eh[i];if(o)return el=o.nextPos,o.result;if(e=el,"type("===t.substr(el,5)?(r="type(",el+=5):(r=c,eb(Z)),r!==c){if(ex()!==c){if(n=[],H.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(K)),u!==c)for(;u!==c;)n.push(u),H.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(K));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(J)),a!==c?e=r={type:"type",value:n.join("")}:(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[i]={nextPos:el,result:e},e}())===c&&(ec=function(){var e,r,n,u,a,i,o=32*el+22,s=eh[o];if(s)return el=s.nextPos,s.result;if(e=el,47===t.charCodeAt(el)?(r="/",el++):(r=c,eb(Y)),r!==c){if(n=[],ee.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(et)),u!==c)for(;u!==c;)n.push(u),ee.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(et));else n=c;n!==c?(47===t.charCodeAt(el)?(u="/",el++):(u=c,eb(Y)),u!==c?((a=function(){var e,r,n=32*el+21,u=eh[n];if(u)return el=u.nextPos,u.result;if(e=[],X.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(Q)),r!==c)for(;r!==c;)e.push(r),X.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(Q));else e=c;return eh[n]={nextPos:el,result:e},e}())===c&&(a=null),a!==c?(i=a,e=r={type:"regexp",value:new RegExp(n.join(""),i?i.join(""):"")}):(el=e,e=c)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c;return eh[o]={nextPos:el,result:e},e}()),ec!==c?y=b=j(b,v,ec):(el=y,y=c)):(el=y,y=c),y===c&&(y=el,(b=ek())!==c&&ex()!==c&&(v=(eI=eh[eT=32*el+13])?(el=eI.nextPos,eI.result):(eS=el,w.test(t.charAt(el))?(e_=t.charAt(el),el++):(e_=c,eb(k)),e_===c&&(e_=null),e_!==c?(61===t.charCodeAt(el)?(ew="=",el++):(ew=c,eb(F)),ew!==c?eS=e_=P(e_):(el=eS,eS=c)):(el=eS,eS=c),eS===c&&(T.test(t.charAt(el))?(eS=t.charAt(el),el++):(eS=c,eb(I))),eh[eT]={nextPos:el,result:eS},eS))!==c&&ex()!==c?((ec=function(){var e,r,n,u,a,i,o=32*el+17,s=eh[o];if(s)return el=s.nextPos,s.result;if(e=el,34===t.charCodeAt(el)?(r='"',el++):(r=c,eb(L)),r!==c){for(n=[],O.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(N)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));u!==c;)n.push(u),O.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(N)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));n!==c?(34===t.charCodeAt(el)?(u='"',el++):(u=c,eb(L)),u!==c?e=r=U(n):(el=e,e=c)):(el=e,e=c)}else el=e,e=c;if(e===c){if(e=el,39===t.charCodeAt(el)?(r="'",el++):(r=c,eb(z)),r!==c){for(n=[],V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(W)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));u!==c;)n.push(u),V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(W)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));n!==c?(39===t.charCodeAt(el)?(u="'",el++):(u=c,eb(z)),u!==c?e=r=U(n):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}return eh[o]={nextPos:el,result:e},e}())===c&&(ec=function(){var e,r,n,u,a,i,o=32*el+18,s=eh[o];if(s)return el=s.nextPos,s.result;for(e=el,r=el,n=[],q.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));u!==c;)n.push(u),q.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));if(n!==c?(46===t.charCodeAt(el)?(u=".",el++):(u=c,eb(B)),u!==c?r=n=[n,u]:(el=r,r=c)):(el=r,r=c),r===c&&(r=null),r!==c){if(n=[],q.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G)),u!==c)for(;u!==c;)n.push(u),q.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));else n=c;n!==c?(i=n,e=r={type:"literal",value:parseFloat(((a=r)?[].concat.apply([],a).join(""):"")+i.join(""))}):(el=e,e=c)}else el=e,e=c;return eh[o]={nextPos:el,result:e},e}())===c&&(ec=(eO=eh[eL=32*el+19])?(el=eO.nextPos,eO.result):((ej=eE())!==c&&(ej={type:"literal",value:ej}),eB=ej,eh[eL]={nextPos:el,result:eB},eB)),ec!==c?y=b=j(b,v,ec):(el=y,y=c)):(el=y,y=c),y===c&&(y=el,(b=ek())!==c&&(b={type:"attribute",name:b}),y=b)),eh[ef]={nextPos:el,result:y},y))!==c&&ex()!==c?(93===t.charCodeAt(el)?(h="]",el++):(h=c,eb(_)),h!==c?l=f=p:(el=l,l=c)):(el=l,l=c),eh[m]={nextPos:el,result:l},l))===c&&(tu=function(){var e,r,n,u,a,i,o,s=32*el+23,d=eh[s];if(d)return el=d.nextPos,d.result;if(e=el,46===t.charCodeAt(el)?(r=".",el++):(r=c,eb(B)),r!==c){if((n=eE())!==c){for(u=[],a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(B)),i!==c&&(o=eE())!==c?a=i=[i,o]:(el=a,a=c);a!==c;)u.push(a),a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(B)),i!==c&&(o=eE())!==c?a=i=[i,o]:(el=a,a=c);u!==c?e=r={type:"field",name:u.reduce(function(e,t){return e+t[0]+t[1]},n)}:(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[s]={nextPos:el,result:e},e}())===c&&(tu=(ez=eh[eU=32*el+24])?(el=ez.nextPos,ez.result):(eN=el,":not("===t.substr(el,5)?(eR=":not(",el+=5):(eR=c,eb(er)),eR!==c&&ex()!==c&&(eM=eA())!==c&&ex()!==c?(41===t.charCodeAt(el)?(e$=")",el++):(e$=c,eb(J)),e$!==c?eN=eR={type:"not",selectors:eM}:(el=eN,eN=c)):(el=eN,eN=c),eh[eU]={nextPos:el,result:eN},eN))===c&&(tu=(eH=eh[eZ=32*el+25])?(el=eH.nextPos,eH.result):(eV=el,":matches("===t.substr(el,9)?(eW=":matches(",el+=9):(eW=c,eb(en)),eW!==c&&ex()!==c&&(eq=eA())!==c&&ex()!==c?(41===t.charCodeAt(el)?(eG=")",el++):(eG=c,eb(J)),eG!==c?eV=eW={type:"matches",selectors:eq}:(el=eV,eV=c)):(el=eV,eV=c),eh[eZ]={nextPos:el,result:eV},eV))===c&&(tu=(e0=eh[eY=32*el+26])?(el=e0.nextPos,e0.result):(eK=el,":has("===t.substr(el,5)?(eJ=":has(",el+=5):(eJ=c,eb(eu)),eJ!==c&&ex()!==c&&(eX=function(){var e,r,n,u,a,i,o,s,d=32*el+4,l=eh[d];if(l)return el=l.nextPos,l.result;if(e=el,(r=eD())!==c){for(n=[],u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eD())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);u!==c;)n.push(u),u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eD())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=E(r,n):(el=e,e=c)}else el=e,e=c;return eh[d]={nextPos:el,result:e},e}())!==c&&ex()!==c?(41===t.charCodeAt(el)?(eQ=")",el++):(eQ=c,eb(J)),eQ!==c?eK=eJ={type:"has",selectors:eX}:(el=eK,eK=c)):(el=eK,eK=c),eh[eY]={nextPos:el,result:eK},eK))===c&&(tu=(e4=eh[e3=32*el+27])?(el=e4.nextPos,e4.result):(":first-child"===t.substr(el,12)?(e2=":first-child",el+=12):(e2=c,eb(ea)),e2!==c&&(e2=eF(1)),e1=e2,eh[e3]={nextPos:el,result:e1},e1))===c&&(tu=(e9=eh[e6=32*el+28])?(el=e9.nextPos,e9.result):(":last-child"===t.substr(el,11)?(e8=":last-child",el+=11):(e8=c,eb(ei)),e8!==c&&(e8=eP(1)),e5=e8,eh[e6]={nextPos:el,result:e5},e5))===c&&(tu=function(){var e,r,n,u,a,i=32*el+29,o=eh[i];if(o)return el=o.nextPos,o.result;if(e=el,":nth-child("===t.substr(el,11)?(r=":nth-child(",el+=11):(r=c,eb(eo)),r!==c){if(ex()!==c){if(n=[],q.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G)),u!==c)for(;u!==c;)n.push(u),q.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(J)),a!==c?e=r=eF(parseInt(n.join(""),10)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[i]={nextPos:el,result:e},e}())===c&&(tu=function(){var e,r,n,u,a,i=32*el+30,o=eh[i];if(o)return el=o.nextPos,o.result;if(e=el,":nth-last-child("===t.substr(el,16)?(r=":nth-last-child(",el+=16):(r=c,eb(es)),r!==c){if(ex()!==c){if(n=[],q.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G)),u!==c)for(;u!==c;)n.push(u),q.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(J)),a!==c?e=r=eP(parseInt(n.join(""),10)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[i]={nextPos:el,result:e},e}())===c&&(tu=(tn=eh[tr=32*el+31])?(el=tn.nextPos,tn.result):(e7=el,58===t.charCodeAt(el)?(te=":",el++):(te=c,eb(ed)),te!==c&&(tt=eE())!==c?e7=te={type:"class",name:tt}:(el=e7,e7=c),eh[tr]={nextPos:el,result:e7},e7)),eh[ta]={nextPos:el,result:tu},tu)}function ek(){var e,r,n,u,a,i,o,s=32*el+15,d=eh[s];if(d)return el=d.nextPos,d.result;if(e=el,(r=eE())!==c){for(n=[],u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(B)),a!==c&&(i=eE())!==c?u=a=[a,i]:(el=u,u=c);u!==c;)n.push(u),u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(B)),a!==c&&(i=eE())!==c?u=a=[a,i]:(el=u,u=c);n!==c?(o=r,e=r=[].concat.apply([o],n).join("")):(el=e,e=c)}else el=e,e=c;return eh[s]={nextPos:el,result:e},e}function eF(e){return{type:"nth-child",index:{type:"literal",value:e}}}function eP(e){return{type:"nth-last-child",index:{type:"literal",value:e}}}if((o=p())!==c&&el===t.length)return o;throw o!==c&&el<t.length&&eb({type:"end"}),s=ep,d=ef<t.length?t.charAt(ef):null,n=ef,u=ef<t.length?ef+1:ef,a=ey(n),i=ey(u),l={start:{offset:n,line:a.line,column:a.column},end:{offset:u,line:i.line,column:i.column}},new e(e.buildMessage(s,d),s,d,l)}}}())});function ms(e,t){for(var r=0;r<t.length&&null!=e;++r)e=e[t[r]];return e}var md="function"==typeof WeakMap?new WeakMap:null;function ml(e){if(null==e)return function(){return!0};if(null!=md){var t=md.get(e);return null!=t||(t=mc(e),md.set(e,t)),t}return mc(e)}function mc(e){switch(e.type){case"wildcard":return function(){return!0};case"identifier":var t=e.value.toLowerCase();return function(e,r,n){return t===e[n&&n.nodeTypeKey||"type"].toLowerCase()};case"exactNode":return function(e,t){return 0===t.length};case"field":var r=e.name.split(".");return function(e,t){return function e(t,r,n,u){for(var a=r,i=u;i<n.length;++i){if(null==a)return!1;var o=a[n[i]];if(Array.isArray(o)){for(var s=0;s<o.length;++s)if(e(t,o[s],n,i+1))return!0;return!1}a=o}return t===a}(e,t[r.length-1],r,0)};case"matches":var n=e.selectors.map(ml);return function(e,t,r){for(var u=0;u<n.length;++u)if(n[u](e,t,r))return!0;return!1};case"compound":var u=e.selectors.map(ml);return function(e,t,r){for(var n=0;n<u.length;++n)if(!u[n](e,t,r))return!1;return!0};case"not":var a=e.selectors.map(ml);return function(e,t,r){for(var n=0;n<a.length;++n)if(a[n](e,t,r))return!1;return!0};case"has":var i=e.selectors.map(ml);return function(e,t,r){var n=!1,u=[];return mi.traverse(e,{enter:function(e,t){null!=t&&u.unshift(t);for(var a=0;a<i.length;++a)if(i[a](e,u,r))return n=!0,void this.break()},leave:function(){u.shift()},keys:r&&r.visitorKeys,fallback:r&&r.fallback||"iteration"}),n};case"child":var o=ml(e.left),s=ml(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=ml(e.left),l=ml(e.right);return function(e,t,r){if(l(e,t,r)){for(var n=0,u=t.length;n<u;++n)if(d(t[n],t.slice(n+1),r))return!0}return!1};case"attribute":var c=e.name.split(".");switch(e.operator){case void 0:return function(e){return null!=ms(e,c)};case"=":switch(e.value.type){case"regexp":return function(t){var r=ms(t,c);return"string"==typeof r&&e.value.value.test(r)};case"literal":var f="".concat(e.value.value);return function(e){return f==="".concat(ms(e,c))};case"type":return function(t){return e.value.value===mt(ms(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"!=":switch(e.value.type){case"regexp":return function(t){return!e.value.value.test(ms(t,c))};case"literal":var p="".concat(e.value.value);return function(e){return p!=="".concat(ms(e,c))};case"type":return function(t){return e.value.value!==mt(ms(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"<=":return function(t){return ms(t,c)<=e.value.value};case"<":return function(t){return ms(t,c)<e.value.value};case">":return function(t){return ms(t,c)>e.value.value};case">=":return function(t){return ms(t,c)>=e.value.value}}throw Error("Unknown operator: ".concat(e.operator));case"sibling":var h=ml(e.left),m=ml(e.right);return function(t,r,n){return m(t,r,n)&&mh(t,h,r,"LEFT_SIDE",n)||e.left.subject&&h(t,r,n)&&mh(t,m,r,"RIGHT_SIDE",n)};case"adjacent":var g=ml(e.left),y=ml(e.right);return function(t,r,n){return y(t,r,n)&&mm(t,g,r,"LEFT_SIDE",n)||e.right.subject&&g(t,r,n)&&mm(t,y,r,"RIGHT_SIDE",n)};case"nth-child":var b=e.index.value,v=ml(e.right);return function(e,t,r){return v(e,t,r)&&mg(e,t,b,r)};case"nth-last-child":var x=-e.index.value,E=ml(e.right);return function(e,t,r){return E(e,t,r)&&mg(e,t,x,r)};case"class":var C=e.name.toLowerCase();return function(t,r,n){if(n&&n.matchClass)return n.matchClass(e.name,t,r);if(n&&n.nodeTypeKey)return!1;switch(C){case"statement":if("Statement"===t.type.slice(-9))return!0;case"declaration":return"Declaration"===t.type.slice(-11);case"pattern":if("Pattern"===t.type.slice(-7))return!0;case"expression":return"Expression"===t.type.slice(-10)||"Literal"===t.type.slice(-7)||"Identifier"===t.type&&(0===r.length||"MetaProperty"!==r[0].type)||"MetaProperty"===t.type;case"function":return"FunctionDeclaration"===t.type||"FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type}throw Error("Unknown class name: ".concat(e.name))}}throw Error("Unknown selector type: ".concat(e.type))}function mf(e,t){var r=t&&t.nodeTypeKey||"type",n=e[r];return t&&t.visitorKeys&&t.visitorKeys[n]?t.visitorKeys[n]:mi.VisitorKeys[n]?mi.VisitorKeys[n]:t&&"function"==typeof t.fallback?t.fallback(e):Object.keys(e).filter(function(e){return e!==r})}function mp(e,t){var r=t&&t.nodeTypeKey||"type";return null!==e&&"object"===mt(e)&&"string"==typeof e[r]}function mh(e,t,r,n,u){var a=mr(r,1)[0];if(!a)return!1;for(var i=mf(a,u),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;var l=void 0,c=void 0;"LEFT_SIDE"===n?(l=0,c=d):(l=d+1,c=s.length);for(var f=l;f<c;++f)if(mp(s[f],u)&&t(s[f],r,u))return!0}}return!1}function mm(e,t,r,n,u){var a=mr(r,1)[0];if(!a)return!1;for(var i=mf(a,u),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;if("LEFT_SIDE"===n&&d>0&&mp(s[d-1],u)&&t(s[d-1],r,u)||"RIGHT_SIDE"===n&&d<s.length-1&&mp(s[d+1],u)&&t(s[d+1],r,u))return!0}}return!1}function mg(e,t,r,n){if(0===r)return!1;var u=mr(t,1)[0];if(!u)return!1;for(var a=mf(u,n),i=0;i<a.length;++i){var o=u[a[i]];if(Array.isArray(o)){var s=r<0?o.length+r:r-1;if(s>=0&&s<o.length&&o[s]===e)return!0}}return!1}function my(e,t,r,n){if(t){var u=[],a=ml(t),i=(function e(t,r){if(null==t||"object"!=mt(t))return[];null==r&&(r=t);for(var n=t.subject?[r]:[],u=Object.keys(t),a=0;a<u.length;++a){var i,o=u[a],s=t[o];n.push.apply(n,function(e){if(Array.isArray(e))return mu(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)||mn(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return n})(t).map(ml);mi.traverse(e,{enter:function(e,t){if(null!=t&&u.unshift(t),a(e,u,n)){if(i.length)for(var o=0,s=i.length;o<s;++o){i[o](e,u,n)&&r(e,t,u);for(var d=0,l=u.length;d<l;++d){var c=u.slice(d+1);i[o](u[d],c,n)&&r(u[d],t,c)}}else r(e,t,u)}},leave:function(){u.shift()},keys:n&&n.visitorKeys,fallback:n&&n.fallback||"iteration"})}}function mb(e,t,r){var n=[];return my(e,t,function(e){n.push(e)},r),n}function mv(e){return mo.parse(e)}function mx(e,t,r){return mb(e,mv(t),r)}mx.parse=mv,mx.match=mb,mx.traverse=my,mx.matches=function(e,t,r,n){return!t||!!e&&(r||(r=[]),ml(t)(e,r,n))},mx.query=mx;var mE=/*@__PURE__*/ec(/*#__PURE__*/Object.freeze({__proto__:null,default:mx}));let mC=e=>{let t=me(e);if(0===t)return e;let r=RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")},mA=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},"string"!=typeof e)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if("string"!=typeof r.indent)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(0===t)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))},{replaceTemplateElement:mD}=ub,{isMethodCall:mS,isCallExpression:m_,isTaggedTemplateLiteral:mw}=tH,{isNodeMatches:mk}=nT,mF="template-indent",mP=e=>mS(e.parent,{method:"toMatchInlineSnapshot",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&e.parent.arguments[0]===e&&m_(e.parent.callee.object,{name:"expect",argumentsLength:1,optionalCall:!1,optionalMember:!1}),mT=new Map,mI=e=>(mT.has(e)||mT.set(e,mE.parse(e)),mT.get(e));var mB=/*@__PURE__*/el({create:e=>{let{sourceCode:t}=e,r={tags:["outdent","dedent","gql","sql","html","styled"],functions:["dedent","stripIndent"],selectors:[],comments:["HTML","indent"],...e.options[0]};r.comments=r.comments.map(e=>e.toLowerCase());let n=e=>{let n;let u="__PLACEHOLDER__"+Math.random(),a=e.quasis.map(e=>t.getText(e).slice(1,e.tail?-1:-2)).join(u),i=a.match(/\r?\n/);if(!i)return;let o=i[0],s=t.lines[e.loc.start.line-1].match(/^(\s*)\S/),d=s?s[1]:"";n="string"==typeof r.indent?r.indent:"number"==typeof r.indent?" ".repeat(r.indent):d.startsWith(" ")?" ":" ";let l=mC(a).replaceAll(RegExp(`^${o}|${o}[ ]*$`,"g"),""),c=o+mA(l,1,{indent:d+n})+o+d;if(c!==a)return{node:e,messageId:mF,fix:t=>c.split(u).map((r,n)=>mD(t,e.quasis[n],r))}},u=e=>{if(r.comments.length>0){let n=t.getTokenBefore(e,{includeComments:!0});if(n?.type==="Block"&&r.comments.includes(n.value.trim().toLowerCase()))return!0}if(mP(e)||r.tags.length>0&&mw(e,r.tags)||r.functions.length>0&&"CallExpression"===e.parent.type&&e.parent.arguments.includes(e)&&mk(e.parent.callee,r.functions))return!0;if(r.selectors.length>0){let n=t.getAncestors(e).reverse();if(r.selectors.some(t=>mE.matches(e,mI(t),n)))return!0}return!1};return{TemplateLiteral(e){if(u(e))return n(e)}}},meta:{type:"suggestion",docs:{description:"Fix whitespace-insensitive template indentation.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{indent:{oneOf:[{type:"string",pattern:/^\s+$/.source},{type:"integer",minimum:1}]},tags:{type:"array",uniqueItems:!0,items:{type:"string"}},functions:{type:"array",uniqueItems:!0,items:{type:"string"}},selectors:{type:"array",uniqueItems:!0,items:{type:"string"}},comments:{type:"array",uniqueItems:!0,items:{type:"string"}}}}],messages:{[mF]:"Templates should be properly indented."}}});let{isMethodCall:mj}=tH,{removeSpacesAfter:mL}=ub,mO="no-await-in-promise-methods/error",mN="no-await-in-promise-methods/suggestion",mR=["all","allSettled","any","race"],mM=e=>mj(e,{object:"Promise",methods:mR,optionalMember:!1,optionalCall:!1,argumentsLength:1})&&"ArrayExpression"===e.arguments[0].type;var m$=/*@__PURE__*/el({create:e=>({*CallExpression(t){if(mM(t))for(let r of t.arguments[0].elements)r?.type==="AwaitExpression"&&(yield{node:r,messageId:mO,data:{method:t.callee.property.name},suggest:[{messageId:mN,*fix(t){let{sourceCode:n}=e,u=e.sourceCode.getFirstToken(r);yield t.remove(u),yield mL(u,n,t)}}]})}}),meta:{type:"suggestion",docs:{description:"Disallow using `await` in `Promise` method parameters.",recommended:!0},hasSuggestions:!0,messages:{[mO]:"Promise in `Promise.{{method}}()` should not be awaited.",[mN]:"Remove `await`."}}});let{fixSpaceAroundKeyword:mU,addParenthesizesToReturnOrThrowExpression:mz}=ub,{needsSemicolon:mV,isParenthesized:mW,isOnSameLine:mq}=nT,mG="no-negation-in-equality-check/error",mZ="no-negation-in-equality-check/suggestion",mH=new Set(["===","!==","==","!="]),mK=e=>"BinaryExpression"===e.type&&mH.has(e.operator),mJ=e=>"UnaryExpression"===e.type&&e.prefix&&"!"===e.operator;var mX=/*@__PURE__*/el({create:e=>({BinaryExpression(t){let{operator:r,left:n}=t;if(!(mK(t)&&mJ(n)&&!mJ(n.argument)))return;let{sourceCode:u}=e,a=u.getFirstToken(n),i=`${r.startsWith("!")?"=":"!"}${r.slice(1)}`;return{node:a,messageId:mG,suggest:[{messageId:mZ,data:{operator:i},*fix(e){yield*mU(e,t,u);let o=u.getTokenAfter(a),{parent:s}=t;"ReturnStatement"!==s.type&&"ThrowStatement"!==s.type||mW(t,u)||mq(u.getFirstToken(s),o)||(yield*mz(e,s,u)),yield e.remove(a),mV(u.getTokenBefore(a),u,o.value)&&(yield e.insertTextAfter(a,";"));let d=u.getTokenAfter(n,e=>"Punctuator"===e.type&&e.value===r);yield e.replaceText(d,i)}}]}}}),meta:{type:"problem",docs:{description:"Disallow negated expression in equality check.",recommended:!0},hasSuggestions:!0,messages:{[mG]:"Negated expression in not allowed in equality check.",[mZ]:"Switch to '{{operator}}' check."}}});let{isMethodCall:mQ,isMemberExpression:mY}=tH,{removeArgument:m0}=ub,{isSameReference:m1}=nT,m2="no-length-as-slice-end";var m3=/*@__PURE__*/el({create:e=>{e.on("CallExpression",t=>{if(!mQ(t,{method:"slice",argumentsLength:2,optionalCall:!1}))return;let r=t.arguments[1],n="ChainExpression"===r.type?r.expression:r;if(mY(n,{property:"length",computed:!1})&&m1(t.callee.object,n.object))return{node:n,messageId:m2,fix:t=>m0(t,r,e.sourceCode)}})},meta:{type:"suggestion",docs:{description:"Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.",recommended:!0},fixable:"code",messages:{[m2]:"Passing `….length` as the `end` argument is unnecessary."}}});let{findVariable:m4}=th,{renameVariable:m5}=ub,{isMethodCall:m8}=tH,m6="catch-error-name",m9=e=>("FunctionExpression"===e.parent.type||"ArrowFunctionExpression"===e.parent.type)&&e.parent.params[0]===e&&(m8(e.parent.parent,{method:"then",argumentsLength:2,optionalCall:!1,optionalMember:!1})||m8(e.parent.parent,{method:"catch",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&e.parent.parent.arguments.at(-1)===e.parent;var m7=/*@__PURE__*/el({create:e=>{let t={name:"error",ignore:[],...e.options[0]},{name:r}=t,n=t.ignore.map(e=>e instanceof RegExp?e:RegExp(e,"u")),u=e=>e===r||n.some(t=>t.test(e))||e.endsWith(r)||e.endsWith(r.charAt(0).toUpperCase()+r.slice(1));return{Identifier(t){if(!("CatchClause"===t.parent.type&&t.parent.param===t)&&!m9(t))return;let n=t.name;if(u(n)||u(n.replaceAll(/_+$/g,"")))return;let a=m4(e.sourceCode.getScope(t),t);if(!a||"_"===n&&0===a.references.length)return;let i=rC(r,[a.scope,...a.references.map(({from:e})=>e)]),o={node:t,messageId:m6,data:{originalName:n,fixedName:i||r}};return i&&(o.fix=e=>m5(a,i,e)),o}}},meta:{type:"suggestion",docs:{description:"Enforce a specific parameter name in catch clauses.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{name:{type:"string"},ignore:{type:"array",uniqueItems:!0}}}],messages:{[m6]:"The catch parameter `{{originalName}}` should be named `{{fixedName}}`."}}}),ge={exports:{}};ge.exports,function(e,t){var r,n,u,a,i,o,s,d,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,h={};((e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})})(h,{camelCase:()=>tR,defaultsDeep:()=>t1,kebabCase:()=>t2,lowerFirst:()=>t3,snakeCase:()=>t4,upperFirst:()=>to}),e.exports=((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of f(t))p.call(e,u)||u===r||l(e,u,{get:()=>t[u],enumerable:!(n=c(t,u))||n.enumerable});return e})(l({},"__esModule",{value:!0}),h);var m="object"==typeof ed&&ed&&ed.Object===Object&&ed,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),b=y.Symbol,v=Object.prototype,x=v.hasOwnProperty,E=v.toString,C=b?b.toStringTag:void 0,A=function(e){var t=x.call(e,C),r=e[C];try{e[C]=void 0;var n=!0}catch(e){}var u=E.call(e);return n&&(t?e[C]=r:delete e[C]),u},D=Object.prototype.toString,S=b?b.toStringTag:void 0,_=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?A(e):D.call(e)},w=function(e){return null!=e&&"object"==typeof e},k=function(e,t){for(var r=-1,n=null==e?0:e.length,u=Array(n);++r<n;)u[r]=t(e[r],r,e);return u},F=Array.isArray,P=1/0,T=b?b.prototype:void 0,I=T?T.toString:void 0,B=function e(t){if("string"==typeof t)return t;if(F(t))return k(t,e)+"";if("symbol"==typeof t||w(t)&&"[object Symbol]"==_(t))return I?I.call(t):"";var r=t+"";return"0"==r&&1/t==-P?"-0":r},j=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},L=function(e){return e},O=function(e){if(!j(e))return!1;var t=_(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},N=y["__core-js_shared__"],R=(r=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",M=Function.prototype.toString,$=function(e){if(null!=e){try{return M.call(e)}catch(e){}try{return e+""}catch(e){}}return""},U=/^\[object .+?Constructor\]$/,z=Object.prototype,V=Function.prototype.toString,W=z.hasOwnProperty,q=RegExp("^"+V.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=function(e,t){var r,n=null==e?void 0:e[t];return j(r=n)&&(!R||!(R in r))&&(O(r)?q:U).test($(r))?n:void 0},Z=Object.create,H=function(){function e(){}return function(t){if(!j(t))return{};if(Z)return Z(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),K=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},J=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},X=Date.now,Q=function(){try{var e=G(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Y=(n=Q?function(e,t){return Q(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:L,u=0,a=0,function(){var e=X(),t=16-(e-a);if(a=e,t>0){if(++u>=800)return arguments[0]}else u=0;return n.apply(void 0,arguments)}),ee=/^(?:0|[1-9]\d*)$/,et=function(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&ee.test(e))&&e>-1&&e%1==0&&e<t},er=function(e,t,r){"__proto__"==t&&Q?Q(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},en=function(e,t){return e===t||e!=e&&t!=t},eu=Object.prototype.hasOwnProperty,ea=function(e,t,r){var n=e[t];eu.call(e,t)&&en(n,r)&&(void 0!==r||t in e)||er(e,t,r)},ei=function(e,t,r,n){var u=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var o=t[a],s=n?n(r[o],e[o],o,r,e):void 0;void 0===s&&(s=e[o]),u?er(r,o,s):ea(r,o,s)}return r},eo=Math.max,es=function(e,t){var r;return Y((r=eo(void 0===(r=t)?e.length-1:r,0),function(){for(var t=arguments,n=-1,u=eo(t.length-r,0),a=Array(u);++n<u;)a[n]=t[r+n];n=-1;for(var i=Array(r+1);++n<r;)i[n]=t[n];return i[r]=L(a),K(e,this,i)}),e+"")},el=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff},ec=function(e){return null!=e&&el(e.length)&&!O(e)},ef=function(e,t,r){if(!j(r))return!1;var n=typeof t;return("number"==n?!!(ec(r)&&et(t,r.length)):"string"==n&&t in r)&&en(r[t],e)},ep=Object.prototype,eh=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ep)},em=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},eg=function(e){return w(e)&&"[object Arguments]"==_(e)},ey=Object.prototype,eb=ey.hasOwnProperty,ev=ey.propertyIsEnumerable,ex=eg(function(){return arguments}())?eg:function(e){return w(e)&&eb.call(e,"callee")&&!ev.call(e,"callee")},eE=t&&!t.nodeType&&t,eC=eE&&e&&!e.nodeType&&e,eA=eC&&eC.exports===eE?y.Buffer:void 0,eD=(eA?eA.isBuffer:void 0)||function(){return!1},eS={};eS["[object Float32Array]"]=eS["[object Float64Array]"]=eS["[object Int8Array]"]=eS["[object Int16Array]"]=eS["[object Int32Array]"]=eS["[object Uint8Array]"]=eS["[object Uint8ClampedArray]"]=eS["[object Uint16Array]"]=eS["[object Uint32Array]"]=!0,eS["[object Arguments]"]=eS["[object Array]"]=eS["[object ArrayBuffer]"]=eS["[object Boolean]"]=eS["[object DataView]"]=eS["[object Date]"]=eS["[object Error]"]=eS["[object Function]"]=eS["[object Map]"]=eS["[object Number]"]=eS["[object Object]"]=eS["[object RegExp]"]=eS["[object Set]"]=eS["[object String]"]=eS["[object WeakMap]"]=!1;var e_=t&&!t.nodeType&&t,ew=e_&&e&&!e.nodeType&&e,ek=ew&&ew.exports===e_&&m.process,eF=function(){try{var e=ew&&ew.require&&ew.require("util").types;if(e)return e;return ek&&ek.binding&&ek.binding("util")}catch(e){}}(),eP=eF&&eF.isTypedArray,eT=eP?function(e){return eP(e)}:function(e){return w(e)&&el(e.length)&&!!eS[_(e)]},eI=Object.prototype.hasOwnProperty,eB=function(e,t){var r=F(e),n=!r&&ex(e),u=!r&&!n&&eD(e),a=!r&&!n&&!u&&eT(e),i=r||n||u||a,o=i?em(e.length,String):[],s=o.length;for(var d in e)(t||eI.call(e,d))&&!(i&&("length"==d||u&&("offset"==d||"parent"==d)||a&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||et(d,s)))&&o.push(d);return o},ej=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},eL=Object.prototype.hasOwnProperty,eO=function(e){if(!j(e))return ej(e);var t=eh(e),r=[];for(var n in e)"constructor"==n&&(t||!eL.call(e,n))||r.push(n);return r},eN=function(e){return ec(e)?eB(e,!0):eO(e)},eR=G(Object,"create"),eM=Object.prototype.hasOwnProperty,e$=Object.prototype.hasOwnProperty;function eU(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eU.prototype.clear=function(){this.__data__=eR?eR(null):{},this.size=0},eU.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},eU.prototype.get=function(e){var t=this.__data__;if(eR){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return eM.call(t,e)?t[e]:void 0},eU.prototype.has=function(e){var t=this.__data__;return eR?void 0!==t[e]:e$.call(t,e)},eU.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=eR&&void 0===t?"__lodash_hash_undefined__":t,this};var ez=function(e,t){for(var r=e.length;r--;)if(en(e[r][0],t))return r;return -1},eV=Array.prototype.splice;function eW(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eW.prototype.clear=function(){this.__data__=[],this.size=0},eW.prototype.delete=function(e){var t=this.__data__,r=ez(t,e);return!(r<0)&&(r==t.length-1?t.pop():eV.call(t,r,1),--this.size,!0)},eW.prototype.get=function(e){var t=this.__data__,r=ez(t,e);return r<0?void 0:t[r][1]},eW.prototype.has=function(e){return ez(this.__data__,e)>-1},eW.prototype.set=function(e,t){var r=this.__data__,n=ez(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var eq=G(y,"Map"),eG=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},eZ=function(e,t){var r=e.__data__;return eG(t)?r["string"==typeof t?"string":"hash"]:r.map};function eH(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eH.prototype.clear=function(){this.size=0,this.__data__={hash:new eU,map:new(eq||eW),string:new eU}},eH.prototype.delete=function(e){var t=eZ(this,e).delete(e);return this.size-=t?1:0,t},eH.prototype.get=function(e){return eZ(this,e).get(e)},eH.prototype.has=function(e){return eZ(this,e).has(e)},eH.prototype.set=function(e,t){var r=eZ(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var eK=function(e){return null==e?"":B(e)},eJ=(i=Object.getPrototypeOf,o=Object,function(e){return i(o(e))}),eX=Object.prototype,eQ=Function.prototype.toString,eY=eX.hasOwnProperty,e0=eQ.call(Object),e1=function(e){if(!w(e)||"[object Object]"!=_(e))return!1;var t=eJ(e);if(null===t)return!0;var r=eY.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&eQ.call(r)==e0},e2=function(e,t,r){var n=-1,u=e.length;t<0&&(t=-t>u?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(u);++n<u;)a[n]=e[n+t];return a},e3=function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:e2(e,t,r)},e4=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),e5=function(e){return e4.test(e)},e8="\ud800-\udfff",e6="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",e9="\ud83c[\udffb-\udfff]",e7="[^"+e8+"]",te="(?:\ud83c[\udde6-\uddff]){2}",tt="[\ud800-\udbff][\udc00-\udfff]",tr="(?:"+e6+"|"+e9+")?",tn="[\\ufe0e\\ufe0f]?",tu="(?:\\u200d(?:"+[e7,te,tt].join("|")+")"+tn+tr+")*",ta=RegExp(e9+"(?="+e9+")|(?:"+[e7+e6+"?",e6,te,tt,"["+e8+"]"].join("|")+")"+(tn+tr+tu),"g"),ti=function(e){return function(t){var r,n=e5(t=eK(t))?e5(r=t)?r.match(ta)||[]:r.split(""):void 0,u=n?n[0]:t.charAt(0),a=n?e3(n,1).join(""):t.slice(1);return u[e]()+a}},to=ti("toUpperCase"),ts=function(e,t,r,n){var u=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++u]);++u<a;)r=t(r,e[u],u,e);return r},td=(s={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},function(e){return null==s?void 0:s[e]}),tl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tc=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),tf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,th="\ud800-\udfff",tm="\\u2700-\\u27bf",tg="a-z\\xdf-\\xf6\\xf8-\\xff",ty="A-Z\\xc0-\\xd6\\xd8-\\xde",tb="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tv="['’]",tx="["+tb+"]",tE="["+tg+"]",tC="[^"+th+tb+"\\d+"+tm+tg+ty+"]",tA="(?:\ud83c[\udde6-\uddff]){2}",tD="[\ud800-\udbff][\udc00-\udfff]",tS="["+ty+"]",t_="(?:"+tE+"|"+tC+")",tw="(?:"+tS+"|"+tC+")",tk="(?:"+tv+"(?:d|ll|m|re|s|t|ve))?",tF="(?:"+tv+"(?:D|LL|M|RE|S|T|VE))?",tP="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",tT="[\\ufe0e\\ufe0f]?",tI="(?:\\u200d(?:"+["[^"+th+"]",tA,tD].join("|")+")"+tT+tP+")*",tB="(?:"+["["+tm+"]",tA,tD].join("|")+")"+(tT+tP+tI),tj=RegExp([tS+"?"+tE+"+"+tk+"(?="+[tx,tS,"$"].join("|")+")",tw+"+"+tF+"(?="+[tx,tS+t_,"$"].join("|")+")",tS+"?"+t_+"+"+tk,tS+"+"+tF,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",tB].join("|"),"g"),tL=function(e,t,r){if(e=eK(e),void 0===(t=r?void 0:t)){var n;return(n=e,tp.test(n))?e.match(tj)||[]:e.match(tf)||[]}return e.match(t)||[]},tO=RegExp("['’]","g"),tN=function(e){return function(t){var r;return ts(tL(((r=eK(r=t))&&r.replace(tl,td).replace(tc,"")).replace(tO,"")),e,"")}},tR=tN(function(e,t,r){return t=t.toLowerCase(),e+(r?to(eK(t).toLowerCase()):t)});function tM(e){var t=this.__data__=new eW(e);this.size=t.size}tM.prototype.clear=function(){this.__data__=new eW,this.size=0},tM.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},tM.prototype.get=function(e){return this.__data__.get(e)},tM.prototype.has=function(e){return this.__data__.has(e)},tM.prototype.set=function(e,t){var r=this.__data__;if(r instanceof eW){var n=r.__data__;if(!eq||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new eH(n)}return r.set(e,t),this.size=r.size,this};var t$=t&&!t.nodeType&&t,tU=t$&&e&&!e.nodeType&&e,tz=tU&&tU.exports===t$?y.Buffer:void 0,tV=tz?tz.allocUnsafe:void 0,tW=function(e,t){if(t)return e.slice();var r=e.length,n=tV?tV(r):new e.constructor(r);return e.copy(n),n},tq=y.Uint8Array,tG=function(e){var t=new e.constructor(e.byteLength);return new tq(t).set(new tq(e)),t},tZ=function(e,t){var r=t?tG(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},tH=function(e,t,r){for(var n=-1,u=Object(e),a=r(e),i=a.length;i--;){var o=a[++n];if(!1===t(u[o],o,u))break}return e},tK=function(e,t,r){(void 0===r||en(e[t],r))&&(void 0!==r||t in e)||er(e,t,r)},tJ=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},tX=function(e,t,r,n,u,a,i){var o=tJ(e,r),s=tJ(t,r),d=i.get(s);if(d){tK(e,r,d);return}var l=a?a(o,s,r+"",e,t,i):void 0,c=void 0===l;if(c){var f=F(s),p=!f&&eD(s),h=!f&&!p&&eT(s);(l=s,f||p||h)?F(o)?l=o:w(o)&&ec(o)?l=J(o):p?(c=!1,l=tW(s,!0)):h?(c=!1,l=tZ(s,!0)):l=[]:e1(s)||ex(s)?(l=o,ex(o))?l=ei(o,eN(o)):(!j(o)||O(o))&&(l="function"!=typeof s.constructor||eh(s)?{}:H(eJ(s))):c=!1}c&&(i.set(s,l),u(l,s,n,a,i),i.delete(s)),tK(e,r,l)},tQ=function e(t,r,n,u,a){t!==r&&tH(r,function(i,o){if(a||(a=new tM),j(i))tX(t,r,o,n,e,u,a);else{var s=u?u(tJ(t,o),i,o+"",t,r,a):void 0;void 0===s&&(s=i),tK(t,o,s)}},eN)},tY=function e(t,r,n,u,a,i){return j(t)&&j(r)&&(i.set(r,t),tQ(t,r,void 0,e,i),i.delete(r)),t},t0=(d=function(e,t,r,n){tQ(e,t,r,n)},es(function(e,t){var r=-1,n=t.length,u=n>1?t[n-1]:void 0,a=n>2?t[2]:void 0;for(u=d.length>3&&"function"==typeof u?(n--,u):void 0,a&&ef(t[0],t[1],a)&&(u=n<3?void 0:u,n=1),e=Object(e);++r<n;){var i=t[r];i&&d(e,i,r,u)}return e})),t1=es(function(e){return e.push(void 0,tY),K(t0,void 0,e)}),t2=tN(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),t3=ti("toLowerCase"),t4=tN(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});/*! Bundled license information:
|
|
16
16
|
|
|
17
17
|
lodash-es/lodash.js:
|
|
18
18
|
(**
|
|
@@ -29,4 +29,4 @@ ${r}}`))}(t,a,o))}}}({discriminant:n,ifStatements:i},r,t)),yield o}}}},meta:{typ
|
|
|
29
29
|
super();
|
|
30
30
|
this.name = '${e}';
|
|
31
31
|
}
|
|
32
|
-
`,gi=e=>{if(!e.superClass)return!1;let{name:t,type:r,property:n}=e.superClass;return"MemberExpression"===r&&({name:t}=n),gn.test(t)},go=e=>"ExpressionStatement"===e.type&&"CallExpression"===e.expression.type&&"Super"===e.expression.callee.type,gs=(e,t)=>{if("ExpressionStatement"!==e.type||"AssignmentExpression"!==e.expression.type)return!1;let r=e.expression.left;return!!r.object&&"ThisExpression"===r.object.type&&r.property.name===t},gd=(e,t)=>"PropertyDefinition"===e.type&&!e.computed&&"Identifier"===e.key.type&&e.key.name===t;function*gl(e,t){if(!gi(t)||null===t.id)return;let{name:r}=t.id,n=gu(r);r!==n&&(yield{node:t.id,message:`Invalid class name, use \`${n}\`.`});let{body:u,range:a}=t.body,i=u.find(e=>"constructor"===e.kind);if(!i){yield{node:t,message:"Add a constructor to your error.",fix:e=>e.insertTextAfterRange([a[0],a[0]+1],ga(r))};return}let o=i.value.body;if(!o)return;let s=o.body,d=s.find(e=>go(e)),l=s.findIndex(e=>gs(e,"message"));if(d){if(-1!==l){let e=s[l];yield{node:d,message:"Pass the error message to `super()` instead of setting `this.message`.",*fix(t){if(0===d.expression.arguments.length){let r=e.expression.right;yield t.insertTextAfterRange([d.range[0],d.range[0]+6],r.raw||r.name)}yield t.removeRange([0===l?o.range[0]:s[l-1].range[1],e.range[1]])}}}}else yield{node:o,message:"Missing call to `super()` in constructor."};let c=s.find(e=>gs(e,"name"));if(c)c.expression.right.value!==r&&(yield{node:c?.expression.right??o,message:`The \`name\` property should be set to \`${r}\`.`});else{let e=u.find(e=>gd(e,"name"));e?.value&&e.value.value===r||(yield{node:e?.value??o,message:`The \`name\` property should be set to \`${r}\`.`})}}let gc=(e,t)=>{let r=t.left.property.name,n=t.right;if("ClassExpression"!==n.type||!gi(n)||!n.id)return;let u=n.id.name;if(r!==u)return{node:t.left.property,messageId:gr,fix:e=>e.replaceText(t.left.property,u)}};var gf=/*@__PURE__*/el({create:e=>{e.on("ClassDeclaration",t=>gl(e,t)),e.on("AssignmentExpression",t=>{if("ClassExpression"===t.right.type)return gl(e,t.right)}),e.on("AssignmentExpression",t=>{if("MemberExpression"===t.left.type&&"Identifier"===t.left.object.type&&"exports"===t.left.object.name)return gc(e,t)})},meta:{type:"problem",docs:{description:"Enforce correct `Error` subclassing.",recommended:!1},fixable:"code",messages:{[gr]:"Exported error name should match error class"}}});let{isParenthesized:gp,isNotSemicolonToken:gh}=th,{needsSemicolon:gm}=nT,{removeSpacesAfter:gg}=ub,gy="no-lonely-if",gb=e=>"IfStatement"===e.type&&!e.alternate,gv=e=>"LogicalExpression"===e.type&&("||"===e.operator||"??"===e.operator)||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type;function gx(e,t){let r={};r.ifToken=t.getFirstToken(e),r.openingParenthesisToken=t.getFirstToken(e,1);let{consequent:n}=e;return r.closingParenthesisToken=t.getTokenBefore(n),"BlockStatement"===n.type&&(r.openingBraceToken=t.getFirstToken(n),r.closingBraceToken=t.getLastToken(n)),r}var gE=/*@__PURE__*/el({create:e=>({IfStatement(t){var r;if(gb(t)&&("BlockStatement"===t.parent.type&&1===t.parent.body.length&&t.parent.body[0]===t&&gb(t.parent.parent)&&t.parent.parent.consequent===t.parent||gb(t.parent)&&t.parent.consequent===t))return{node:t,messageId:gy,fix:(r=e.sourceCode,function*(e){let n=("BlockStatement"===t.parent.type?t.parent:t).parent,u={...n,...gx(n,r)},a={...t,...gx(t,r)};if(yield e.remove(a.ifToken),yield gg(a.ifToken,r,e),u.openingBraceToken){yield e.remove(u.openingBraceToken),yield gg(u.openingBraceToken,r,e),yield e.remove(u.closingBraceToken);let t=r.getTokenBefore(u.closingBraceToken,{includeComments:!0});yield gg(t,r,e)}for(let{test:t,openingParenthesisToken:n,closingParenthesisToken:i}of(yield e.insertTextBefore(u.openingParenthesisToken,"("),yield e.insertTextAfter(a.closingParenthesisToken,`)${"EmptyStatement"===a.consequent.type?"":" "}`),yield e.insertTextAfter(u.closingParenthesisToken," && "),[u,a]))(gp(t,r)||!gv(t))&&(yield e.remove(n),yield e.remove(i)),yield gg(i,r,e);if("BlockStatement"!==a.consequent.type){let t=r.getLastToken(a.consequent);if(gh(t)){let n=r.getTokenAfter(u);n&&gm(t,r,n.value)&&(yield e.insertTextBefore(n,";"))}}})}}}),meta:{type:"suggestion",docs:{description:"Disallow `if` statements as the only statement in `if` blocks without `else`.",recommended:!0},fixable:"code",messages:{[gy]:"Unexpected `if` as the only statement in a `if` block without `else`."}}});let{isMethodCall:gC,isNumberLiteral:gA}=tH,{getCallExpressionTokens:gD}=nT,gS="no-magic-array-flat-depth";var g_=/*@__PURE__*/el({create:e=>({CallExpression(t){if(!gC(t,{method:"flat",argumentsLength:1,optionalCall:!1}))return;let[r]=t.arguments;if(!gA(r)||1===r.value)return;let{sourceCode:n}=e,{openingParenthesisToken:u,closingParenthesisToken:a}=gD(n,t);if(!n.commentsExistBetween(u,a))return{node:r,messageId:gS}}}),meta:{type:"suggestion",docs:{description:"Disallow a magic number as the `depth` argument in `Array#flat(…).`",recommended:!0},messages:{[gS]:"Magic number as depth is not allowed."}}});let{removeParentheses:gw,fixSpaceAroundKeyword:gk,addParenthesizesToReturnOrThrowExpression:gF}=ub,{getParenthesizedRange:gP,isParenthesized:gT}=tS,gI="no-negated-condition";var gB=/*@__PURE__*/el({create:e=>{e.on(["IfStatement","ConditionalExpression"],t=>{if("IfStatement"===t.type&&(!t.alternate||"IfStatement"===t.alternate.type))return;let{test:r}=t;if(!(("UnaryExpression"!==r.type||"!"!==r.operator)&&("BinaryExpression"!==r.type||"!="!==r.operator&&"!=="!==r.operator)))return{node:r,messageId:gI,*fix(n){let{sourceCode:u}=e;if(yield*function*(e,t,r){let{test:n}=t;if("UnaryExpression"===n.type){let u=r.getFirstToken(n);"IfStatement"===t.type&&(yield*gw(n.argument,e,r)),yield e.remove(u);return}let u=r.getTokenAfter(n.left,e=>"Punctuator"===e.type&&e.value===n.operator);yield e.replaceText(u,"="+u.value.slice(1))}(n,t,u),yield*function*(e,t,r){let n="IfStatement"===t.type,[u,a]=[t.consequent,t.alternate].map(e=>{let t=gP(e,r),u=r.text.slice(...t);return n&&"BlockStatement"!==e.type&&(u=`{${u}}`),{range:t,text:u}});u.text!==a.text&&(yield e.replaceTextRange(u.range,a.text),yield e.replaceTextRange(a.range,u.text))}(n,t,u),"ConditionalExpression"!==t.type||"UnaryExpression"!==r.type)return;yield*gk(n,t,u);let{parent:a}=t,[i,o]=u.getFirstTokens(r,2);if(("ReturnStatement"===a.type||"ThrowStatement"===a.type)&&a.argument===t&&!r9(i,o)&&!gT(t,u)&&!gT(r,u)){yield*gF(n,a,u);return}ni(u.getTokenBefore(t),u,o.value)&&(yield n.insertTextBefore(t,";"))}}})},meta:{type:"suggestion",docs:{description:"Disallow negated conditions.",recommended:!0},fixable:"code",messages:{[gI]:"Unexpected negated condition."}}});let{isFunction:gj}=tH,gL="identifier",gO="non-identifier";var gN=/*@__PURE__*/el({create:()=>({AssignmentPattern(e){if(!("ObjectExpression"===e.right.type&&e.right.properties.length>0&&gj(e.parent)&&e.parent.params.includes(e)))return;let{left:t,right:r}=e;return"Identifier"===t.type?{node:t,messageId:gL,data:{parameter:t.name}}:{node:r,messageId:gO}}}),meta:{type:"problem",docs:{description:"Disallow the use of objects as default parameters.",recommended:!0},messages:{[gL]:"Do not use an object literal as default for parameter `{{parameter}}`.",[gO]:"Do not use an object literal as default."}}});let{getParenthesizedRange:gR}=tS,{isNumberLiteral:gM}=tH,g$=e=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.property.type&&"length"===e.property.name,gU=e=>gM(e)&&e.value>0,{getNegativeIndexLengthNode:gz,removeLengthNode:gV}={getNegativeIndexLengthNode:function e(t,r){if(!t)return;let{type:n,operator:u,left:a,right:i}=t;return"BinaryExpression"===n&&"-"===u&&gU(i)?g$(a)&&nt(a.object,r)?a:e(a,r):void 0},removeLengthNode:function(e,t,r){let[n,u]=gR(e,r);return t.removeRange([n,u+r.text.slice(u).match(/\S|$/).index])}},{isLiteral:gW}=tH,gq="prefer-negative-index",gG=new Map([["slice",{argumentsIndexes:[0,1],supportObjects:new Set(["Array","String","ArrayBuffer",...ch])}],["subarray",{argumentsIndexes:[0,1],supportObjects:new Set(ch)}],["splice",{argumentsIndexes:[0],supportObjects:new Set(["Array"])}],["toSpliced",{argumentsIndexes:[0],supportObjects:new Set(["Array"])}],["at",{argumentsIndexes:[0],supportObjects:new Set(["Array","String",...ch])}],["with",{argumentsIndexes:[0],supportObjects:new Set(["Array",...ch])}]]),gZ=e=>{let{type:t,property:r}=e;if("MemberExpression"===t&&"Identifier"===r.type)return r.name};var gH=/*@__PURE__*/el({create:e=>({CallExpression(t){if("MemberExpression"!==t.callee.type)return;let r=function(e){let{callee:t,arguments:r}=e,n=t.property.name,u=t.object,a=r;if(gG.has(n))return{method:n,target:u,argumentsNodes:a};if("call"!==n&&"apply"!==n)return;let i="apply"===n;if(n=gZ(t.object),!gG.has(n))return;let{supportObjects:o}=gG.get(n),s=t.object.object;if("ArrayExpression"===s.type&&0===s.elements.length||"slice"===n&&gW(s,"")||"prototype"===gZ(s)&&"Identifier"===s.object.type&&o.has(s.object.name)){if([u]=r,i){let[,e]=r;if(!e||"ArrayExpression"!==e.type)return;a=e.elements}else a=r.slice(1);return{method:n,target:u,argumentsNodes:a}}}(t);if(!r)return;let{method:n,target:u,argumentsNodes:a}=r,{argumentsIndexes:i}=gG.get(n),o=i.map(e=>gz(a[e],u)).filter(Boolean);if(0!==o.length)return{node:t,messageId:gq,data:{method:n},*fix(t){let{sourceCode:r}=e;for(let e of o)yield gV(e,t,r)}}}}),meta:{type:"suggestion",docs:{description:"Prefer negative index over `.length - index` when possible.",recommended:!0},fixable:"code",messages:{[gq]:"Prefer negative index over length minus index for `{{method}}`."}}});let{builtinModules:gK}=/*@__PURE__*/ec(u),gJ=["sys"],gX=new Set((gK||(process.binding?Object.keys(process.binding("natives")):[])||[]).filter(e=>!/^_|^(internal|v8|node-inspect)\/|\//.test(e)&&!gJ.includes(e)).sort()),gQ="node:",gY=e=>{if("string"!=typeof e)throw TypeError("Expected a string");e.startsWith(gQ)&&(e=e.slice(gQ.length));let t=e.indexOf("/");return -1!==t&&t!==e.length-1&&(e=e.slice(0,t)),gX.has(e)},{replaceStringLiteral:g0}=ub,g1="prefer-node-protocol";var g2=/*@__PURE__*/el({create:()=>({Literal(e){if(!(("ImportDeclaration"===e.parent.type||"ExportNamedDeclaration"===e.parent.type||"ImportExpression"===e.parent.type)&&e.parent.source===e||tL(e.parent)&&e.parent.arguments[0]===e))return;let{value:t}=e;if(!("string"!=typeof t||t.startsWith("node:")||/^bun(?::|$)/.test(t))&&gY(t))return{node:e,messageId:g1,data:{moduleName:t},fix:t=>g0(t,e,"node:",0,0)}}}),meta:{type:"suggestion",docs:{description:"Prefer using the `node:` protocol when importing Node.js builtin modules.",recommended:!0},fixable:"code",messages:{[g1]:"Prefer `node:{{moduleName}}` over `{{moduleName}}`."}}});let g3=RegExp("^\\s*(?<directive>eslint-disable(?:-(?:next-)?line)?)"),g4=RegExp("^eslint-disable(?:-next-line|-line)?(?<ruleId>$|(?:\\s+(?:@(?:[\\w-]+\\/){1,2})?[\\w-]+)?)"),g5=Symbol("rule-id-no-match");var g8=a({name:"ban-eslint-disable",meta:{type:"problem",docs:{description:"Ban `eslint-disable` comment directive"},schema:[{oneOf:[{type:"boolean"},{type:"string",enum:["allow-with-description"]}]}],messages:{"do-not-use":"Do not use `{{directive}}`","require-description":"Include a description after the `{{directive}}` directive to explain why the `{{directive}}` is necessary.","require-specific-rule":"Enforce specifying rules to disable in `eslint-disable` comments. If you want to disable ESLint on a file altogether, you should ignore it through ESLint configuration."}},create:(e,t="allow-with-description")=>!1===t?{}:{Program(r){if(r.comments&&0!==r.comments.length)for(let n of r.comments){let r=function(e){let t=g3.exec(e);return t?.groups?.directive}(n.value);if(r&&!("allow-with-description"===t&&n.value.includes("--"))){let u="allow-with-description"===t?"require-description":"do-not-use";e.report({node:n,data:{directive:r},messageId:u})}let u=function(e){let t=g4.exec(e.trim());return t?t.groups?.ruleId:g5}(n.value);u===g5||u||e.report({node:n,messageId:"require-specific-rule"})}}}}),g6=a({name:"import-dedupe",meta:{type:"problem",docs:{description:"Fix duplication in imports"},fixable:"code",schema:[],messages:{"import-dedupe":"Expect no duplication in imports"}},create:e=>({ImportDeclaration(t){if(t.specifiers.length<=1)return;let r=new Set;t.specifiers.forEach(n=>{let u=n.local.name;r.has(u)&&e.report({node:t,loc:{start:n.loc.end,end:n.loc.start},messageId:"import-dedupe",fix(t){let r=n.range[0],u=n.range[1];return","===e.sourceCode.text[u]&&(u+=1),t.removeRange([r,u])}}),r.add(u)})}})}),g9=a({name:"no-return-await",meta:{type:"suggestion",hasSuggestions:!0,docs:{description:"Disallows unnecessary `return await`"},fixable:void 0,deprecated:!1,schema:[],messages:{removeAwait:"Remove redundant `await`.",redundantUseOfAwait:"Redundant use of `await` on a return value."}},create:e=>({AwaitExpression(t){(function e(t){return t.parent?.type===o.ArrowFunctionExpression||(t.parent?.type===o.ReturnStatement?!g7(t.parent):(t.parent?.type===o.ConditionalExpression&&(t===t.parent.consequent||t===t.parent.alternate)||t.parent?.type===o.LogicalExpression&&t===t.parent.right||t.parent?.type===o.SequenceExpression&&t===t.parent.expressions.at(-1))&&e(t.parent))})(t)&&!g7(t)&&e.report({node:e.sourceCode.getFirstToken(t),loc:t.loc,messageId:"redundantUseOfAwait",suggest:[{messageId:"removeAwait",fix(r){let n=e.sourceCode,[u,a]=n.getFirstTokens(t,2);if(u.loc.start.line!==a.loc.start.line)return null;let[i,o]=u.range,s=n.text[o];return r.removeRange([i,o+(" "===s?1:0)])}}]})}})});function g7(e){let t=e;for(;!s.isFunction(t)&&t.type!==o.Program;){if(t.parent.type===o.TryStatement&&(t===t.parent.block||t===t.parent.handler&&t.parent.finalizer))return!0;t=t.parent}return!1}function ye(e){return e.includes("\r\n")?"\r\n":"\n"}var yt=a({name:"no-expression-empty-lines",meta:{messages:{unexpectedEmptyLine:"Unexpected empty line before"},docs:{description:"Disallows empty lines inside expressions."},fixable:"whitespace",type:"suggestion",schema:[]},create(e){let t=e.sourceCode.getText(),r=ye(t);return{MemberExpression(n){let u=n.object.range[1],a=yr(t.slice(u));if(a.includes("\n")){let t=r+((yr(a).split(/\r\n|\n/u).at(-1)??"")+a.trimStart());a!==t&&e.report({fix:()=>({range:[u,u+a.length],text:t}),messageId:"unexpectedEmptyLine",node:n.property})}}}}});function yr(e){return e.slice(0,e.length-e.trimStart().length)}var yn=a({name:"object-format",meta:{fixable:"whitespace",schema:[{type:"object",properties:{maxLineLength:{type:"number",default:80},maxObjectSize:{type:"number",default:3}},additionalProperties:!1}],docs:{description:"Requires multiline or single-line object format.",recommended:"stylistic"},messages:{preferMultiline:"Prefer multiline object literal",preferSingleLine:"Prefer single-line object literal"},type:"layout"},create(e,t={}){let r=e.sourceCode.getText(),n=t=>r.slice(Math.min(t.range[0],...e.sourceCode.getCommentsBefore(t).map(e=>e.range[0])),t.range[1]),u=ye(r),a=`,${u}`,{maxLineLength:i=80,maxObjectSize:o=3}=t,s=e=>r.slice(e.range[1]).trimStart().startsWith("//");return{ObjectExpression(t){let d=t.properties.map(e=>n(e).trim());if(d.length>0){let n=e.sourceCode.getText(t),l=d.length>o||d.some(yu)||t.properties.some(s),c=yu(n),f=!n.includes("\n");l&&f&&e.report({fix:()=>({range:t.range,text:`{${u}${d.join(a)}${u}}`}),messageId:"preferMultiline",node:t}),!l&&c&&function(){var n;let u=e.sourceCode.getLocFromIndex(t.range[0]).column;return u+d.reduce((e,t)=>e+t.length,0)+2*(d.length-1)+4+("number"==typeof(n=t.range[1])?r.slice(n):r.slice(...n.range)).split(/\r\n|\n/u)[0].replace(/^((?: as const)?\S*).*/u,"$1").length}()<=i&&e.report({fix:()=>({range:t.range,text:`{${d.join(",")}}`}),messageId:"preferSingleLine",node:t})}}}}});function yu(e){return e.includes("\n")}function ya(e){return!(e<48)&&(e<58||!(e<65)&&(e<91||95===e||!(e<97)&&(e<123||yi(e)||yo(e,null!=t?t:t=ys("53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 1p 7 17 n 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 3 1 3 2 a 0 b 1 3 9 f 0 3 2 1l 0 2 4 5 1 3 2 4 0 l b 4 0 c 2 1l 0 2 7 2 2 2 2 l 1 3 9 b 5 2 2 1l 0 2 6 3 1 3 2 8 2 b 1 3 9 j 0 1o 4 4 2 2 3 a 0 f 9 h 4 1k 0 2 6 2 2 2 3 8 1 c 1 3 9 i 2 1l 0 2 6 2 2 2 3 8 1 c 1 3 9 4 0 d 3 1k 1 2 6 2 2 2 3 a 0 b 1 3 9 i 2 1z 0 5 5 2 0 2 7 7 9 3 1 1q 0 3 6 d 7 2 9 2g 0 3 8 c 6 2 9 1r 1 7 9 c 0 2 0 2 0 5 1 1e j 2 1 6 a 2 z a 0 2t j 2 9 d 3 5 2 2 2 3 6 4 3 e b 2 e jk 2 a 8 pt 3 t 2 u 1 v 1 1t v a 0 3 9 y 2 2 a 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 f 1e 4 1c g c 9 i 8 d 2 v c 3 9 19 d 1d j 9 9 7 9 3b 2 2 k 5 0 7 0 3 2 5j 1r el 1 1e 1 k 0 3g c 5 0 4 b 2db 2 3y 0 2p v ff 5 2y 1 2p 0 n51 9 1y 0 5 9 x 1 29 1 7l 0 4 0 5 0 o 4 5 0 2c 1 1f h b 9 7 h e a t 7 q c 19 3 1c d g 9 c 0 b 9 1c d d 0 9 1 3 9 y 2 1f 0 2 2 3 1 6 1 2 0 16 4 6 1 6l 7 2 1 3 9 fmt 0 ki f h f 4 1 p 2 5d 9 12 0 12 0 ig 0 6b 0 46 4 86 9 120 2 2 1 6 3 15 2 5 0 4m 1 fy 3 9 9 aa 1 29 2 1z a 1e 3 3f 2 1i e w a 3 1 b 3 1a a 8 0 1a 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 3 0 4e b 6 9 7 3 1k 1 2 6 3 1 3 2 a 0 b 1 3 6 4 4 5d h a 9 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 2c e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f ba 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 96 3 a 1 2 0 1d 6 4 4 e 9 44n 0 7 e aob 9 2f 9 13 4 1o 6 q 9 s6 0 2 1i 8 3 2a 0 c 1 f58 1 3mq 19 3 m f3 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 2t 0 4h 6 a 9 9x 0 1q d dv d rb 6 32 6 6 9 3o7 9 gvt3 6n")))))}function yi(t){return yo(t,null!=e?e:e=ys("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 6 n 2 5 i 15 1n 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 3 0 3 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 w 1 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 h e i f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 7 1j t e 1 b 17 r z 16 2 b z 3 8 8 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 h c 2u 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 6c 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t h3g 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 1r 6 1 2 0 2 4 p f 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f d a 2 e 2 6 2 1 2 a 2 e 2 6 2 1 1w 8m a l b 7 p 5 2 15 2 8 1y 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 1z 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 9p 15 7 1 27 s b 0 9 l 17 h 1b k s m d 1g 1m 1 3 0 e 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o k 1 1s 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 4f 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 12 6 56 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 j 20 7c 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 94 i g 0 2 c 2 x 3h 0 28 pl 2v 32 i 5f 219 2o g tr i 5 33u g6 6nu fs 8 u i 26 i t j 1b h 3 w k 6 i j5 1r 3l 22 6 0 1v c 1t 1 2 0 t 4qf 9 yd 17 8 6w8 3 2 6 2 1 2 82 g 0 u 2 3 0 f 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1f9 u 7 5 7a 1p 43 18 b 6 h 0 8y t j 17 dh r l1 6 2 3 2 1 2 e 2 5g 1o 1v 8 0 xh 3 2 q 2 1 2 0 3 0 2 9 2 3 2 0 2 0 7 0 5 0 2 0 2 0 2 2 2 1 2 0 3 0 2 0 2 0 2 0 2 0 2 1 2 0 3 3 2 6 2 3 2 3 2 0 2 9 2 g 6 2 2 4 2 g 3et wyn x 37d 7 65 3 4g1 f 5rk g h9 1wj f1 15v 3t6 6 38f"))}function yo(e,t){let r=0,n=t.length/2|0,u=0,a=0,i=0;for(;r<n;)if(a=t[2*(u=(r+n)/2|0)],i=t[2*u+1],e<a)n=u;else{if(!(e>i))return!0;r=u+1}return!1}function ys(e){let t=0;return e.split(" ").map(e=>t+=0|parseInt(e,36))}class yd{constructor(e,t,r,n,u,a,i,o){this._raw2018=e,this._raw2019=t,this._raw2020=r,this._raw2021=n,this._raw2022=u,this._raw2023=a,this._raw2024=i,this._raw2025=o}get es2018(){var e;return null!==(e=this._set2018)&&void 0!==e?e:this._set2018=new Set(this._raw2018.split(" "))}get es2019(){var e;return null!==(e=this._set2019)&&void 0!==e?e:this._set2019=new Set(this._raw2019.split(" "))}get es2020(){var e;return null!==(e=this._set2020)&&void 0!==e?e:this._set2020=new Set(this._raw2020.split(" "))}get es2021(){var e;return null!==(e=this._set2021)&&void 0!==e?e:this._set2021=new Set(this._raw2021.split(" "))}get es2022(){var e;return null!==(e=this._set2022)&&void 0!==e?e:this._set2022=new Set(this._raw2022.split(" "))}get es2023(){var e;return null!==(e=this._set2023)&&void 0!==e?e:this._set2023=new Set(this._raw2023.split(" "))}get es2024(){var e;return null!==(e=this._set2024)&&void 0!==e?e:this._set2024=new Set(this._raw2024.split(" "))}get es2025(){var e;return null!==(e=this._set2025)&&void 0!==e?e:this._set2025=new Set(this._raw2025.split(" "))}}let yl=new Set(["General_Category","gc"]),yc=new Set(["Script","Script_Extensions","sc","scx"]),yf=new yd("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct","","","","","","",""),yp=new yd("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy","Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo","Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho","Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi","Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi","Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz","",""),yh=new yd("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space","Extended_Pictographic","","EBase EComp EMod EPres ExtPict","","","",""),ym=new yd("","","","","","","Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence","");function yg(e,t,r){return yl.has(t)?e>=2018&&yf.es2018.has(r):!!yc.has(t)&&(e>=2018&&yp.es2018.has(r)||e>=2019&&yp.es2019.has(r)||e>=2020&&yp.es2020.has(r)||e>=2021&&yp.es2021.has(r)||e>=2022&&yp.es2022.has(r)||e>=2023&&yp.es2023.has(r))}function yy(e){return e>=65&&e<=90||e>=97&&e<=122}function yb(e){return e>=48&&e<=57}function yv(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function yx(e){return e>=97&&e<=102?e-97+10:e>=65&&e<=70?e-65+10:e-48}function yE(e){return e>=55296&&e<=56319}function yC(e){return e>=56320&&e<=57343}function yA(e,t){return(e-55296)*1024+(t-56320)+65536}class yD{constructor(){this.groupName=new Set}clear(){this.groupName.clear()}isEmpty(){return!this.groupName.size}hasInPattern(e){return this.groupName.has(e)}hasInScope(e){return this.hasInPattern(e)}addToScope(e){this.groupName.add(e)}enterDisjunction(){}enterAlternative(){}leaveDisjunction(){}}class yS{constructor(e,t){this.parent=e,this.base=null!=t?t:this}separatedFrom(e){var t,r;return!!(this.base===e.base&&this!==e||e.parent&&this.separatedFrom(e.parent))||null!==(r=null===(t=this.parent)||void 0===t?void 0:t.separatedFrom(e))&&void 0!==r&&r}child(){return new yS(this,null)}sibling(){return new yS(this.parent,this.base)}}class y_{constructor(){this.branchID=new yS(null,null),this.groupNames=new Map}clear(){this.branchID=new yS(null,null),this.groupNames.clear()}isEmpty(){return!this.groupNames.size}enterDisjunction(){this.branchID=this.branchID.child()}enterAlternative(e){0!==e&&(this.branchID=this.branchID.sibling())}leaveDisjunction(){this.branchID=this.branchID.parent}hasInPattern(e){return this.groupNames.has(e)}hasInScope(e){let t=this.groupNames.get(e);if(!t)return!1;for(let e of t)if(!e.separatedFrom(this.branchID))return!0;return!1}addToScope(e){let t=this.groupNames.get(e);if(t){t.push(this.branchID);return}this.groupNames.set(e,[this.branchID])}}let yw={at:(e,t,r)=>r<t?e.charCodeAt(r):-1,width:e=>1},yk={at:(e,t,r)=>r<t?e.codePointAt(r):-1,width:e=>e>65535?2:1};class yF{constructor(){this._impl=yw,this._s="",this._i=0,this._end=0,this._cp1=-1,this._w1=1,this._cp2=-1,this._w2=1,this._cp3=-1,this._w3=1,this._cp4=-1}get source(){return this._s}get index(){return this._i}get currentCodePoint(){return this._cp1}get nextCodePoint(){return this._cp2}get nextCodePoint2(){return this._cp3}get nextCodePoint3(){return this._cp4}reset(e,t,r,n){this._impl=n?yk:yw,this._s=e,this._end=r,this.rewind(t)}rewind(e){let t=this._impl;this._i=e,this._cp1=t.at(this._s,this._end,e),this._w1=t.width(this._cp1),this._cp2=t.at(this._s,this._end,e+this._w1),this._w2=t.width(this._cp2),this._cp3=t.at(this._s,this._end,e+this._w1+this._w2),this._w3=t.width(this._cp3),this._cp4=t.at(this._s,this._end,e+this._w1+this._w2+this._w3)}advance(){if(-1!==this._cp1){let e=this._impl;this._i+=this._w1,this._cp1=this._cp2,this._w1=this._w2,this._cp2=this._cp3,this._w2=e.width(this._cp2),this._cp3=this._cp4,this._w3=e.width(this._cp3),this._cp4=e.at(this._s,this._end,this._i+this._w1+this._w2+this._w3)}}eat(e){return this._cp1===e&&(this.advance(),!0)}eat2(e,t){return this._cp1===e&&this._cp2===t&&(this.advance(),this.advance(),!0)}eat3(e,t,r){return this._cp1===e&&this._cp2===t&&this._cp3===r&&(this.advance(),this.advance(),this.advance(),!0)}}class yP extends SyntaxError{constructor(e,t){super(e),this.index=t}}let yT=new Set([94,36,92,46,42,43,63,40,41,91,93,123,125,124]),yI=new Set([38,33,35,36,37,42,43,44,46,58,59,60,61,62,63,64,94,96,126]),yB=new Set([40,41,91,93,123,125,47,45,92,124]),yj=new Set([38,45,33,35,37,44,58,59,60,61,62,64,96,126]);function yL(e){return yy(e)||95===e}class yO{constructor(e){this._reader=new yF,this._unicodeMode=!1,this._unicodeSetsMode=!1,this._nFlag=!1,this._lastIntValue=0,this._lastRange={min:0,max:Number.POSITIVE_INFINITY},this._lastStrValue="",this._lastAssertionIsQuantifiable=!1,this._numCapturingParens=0,this._backreferenceNames=new Set,this._srcCtx=null,this._options=null!=e?e:{},this._groupSpecifiers=this.ecmaVersion>=2025?new y_:new yD}validateLiteral(e,t=0,r=e.length){if(this._srcCtx={source:e,start:t,end:r,kind:"literal"},this._unicodeSetsMode=this._unicodeMode=this._nFlag=!1,this.reset(e,t,r),this.onLiteralEnter(t),this.eat(47)&&this.eatRegExpBody()&&this.eat(47)){let n=this.index,u=e.includes("u",n),a=e.includes("v",n);this.validateFlagsInternal(e,n,r),this.validatePatternInternal(e,t+1,n-1,{unicode:u,unicodeSets:a})}else if(t>=r)this.raise("Empty");else{let e=String.fromCodePoint(this.currentCodePoint);this.raise(`Unexpected character '${e}'`)}this.onLiteralLeave(t,r)}validateFlags(e,t=0,r=e.length){this._srcCtx={source:e,start:t,end:r,kind:"flags"},this.validateFlagsInternal(e,t,r)}validatePattern(e,t=0,r=e.length,n){this._srcCtx={source:e,start:t,end:r,kind:"pattern"},this.validatePatternInternal(e,t,r,n)}validatePatternInternal(e,t=0,r=e.length,n){let u=this._parseFlagsOptionToMode(n,r);this._unicodeMode=u.unicodeMode,this._nFlag=u.nFlag,this._unicodeSetsMode=u.unicodeSetsMode,this.reset(e,t,r),this.consumePattern(),this._nFlag||!(this.ecmaVersion>=2018)||this._groupSpecifiers.isEmpty()||(this._nFlag=!0,this.rewind(t),this.consumePattern())}validateFlagsInternal(e,t,r){let n=new Set,u=!1,a=!1,i=!1,o=!1,s=!1,d=!1,l=!1,c=!1;for(let f=t;f<r;++f){let r=e.charCodeAt(f);n.has(r)&&this.raise(`Duplicated flag '${e[f]}'`,{index:t}),n.add(r),103===r?u=!0:105===r?a=!0:109===r?i=!0:117===r&&this.ecmaVersion>=2015?s=!0:121===r&&this.ecmaVersion>=2015?o=!0:115===r&&this.ecmaVersion>=2018?d=!0:100===r&&this.ecmaVersion>=2022?l=!0:118===r&&this.ecmaVersion>=2024?c=!0:this.raise(`Invalid flag '${e[f]}'`,{index:t})}this.onRegExpFlags(t,r,{global:u,ignoreCase:a,multiline:i,unicode:s,sticky:o,dotAll:d,hasIndices:l,unicodeSets:c})}_parseFlagsOptionToMode(e,t){let r=!1,n=!1;return e&&this.ecmaVersion>=2015&&("object"==typeof e?(r=!!e.unicode,this.ecmaVersion>=2024&&(n=!!e.unicodeSets)):r=e),r&&n&&this.raise("Invalid regular expression flags",{index:t+1,unicode:r,unicodeSets:n}),{unicodeMode:r||n,nFlag:r&&this.ecmaVersion>=2018||n||!!(this._options.strict&&this.ecmaVersion>=2023),unicodeSetsMode:n}}get strict(){return!!this._options.strict||this._unicodeMode}get ecmaVersion(){var e;return null!==(e=this._options.ecmaVersion)&&void 0!==e?e:2025}onLiteralEnter(e){this._options.onLiteralEnter&&this._options.onLiteralEnter(e)}onLiteralLeave(e,t){this._options.onLiteralLeave&&this._options.onLiteralLeave(e,t)}onRegExpFlags(e,t,r){this._options.onRegExpFlags&&this._options.onRegExpFlags(e,t,r),this._options.onFlags&&this._options.onFlags(e,t,r.global,r.ignoreCase,r.multiline,r.unicode,r.sticky,r.dotAll,r.hasIndices)}onPatternEnter(e){this._options.onPatternEnter&&this._options.onPatternEnter(e)}onPatternLeave(e,t){this._options.onPatternLeave&&this._options.onPatternLeave(e,t)}onDisjunctionEnter(e){this._options.onDisjunctionEnter&&this._options.onDisjunctionEnter(e)}onDisjunctionLeave(e,t){this._options.onDisjunctionLeave&&this._options.onDisjunctionLeave(e,t)}onAlternativeEnter(e,t){this._options.onAlternativeEnter&&this._options.onAlternativeEnter(e,t)}onAlternativeLeave(e,t,r){this._options.onAlternativeLeave&&this._options.onAlternativeLeave(e,t,r)}onGroupEnter(e){this._options.onGroupEnter&&this._options.onGroupEnter(e)}onGroupLeave(e,t){this._options.onGroupLeave&&this._options.onGroupLeave(e,t)}onCapturingGroupEnter(e,t){this._options.onCapturingGroupEnter&&this._options.onCapturingGroupEnter(e,t)}onCapturingGroupLeave(e,t,r){this._options.onCapturingGroupLeave&&this._options.onCapturingGroupLeave(e,t,r)}onQuantifier(e,t,r,n,u){this._options.onQuantifier&&this._options.onQuantifier(e,t,r,n,u)}onLookaroundAssertionEnter(e,t,r){this._options.onLookaroundAssertionEnter&&this._options.onLookaroundAssertionEnter(e,t,r)}onLookaroundAssertionLeave(e,t,r,n){this._options.onLookaroundAssertionLeave&&this._options.onLookaroundAssertionLeave(e,t,r,n)}onEdgeAssertion(e,t,r){this._options.onEdgeAssertion&&this._options.onEdgeAssertion(e,t,r)}onWordBoundaryAssertion(e,t,r,n){this._options.onWordBoundaryAssertion&&this._options.onWordBoundaryAssertion(e,t,r,n)}onAnyCharacterSet(e,t,r){this._options.onAnyCharacterSet&&this._options.onAnyCharacterSet(e,t,r)}onEscapeCharacterSet(e,t,r,n){this._options.onEscapeCharacterSet&&this._options.onEscapeCharacterSet(e,t,r,n)}onUnicodePropertyCharacterSet(e,t,r,n,u,a,i){this._options.onUnicodePropertyCharacterSet&&this._options.onUnicodePropertyCharacterSet(e,t,r,n,u,a,i)}onCharacter(e,t,r){this._options.onCharacter&&this._options.onCharacter(e,t,r)}onBackreference(e,t,r){this._options.onBackreference&&this._options.onBackreference(e,t,r)}onCharacterClassEnter(e,t,r){this._options.onCharacterClassEnter&&this._options.onCharacterClassEnter(e,t,r)}onCharacterClassLeave(e,t,r){this._options.onCharacterClassLeave&&this._options.onCharacterClassLeave(e,t,r)}onCharacterClassRange(e,t,r,n){this._options.onCharacterClassRange&&this._options.onCharacterClassRange(e,t,r,n)}onClassIntersection(e,t){this._options.onClassIntersection&&this._options.onClassIntersection(e,t)}onClassSubtraction(e,t){this._options.onClassSubtraction&&this._options.onClassSubtraction(e,t)}onClassStringDisjunctionEnter(e){this._options.onClassStringDisjunctionEnter&&this._options.onClassStringDisjunctionEnter(e)}onClassStringDisjunctionLeave(e,t){this._options.onClassStringDisjunctionLeave&&this._options.onClassStringDisjunctionLeave(e,t)}onStringAlternativeEnter(e,t){this._options.onStringAlternativeEnter&&this._options.onStringAlternativeEnter(e,t)}onStringAlternativeLeave(e,t,r){this._options.onStringAlternativeLeave&&this._options.onStringAlternativeLeave(e,t,r)}get index(){return this._reader.index}get currentCodePoint(){return this._reader.currentCodePoint}get nextCodePoint(){return this._reader.nextCodePoint}get nextCodePoint2(){return this._reader.nextCodePoint2}get nextCodePoint3(){return this._reader.nextCodePoint3}reset(e,t,r){this._reader.reset(e,t,r,this._unicodeMode)}rewind(e){this._reader.rewind(e)}advance(){this._reader.advance()}eat(e){return this._reader.eat(e)}eat2(e,t){return this._reader.eat2(e,t)}eat3(e,t,r){return this._reader.eat3(e,t,r)}raise(e,t){var r,n,u;throw function(e,t,r,n){let u="";if("literal"===e.kind){let t=e.source.slice(e.start,e.end);t&&(u=`: ${t}`)}else if("pattern"===e.kind){let r=e.source.slice(e.start,e.end),n=`${t.unicode?"u":""}${t.unicodeSets?"v":""}`;u=`: /${r}/${n}`}return new yP(`Invalid regular expression${u}: ${n}`,r)}(this._srcCtx,{unicode:null!==(r=null==t?void 0:t.unicode)&&void 0!==r?r:this._unicodeMode&&!this._unicodeSetsMode,unicodeSets:null!==(n=null==t?void 0:t.unicodeSets)&&void 0!==n?n:this._unicodeSetsMode},null!==(u=null==t?void 0:t.index)&&void 0!==u?u:this.index,e)}eatRegExpBody(){let e=this.index,t=!1,r=!1;for(;;){var n;let u=this.currentCodePoint;if(-1===u||10===(n=u)||13===n||8232===n||8233===n){let e=t?"character class":"regular expression";this.raise(`Unterminated ${e}`)}if(r)r=!1;else if(92===u)r=!0;else if(91===u)t=!0;else if(93===u)t=!1;else if(47===u&&!t||42===u&&this.index===e)break;this.advance()}return this.index!==e}consumePattern(){let e=this.index;this._numCapturingParens=this.countCapturingParens(),this._groupSpecifiers.clear(),this._backreferenceNames.clear(),this.onPatternEnter(e),this.consumeDisjunction();let t=this.currentCodePoint;if(-1!==this.currentCodePoint){41===t&&this.raise("Unmatched ')'"),92===t&&this.raise("\\ at end of pattern"),(93===t||125===t)&&this.raise("Lone quantifier brackets");let e=String.fromCodePoint(t);this.raise(`Unexpected character '${e}'`)}for(let e of this._backreferenceNames)this._groupSpecifiers.hasInPattern(e)||this.raise("Invalid named capture referenced");this.onPatternLeave(e,this.index)}countCapturingParens(){let e=this.index,t=!1,r=!1,n=0,u=0;for(;-1!==(u=this.currentCodePoint);)r?r=!1:92===u?r=!0:91===u?t=!0:93===u?t=!1:40!==u||t||63===this.nextCodePoint&&(60!==this.nextCodePoint2||61===this.nextCodePoint3||33===this.nextCodePoint3)||(n+=1),this.advance();return this.rewind(e),n}consumeDisjunction(){let e=this.index,t=0;this._groupSpecifiers.enterDisjunction(),this.onDisjunctionEnter(e);do this.consumeAlternative(t++);while(this.eat(124));this.consumeQuantifier(!0)&&this.raise("Nothing to repeat"),this.eat(123)&&this.raise("Lone quantifier brackets"),this.onDisjunctionLeave(e,this.index),this._groupSpecifiers.leaveDisjunction()}consumeAlternative(e){let t=this.index;for(this._groupSpecifiers.enterAlternative(e),this.onAlternativeEnter(t,e);-1!==this.currentCodePoint&&this.consumeTerm(););this.onAlternativeLeave(t,this.index,e)}consumeTerm(){return this._unicodeMode||this.strict?this.consumeAssertion()||this.consumeAtom()&&this.consumeOptionalQuantifier():this.consumeAssertion()&&(!this._lastAssertionIsQuantifiable||this.consumeOptionalQuantifier())||this.consumeExtendedAtom()&&this.consumeOptionalQuantifier()}consumeOptionalQuantifier(){return this.consumeQuantifier(),!0}consumeAssertion(){let e=this.index;if(this._lastAssertionIsQuantifiable=!1,this.eat(94))return this.onEdgeAssertion(e,this.index,"start"),!0;if(this.eat(36))return this.onEdgeAssertion(e,this.index,"end"),!0;if(this.eat2(92,66))return this.onWordBoundaryAssertion(e,this.index,"word",!0),!0;if(this.eat2(92,98))return this.onWordBoundaryAssertion(e,this.index,"word",!1),!0;if(this.eat2(40,63)){let t=this.ecmaVersion>=2018&&this.eat(60),r=!1;if(this.eat(61)||(r=this.eat(33))){let n=t?"lookbehind":"lookahead";return this.onLookaroundAssertionEnter(e,n,r),this.consumeDisjunction(),this.eat(41)||this.raise("Unterminated group"),this._lastAssertionIsQuantifiable=!t&&!this.strict,this.onLookaroundAssertionLeave(e,this.index,n,r),!0}this.rewind(e)}return!1}consumeQuantifier(e=!1){let t=this.index,r=0,n=0,u=!1;if(this.eat(42))r=0,n=Number.POSITIVE_INFINITY;else if(this.eat(43))r=1,n=Number.POSITIVE_INFINITY;else if(this.eat(63))r=0,n=1;else{if(!this.eatBracedQuantifier(e))return!1;({min:r,max:n}=this._lastRange)}return u=!this.eat(63),e||this.onQuantifier(t,this.index,r,n,u),!0}eatBracedQuantifier(e){let t=this.index;if(this.eat(123)){if(this.eatDecimalDigits()){let t=this._lastIntValue,r=t;if(this.eat(44)&&(r=this.eatDecimalDigits()?this._lastIntValue:Number.POSITIVE_INFINITY),this.eat(125))return!e&&r<t&&this.raise("numbers out of order in {} quantifier"),this._lastRange={min:t,max:r},!0}!e&&(this._unicodeMode||this.strict)&&this.raise("Incomplete quantifier"),this.rewind(t)}return!1}consumeAtom(){return this.consumePatternCharacter()||this.consumeDot()||this.consumeReverseSolidusAtomEscape()||!!this.consumeCharacterClass()||this.consumeUncapturingGroup()||this.consumeCapturingGroup()}consumeDot(){return!!this.eat(46)&&(this.onAnyCharacterSet(this.index-1,this.index,"any"),!0)}consumeReverseSolidusAtomEscape(){let e=this.index;if(this.eat(92)){if(this.consumeAtomEscape())return!0;this.rewind(e)}return!1}consumeUncapturingGroup(){let e=this.index;return!!this.eat3(40,63,58)&&(this.onGroupEnter(e),this.consumeDisjunction(),this.eat(41)||this.raise("Unterminated group"),this.onGroupLeave(e,this.index),!0)}consumeCapturingGroup(){let e=this.index;if(this.eat(40)){let t=null;return this.ecmaVersion>=2018?this.consumeGroupSpecifier()&&(t=this._lastStrValue):63===this.currentCodePoint&&this.raise("Invalid group"),this.onCapturingGroupEnter(e,t),this.consumeDisjunction(),this.eat(41)||this.raise("Unterminated group"),this.onCapturingGroupLeave(e,this.index,t),!0}return!1}consumeExtendedAtom(){return this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeReverseSolidusFollowedByC()||!!this.consumeCharacterClass()||this.consumeUncapturingGroup()||this.consumeCapturingGroup()||this.consumeInvalidBracedQuantifier()||this.consumeExtendedPatternCharacter()}consumeReverseSolidusFollowedByC(){let e=this.index;return 92===this.currentCodePoint&&99===this.nextCodePoint&&(this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(e,this.index,92),!0)}consumeInvalidBracedQuantifier(){return this.eatBracedQuantifier(!0)&&this.raise("Nothing to repeat"),!1}consumePatternCharacter(){let e=this.index,t=this.currentCodePoint;return!(-1===t||yT.has(t))&&(this.advance(),this.onCharacter(e,this.index,t),!0)}consumeExtendedPatternCharacter(){let e=this.index,t=this.currentCodePoint;return -1!==t&&94!==t&&36!==t&&92!==t&&46!==t&&42!==t&&43!==t&&63!==t&&40!==t&&41!==t&&91!==t&&124!==t&&(this.advance(),this.onCharacter(e,this.index,t),!0)}consumeGroupSpecifier(){if(this.eat(63)){if(this.eatGroupName()){if(!this._groupSpecifiers.hasInScope(this._lastStrValue))return this._groupSpecifiers.addToScope(this._lastStrValue),!0;this.raise("Duplicate capture group name")}this.raise("Invalid group")}return!1}consumeAtomEscape(){return!!(this.consumeBackreference()||this.consumeCharacterClassEscape()||this.consumeCharacterEscape()||this._nFlag&&this.consumeKGroupName())||((this.strict||this._unicodeMode)&&this.raise("Invalid escape"),!1)}consumeBackreference(){let e=this.index;if(this.eatDecimalEscape()){let t=this._lastIntValue;if(t<=this._numCapturingParens)return this.onBackreference(e-1,this.index,t),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(e)}return!1}consumeCharacterClassEscape(){var e;let t=this.index;if(this.eat(100))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"digit",!1),{};if(this.eat(68))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"digit",!0),{};if(this.eat(115))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"space",!1),{};if(this.eat(83))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"space",!0),{};if(this.eat(119))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"word",!1),{};if(this.eat(87))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"word",!0),{};let r=!1;if(this._unicodeMode&&this.ecmaVersion>=2018&&(this.eat(112)||(r=this.eat(80)))){this._lastIntValue=-1;let n=null;if(this.eat(123)&&(n=this.eatUnicodePropertyValueExpression())&&this.eat(125))return r&&n.strings&&this.raise("Invalid property name"),this.onUnicodePropertyCharacterSet(t-1,this.index,"property",n.key,n.value,r,null!==(e=n.strings)&&void 0!==e&&e),{mayContainStrings:n.strings};this.raise("Invalid property name")}return null}consumeCharacterEscape(){let e=this.index;return!!(this.eatControlEscape()||this.eatCControlLetter()||this.eatZero()||this.eatHexEscapeSequence()||this.eatRegExpUnicodeEscapeSequence()||!this.strict&&!this._unicodeMode&&this.eatLegacyOctalEscapeSequence()||this.eatIdentityEscape())&&(this.onCharacter(e-1,this.index,this._lastIntValue),!0)}consumeKGroupName(){let e=this.index;if(this.eat(107)){if(this.eatGroupName()){let t=this._lastStrValue;return this._backreferenceNames.add(t),this.onBackreference(e-1,this.index,t),!0}this.raise("Invalid named reference")}return!1}consumeCharacterClass(){let e=this.index;if(this.eat(91)){let t=this.eat(94);this.onCharacterClassEnter(e,t,this._unicodeSetsMode);let r=this.consumeClassContents();return this.eat(93)||(-1===this.currentCodePoint&&this.raise("Unterminated character class"),this.raise("Invalid character in character class")),t&&r.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(e,this.index,t),r}return null}consumeClassContents(){if(this._unicodeSetsMode)return 93===this.currentCodePoint?{}:this.consumeClassSetExpression();let e=this.strict||this._unicodeMode;for(;;){let t=this.index;if(!this.consumeClassAtom())break;let r=this._lastIntValue;if(!this.eat(45))continue;if(this.onCharacter(this.index-1,this.index,45),!this.consumeClassAtom())break;let n=this._lastIntValue;if(-1===r||-1===n){e&&this.raise("Invalid character class");continue}r>n&&this.raise("Range out of order in character class"),this.onCharacterClassRange(t,this.index,r,n)}return{}}consumeClassAtom(){let e=this.index,t=this.currentCodePoint;if(-1!==t&&92!==t&&93!==t)return this.advance(),this._lastIntValue=t,this.onCharacter(e,this.index,this._lastIntValue),!0;if(this.eat(92)){if(this.consumeClassEscape())return!0;if(!this.strict&&99===this.currentCodePoint)return this._lastIntValue=92,this.onCharacter(e,this.index,this._lastIntValue),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(e)}return!1}consumeClassEscape(){let e=this.index;if(this.eat(98))return this._lastIntValue=8,this.onCharacter(e-1,this.index,this._lastIntValue),!0;if(this._unicodeMode&&this.eat(45))return this._lastIntValue=45,this.onCharacter(e-1,this.index,this._lastIntValue),!0;let t=0;return!this.strict&&!this._unicodeMode&&99===this.currentCodePoint&&(yb(t=this.nextCodePoint)||95===t)?(this.advance(),this.advance(),this._lastIntValue=t%32,this.onCharacter(e-1,this.index,this._lastIntValue),!0):!!this.consumeCharacterClassEscape()||this.consumeCharacterEscape()}consumeClassSetExpression(){let e=this.index,t=!1,r=null;if(this.consumeClassSetCharacter()){if(this.consumeClassSetRangeFromOperator(e))return this.consumeClassUnionRight({}),{};t=!1}else if(r=this.consumeClassSetOperand())t=r.mayContainStrings;else{let e=this.currentCodePoint;92===e&&(this.advance(),this.raise("Invalid escape")),e===this.nextCodePoint&&yI.has(e)&&this.raise("Invalid set operation in character class"),this.raise("Invalid character in character class")}if(this.eat2(38,38)){for(;38!==this.currentCodePoint&&(r=this.consumeClassSetOperand());)if(this.onClassIntersection(e,this.index),r.mayContainStrings||(t=!1),!this.eat2(38,38))return{mayContainStrings:t};this.raise("Invalid character in character class")}if(this.eat2(45,45)){for(;this.consumeClassSetOperand();)if(this.onClassSubtraction(e,this.index),!this.eat2(45,45))return{mayContainStrings:t};this.raise("Invalid character in character class")}return this.consumeClassUnionRight({mayContainStrings:t})}consumeClassUnionRight(e){let t=e.mayContainStrings;for(;;){let e=this.index;if(this.consumeClassSetCharacter()){this.consumeClassSetRangeFromOperator(e);continue}let r=this.consumeClassSetOperand();if(r){r.mayContainStrings&&(t=!0);continue}break}return{mayContainStrings:t}}consumeClassSetRangeFromOperator(e){let t=this.index,r=this._lastIntValue;if(this.eat(45)){if(this.consumeClassSetCharacter()){let t=this._lastIntValue;return(-1===r||-1===t)&&this.raise("Invalid character class"),r>t&&this.raise("Range out of order in character class"),this.onCharacterClassRange(e,this.index,r,t),!0}this.rewind(t)}return!1}consumeClassSetOperand(){let e=null;return(e=this.consumeNestedClass())||(e=this.consumeClassStringDisjunction())?e:this.consumeClassSetCharacter()?{}:null}consumeNestedClass(){let e=this.index;if(this.eat(91)){let t=this.eat(94);this.onCharacterClassEnter(e,t,!0);let r=this.consumeClassContents();return this.eat(93)||this.raise("Unterminated character class"),t&&r.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(e,this.index,t),r}if(this.eat(92)){let t=this.consumeCharacterClassEscape();if(t)return t;this.rewind(e)}return null}consumeClassStringDisjunction(){let e=this.index;if(this.eat3(92,113,123)){this.onClassStringDisjunctionEnter(e);let t=0,r=!1;do this.consumeClassString(t++).mayContainStrings&&(r=!0);while(this.eat(124));if(this.eat(125))return this.onClassStringDisjunctionLeave(e,this.index),{mayContainStrings:r};this.raise("Unterminated class string disjunction")}return null}consumeClassString(e){let t=this.index,r=0;for(this.onStringAlternativeEnter(t,e);-1!==this.currentCodePoint&&this.consumeClassSetCharacter();)r++;return this.onStringAlternativeLeave(t,this.index,e),{mayContainStrings:1!==r}}consumeClassSetCharacter(){var e;let t=this.index,r=this.currentCodePoint;if((r!==this.nextCodePoint||!yI.has(r))&&-1!==r&&!yB.has(r))return this._lastIntValue=r,this.advance(),this.onCharacter(t,this.index,this._lastIntValue),!0;if(this.eat(92)){if(this.consumeCharacterEscape())return!0;if(e=this.currentCodePoint,yj.has(e))return this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(t,this.index,this._lastIntValue),!0;if(this.eat(98))return this._lastIntValue=8,this.onCharacter(t,this.index,this._lastIntValue),!0;this.rewind(t)}return!1}eatGroupName(){if(this.eat(60)){if(this.eatRegExpIdentifierName()&&this.eat(62))return!0;this.raise("Invalid capture group name")}return!1}eatRegExpIdentifierName(){if(this.eatRegExpIdentifierStart()){for(this._lastStrValue=String.fromCodePoint(this._lastIntValue);this.eatRegExpIdentifierPart();)this._lastStrValue+=String.fromCodePoint(this._lastIntValue);return!0}return!1}eatRegExpIdentifierStart(){var e,t;let r=this.index,n=!this._unicodeMode&&this.ecmaVersion>=2020,u=this.currentCodePoint;return(this.advance(),92===u&&this.eatRegExpUnicodeEscapeSequence(n)?u=this._lastIntValue:n&&yE(u)&&yC(this.currentCodePoint)&&(u=yA(u,this.currentCodePoint),this.advance()),!((t=e=u)<65)&&(t<91||!(t<97)&&(t<123||yi(t)))||36===e||95===e)?(this._lastIntValue=u,!0):(this.index!==r&&this.rewind(r),!1)}eatRegExpIdentifierPart(){var e;let t=this.index,r=!this._unicodeMode&&this.ecmaVersion>=2020,n=this.currentCodePoint;return(this.advance(),92===n&&this.eatRegExpUnicodeEscapeSequence(r)?n=this._lastIntValue:r&&yE(n)&&yC(this.currentCodePoint)&&(n=yA(n,this.currentCodePoint),this.advance()),ya(e=n)||36===e||8204===e||8205===e)?(this._lastIntValue=n,!0):(this.index!==t&&this.rewind(t),!1)}eatCControlLetter(){let e=this.index;if(this.eat(99)){if(this.eatControlLetter())return!0;this.rewind(e)}return!1}eatZero(){return!(48!==this.currentCodePoint||yb(this.nextCodePoint))&&(this._lastIntValue=0,this.advance(),!0)}eatControlEscape(){return this.eat(102)?(this._lastIntValue=12,!0):this.eat(110)?(this._lastIntValue=10,!0):this.eat(114)?(this._lastIntValue=13,!0):this.eat(116)?(this._lastIntValue=9,!0):!!this.eat(118)&&(this._lastIntValue=11,!0)}eatControlLetter(){let e=this.currentCodePoint;return!!yy(e)&&(this.advance(),this._lastIntValue=e%32,!0)}eatRegExpUnicodeEscapeSequence(e=!1){let t=this.index,r=e||this._unicodeMode;if(this.eat(117)){if(r&&this.eatRegExpUnicodeSurrogatePairEscape()||this.eatFixedHexDigits(4)||r&&this.eatRegExpUnicodeCodePointEscape())return!0;(this.strict||r)&&this.raise("Invalid unicode escape"),this.rewind(t)}return!1}eatRegExpUnicodeSurrogatePairEscape(){let e=this.index;if(this.eatFixedHexDigits(4)){let t=this._lastIntValue;if(yE(t)&&this.eat(92)&&this.eat(117)&&this.eatFixedHexDigits(4)){let e=this._lastIntValue;if(yC(e))return this._lastIntValue=yA(t,e),!0}this.rewind(e)}return!1}eatRegExpUnicodeCodePointEscape(){var e;let t=this.index;return!!(this.eat(123)&&this.eatHexDigits()&&this.eat(125))&&(e=this._lastIntValue)>=0&&e<=1114111||(this.rewind(t),!1)}eatIdentityEscape(){let e=this.currentCodePoint;return!!this.isValidIdentityEscape(e)&&(this._lastIntValue=e,this.advance(),!0)}isValidIdentityEscape(e){return -1!==e&&(this._unicodeMode?yT.has(e)||47===e:this.strict?!ya(e):this._nFlag?!(99===e||107===e):99!==e)}eatDecimalEscape(){this._lastIntValue=0;let e=this.currentCodePoint;if(e>=49&&e<=57){do this._lastIntValue=10*this._lastIntValue+(e-48),this.advance();while((e=this.currentCodePoint)>=48&&e<=57);return!0}return!1}eatUnicodePropertyValueExpression(){let e=this.index;if(this.eatUnicodePropertyName()&&this.eat(61)){let e=this._lastStrValue;if(this.eatUnicodePropertyValue()){let t=this._lastStrValue;if(yg(this.ecmaVersion,e,t))return{key:e,value:t||null};this.raise("Invalid property name")}}if(this.rewind(e),this.eatLoneUnicodePropertyNameOrValue()){var t;let e=this._lastStrValue;if(yg(this.ecmaVersion,"General_Category",e))return{key:"General_Category",value:e||null};if((t=this.ecmaVersion)>=2018&&yh.es2018.has(e)||t>=2019&&yh.es2019.has(e)||t>=2021&&yh.es2021.has(e))return{key:e,value:null};if(this._unicodeSetsMode&&this.ecmaVersion>=2024&&ym.es2024.has(e))return{key:e,value:null,strings:!0};this.raise("Invalid property name")}return null}eatUnicodePropertyName(){for(this._lastStrValue="";yL(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return""!==this._lastStrValue}eatUnicodePropertyValue(){var e;for(this._lastStrValue="";yL(e=this.currentCodePoint)||yb(e);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return""!==this._lastStrValue}eatLoneUnicodePropertyNameOrValue(){return this.eatUnicodePropertyValue()}eatHexEscapeSequence(){let e=this.index;if(this.eat(120)){if(this.eatFixedHexDigits(2))return!0;(this._unicodeMode||this.strict)&&this.raise("Invalid escape"),this.rewind(e)}return!1}eatDecimalDigits(){let e=this.index;for(this._lastIntValue=0;yb(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+yx(this.currentCodePoint),this.advance();return this.index!==e}eatHexDigits(){let e=this.index;for(this._lastIntValue=0;yv(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+yx(this.currentCodePoint),this.advance();return this.index!==e}eatLegacyOctalEscapeSequence(){if(this.eatOctalDigit()){let e=this._lastIntValue;if(this.eatOctalDigit()){let t=this._lastIntValue;e<=3&&this.eatOctalDigit()?this._lastIntValue=64*e+8*t+this._lastIntValue:this._lastIntValue=8*e+t}else this._lastIntValue=e;return!0}return!1}eatOctalDigit(){let e=this.currentCodePoint;return e>=48&&e<=55?(this.advance(),this._lastIntValue=e-48,!0):(this._lastIntValue=0,!1)}eatFixedHexDigits(e){let t=this.index;this._lastIntValue=0;for(let r=0;r<e;++r){let e=this.currentCodePoint;if(!yv(e))return this.rewind(t),!1;this._lastIntValue=16*this._lastIntValue+yx(e),this.advance()}return!0}}let yN={},yR={},yM={};function y$(e){return"Character"===e.type||"CharacterSet"===e.type||"CharacterClass"===e.type||"ExpressionCharacterClass"===e.type||"ClassStringDisjunction"===e.type}class yU{constructor(e){var t;this._node=yN,this._expressionBufferMap=new Map,this._flags=yR,this._backreferences=[],this._capturingGroups=[],this.source="",this.strict=!!(null==e?void 0:e.strict),this.ecmaVersion=null!==(t=null==e?void 0:e.ecmaVersion)&&void 0!==t?t:2025}get pattern(){if("Pattern"!==this._node.type)throw Error("UnknownError");return this._node}get flags(){if("Flags"!==this._flags.type)throw Error("UnknownError");return this._flags}onRegExpFlags(e,t,{global:r,ignoreCase:n,multiline:u,unicode:a,sticky:i,dotAll:o,hasIndices:s,unicodeSets:d}){this._flags={type:"Flags",parent:null,start:e,end:t,raw:this.source.slice(e,t),global:r,ignoreCase:n,multiline:u,unicode:a,sticky:i,dotAll:o,hasIndices:s,unicodeSets:d}}onPatternEnter(e){this._node={type:"Pattern",parent:null,start:e,end:e,raw:"",alternatives:[]},this._backreferences.length=0,this._capturingGroups.length=0}onPatternLeave(e,t){for(let r of(this._node.end=t,this._node.raw=this.source.slice(e,t),this._backreferences)){let e=r.ref,t="number"==typeof e?[this._capturingGroups[e-1]]:this._capturingGroups.filter(t=>t.name===e);if(1===t.length){let e=t[0];r.ambiguous=!1,r.resolved=e}else r.ambiguous=!0,r.resolved=t;for(let e of t)e.references.push(r)}}onAlternativeEnter(e){let t=this._node;if("Assertion"!==t.type&&"CapturingGroup"!==t.type&&"Group"!==t.type&&"Pattern"!==t.type)throw Error("UnknownError");this._node={type:"Alternative",parent:t,start:e,end:e,raw:"",elements:[]},t.alternatives.push(this._node)}onAlternativeLeave(e,t){let r=this._node;if("Alternative"!==r.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onGroupEnter(e){let t=this._node;if("Alternative"!==t.type)throw Error("UnknownError");this._node={type:"Group",parent:t,start:e,end:e,raw:"",alternatives:[]},t.elements.push(this._node)}onGroupLeave(e,t){let r=this._node;if("Group"!==r.type||"Alternative"!==r.parent.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onCapturingGroupEnter(e,t){let r=this._node;if("Alternative"!==r.type)throw Error("UnknownError");this._node={type:"CapturingGroup",parent:r,start:e,end:e,raw:"",name:t,alternatives:[],references:[]},r.elements.push(this._node),this._capturingGroups.push(this._node)}onCapturingGroupLeave(e,t){let r=this._node;if("CapturingGroup"!==r.type||"Alternative"!==r.parent.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onQuantifier(e,t,r,n,u){let a=this._node;if("Alternative"!==a.type)throw Error("UnknownError");let i=a.elements.pop();if(null==i||"Quantifier"===i.type||"Assertion"===i.type&&"lookahead"!==i.kind)throw Error("UnknownError");let o={type:"Quantifier",parent:a,start:i.start,end:t,raw:this.source.slice(i.start,t),min:r,max:n,greedy:u,element:i};a.elements.push(o),i.parent=o}onLookaroundAssertionEnter(e,t,r){let n=this._node;if("Alternative"!==n.type)throw Error("UnknownError");let u=this._node={type:"Assertion",parent:n,start:e,end:e,raw:"",kind:t,negate:r,alternatives:[]};n.elements.push(u)}onLookaroundAssertionLeave(e,t){let r=this._node;if("Assertion"!==r.type||"Alternative"!==r.parent.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onEdgeAssertion(e,t,r){let n=this._node;if("Alternative"!==n.type)throw Error("UnknownError");n.elements.push({type:"Assertion",parent:n,start:e,end:t,raw:this.source.slice(e,t),kind:r})}onWordBoundaryAssertion(e,t,r,n){let u=this._node;if("Alternative"!==u.type)throw Error("UnknownError");u.elements.push({type:"Assertion",parent:u,start:e,end:t,raw:this.source.slice(e,t),kind:r,negate:n})}onAnyCharacterSet(e,t,r){let n=this._node;if("Alternative"!==n.type)throw Error("UnknownError");n.elements.push({type:"CharacterSet",parent:n,start:e,end:t,raw:this.source.slice(e,t),kind:r})}onEscapeCharacterSet(e,t,r,n){let u=this._node;if("Alternative"!==u.type&&"CharacterClass"!==u.type)throw Error("UnknownError");u.elements.push({type:"CharacterSet",parent:u,start:e,end:t,raw:this.source.slice(e,t),kind:r,negate:n})}onUnicodePropertyCharacterSet(e,t,r,n,u,a,i){let o=this._node;if("Alternative"!==o.type&&"CharacterClass"!==o.type)throw Error("UnknownError");let s={type:"CharacterSet",parent:null,start:e,end:t,raw:this.source.slice(e,t),kind:r,strings:null,key:n};if(i){if("CharacterClass"===o.type&&!o.unicodeSets||a||null!==u)throw Error("UnknownError");o.elements.push(Object.assign(Object.assign({},s),{parent:o,strings:i,value:u,negate:a}))}else o.elements.push(Object.assign(Object.assign({},s),{parent:o,strings:i,value:u,negate:a}))}onCharacter(e,t,r){let n=this._node;if("Alternative"!==n.type&&"CharacterClass"!==n.type&&"StringAlternative"!==n.type)throw Error("UnknownError");n.elements.push({type:"Character",parent:n,start:e,end:t,raw:this.source.slice(e,t),value:r})}onBackreference(e,t,r){let n=this._node;if("Alternative"!==n.type)throw Error("UnknownError");let u={type:"Backreference",parent:n,start:e,end:t,raw:this.source.slice(e,t),ref:r,ambiguous:!1,resolved:yM};n.elements.push(u),this._backreferences.push(u)}onCharacterClassEnter(e,t,r){let n=this._node,u={type:"CharacterClass",parent:n,start:e,end:e,raw:"",unicodeSets:r,negate:t,elements:[]};if("Alternative"===n.type){let e=Object.assign(Object.assign({},u),{parent:n});this._node=e,n.elements.push(e)}else if("CharacterClass"===n.type&&n.unicodeSets&&r){let e=Object.assign(Object.assign({},u),{parent:n,unicodeSets:r});this._node=e,n.elements.push(e)}else throw Error("UnknownError")}onCharacterClassLeave(e,t){let r=this._node;if("CharacterClass"!==r.type||"Alternative"!==r.parent.type&&"CharacterClass"!==r.parent.type)throw Error("UnknownError");let n=r.parent;r.end=t,r.raw=this.source.slice(e,t),this._node=n;let u=this._expressionBufferMap.get(r);if(!u)return;if(r.elements.length>0)throw Error("UnknownError");this._expressionBufferMap.delete(r);let a={type:"ExpressionCharacterClass",parent:n,start:r.start,end:r.end,raw:r.raw,negate:r.negate,expression:u};if(u.parent=a,r!==n.elements.pop())throw Error("UnknownError");n.elements.push(a)}onCharacterClassRange(e,t){let r=this._node;if("CharacterClass"!==r.type)throw Error("UnknownError");let n=r.elements,u=n.pop();if(!u||"Character"!==u.type)throw Error("UnknownError");if(!r.unicodeSets){let e=n.pop();if(!e||"Character"!==e.type||45!==e.value)throw Error("UnknownError")}let a=n.pop();if(!a||"Character"!==a.type)throw Error("UnknownError");let i={type:"CharacterClassRange",parent:r,start:e,end:t,raw:this.source.slice(e,t),min:a,max:u};a.parent=i,u.parent=i,n.push(i)}onClassIntersection(e,t){var r;let n=this._node;if("CharacterClass"!==n.type||!n.unicodeSets)throw Error("UnknownError");let u=n.elements.pop(),a=null!==(r=this._expressionBufferMap.get(n))&&void 0!==r?r:n.elements.pop();if(!a||!u||"ClassSubtraction"===a.type||"ClassIntersection"!==a.type&&!y$(a)||!y$(u))throw Error("UnknownError");let i={type:"ClassIntersection",parent:n,start:e,end:t,raw:this.source.slice(e,t),left:a,right:u};a.parent=i,u.parent=i,this._expressionBufferMap.set(n,i)}onClassSubtraction(e,t){var r;let n=this._node;if("CharacterClass"!==n.type||!n.unicodeSets)throw Error("UnknownError");let u=n.elements.pop(),a=null!==(r=this._expressionBufferMap.get(n))&&void 0!==r?r:n.elements.pop();if(!a||!u||"ClassIntersection"===a.type||"ClassSubtraction"!==a.type&&!y$(a)||!y$(u))throw Error("UnknownError");let i={type:"ClassSubtraction",parent:n,start:e,end:t,raw:this.source.slice(e,t),left:a,right:u};a.parent=i,u.parent=i,this._expressionBufferMap.set(n,i)}onClassStringDisjunctionEnter(e){let t=this._node;if("CharacterClass"!==t.type||!t.unicodeSets)throw Error("UnknownError");this._node={type:"ClassStringDisjunction",parent:t,start:e,end:e,raw:"",alternatives:[]},t.elements.push(this._node)}onClassStringDisjunctionLeave(e,t){let r=this._node;if("ClassStringDisjunction"!==r.type||"CharacterClass"!==r.parent.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onStringAlternativeEnter(e){let t=this._node;if("ClassStringDisjunction"!==t.type)throw Error("UnknownError");this._node={type:"StringAlternative",parent:t,start:e,end:e,raw:"",elements:[]},t.alternatives.push(this._node)}onStringAlternativeLeave(e,t){let r=this._node;if("StringAlternative"!==r.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}}let yz=/^[!=]=/,yV=new class{constructor(e){this._state=new yU(e),this._validator=new yO(this._state)}parseLiteral(e,t=0,r=e.length){this._state.source=e,this._validator.validateLiteral(e,t,r);let n=this._state.pattern,u=this._state.flags,a={type:"RegExpLiteral",parent:null,start:t,end:r,raw:e,pattern:n,flags:u};return n.parent=a,u.parent=a,a}parseFlags(e,t=0,r=e.length){return this._state.source=e,this._validator.validateFlags(e,t,r),this._state.flags}parsePattern(e,t=0,r=e.length,n){return this._state.source=e,this._validator.validatePattern(e,t,r,n),this._state.pattern}};function yW(e){return d.nullThrows(e.parent?.type===o.ChainExpression?e.parent.parent:e.parent,d.NullThrowsReasons.MissingParent)}function yq(e){return e.type===o.BinaryExpression&&yz.test(e.operator)}var yG={rules:{"array/no-unneeded-flat-map":k,"browser/prefer-location-assign":P,"jsx/no-template-literal":I,"jsx/no-unneeded-nested":B,"string/no-locale-case":L,"string/no-simple-template-literal":N,"type/no-instanceof-wrapper":M,"unicode/no-bidi":G,"unicode/no-invisible":H,"ban-eslint-disable":g8,"no-redundant-variable":K,"no-single-return":X,"prefer-early-return":Y,"prefer-fetch":ee,"prefer-timer-id":en,"import-dedupe":g6,"no-return-await":g9,"no-expression-empty-lines":yt,"object-format":yn,"string/prefer-string-starts-ends-with":a({name:"prefer-string-starts-ends-with",meta:{type:"suggestion",docs:{description:"Enforce using `String#startsWith` and `String#endsWith` over other equivalent methods of checking substrings"},messages:{preferStartsWith:"Use 'String#startsWith' method instead.",preferEndsWith:"Use the 'String#endsWith' method instead."},schema:[],fixable:"code"},create(e){i(e.sourceCode.parserServices);let t=e.sourceCode.parserServices,r=t.program.getTypeChecker(),n=e.sourceCode.scopeManager?.scopes[0];function u(e){return"string"===l(r,t.getTypeAtLocation(e))}function a(e,t){let r=s.getStaticValue(e,n);return null!=r&&r.value===t}function d(e){let t=s.getStaticValue(e,n);return null!=t&&"string"==typeof t.value&&t.value[0]===t.value}function c(t,r){if(t.type===o.MemberExpression)return"length"===s.getPropertyName(t,n)&&function(t,r){let n=e.sourceCode.getTokens(t),u=e.sourceCode.getTokens(r);if(n.length!==u.length)return!1;for(let e=0,t=n.length;e<t;++e){let t=n[e],r=u[e];if(t.type!==r.type||t.value!==r.value)return!1}return!0}(t.object,r);let u=s.getStaticValue(t,n),a=s.getStaticValue(r,n);return null!=u&&null!=a&&"number"==typeof u.value&&"string"==typeof a.value&&u.value===a.value.length}function f(e,t,r){return e.type===o.UnaryExpression&&"-"===e.operator&&c(e.argument,t)||e.type===o.BinaryExpression&&"-"===e.operator&&c(e.left,r)&&c(e.right,t)}function p(t){return[e.sourceCode.getTokenAfter(t.object,s.isNotClosingParenToken).range[0],t.range[1]]}function h(e){let t=s.getStaticValue(e,n);if(null==t||!(t.value instanceof RegExp))return null;let{source:r,flags:u}=t.value,a=r.startsWith("^"),i=r.endsWith("$");if(a===i||u.includes("i")||u.includes("m"))return null;let o=function(e,t){let r=yV.parsePattern(e,void 0,void 0,{unicode:t});if(1!==r.alternatives.length)return null;let n=r.alternatives[0].elements,u=n[0];return("Assertion"===u.type&&"start"===u.kind?n.shift():n.pop(),n.every(e=>"Character"===e.type))?String.fromCodePoint(...n.map(e=>e.value)):null}(r,u.includes("u"));return null==o?null:{isEndsWith:i,isStartsWith:a,text:o}}function*m(e,t,r,n,u){let a=p(function e(t){let r;if(t.type===o.ChainExpression)return e(t.expression);if((r=t.type===o.CallExpression?t.callee:t).type!==o.MemberExpression)throw Error(`Expected a MemberExpression, got ${r.type}`);return r}(t.left));n&&(yield e.insertTextBefore(t,"!")),yield e.replaceTextRange([a[0],t.right.range[0]],`${u?"?.":"."}${r}sWith(`),yield e.replaceTextRange([t.right.range[1],t.range[1]],")")}function*g(e,t,r,n,u,a,i){a&&(yield e.insertTextBefore(t,"!")),yield e.replaceTextRange(p(n),`${i?"?.":"."}${u}sWith`),yield e.removeRange([r.range[1],t.range[1]])}return{'BinaryExpression > MemberExpression.left[computed=true], BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="charAt"][computed=false], BinaryExpression > ChainExpression.left > MemberExpression[computed=true], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="charAt"][computed=false]'(t){var r,i;let l=yW(t),f=l.type===o.CallExpression,p=null;if(l.type===o.CallExpression?(1===l.arguments.length&&(p=l.arguments[0]),l=yW(l)):p=t.property,null==p||!yq(l)||!u(t.object))return;let h=(r=p,i=t.object,r.type===o.BinaryExpression&&"-"===r.operator&&c(r.left,i)&&a(r.right,1)),g=!h&&a(p,0);if(!g&&!h)return;let y=l;g&&!f&&function(e){if(!d(e))return!1;let t=s.getStaticValue(e,n);return null!=t&&"string"==typeof t.value&&t.value[0]===t.value&&function(e){let t=e.codePointAt(0);return null!=t&&t>=0&&t<=127}(t.value)}(y.right)||e.report({node:l,messageId:g?"preferStartsWith":"preferEndsWith",fix:e=>d(y.right)?m(e,y,g?"start":"end",y.operator.startsWith("!"),t.optional):null})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="indexOf"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="indexOf"][computed=false]'(t){let r=yW(t),n=yW(r);1===r.arguments.length&&yq(n)&&a(n.right,0)&&u(t.object)&&e.report({node:n,messageId:"preferStartsWith",fix:e=>g(e,n,r,t,"start",n.operator.startsWith("!"),t.optional)})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="lastIndexOf"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="lastIndexOf"][computed=false]'(t){let r=yW(t),n=yW(r);1===r.arguments.length&&yq(n)&&n.right.type===o.BinaryExpression&&"-"===n.right.operator&&c(n.right.left,t.object)&&c(n.right.right,r.arguments[0])&&u(t.object)&&e.report({node:n,messageId:"preferEndsWith",fix:e=>g(e,n,r,t,"end",n.operator.startsWith("!"),t.optional)})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="match"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="match"][computed=false]'(t){let r=yW(t),a=yW(r);if(!yq(a)||!function(e){let t=s.getStaticValue(e,n);return null!=t&&null==t.value}(a.right)||!u(t.object))return;let i=1===r.arguments.length?h(r.arguments[0]):null;if(null==i)return;let{isStartsWith:o,text:d}=i;e.report({node:r,messageId:o?"preferStartsWith":"preferEndsWith",*fix(e){a.operator.startsWith("!")||(yield e.insertTextBefore(a,"!")),yield e.replaceTextRange(p(t),`${t.optional?"?.":"."}${o?"start":"end"}sWith`),yield e.replaceText(r.arguments[0],JSON.stringify(d)),yield e.removeRange([r.range[1],a.range[1]])}})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="slice"][computed=false], BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="substring"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="slice"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="substring"][computed=false]'(t){let r=yW(t),n=yW(r);if(!yq(n)||!u(t.object))return;let i=!1,s=!1;if(1===r.arguments.length?f(r.arguments[0],n.right,t.object)&&(i=!0):2===r.arguments.length&&(a(r.arguments[0],0)&&c(r.arguments[1],n.right)?s=!0:(c(r.arguments[1],t.object)||a(r.arguments[1],0))&&f(r.arguments[0],n.right,t.object)&&(i=!0)),!s&&!i)return;let d="slice"===t.property.name;e.report({node:n,messageId:s?"preferStartsWith":"preferEndsWith",fix(e){if(2===n.operator.length&&(n.right.type!==o.Literal||"string"!=typeof n.right.value))return null;if(s){if(!c(r.arguments[1],n.right))return null}else{let e=r.arguments[0];if(!(e.type===o.BinaryExpression&&"-"===e.operator&&c(e.left,t.object)&&c(e.right,n.right)||d&&e.type===o.UnaryExpression&&"-"===e.operator&&c(e.argument,n.right)))return null}return m(e,n,s?"start":"end",n.operator.startsWith("!"),t.optional)}})},'CallExpression > MemberExpression.callee[property.name="test"][computed=false]':function(t){let r=yW(t),n=1===r.arguments.length?h(t.object):null;if(null==n)return;let{isStartsWith:u,text:a}=n,i=u?"startsWith":"endsWith";e.report({node:r,messageId:u?"preferStartsWith":"preferEndsWith",*fix(e){let n=r.arguments[0],u=n.type!==o.Literal&&n.type!==o.TemplateLiteral&&n.type!==o.Identifier&&n.type!==o.MemberExpression&&n.type!==o.CallExpression;yield e.removeRange([r.range[0],n.range[0]]),u&&(yield e.insertTextBefore(n,"("),yield e.insertTextAfter(n,")")),yield e.insertTextAfter(n,`${t.optional?"?.":"."}${i}(${JSON.stringify(a)}`)}})}}}}),"string/no-unneeded-to-string":eu,"type/no-force-cast-via-top-type":ea,"type/no-wrapper-type-reference":eo,"no-default-error":es,"no-export-const-enum":a({name:"no-export-const-enum",meta:{type:"suggestion",docs:{description:"Disallow using `const enum` expression as it can not be inlined and tree-shaken by swc/esbuild/babel/webpack/rollup/vite/bun/rspack"},messages:{noConstEnum:"Do not use `const enum` expression"},schema:[]},create(e){let t=(t,r)=>{let n=s.findVariable(e.sourceCode.getScope(t),r);n?.defs.forEach(r=>{r.node.type===o.TSEnumDeclaration&&r.node.const&&e.report({node:t,messageId:"noConstEnum"})})};return{ExportNamedDeclaration(r){let n=r.declaration;if(n?.type===o.TSEnumDeclaration&&n.const){e.report({node:r,messageId:"noConstEnum"});return}if(n?.type===o.VariableDeclaration){let e=n.declarations[0].id;e.type===o.Identifier&&t(r,e)}},ExportDefaultDeclaration(e){let r=e.declaration;r.type===o.Identifier&&t(e,r)}}}}),...Object.fromEntries(Object.entries({"unicorn/better-regex":lD,"unicorn/catch-error-name":m7,"unicorn/custom-error-definition":gf,"unicorn/no-nested-ternary":tb,"unicorn/prefer-event-target":nU,"unicorn/prefer-keyboard-event-key":nY,"unicorn/prefer-text-content":n3,"unicorn/require-array-join-separator":uA,"unicorn/no-thenable":uB,"unicorn/no-invalid-remove-event-listener":uN,"unicorn/consistent-function-scoping":uJ,"unicorn/no-new-buffer":ap,"unicorn/no-console-spaces":av,"unicorn/no-empty-file":a_,"unicorn/no-useless-fallback-in-spread":aT,"unicorn/no-useless-length-check":aR,"unicorn/no-useless-promise-resolve-reject":az,"unicorn/no-zero-fractions":aK,"unicorn/prefer-export-from":a7,"unicorn/prefer-native-coercion-functions":il,"unicorn/no-document-cookie":iv,"unicorn/prefer-add-event-listener":iB,"unicorn/prefer-array-index-of":iG,"unicorn/prefer-blob-reading-methods":iK,"unicorn/prefer-date-now":i5,"unicorn/prefer-dom-node-dataset":oa,"unicorn/prefer-modern-math-apis":oC,"unicorn/number-literal-case":oN,"unicorn/prefer-number-properties":oq,"unicorn/prefer-reflect-apply":o0,"unicorn/prefer-set-size":o6,"unicorn/prefer-string-replace-all":ss,"unicorn/prefer-string-slice":sy,"unicorn/prefer-string-trim-start-end":sx,"unicorn/no-unreadable-iife":sS,"unicorn/throw-new-error":sF,"unicorn/escape-case":lB,"unicorn/no-hex-escape":l$,"unicorn/prefer-prototype-methods":lZ,"unicorn/error-message":l0,"unicorn/no-instanceof-array":l6,"unicorn/prefer-type-error":co,"unicorn/consistent-destructuring":cp,"unicorn/new-for-builtins":cx,"unicorn/no-array-push-push":cT,"unicorn/no-process-exit":cN,"unicorn/no-static-only-class":c7,"unicorn/no-unreadable-array-destructuring":fu,"unicorn/no-useless-spread":fC,"unicorn/no-useless-switch-case":fF,"unicorn/no-useless-undefined":f$,"unicorn/numeric-separators-style":fG,"unicorn/prefer-array-find":pm,"unicorn/prefer-array-flat-map":pE,"unicorn/prefer-array-flat":p$,"unicorn/prefer-array-some":p2,"unicorn/prefer-code-point":p5,"unicorn/prefer-default-parameters":ho,"unicorn/prefer-logical-operator-over-ternary":hm,"unicorn/prefer-optional-catch-binding":hx,"unicorn/prefer-regexp-test":hL,"unicorn/prefer-set-has":hG,"unicorn/prefer-string-raw":hX,"unicorn/prefer-switch":h5,"unicorn/require-number-to-fixed-digits-argument":h7,"unicorn/template-indent":mB,"unicorn/no-single-promise-in-promise-methods":cY,"unicorn/no-await-in-promise-methods":m$,"unicorn/no-negation-in-equality-check":mX,"unicorn/no-length-as-slice-end":m3,"unicorn/no-lonely-if":gE,"unicorn/no-magic-array-flat-depth":g_,"unicorn/no-negated-condition":gB,"unicorn/no-object-as-default-parameter":gN,"unicorn/prefer-negative-index":gH,"unicorn/prefer-node-protocol":g2}).map(([e,t])=>{var r;return[e,{...t,meta:{schema:[],...t.meta,docs:{description:"",...t.meta.docs,url:eh(e)}},create:(r=t.create,e=>{let t={},n=(e,r)=>{t[e]??(t[e]=[]),t[e].push(r)};for(let[t,u]of Object.entries(r(new Proxy(e,{get:(e,t,r)=>"on"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])n(r,t)}:"onExit"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])n(`${r}:exit`,t)}:Reflect.get(e,t,r)}),void 0)??{}))n(t,u);return Object.fromEntries(Object.entries(t).map(([t,r])=>[t,(...t)=>{for(let n of r)!function(e,t){if(e){for(let r of(yZ(e)||(e=[e]),e))if(r){if(r.fix&&(r.fix=yJ(r.fix)),yZ(r.suggest))for(let e of r.suggest)e.fix&&(e.fix=yJ(e.fix)),e.data={...r.data,...e.data};t.report(r)}}}(n(...t),e)}]))})}]}))}};let yZ=e=>!!e&&Symbol.iterator in e;class yH extends Error{constructor(e,t){super(e,t),this.name="FixAbortError"}}let yK={abort(){throw new yH("Fix aborted.")}};function yJ(e){return t=>{let r=e(t,yK);if(yZ(r))try{return[...r]}catch(e){if(e instanceof yH)return;throw e}return r}}export{yG as default};
|
|
32
|
+
`,gi=e=>{if(!e.superClass)return!1;let{name:t,type:r,property:n}=e.superClass;return"MemberExpression"===r&&({name:t}=n),gn.test(t)},go=e=>"ExpressionStatement"===e.type&&"CallExpression"===e.expression.type&&"Super"===e.expression.callee.type,gs=(e,t)=>{if("ExpressionStatement"!==e.type||"AssignmentExpression"!==e.expression.type)return!1;let r=e.expression.left;return!!r.object&&"ThisExpression"===r.object.type&&r.property.name===t},gd=(e,t)=>"PropertyDefinition"===e.type&&!e.computed&&"Identifier"===e.key.type&&e.key.name===t;function*gl(e,t){if(!gi(t)||null===t.id)return;let{name:r}=t.id,n=gu(r);r!==n&&(yield{node:t.id,message:`Invalid class name, use \`${n}\`.`});let{body:u,range:a}=t.body,i=u.find(e=>"constructor"===e.kind);if(!i){yield{node:t,message:"Add a constructor to your error.",fix:e=>e.insertTextAfterRange([a[0],a[0]+1],ga(r))};return}let o=i.value.body;if(!o)return;let s=o.body,d=s.find(e=>go(e)),l=s.findIndex(e=>gs(e,"message"));if(d){if(-1!==l){let e=s[l];yield{node:d,message:"Pass the error message to `super()` instead of setting `this.message`.",*fix(t){if(0===d.expression.arguments.length){let r=e.expression.right;yield t.insertTextAfterRange([d.range[0],d.range[0]+6],r.raw||r.name)}yield t.removeRange([0===l?o.range[0]:s[l-1].range[1],e.range[1]])}}}}else yield{node:o,message:"Missing call to `super()` in constructor."};let c=s.find(e=>gs(e,"name"));if(c)c.expression.right.value!==r&&(yield{node:c?.expression.right??o,message:`The \`name\` property should be set to \`${r}\`.`});else{let e=u.find(e=>gd(e,"name"));e?.value&&e.value.value===r||(yield{node:e?.value??o,message:`The \`name\` property should be set to \`${r}\`.`})}}let gc=(e,t)=>{let r=t.left.property.name,n=t.right;if("ClassExpression"!==n.type||!gi(n)||!n.id)return;let u=n.id.name;if(r!==u)return{node:t.left.property,messageId:gr,fix:e=>e.replaceText(t.left.property,u)}};var gf=/*@__PURE__*/el({create:e=>{e.on("ClassDeclaration",t=>gl(e,t)),e.on("AssignmentExpression",t=>{if("ClassExpression"===t.right.type)return gl(e,t.right)}),e.on("AssignmentExpression",t=>{if("MemberExpression"===t.left.type&&"Identifier"===t.left.object.type&&"exports"===t.left.object.name)return gc(e,t)})},meta:{type:"problem",docs:{description:"Enforce correct `Error` subclassing.",recommended:!1},fixable:"code",messages:{[gr]:"Exported error name should match error class"}}});let{isParenthesized:gp,isNotSemicolonToken:gh}=th,{needsSemicolon:gm}=nT,{removeSpacesAfter:gg}=ub,gy="no-lonely-if",gb=e=>"IfStatement"===e.type&&!e.alternate,gv=e=>"LogicalExpression"===e.type&&("||"===e.operator||"??"===e.operator)||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type;function gx(e,t){let r={};r.ifToken=t.getFirstToken(e),r.openingParenthesisToken=t.getFirstToken(e,1);let{consequent:n}=e;return r.closingParenthesisToken=t.getTokenBefore(n),"BlockStatement"===n.type&&(r.openingBraceToken=t.getFirstToken(n),r.closingBraceToken=t.getLastToken(n)),r}var gE=/*@__PURE__*/el({create:e=>({IfStatement(t){var r;if(gb(t)&&("BlockStatement"===t.parent.type&&1===t.parent.body.length&&t.parent.body[0]===t&&gb(t.parent.parent)&&t.parent.parent.consequent===t.parent||gb(t.parent)&&t.parent.consequent===t))return{node:t,messageId:gy,fix:(r=e.sourceCode,function*(e){let n=("BlockStatement"===t.parent.type?t.parent:t).parent,u={...n,...gx(n,r)},a={...t,...gx(t,r)};if(yield e.remove(a.ifToken),yield gg(a.ifToken,r,e),u.openingBraceToken){yield e.remove(u.openingBraceToken),yield gg(u.openingBraceToken,r,e),yield e.remove(u.closingBraceToken);let t=r.getTokenBefore(u.closingBraceToken,{includeComments:!0});yield gg(t,r,e)}for(let{test:t,openingParenthesisToken:n,closingParenthesisToken:i}of(yield e.insertTextBefore(u.openingParenthesisToken,"("),yield e.insertTextAfter(a.closingParenthesisToken,`)${"EmptyStatement"===a.consequent.type?"":" "}`),yield e.insertTextAfter(u.closingParenthesisToken," && "),[u,a]))(gp(t,r)||!gv(t))&&(yield e.remove(n),yield e.remove(i)),yield gg(i,r,e);if("BlockStatement"!==a.consequent.type){let t=r.getLastToken(a.consequent);if(gh(t)){let n=r.getTokenAfter(u);n&&gm(t,r,n.value)&&(yield e.insertTextBefore(n,";"))}}})}}}),meta:{type:"suggestion",docs:{description:"Disallow `if` statements as the only statement in `if` blocks without `else`.",recommended:!0},fixable:"code",messages:{[gy]:"Unexpected `if` as the only statement in a `if` block without `else`."}}});let{isMethodCall:gC,isNumberLiteral:gA}=tH,{getCallExpressionTokens:gD}=nT,gS="no-magic-array-flat-depth";var g_=/*@__PURE__*/el({create:e=>({CallExpression(t){if(!gC(t,{method:"flat",argumentsLength:1,optionalCall:!1}))return;let[r]=t.arguments;if(!gA(r)||1===r.value)return;let{sourceCode:n}=e,{openingParenthesisToken:u,closingParenthesisToken:a}=gD(n,t);if(!n.commentsExistBetween(u,a))return{node:r,messageId:gS}}}),meta:{type:"suggestion",docs:{description:"Disallow a magic number as the `depth` argument in `Array#flat(…).`",recommended:!0},messages:{[gS]:"Magic number as depth is not allowed."}}});let{removeParentheses:gw,fixSpaceAroundKeyword:gk,addParenthesizesToReturnOrThrowExpression:gF}=ub,{getParenthesizedRange:gP,isParenthesized:gT}=tS,gI="no-negated-condition";var gB=/*@__PURE__*/el({create:e=>{e.on(["IfStatement","ConditionalExpression"],t=>{if("IfStatement"===t.type&&(!t.alternate||"IfStatement"===t.alternate.type))return;let{test:r}=t;if(!(("UnaryExpression"!==r.type||"!"!==r.operator)&&("BinaryExpression"!==r.type||"!="!==r.operator&&"!=="!==r.operator)))return{node:r,messageId:gI,*fix(n){let{sourceCode:u}=e;if(yield*function*(e,t,r){let{test:n}=t;if("UnaryExpression"===n.type){let u=r.getFirstToken(n);"IfStatement"===t.type&&(yield*gw(n.argument,e,r)),yield e.remove(u);return}let u=r.getTokenAfter(n.left,e=>"Punctuator"===e.type&&e.value===n.operator);yield e.replaceText(u,"="+u.value.slice(1))}(n,t,u),yield*function*(e,t,r){let n="IfStatement"===t.type,[u,a]=[t.consequent,t.alternate].map(e=>{let t=gP(e,r),u=r.text.slice(...t);return n&&"BlockStatement"!==e.type&&(u=`{${u}}`),{range:t,text:u}});u.text!==a.text&&(yield e.replaceTextRange(u.range,a.text),yield e.replaceTextRange(a.range,u.text))}(n,t,u),"ConditionalExpression"!==t.type||"UnaryExpression"!==r.type)return;yield*gk(n,t,u);let{parent:a}=t,[i,o]=u.getFirstTokens(r,2);if(("ReturnStatement"===a.type||"ThrowStatement"===a.type)&&a.argument===t&&!r9(i,o)&&!gT(t,u)&&!gT(r,u)){yield*gF(n,a,u);return}ni(u.getTokenBefore(t),u,o.value)&&(yield n.insertTextBefore(t,";"))}}})},meta:{type:"suggestion",docs:{description:"Disallow negated conditions.",recommended:!0},fixable:"code",messages:{[gI]:"Unexpected negated condition."}}});let{isFunction:gj}=tH,gL="identifier",gO="non-identifier";var gN=/*@__PURE__*/el({create:()=>({AssignmentPattern(e){if(!("ObjectExpression"===e.right.type&&e.right.properties.length>0&&gj(e.parent)&&e.parent.params.includes(e)))return;let{left:t,right:r}=e;return"Identifier"===t.type?{node:t,messageId:gL,data:{parameter:t.name}}:{node:r,messageId:gO}}}),meta:{type:"problem",docs:{description:"Disallow the use of objects as default parameters.",recommended:!0},messages:{[gL]:"Do not use an object literal as default for parameter `{{parameter}}`.",[gO]:"Do not use an object literal as default."}}});let{getParenthesizedRange:gR}=tS,{isNumberLiteral:gM}=tH,g$=e=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.property.type&&"length"===e.property.name,gU=e=>gM(e)&&e.value>0,{getNegativeIndexLengthNode:gz,removeLengthNode:gV}={getNegativeIndexLengthNode:function e(t,r){if(!t)return;let{type:n,operator:u,left:a,right:i}=t;return"BinaryExpression"===n&&"-"===u&&gU(i)?g$(a)&&nt(a.object,r)?a:e(a,r):void 0},removeLengthNode:function(e,t,r){let[n,u]=gR(e,r);return t.removeRange([n,u+r.text.slice(u).match(/\S|$/).index])}},{isLiteral:gW}=tH,gq="prefer-negative-index",gG=new Map([["slice",{argumentsIndexes:[0,1],supportObjects:new Set(["Array","String","ArrayBuffer",...ch])}],["subarray",{argumentsIndexes:[0,1],supportObjects:new Set(ch)}],["splice",{argumentsIndexes:[0],supportObjects:new Set(["Array"])}],["toSpliced",{argumentsIndexes:[0],supportObjects:new Set(["Array"])}],["at",{argumentsIndexes:[0],supportObjects:new Set(["Array","String",...ch])}],["with",{argumentsIndexes:[0],supportObjects:new Set(["Array",...ch])}]]),gZ=e=>{let{type:t,property:r}=e;if("MemberExpression"===t&&"Identifier"===r.type)return r.name};var gH=/*@__PURE__*/el({create:e=>({CallExpression(t){if("MemberExpression"!==t.callee.type)return;let r=function(e){let{callee:t,arguments:r}=e,n=t.property.name,u=t.object,a=r;if(gG.has(n))return{method:n,target:u,argumentsNodes:a};if("call"!==n&&"apply"!==n)return;let i="apply"===n;if(n=gZ(t.object),!gG.has(n))return;let{supportObjects:o}=gG.get(n),s=t.object.object;if("ArrayExpression"===s.type&&0===s.elements.length||"slice"===n&&gW(s,"")||"prototype"===gZ(s)&&"Identifier"===s.object.type&&o.has(s.object.name)){if([u]=r,i){let[,e]=r;if(!e||"ArrayExpression"!==e.type)return;a=e.elements}else a=r.slice(1);return{method:n,target:u,argumentsNodes:a}}}(t);if(!r)return;let{method:n,target:u,argumentsNodes:a}=r,{argumentsIndexes:i}=gG.get(n),o=i.map(e=>gz(a[e],u)).filter(Boolean);if(0!==o.length)return{node:t,messageId:gq,data:{method:n},*fix(t){let{sourceCode:r}=e;for(let e of o)yield gV(e,t,r)}}}}),meta:{type:"suggestion",docs:{description:"Prefer negative index over `.length - index` when possible.",recommended:!0},fixable:"code",messages:{[gq]:"Prefer negative index over length minus index for `{{method}}`."}}});let{builtinModules:gK}=/*@__PURE__*/ec(u),gJ=["sys"],gX=new Set((gK||(process.binding?Object.keys(process.binding("natives")):[])||[]).filter(e=>!/^_|^(internal|v8|node-inspect)\/|\//.test(e)&&!gJ.includes(e)).sort()),gQ="node:",gY=e=>{if("string"!=typeof e)throw TypeError("Expected a string");e.startsWith(gQ)&&(e=e.slice(gQ.length));let t=e.indexOf("/");return -1!==t&&t!==e.length-1&&(e=e.slice(0,t)),gX.has(e)},{replaceStringLiteral:g0}=ub,g1="prefer-node-protocol";var g2=/*@__PURE__*/el({create:()=>({Literal(e){if(!(("ImportDeclaration"===e.parent.type||"ExportNamedDeclaration"===e.parent.type||"ImportExpression"===e.parent.type)&&e.parent.source===e||tL(e.parent)&&e.parent.arguments[0]===e))return;let{value:t}=e;if(!("string"!=typeof t||t.startsWith("node:")||/^bun(?::|$)/.test(t))&&gY(t))return{node:e,messageId:g1,data:{moduleName:t},fix:t=>g0(t,e,"node:",0,0)}}}),meta:{type:"suggestion",docs:{description:"Prefer using the `node:` protocol when importing Node.js builtin modules.",recommended:!0},fixable:"code",messages:{[g1]:"Prefer `node:{{moduleName}}` over `{{moduleName}}`."}}});let g3=RegExp("^\\s*(?<directive>eslint-disable(?:-(?:next-)?line)?)"),g4=RegExp("^eslint-disable(?:-next-line|-line)?(?<ruleId>$|(?:\\s+(?:@(?:[\\w-]+\\/){1,2})?[\\w-]+)?)"),g5=Symbol("rule-id-no-match");var g8=a({name:"ban-eslint-disable",meta:{type:"problem",docs:{description:"Ban `eslint-disable` comment directive"},schema:[{oneOf:[{type:"boolean"},{type:"string",enum:["allow-with-description"]}]}],messages:{"do-not-use":"Do not use `{{directive}}`","require-description":"Include a description after the `{{directive}}` directive to explain why the `{{directive}}` is necessary.","require-specific-rule":"Enforce specifying rules to disable in `eslint-disable` comments. If you want to disable ESLint on a file altogether, you should ignore it through ESLint configuration."}},create:(e,t="allow-with-description")=>!1===t?{}:{Program(r){if(r.comments&&0!==r.comments.length)for(let n of r.comments){let r=function(e){let t=g3.exec(e);return t?.groups?.directive}(n.value);if(r&&!("allow-with-description"===t&&n.value.includes("--"))){let u="allow-with-description"===t?"require-description":"do-not-use";e.report({node:n,data:{directive:r},messageId:u})}let u=function(e){let t=g4.exec(e.trim());return t?t.groups?.ruleId:g5}(n.value);u===g5||u||e.report({node:n,messageId:"require-specific-rule"})}}}}),g6=a({name:"import-dedupe",meta:{type:"problem",docs:{description:"Fix duplication in imports"},fixable:"code",schema:[],messages:{"import-dedupe":"Expect no duplication in imports"}},create:e=>({ImportDeclaration(t){if(t.specifiers.length<=1)return;let r=new Set;t.specifiers.forEach(n=>{let u=n.local.name;r.has(u)&&e.report({node:t,loc:{start:n.loc.end,end:n.loc.start},messageId:"import-dedupe",fix(t){let r=n.range[0],u=n.range[1];return","===e.sourceCode.text[u]&&(u+=1),t.removeRange([r,u])}}),r.add(u)})}})}),g9=a({name:"no-return-await",meta:{type:"suggestion",hasSuggestions:!0,docs:{description:"Disallows unnecessary `return await`"},fixable:void 0,deprecated:!1,schema:[],messages:{removeAwait:"Remove redundant `await`.",redundantUseOfAwait:"Redundant use of `await` on a return value."}},create:e=>({AwaitExpression(t){(function e(t){return t.parent?.type===o.ArrowFunctionExpression||(t.parent?.type===o.ReturnStatement?!g7(t.parent):(t.parent?.type===o.ConditionalExpression&&(t===t.parent.consequent||t===t.parent.alternate)||t.parent?.type===o.LogicalExpression&&t===t.parent.right||t.parent?.type===o.SequenceExpression&&t===t.parent.expressions.at(-1))&&e(t.parent))})(t)&&!g7(t)&&e.report({node:e.sourceCode.getFirstToken(t),loc:t.loc,messageId:"redundantUseOfAwait",suggest:[{messageId:"removeAwait",fix(r){let n=e.sourceCode,[u,a]=n.getFirstTokens(t,2);if(u.loc.start.line!==a.loc.start.line)return null;let[i,o]=u.range,s=n.text[o];return r.removeRange([i,o+(" "===s?1:0)])}}]})}})});function g7(e){let t=e;for(;!s.isFunction(t)&&t.type!==o.Program;){if(t.parent.type===o.TryStatement&&(t===t.parent.block||t===t.parent.handler&&t.parent.finalizer))return!0;t=t.parent}return!1}function ye(e){return e.includes("\r\n")?"\r\n":"\n"}var yt=a({name:"no-expression-empty-lines",meta:{messages:{unexpectedEmptyLine:"Unexpected empty line before"},docs:{description:"Disallows empty lines inside expressions."},fixable:"whitespace",type:"suggestion",schema:[]},create(e){let t=e.sourceCode.getText(),r=ye(t);return{MemberExpression(n){let u=n.object.range[1],a=yr(t.slice(u));if(a.includes("\n")){let t=r+((yr(a).split(/\r\n|\n/u).at(-1)??"")+a.trimStart());a!==t&&e.report({fix:()=>({range:[u,u+a.length],text:t}),messageId:"unexpectedEmptyLine",node:n.property})}}}}});function yr(e){return e.slice(0,e.length-e.trimStart().length)}var yn=a({name:"object-format",meta:{fixable:"whitespace",schema:[{type:"object",properties:{maxLineLength:{type:"number",default:80},maxObjectSize:{type:"number",default:3}},additionalProperties:!1}],docs:{description:"Requires multiline or single-line object format.",recommended:"stylistic"},messages:{preferMultiline:"Prefer multiline object literal",preferSingleLine:"Prefer single-line object literal"},type:"layout"},create(e,t={}){let r=e.sourceCode.getText(),n=t=>r.slice(Math.min(t.range[0],...e.sourceCode.getCommentsBefore(t).map(e=>e.range[0])),t.range[1]),u=ye(r),a=`,${u}`,{maxLineLength:i=80,maxObjectSize:o=3}=t,s=e=>r.slice(e.range[1]).trimStart().startsWith("//");return{ObjectExpression(t){let d=t.properties.map(e=>n(e).trim());if(d.length>0){let n=e.sourceCode.getText(t),l=d.length>o||d.some(yu)||t.properties.some(s),c=yu(n),f=!n.includes("\n");l&&f&&e.report({fix:()=>({range:t.range,text:`{${u}${d.join(a)}${u}}`}),messageId:"preferMultiline",node:t}),!l&&c&&function(){var n;let u=e.sourceCode.getLocFromIndex(t.range[0]).column;return u+d.reduce((e,t)=>e+t.length,0)+2*(d.length-1)+4+("number"==typeof(n=t.range[1])?r.slice(n):r.slice(...n.range)).split(/\r\n|\n/u)[0].replace(/^((?: as const)?\S*).*/u,"$1").length}()<=i&&e.report({fix:()=>({range:t.range,text:`{${d.join(",")}}`}),messageId:"preferSingleLine",node:t})}}}}});function yu(e){return e.includes("\n")}function ya(e){return!(e<48)&&(e<58||!(e<65)&&(e<91||95===e||!(e<97)&&(e<123||yi(e)||yo(e,null!=t?t:t=ys("53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 1o 8 17 n 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 3 1 3 2 a 0 b 1 3 9 f 0 3 2 1l 0 2 4 5 1 3 2 4 0 l b 4 0 c 2 1l 0 2 7 2 2 2 2 l 1 3 9 b 5 2 2 1l 0 2 6 3 1 3 2 8 2 b 1 3 9 j 0 1o 4 4 2 2 3 a 0 f 9 h 4 1k 0 2 6 2 2 2 3 8 1 c 1 3 9 i 2 1l 0 2 6 2 2 2 3 8 1 c 1 3 9 4 0 d 3 1k 1 2 6 2 2 2 3 a 0 b 1 3 9 i 2 1z 0 5 5 2 0 2 7 7 9 3 1 1q 0 3 6 d 7 2 9 2g 0 3 8 c 6 2 9 1r 1 7 9 c 0 2 0 2 0 5 1 1e j 2 1 6 a 2 z a 0 2t j 2 9 d 3 5 2 2 2 3 6 4 3 e b 2 e jk 2 a 8 pt 3 t 2 u 1 v 1 1t v a 0 3 9 y 2 2 a 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 f 1e 4 1c g c 9 i 8 d 2 v c 3 9 19 d 1d j 9 9 7 9 3b 2 2 k 5 0 7 0 3 2 5j 1r el 1 1e 1 k 0 3g c 5 0 4 b 2db 2 3y 0 2p v ff 5 2y 1 2p 0 n51 9 1y 0 5 9 x 1 29 1 7l 0 4 0 5 0 o 4 5 0 2c 1 1f h b 9 7 h e a t 7 q c 19 3 1c d g 9 c 0 b 9 1c d d 0 9 1 3 9 y 2 1f 0 2 2 3 1 6 1 2 0 16 4 6 1 6l 7 2 1 3 9 fmt 0 ki f h f 4 1 p 2 5d 9 12 0 12 0 ig 0 6b 0 46 4 86 9 120 2 2 1 6 3 15 2 5 0 4m 1 fy 3 9 9 7 9 w 4 8u 1 28 3 1z a 1e 3 3f 2 1i e w a 3 1 b 3 1a a 8 0 1a 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 3 0 4e b 6 9 7 3 1k 1 2 6 3 1 3 2 a 0 b 1 3 6 4 4 1w 8 2 0 3 0 2 3 2 4 2 0 f 1 2b h a 9 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 7 j 1m e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f 9j 9 1i 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 96 3 a 1 2 0 1d 6 4 4 e a 44m 0 7 e 8uh r 1t3 9 2f 9 13 4 1o 6 q 9 ev 9 d2 0 2 1i 8 3 2a 0 c 1 f58 1 382 9 ef 19 3 m f3 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 2t 0 4h 6 a 9 9x 0 1q d dv d 6t 1 2 9 k6 6 32 6 6 9 3o7 9 gvt3 6n")))))}function yi(t){return yo(t,null!=e?e:e=ys("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 6 n 2 5 i 15 1n 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 3 0 3 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 w 1 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 h e i f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 7 1j t e 1 b 17 r z 16 2 b z 3 a 6 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 h c 2u 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 6c 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t h3g 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 1u 3 1 2 0 2 7 m f 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f d a 2 e 2 6 2 1 2 a 2 e 2 6 2 1 4 1f d 8m a l b 7 p 5 2 15 2 8 1y 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 1z 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 13 r a m 6z 15 7 1 h 2 1o s b 0 9 l 17 h 1b k s m d 1g 1m 1 3 0 e 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o k 1 1s 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 v 9 2 0 3 0 2 11 2 0 q 0 2 0 19 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 12 6 56 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 j 20 5k w w 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 94 i g 0 2 c 2 x 3h 0 28 pl 2v 32 i 5f 219 2o g tr i 5 q 32y 6 g6 5a2 t 1cz fs 8 u i 26 i t j 1b h 3 w k 6 i c1 18 5w 1r 3l 22 6 0 1v c 1t 1 2 0 t 4qf 9 yd 16 9 6w8 3 2 6 2 1 2 82 g 0 u 2 3 0 f 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1f9 u 7 5 7a 1p 43 18 b 6 h 0 8y t j 17 dh r 6d t 3 0 ds 6 2 3 2 1 2 e 2 5g 1o 1v 8 0 xh 3 2 q 2 1 2 0 3 0 2 9 2 3 2 0 2 0 7 0 5 0 2 0 2 0 2 2 2 1 2 0 3 0 2 0 2 0 2 0 2 0 2 1 2 0 3 3 2 6 2 3 2 3 2 0 2 9 2 g 6 2 2 4 2 g 3et wyn x 37d 7 65 3 4g1 f 5rk g h9 1wj f1 15v 3t6 6 38f"))}function yo(e,t){let r=0,n=t.length/2|0,u=0,a=0,i=0;for(;r<n;)if(a=t[2*(u=(r+n)/2|0)],i=t[2*u+1],e<a)n=u;else{if(!(e>i))return!0;r=u+1}return!1}function ys(e){let t=0;return e.split(" ").map(e=>t+=0|parseInt(e,36))}class yd{constructor(e,t,r,n,u,a,i,o){this._raw2018=e,this._raw2019=t,this._raw2020=r,this._raw2021=n,this._raw2022=u,this._raw2023=a,this._raw2024=i,this._raw2025=o}get es2018(){var e;return null!==(e=this._set2018)&&void 0!==e?e:this._set2018=new Set(this._raw2018.split(" "))}get es2019(){var e;return null!==(e=this._set2019)&&void 0!==e?e:this._set2019=new Set(this._raw2019.split(" "))}get es2020(){var e;return null!==(e=this._set2020)&&void 0!==e?e:this._set2020=new Set(this._raw2020.split(" "))}get es2021(){var e;return null!==(e=this._set2021)&&void 0!==e?e:this._set2021=new Set(this._raw2021.split(" "))}get es2022(){var e;return null!==(e=this._set2022)&&void 0!==e?e:this._set2022=new Set(this._raw2022.split(" "))}get es2023(){var e;return null!==(e=this._set2023)&&void 0!==e?e:this._set2023=new Set(this._raw2023.split(" "))}get es2024(){var e;return null!==(e=this._set2024)&&void 0!==e?e:this._set2024=new Set(this._raw2024.split(" "))}get es2025(){var e;return null!==(e=this._set2025)&&void 0!==e?e:this._set2025=new Set(this._raw2025.split(" "))}}let yl=new Set(["General_Category","gc"]),yc=new Set(["Script","Script_Extensions","sc","scx"]),yf=new yd("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct","","","","","","",""),yp=new yd("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy","Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo","Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho","Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi","Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi","Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz","",""),yh=new yd("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space","Extended_Pictographic","","EBase EComp EMod EPres ExtPict","","","",""),ym=new yd("","","","","","","Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence","");function yg(e,t,r){return yl.has(t)?e>=2018&&yf.es2018.has(r):!!yc.has(t)&&(e>=2018&&yp.es2018.has(r)||e>=2019&&yp.es2019.has(r)||e>=2020&&yp.es2020.has(r)||e>=2021&&yp.es2021.has(r)||e>=2022&&yp.es2022.has(r)||e>=2023&&yp.es2023.has(r))}function yy(e){return e>=65&&e<=90||e>=97&&e<=122}function yb(e){return e>=48&&e<=57}function yv(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function yx(e){return e>=97&&e<=102?e-97+10:e>=65&&e<=70?e-65+10:e-48}function yE(e){return e>=55296&&e<=56319}function yC(e){return e>=56320&&e<=57343}function yA(e,t){return(e-55296)*1024+(t-56320)+65536}class yD{constructor(){this.groupName=new Set}clear(){this.groupName.clear()}isEmpty(){return!this.groupName.size}hasInPattern(e){return this.groupName.has(e)}hasInScope(e){return this.hasInPattern(e)}addToScope(e){this.groupName.add(e)}enterDisjunction(){}enterAlternative(){}leaveDisjunction(){}}class yS{constructor(e,t){this.parent=e,this.base=null!=t?t:this}separatedFrom(e){var t,r;return!!(this.base===e.base&&this!==e||e.parent&&this.separatedFrom(e.parent))||null!==(r=null===(t=this.parent)||void 0===t?void 0:t.separatedFrom(e))&&void 0!==r&&r}child(){return new yS(this,null)}sibling(){return new yS(this.parent,this.base)}}class y_{constructor(){this.branchID=new yS(null,null),this.groupNames=new Map}clear(){this.branchID=new yS(null,null),this.groupNames.clear()}isEmpty(){return!this.groupNames.size}enterDisjunction(){this.branchID=this.branchID.child()}enterAlternative(e){0!==e&&(this.branchID=this.branchID.sibling())}leaveDisjunction(){this.branchID=this.branchID.parent}hasInPattern(e){return this.groupNames.has(e)}hasInScope(e){let t=this.groupNames.get(e);if(!t)return!1;for(let e of t)if(!e.separatedFrom(this.branchID))return!0;return!1}addToScope(e){let t=this.groupNames.get(e);if(t){t.push(this.branchID);return}this.groupNames.set(e,[this.branchID])}}let yw={at:(e,t,r)=>r<t?e.charCodeAt(r):-1,width:e=>1},yk={at:(e,t,r)=>r<t?e.codePointAt(r):-1,width:e=>e>65535?2:1};class yF{constructor(){this._impl=yw,this._s="",this._i=0,this._end=0,this._cp1=-1,this._w1=1,this._cp2=-1,this._w2=1,this._cp3=-1,this._w3=1,this._cp4=-1}get source(){return this._s}get index(){return this._i}get currentCodePoint(){return this._cp1}get nextCodePoint(){return this._cp2}get nextCodePoint2(){return this._cp3}get nextCodePoint3(){return this._cp4}reset(e,t,r,n){this._impl=n?yk:yw,this._s=e,this._end=r,this.rewind(t)}rewind(e){let t=this._impl;this._i=e,this._cp1=t.at(this._s,this._end,e),this._w1=t.width(this._cp1),this._cp2=t.at(this._s,this._end,e+this._w1),this._w2=t.width(this._cp2),this._cp3=t.at(this._s,this._end,e+this._w1+this._w2),this._w3=t.width(this._cp3),this._cp4=t.at(this._s,this._end,e+this._w1+this._w2+this._w3)}advance(){if(-1!==this._cp1){let e=this._impl;this._i+=this._w1,this._cp1=this._cp2,this._w1=this._w2,this._cp2=this._cp3,this._w2=e.width(this._cp2),this._cp3=this._cp4,this._w3=e.width(this._cp3),this._cp4=e.at(this._s,this._end,this._i+this._w1+this._w2+this._w3)}}eat(e){return this._cp1===e&&(this.advance(),!0)}eat2(e,t){return this._cp1===e&&this._cp2===t&&(this.advance(),this.advance(),!0)}eat3(e,t,r){return this._cp1===e&&this._cp2===t&&this._cp3===r&&(this.advance(),this.advance(),this.advance(),!0)}}class yP extends SyntaxError{constructor(e,t){super(e),this.index=t}}let yT=new Set([94,36,92,46,42,43,63,40,41,91,93,123,125,124]),yI=new Set([38,33,35,36,37,42,43,44,46,58,59,60,61,62,63,64,94,96,126]),yB=new Set([40,41,91,93,123,125,47,45,92,124]),yj=new Set([38,45,33,35,37,44,58,59,60,61,62,64,96,126]);function yL(e){return yy(e)||95===e}class yO{constructor(e){this._reader=new yF,this._unicodeMode=!1,this._unicodeSetsMode=!1,this._nFlag=!1,this._lastIntValue=0,this._lastRange={min:0,max:Number.POSITIVE_INFINITY},this._lastStrValue="",this._lastAssertionIsQuantifiable=!1,this._numCapturingParens=0,this._backreferenceNames=new Set,this._srcCtx=null,this._options=null!=e?e:{},this._groupSpecifiers=this.ecmaVersion>=2025?new y_:new yD}validateLiteral(e,t=0,r=e.length){if(this._srcCtx={source:e,start:t,end:r,kind:"literal"},this._unicodeSetsMode=this._unicodeMode=this._nFlag=!1,this.reset(e,t,r),this.onLiteralEnter(t),this.eat(47)&&this.eatRegExpBody()&&this.eat(47)){let n=this.index,u=e.includes("u",n),a=e.includes("v",n);this.validateFlagsInternal(e,n,r),this.validatePatternInternal(e,t+1,n-1,{unicode:u,unicodeSets:a})}else if(t>=r)this.raise("Empty");else{let e=String.fromCodePoint(this.currentCodePoint);this.raise(`Unexpected character '${e}'`)}this.onLiteralLeave(t,r)}validateFlags(e,t=0,r=e.length){this._srcCtx={source:e,start:t,end:r,kind:"flags"},this.validateFlagsInternal(e,t,r)}validatePattern(e,t=0,r=e.length,n){this._srcCtx={source:e,start:t,end:r,kind:"pattern"},this.validatePatternInternal(e,t,r,n)}validatePatternInternal(e,t=0,r=e.length,n){let u=this._parseFlagsOptionToMode(n,r);this._unicodeMode=u.unicodeMode,this._nFlag=u.nFlag,this._unicodeSetsMode=u.unicodeSetsMode,this.reset(e,t,r),this.consumePattern(),this._nFlag||!(this.ecmaVersion>=2018)||this._groupSpecifiers.isEmpty()||(this._nFlag=!0,this.rewind(t),this.consumePattern())}validateFlagsInternal(e,t,r){let n=new Set,u=!1,a=!1,i=!1,o=!1,s=!1,d=!1,l=!1,c=!1;for(let f=t;f<r;++f){let r=e.charCodeAt(f);n.has(r)&&this.raise(`Duplicated flag '${e[f]}'`,{index:t}),n.add(r),103===r?u=!0:105===r?a=!0:109===r?i=!0:117===r&&this.ecmaVersion>=2015?s=!0:121===r&&this.ecmaVersion>=2015?o=!0:115===r&&this.ecmaVersion>=2018?d=!0:100===r&&this.ecmaVersion>=2022?l=!0:118===r&&this.ecmaVersion>=2024?c=!0:this.raise(`Invalid flag '${e[f]}'`,{index:t})}this.onRegExpFlags(t,r,{global:u,ignoreCase:a,multiline:i,unicode:s,sticky:o,dotAll:d,hasIndices:l,unicodeSets:c})}_parseFlagsOptionToMode(e,t){let r=!1,n=!1;return e&&this.ecmaVersion>=2015&&("object"==typeof e?(r=!!e.unicode,this.ecmaVersion>=2024&&(n=!!e.unicodeSets)):r=e),r&&n&&this.raise("Invalid regular expression flags",{index:t+1,unicode:r,unicodeSets:n}),{unicodeMode:r||n,nFlag:r&&this.ecmaVersion>=2018||n||!!(this._options.strict&&this.ecmaVersion>=2023),unicodeSetsMode:n}}get strict(){return!!this._options.strict||this._unicodeMode}get ecmaVersion(){var e;return null!==(e=this._options.ecmaVersion)&&void 0!==e?e:2025}onLiteralEnter(e){this._options.onLiteralEnter&&this._options.onLiteralEnter(e)}onLiteralLeave(e,t){this._options.onLiteralLeave&&this._options.onLiteralLeave(e,t)}onRegExpFlags(e,t,r){this._options.onRegExpFlags&&this._options.onRegExpFlags(e,t,r),this._options.onFlags&&this._options.onFlags(e,t,r.global,r.ignoreCase,r.multiline,r.unicode,r.sticky,r.dotAll,r.hasIndices)}onPatternEnter(e){this._options.onPatternEnter&&this._options.onPatternEnter(e)}onPatternLeave(e,t){this._options.onPatternLeave&&this._options.onPatternLeave(e,t)}onDisjunctionEnter(e){this._options.onDisjunctionEnter&&this._options.onDisjunctionEnter(e)}onDisjunctionLeave(e,t){this._options.onDisjunctionLeave&&this._options.onDisjunctionLeave(e,t)}onAlternativeEnter(e,t){this._options.onAlternativeEnter&&this._options.onAlternativeEnter(e,t)}onAlternativeLeave(e,t,r){this._options.onAlternativeLeave&&this._options.onAlternativeLeave(e,t,r)}onGroupEnter(e){this._options.onGroupEnter&&this._options.onGroupEnter(e)}onGroupLeave(e,t){this._options.onGroupLeave&&this._options.onGroupLeave(e,t)}onCapturingGroupEnter(e,t){this._options.onCapturingGroupEnter&&this._options.onCapturingGroupEnter(e,t)}onCapturingGroupLeave(e,t,r){this._options.onCapturingGroupLeave&&this._options.onCapturingGroupLeave(e,t,r)}onQuantifier(e,t,r,n,u){this._options.onQuantifier&&this._options.onQuantifier(e,t,r,n,u)}onLookaroundAssertionEnter(e,t,r){this._options.onLookaroundAssertionEnter&&this._options.onLookaroundAssertionEnter(e,t,r)}onLookaroundAssertionLeave(e,t,r,n){this._options.onLookaroundAssertionLeave&&this._options.onLookaroundAssertionLeave(e,t,r,n)}onEdgeAssertion(e,t,r){this._options.onEdgeAssertion&&this._options.onEdgeAssertion(e,t,r)}onWordBoundaryAssertion(e,t,r,n){this._options.onWordBoundaryAssertion&&this._options.onWordBoundaryAssertion(e,t,r,n)}onAnyCharacterSet(e,t,r){this._options.onAnyCharacterSet&&this._options.onAnyCharacterSet(e,t,r)}onEscapeCharacterSet(e,t,r,n){this._options.onEscapeCharacterSet&&this._options.onEscapeCharacterSet(e,t,r,n)}onUnicodePropertyCharacterSet(e,t,r,n,u,a,i){this._options.onUnicodePropertyCharacterSet&&this._options.onUnicodePropertyCharacterSet(e,t,r,n,u,a,i)}onCharacter(e,t,r){this._options.onCharacter&&this._options.onCharacter(e,t,r)}onBackreference(e,t,r){this._options.onBackreference&&this._options.onBackreference(e,t,r)}onCharacterClassEnter(e,t,r){this._options.onCharacterClassEnter&&this._options.onCharacterClassEnter(e,t,r)}onCharacterClassLeave(e,t,r){this._options.onCharacterClassLeave&&this._options.onCharacterClassLeave(e,t,r)}onCharacterClassRange(e,t,r,n){this._options.onCharacterClassRange&&this._options.onCharacterClassRange(e,t,r,n)}onClassIntersection(e,t){this._options.onClassIntersection&&this._options.onClassIntersection(e,t)}onClassSubtraction(e,t){this._options.onClassSubtraction&&this._options.onClassSubtraction(e,t)}onClassStringDisjunctionEnter(e){this._options.onClassStringDisjunctionEnter&&this._options.onClassStringDisjunctionEnter(e)}onClassStringDisjunctionLeave(e,t){this._options.onClassStringDisjunctionLeave&&this._options.onClassStringDisjunctionLeave(e,t)}onStringAlternativeEnter(e,t){this._options.onStringAlternativeEnter&&this._options.onStringAlternativeEnter(e,t)}onStringAlternativeLeave(e,t,r){this._options.onStringAlternativeLeave&&this._options.onStringAlternativeLeave(e,t,r)}get index(){return this._reader.index}get currentCodePoint(){return this._reader.currentCodePoint}get nextCodePoint(){return this._reader.nextCodePoint}get nextCodePoint2(){return this._reader.nextCodePoint2}get nextCodePoint3(){return this._reader.nextCodePoint3}reset(e,t,r){this._reader.reset(e,t,r,this._unicodeMode)}rewind(e){this._reader.rewind(e)}advance(){this._reader.advance()}eat(e){return this._reader.eat(e)}eat2(e,t){return this._reader.eat2(e,t)}eat3(e,t,r){return this._reader.eat3(e,t,r)}raise(e,t){var r,n,u;throw function(e,t,r,n){let u="";if("literal"===e.kind){let t=e.source.slice(e.start,e.end);t&&(u=`: ${t}`)}else if("pattern"===e.kind){let r=e.source.slice(e.start,e.end),n=`${t.unicode?"u":""}${t.unicodeSets?"v":""}`;u=`: /${r}/${n}`}return new yP(`Invalid regular expression${u}: ${n}`,r)}(this._srcCtx,{unicode:null!==(r=null==t?void 0:t.unicode)&&void 0!==r?r:this._unicodeMode&&!this._unicodeSetsMode,unicodeSets:null!==(n=null==t?void 0:t.unicodeSets)&&void 0!==n?n:this._unicodeSetsMode},null!==(u=null==t?void 0:t.index)&&void 0!==u?u:this.index,e)}eatRegExpBody(){let e=this.index,t=!1,r=!1;for(;;){var n;let u=this.currentCodePoint;if(-1===u||10===(n=u)||13===n||8232===n||8233===n){let e=t?"character class":"regular expression";this.raise(`Unterminated ${e}`)}if(r)r=!1;else if(92===u)r=!0;else if(91===u)t=!0;else if(93===u)t=!1;else if(47===u&&!t||42===u&&this.index===e)break;this.advance()}return this.index!==e}consumePattern(){let e=this.index;this._numCapturingParens=this.countCapturingParens(),this._groupSpecifiers.clear(),this._backreferenceNames.clear(),this.onPatternEnter(e),this.consumeDisjunction();let t=this.currentCodePoint;if(-1!==this.currentCodePoint){41===t&&this.raise("Unmatched ')'"),92===t&&this.raise("\\ at end of pattern"),(93===t||125===t)&&this.raise("Lone quantifier brackets");let e=String.fromCodePoint(t);this.raise(`Unexpected character '${e}'`)}for(let e of this._backreferenceNames)this._groupSpecifiers.hasInPattern(e)||this.raise("Invalid named capture referenced");this.onPatternLeave(e,this.index)}countCapturingParens(){let e=this.index,t=!1,r=!1,n=0,u=0;for(;-1!==(u=this.currentCodePoint);)r?r=!1:92===u?r=!0:91===u?t=!0:93===u?t=!1:40!==u||t||63===this.nextCodePoint&&(60!==this.nextCodePoint2||61===this.nextCodePoint3||33===this.nextCodePoint3)||(n+=1),this.advance();return this.rewind(e),n}consumeDisjunction(){let e=this.index,t=0;this._groupSpecifiers.enterDisjunction(),this.onDisjunctionEnter(e);do this.consumeAlternative(t++);while(this.eat(124));this.consumeQuantifier(!0)&&this.raise("Nothing to repeat"),this.eat(123)&&this.raise("Lone quantifier brackets"),this.onDisjunctionLeave(e,this.index),this._groupSpecifiers.leaveDisjunction()}consumeAlternative(e){let t=this.index;for(this._groupSpecifiers.enterAlternative(e),this.onAlternativeEnter(t,e);-1!==this.currentCodePoint&&this.consumeTerm(););this.onAlternativeLeave(t,this.index,e)}consumeTerm(){return this._unicodeMode||this.strict?this.consumeAssertion()||this.consumeAtom()&&this.consumeOptionalQuantifier():this.consumeAssertion()&&(!this._lastAssertionIsQuantifiable||this.consumeOptionalQuantifier())||this.consumeExtendedAtom()&&this.consumeOptionalQuantifier()}consumeOptionalQuantifier(){return this.consumeQuantifier(),!0}consumeAssertion(){let e=this.index;if(this._lastAssertionIsQuantifiable=!1,this.eat(94))return this.onEdgeAssertion(e,this.index,"start"),!0;if(this.eat(36))return this.onEdgeAssertion(e,this.index,"end"),!0;if(this.eat2(92,66))return this.onWordBoundaryAssertion(e,this.index,"word",!0),!0;if(this.eat2(92,98))return this.onWordBoundaryAssertion(e,this.index,"word",!1),!0;if(this.eat2(40,63)){let t=this.ecmaVersion>=2018&&this.eat(60),r=!1;if(this.eat(61)||(r=this.eat(33))){let n=t?"lookbehind":"lookahead";return this.onLookaroundAssertionEnter(e,n,r),this.consumeDisjunction(),this.eat(41)||this.raise("Unterminated group"),this._lastAssertionIsQuantifiable=!t&&!this.strict,this.onLookaroundAssertionLeave(e,this.index,n,r),!0}this.rewind(e)}return!1}consumeQuantifier(e=!1){let t=this.index,r=0,n=0,u=!1;if(this.eat(42))r=0,n=Number.POSITIVE_INFINITY;else if(this.eat(43))r=1,n=Number.POSITIVE_INFINITY;else if(this.eat(63))r=0,n=1;else{if(!this.eatBracedQuantifier(e))return!1;({min:r,max:n}=this._lastRange)}return u=!this.eat(63),e||this.onQuantifier(t,this.index,r,n,u),!0}eatBracedQuantifier(e){let t=this.index;if(this.eat(123)){if(this.eatDecimalDigits()){let t=this._lastIntValue,r=t;if(this.eat(44)&&(r=this.eatDecimalDigits()?this._lastIntValue:Number.POSITIVE_INFINITY),this.eat(125))return!e&&r<t&&this.raise("numbers out of order in {} quantifier"),this._lastRange={min:t,max:r},!0}!e&&(this._unicodeMode||this.strict)&&this.raise("Incomplete quantifier"),this.rewind(t)}return!1}consumeAtom(){return this.consumePatternCharacter()||this.consumeDot()||this.consumeReverseSolidusAtomEscape()||!!this.consumeCharacterClass()||this.consumeUncapturingGroup()||this.consumeCapturingGroup()}consumeDot(){return!!this.eat(46)&&(this.onAnyCharacterSet(this.index-1,this.index,"any"),!0)}consumeReverseSolidusAtomEscape(){let e=this.index;if(this.eat(92)){if(this.consumeAtomEscape())return!0;this.rewind(e)}return!1}consumeUncapturingGroup(){let e=this.index;return!!this.eat3(40,63,58)&&(this.onGroupEnter(e),this.consumeDisjunction(),this.eat(41)||this.raise("Unterminated group"),this.onGroupLeave(e,this.index),!0)}consumeCapturingGroup(){let e=this.index;if(this.eat(40)){let t=null;return this.ecmaVersion>=2018?this.consumeGroupSpecifier()&&(t=this._lastStrValue):63===this.currentCodePoint&&this.raise("Invalid group"),this.onCapturingGroupEnter(e,t),this.consumeDisjunction(),this.eat(41)||this.raise("Unterminated group"),this.onCapturingGroupLeave(e,this.index,t),!0}return!1}consumeExtendedAtom(){return this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeReverseSolidusFollowedByC()||!!this.consumeCharacterClass()||this.consumeUncapturingGroup()||this.consumeCapturingGroup()||this.consumeInvalidBracedQuantifier()||this.consumeExtendedPatternCharacter()}consumeReverseSolidusFollowedByC(){let e=this.index;return 92===this.currentCodePoint&&99===this.nextCodePoint&&(this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(e,this.index,92),!0)}consumeInvalidBracedQuantifier(){return this.eatBracedQuantifier(!0)&&this.raise("Nothing to repeat"),!1}consumePatternCharacter(){let e=this.index,t=this.currentCodePoint;return!(-1===t||yT.has(t))&&(this.advance(),this.onCharacter(e,this.index,t),!0)}consumeExtendedPatternCharacter(){let e=this.index,t=this.currentCodePoint;return -1!==t&&94!==t&&36!==t&&92!==t&&46!==t&&42!==t&&43!==t&&63!==t&&40!==t&&41!==t&&91!==t&&124!==t&&(this.advance(),this.onCharacter(e,this.index,t),!0)}consumeGroupSpecifier(){if(this.eat(63)){if(this.eatGroupName()){if(!this._groupSpecifiers.hasInScope(this._lastStrValue))return this._groupSpecifiers.addToScope(this._lastStrValue),!0;this.raise("Duplicate capture group name")}this.raise("Invalid group")}return!1}consumeAtomEscape(){return!!(this.consumeBackreference()||this.consumeCharacterClassEscape()||this.consumeCharacterEscape()||this._nFlag&&this.consumeKGroupName())||((this.strict||this._unicodeMode)&&this.raise("Invalid escape"),!1)}consumeBackreference(){let e=this.index;if(this.eatDecimalEscape()){let t=this._lastIntValue;if(t<=this._numCapturingParens)return this.onBackreference(e-1,this.index,t),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(e)}return!1}consumeCharacterClassEscape(){var e;let t=this.index;if(this.eat(100))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"digit",!1),{};if(this.eat(68))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"digit",!0),{};if(this.eat(115))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"space",!1),{};if(this.eat(83))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"space",!0),{};if(this.eat(119))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"word",!1),{};if(this.eat(87))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"word",!0),{};let r=!1;if(this._unicodeMode&&this.ecmaVersion>=2018&&(this.eat(112)||(r=this.eat(80)))){this._lastIntValue=-1;let n=null;if(this.eat(123)&&(n=this.eatUnicodePropertyValueExpression())&&this.eat(125))return r&&n.strings&&this.raise("Invalid property name"),this.onUnicodePropertyCharacterSet(t-1,this.index,"property",n.key,n.value,r,null!==(e=n.strings)&&void 0!==e&&e),{mayContainStrings:n.strings};this.raise("Invalid property name")}return null}consumeCharacterEscape(){let e=this.index;return!!(this.eatControlEscape()||this.eatCControlLetter()||this.eatZero()||this.eatHexEscapeSequence()||this.eatRegExpUnicodeEscapeSequence()||!this.strict&&!this._unicodeMode&&this.eatLegacyOctalEscapeSequence()||this.eatIdentityEscape())&&(this.onCharacter(e-1,this.index,this._lastIntValue),!0)}consumeKGroupName(){let e=this.index;if(this.eat(107)){if(this.eatGroupName()){let t=this._lastStrValue;return this._backreferenceNames.add(t),this.onBackreference(e-1,this.index,t),!0}this.raise("Invalid named reference")}return!1}consumeCharacterClass(){let e=this.index;if(this.eat(91)){let t=this.eat(94);this.onCharacterClassEnter(e,t,this._unicodeSetsMode);let r=this.consumeClassContents();return this.eat(93)||(-1===this.currentCodePoint&&this.raise("Unterminated character class"),this.raise("Invalid character in character class")),t&&r.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(e,this.index,t),r}return null}consumeClassContents(){if(this._unicodeSetsMode)return 93===this.currentCodePoint?{}:this.consumeClassSetExpression();let e=this.strict||this._unicodeMode;for(;;){let t=this.index;if(!this.consumeClassAtom())break;let r=this._lastIntValue;if(!this.eat(45))continue;if(this.onCharacter(this.index-1,this.index,45),!this.consumeClassAtom())break;let n=this._lastIntValue;if(-1===r||-1===n){e&&this.raise("Invalid character class");continue}r>n&&this.raise("Range out of order in character class"),this.onCharacterClassRange(t,this.index,r,n)}return{}}consumeClassAtom(){let e=this.index,t=this.currentCodePoint;if(-1!==t&&92!==t&&93!==t)return this.advance(),this._lastIntValue=t,this.onCharacter(e,this.index,this._lastIntValue),!0;if(this.eat(92)){if(this.consumeClassEscape())return!0;if(!this.strict&&99===this.currentCodePoint)return this._lastIntValue=92,this.onCharacter(e,this.index,this._lastIntValue),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(e)}return!1}consumeClassEscape(){let e=this.index;if(this.eat(98))return this._lastIntValue=8,this.onCharacter(e-1,this.index,this._lastIntValue),!0;if(this._unicodeMode&&this.eat(45))return this._lastIntValue=45,this.onCharacter(e-1,this.index,this._lastIntValue),!0;let t=0;return!this.strict&&!this._unicodeMode&&99===this.currentCodePoint&&(yb(t=this.nextCodePoint)||95===t)?(this.advance(),this.advance(),this._lastIntValue=t%32,this.onCharacter(e-1,this.index,this._lastIntValue),!0):!!this.consumeCharacterClassEscape()||this.consumeCharacterEscape()}consumeClassSetExpression(){let e=this.index,t=!1,r=null;if(this.consumeClassSetCharacter()){if(this.consumeClassSetRangeFromOperator(e))return this.consumeClassUnionRight({}),{};t=!1}else if(r=this.consumeClassSetOperand())t=r.mayContainStrings;else{let e=this.currentCodePoint;92===e&&(this.advance(),this.raise("Invalid escape")),e===this.nextCodePoint&&yI.has(e)&&this.raise("Invalid set operation in character class"),this.raise("Invalid character in character class")}if(this.eat2(38,38)){for(;38!==this.currentCodePoint&&(r=this.consumeClassSetOperand());)if(this.onClassIntersection(e,this.index),r.mayContainStrings||(t=!1),!this.eat2(38,38))return{mayContainStrings:t};this.raise("Invalid character in character class")}if(this.eat2(45,45)){for(;this.consumeClassSetOperand();)if(this.onClassSubtraction(e,this.index),!this.eat2(45,45))return{mayContainStrings:t};this.raise("Invalid character in character class")}return this.consumeClassUnionRight({mayContainStrings:t})}consumeClassUnionRight(e){let t=e.mayContainStrings;for(;;){let e=this.index;if(this.consumeClassSetCharacter()){this.consumeClassSetRangeFromOperator(e);continue}let r=this.consumeClassSetOperand();if(r){r.mayContainStrings&&(t=!0);continue}break}return{mayContainStrings:t}}consumeClassSetRangeFromOperator(e){let t=this.index,r=this._lastIntValue;if(this.eat(45)){if(this.consumeClassSetCharacter()){let t=this._lastIntValue;return(-1===r||-1===t)&&this.raise("Invalid character class"),r>t&&this.raise("Range out of order in character class"),this.onCharacterClassRange(e,this.index,r,t),!0}this.rewind(t)}return!1}consumeClassSetOperand(){let e=null;return(e=this.consumeNestedClass())||(e=this.consumeClassStringDisjunction())?e:this.consumeClassSetCharacter()?{}:null}consumeNestedClass(){let e=this.index;if(this.eat(91)){let t=this.eat(94);this.onCharacterClassEnter(e,t,!0);let r=this.consumeClassContents();return this.eat(93)||this.raise("Unterminated character class"),t&&r.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(e,this.index,t),r}if(this.eat(92)){let t=this.consumeCharacterClassEscape();if(t)return t;this.rewind(e)}return null}consumeClassStringDisjunction(){let e=this.index;if(this.eat3(92,113,123)){this.onClassStringDisjunctionEnter(e);let t=0,r=!1;do this.consumeClassString(t++).mayContainStrings&&(r=!0);while(this.eat(124));if(this.eat(125))return this.onClassStringDisjunctionLeave(e,this.index),{mayContainStrings:r};this.raise("Unterminated class string disjunction")}return null}consumeClassString(e){let t=this.index,r=0;for(this.onStringAlternativeEnter(t,e);-1!==this.currentCodePoint&&this.consumeClassSetCharacter();)r++;return this.onStringAlternativeLeave(t,this.index,e),{mayContainStrings:1!==r}}consumeClassSetCharacter(){var e;let t=this.index,r=this.currentCodePoint;if((r!==this.nextCodePoint||!yI.has(r))&&-1!==r&&!yB.has(r))return this._lastIntValue=r,this.advance(),this.onCharacter(t,this.index,this._lastIntValue),!0;if(this.eat(92)){if(this.consumeCharacterEscape())return!0;if(e=this.currentCodePoint,yj.has(e))return this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(t,this.index,this._lastIntValue),!0;if(this.eat(98))return this._lastIntValue=8,this.onCharacter(t,this.index,this._lastIntValue),!0;this.rewind(t)}return!1}eatGroupName(){if(this.eat(60)){if(this.eatRegExpIdentifierName()&&this.eat(62))return!0;this.raise("Invalid capture group name")}return!1}eatRegExpIdentifierName(){if(this.eatRegExpIdentifierStart()){for(this._lastStrValue=String.fromCodePoint(this._lastIntValue);this.eatRegExpIdentifierPart();)this._lastStrValue+=String.fromCodePoint(this._lastIntValue);return!0}return!1}eatRegExpIdentifierStart(){var e,t;let r=this.index,n=!this._unicodeMode&&this.ecmaVersion>=2020,u=this.currentCodePoint;return(this.advance(),92===u&&this.eatRegExpUnicodeEscapeSequence(n)?u=this._lastIntValue:n&&yE(u)&&yC(this.currentCodePoint)&&(u=yA(u,this.currentCodePoint),this.advance()),!((t=e=u)<65)&&(t<91||!(t<97)&&(t<123||yi(t)))||36===e||95===e)?(this._lastIntValue=u,!0):(this.index!==r&&this.rewind(r),!1)}eatRegExpIdentifierPart(){var e;let t=this.index,r=!this._unicodeMode&&this.ecmaVersion>=2020,n=this.currentCodePoint;return(this.advance(),92===n&&this.eatRegExpUnicodeEscapeSequence(r)?n=this._lastIntValue:r&&yE(n)&&yC(this.currentCodePoint)&&(n=yA(n,this.currentCodePoint),this.advance()),ya(e=n)||36===e||8204===e||8205===e)?(this._lastIntValue=n,!0):(this.index!==t&&this.rewind(t),!1)}eatCControlLetter(){let e=this.index;if(this.eat(99)){if(this.eatControlLetter())return!0;this.rewind(e)}return!1}eatZero(){return!(48!==this.currentCodePoint||yb(this.nextCodePoint))&&(this._lastIntValue=0,this.advance(),!0)}eatControlEscape(){return this.eat(102)?(this._lastIntValue=12,!0):this.eat(110)?(this._lastIntValue=10,!0):this.eat(114)?(this._lastIntValue=13,!0):this.eat(116)?(this._lastIntValue=9,!0):!!this.eat(118)&&(this._lastIntValue=11,!0)}eatControlLetter(){let e=this.currentCodePoint;return!!yy(e)&&(this.advance(),this._lastIntValue=e%32,!0)}eatRegExpUnicodeEscapeSequence(e=!1){let t=this.index,r=e||this._unicodeMode;if(this.eat(117)){if(r&&this.eatRegExpUnicodeSurrogatePairEscape()||this.eatFixedHexDigits(4)||r&&this.eatRegExpUnicodeCodePointEscape())return!0;(this.strict||r)&&this.raise("Invalid unicode escape"),this.rewind(t)}return!1}eatRegExpUnicodeSurrogatePairEscape(){let e=this.index;if(this.eatFixedHexDigits(4)){let t=this._lastIntValue;if(yE(t)&&this.eat(92)&&this.eat(117)&&this.eatFixedHexDigits(4)){let e=this._lastIntValue;if(yC(e))return this._lastIntValue=yA(t,e),!0}this.rewind(e)}return!1}eatRegExpUnicodeCodePointEscape(){var e;let t=this.index;return!!(this.eat(123)&&this.eatHexDigits()&&this.eat(125))&&(e=this._lastIntValue)>=0&&e<=1114111||(this.rewind(t),!1)}eatIdentityEscape(){let e=this.currentCodePoint;return!!this.isValidIdentityEscape(e)&&(this._lastIntValue=e,this.advance(),!0)}isValidIdentityEscape(e){return -1!==e&&(this._unicodeMode?yT.has(e)||47===e:this.strict?!ya(e):this._nFlag?!(99===e||107===e):99!==e)}eatDecimalEscape(){this._lastIntValue=0;let e=this.currentCodePoint;if(e>=49&&e<=57){do this._lastIntValue=10*this._lastIntValue+(e-48),this.advance();while((e=this.currentCodePoint)>=48&&e<=57);return!0}return!1}eatUnicodePropertyValueExpression(){let e=this.index;if(this.eatUnicodePropertyName()&&this.eat(61)){let e=this._lastStrValue;if(this.eatUnicodePropertyValue()){let t=this._lastStrValue;if(yg(this.ecmaVersion,e,t))return{key:e,value:t||null};this.raise("Invalid property name")}}if(this.rewind(e),this.eatLoneUnicodePropertyNameOrValue()){var t;let e=this._lastStrValue;if(yg(this.ecmaVersion,"General_Category",e))return{key:"General_Category",value:e||null};if((t=this.ecmaVersion)>=2018&&yh.es2018.has(e)||t>=2019&&yh.es2019.has(e)||t>=2021&&yh.es2021.has(e))return{key:e,value:null};if(this._unicodeSetsMode&&this.ecmaVersion>=2024&&ym.es2024.has(e))return{key:e,value:null,strings:!0};this.raise("Invalid property name")}return null}eatUnicodePropertyName(){for(this._lastStrValue="";yL(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return""!==this._lastStrValue}eatUnicodePropertyValue(){var e;for(this._lastStrValue="";yL(e=this.currentCodePoint)||yb(e);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return""!==this._lastStrValue}eatLoneUnicodePropertyNameOrValue(){return this.eatUnicodePropertyValue()}eatHexEscapeSequence(){let e=this.index;if(this.eat(120)){if(this.eatFixedHexDigits(2))return!0;(this._unicodeMode||this.strict)&&this.raise("Invalid escape"),this.rewind(e)}return!1}eatDecimalDigits(){let e=this.index;for(this._lastIntValue=0;yb(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+yx(this.currentCodePoint),this.advance();return this.index!==e}eatHexDigits(){let e=this.index;for(this._lastIntValue=0;yv(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+yx(this.currentCodePoint),this.advance();return this.index!==e}eatLegacyOctalEscapeSequence(){if(this.eatOctalDigit()){let e=this._lastIntValue;if(this.eatOctalDigit()){let t=this._lastIntValue;e<=3&&this.eatOctalDigit()?this._lastIntValue=64*e+8*t+this._lastIntValue:this._lastIntValue=8*e+t}else this._lastIntValue=e;return!0}return!1}eatOctalDigit(){let e=this.currentCodePoint;return e>=48&&e<=55?(this.advance(),this._lastIntValue=e-48,!0):(this._lastIntValue=0,!1)}eatFixedHexDigits(e){let t=this.index;this._lastIntValue=0;for(let r=0;r<e;++r){let e=this.currentCodePoint;if(!yv(e))return this.rewind(t),!1;this._lastIntValue=16*this._lastIntValue+yx(e),this.advance()}return!0}}let yN={},yR={},yM={};function y$(e){return"Character"===e.type||"CharacterSet"===e.type||"CharacterClass"===e.type||"ExpressionCharacterClass"===e.type||"ClassStringDisjunction"===e.type}class yU{constructor(e){var t;this._node=yN,this._expressionBufferMap=new Map,this._flags=yR,this._backreferences=[],this._capturingGroups=[],this.source="",this.strict=!!(null==e?void 0:e.strict),this.ecmaVersion=null!==(t=null==e?void 0:e.ecmaVersion)&&void 0!==t?t:2025}get pattern(){if("Pattern"!==this._node.type)throw Error("UnknownError");return this._node}get flags(){if("Flags"!==this._flags.type)throw Error("UnknownError");return this._flags}onRegExpFlags(e,t,{global:r,ignoreCase:n,multiline:u,unicode:a,sticky:i,dotAll:o,hasIndices:s,unicodeSets:d}){this._flags={type:"Flags",parent:null,start:e,end:t,raw:this.source.slice(e,t),global:r,ignoreCase:n,multiline:u,unicode:a,sticky:i,dotAll:o,hasIndices:s,unicodeSets:d}}onPatternEnter(e){this._node={type:"Pattern",parent:null,start:e,end:e,raw:"",alternatives:[]},this._backreferences.length=0,this._capturingGroups.length=0}onPatternLeave(e,t){for(let r of(this._node.end=t,this._node.raw=this.source.slice(e,t),this._backreferences)){let e=r.ref,t="number"==typeof e?[this._capturingGroups[e-1]]:this._capturingGroups.filter(t=>t.name===e);if(1===t.length){let e=t[0];r.ambiguous=!1,r.resolved=e}else r.ambiguous=!0,r.resolved=t;for(let e of t)e.references.push(r)}}onAlternativeEnter(e){let t=this._node;if("Assertion"!==t.type&&"CapturingGroup"!==t.type&&"Group"!==t.type&&"Pattern"!==t.type)throw Error("UnknownError");this._node={type:"Alternative",parent:t,start:e,end:e,raw:"",elements:[]},t.alternatives.push(this._node)}onAlternativeLeave(e,t){let r=this._node;if("Alternative"!==r.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onGroupEnter(e){let t=this._node;if("Alternative"!==t.type)throw Error("UnknownError");this._node={type:"Group",parent:t,start:e,end:e,raw:"",alternatives:[]},t.elements.push(this._node)}onGroupLeave(e,t){let r=this._node;if("Group"!==r.type||"Alternative"!==r.parent.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onCapturingGroupEnter(e,t){let r=this._node;if("Alternative"!==r.type)throw Error("UnknownError");this._node={type:"CapturingGroup",parent:r,start:e,end:e,raw:"",name:t,alternatives:[],references:[]},r.elements.push(this._node),this._capturingGroups.push(this._node)}onCapturingGroupLeave(e,t){let r=this._node;if("CapturingGroup"!==r.type||"Alternative"!==r.parent.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onQuantifier(e,t,r,n,u){let a=this._node;if("Alternative"!==a.type)throw Error("UnknownError");let i=a.elements.pop();if(null==i||"Quantifier"===i.type||"Assertion"===i.type&&"lookahead"!==i.kind)throw Error("UnknownError");let o={type:"Quantifier",parent:a,start:i.start,end:t,raw:this.source.slice(i.start,t),min:r,max:n,greedy:u,element:i};a.elements.push(o),i.parent=o}onLookaroundAssertionEnter(e,t,r){let n=this._node;if("Alternative"!==n.type)throw Error("UnknownError");let u=this._node={type:"Assertion",parent:n,start:e,end:e,raw:"",kind:t,negate:r,alternatives:[]};n.elements.push(u)}onLookaroundAssertionLeave(e,t){let r=this._node;if("Assertion"!==r.type||"Alternative"!==r.parent.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onEdgeAssertion(e,t,r){let n=this._node;if("Alternative"!==n.type)throw Error("UnknownError");n.elements.push({type:"Assertion",parent:n,start:e,end:t,raw:this.source.slice(e,t),kind:r})}onWordBoundaryAssertion(e,t,r,n){let u=this._node;if("Alternative"!==u.type)throw Error("UnknownError");u.elements.push({type:"Assertion",parent:u,start:e,end:t,raw:this.source.slice(e,t),kind:r,negate:n})}onAnyCharacterSet(e,t,r){let n=this._node;if("Alternative"!==n.type)throw Error("UnknownError");n.elements.push({type:"CharacterSet",parent:n,start:e,end:t,raw:this.source.slice(e,t),kind:r})}onEscapeCharacterSet(e,t,r,n){let u=this._node;if("Alternative"!==u.type&&"CharacterClass"!==u.type)throw Error("UnknownError");u.elements.push({type:"CharacterSet",parent:u,start:e,end:t,raw:this.source.slice(e,t),kind:r,negate:n})}onUnicodePropertyCharacterSet(e,t,r,n,u,a,i){let o=this._node;if("Alternative"!==o.type&&"CharacterClass"!==o.type)throw Error("UnknownError");let s={type:"CharacterSet",parent:null,start:e,end:t,raw:this.source.slice(e,t),kind:r,strings:null,key:n};if(i){if("CharacterClass"===o.type&&!o.unicodeSets||a||null!==u)throw Error("UnknownError");o.elements.push(Object.assign(Object.assign({},s),{parent:o,strings:i,value:u,negate:a}))}else o.elements.push(Object.assign(Object.assign({},s),{parent:o,strings:i,value:u,negate:a}))}onCharacter(e,t,r){let n=this._node;if("Alternative"!==n.type&&"CharacterClass"!==n.type&&"StringAlternative"!==n.type)throw Error("UnknownError");n.elements.push({type:"Character",parent:n,start:e,end:t,raw:this.source.slice(e,t),value:r})}onBackreference(e,t,r){let n=this._node;if("Alternative"!==n.type)throw Error("UnknownError");let u={type:"Backreference",parent:n,start:e,end:t,raw:this.source.slice(e,t),ref:r,ambiguous:!1,resolved:yM};n.elements.push(u),this._backreferences.push(u)}onCharacterClassEnter(e,t,r){let n=this._node,u={type:"CharacterClass",parent:n,start:e,end:e,raw:"",unicodeSets:r,negate:t,elements:[]};if("Alternative"===n.type){let e=Object.assign(Object.assign({},u),{parent:n});this._node=e,n.elements.push(e)}else if("CharacterClass"===n.type&&n.unicodeSets&&r){let e=Object.assign(Object.assign({},u),{parent:n,unicodeSets:r});this._node=e,n.elements.push(e)}else throw Error("UnknownError")}onCharacterClassLeave(e,t){let r=this._node;if("CharacterClass"!==r.type||"Alternative"!==r.parent.type&&"CharacterClass"!==r.parent.type)throw Error("UnknownError");let n=r.parent;r.end=t,r.raw=this.source.slice(e,t),this._node=n;let u=this._expressionBufferMap.get(r);if(!u)return;if(r.elements.length>0)throw Error("UnknownError");this._expressionBufferMap.delete(r);let a={type:"ExpressionCharacterClass",parent:n,start:r.start,end:r.end,raw:r.raw,negate:r.negate,expression:u};if(u.parent=a,r!==n.elements.pop())throw Error("UnknownError");n.elements.push(a)}onCharacterClassRange(e,t){let r=this._node;if("CharacterClass"!==r.type)throw Error("UnknownError");let n=r.elements,u=n.pop();if(!u||"Character"!==u.type)throw Error("UnknownError");if(!r.unicodeSets){let e=n.pop();if(!e||"Character"!==e.type||45!==e.value)throw Error("UnknownError")}let a=n.pop();if(!a||"Character"!==a.type)throw Error("UnknownError");let i={type:"CharacterClassRange",parent:r,start:e,end:t,raw:this.source.slice(e,t),min:a,max:u};a.parent=i,u.parent=i,n.push(i)}onClassIntersection(e,t){var r;let n=this._node;if("CharacterClass"!==n.type||!n.unicodeSets)throw Error("UnknownError");let u=n.elements.pop(),a=null!==(r=this._expressionBufferMap.get(n))&&void 0!==r?r:n.elements.pop();if(!a||!u||"ClassSubtraction"===a.type||"ClassIntersection"!==a.type&&!y$(a)||!y$(u))throw Error("UnknownError");let i={type:"ClassIntersection",parent:n,start:e,end:t,raw:this.source.slice(e,t),left:a,right:u};a.parent=i,u.parent=i,this._expressionBufferMap.set(n,i)}onClassSubtraction(e,t){var r;let n=this._node;if("CharacterClass"!==n.type||!n.unicodeSets)throw Error("UnknownError");let u=n.elements.pop(),a=null!==(r=this._expressionBufferMap.get(n))&&void 0!==r?r:n.elements.pop();if(!a||!u||"ClassIntersection"===a.type||"ClassSubtraction"!==a.type&&!y$(a)||!y$(u))throw Error("UnknownError");let i={type:"ClassSubtraction",parent:n,start:e,end:t,raw:this.source.slice(e,t),left:a,right:u};a.parent=i,u.parent=i,this._expressionBufferMap.set(n,i)}onClassStringDisjunctionEnter(e){let t=this._node;if("CharacterClass"!==t.type||!t.unicodeSets)throw Error("UnknownError");this._node={type:"ClassStringDisjunction",parent:t,start:e,end:e,raw:"",alternatives:[]},t.elements.push(this._node)}onClassStringDisjunctionLeave(e,t){let r=this._node;if("ClassStringDisjunction"!==r.type||"CharacterClass"!==r.parent.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onStringAlternativeEnter(e){let t=this._node;if("ClassStringDisjunction"!==t.type)throw Error("UnknownError");this._node={type:"StringAlternative",parent:t,start:e,end:e,raw:"",elements:[]},t.alternatives.push(this._node)}onStringAlternativeLeave(e,t){let r=this._node;if("StringAlternative"!==r.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}}let yz=/^[!=]=/,yV=new class{constructor(e){this._state=new yU(e),this._validator=new yO(this._state)}parseLiteral(e,t=0,r=e.length){this._state.source=e,this._validator.validateLiteral(e,t,r);let n=this._state.pattern,u=this._state.flags,a={type:"RegExpLiteral",parent:null,start:t,end:r,raw:e,pattern:n,flags:u};return n.parent=a,u.parent=a,a}parseFlags(e,t=0,r=e.length){return this._state.source=e,this._validator.validateFlags(e,t,r),this._state.flags}parsePattern(e,t=0,r=e.length,n){return this._state.source=e,this._validator.validatePattern(e,t,r,n),this._state.pattern}};function yW(e){return d.nullThrows(e.parent?.type===o.ChainExpression?e.parent.parent:e.parent,d.NullThrowsReasons.MissingParent)}function yq(e){return e.type===o.BinaryExpression&&yz.test(e.operator)}var yG={rules:{"array/no-unneeded-flat-map":k,"browser/prefer-location-assign":P,"jsx/no-template-literal":I,"jsx/no-unneeded-nested":B,"string/no-locale-case":L,"string/no-simple-template-literal":N,"type/no-instanceof-wrapper":M,"unicode/no-bidi":G,"unicode/no-invisible":H,"ban-eslint-disable":g8,"no-redundant-variable":K,"no-single-return":X,"prefer-early-return":Y,"prefer-fetch":ee,"prefer-timer-id":en,"import-dedupe":g6,"no-return-await":g9,"no-expression-empty-lines":yt,"object-format":yn,"string/prefer-string-starts-ends-with":a({name:"prefer-string-starts-ends-with",meta:{type:"suggestion",docs:{description:"Enforce using `String#startsWith` and `String#endsWith` over other equivalent methods of checking substrings"},messages:{preferStartsWith:"Use 'String#startsWith' method instead.",preferEndsWith:"Use the 'String#endsWith' method instead."},schema:[],fixable:"code"},create(e){i(e.sourceCode.parserServices);let t=e.sourceCode.parserServices,r=t.program.getTypeChecker(),n=e.sourceCode.scopeManager?.scopes[0];function u(e){return"string"===l(r,t.getTypeAtLocation(e))}function a(e,t){let r=s.getStaticValue(e,n);return null!=r&&r.value===t}function d(e){let t=s.getStaticValue(e,n);return null!=t&&"string"==typeof t.value&&t.value[0]===t.value}function c(t,r){if(t.type===o.MemberExpression)return"length"===s.getPropertyName(t,n)&&function(t,r){let n=e.sourceCode.getTokens(t),u=e.sourceCode.getTokens(r);if(n.length!==u.length)return!1;for(let e=0,t=n.length;e<t;++e){let t=n[e],r=u[e];if(t.type!==r.type||t.value!==r.value)return!1}return!0}(t.object,r);let u=s.getStaticValue(t,n),a=s.getStaticValue(r,n);return null!=u&&null!=a&&"number"==typeof u.value&&"string"==typeof a.value&&u.value===a.value.length}function f(e,t,r){return e.type===o.UnaryExpression&&"-"===e.operator&&c(e.argument,t)||e.type===o.BinaryExpression&&"-"===e.operator&&c(e.left,r)&&c(e.right,t)}function p(t){return[e.sourceCode.getTokenAfter(t.object,s.isNotClosingParenToken).range[0],t.range[1]]}function h(e){let t=s.getStaticValue(e,n);if(null==t||!(t.value instanceof RegExp))return null;let{source:r,flags:u}=t.value,a=r.startsWith("^"),i=r.endsWith("$");if(a===i||u.includes("i")||u.includes("m"))return null;let o=function(e,t){let r=yV.parsePattern(e,void 0,void 0,{unicode:t});if(1!==r.alternatives.length)return null;let n=r.alternatives[0].elements,u=n[0];return("Assertion"===u.type&&"start"===u.kind?n.shift():n.pop(),n.every(e=>"Character"===e.type))?String.fromCodePoint(...n.map(e=>e.value)):null}(r,u.includes("u"));return null==o?null:{isEndsWith:i,isStartsWith:a,text:o}}function*m(e,t,r,n,u){let a=p(function e(t){let r;if(t.type===o.ChainExpression)return e(t.expression);if((r=t.type===o.CallExpression?t.callee:t).type!==o.MemberExpression)throw Error(`Expected a MemberExpression, got ${r.type}`);return r}(t.left));n&&(yield e.insertTextBefore(t,"!")),yield e.replaceTextRange([a[0],t.right.range[0]],`${u?"?.":"."}${r}sWith(`),yield e.replaceTextRange([t.right.range[1],t.range[1]],")")}function*g(e,t,r,n,u,a,i){a&&(yield e.insertTextBefore(t,"!")),yield e.replaceTextRange(p(n),`${i?"?.":"."}${u}sWith`),yield e.removeRange([r.range[1],t.range[1]])}return{'BinaryExpression > MemberExpression.left[computed=true], BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="charAt"][computed=false], BinaryExpression > ChainExpression.left > MemberExpression[computed=true], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="charAt"][computed=false]'(t){var r,i;let l=yW(t),f=l.type===o.CallExpression,p=null;if(l.type===o.CallExpression?(1===l.arguments.length&&(p=l.arguments[0]),l=yW(l)):p=t.property,null==p||!yq(l)||!u(t.object))return;let h=(r=p,i=t.object,r.type===o.BinaryExpression&&"-"===r.operator&&c(r.left,i)&&a(r.right,1)),g=!h&&a(p,0);if(!g&&!h)return;let y=l;g&&!f&&function(e){if(!d(e))return!1;let t=s.getStaticValue(e,n);return null!=t&&"string"==typeof t.value&&t.value[0]===t.value&&function(e){let t=e.codePointAt(0);return null!=t&&t>=0&&t<=127}(t.value)}(y.right)||e.report({node:l,messageId:g?"preferStartsWith":"preferEndsWith",fix:e=>d(y.right)?m(e,y,g?"start":"end",y.operator.startsWith("!"),t.optional):null})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="indexOf"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="indexOf"][computed=false]'(t){let r=yW(t),n=yW(r);1===r.arguments.length&&yq(n)&&a(n.right,0)&&u(t.object)&&e.report({node:n,messageId:"preferStartsWith",fix:e=>g(e,n,r,t,"start",n.operator.startsWith("!"),t.optional)})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="lastIndexOf"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="lastIndexOf"][computed=false]'(t){let r=yW(t),n=yW(r);1===r.arguments.length&&yq(n)&&n.right.type===o.BinaryExpression&&"-"===n.right.operator&&c(n.right.left,t.object)&&c(n.right.right,r.arguments[0])&&u(t.object)&&e.report({node:n,messageId:"preferEndsWith",fix:e=>g(e,n,r,t,"end",n.operator.startsWith("!"),t.optional)})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="match"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="match"][computed=false]'(t){let r=yW(t),a=yW(r);if(!yq(a)||!function(e){let t=s.getStaticValue(e,n);return null!=t&&null==t.value}(a.right)||!u(t.object))return;let i=1===r.arguments.length?h(r.arguments[0]):null;if(null==i)return;let{isStartsWith:o,text:d}=i;e.report({node:r,messageId:o?"preferStartsWith":"preferEndsWith",*fix(e){a.operator.startsWith("!")||(yield e.insertTextBefore(a,"!")),yield e.replaceTextRange(p(t),`${t.optional?"?.":"."}${o?"start":"end"}sWith`),yield e.replaceText(r.arguments[0],JSON.stringify(d)),yield e.removeRange([r.range[1],a.range[1]])}})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="slice"][computed=false], BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="substring"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="slice"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="substring"][computed=false]'(t){let r=yW(t),n=yW(r);if(!yq(n)||!u(t.object))return;let i=!1,s=!1;if(1===r.arguments.length?f(r.arguments[0],n.right,t.object)&&(i=!0):2===r.arguments.length&&(a(r.arguments[0],0)&&c(r.arguments[1],n.right)?s=!0:(c(r.arguments[1],t.object)||a(r.arguments[1],0))&&f(r.arguments[0],n.right,t.object)&&(i=!0)),!s&&!i)return;let d="slice"===t.property.name;e.report({node:n,messageId:s?"preferStartsWith":"preferEndsWith",fix(e){if(2===n.operator.length&&(n.right.type!==o.Literal||"string"!=typeof n.right.value))return null;if(s){if(!c(r.arguments[1],n.right))return null}else{let e=r.arguments[0];if(!(e.type===o.BinaryExpression&&"-"===e.operator&&c(e.left,t.object)&&c(e.right,n.right)||d&&e.type===o.UnaryExpression&&"-"===e.operator&&c(e.argument,n.right)))return null}return m(e,n,s?"start":"end",n.operator.startsWith("!"),t.optional)}})},'CallExpression > MemberExpression.callee[property.name="test"][computed=false]':function(t){let r=yW(t),n=1===r.arguments.length?h(t.object):null;if(null==n)return;let{isStartsWith:u,text:a}=n,i=u?"startsWith":"endsWith";e.report({node:r,messageId:u?"preferStartsWith":"preferEndsWith",*fix(e){let n=r.arguments[0],u=n.type!==o.Literal&&n.type!==o.TemplateLiteral&&n.type!==o.Identifier&&n.type!==o.MemberExpression&&n.type!==o.CallExpression;yield e.removeRange([r.range[0],n.range[0]]),u&&(yield e.insertTextBefore(n,"("),yield e.insertTextAfter(n,")")),yield e.insertTextAfter(n,`${t.optional?"?.":"."}${i}(${JSON.stringify(a)}`)}})}}}}),"string/no-unneeded-to-string":eu,"type/no-force-cast-via-top-type":ea,"type/no-wrapper-type-reference":eo,"no-default-error":es,"no-export-const-enum":a({name:"no-export-const-enum",meta:{type:"suggestion",docs:{description:"Disallow using `const enum` expression as it can not be inlined and tree-shaken by swc/esbuild/babel/webpack/rollup/vite/bun/rspack"},messages:{noConstEnum:"Do not use `const enum` expression"},schema:[]},create(e){let t=(t,r)=>{let n=s.findVariable(e.sourceCode.getScope(t),r);n?.defs.forEach(r=>{r.node.type===o.TSEnumDeclaration&&r.node.const&&e.report({node:t,messageId:"noConstEnum"})})};return{ExportNamedDeclaration(r){let n=r.declaration;if(n?.type===o.TSEnumDeclaration&&n.const){e.report({node:r,messageId:"noConstEnum"});return}if(n?.type===o.VariableDeclaration){let e=n.declarations[0].id;e.type===o.Identifier&&t(r,e)}},ExportDefaultDeclaration(e){let r=e.declaration;r.type===o.Identifier&&t(e,r)}}}}),...Object.fromEntries(Object.entries({"unicorn/better-regex":lD,"unicorn/catch-error-name":m7,"unicorn/custom-error-definition":gf,"unicorn/no-nested-ternary":tb,"unicorn/prefer-event-target":nU,"unicorn/prefer-keyboard-event-key":nY,"unicorn/prefer-text-content":n3,"unicorn/require-array-join-separator":uA,"unicorn/no-thenable":uB,"unicorn/no-invalid-remove-event-listener":uN,"unicorn/consistent-function-scoping":uJ,"unicorn/no-new-buffer":ap,"unicorn/no-console-spaces":av,"unicorn/no-empty-file":a_,"unicorn/no-useless-fallback-in-spread":aT,"unicorn/no-useless-length-check":aR,"unicorn/no-useless-promise-resolve-reject":az,"unicorn/no-zero-fractions":aK,"unicorn/prefer-export-from":a7,"unicorn/prefer-native-coercion-functions":il,"unicorn/no-document-cookie":iv,"unicorn/prefer-add-event-listener":iB,"unicorn/prefer-array-index-of":iG,"unicorn/prefer-blob-reading-methods":iK,"unicorn/prefer-date-now":i5,"unicorn/prefer-dom-node-dataset":oa,"unicorn/prefer-modern-math-apis":oC,"unicorn/number-literal-case":oN,"unicorn/prefer-number-properties":oq,"unicorn/prefer-reflect-apply":o0,"unicorn/prefer-set-size":o6,"unicorn/prefer-string-replace-all":ss,"unicorn/prefer-string-slice":sy,"unicorn/prefer-string-trim-start-end":sx,"unicorn/no-unreadable-iife":sS,"unicorn/throw-new-error":sF,"unicorn/escape-case":lB,"unicorn/no-hex-escape":l$,"unicorn/prefer-prototype-methods":lZ,"unicorn/error-message":l0,"unicorn/no-instanceof-array":l6,"unicorn/prefer-type-error":co,"unicorn/consistent-destructuring":cp,"unicorn/new-for-builtins":cx,"unicorn/no-array-push-push":cT,"unicorn/no-process-exit":cN,"unicorn/no-static-only-class":c7,"unicorn/no-unreadable-array-destructuring":fu,"unicorn/no-useless-spread":fC,"unicorn/no-useless-switch-case":fF,"unicorn/no-useless-undefined":f$,"unicorn/numeric-separators-style":fG,"unicorn/prefer-array-find":pm,"unicorn/prefer-array-flat-map":pE,"unicorn/prefer-array-flat":p$,"unicorn/prefer-array-some":p2,"unicorn/prefer-code-point":p5,"unicorn/prefer-default-parameters":ho,"unicorn/prefer-logical-operator-over-ternary":hm,"unicorn/prefer-optional-catch-binding":hx,"unicorn/prefer-regexp-test":hL,"unicorn/prefer-set-has":hG,"unicorn/prefer-string-raw":hX,"unicorn/prefer-switch":h5,"unicorn/require-number-to-fixed-digits-argument":h7,"unicorn/template-indent":mB,"unicorn/no-single-promise-in-promise-methods":cY,"unicorn/no-await-in-promise-methods":m$,"unicorn/no-negation-in-equality-check":mX,"unicorn/no-length-as-slice-end":m3,"unicorn/no-lonely-if":gE,"unicorn/no-magic-array-flat-depth":g_,"unicorn/no-negated-condition":gB,"unicorn/no-object-as-default-parameter":gN,"unicorn/prefer-negative-index":gH,"unicorn/prefer-node-protocol":g2}).map(([e,t])=>{var r;return[e,{...t,meta:{schema:[],...t.meta,docs:{description:"",...t.meta.docs,url:eh(e)}},create:(r=t.create,e=>{let t={},n=(e,r)=>{t[e]??(t[e]=[]),t[e].push(r)};for(let[t,u]of Object.entries(r(new Proxy(e,{get:(e,t,r)=>"on"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])n(r,t)}:"onExit"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])n(`${r}:exit`,t)}:Reflect.get(e,t,r)}),void 0)??{}))n(t,u);return Object.fromEntries(Object.entries(t).map(([t,r])=>[t,(...t)=>{for(let n of r)!function(e,t){if(e){for(let r of(yZ(e)||(e=[e]),e))if(r){if(r.fix&&(r.fix=yJ(r.fix)),yZ(r.suggest))for(let e of r.suggest)e.fix&&(e.fix=yJ(e.fix)),e.data={...r.data,...e.data};t.report(r)}}}(n(...t),e)}]))})}]}))}};let yZ=e=>!!e&&Symbol.iterator in e;class yH extends Error{constructor(e,t){super(e,t),this.name="FixAbortError"}}let yK={abort(){throw new yH("Fix aborted.")}};function yJ(e){return t=>{let r=e(t,yK);if(yZ(r))try{return[...r]}catch(e){if(e instanceof yH)return;throw e}return r}}export{yG as default};
|