eslint-plugin-sukka 6.4.1 → 6.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
package/dist/index.cjs
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:{[h1]:"Use `switch` instead of multiple `else-if`."}}});const{appendArgument:h6}=uv,{isMethodCall:h9}=tK,h7="require-number-to-fixed-digits-argument";var me=/*@__PURE__*/ec({create:e=>({CallExpression(t){if(!h9(t,{method:"toFixed",argumentsLength:0,optionalCall:!1,optionalMember:!1})||"NewExpression"===t.callee.object.type)return;let{sourceCode:r}=e,[n,u]=r.getLastTokens(t,2);return{loc:{start:n.loc.start,end:u.loc.end},messageId:h7,fix:e=>h6(e,t,"0",r)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the digits argument with `Number#toFixed()`.",recommended:!0},fixable:"code",messages:{[h7]:"Missing the digits argument."}}});const mt=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((e,t)=>Math.min(e,t.length),1/0):0};function mr(e){return(mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,u,a,i,o=[],s=!0,d=!1;try{if(a=(r=r.call(e)).next,0===t);else for(;!(s=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){d=!0,u=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw u}}return o}}(e,t)||mu(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mu(e,t){if(e){if("string"==typeof e)return ma(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ma(e,t):void 0}}function ma(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mi(e,t){return e(t={exports:{}},t.exports),t.exports}var mo=mi(function(e,t){!function e(t){var r,n,u,a,i,o;function s(e){var t,r,n={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],n[t]="object"==typeof r&&null!==r?s(r):r);return n}function d(e,t){this.parent=e,this.key=t}function l(e,t,r,n){this.node=e,this.path=t,this.wrap=r,this.ref=n}function c(){}function f(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function p(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function h(e,t){for(var r=e.length-1;r>=0;--r)if(e[r].node===t)return!0;return!1}function m(e,t){return(new c).traverse(e,t)}return r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},u={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},n={Break:a={},Skip:i={},Remove:o={}},d.prototype.replace=function(e){this.parent[this.key]=e},d.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},c.prototype.path=function(){var e,t,r,n,u;function a(e,t){if(Array.isArray(t))for(r=0,n=t.length;r<n;++r)e.push(t[r]);else e.push(t)}if(!this.__current.path)return null;for(u=[],e=2,t=this.__leavelist.length;e<t;++e)a(u,this.__leavelist[e].path);return a(u,this.__current.path),u},c.prototype.type=function(){return this.current().type||this.__current.wrap},c.prototype.parents=function(){var e,t,r;for(r=[],e=1,t=this.__leavelist.length;e<t;++e)r.push(this.__leavelist[e].node);return r},c.prototype.current=function(){return this.__current.node},c.prototype.__execute=function(e,t){var r,n;return n=void 0,r=this.__current,this.__current=t,this.__state=null,e&&(n=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=r,n},c.prototype.notify=function(e){this.__state=e},c.prototype.skip=function(){this.notify(i)},c.prototype.break=function(){this.notify(a)},c.prototype.remove=function(){this.notify(o)},c.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===t.fallback?this.__fallback=Object.keys:"function"==typeof t.fallback&&(this.__fallback=t.fallback),this.__keys=u,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},c.prototype.traverse=function(e,t){var r,n,u,o,s,d,c,m,g,y,b,v;for(this.__initialize(e,t),v={},r=this.__worklist,n=this.__leavelist,r.push(new l(e,null,null,null)),n.push(new l(null,null,null,null));r.length;)if((u=r.pop())!==v){if(u.node){if(d=this.__execute(t.enter,u),this.__state===a||d===a)return;if(r.push(v),n.push(u),this.__state===i||d===i)continue;if(s=(o=u.node).type||u.wrap,!(y=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");y=this.__fallback(o)}for(m=y.length;(m-=1)>=0;)if(b=o[c=y[m]]){if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]&&!h(n,b[g])){if(p(s,y[m]))u=new l(b[g],[c,g],"Property",null);else{if(!f(b[g]))continue;u=new l(b[g],[c,g],null,null)}r.push(u)}}else if(f(b)){if(h(n,b))continue;r.push(new l(b,c,null,null))}}}}else if(u=n.pop(),d=this.__execute(t.leave,u),this.__state===a||d===a)return},c.prototype.replace=function(e,t){var r,n,u,s,c,h,m,g,y,b,v,x,E;function C(e){var t,n,u,a;if(e.ref.remove()){for(n=e.ref.key,a=e.ref.parent,t=r.length;t--;)if((u=r[t]).ref&&u.ref.parent===a){if(u.ref.key<n)break;--u.ref.key}}}for(this.__initialize(e,t),v={},r=this.__worklist,n=this.__leavelist,h=new l(e,null,null,new d(x={root:e},"root")),r.push(h),n.push(h);r.length;)if((h=r.pop())!==v){if(void 0!==(c=this.__execute(t.enter,h))&&c!==a&&c!==i&&c!==o&&(h.ref.replace(c),h.node=c),this.__state!==o&&c!==o||(C(h),h.node=null),this.__state===a||c===a)return x.root;if((u=h.node)&&(r.push(v),n.push(h),this.__state!==i&&c!==i)){if(s=u.type||h.wrap,!(y=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");y=this.__fallback(u)}for(m=y.length;(m-=1)>=0;)if(b=u[E=y[m]]){if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]){if(p(s,y[m]))h=new l(b[g],[E,g],"Property",new d(b,g));else{if(!f(b[g]))continue;h=new l(b[g],[E,g],null,new d(b,g))}r.push(h)}}else f(b)&&r.push(new l(b,E,null,new d(u,E)))}}}else if(h=n.pop(),void 0!==(c=this.__execute(t.leave,h))&&c!==a&&c!==i&&c!==o&&h.ref.replace(c),this.__state!==o&&c!==o||C(h),this.__state===a||c===a)break;return x.root},t.Syntax=r,t.traverse=m,t.replace=function(e,t){return(new c).replace(e,t)},t.attachComments=function(e,t,r){var u,a,i,o,d=[];if(!e.range)throw Error("attachComments needs range information");if(!r.length){if(t.length){for(i=0,a=t.length;i<a;i+=1)(u=s(t[i])).extendedRange=[0,e.range[0]],d.push(u);e.leadingComments=d}return e}for(i=0,a=t.length;i<a;i+=1)d.push(function(e,t){var r;return r=function(e,t){var r,n,u,a;for(n=e.length,u=0;n;)t(e[a=u+(r=n>>>1)])?n=r:(u=a+1,n-=r+1);return u}(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}(s(t[i]),r));return o=0,m(e,{enter:function(e){for(var t;o<d.length&&!((t=d[o]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?n.Break:d[o].extendedRange[0]>e.range[1]?n.Skip:void 0}}),o=0,m(e,{leave:function(e){for(var t;o<d.length&&(t=d[o],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?n.Break:d[o].extendedRange[0]>e.range[1]?n.Skip:void 0}}),e},t.VisitorKeys=u,t.VisitorOption=n,t.Controller=c,t.cloneEnvironment=function(){return e({})},t}(t)}),ms=mi(function(e){e.exports&&(e.exports=function(){function e(t,r,n,u){this.message=t,this.expected=r,this.found=n,this.location=u,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.buildMessage=function(e,t){var r={literal:function(e){return'"'+u(e.text)+'"'},class:function(e){var t,r="";for(t=0;t<e.parts.length;t++)r+=e.parts[t]instanceof Array?a(e.parts[t][0])+"-"+a(e.parts[t][1]):a(e.parts[t]);return"["+(e.inverted?"^":"")+r+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function u(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function a(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}return"Expected "+function(e){var t,n,u,a=Array(e.length);for(t=0;t<e.length;t++)a[t]=r[(u=e[t]).type](u);if(a.sort(),a.length>0){for(t=1,n=1;t<a.length;t++)a[t-1]!==a[t]&&(a[n]=a[t],n++);a.length=n}switch(a.length){case 1:return a[0];case 2:return a[0]+" or "+a[1];default:return a.slice(0,-1).join(", ")+", or "+a[a.length-1]}}(e)+" but "+(t?'"'+u(t)+'"':"end of input")+" found."},{SyntaxError:e,parse:function(t,r){r=void 0!==r?r:{};var n,u,a,i,o,s,d,l,c={},f={start:ev},p=ev,h=em(" ",!1),m=/^[^ [\],():#!=><~+.]/,g=eg([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),y=em(">",!1),b=em("~",!1),v=em("+",!1),x=em(",",!1),E=function(e,t){return[e].concat(t.map(function(e){return e[3]}))},C=em("!",!1),A=em("*",!1),D=em("#",!1),S=em("[",!1),_=em("]",!1),w=/^[><!]/,T=eg([">","<","!"],!1,!1),P=em("=",!1),k=function(e){return(e||"")+"="},F=/^[><]/,I=eg([">","<"],!1,!1),B=em(".",!1),j=function(e,t,r){return{type:"attribute",name:e,operator:t,value:r}},L=em('"',!1),O=/^[^\\"]/,N=eg(["\\",'"'],!0,!1),R=em("\\",!1),M={type:"any"},$=function(e,t){return e+t},U=function(e){return{type:"literal",value:e.join("").replace(/\\(.)/g,function(e,t){switch(t){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return" ";case"v":return"\v";default:return t}})}},z=em("'",!1),V=/^[^\\']/,q=eg(["\\","'"],!0,!1),W=/^[0-9]/,G=eg([["0","9"]],!1,!1),Z=em("type(",!1),H=/^[^ )]/,K=eg([" ",")"],!0,!1),Y=em(")",!1),J=/^[imsu]/,X=eg(["i","m","s","u"],!1,!1),Q=em("/",!1),ee=/^[^\/]/,et=eg(["/"],!0,!1),er=em(":not(",!1),en=em(":matches(",!1),eu=em(":has(",!1),ea=em(":first-child",!1),ei=em(":last-child",!1),eo=em(":nth-child(",!1),es=em(":nth-last-child(",!1),ed=em(":",!1),el=0,ec=[{line:1,column:1}],ef=0,ep=[],eh={};if("startRule"in r){if(!(r.startRule in f))throw Error("Can't start parsing from rule \""+r.startRule+'".');p=f[r.startRule]}function em(e,t){return{type:"literal",text:e,ignoreCase:t}}function eg(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function ey(e){var r,n=ec[e];if(n)return n;for(r=e-1;!ec[r];)r--;for(n={line:(n=ec[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return ec[e]=n,n}function eb(e){el<ef||(el>ef&&(ef=el,ep=[]),ep.push(e))}function ev(){var e,t,r,n,u=32*el+0,a=eh[u];return a?(el=a.nextPos,a.result):(e=el,(t=ex())!==c&&(r=eA())!==c&&ex()!==c?e=t=1===(n=r).length?n[0]:{type:"matches",selectors:n}:(el=e,e=c),e===c&&(e=el,(t=ex())!==c&&(t=void 0),e=t),eh[u]={nextPos:el,result:e},e)}function ex(){var e,r,n=32*el+1,u=eh[n];if(u)return el=u.nextPos,u.result;for(e=[],32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(h));r!==c;)e.push(r),32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(h));return eh[n]={nextPos:el,result:e},e}function eE(){var e,r,n,u=32*el+2,a=eh[u];if(a)return el=a.nextPos,a.result;if(r=[],m.test(t.charAt(el))?(n=t.charAt(el),el++):(n=c,eb(g)),n!==c)for(;n!==c;)r.push(n),m.test(t.charAt(el))?(n=t.charAt(el),el++):(n=c,eb(g));else r=c;return r!==c&&(r=r.join("")),e=r,eh[u]={nextPos:el,result:e},e}function eC(){var e,r,n,u=32*el+3,a=eh[u];return a?(el=a.nextPos,a.result):(e=el,(r=ex())!==c?(62===t.charCodeAt(el)?(n=">",el++):(n=c,eb(y)),n!==c&&ex()!==c?e=r="child":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,(r=ex())!==c?(126===t.charCodeAt(el)?(n="~",el++):(n=c,eb(b)),n!==c&&ex()!==c?e=r="sibling":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,(r=ex())!==c?(43===t.charCodeAt(el)?(n="+",el++):(n=c,eb(v)),n!==c&&ex()!==c?e=r="adjacent":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(h)),r!==c&&(n=ex())!==c?e=r="descendant":(el=e,e=c)))),eh[u]={nextPos:el,result:e},e)}function eA(){var e,r,n,u,a,i,o,s,d=32*el+5,l=eh[d];if(l)return el=l.nextPos,l.result;if(e=el,(r=eS())!==c){for(n=[],u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eS())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);u!==c;)n.push(u),u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eS())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=E(r,n):(el=e,e=c)}else el=e,e=c;return eh[d]={nextPos:el,result:e},e}function eD(){var e,t,r,n,u,a=32*el+6,i=eh[a];return i?(el=i.nextPos,i.result):(e=el,(t=eC())===c&&(t=null),t!==c&&(r=eS())!==c?(u=r,e=t=(n=t)?{type:n,left:{type:"exactNode"},right:u}:u):(el=e,e=c),eh[a]={nextPos:el,result:e},e)}function eS(){var e,t,r,n,u,a,i,o=32*el+7,s=eh[o];if(s)return el=s.nextPos,s.result;if(e=el,(t=e_())!==c){for(r=[],n=el,(u=eC())!==c&&(a=e_())!==c?n=u=[u,a]:(el=n,n=c);n!==c;)r.push(n),n=el,(u=eC())!==c&&(a=e_())!==c?n=u=[u,a]:(el=n,n=c);r!==c?(i=t,e=t=r.reduce(function(e,t){return{type:t[0],left:e,right:t[1]}},i)):(el=e,e=c)}else el=e,e=c;return eh[o]={nextPos:el,result:e},e}function e_(){var e,r,n,u,a,i,o,s=32*el+8,d=eh[s];if(d)return el=d.nextPos,d.result;if(e=el,33===t.charCodeAt(el)?(r="!",el++):(r=c,eb(C)),r===c&&(r=null),r!==c){if(n=[],(u=ew())!==c)for(;u!==c;)n.push(u),u=ew();else n=c;n!==c?(a=r,o=1===(i=n).length?i[0]:{type:"compound",selectors:i},a&&(o.subject=!0),e=r=o):(el=e,e=c)}else el=e,e=c;return eh[s]={nextPos:el,result:e},e}function ew(){var e,r,n,u,a,i,o,s,d,l,f,p,h,m,g,y,b,v,ec,ef,ep,em,eg,ey,ev,eC,eS,e_,ew,eF,eI,eB,ej,eL,eO,eN,eR,eM,e$,eU,ez,eV,eq,eW,eG,eZ,eH,eK,eY,eJ,eX,eQ,e0,e1,e2,e3,e4,e5,e8,e6,e9,e7,te,tt,tr,tn,tu,ta=32*el+9,ti=eh[ta];return ti?(el=ti.nextPos,ti.result):((tu=(u=eh[n=32*el+10])?(el=u.nextPos,u.result):(42===t.charCodeAt(el)?(r="*",el++):(r=c,eb(A)),r!==c&&(r={type:"wildcard",value:r}),e=r,eh[n]={nextPos:el,result:e},e))===c&&(tu=(d=eh[s=32*el+11])?(el=d.nextPos,d.result):(a=el,35===t.charCodeAt(el)?(i="#",el++):(i=c,eb(D)),i===c&&(i=null),i!==c&&(o=eE())!==c?a=i={type:"identifier",value:o}:(el=a,a=c),eh[s]={nextPos:el,result:a},a))===c&&(tu=(g=eh[m=32*el+12])?(el=g.nextPos,g.result):(l=el,91===t.charCodeAt(el)?(f="[",el++):(f=c,eb(S)),f!==c&&ex()!==c&&(p=(ep=eh[ef=32*el+16])?(el=ep.nextPos,ep.result):(y=el,(b=eT())!==c&&ex()!==c&&(v=(eC=eh[ev=32*el+14])?(el=eC.nextPos,eC.result):(em=el,33===t.charCodeAt(el)?(eg="!",el++):(eg=c,eb(C)),eg===c&&(eg=null),eg!==c?(61===t.charCodeAt(el)?(ey="=",el++):(ey=c,eb(P)),ey!==c?em=eg=k(eg):(el=em,em=c)):(el=em,em=c),eh[ev]={nextPos:el,result:em},em))!==c&&ex()!==c?((ec=function(){var e,r,n,u,a,i=32*el+20,o=eh[i];if(o)return el=o.nextPos,o.result;if(e=el,"type("===t.substr(el,5)?(r="type(",el+=5):(r=c,eb(Z)),r!==c){if(ex()!==c){if(n=[],H.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(K)),u!==c)for(;u!==c;)n.push(u),H.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(K));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(Y)),a!==c?e=r={type:"type",value:n.join("")}:(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[i]={nextPos:el,result:e},e}())===c&&(ec=function(){var e,r,n,u,a,i,o=32*el+22,s=eh[o];if(s)return el=s.nextPos,s.result;if(e=el,47===t.charCodeAt(el)?(r="/",el++):(r=c,eb(Q)),r!==c){if(n=[],ee.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(et)),u!==c)for(;u!==c;)n.push(u),ee.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(et));else n=c;n!==c?(47===t.charCodeAt(el)?(u="/",el++):(u=c,eb(Q)),u!==c?((a=function(){var e,r,n=32*el+21,u=eh[n];if(u)return el=u.nextPos,u.result;if(e=[],J.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(X)),r!==c)for(;r!==c;)e.push(r),J.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(X));else e=c;return eh[n]={nextPos:el,result:e},e}())===c&&(a=null),a!==c?(i=a,e=r={type:"regexp",value:new RegExp(n.join(""),i?i.join(""):"")}):(el=e,e=c)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c;return eh[o]={nextPos:el,result:e},e}()),ec!==c?y=b=j(b,v,ec):(el=y,y=c)):(el=y,y=c),y===c&&(y=el,(b=eT())!==c&&ex()!==c&&(v=(eI=eh[eF=32*el+13])?(el=eI.nextPos,eI.result):(eS=el,w.test(t.charAt(el))?(e_=t.charAt(el),el++):(e_=c,eb(T)),e_===c&&(e_=null),e_!==c?(61===t.charCodeAt(el)?(ew="=",el++):(ew=c,eb(P)),ew!==c?eS=e_=k(e_):(el=eS,eS=c)):(el=eS,eS=c),eS===c&&(F.test(t.charAt(el))?(eS=t.charAt(el),el++):(eS=c,eb(I))),eh[eF]={nextPos:el,result:eS},eS))!==c&&ex()!==c?((ec=function(){var e,r,n,u,a,i,o=32*el+17,s=eh[o];if(s)return el=s.nextPos,s.result;if(e=el,34===t.charCodeAt(el)?(r='"',el++):(r=c,eb(L)),r!==c){for(n=[],O.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(N)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));u!==c;)n.push(u),O.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(N)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));n!==c?(34===t.charCodeAt(el)?(u='"',el++):(u=c,eb(L)),u!==c?e=r=U(n):(el=e,e=c)):(el=e,e=c)}else el=e,e=c;if(e===c){if(e=el,39===t.charCodeAt(el)?(r="'",el++):(r=c,eb(z)),r!==c){for(n=[],V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(q)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));u!==c;)n.push(u),V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(q)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));n!==c?(39===t.charCodeAt(el)?(u="'",el++):(u=c,eb(z)),u!==c?e=r=U(n):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}return eh[o]={nextPos:el,result:e},e}())===c&&(ec=function(){var e,r,n,u,a,i,o=32*el+18,s=eh[o];if(s)return el=s.nextPos,s.result;for(e=el,r=el,n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));if(n!==c?(46===t.charCodeAt(el)?(u=".",el++):(u=c,eb(B)),u!==c?r=n=[n,u]:(el=r,r=c)):(el=r,r=c),r===c&&(r=null),r!==c){if(n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G)),u!==c)for(;u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));else n=c;n!==c?(i=n,e=r={type:"literal",value:parseFloat(((a=r)?[].concat.apply([],a).join(""):"")+i.join(""))}):(el=e,e=c)}else el=e,e=c;return eh[o]={nextPos:el,result:e},e}())===c&&(ec=(eO=eh[eL=32*el+19])?(el=eO.nextPos,eO.result):((ej=eE())!==c&&(ej={type:"literal",value:ej}),eB=ej,eh[eL]={nextPos:el,result:eB},eB)),ec!==c?y=b=j(b,v,ec):(el=y,y=c)):(el=y,y=c),y===c&&(y=el,(b=eT())!==c&&(b={type:"attribute",name:b}),y=b)),eh[ef]={nextPos:el,result:y},y))!==c&&ex()!==c?(93===t.charCodeAt(el)?(h="]",el++):(h=c,eb(_)),h!==c?l=f=p:(el=l,l=c)):(el=l,l=c),eh[m]={nextPos:el,result:l},l))===c&&(tu=function(){var e,r,n,u,a,i,o,s=32*el+23,d=eh[s];if(d)return el=d.nextPos,d.result;if(e=el,46===t.charCodeAt(el)?(r=".",el++):(r=c,eb(B)),r!==c){if((n=eE())!==c){for(u=[],a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(B)),i!==c&&(o=eE())!==c?a=i=[i,o]:(el=a,a=c);a!==c;)u.push(a),a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(B)),i!==c&&(o=eE())!==c?a=i=[i,o]:(el=a,a=c);u!==c?e=r={type:"field",name:u.reduce(function(e,t){return e+t[0]+t[1]},n)}:(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[s]={nextPos:el,result:e},e}())===c&&(tu=(ez=eh[eU=32*el+24])?(el=ez.nextPos,ez.result):(eN=el,":not("===t.substr(el,5)?(eR=":not(",el+=5):(eR=c,eb(er)),eR!==c&&ex()!==c&&(eM=eA())!==c&&ex()!==c?(41===t.charCodeAt(el)?(e$=")",el++):(e$=c,eb(Y)),e$!==c?eN=eR={type:"not",selectors:eM}:(el=eN,eN=c)):(el=eN,eN=c),eh[eU]={nextPos:el,result:eN},eN))===c&&(tu=(eH=eh[eZ=32*el+25])?(el=eH.nextPos,eH.result):(eV=el,":matches("===t.substr(el,9)?(eq=":matches(",el+=9):(eq=c,eb(en)),eq!==c&&ex()!==c&&(eW=eA())!==c&&ex()!==c?(41===t.charCodeAt(el)?(eG=")",el++):(eG=c,eb(Y)),eG!==c?eV=eq={type:"matches",selectors:eW}:(el=eV,eV=c)):(el=eV,eV=c),eh[eZ]={nextPos:el,result:eV},eV))===c&&(tu=(e0=eh[eQ=32*el+26])?(el=e0.nextPos,e0.result):(eK=el,":has("===t.substr(el,5)?(eY=":has(",el+=5):(eY=c,eb(eu)),eY!==c&&ex()!==c&&(eJ=function(){var e,r,n,u,a,i,o,s,d=32*el+4,l=eh[d];if(l)return el=l.nextPos,l.result;if(e=el,(r=eD())!==c){for(n=[],u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eD())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);u!==c;)n.push(u),u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eD())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=E(r,n):(el=e,e=c)}else el=e,e=c;return eh[d]={nextPos:el,result:e},e}())!==c&&ex()!==c?(41===t.charCodeAt(el)?(eX=")",el++):(eX=c,eb(Y)),eX!==c?eK=eY={type:"has",selectors:eJ}:(el=eK,eK=c)):(el=eK,eK=c),eh[eQ]={nextPos:el,result:eK},eK))===c&&(tu=(e4=eh[e3=32*el+27])?(el=e4.nextPos,e4.result):(":first-child"===t.substr(el,12)?(e2=":first-child",el+=12):(e2=c,eb(ea)),e2!==c&&(e2=eP(1)),e1=e2,eh[e3]={nextPos:el,result:e1},e1))===c&&(tu=(e9=eh[e6=32*el+28])?(el=e9.nextPos,e9.result):(":last-child"===t.substr(el,11)?(e8=":last-child",el+=11):(e8=c,eb(ei)),e8!==c&&(e8=ek(1)),e5=e8,eh[e6]={nextPos:el,result:e5},e5))===c&&(tu=function(){var e,r,n,u,a,i=32*el+29,o=eh[i];if(o)return el=o.nextPos,o.result;if(e=el,":nth-child("===t.substr(el,11)?(r=":nth-child(",el+=11):(r=c,eb(eo)),r!==c){if(ex()!==c){if(n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G)),u!==c)for(;u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(Y)),a!==c?e=r=eP(parseInt(n.join(""),10)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[i]={nextPos:el,result:e},e}())===c&&(tu=function(){var e,r,n,u,a,i=32*el+30,o=eh[i];if(o)return el=o.nextPos,o.result;if(e=el,":nth-last-child("===t.substr(el,16)?(r=":nth-last-child(",el+=16):(r=c,eb(es)),r!==c){if(ex()!==c){if(n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G)),u!==c)for(;u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(Y)),a!==c?e=r=ek(parseInt(n.join(""),10)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[i]={nextPos:el,result:e},e}())===c&&(tu=(tn=eh[tr=32*el+31])?(el=tn.nextPos,tn.result):(e7=el,58===t.charCodeAt(el)?(te=":",el++):(te=c,eb(ed)),te!==c&&(tt=eE())!==c?e7=te={type:"class",name:tt}:(el=e7,e7=c),eh[tr]={nextPos:el,result:e7},e7)),eh[ta]={nextPos:el,result:tu},tu)}function eT(){var e,r,n,u,a,i,o,s=32*el+15,d=eh[s];if(d)return el=d.nextPos,d.result;if(e=el,(r=eE())!==c){for(n=[],u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(B)),a!==c&&(i=eE())!==c?u=a=[a,i]:(el=u,u=c);u!==c;)n.push(u),u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(B)),a!==c&&(i=eE())!==c?u=a=[a,i]:(el=u,u=c);n!==c?(o=r,e=r=[].concat.apply([o],n).join("")):(el=e,e=c)}else el=e,e=c;return eh[s]={nextPos:el,result:e},e}function eP(e){return{type:"nth-child",index:{type:"literal",value:e}}}function ek(e){return{type:"nth-last-child",index:{type:"literal",value:e}}}if((o=p())!==c&&el===t.length)return o;throw o!==c&&el<t.length&&eb({type:"end"}),s=ep,d=ef<t.length?t.charAt(ef):null,n=ef,u=ef<t.length?ef+1:ef,a=ey(n),i=ey(u),l={start:{offset:n,line:a.line,column:a.column},end:{offset:u,line:i.line,column:i.column}},new e(e.buildMessage(s,d),s,d,l)}}}())});function md(e,t){for(var r=0;r<t.length&&null!=e;++r)e=e[t[r]];return e}var ml="function"==typeof WeakMap?new WeakMap:null;function mc(e){if(null==e)return function(){return!0};if(null!=ml){var t=ml.get(e);return null!=t||(t=mf(e),ml.set(e,t)),t}return mf(e)}function mf(e){switch(e.type){case"wildcard":return function(){return!0};case"identifier":var t=e.value.toLowerCase();return function(e,r,n){return t===e[n&&n.nodeTypeKey||"type"].toLowerCase()};case"exactNode":return function(e,t){return 0===t.length};case"field":var r=e.name.split(".");return function(e,t){return function e(t,r,n,u){for(var a=r,i=u;i<n.length;++i){if(null==a)return!1;var o=a[n[i]];if(Array.isArray(o)){for(var s=0;s<o.length;++s)if(e(t,o[s],n,i+1))return!0;return!1}a=o}return t===a}(e,t[r.length-1],r,0)};case"matches":var n=e.selectors.map(mc);return function(e,t,r){for(var u=0;u<n.length;++u)if(n[u](e,t,r))return!0;return!1};case"compound":var u=e.selectors.map(mc);return function(e,t,r){for(var n=0;n<u.length;++n)if(!u[n](e,t,r))return!1;return!0};case"not":var a=e.selectors.map(mc);return function(e,t,r){for(var n=0;n<a.length;++n)if(a[n](e,t,r))return!1;return!0};case"has":var i=e.selectors.map(mc);return function(e,t,r){var n=!1,u=[];return mo.traverse(e,{enter:function(e,t){null!=t&&u.unshift(t);for(var a=0;a<i.length;++a)if(i[a](e,u,r))return n=!0,void this.break()},leave:function(){u.shift()},keys:r&&r.visitorKeys,fallback:r&&r.fallback||"iteration"}),n};case"child":var o=mc(e.left),s=mc(e.right);return function(e,t,r){return!!(t.length>0&&s(e,t,r))&&o(t[0],t.slice(1),r)};case"descendant":var d=mc(e.left),l=mc(e.right);return function(e,t,r){if(l(e,t,r)){for(var n=0,u=t.length;n<u;++n)if(d(t[n],t.slice(n+1),r))return!0}return!1};case"attribute":var c=e.name.split(".");switch(e.operator){case void 0:return function(e){return null!=md(e,c)};case"=":switch(e.value.type){case"regexp":return function(t){var r=md(t,c);return"string"==typeof r&&e.value.value.test(r)};case"literal":var f="".concat(e.value.value);return function(e){return f==="".concat(md(e,c))};case"type":return function(t){return e.value.value===mr(md(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"!=":switch(e.value.type){case"regexp":return function(t){return!e.value.value.test(md(t,c))};case"literal":var p="".concat(e.value.value);return function(e){return p!=="".concat(md(e,c))};case"type":return function(t){return e.value.value!==mr(md(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"<=":return function(t){return md(t,c)<=e.value.value};case"<":return function(t){return md(t,c)<e.value.value};case">":return function(t){return md(t,c)>e.value.value};case">=":return function(t){return md(t,c)>=e.value.value}}throw Error("Unknown operator: ".concat(e.operator));case"sibling":var h=mc(e.left),m=mc(e.right);return function(t,r,n){return m(t,r,n)&&mm(t,h,r,"LEFT_SIDE",n)||e.left.subject&&h(t,r,n)&&mm(t,m,r,"RIGHT_SIDE",n)};case"adjacent":var g=mc(e.left),y=mc(e.right);return function(t,r,n){return y(t,r,n)&&mg(t,g,r,"LEFT_SIDE",n)||e.right.subject&&g(t,r,n)&&mg(t,y,r,"RIGHT_SIDE",n)};case"nth-child":var b=e.index.value,v=mc(e.right);return function(e,t,r){return v(e,t,r)&&my(e,t,b,r)};case"nth-last-child":var x=-e.index.value,E=mc(e.right);return function(e,t,r){return E(e,t,r)&&my(e,t,x,r)};case"class":var C=e.name.toLowerCase();return function(t,r,n){if(n&&n.matchClass)return n.matchClass(e.name,t,r);if(n&&n.nodeTypeKey)return!1;switch(C){case"statement":if("Statement"===t.type.slice(-9))return!0;case"declaration":return"Declaration"===t.type.slice(-11);case"pattern":if("Pattern"===t.type.slice(-7))return!0;case"expression":return"Expression"===t.type.slice(-10)||"Literal"===t.type.slice(-7)||"Identifier"===t.type&&(0===r.length||"MetaProperty"!==r[0].type)||"MetaProperty"===t.type;case"function":return"FunctionDeclaration"===t.type||"FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type}throw Error("Unknown class name: ".concat(e.name))}}throw Error("Unknown selector type: ".concat(e.type))}function mp(e,t){var r=t&&t.nodeTypeKey||"type",n=e[r];return t&&t.visitorKeys&&t.visitorKeys[n]?t.visitorKeys[n]:mo.VisitorKeys[n]?mo.VisitorKeys[n]:t&&"function"==typeof t.fallback?t.fallback(e):Object.keys(e).filter(function(e){return e!==r})}function mh(e,t){var r=t&&t.nodeTypeKey||"type";return null!==e&&"object"===mr(e)&&"string"==typeof e[r]}function mm(e,t,r,n,u){var a=mn(r,1)[0];if(!a)return!1;for(var i=mp(a,u),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;var l=void 0,c=void 0;"LEFT_SIDE"===n?(l=0,c=d):(l=d+1,c=s.length);for(var f=l;f<c;++f)if(mh(s[f],u)&&t(s[f],r,u))return!0}}return!1}function mg(e,t,r,n,u){var a=mn(r,1)[0];if(!a)return!1;for(var i=mp(a,u),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;if("LEFT_SIDE"===n&&d>0&&mh(s[d-1],u)&&t(s[d-1],r,u)||"RIGHT_SIDE"===n&&d<s.length-1&&mh(s[d+1],u)&&t(s[d+1],r,u))return!0}}return!1}function my(e,t,r,n){if(0===r)return!1;var u=mn(t,1)[0];if(!u)return!1;for(var a=mp(u,n),i=0;i<a.length;++i){var o=u[a[i]];if(Array.isArray(o)){var s=r<0?o.length+r:r-1;if(s>=0&&s<o.length&&o[s]===e)return!0}}return!1}function mb(e,t,r,n){if(t){var u=[],a=mc(t),i=(function e(t,r){if(null==t||"object"!=mr(t))return[];null==r&&(r=t);for(var n=t.subject?[r]:[],u=Object.keys(t),a=0;a<u.length;++a){var i,o=u[a],s=t[o];n.push.apply(n,function(e){if(Array.isArray(e))return ma(e)}(i=e(s,"left"===o?s:r))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||mu(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return n})(t).map(mc);mo.traverse(e,{enter:function(e,t){if(null!=t&&u.unshift(t),a(e,u,n)){if(i.length)for(var o=0,s=i.length;o<s;++o){i[o](e,u,n)&&r(e,t,u);for(var d=0,l=u.length;d<l;++d){var c=u.slice(d+1);i[o](u[d],c,n)&&r(u[d],t,c)}}else r(e,t,u)}},leave:function(){u.shift()},keys:n&&n.visitorKeys,fallback:n&&n.fallback||"iteration"})}}function mv(e,t,r){var n=[];return mb(e,t,function(e){n.push(e)},r),n}function mx(e){return ms.parse(e)}function mE(e,t,r){return mv(e,mx(t),r)}mE.parse=mx,mE.match=mv,mE.traverse=mb,mE.matches=function(e,t,r,n){return!t||!!e&&(r||(r=[]),mc(t)(e,r,n))},mE.query=mE;var mC=/*@__PURE__*/ef(/*#__PURE__*/Object.freeze({__proto__:null,default:mE}));const mA=e=>{let t=mt(e);if(0===t)return e;let r=RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")},mD=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},"string"!=typeof e)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if("string"!=typeof r.indent)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(0===t)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))},{replaceTemplateElement:mS}=uv,{isMethodCall:m_,isCallExpression:mw,isTaggedTemplateLiteral:mT}=tK,{isNodeMatches:mP}=nI,mk="template-indent",mF=e=>m_(e.parent,{method:"toMatchInlineSnapshot",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&e.parent.arguments[0]===e&&mw(e.parent.callee.object,{name:"expect",argumentsLength:1,optionalCall:!1,optionalMember:!1}),mI=new Map,mB=e=>(mI.has(e)||mI.set(e,mC.parse(e)),mI.get(e));var mj=/*@__PURE__*/ec({create:e=>{let{sourceCode:t}=e,r={tags:["outdent","dedent","gql","sql","html","styled"],functions:["dedent","stripIndent"],selectors:[],comments:["HTML","indent"],...e.options[0]};r.comments=r.comments.map(e=>e.toLowerCase());let n=e=>{let n;let u="__PLACEHOLDER__"+Math.random(),a=e.quasis.map(e=>t.getText(e).slice(1,e.tail?-1:-2)).join(u),i=a.match(/\r?\n/);if(!i)return;let o=i[0],s=t.lines[e.loc.start.line-1].match(/^(\s*)\S/),d=s?s[1]:"";n="string"==typeof r.indent?r.indent:"number"==typeof r.indent?" ".repeat(r.indent):d.startsWith(" ")?" ":" ";let l=mA(a).replaceAll(RegExp(`^${o}|${o}[ ]*$`,"g"),""),c=o+mD(l,1,{indent:d+n})+o+d;if(c!==a)return{node:e,messageId:mk,fix:t=>c.split(u).map((r,n)=>mS(t,e.quasis[n],r))}},u=e=>{if(r.comments.length>0){let n=t.getTokenBefore(e,{includeComments:!0});if(n?.type==="Block"&&r.comments.includes(n.value.trim().toLowerCase()))return!0}if(mF(e)||r.tags.length>0&&mT(e,r.tags)||r.functions.length>0&&"CallExpression"===e.parent.type&&e.parent.arguments.includes(e)&&mP(e.parent.callee,r.functions))return!0;if(r.selectors.length>0){let n=t.getAncestors(e).reverse();if(r.selectors.some(t=>mC.matches(e,mB(t),n)))return!0}return!1};return{TemplateLiteral(e){if(u(e))return n(e)}}},meta:{type:"suggestion",docs:{description:"Fix whitespace-insensitive template indentation.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{indent:{oneOf:[{type:"string",pattern:/^\s+$/.source},{type:"integer",minimum:1}]},tags:{type:"array",uniqueItems:!0,items:{type:"string"}},functions:{type:"array",uniqueItems:!0,items:{type:"string"}},selectors:{type:"array",uniqueItems:!0,items:{type:"string"}},comments:{type:"array",uniqueItems:!0,items:{type:"string"}}}}],messages:{[mk]:"Templates should be properly indented."}}});const{isMethodCall:mL}=tK,{removeSpacesAfter:mO}=uv,mN="no-await-in-promise-methods/error",mR="no-await-in-promise-methods/suggestion",mM=["all","allSettled","any","race"],m$=e=>mL(e,{object:"Promise",methods:mM,optionalMember:!1,optionalCall:!1,argumentsLength:1})&&"ArrayExpression"===e.arguments[0].type;var mU=/*@__PURE__*/ec({create:e=>({*CallExpression(t){if(m$(t))for(let r of t.arguments[0].elements)r?.type==="AwaitExpression"&&(yield{node:r,messageId:mN,data:{method:t.callee.property.name},suggest:[{messageId:mR,*fix(t){let{sourceCode:n}=e,u=e.sourceCode.getFirstToken(r);yield t.remove(u),yield mO(u,n,t)}}]})}}),meta:{type:"suggestion",docs:{description:"Disallow using `await` in `Promise` method parameters.",recommended:!0},hasSuggestions:!0,messages:{[mN]:"Promise in `Promise.{{method}}()` should not be awaited.",[mR]:"Remove `await`."}}});const{fixSpaceAroundKeyword:mz,addParenthesizesToReturnOrThrowExpression:mV}=uv,{needsSemicolon:mq,isParenthesized:mW,isOnSameLine:mG}=nI,mZ="no-negation-in-equality-check/error",mH="no-negation-in-equality-check/suggestion",mK=new Set(["===","!==","==","!="]),mY=e=>"BinaryExpression"===e.type&&mK.has(e.operator),mJ=e=>"UnaryExpression"===e.type&&e.prefix&&"!"===e.operator;var mX=/*@__PURE__*/ec({create:e=>({BinaryExpression(t){let{operator:r,left:n}=t;if(!(mY(t)&&mJ(n)&&!mJ(n.argument)))return;let{sourceCode:u}=e,a=u.getFirstToken(n),i=`${r.startsWith("!")?"=":"!"}${r.slice(1)}`;return{node:a,messageId:mZ,suggest:[{messageId:mH,data:{operator:i},*fix(e){yield*mz(e,t,u);let o=u.getTokenAfter(a),{parent:s}=t;"ReturnStatement"!==s.type&&"ThrowStatement"!==s.type||mW(t,u)||mG(u.getFirstToken(s),o)||(yield*mV(e,s,u)),yield e.remove(a),mq(u.getTokenBefore(a),u,o.value)&&(yield e.insertTextAfter(a,";"));let d=u.getTokenAfter(n,e=>"Punctuator"===e.type&&e.value===r);yield e.replaceText(d,i)}}]}}}),meta:{type:"problem",docs:{description:"Disallow negated expression in equality check.",recommended:!0},hasSuggestions:!0,messages:{[mZ]:"Negated expression in not allowed in equality check.",[mH]:"Switch to '{{operator}}' check."}}});const{isMethodCall:mQ,isMemberExpression:m0}=tK,{removeArgument:m1}=uv,{isSameReference:m2}=nI,m3="no-length-as-slice-end";var m4=/*@__PURE__*/ec({create:e=>{e.on("CallExpression",t=>{if(!mQ(t,{method:"slice",argumentsLength:2,optionalCall:!1}))return;let r=t.arguments[1],n="ChainExpression"===r.type?r.expression:r;if(m0(n,{property:"length",computed:!1})&&m2(t.callee.object,n.object))return{node:n,messageId:m3,fix:t=>m1(t,r,e.sourceCode)}})},meta:{type:"suggestion",docs:{description:"Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.",recommended:!0},fixable:"code",messages:{[m3]:"Passing `….length` as the `end` argument is unnecessary."}}});const{findVariable:m5}=tm,{renameVariable:m8}=uv,{isMethodCall:m6}=tK,m9="catch-error-name",m7=e=>("FunctionExpression"===e.parent.type||"ArrowFunctionExpression"===e.parent.type)&&e.parent.params[0]===e&&(m6(e.parent.parent,{method:"then",argumentsLength:2,optionalCall:!1,optionalMember:!1})||m6(e.parent.parent,{method:"catch",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&e.parent.parent.arguments.at(-1)===e.parent;var ge=/*@__PURE__*/ec({create:e=>{let t={name:"error",ignore:[],...e.options[0]},{name:r}=t,n=t.ignore.map(e=>e instanceof RegExp?e:RegExp(e,"u")),u=e=>e===r||n.some(t=>t.test(e))||e.endsWith(r)||e.endsWith(r.charAt(0).toUpperCase()+r.slice(1));return{Identifier(t){if(!("CatchClause"===t.parent.type&&t.parent.param===t)&&!m7(t))return;let n=t.name;if(u(n)||u(n.replaceAll(/_+$/g,"")))return;let a=m5(e.sourceCode.getScope(t),t);if(!a||"_"===n&&0===a.references.length)return;let i=rA(r,[a.scope,...a.references.map(({from:e})=>e)]),o={node:t,messageId:m9,data:{originalName:n,fixedName:i||r}};return i&&(o.fix=e=>m8(a,i,e)),o}}},meta:{type:"suggestion",docs:{description:"Enforce a specific parameter name in catch clauses.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{name:{type:"string"},ignore:{type:"array",uniqueItems:!0}}}],messages:{[m9]:"The catch parameter `{{originalName}}` should be named `{{fixedName}}`."}}}),gt={exports:{}};gt.exports,function(e,t){var r,n,u,a,i,o,s,d,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,h={};((e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})})(h,{camelCase:()=>tR,defaultsDeep:()=>t1,kebabCase:()=>t2,lowerFirst:()=>t3,snakeCase:()=>t4,upperFirst:()=>to}),e.exports=((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of f(t))p.call(e,u)||u===r||l(e,u,{get:()=>t[u],enumerable:!(n=c(t,u))||n.enumerable});return e})(l({},"__esModule",{value:!0}),h);var m="object"==typeof el&&el&&el.Object===Object&&el,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),b=y.Symbol,v=Object.prototype,x=v.hasOwnProperty,E=v.toString,C=b?b.toStringTag:void 0,A=function(e){var t=x.call(e,C),r=e[C];try{e[C]=void 0;var n=!0}catch(e){}var u=E.call(e);return n&&(t?e[C]=r:delete e[C]),u},D=Object.prototype.toString,S=b?b.toStringTag:void 0,_=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?A(e):D.call(e)},w=function(e){return null!=e&&"object"==typeof e},T=function(e,t){for(var r=-1,n=null==e?0:e.length,u=Array(n);++r<n;)u[r]=t(e[r],r,e);return u},P=Array.isArray,k=1/0,F=b?b.prototype:void 0,I=F?F.toString:void 0,B=function e(t){if("string"==typeof t)return t;if(P(t))return T(t,e)+"";if("symbol"==typeof t||w(t)&&"[object Symbol]"==_(t))return I?I.call(t):"";var r=t+"";return"0"==r&&1/t==-k?"-0":r},j=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},L=function(e){return e},O=function(e){if(!j(e))return!1;var t=_(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},N=y["__core-js_shared__"],R=(r=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",M=Function.prototype.toString,$=function(e){if(null!=e){try{return M.call(e)}catch(e){}try{return e+""}catch(e){}}return""},U=/^\[object .+?Constructor\]$/,z=Object.prototype,V=Function.prototype.toString,q=z.hasOwnProperty,W=RegExp("^"+V.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=function(e,t){var r,n=null==e?void 0:e[t];return j(r=n)&&(!R||!(R in r))&&(O(r)?W:U).test($(r))?n:void 0},Z=Object.create,H=function(){function e(){}return function(t){if(!j(t))return{};if(Z)return Z(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),K=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},Y=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},J=Date.now,X=function(){try{var e=G(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Q=(n=X?function(e,t){return X(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:L,u=0,a=0,function(){var e=J(),t=16-(e-a);if(a=e,t>0){if(++u>=800)return arguments[0]}else u=0;return n.apply(void 0,arguments)}),ee=/^(?:0|[1-9]\d*)$/,et=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&ee.test(e))&&e>-1&&e%1==0&&e<t},er=function(e,t,r){"__proto__"==t&&X?X(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},en=function(e,t){return e===t||e!=e&&t!=t},eu=Object.prototype.hasOwnProperty,ea=function(e,t,r){var n=e[t];eu.call(e,t)&&en(n,r)&&(void 0!==r||t in e)||er(e,t,r)},ei=function(e,t,r,n){var u=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var o=t[a],s=n?n(r[o],e[o],o,r,e):void 0;void 0===s&&(s=e[o]),u?er(r,o,s):ea(r,o,s)}return r},eo=Math.max,es=function(e,t){var r;return Q((r=eo(void 0===(r=t)?e.length-1:r,0),function(){for(var t=arguments,n=-1,u=eo(t.length-r,0),a=Array(u);++n<u;)a[n]=t[r+n];n=-1;for(var i=Array(r+1);++n<r;)i[n]=t[n];return i[r]=L(a),K(e,this,i)}),e+"")},ed=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},ec=function(e){return null!=e&&ed(e.length)&&!O(e)},ef=function(e,t,r){if(!j(r))return!1;var n=typeof t;return("number"==n?!!(ec(r)&&et(t,r.length)):"string"==n&&t in r)&&en(r[t],e)},ep=Object.prototype,eh=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ep)},em=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},eg=function(e){return w(e)&&"[object Arguments]"==_(e)},ey=Object.prototype,eb=ey.hasOwnProperty,ev=ey.propertyIsEnumerable,ex=eg(function(){return arguments}())?eg:function(e){return w(e)&&eb.call(e,"callee")&&!ev.call(e,"callee")},eE=t&&!t.nodeType&&t,eC=eE&&e&&!e.nodeType&&e,eA=eC&&eC.exports===eE?y.Buffer:void 0,eD=(eA?eA.isBuffer:void 0)||function(){return!1},eS={};eS["[object Float32Array]"]=eS["[object Float64Array]"]=eS["[object Int8Array]"]=eS["[object Int16Array]"]=eS["[object Int32Array]"]=eS["[object Uint8Array]"]=eS["[object Uint8ClampedArray]"]=eS["[object Uint16Array]"]=eS["[object Uint32Array]"]=!0,eS["[object Arguments]"]=eS["[object Array]"]=eS["[object ArrayBuffer]"]=eS["[object Boolean]"]=eS["[object DataView]"]=eS["[object Date]"]=eS["[object Error]"]=eS["[object Function]"]=eS["[object Map]"]=eS["[object Number]"]=eS["[object Object]"]=eS["[object RegExp]"]=eS["[object Set]"]=eS["[object String]"]=eS["[object WeakMap]"]=!1;var e_=t&&!t.nodeType&&t,ew=e_&&e&&!e.nodeType&&e,eT=ew&&ew.exports===e_&&m.process,eP=function(){try{var e=ew&&ew.require&&ew.require("util").types;if(e)return e;return eT&&eT.binding&&eT.binding("util")}catch(e){}}(),ek=eP&&eP.isTypedArray,eF=ek?function(e){return ek(e)}:function(e){return w(e)&&ed(e.length)&&!!eS[_(e)]},eI=Object.prototype.hasOwnProperty,eB=function(e,t){var r=P(e),n=!r&&ex(e),u=!r&&!n&&eD(e),a=!r&&!n&&!u&&eF(e),i=r||n||u||a,o=i?em(e.length,String):[],s=o.length;for(var d in e)(t||eI.call(e,d))&&!(i&&("length"==d||u&&("offset"==d||"parent"==d)||a&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||et(d,s)))&&o.push(d);return o},ej=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},eL=Object.prototype.hasOwnProperty,eO=function(e){if(!j(e))return ej(e);var t=eh(e),r=[];for(var n in e)"constructor"==n&&(t||!eL.call(e,n))||r.push(n);return r},eN=function(e){return ec(e)?eB(e,!0):eO(e)},eR=G(Object,"create"),eM=Object.prototype.hasOwnProperty,e$=Object.prototype.hasOwnProperty;function eU(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eU.prototype.clear=function(){this.__data__=eR?eR(null):{},this.size=0},eU.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},eU.prototype.get=function(e){var t=this.__data__;if(eR){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return eM.call(t,e)?t[e]:void 0},eU.prototype.has=function(e){var t=this.__data__;return eR?void 0!==t[e]:e$.call(t,e)},eU.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=eR&&void 0===t?"__lodash_hash_undefined__":t,this};var ez=function(e,t){for(var r=e.length;r--;)if(en(e[r][0],t))return r;return -1},eV=Array.prototype.splice;function eq(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eq.prototype.clear=function(){this.__data__=[],this.size=0},eq.prototype.delete=function(e){var t=this.__data__,r=ez(t,e);return!(r<0)&&(r==t.length-1?t.pop():eV.call(t,r,1),--this.size,!0)},eq.prototype.get=function(e){var t=this.__data__,r=ez(t,e);return r<0?void 0:t[r][1]},eq.prototype.has=function(e){return ez(this.__data__,e)>-1},eq.prototype.set=function(e,t){var r=this.__data__,n=ez(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var eW=G(y,"Map"),eG=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},eZ=function(e,t){var r=e.__data__;return eG(t)?r["string"==typeof t?"string":"hash"]:r.map};function eH(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eH.prototype.clear=function(){this.size=0,this.__data__={hash:new eU,map:new(eW||eq),string:new eU}},eH.prototype.delete=function(e){var t=eZ(this,e).delete(e);return this.size-=t?1:0,t},eH.prototype.get=function(e){return eZ(this,e).get(e)},eH.prototype.has=function(e){return eZ(this,e).has(e)},eH.prototype.set=function(e,t){var r=eZ(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var eK=function(e){return null==e?"":B(e)},eY=(i=Object.getPrototypeOf,o=Object,function(e){return i(o(e))}),eJ=Object.prototype,eX=Function.prototype.toString,eQ=eJ.hasOwnProperty,e0=eX.call(Object),e1=function(e){if(!w(e)||"[object Object]"!=_(e))return!1;var t=eY(e);if(null===t)return!0;var r=eQ.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&eX.call(r)==e0},e2=function(e,t,r){var n=-1,u=e.length;t<0&&(t=-t>u?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(u);++n<u;)a[n]=e[n+t];return a},e3=function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:e2(e,t,r)},e4=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),e5=function(e){return e4.test(e)},e8="\ud800-\udfff",e6="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",e9="\ud83c[\udffb-\udfff]",e7="[^"+e8+"]",te="(?:\ud83c[\udde6-\uddff]){2}",tt="[\ud800-\udbff][\udc00-\udfff]",tr="(?:"+e6+"|"+e9+")?",tn="[\\ufe0e\\ufe0f]?",tu="(?:\\u200d(?:"+[e7,te,tt].join("|")+")"+tn+tr+")*",ta=RegExp(e9+"(?="+e9+")|(?:"+[e7+e6+"?",e6,te,tt,"["+e8+"]"].join("|")+")"+(tn+tr+tu),"g"),ti=function(e){return function(t){var r,n=e5(t=eK(t))?e5(r=t)?r.match(ta)||[]:r.split(""):void 0,u=n?n[0]:t.charAt(0),a=n?e3(n,1).join(""):t.slice(1);return u[e]()+a}},to=ti("toUpperCase"),ts=function(e,t,r,n){var u=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++u]);++u<a;)r=t(r,e[u],u,e);return r},td=(s={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},function(e){return null==s?void 0:s[e]}),tl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tc=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),tf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,th="\ud800-\udfff",tm="\\u2700-\\u27bf",tg="a-z\\xdf-\\xf6\\xf8-\\xff",ty="A-Z\\xc0-\\xd6\\xd8-\\xde",tb="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tv="['’]",tx="["+tb+"]",tE="["+tg+"]",tC="[^"+th+tb+"\\d+"+tm+tg+ty+"]",tA="(?:\ud83c[\udde6-\uddff]){2}",tD="[\ud800-\udbff][\udc00-\udfff]",tS="["+ty+"]",t_="(?:"+tE+"|"+tC+")",tw="(?:"+tS+"|"+tC+")",tT="(?:"+tv+"(?:d|ll|m|re|s|t|ve))?",tP="(?:"+tv+"(?:D|LL|M|RE|S|T|VE))?",tk="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",tF="[\\ufe0e\\ufe0f]?",tI="(?:\\u200d(?:"+["[^"+th+"]",tA,tD].join("|")+")"+tF+tk+")*",tB="(?:"+["["+tm+"]",tA,tD].join("|")+")"+(tF+tk+tI),tj=RegExp([tS+"?"+tE+"+"+tT+"(?="+[tx,tS,"$"].join("|")+")",tw+"+"+tP+"(?="+[tx,tS+t_,"$"].join("|")+")",tS+"?"+t_+"+"+tT,tS+"+"+tP,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",tB].join("|"),"g"),tL=function(e,t,r){if(e=eK(e),void 0===(t=r?void 0:t)){var n;return(n=e,tp.test(n))?e.match(tj)||[]:e.match(tf)||[]}return e.match(t)||[]},tO=RegExp("['’]","g"),tN=function(e){return function(t){var r;return ts(tL(((r=eK(r=t))&&r.replace(tl,td).replace(tc,"")).replace(tO,"")),e,"")}},tR=tN(function(e,t,r){return t=t.toLowerCase(),e+(r?to(eK(t).toLowerCase()):t)});function tM(e){var t=this.__data__=new eq(e);this.size=t.size}tM.prototype.clear=function(){this.__data__=new eq,this.size=0},tM.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},tM.prototype.get=function(e){return this.__data__.get(e)},tM.prototype.has=function(e){return this.__data__.has(e)},tM.prototype.set=function(e,t){var r=this.__data__;if(r instanceof eq){var n=r.__data__;if(!eW||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new eH(n)}return r.set(e,t),this.size=r.size,this};var t$=t&&!t.nodeType&&t,tU=t$&&e&&!e.nodeType&&e,tz=tU&&tU.exports===t$?y.Buffer:void 0,tV=tz?tz.allocUnsafe:void 0,tq=function(e,t){if(t)return e.slice();var r=e.length,n=tV?tV(r):new e.constructor(r);return e.copy(n),n},tW=y.Uint8Array,tG=function(e){var t=new e.constructor(e.byteLength);return new tW(t).set(new tW(e)),t},tZ=function(e,t){var r=t?tG(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},tH=function(e,t,r){for(var n=-1,u=Object(e),a=r(e),i=a.length;i--;){var o=a[++n];if(!1===t(u[o],o,u))break}return e},tK=function(e,t,r){(void 0===r||en(e[t],r))&&(void 0!==r||t in e)||er(e,t,r)},tY=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},tJ=function(e,t,r,n,u,a,i){var o=tY(e,r),s=tY(t,r),d=i.get(s);if(d){tK(e,r,d);return}var l=a?a(o,s,r+"",e,t,i):void 0,c=void 0===l;if(c){var f=P(s),p=!f&&eD(s),h=!f&&!p&&eF(s);(l=s,f||p||h)?P(o)?l=o:w(o)&&ec(o)?l=Y(o):p?(c=!1,l=tq(s,!0)):h?(c=!1,l=tZ(s,!0)):l=[]:e1(s)||ex(s)?(l=o,ex(o))?l=ei(o,eN(o)):(!j(o)||O(o))&&(l="function"!=typeof s.constructor||eh(s)?{}:H(eY(s))):c=!1}c&&(i.set(s,l),u(l,s,n,a,i),i.delete(s)),tK(e,r,l)},tX=function e(t,r,n,u,a){t!==r&&tH(r,function(i,o){if(a||(a=new tM),j(i))tJ(t,r,o,n,e,u,a);else{var s=u?u(tY(t,o),i,o+"",t,r,a):void 0;void 0===s&&(s=i),tK(t,o,s)}},eN)},tQ=function e(t,r,n,u,a,i){return j(t)&&j(r)&&(i.set(r,t),tX(t,r,void 0,e,i),i.delete(r)),t},t0=(d=function(e,t,r,n){tX(e,t,r,n)},es(function(e,t){var r=-1,n=t.length,u=n>1?t[n-1]:void 0,a=n>2?t[2]:void 0;for(u=d.length>3&&"function"==typeof u?(n--,u):void 0,a&&ef(t[0],t[1],a)&&(u=n<3?void 0:u,n=1),e=Object(e);++r<n;){var i=t[r];i&&d(e,i,r,u)}return e})),t1=es(function(e){return e.push(void 0,tQ),K(t0,void 0,e)}),t2=tN(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),t3=ti("toLowerCase"),t4=tN(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});/*! Bundled license information:
|
|
15
|
+
${r}}`))}(t,a,o))}}}({discriminant:n,ifStatements:i},r,t)),yield o}}}},meta:{type:"suggestion",docs:{description:"Prefer `switch` over multiple `else-if`.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{minimumCases:{type:"integer",minimum:2,default:3},emptyDefaultCase:{enum:["no-default-comment","do-nothing-comment","no-default-case"],default:"no-default-comment"}}}],messages:{[h1]:"Use `switch` instead of multiple `else-if`."}}});const{appendArgument:h6}=uv,{isMethodCall:h9}=tK,h7="require-number-to-fixed-digits-argument";var me=/*@__PURE__*/ec({create:e=>({CallExpression(t){if(!h9(t,{method:"toFixed",argumentsLength:0,optionalCall:!1,optionalMember:!1})||"NewExpression"===t.callee.object.type)return;let{sourceCode:r}=e,[n,u]=r.getLastTokens(t,2);return{loc:{start:n.loc.start,end:u.loc.end},messageId:h7,fix:e=>h6(e,t,"0",r)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the digits argument with `Number#toFixed()`.",recommended:!0},fixable:"code",messages:{[h7]:"Missing the digits argument."}}});const mt=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((e,t)=>Math.min(e,t.length),1/0):0};function mr(e){return(mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,u,a,i,o=[],s=!0,d=!1;try{if(a=(r=r.call(e)).next,0===t);else for(;!(s=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){d=!0,u=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw u}}return o}}(e,t)||mu(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mu(e,t){if(e){if("string"==typeof e)return ma(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ma(e,t):void 0}}function ma(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mi(e,t){return e(t={exports:{}},t.exports),t.exports}var mo=mi(function(e,t){!function e(t){var r,n,u,a,i,o;function s(e){var t,r,n={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],n[t]="object"==typeof r&&null!==r?s(r):r);return n}function d(e,t){this.parent=e,this.key=t}function l(e,t,r,n){this.node=e,this.path=t,this.wrap=r,this.ref=n}function c(){}function f(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function p(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function h(e,t){for(var r=e.length-1;r>=0;--r)if(e[r].node===t)return!0;return!1}function m(e,t){return(new c).traverse(e,t)}return r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},u={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},n={Break:a={},Skip:i={},Remove:o={}},d.prototype.replace=function(e){this.parent[this.key]=e},d.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},c.prototype.path=function(){var e,t,r,n,u;function a(e,t){if(Array.isArray(t))for(r=0,n=t.length;r<n;++r)e.push(t[r]);else e.push(t)}if(!this.__current.path)return null;for(u=[],e=2,t=this.__leavelist.length;e<t;++e)a(u,this.__leavelist[e].path);return a(u,this.__current.path),u},c.prototype.type=function(){return this.current().type||this.__current.wrap},c.prototype.parents=function(){var e,t,r;for(r=[],e=1,t=this.__leavelist.length;e<t;++e)r.push(this.__leavelist[e].node);return r},c.prototype.current=function(){return this.__current.node},c.prototype.__execute=function(e,t){var r,n;return n=void 0,r=this.__current,this.__current=t,this.__state=null,e&&(n=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=r,n},c.prototype.notify=function(e){this.__state=e},c.prototype.skip=function(){this.notify(i)},c.prototype.break=function(){this.notify(a)},c.prototype.remove=function(){this.notify(o)},c.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===t.fallback?this.__fallback=Object.keys:"function"==typeof t.fallback&&(this.__fallback=t.fallback),this.__keys=u,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},c.prototype.traverse=function(e,t){var r,n,u,o,s,d,c,m,g,y,b,v;for(this.__initialize(e,t),v={},r=this.__worklist,n=this.__leavelist,r.push(new l(e,null,null,null)),n.push(new l(null,null,null,null));r.length;)if((u=r.pop())!==v){if(u.node){if(d=this.__execute(t.enter,u),this.__state===a||d===a)return;if(r.push(v),n.push(u),this.__state===i||d===i)continue;if(s=(o=u.node).type||u.wrap,!(y=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");y=this.__fallback(o)}for(m=y.length;(m-=1)>=0;)if(b=o[c=y[m]]){if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]&&!h(n,b[g])){if(p(s,y[m]))u=new l(b[g],[c,g],"Property",null);else{if(!f(b[g]))continue;u=new l(b[g],[c,g],null,null)}r.push(u)}}else if(f(b)){if(h(n,b))continue;r.push(new l(b,c,null,null))}}}}else if(u=n.pop(),d=this.__execute(t.leave,u),this.__state===a||d===a)return},c.prototype.replace=function(e,t){var r,n,u,s,c,h,m,g,y,b,v,x,E;function C(e){var t,n,u,a;if(e.ref.remove()){for(n=e.ref.key,a=e.ref.parent,t=r.length;t--;)if((u=r[t]).ref&&u.ref.parent===a){if(u.ref.key<n)break;--u.ref.key}}}for(this.__initialize(e,t),v={},r=this.__worklist,n=this.__leavelist,h=new l(e,null,null,new d(x={root:e},"root")),r.push(h),n.push(h);r.length;)if((h=r.pop())!==v){if(void 0!==(c=this.__execute(t.enter,h))&&c!==a&&c!==i&&c!==o&&(h.ref.replace(c),h.node=c),this.__state!==o&&c!==o||(C(h),h.node=null),this.__state===a||c===a)return x.root;if((u=h.node)&&(r.push(v),n.push(h),this.__state!==i&&c!==i)){if(s=u.type||h.wrap,!(y=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");y=this.__fallback(u)}for(m=y.length;(m-=1)>=0;)if(b=u[E=y[m]]){if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]){if(p(s,y[m]))h=new l(b[g],[E,g],"Property",new d(b,g));else{if(!f(b[g]))continue;h=new l(b[g],[E,g],null,new d(b,g))}r.push(h)}}else f(b)&&r.push(new l(b,E,null,new d(u,E)))}}}else if(h=n.pop(),void 0!==(c=this.__execute(t.leave,h))&&c!==a&&c!==i&&c!==o&&h.ref.replace(c),this.__state!==o&&c!==o||C(h),this.__state===a||c===a)break;return x.root},t.Syntax=r,t.traverse=m,t.replace=function(e,t){return(new c).replace(e,t)},t.attachComments=function(e,t,r){var u,a,i,o,d=[];if(!e.range)throw Error("attachComments needs range information");if(!r.length){if(t.length){for(i=0,a=t.length;i<a;i+=1)(u=s(t[i])).extendedRange=[0,e.range[0]],d.push(u);e.leadingComments=d}return e}for(i=0,a=t.length;i<a;i+=1)d.push(function(e,t){var r;return r=function(e,t){var r,n,u,a;for(n=e.length,u=0;n;)t(e[a=u+(r=n>>>1)])?n=r:(u=a+1,n-=r+1);return u}(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}(s(t[i]),r));return o=0,m(e,{enter:function(e){for(var t;o<d.length&&!((t=d[o]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?n.Break:d[o].extendedRange[0]>e.range[1]?n.Skip:void 0}}),o=0,m(e,{leave:function(e){for(var t;o<d.length&&(t=d[o],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?n.Break:d[o].extendedRange[0]>e.range[1]?n.Skip:void 0}}),e},t.VisitorKeys=u,t.VisitorOption=n,t.Controller=c,t.cloneEnvironment=function(){return e({})},t}(t)}),ms=mi(function(e){e.exports&&(e.exports=function(){function e(t,r,n,u){this.message=t,this.expected=r,this.found=n,this.location=u,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.buildMessage=function(e,t){var r={literal:function(e){return'"'+u(e.text)+'"'},class:function(e){var t,r="";for(t=0;t<e.parts.length;t++)r+=e.parts[t]instanceof Array?a(e.parts[t][0])+"-"+a(e.parts[t][1]):a(e.parts[t]);return"["+(e.inverted?"^":"")+r+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function u(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function a(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}return"Expected "+function(e){var t,n,u,a=Array(e.length);for(t=0;t<e.length;t++)a[t]=r[(u=e[t]).type](u);if(a.sort(),a.length>0){for(t=1,n=1;t<a.length;t++)a[t-1]!==a[t]&&(a[n]=a[t],n++);a.length=n}switch(a.length){case 1:return a[0];case 2:return a[0]+" or "+a[1];default:return a.slice(0,-1).join(", ")+", or "+a[a.length-1]}}(e)+" but "+(t?'"'+u(t)+'"':"end of input")+" found."},{SyntaxError:e,parse:function(t,r){r=void 0!==r?r:{};var n,u,a,i,o,s,d,l,c={},f={start:ev},p=ev,h=em(" ",!1),m=/^[^ [\],():#!=><~+.]/,g=eg([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),y=em(">",!1),b=em("~",!1),v=em("+",!1),x=em(",",!1),E=function(e,t){return[e].concat(t.map(function(e){return e[3]}))},C=em("!",!1),A=em("*",!1),D=em("#",!1),S=em("[",!1),_=em("]",!1),w=/^[><!]/,T=eg([">","<","!"],!1,!1),P=em("=",!1),k=function(e){return(e||"")+"="},F=/^[><]/,I=eg([">","<"],!1,!1),B=em(".",!1),j=function(e,t,r){return{type:"attribute",name:e,operator:t,value:r}},L=em('"',!1),O=/^[^\\"]/,N=eg(["\\",'"'],!0,!1),R=em("\\",!1),M={type:"any"},$=function(e,t){return e+t},U=function(e){return{type:"literal",value:e.join("").replace(/\\(.)/g,function(e,t){switch(t){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return" ";case"v":return"\v";default:return t}})}},z=em("'",!1),V=/^[^\\']/,q=eg(["\\","'"],!0,!1),W=/^[0-9]/,G=eg([["0","9"]],!1,!1),Z=em("type(",!1),H=/^[^ )]/,K=eg([" ",")"],!0,!1),Y=em(")",!1),J=/^[imsu]/,X=eg(["i","m","s","u"],!1,!1),Q=em("/",!1),ee=/^[^\/]/,et=eg(["/"],!0,!1),er=em(":not(",!1),en=em(":matches(",!1),eu=em(":has(",!1),ea=em(":first-child",!1),ei=em(":last-child",!1),eo=em(":nth-child(",!1),es=em(":nth-last-child(",!1),ed=em(":",!1),el=0,ec=[{line:1,column:1}],ef=0,ep=[],eh={};if("startRule"in r){if(!(r.startRule in f))throw Error("Can't start parsing from rule \""+r.startRule+'".');p=f[r.startRule]}function em(e,t){return{type:"literal",text:e,ignoreCase:t}}function eg(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function ey(e){var r,n=ec[e];if(n)return n;for(r=e-1;!ec[r];)r--;for(n={line:(n=ec[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return ec[e]=n,n}function eb(e){el<ef||(el>ef&&(ef=el,ep=[]),ep.push(e))}function ev(){var e,t,r,n,u=32*el+0,a=eh[u];return a?(el=a.nextPos,a.result):(e=el,(t=ex())!==c&&(r=eA())!==c&&ex()!==c?e=t=1===(n=r).length?n[0]:{type:"matches",selectors:n}:(el=e,e=c),e===c&&(e=el,(t=ex())!==c&&(t=void 0),e=t),eh[u]={nextPos:el,result:e},e)}function ex(){var e,r,n=32*el+1,u=eh[n];if(u)return el=u.nextPos,u.result;for(e=[],32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(h));r!==c;)e.push(r),32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(h));return eh[n]={nextPos:el,result:e},e}function eE(){var e,r,n,u=32*el+2,a=eh[u];if(a)return el=a.nextPos,a.result;if(r=[],m.test(t.charAt(el))?(n=t.charAt(el),el++):(n=c,eb(g)),n!==c)for(;n!==c;)r.push(n),m.test(t.charAt(el))?(n=t.charAt(el),el++):(n=c,eb(g));else r=c;return r!==c&&(r=r.join("")),e=r,eh[u]={nextPos:el,result:e},e}function eC(){var e,r,n,u=32*el+3,a=eh[u];return a?(el=a.nextPos,a.result):(e=el,(r=ex())!==c?(62===t.charCodeAt(el)?(n=">",el++):(n=c,eb(y)),n!==c&&ex()!==c?e=r="child":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,(r=ex())!==c?(126===t.charCodeAt(el)?(n="~",el++):(n=c,eb(b)),n!==c&&ex()!==c?e=r="sibling":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,(r=ex())!==c?(43===t.charCodeAt(el)?(n="+",el++):(n=c,eb(v)),n!==c&&ex()!==c?e=r="adjacent":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(h)),r!==c&&(n=ex())!==c?e=r="descendant":(el=e,e=c)))),eh[u]={nextPos:el,result:e},e)}function eA(){var e,r,n,u,a,i,o,s,d=32*el+5,l=eh[d];if(l)return el=l.nextPos,l.result;if(e=el,(r=eS())!==c){for(n=[],u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eS())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);u!==c;)n.push(u),u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eS())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=E(r,n):(el=e,e=c)}else el=e,e=c;return eh[d]={nextPos:el,result:e},e}function eD(){var e,t,r,n,u,a=32*el+6,i=eh[a];return i?(el=i.nextPos,i.result):(e=el,(t=eC())===c&&(t=null),t!==c&&(r=eS())!==c?(u=r,e=t=(n=t)?{type:n,left:{type:"exactNode"},right:u}:u):(el=e,e=c),eh[a]={nextPos:el,result:e},e)}function eS(){var e,t,r,n,u,a,i,o=32*el+7,s=eh[o];if(s)return el=s.nextPos,s.result;if(e=el,(t=e_())!==c){for(r=[],n=el,(u=eC())!==c&&(a=e_())!==c?n=u=[u,a]:(el=n,n=c);n!==c;)r.push(n),n=el,(u=eC())!==c&&(a=e_())!==c?n=u=[u,a]:(el=n,n=c);r!==c?(i=t,e=t=r.reduce(function(e,t){return{type:t[0],left:e,right:t[1]}},i)):(el=e,e=c)}else el=e,e=c;return eh[o]={nextPos:el,result:e},e}function e_(){var e,r,n,u,a,i,o,s=32*el+8,d=eh[s];if(d)return el=d.nextPos,d.result;if(e=el,33===t.charCodeAt(el)?(r="!",el++):(r=c,eb(C)),r===c&&(r=null),r!==c){if(n=[],(u=ew())!==c)for(;u!==c;)n.push(u),u=ew();else n=c;n!==c?(a=r,o=1===(i=n).length?i[0]:{type:"compound",selectors:i},a&&(o.subject=!0),e=r=o):(el=e,e=c)}else el=e,e=c;return eh[s]={nextPos:el,result:e},e}function ew(){var e,r,n,u,a,i,o,s,d,l,f,p,h,m,g,y,b,v,ec,ef,ep,em,eg,ey,ev,eC,eS,e_,ew,eF,eI,eB,ej,eL,eO,eN,eR,eM,e$,eU,ez,eV,eq,eW,eG,eZ,eH,eK,eY,eJ,eX,eQ,e0,e1,e2,e3,e4,e5,e8,e6,e9,e7,te,tt,tr,tn,tu,ta=32*el+9,ti=eh[ta];return ti?(el=ti.nextPos,ti.result):((tu=(u=eh[n=32*el+10])?(el=u.nextPos,u.result):(42===t.charCodeAt(el)?(r="*",el++):(r=c,eb(A)),r!==c&&(r={type:"wildcard",value:r}),e=r,eh[n]={nextPos:el,result:e},e))===c&&(tu=(d=eh[s=32*el+11])?(el=d.nextPos,d.result):(a=el,35===t.charCodeAt(el)?(i="#",el++):(i=c,eb(D)),i===c&&(i=null),i!==c&&(o=eE())!==c?a=i={type:"identifier",value:o}:(el=a,a=c),eh[s]={nextPos:el,result:a},a))===c&&(tu=(g=eh[m=32*el+12])?(el=g.nextPos,g.result):(l=el,91===t.charCodeAt(el)?(f="[",el++):(f=c,eb(S)),f!==c&&ex()!==c&&(p=(ep=eh[ef=32*el+16])?(el=ep.nextPos,ep.result):(y=el,(b=eT())!==c&&ex()!==c&&(v=(eC=eh[ev=32*el+14])?(el=eC.nextPos,eC.result):(em=el,33===t.charCodeAt(el)?(eg="!",el++):(eg=c,eb(C)),eg===c&&(eg=null),eg!==c?(61===t.charCodeAt(el)?(ey="=",el++):(ey=c,eb(P)),ey!==c?em=eg=k(eg):(el=em,em=c)):(el=em,em=c),eh[ev]={nextPos:el,result:em},em))!==c&&ex()!==c?((ec=function(){var e,r,n,u,a,i=32*el+20,o=eh[i];if(o)return el=o.nextPos,o.result;if(e=el,"type("===t.substr(el,5)?(r="type(",el+=5):(r=c,eb(Z)),r!==c){if(ex()!==c){if(n=[],H.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(K)),u!==c)for(;u!==c;)n.push(u),H.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(K));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(Y)),a!==c?e=r={type:"type",value:n.join("")}:(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[i]={nextPos:el,result:e},e}())===c&&(ec=function(){var e,r,n,u,a,i,o=32*el+22,s=eh[o];if(s)return el=s.nextPos,s.result;if(e=el,47===t.charCodeAt(el)?(r="/",el++):(r=c,eb(Q)),r!==c){if(n=[],ee.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(et)),u!==c)for(;u!==c;)n.push(u),ee.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(et));else n=c;n!==c?(47===t.charCodeAt(el)?(u="/",el++):(u=c,eb(Q)),u!==c?((a=function(){var e,r,n=32*el+21,u=eh[n];if(u)return el=u.nextPos,u.result;if(e=[],J.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(X)),r!==c)for(;r!==c;)e.push(r),J.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(X));else e=c;return eh[n]={nextPos:el,result:e},e}())===c&&(a=null),a!==c?(i=a,e=r={type:"regexp",value:new RegExp(n.join(""),i?i.join(""):"")}):(el=e,e=c)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c;return eh[o]={nextPos:el,result:e},e}()),ec!==c?y=b=j(b,v,ec):(el=y,y=c)):(el=y,y=c),y===c&&(y=el,(b=eT())!==c&&ex()!==c&&(v=(eI=eh[eF=32*el+13])?(el=eI.nextPos,eI.result):(eS=el,w.test(t.charAt(el))?(e_=t.charAt(el),el++):(e_=c,eb(T)),e_===c&&(e_=null),e_!==c?(61===t.charCodeAt(el)?(ew="=",el++):(ew=c,eb(P)),ew!==c?eS=e_=k(e_):(el=eS,eS=c)):(el=eS,eS=c),eS===c&&(F.test(t.charAt(el))?(eS=t.charAt(el),el++):(eS=c,eb(I))),eh[eF]={nextPos:el,result:eS},eS))!==c&&ex()!==c?((ec=function(){var e,r,n,u,a,i,o=32*el+17,s=eh[o];if(s)return el=s.nextPos,s.result;if(e=el,34===t.charCodeAt(el)?(r='"',el++):(r=c,eb(L)),r!==c){for(n=[],O.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(N)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));u!==c;)n.push(u),O.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(N)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));n!==c?(34===t.charCodeAt(el)?(u='"',el++):(u=c,eb(L)),u!==c?e=r=U(n):(el=e,e=c)):(el=e,e=c)}else el=e,e=c;if(e===c){if(e=el,39===t.charCodeAt(el)?(r="'",el++):(r=c,eb(z)),r!==c){for(n=[],V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(q)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));u!==c;)n.push(u),V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(q)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(R)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));n!==c?(39===t.charCodeAt(el)?(u="'",el++):(u=c,eb(z)),u!==c?e=r=U(n):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}return eh[o]={nextPos:el,result:e},e}())===c&&(ec=function(){var e,r,n,u,a,i,o=32*el+18,s=eh[o];if(s)return el=s.nextPos,s.result;for(e=el,r=el,n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));if(n!==c?(46===t.charCodeAt(el)?(u=".",el++):(u=c,eb(B)),u!==c?r=n=[n,u]:(el=r,r=c)):(el=r,r=c),r===c&&(r=null),r!==c){if(n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G)),u!==c)for(;u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));else n=c;n!==c?(i=n,e=r={type:"literal",value:parseFloat(((a=r)?[].concat.apply([],a).join(""):"")+i.join(""))}):(el=e,e=c)}else el=e,e=c;return eh[o]={nextPos:el,result:e},e}())===c&&(ec=(eO=eh[eL=32*el+19])?(el=eO.nextPos,eO.result):((ej=eE())!==c&&(ej={type:"literal",value:ej}),eB=ej,eh[eL]={nextPos:el,result:eB},eB)),ec!==c?y=b=j(b,v,ec):(el=y,y=c)):(el=y,y=c),y===c&&(y=el,(b=eT())!==c&&(b={type:"attribute",name:b}),y=b)),eh[ef]={nextPos:el,result:y},y))!==c&&ex()!==c?(93===t.charCodeAt(el)?(h="]",el++):(h=c,eb(_)),h!==c?l=f=p:(el=l,l=c)):(el=l,l=c),eh[m]={nextPos:el,result:l},l))===c&&(tu=function(){var e,r,n,u,a,i,o,s=32*el+23,d=eh[s];if(d)return el=d.nextPos,d.result;if(e=el,46===t.charCodeAt(el)?(r=".",el++):(r=c,eb(B)),r!==c){if((n=eE())!==c){for(u=[],a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(B)),i!==c&&(o=eE())!==c?a=i=[i,o]:(el=a,a=c);a!==c;)u.push(a),a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(B)),i!==c&&(o=eE())!==c?a=i=[i,o]:(el=a,a=c);u!==c?e=r={type:"field",name:u.reduce(function(e,t){return e+t[0]+t[1]},n)}:(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[s]={nextPos:el,result:e},e}())===c&&(tu=(ez=eh[eU=32*el+24])?(el=ez.nextPos,ez.result):(eN=el,":not("===t.substr(el,5)?(eR=":not(",el+=5):(eR=c,eb(er)),eR!==c&&ex()!==c&&(eM=eA())!==c&&ex()!==c?(41===t.charCodeAt(el)?(e$=")",el++):(e$=c,eb(Y)),e$!==c?eN=eR={type:"not",selectors:eM}:(el=eN,eN=c)):(el=eN,eN=c),eh[eU]={nextPos:el,result:eN},eN))===c&&(tu=(eH=eh[eZ=32*el+25])?(el=eH.nextPos,eH.result):(eV=el,":matches("===t.substr(el,9)?(eq=":matches(",el+=9):(eq=c,eb(en)),eq!==c&&ex()!==c&&(eW=eA())!==c&&ex()!==c?(41===t.charCodeAt(el)?(eG=")",el++):(eG=c,eb(Y)),eG!==c?eV=eq={type:"matches",selectors:eW}:(el=eV,eV=c)):(el=eV,eV=c),eh[eZ]={nextPos:el,result:eV},eV))===c&&(tu=(e0=eh[eQ=32*el+26])?(el=e0.nextPos,e0.result):(eK=el,":has("===t.substr(el,5)?(eY=":has(",el+=5):(eY=c,eb(eu)),eY!==c&&ex()!==c&&(eJ=function(){var e,r,n,u,a,i,o,s,d=32*el+4,l=eh[d];if(l)return el=l.nextPos,l.result;if(e=el,(r=eD())!==c){for(n=[],u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eD())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);u!==c;)n.push(u),u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eD())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=E(r,n):(el=e,e=c)}else el=e,e=c;return eh[d]={nextPos:el,result:e},e}())!==c&&ex()!==c?(41===t.charCodeAt(el)?(eX=")",el++):(eX=c,eb(Y)),eX!==c?eK=eY={type:"has",selectors:eJ}:(el=eK,eK=c)):(el=eK,eK=c),eh[eQ]={nextPos:el,result:eK},eK))===c&&(tu=(e4=eh[e3=32*el+27])?(el=e4.nextPos,e4.result):(":first-child"===t.substr(el,12)?(e2=":first-child",el+=12):(e2=c,eb(ea)),e2!==c&&(e2=eP(1)),e1=e2,eh[e3]={nextPos:el,result:e1},e1))===c&&(tu=(e9=eh[e6=32*el+28])?(el=e9.nextPos,e9.result):(":last-child"===t.substr(el,11)?(e8=":last-child",el+=11):(e8=c,eb(ei)),e8!==c&&(e8=ek(1)),e5=e8,eh[e6]={nextPos:el,result:e5},e5))===c&&(tu=function(){var e,r,n,u,a,i=32*el+29,o=eh[i];if(o)return el=o.nextPos,o.result;if(e=el,":nth-child("===t.substr(el,11)?(r=":nth-child(",el+=11):(r=c,eb(eo)),r!==c){if(ex()!==c){if(n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G)),u!==c)for(;u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(Y)),a!==c?e=r=eP(parseInt(n.join(""),10)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[i]={nextPos:el,result:e},e}())===c&&(tu=function(){var e,r,n,u,a,i=32*el+30,o=eh[i];if(o)return el=o.nextPos,o.result;if(e=el,":nth-last-child("===t.substr(el,16)?(r=":nth-last-child(",el+=16):(r=c,eb(es)),r!==c){if(ex()!==c){if(n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G)),u!==c)for(;u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(Y)),a!==c?e=r=ek(parseInt(n.join(""),10)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[i]={nextPos:el,result:e},e}())===c&&(tu=(tn=eh[tr=32*el+31])?(el=tn.nextPos,tn.result):(e7=el,58===t.charCodeAt(el)?(te=":",el++):(te=c,eb(ed)),te!==c&&(tt=eE())!==c?e7=te={type:"class",name:tt}:(el=e7,e7=c),eh[tr]={nextPos:el,result:e7},e7)),eh[ta]={nextPos:el,result:tu},tu)}function eT(){var e,r,n,u,a,i,o,s=32*el+15,d=eh[s];if(d)return el=d.nextPos,d.result;if(e=el,(r=eE())!==c){for(n=[],u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(B)),a!==c&&(i=eE())!==c?u=a=[a,i]:(el=u,u=c);u!==c;)n.push(u),u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(B)),a!==c&&(i=eE())!==c?u=a=[a,i]:(el=u,u=c);n!==c?(o=r,e=r=[].concat.apply([o],n).join("")):(el=e,e=c)}else el=e,e=c;return eh[s]={nextPos:el,result:e},e}function eP(e){return{type:"nth-child",index:{type:"literal",value:e}}}function ek(e){return{type:"nth-last-child",index:{type:"literal",value:e}}}if((o=p())!==c&&el===t.length)return o;throw o!==c&&el<t.length&&eb({type:"end"}),s=ep,d=ef<t.length?t.charAt(ef):null,n=ef,u=ef<t.length?ef+1:ef,a=ey(n),i=ey(u),l={start:{offset:n,line:a.line,column:a.column},end:{offset:u,line:i.line,column:i.column}},new e(e.buildMessage(s,d),s,d,l)}}}())});function md(e,t){for(var r=0;r<t.length&&null!=e;++r)e=e[t[r]];return e}var ml="function"==typeof WeakMap?new WeakMap:null;function mc(e){if(null==e)return function(){return!0};if(null!=ml){var t=ml.get(e);return null!=t||(t=mf(e),ml.set(e,t)),t}return mf(e)}function mf(e){switch(e.type){case"wildcard":return function(){return!0};case"identifier":var t=e.value.toLowerCase();return function(e,r,n){return t===e[n&&n.nodeTypeKey||"type"].toLowerCase()};case"exactNode":return function(e,t){return 0===t.length};case"field":var r=e.name.split(".");return function(e,t){return function e(t,r,n,u){for(var a=r,i=u;i<n.length;++i){if(null==a)return!1;var o=a[n[i]];if(Array.isArray(o)){for(var s=0;s<o.length;++s)if(e(t,o[s],n,i+1))return!0;return!1}a=o}return t===a}(e,t[r.length-1],r,0)};case"matches":var n=e.selectors.map(mc);return function(e,t,r){for(var u=0;u<n.length;++u)if(n[u](e,t,r))return!0;return!1};case"compound":var u=e.selectors.map(mc);return function(e,t,r){for(var n=0;n<u.length;++n)if(!u[n](e,t,r))return!1;return!0};case"not":var a=e.selectors.map(mc);return function(e,t,r){for(var n=0;n<a.length;++n)if(a[n](e,t,r))return!1;return!0};case"has":var i=e.selectors.map(mc);return function(e,t,r){var n=!1,u=[];return mo.traverse(e,{enter:function(e,t){null!=t&&u.unshift(t);for(var a=0;a<i.length;++a)if(i[a](e,u,r))return n=!0,void this.break()},leave:function(){u.shift()},keys:r&&r.visitorKeys,fallback:r&&r.fallback||"iteration"}),n};case"child":var o=mc(e.left),s=mc(e.right);return function(e,t,r){return!!(t.length>0&&s(e,t,r))&&o(t[0],t.slice(1),r)};case"descendant":var d=mc(e.left),l=mc(e.right);return function(e,t,r){if(l(e,t,r)){for(var n=0,u=t.length;n<u;++n)if(d(t[n],t.slice(n+1),r))return!0}return!1};case"attribute":var c=e.name.split(".");switch(e.operator){case void 0:return function(e){return null!=md(e,c)};case"=":switch(e.value.type){case"regexp":return function(t){var r=md(t,c);return"string"==typeof r&&e.value.value.test(r)};case"literal":var f="".concat(e.value.value);return function(e){return f==="".concat(md(e,c))};case"type":return function(t){return e.value.value===mr(md(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"!=":switch(e.value.type){case"regexp":return function(t){return!e.value.value.test(md(t,c))};case"literal":var p="".concat(e.value.value);return function(e){return p!=="".concat(md(e,c))};case"type":return function(t){return e.value.value!==mr(md(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"<=":return function(t){return md(t,c)<=e.value.value};case"<":return function(t){return md(t,c)<e.value.value};case">":return function(t){return md(t,c)>e.value.value};case">=":return function(t){return md(t,c)>=e.value.value}}throw Error("Unknown operator: ".concat(e.operator));case"sibling":var h=mc(e.left),m=mc(e.right);return function(t,r,n){return m(t,r,n)&&mm(t,h,r,"LEFT_SIDE",n)||e.left.subject&&h(t,r,n)&&mm(t,m,r,"RIGHT_SIDE",n)};case"adjacent":var g=mc(e.left),y=mc(e.right);return function(t,r,n){return y(t,r,n)&&mg(t,g,r,"LEFT_SIDE",n)||e.right.subject&&g(t,r,n)&&mg(t,y,r,"RIGHT_SIDE",n)};case"nth-child":var b=e.index.value,v=mc(e.right);return function(e,t,r){return v(e,t,r)&&my(e,t,b,r)};case"nth-last-child":var x=-e.index.value,E=mc(e.right);return function(e,t,r){return E(e,t,r)&&my(e,t,x,r)};case"class":var C=e.name.toLowerCase();return function(t,r,n){if(n&&n.matchClass)return n.matchClass(e.name,t,r);if(n&&n.nodeTypeKey)return!1;switch(C){case"statement":if("Statement"===t.type.slice(-9))return!0;case"declaration":return"Declaration"===t.type.slice(-11);case"pattern":if("Pattern"===t.type.slice(-7))return!0;case"expression":return"Expression"===t.type.slice(-10)||"Literal"===t.type.slice(-7)||"Identifier"===t.type&&(0===r.length||"MetaProperty"!==r[0].type)||"MetaProperty"===t.type;case"function":return"FunctionDeclaration"===t.type||"FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type}throw Error("Unknown class name: ".concat(e.name))}}throw Error("Unknown selector type: ".concat(e.type))}function mp(e,t){var r=t&&t.nodeTypeKey||"type",n=e[r];return t&&t.visitorKeys&&t.visitorKeys[n]?t.visitorKeys[n]:mo.VisitorKeys[n]?mo.VisitorKeys[n]:t&&"function"==typeof t.fallback?t.fallback(e):Object.keys(e).filter(function(e){return e!==r})}function mh(e,t){var r=t&&t.nodeTypeKey||"type";return null!==e&&"object"===mr(e)&&"string"==typeof e[r]}function mm(e,t,r,n,u){var a=mn(r,1)[0];if(!a)return!1;for(var i=mp(a,u),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;var l=void 0,c=void 0;"LEFT_SIDE"===n?(l=0,c=d):(l=d+1,c=s.length);for(var f=l;f<c;++f)if(mh(s[f],u)&&t(s[f],r,u))return!0}}return!1}function mg(e,t,r,n,u){var a=mn(r,1)[0];if(!a)return!1;for(var i=mp(a,u),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;if("LEFT_SIDE"===n&&d>0&&mh(s[d-1],u)&&t(s[d-1],r,u)||"RIGHT_SIDE"===n&&d<s.length-1&&mh(s[d+1],u)&&t(s[d+1],r,u))return!0}}return!1}function my(e,t,r,n){if(0===r)return!1;var u=mn(t,1)[0];if(!u)return!1;for(var a=mp(u,n),i=0;i<a.length;++i){var o=u[a[i]];if(Array.isArray(o)){var s=r<0?o.length+r:r-1;if(s>=0&&s<o.length&&o[s]===e)return!0}}return!1}function mb(e,t,r,n){if(t){var u=[],a=mc(t),i=(function e(t,r){if(null==t||"object"!=mr(t))return[];null==r&&(r=t);for(var n=t.subject?[r]:[],u=Object.keys(t),a=0;a<u.length;++a){var i,o=u[a],s=t[o];n.push.apply(n,function(e){if(Array.isArray(e))return ma(e)}(i=e(s,"left"===o?s:r))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||mu(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return n})(t).map(mc);mo.traverse(e,{enter:function(e,t){if(null!=t&&u.unshift(t),a(e,u,n)){if(i.length)for(var o=0,s=i.length;o<s;++o){i[o](e,u,n)&&r(e,t,u);for(var d=0,l=u.length;d<l;++d){var c=u.slice(d+1);i[o](u[d],c,n)&&r(u[d],t,c)}}else r(e,t,u)}},leave:function(){u.shift()},keys:n&&n.visitorKeys,fallback:n&&n.fallback||"iteration"})}}function mv(e,t,r){var n=[];return mb(e,t,function(e){n.push(e)},r),n}function mx(e){return ms.parse(e)}function mE(e,t,r){return mv(e,mx(t),r)}mE.parse=mx,mE.match=mv,mE.traverse=mb,mE.matches=function(e,t,r,n){return!t||!!e&&(r||(r=[]),mc(t)(e,r,n))},mE.query=mE;var mC=/*@__PURE__*/ef(/*#__PURE__*/Object.freeze({__proto__:null,default:mE}));const mA=e=>{let t=mt(e);if(0===t)return e;let r=RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")},mD=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},"string"!=typeof e)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if("string"!=typeof r.indent)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(0===t)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))},{replaceTemplateElement:mS}=uv,{isMethodCall:m_,isCallExpression:mw,isTaggedTemplateLiteral:mT}=tK,{isNodeMatches:mP}=nI,mk="template-indent",mF=e=>m_(e.parent,{method:"toMatchInlineSnapshot",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&e.parent.arguments[0]===e&&mw(e.parent.callee.object,{name:"expect",argumentsLength:1,optionalCall:!1,optionalMember:!1}),mI=new Map,mB=e=>(mI.has(e)||mI.set(e,mC.parse(e)),mI.get(e));var mj=/*@__PURE__*/ec({create:e=>{let{sourceCode:t}=e,r={tags:["outdent","dedent","gql","sql","html","styled"],functions:["dedent","stripIndent"],selectors:[],comments:["HTML","indent"],...e.options[0]};r.comments=r.comments.map(e=>e.toLowerCase());let n=e=>{let n;let u="__PLACEHOLDER__"+Math.random(),a=e.quasis.map(e=>t.getText(e).slice(1,e.tail?-1:-2)).join(u),i=a.match(/\r?\n/);if(!i)return;let o=i[0],s=t.lines[e.loc.start.line-1].match(/^(\s*)\S/),d=s?s[1]:"";n="string"==typeof r.indent?r.indent:"number"==typeof r.indent?" ".repeat(r.indent):d.startsWith(" ")?" ":" ";let l=mA(a).replaceAll(RegExp(`^${o}|${o}[ ]*$`,"g"),""),c=o+mD(l,1,{indent:d+n})+o+d;if(c!==a)return{node:e,messageId:mk,fix:t=>c.split(u).map((r,n)=>mS(t,e.quasis[n],r))}},u=e=>{if(r.comments.length>0){let n=t.getTokenBefore(e,{includeComments:!0});if(n?.type==="Block"&&r.comments.includes(n.value.trim().toLowerCase()))return!0}if(mF(e)||r.tags.length>0&&mT(e,r.tags)||r.functions.length>0&&"CallExpression"===e.parent.type&&e.parent.arguments.includes(e)&&mP(e.parent.callee,r.functions))return!0;if(r.selectors.length>0){let n=t.getAncestors(e).reverse();if(r.selectors.some(t=>mC.matches(e,mB(t),n)))return!0}return!1};return{TemplateLiteral(e){if(u(e))return n(e)}}},meta:{type:"suggestion",docs:{description:"Fix whitespace-insensitive template indentation.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{indent:{oneOf:[{type:"string",pattern:/^\s+$/.source},{type:"integer",minimum:1}]},tags:{type:"array",uniqueItems:!0,items:{type:"string"}},functions:{type:"array",uniqueItems:!0,items:{type:"string"}},selectors:{type:"array",uniqueItems:!0,items:{type:"string"}},comments:{type:"array",uniqueItems:!0,items:{type:"string"}}}}],messages:{[mk]:"Templates should be properly indented."}}});const{isMethodCall:mL}=tK,{removeSpacesAfter:mO}=uv,mN="no-await-in-promise-methods/error",mR="no-await-in-promise-methods/suggestion",mM=["all","allSettled","any","race"],m$=e=>mL(e,{object:"Promise",methods:mM,optionalMember:!1,optionalCall:!1,argumentsLength:1})&&"ArrayExpression"===e.arguments[0].type;var mU=/*@__PURE__*/ec({create:e=>({*CallExpression(t){if(m$(t))for(let r of t.arguments[0].elements)r?.type==="AwaitExpression"&&(yield{node:r,messageId:mN,data:{method:t.callee.property.name},suggest:[{messageId:mR,*fix(t){let{sourceCode:n}=e,u=e.sourceCode.getFirstToken(r);yield t.remove(u),yield mO(u,n,t)}}]})}}),meta:{type:"suggestion",docs:{description:"Disallow using `await` in `Promise` method parameters.",recommended:!0},hasSuggestions:!0,messages:{[mN]:"Promise in `Promise.{{method}}()` should not be awaited.",[mR]:"Remove `await`."}}});const{fixSpaceAroundKeyword:mz,addParenthesizesToReturnOrThrowExpression:mV}=uv,{needsSemicolon:mq,isParenthesized:mW,isOnSameLine:mG}=nI,mZ="no-negation-in-equality-check/error",mH="no-negation-in-equality-check/suggestion",mK=new Set(["===","!==","==","!="]),mY=e=>"BinaryExpression"===e.type&&mK.has(e.operator),mJ=e=>"UnaryExpression"===e.type&&e.prefix&&"!"===e.operator;var mX=/*@__PURE__*/ec({create:e=>({BinaryExpression(t){let{operator:r,left:n}=t;if(!(mY(t)&&mJ(n)&&!mJ(n.argument)))return;let{sourceCode:u}=e,a=u.getFirstToken(n),i=`${r.startsWith("!")?"=":"!"}${r.slice(1)}`;return{node:a,messageId:mZ,suggest:[{messageId:mH,data:{operator:i},*fix(e){yield*mz(e,t,u);let o=u.getTokenAfter(a),{parent:s}=t;"ReturnStatement"!==s.type&&"ThrowStatement"!==s.type||mW(t,u)||mG(u.getFirstToken(s),o)||(yield*mV(e,s,u)),yield e.remove(a),mq(u.getTokenBefore(a),u,o.value)&&(yield e.insertTextAfter(a,";"));let d=u.getTokenAfter(n,e=>"Punctuator"===e.type&&e.value===r);yield e.replaceText(d,i)}}]}}}),meta:{type:"problem",docs:{description:"Disallow negated expression in equality check.",recommended:!0},hasSuggestions:!0,messages:{[mZ]:"Negated expression in not allowed in equality check.",[mH]:"Switch to '{{operator}}' check."}}});const{isMethodCall:mQ,isMemberExpression:m0}=tK,{removeArgument:m1}=uv,{isSameReference:m2}=nI,m3="no-length-as-slice-end";var m4=/*@__PURE__*/ec({create:e=>{e.on("CallExpression",t=>{if(!mQ(t,{method:"slice",argumentsLength:2,optionalCall:!1}))return;let r=t.arguments[1],n="ChainExpression"===r.type?r.expression:r;if(m0(n,{property:"length",computed:!1})&&m2(t.callee.object,n.object))return{node:n,messageId:m3,fix:t=>m1(t,r,e.sourceCode)}})},meta:{type:"suggestion",docs:{description:"Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.",recommended:!0},fixable:"code",messages:{[m3]:"Passing `….length` as the `end` argument is unnecessary."}}});const{findVariable:m5}=tm,{renameVariable:m8}=uv,{isMethodCall:m6}=tK,m9="catch-error-name",m7=e=>("FunctionExpression"===e.parent.type||"ArrowFunctionExpression"===e.parent.type)&&e.parent.params[0]===e&&(m6(e.parent.parent,{method:"then",argumentsLength:2,optionalCall:!1,optionalMember:!1})||m6(e.parent.parent,{method:"catch",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&e.parent.parent.arguments.at(-1)===e.parent;var ge=/*@__PURE__*/ec({create:e=>{let t={name:"error",ignore:[],...e.options[0]},{name:r}=t,n=t.ignore.map(e=>e instanceof RegExp?e:RegExp(e,"u")),u=e=>e===r||n.some(t=>t.test(e))||e.endsWith(r)||e.endsWith(r.charAt(0).toUpperCase()+r.slice(1));return{Identifier(t){if(!("CatchClause"===t.parent.type&&t.parent.param===t)&&!m7(t))return;let n=t.name;if(u(n)||u(n.replaceAll(/_+$/g,"")))return;let a=m5(e.sourceCode.getScope(t),t);if(!a||"_"===n&&0===a.references.length)return;let i=rA(r,[a.scope,...a.references.map(({from:e})=>e)]),o={node:t,messageId:m9,data:{originalName:n,fixedName:i||r}};return i&&(o.fix=e=>m8(a,i,e)),o}}},meta:{type:"suggestion",docs:{description:"Enforce a specific parameter name in catch clauses.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{name:{type:"string"},ignore:{type:"array",uniqueItems:!0}}}],messages:{[m9]:"The catch parameter `{{originalName}}` should be named `{{fixedName}}`."}}}),gt={exports:{}};gt.exports,function(e,t){var r,n,u,a,i,o,s,d,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,h={};((e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})})(h,{camelCase:()=>tR,defaultsDeep:()=>t1,kebabCase:()=>t2,lowerFirst:()=>t3,snakeCase:()=>t4,upperFirst:()=>to}),e.exports=((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of f(t))p.call(e,u)||u===r||l(e,u,{get:()=>t[u],enumerable:!(n=c(t,u))||n.enumerable});return e})(l({},"__esModule",{value:!0}),h);var m="object"==typeof el&&el&&el.Object===Object&&el,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),b=y.Symbol,v=Object.prototype,x=v.hasOwnProperty,E=v.toString,C=b?b.toStringTag:void 0,A=function(e){var t=x.call(e,C),r=e[C];try{e[C]=void 0;var n=!0}catch(e){}var u=E.call(e);return n&&(t?e[C]=r:delete e[C]),u},D=Object.prototype.toString,S=b?b.toStringTag:void 0,_=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?A(e):D.call(e)},w=function(e){return null!=e&&"object"==typeof e},T=function(e,t){for(var r=-1,n=null==e?0:e.length,u=Array(n);++r<n;)u[r]=t(e[r],r,e);return u},P=Array.isArray,k=1/0,F=b?b.prototype:void 0,I=F?F.toString:void 0,B=function e(t){if("string"==typeof t)return t;if(P(t))return T(t,e)+"";if("symbol"==typeof t||w(t)&&"[object Symbol]"==_(t))return I?I.call(t):"";var r=t+"";return"0"==r&&1/t==-k?"-0":r},j=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},L=function(e){return e},O=function(e){if(!j(e))return!1;var t=_(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},N=y["__core-js_shared__"],R=(r=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",M=Function.prototype.toString,$=function(e){if(null!=e){try{return M.call(e)}catch(e){}try{return e+""}catch(e){}}return""},U=/^\[object .+?Constructor\]$/,z=Object.prototype,V=Function.prototype.toString,q=z.hasOwnProperty,W=RegExp("^"+V.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=function(e,t){var r,n=null==e?void 0:e[t];return j(r=n)&&(!R||!(R in r))&&(O(r)?W:U).test($(r))?n:void 0},Z=Object.create,H=function(){function e(){}return function(t){if(!j(t))return{};if(Z)return Z(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),K=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},Y=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},J=Date.now,X=function(){try{var e=G(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Q=(n=X?function(e,t){return X(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:L,u=0,a=0,function(){var e=J(),t=16-(e-a);if(a=e,t>0){if(++u>=800)return arguments[0]}else u=0;return n.apply(void 0,arguments)}),ee=/^(?:0|[1-9]\d*)$/,et=function(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&ee.test(e))&&e>-1&&e%1==0&&e<t},er=function(e,t,r){"__proto__"==t&&X?X(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},en=function(e,t){return e===t||e!=e&&t!=t},eu=Object.prototype.hasOwnProperty,ea=function(e,t,r){var n=e[t];eu.call(e,t)&&en(n,r)&&(void 0!==r||t in e)||er(e,t,r)},ei=function(e,t,r,n){var u=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var o=t[a],s=n?n(r[o],e[o],o,r,e):void 0;void 0===s&&(s=e[o]),u?er(r,o,s):ea(r,o,s)}return r},eo=Math.max,es=function(e,t){var r;return Q((r=eo(void 0===(r=t)?e.length-1:r,0),function(){for(var t=arguments,n=-1,u=eo(t.length-r,0),a=Array(u);++n<u;)a[n]=t[r+n];n=-1;for(var i=Array(r+1);++n<r;)i[n]=t[n];return i[r]=L(a),K(e,this,i)}),e+"")},ed=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff},ec=function(e){return null!=e&&ed(e.length)&&!O(e)},ef=function(e,t,r){if(!j(r))return!1;var n=typeof t;return("number"==n?!!(ec(r)&&et(t,r.length)):"string"==n&&t in r)&&en(r[t],e)},ep=Object.prototype,eh=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ep)},em=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},eg=function(e){return w(e)&&"[object Arguments]"==_(e)},ey=Object.prototype,eb=ey.hasOwnProperty,ev=ey.propertyIsEnumerable,ex=eg(function(){return arguments}())?eg:function(e){return w(e)&&eb.call(e,"callee")&&!ev.call(e,"callee")},eE=t&&!t.nodeType&&t,eC=eE&&e&&!e.nodeType&&e,eA=eC&&eC.exports===eE?y.Buffer:void 0,eD=(eA?eA.isBuffer:void 0)||function(){return!1},eS={};eS["[object Float32Array]"]=eS["[object Float64Array]"]=eS["[object Int8Array]"]=eS["[object Int16Array]"]=eS["[object Int32Array]"]=eS["[object Uint8Array]"]=eS["[object Uint8ClampedArray]"]=eS["[object Uint16Array]"]=eS["[object Uint32Array]"]=!0,eS["[object Arguments]"]=eS["[object Array]"]=eS["[object ArrayBuffer]"]=eS["[object Boolean]"]=eS["[object DataView]"]=eS["[object Date]"]=eS["[object Error]"]=eS["[object Function]"]=eS["[object Map]"]=eS["[object Number]"]=eS["[object Object]"]=eS["[object RegExp]"]=eS["[object Set]"]=eS["[object String]"]=eS["[object WeakMap]"]=!1;var e_=t&&!t.nodeType&&t,ew=e_&&e&&!e.nodeType&&e,eT=ew&&ew.exports===e_&&m.process,eP=function(){try{var e=ew&&ew.require&&ew.require("util").types;if(e)return e;return eT&&eT.binding&&eT.binding("util")}catch(e){}}(),ek=eP&&eP.isTypedArray,eF=ek?function(e){return ek(e)}:function(e){return w(e)&&ed(e.length)&&!!eS[_(e)]},eI=Object.prototype.hasOwnProperty,eB=function(e,t){var r=P(e),n=!r&&ex(e),u=!r&&!n&&eD(e),a=!r&&!n&&!u&&eF(e),i=r||n||u||a,o=i?em(e.length,String):[],s=o.length;for(var d in e)(t||eI.call(e,d))&&!(i&&("length"==d||u&&("offset"==d||"parent"==d)||a&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||et(d,s)))&&o.push(d);return o},ej=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},eL=Object.prototype.hasOwnProperty,eO=function(e){if(!j(e))return ej(e);var t=eh(e),r=[];for(var n in e)"constructor"==n&&(t||!eL.call(e,n))||r.push(n);return r},eN=function(e){return ec(e)?eB(e,!0):eO(e)},eR=G(Object,"create"),eM=Object.prototype.hasOwnProperty,e$=Object.prototype.hasOwnProperty;function eU(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eU.prototype.clear=function(){this.__data__=eR?eR(null):{},this.size=0},eU.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},eU.prototype.get=function(e){var t=this.__data__;if(eR){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return eM.call(t,e)?t[e]:void 0},eU.prototype.has=function(e){var t=this.__data__;return eR?void 0!==t[e]:e$.call(t,e)},eU.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=eR&&void 0===t?"__lodash_hash_undefined__":t,this};var ez=function(e,t){for(var r=e.length;r--;)if(en(e[r][0],t))return r;return -1},eV=Array.prototype.splice;function eq(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eq.prototype.clear=function(){this.__data__=[],this.size=0},eq.prototype.delete=function(e){var t=this.__data__,r=ez(t,e);return!(r<0)&&(r==t.length-1?t.pop():eV.call(t,r,1),--this.size,!0)},eq.prototype.get=function(e){var t=this.__data__,r=ez(t,e);return r<0?void 0:t[r][1]},eq.prototype.has=function(e){return ez(this.__data__,e)>-1},eq.prototype.set=function(e,t){var r=this.__data__,n=ez(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var eW=G(y,"Map"),eG=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},eZ=function(e,t){var r=e.__data__;return eG(t)?r["string"==typeof t?"string":"hash"]:r.map};function eH(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eH.prototype.clear=function(){this.size=0,this.__data__={hash:new eU,map:new(eW||eq),string:new eU}},eH.prototype.delete=function(e){var t=eZ(this,e).delete(e);return this.size-=t?1:0,t},eH.prototype.get=function(e){return eZ(this,e).get(e)},eH.prototype.has=function(e){return eZ(this,e).has(e)},eH.prototype.set=function(e,t){var r=eZ(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var eK=function(e){return null==e?"":B(e)},eY=(i=Object.getPrototypeOf,o=Object,function(e){return i(o(e))}),eJ=Object.prototype,eX=Function.prototype.toString,eQ=eJ.hasOwnProperty,e0=eX.call(Object),e1=function(e){if(!w(e)||"[object Object]"!=_(e))return!1;var t=eY(e);if(null===t)return!0;var r=eQ.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&eX.call(r)==e0},e2=function(e,t,r){var n=-1,u=e.length;t<0&&(t=-t>u?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(u);++n<u;)a[n]=e[n+t];return a},e3=function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:e2(e,t,r)},e4=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),e5=function(e){return e4.test(e)},e8="\ud800-\udfff",e6="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",e9="\ud83c[\udffb-\udfff]",e7="[^"+e8+"]",te="(?:\ud83c[\udde6-\uddff]){2}",tt="[\ud800-\udbff][\udc00-\udfff]",tr="(?:"+e6+"|"+e9+")?",tn="[\\ufe0e\\ufe0f]?",tu="(?:\\u200d(?:"+[e7,te,tt].join("|")+")"+tn+tr+")*",ta=RegExp(e9+"(?="+e9+")|(?:"+[e7+e6+"?",e6,te,tt,"["+e8+"]"].join("|")+")"+(tn+tr+tu),"g"),ti=function(e){return function(t){var r,n=e5(t=eK(t))?e5(r=t)?r.match(ta)||[]:r.split(""):void 0,u=n?n[0]:t.charAt(0),a=n?e3(n,1).join(""):t.slice(1);return u[e]()+a}},to=ti("toUpperCase"),ts=function(e,t,r,n){var u=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++u]);++u<a;)r=t(r,e[u],u,e);return r},td=(s={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},function(e){return null==s?void 0:s[e]}),tl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tc=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),tf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,th="\ud800-\udfff",tm="\\u2700-\\u27bf",tg="a-z\\xdf-\\xf6\\xf8-\\xff",ty="A-Z\\xc0-\\xd6\\xd8-\\xde",tb="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tv="['’]",tx="["+tb+"]",tE="["+tg+"]",tC="[^"+th+tb+"\\d+"+tm+tg+ty+"]",tA="(?:\ud83c[\udde6-\uddff]){2}",tD="[\ud800-\udbff][\udc00-\udfff]",tS="["+ty+"]",t_="(?:"+tE+"|"+tC+")",tw="(?:"+tS+"|"+tC+")",tT="(?:"+tv+"(?:d|ll|m|re|s|t|ve))?",tP="(?:"+tv+"(?:D|LL|M|RE|S|T|VE))?",tk="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",tF="[\\ufe0e\\ufe0f]?",tI="(?:\\u200d(?:"+["[^"+th+"]",tA,tD].join("|")+")"+tF+tk+")*",tB="(?:"+["["+tm+"]",tA,tD].join("|")+")"+(tF+tk+tI),tj=RegExp([tS+"?"+tE+"+"+tT+"(?="+[tx,tS,"$"].join("|")+")",tw+"+"+tP+"(?="+[tx,tS+t_,"$"].join("|")+")",tS+"?"+t_+"+"+tT,tS+"+"+tP,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",tB].join("|"),"g"),tL=function(e,t,r){if(e=eK(e),void 0===(t=r?void 0:t)){var n;return(n=e,tp.test(n))?e.match(tj)||[]:e.match(tf)||[]}return e.match(t)||[]},tO=RegExp("['’]","g"),tN=function(e){return function(t){var r;return ts(tL(((r=eK(r=t))&&r.replace(tl,td).replace(tc,"")).replace(tO,"")),e,"")}},tR=tN(function(e,t,r){return t=t.toLowerCase(),e+(r?to(eK(t).toLowerCase()):t)});function tM(e){var t=this.__data__=new eq(e);this.size=t.size}tM.prototype.clear=function(){this.__data__=new eq,this.size=0},tM.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},tM.prototype.get=function(e){return this.__data__.get(e)},tM.prototype.has=function(e){return this.__data__.has(e)},tM.prototype.set=function(e,t){var r=this.__data__;if(r instanceof eq){var n=r.__data__;if(!eW||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new eH(n)}return r.set(e,t),this.size=r.size,this};var t$=t&&!t.nodeType&&t,tU=t$&&e&&!e.nodeType&&e,tz=tU&&tU.exports===t$?y.Buffer:void 0,tV=tz?tz.allocUnsafe:void 0,tq=function(e,t){if(t)return e.slice();var r=e.length,n=tV?tV(r):new e.constructor(r);return e.copy(n),n},tW=y.Uint8Array,tG=function(e){var t=new e.constructor(e.byteLength);return new tW(t).set(new tW(e)),t},tZ=function(e,t){var r=t?tG(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},tH=function(e,t,r){for(var n=-1,u=Object(e),a=r(e),i=a.length;i--;){var o=a[++n];if(!1===t(u[o],o,u))break}return e},tK=function(e,t,r){(void 0===r||en(e[t],r))&&(void 0!==r||t in e)||er(e,t,r)},tY=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},tJ=function(e,t,r,n,u,a,i){var o=tY(e,r),s=tY(t,r),d=i.get(s);if(d){tK(e,r,d);return}var l=a?a(o,s,r+"",e,t,i):void 0,c=void 0===l;if(c){var f=P(s),p=!f&&eD(s),h=!f&&!p&&eF(s);(l=s,f||p||h)?P(o)?l=o:w(o)&&ec(o)?l=Y(o):p?(c=!1,l=tq(s,!0)):h?(c=!1,l=tZ(s,!0)):l=[]:e1(s)||ex(s)?(l=o,ex(o))?l=ei(o,eN(o)):(!j(o)||O(o))&&(l="function"!=typeof s.constructor||eh(s)?{}:H(eY(s))):c=!1}c&&(i.set(s,l),u(l,s,n,a,i),i.delete(s)),tK(e,r,l)},tX=function e(t,r,n,u,a){t!==r&&tH(r,function(i,o){if(a||(a=new tM),j(i))tJ(t,r,o,n,e,u,a);else{var s=u?u(tY(t,o),i,o+"",t,r,a):void 0;void 0===s&&(s=i),tK(t,o,s)}},eN)},tQ=function e(t,r,n,u,a,i){return j(t)&&j(r)&&(i.set(r,t),tX(t,r,void 0,e,i),i.delete(r)),t},t0=(d=function(e,t,r,n){tX(e,t,r,n)},es(function(e,t){var r=-1,n=t.length,u=n>1?t[n-1]:void 0,a=n>2?t[2]:void 0;for(u=d.length>3&&"function"==typeof u?(n--,u):void 0,a&&ef(t[0],t[1],a)&&(u=n<3?void 0:u,n=1),e=Object(e);++r<n;){var i=t[r];i&&d(e,i,r,u)}return e})),t1=es(function(e){return e.push(void 0,tQ),K(t0,void 0,e)}),t2=tN(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),t3=ti("toLowerCase"),t4=tN(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});/*! Bundled license information:
|
|
16
16
|
|
|
17
17
|
lodash-es/lodash.js:
|
|
18
18
|
(**
|
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
|
(**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-sukka",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.3",
|
|
4
4
|
"homepage": "https://github.com/SukkaW/eslint-config-sukka",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/SukkaW/eslint-config-sukka",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@typescript-eslint/type-utils": "^8.
|
|
27
|
-
"@typescript-eslint/utils": "^8.
|
|
28
|
-
"@eslint-sukka/shared": "6.4.
|
|
26
|
+
"@typescript-eslint/type-utils": "^8.5.0",
|
|
27
|
+
"@typescript-eslint/utils": "^8.5.0",
|
|
28
|
+
"@eslint-sukka/shared": "6.4.3"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@masknet/eslint-plugin": "^0.3.0",
|
|
32
32
|
"eslint-plugin-unicorn": "55.0.0",
|
|
33
|
-
"@eslint-sukka/rollup-config": "6.4.
|
|
33
|
+
"@eslint-sukka/rollup-config": "6.4.3"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"test": "vitest",
|