vzcode 1.31.0 → 1.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/dist/assets/index-DPIrco_g.js +235 -0
- package/dist/assets/index-DnunmWjy.css +1 -0
- package/dist/assets/worker-BrwN8AXx.js +330 -0
- package/dist/assets/worker-CkHcCP1n.js +136 -0
- package/dist/assets/worker-DkYJN5WQ.js +453 -0
- package/dist/index.html +2 -2
- package/package.json +48 -41
- package/src/client/App/index.tsx +3 -0
- package/src/client/CodeEditor/getOrCreateEditor.ts +98 -9
- package/src/client/CodeEditor/index.tsx +56 -24
- package/src/client/CodeEditor/typescriptExtension/worker.ts +32 -0
- package/src/client/Icons/MicSVG.tsx +1 -1
- package/src/client/VZCodeContext.tsx +18 -2
- package/src/client/VZMiddle.tsx +11 -0
- package/src/client/VZSidebar/AIChat.tsx +142 -0
- package/src/client/VZSidebar/Search.tsx +11 -0
- package/src/client/VZSidebar/index.tsx +53 -8
- package/src/client/VZSidebar/styles.scss +178 -1
- package/src/client/featureFlags.ts +2 -0
- package/src/client/useActions.ts +20 -0
- package/src/client/useESLint/index.ts +72 -0
- package/src/client/useESLint/worker.ts +113 -0
- package/src/client/useEditorCache.ts +1 -0
- package/src/client/useFileCRUD.ts +47 -0
- package/src/client/useOpenDirectories.ts +43 -12
- package/src/client/utils/fileExtension.ts +10 -0
- package/src/client/vzReducer/aiChatReducer.ts +31 -0
- package/src/client/vzReducer/createInitialState.ts +2 -0
- package/src/client/vzReducer/index.ts +20 -0
- package/src/server/featureFlags.js +2 -0
- package/dist/assets/index-D01yzCWj.js +0 -234
- package/dist/assets/index-DTtcN2MP.css +0 -1
- package/dist/assets/worker-CaP6zYz7.js +0 -335
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
(function(){"use strict";if(!Ln)var Ln=globalThis||window;function wp(a){return a&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Xt=typeof Ln<"u"?Ln:typeof self<"u"?self:typeof window<"u"?window:{};function Ap(){throw new Error("setTimeout has not been defined")}function Tp(){throw new Error("clearTimeout has not been defined")}var yr=Ap,vr=Tp;typeof Xt.setTimeout=="function"&&(yr=setTimeout),typeof Xt.clearTimeout=="function"&&(vr=clearTimeout);function kp(a){if(yr===setTimeout)return setTimeout(a,0);if((yr===Ap||!yr)&&setTimeout)return yr=setTimeout,setTimeout(a,0);try{return yr(a,0)}catch{try{return yr.call(null,a,0)}catch{return yr.call(this,a,0)}}}function y0(a){if(vr===clearTimeout)return clearTimeout(a);if((vr===Tp||!vr)&&clearTimeout)return vr=clearTimeout,clearTimeout(a);try{return vr(a)}catch{try{return vr.call(null,a)}catch{return vr.call(this,a)}}}var mr=[],_r=!1,xr,cn=-1;function v0(){!_r||!xr||(_r=!1,xr.length?mr=xr.concat(mr):cn=-1,mr.length&&Dp())}function Dp(){if(!_r){var a=kp(v0);_r=!0;for(var e=mr.length;e;){for(xr=mr,mr=[];++cn<e;)xr&&xr[cn].run();cn=-1,e=mr.length}xr=null,_r=!1,y0(a)}}function E0(a){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];mr.push(new Ip(a,e)),mr.length===1&&!_r&&kp(Dp)}function Ip(a,e){this.fun=a,this.array=e}Ip.prototype.run=function(){this.fun.apply(null,this.array)};var S0="browser",b0="browser",x0=!0,C0={},w0=[],A0="",T0={},k0={},D0={};function Cr(){}var I0=Cr,P0=Cr,F0=Cr,R0=Cr,_0=Cr,B0=Cr,L0=Cr;function O0(a){throw new Error("process.binding is not supported")}function N0(){return"/"}function M0(a){throw new Error("process.chdir is not supported")}function j0(){return 0}var Br=Xt.performance||{},U0=Br.now||Br.mozNow||Br.msNow||Br.oNow||Br.webkitNow||function(){return new Date().getTime()};function q0(a){var e=U0.call(Br)*.001,n=Math.floor(e),o=Math.floor(e%1*1e9);return a&&(n=n-a[0],o=o-a[1],o<0&&(n--,o+=1e9)),[n,o]}var V0=new Date;function $0(){var a=new Date,e=a-V0;return e/1e3}var Bt={nextTick:E0,title:S0,browser:x0,env:C0,argv:w0,version:A0,versions:T0,on:I0,addListener:P0,once:F0,off:R0,removeListener:_0,removeAllListeners:B0,emit:L0,binding:O0,cwd:N0,chdir:M0,umask:j0,hrtime:q0,platform:b0,release:k0,config:D0,uptime:$0};function Pp(a,e){for(var n=0,o=a.length-1;o>=0;o--){var t=a[o];t==="."?a.splice(o,1):t===".."?(a.splice(o,1),n++):n&&(a.splice(o,1),n--)}if(e)for(;n--;n)a.unshift("..");return a}var W0=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,On=function(a){return W0.exec(a).slice(1)};function fn(){for(var a="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var o=n>=0?arguments[n]:"/";if(typeof o!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!o)continue;a=o+"/"+a,e=o.charAt(0)==="/"}return a=Pp(jn(a.split("/"),function(t){return!!t}),!e).join("/"),(e?"/":"")+a||"."}function Nn(a){var e=Mn(a),n=z0(a,-1)==="/";return a=Pp(jn(a.split("/"),function(o){return!!o}),!e).join("/"),!a&&!e&&(a="."),a&&n&&(a+="/"),(e?"/":"")+a}function Mn(a){return a.charAt(0)==="/"}function Fp(){var a=Array.prototype.slice.call(arguments,0);return Nn(jn(a,function(e,n){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))}function Rp(a,e){a=fn(a).substr(1),e=fn(e).substr(1);function n(m){for(var i=0;i<m.length&&m[i]==="";i++);for(var f=m.length-1;f>=0&&m[f]==="";f--);return i>f?[]:m.slice(i,f-i+1)}for(var o=n(a.split("/")),t=n(e.split("/")),u=Math.min(o.length,t.length),p=u,c=0;c<u;c++)if(o[c]!==t[c]){p=c;break}for(var r=[],c=p;c<o.length;c++)r.push("..");return r=r.concat(t.slice(p)),r.join("/")}var _p="/",Bp=":";function Lp(a){var e=On(a),n=e[0],o=e[1];return!n&&!o?".":(o&&(o=o.substr(0,o.length-1)),n+o)}function Op(a,e){var n=On(a)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n}function Np(a){return On(a)[3]}var G0={extname:Np,basename:Op,dirname:Lp,sep:_p,delimiter:Bp,relative:Rp,join:Fp,isAbsolute:Mn,normalize:Nn,resolve:fn};function jn(a,e){if(a.filter)return a.filter(e);for(var n=[],o=0;o<a.length;o++)e(a[o],o,a)&&n.push(a[o]);return n}var z0="ab".substr(-1)==="b"?function(a,e,n){return a.substr(e,n)}:function(a,e,n){return e<0&&(e=a.length+e),a.substr(e,n)},H0=Object.freeze({__proto__:null,basename:Op,default:G0,delimiter:Bp,dirname:Lp,extname:Np,isAbsolute:Mn,join:Fp,normalize:Nn,relative:Rp,resolve:fn,sep:_p}),pn=wp(H0),Jt={},Un={},Mp;function jp(){return Mp||(Mp=1,function(a){(function e(n){var o,t,u,p,c,r;function m(C){var E={},T,x;for(T in C)C.hasOwnProperty(T)&&(x=C[T],typeof x=="object"&&x!==null?E[T]=m(x):E[T]=x);return E}function i(C,E){var T,x,A,k;for(x=C.length,A=0;x;)T=x>>>1,k=A+T,E(C[k])?x=T:(A=k+1,x-=T+1);return A}o={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"]},p={},c={},r={},t={Break:p,Skip:c,Remove:r};function f(C,E){this.parent=C,this.key=E}f.prototype.replace=function(E){this.parent[this.key]=E},f.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function h(C,E,T,x){this.node=C,this.path=E,this.wrap=T,this.ref=x}function s(){}s.prototype.path=function(){var E,T,x,A,k,B;function R(F,P){if(Array.isArray(P))for(x=0,A=P.length;x<A;++x)F.push(P[x]);else F.push(P)}if(!this.__current.path)return null;for(k=[],E=2,T=this.__leavelist.length;E<T;++E)B=this.__leavelist[E],R(k,B.path);return R(k,this.__current.path),k},s.prototype.type=function(){var C=this.current();return C.type||this.__current.wrap},s.prototype.parents=function(){var E,T,x;for(x=[],E=1,T=this.__leavelist.length;E<T;++E)x.push(this.__leavelist[E].node);return x},s.prototype.current=function(){return this.__current.node},s.prototype.__execute=function(E,T){var x,A;return A=void 0,x=this.__current,this.__current=T,this.__state=null,E&&(A=E.call(this,T.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=x,A},s.prototype.notify=function(E){this.__state=E},s.prototype.skip=function(){this.notify(c)},s.prototype.break=function(){this.notify(p)},s.prototype.remove=function(){this.notify(r)},s.prototype.__initialize=function(C,E){this.visitor=E,this.root=C,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,E.fallback==="iteration"?this.__fallback=Object.keys:typeof E.fallback=="function"&&(this.__fallback=E.fallback),this.__keys=u,E.keys&&(this.__keys=Object.assign(Object.create(this.__keys),E.keys))};function l(C){return C==null?!1:typeof C=="object"&&typeof C.type=="string"}function g(C,E){return(C===o.ObjectExpression||C===o.ObjectPattern)&&E==="properties"}function d(C,E){for(var T=C.length-1;T>=0;--T)if(C[T].node===E)return!0;return!1}s.prototype.traverse=function(E,T){var x,A,k,B,R,F,P,N,j,V,O,G;for(this.__initialize(E,T),G={},x=this.__worklist,A=this.__leavelist,x.push(new h(E,null,null,null)),A.push(new h(null,null,null,null));x.length;){if(k=x.pop(),k===G){if(k=A.pop(),F=this.__execute(T.leave,k),this.__state===p||F===p)return;continue}if(k.node){if(F=this.__execute(T.enter,k),this.__state===p||F===p)return;if(x.push(G),A.push(k),this.__state===c||F===c)continue;if(B=k.node,R=B.type||k.wrap,V=this.__keys[R],!V)if(this.__fallback)V=this.__fallback(B);else throw new Error("Unknown node type "+R+".");for(N=V.length;(N-=1)>=0;)if(P=V[N],O=B[P],!!O){if(Array.isArray(O)){for(j=O.length;(j-=1)>=0;)if(O[j]&&!d(A,O[j])){if(g(R,V[N]))k=new h(O[j],[P,j],"Property",null);else if(l(O[j]))k=new h(O[j],[P,j],null,null);else continue;x.push(k)}}else if(l(O)){if(d(A,O))continue;x.push(new h(O,P,null,null))}}}}},s.prototype.replace=function(E,T){var x,A,k,B,R,F,P,N,j,V,O,G,L;function K(H){var ae,re,De,Y;if(H.ref.remove()){for(re=H.ref.key,Y=H.ref.parent,ae=x.length;ae--;)if(De=x[ae],De.ref&&De.ref.parent===Y){if(De.ref.key<re)break;--De.ref.key}}}for(this.__initialize(E,T),O={},x=this.__worklist,A=this.__leavelist,G={root:E},F=new h(E,null,null,new f(G,"root")),x.push(F),A.push(F);x.length;){if(F=x.pop(),F===O){if(F=A.pop(),R=this.__execute(T.leave,F),R!==void 0&&R!==p&&R!==c&&R!==r&&F.ref.replace(R),(this.__state===r||R===r)&&K(F),this.__state===p||R===p)return G.root;continue}if(R=this.__execute(T.enter,F),R!==void 0&&R!==p&&R!==c&&R!==r&&(F.ref.replace(R),F.node=R),(this.__state===r||R===r)&&(K(F),F.node=null),this.__state===p||R===p)return G.root;if(k=F.node,!!k&&(x.push(O),A.push(F),!(this.__state===c||R===c))){if(B=k.type||F.wrap,j=this.__keys[B],!j)if(this.__fallback)j=this.__fallback(k);else throw new Error("Unknown node type "+B+".");for(P=j.length;(P-=1)>=0;)if(L=j[P],V=k[L],!!V)if(Array.isArray(V)){for(N=V.length;(N-=1)>=0;)if(V[N]){if(g(B,j[P]))F=new h(V[N],[L,N],"Property",new f(V,N));else if(l(V[N]))F=new h(V[N],[L,N],null,new f(V,N));else continue;x.push(F)}}else l(V)&&x.push(new h(V,L,null,new f(k,L)))}}return G.root};function v(C,E){var T=new s;return T.traverse(C,E)}function S(C,E){var T=new s;return T.replace(C,E)}function b(C,E){var T;return T=i(E,function(A){return A.range[0]>C.range[0]}),C.extendedRange=[C.range[0],C.range[1]],T!==E.length&&(C.extendedRange[1]=E[T].range[0]),T-=1,T>=0&&(C.extendedRange[0]=E[T].range[1]),C}function w(C,E,T){var x=[],A,k,B,R;if(!C.range)throw new Error("attachComments needs range information");if(!T.length){if(E.length){for(B=0,k=E.length;B<k;B+=1)A=m(E[B]),A.extendedRange=[0,C.range[0]],x.push(A);C.leadingComments=x}return C}for(B=0,k=E.length;B<k;B+=1)x.push(b(m(E[B]),T));return R=0,v(C,{enter:function(F){for(var P;R<x.length&&(P=x[R],!(P.extendedRange[1]>F.range[0]));)P.extendedRange[1]===F.range[0]?(F.leadingComments||(F.leadingComments=[]),F.leadingComments.push(P),x.splice(R,1)):R+=1;if(R===x.length)return t.Break;if(x[R].extendedRange[0]>F.range[1])return t.Skip}}),R=0,v(C,{leave:function(F){for(var P;R<x.length&&(P=x[R],!(F.range[1]<P.extendedRange[0]));)F.range[1]===P.extendedRange[0]?(F.trailingComments||(F.trailingComments=[]),F.trailingComments.push(P),x.splice(R,1)):R+=1;if(R===x.length)return t.Break;if(x[R].extendedRange[0]>F.range[1])return t.Skip}}),C}return n.Syntax=o,n.traverse=v,n.replace=S,n.attachComments=w,n.VisitorKeys=u,n.VisitorOption=t,n.Controller=s,n.cloneEnvironment=function(){return e({})},n})(a)}(Un)),Un}var Vr={},K0="4.3.0",X0={version:K0},Up;function J0(){return Up||(Up=1,function(){var a=jp();function e(t){return t==null?!1:typeof t=="object"&&typeof t.type=="string"}function n(t,u){return(t===a.Syntax.ObjectExpression||t===a.Syntax.ObjectPattern)&&u==="properties"}function o(t,u){u=u||{},this.__visitor=t||this,this.__childVisitorKeys=u.childVisitorKeys?Object.assign({},a.VisitorKeys,u.childVisitorKeys):a.VisitorKeys,u.fallback==="iteration"?this.__fallback=Object.keys:typeof u.fallback=="function"&&(this.__fallback=u.fallback)}o.prototype.visitChildren=function(t){var u,p,c,r,m,i,f;if(t!=null){if(u=t.type||a.Syntax.Property,p=this.__childVisitorKeys[u],!p)if(this.__fallback)p=this.__fallback(t);else throw new Error("Unknown node type "+u+".");for(c=0,r=p.length;c<r;++c)if(f=t[p[c]],f)if(Array.isArray(f))for(m=0,i=f.length;m<i;++m)f[m]&&(e(f[m])||n(u,p[c]))&&this.visit(f[m]);else e(f)&&this.visit(f)}},o.prototype.visit=function(t){var u;if(t!=null){if(u=t.type||a.Syntax.Property,this.__visitor[u]){this.__visitor[u].call(this,t);return}this.visitChildren(t)}},Vr.version=X0.version,Vr.Visitor=o,Vr.visit=function(t,u,p){var c=new o(u,p);c.visit(t)}}()),Vr}var qp;function qn(){if(qp)return Jt;qp=1,Object.defineProperty(Jt,"__esModule",{value:!0});var a=jp(),e=J0();function n(Y){return Y&&typeof Y=="object"&&"default"in Y?Y:{default:Y}}var o=n(a),t=n(e);function u(Y,I="Assertion failed."){if(!Y)throw new Error(I)}const p=1,c=2,r=p|c;class m{constructor(I,W,ue,oe,ne,he,ye){this.identifier=I,this.from=W,this.tainted=!1,this.resolved=null,this.flag=ue,this.isWrite()&&(this.writeExpr=oe,this.partial=he,this.init=ye),this.__maybeImplicitGlobal=ne}isStatic(){return!this.tainted&&this.resolved&&this.resolved.scope.isStatic()}isWrite(){return!!(this.flag&m.WRITE)}isRead(){return!!(this.flag&m.READ)}isReadOnly(){return this.flag===m.READ}isWriteOnly(){return this.flag===m.WRITE}isReadWrite(){return this.flag===m.RW}}m.READ=p,m.WRITE=c,m.RW=r;class i{constructor(I,W){this.name=I,this.identifiers=[],this.references=[],this.defs=[],this.tainted=!1,this.stack=!0,this.scope=W}}i.CatchClause="CatchClause",i.Parameter="Parameter",i.FunctionName="FunctionName",i.ClassName="ClassName",i.Variable="Variable",i.ImportBinding="ImportBinding",i.ImplicitGlobalVariable="ImplicitGlobalVariable";class f{constructor(I,W,ue,oe,ne,he){this.type=I,this.name=W,this.node=ue,this.parent=oe,this.index=ne,this.kind=he}}class h extends f{constructor(I,W,ue,oe){super(i.Parameter,I,W,null,ue,null),this.rest=oe}}const{Syntax:s}=o.default;function l(Y,I,W){let ue;if(Y.upper&&Y.upper.isStrict||W||Y.type==="class"||Y.type==="module")return!0;if(Y.type==="block"||Y.type==="switch")return!1;if(Y.type==="function"){if(I.type===s.ArrowFunctionExpression&&I.body.type!==s.BlockStatement||(I.type===s.Program?ue=I:ue=I.body,!ue))return!1}else if(Y.type==="global")ue=I;else return!1;for(let oe=0,ne=ue.body.length;oe<ne;++oe){const he=ue.body[oe];if(typeof he.directive!="string")break;if(he.directive==="use strict")return!0}return!1}function g(Y,I){Y.scopes.push(I);const W=Y.__nodeToScope.get(I.block);W?W.push(I):Y.__nodeToScope.set(I.block,[I])}function d(Y){return Y.type===i.ClassName||Y.type===i.Variable&&Y.parent.kind!=="var"}class v{constructor(I,W,ue,oe,ne){this.type=W,this.set=new Map,this.taints=new Map,this.dynamic=this.type==="global"||this.type==="with",this.block=oe,this.through=[],this.variables=[],this.references=[],this.variableScope=this.type==="global"||this.type==="module"||this.type==="function"||this.type==="class-field-initializer"||this.type==="class-static-block"?this:ue.variableScope,this.functionExpressionScope=!1,this.directCallToEvalScope=!1,this.thisFound=!1,this.__left=[],this.upper=ue,this.isStrict=I.isStrictModeSupported()?l(this,oe,ne):!1,this.childScopes=[],this.upper&&this.upper.childScopes.push(this),this.__declaredVariables=I.__declaredVariables,g(I,this)}__shouldStaticallyClose(I){return!this.dynamic||I.__isOptimistic()}__shouldStaticallyCloseForGlobal(I){const W=I.identifier.name;if(!this.set.has(W))return!1;const oe=this.set.get(W).defs;return oe.length>0&&oe.every(d)}__staticCloseRef(I){this.__resolve(I)||this.__delegateToUpperScope(I)}__dynamicCloseRef(I){let W=this;do W.through.push(I),W=W.upper;while(W)}__globalCloseRef(I){this.__shouldStaticallyCloseForGlobal(I)?this.__staticCloseRef(I):this.__dynamicCloseRef(I)}__close(I){let W;this.__shouldStaticallyClose(I)?W=this.__staticCloseRef:this.type!=="global"?W=this.__dynamicCloseRef:W=this.__globalCloseRef;for(let ue=0,oe=this.__left.length;ue<oe;++ue){const ne=this.__left[ue];W.call(this,ne)}return this.__left=null,this.upper}__isValidResolution(I,W){return!0}__resolve(I){const W=I.identifier.name;if(!this.set.has(W))return!1;const ue=this.set.get(W);return this.__isValidResolution(I,ue)?(ue.references.push(I),ue.stack=ue.stack&&I.from.variableScope===this.variableScope,I.tainted&&(ue.tainted=!0,this.taints.set(ue.name,!0)),I.resolved=ue,!0):!1}__delegateToUpperScope(I){this.upper&&this.upper.__left.push(I),this.through.push(I)}__addDeclaredVariablesOfNode(I,W){if(W==null)return;let ue=this.__declaredVariables.get(W);ue==null&&(ue=[],this.__declaredVariables.set(W,ue)),ue.includes(I)||ue.push(I)}__defineGeneric(I,W,ue,oe,ne){let he;he=W.get(I),he||(he=new i(I,this),W.set(I,he),ue.push(he)),ne&&(he.defs.push(ne),this.__addDeclaredVariablesOfNode(he,ne.node),this.__addDeclaredVariablesOfNode(he,ne.parent)),oe&&he.identifiers.push(oe)}__define(I,W){I&&I.type===s.Identifier&&this.__defineGeneric(I.name,this.set,this.variables,I,W)}__referencing(I,W,ue,oe,ne,he){if(!I||I.type!==s.Identifier&&I.type!=="JSXIdentifier"||I.name==="super")return;const ye=new m(I,this,W||m.READ,ue,oe,!!ne,!!he);this.references.push(ye),this.__left.push(ye)}__detectEval(){let I=this;this.directCallToEvalScope=!0;do I.dynamic=!0,I=I.upper;while(I)}__detectThis(){this.thisFound=!0}__isClosed(){return this.__left===null}resolve(I){let W,ue,oe;for(u(this.__isClosed(),"Scope should be closed."),u(I.type===s.Identifier,"Target should be identifier."),ue=0,oe=this.references.length;ue<oe;++ue)if(W=this.references[ue],W.identifier===I)return W;return null}isStatic(){return!this.dynamic}isArgumentsMaterialized(){return!0}isThisMaterialized(){return!0}isUsedName(I){if(this.set.has(I))return!0;for(let W=0,ue=this.through.length;W<ue;++W)if(this.through[W].identifier.name===I)return!0;return!1}}class S extends v{constructor(I,W){super(I,"global",null,W,!1),this.implicit={set:new Map,variables:[],left:[]}}__close(I){const W=[];for(let ue=0,oe=this.__left.length;ue<oe;++ue){const ne=this.__left[ue];ne.__maybeImplicitGlobal&&!this.set.has(ne.identifier.name)&&W.push(ne.__maybeImplicitGlobal)}for(let ue=0,oe=W.length;ue<oe;++ue){const ne=W[ue];this.__defineImplicit(ne.pattern,new f(i.ImplicitGlobalVariable,ne.pattern,ne.node,null,null,null))}return this.implicit.left=this.__left,super.__close(I)}__defineImplicit(I,W){I&&I.type===s.Identifier&&this.__defineGeneric(I.name,this.implicit.set,this.implicit.variables,I,W)}}class b extends v{constructor(I,W,ue){super(I,"module",W,ue,!1)}}class w extends v{constructor(I,W,ue){super(I,"function-expression-name",W,ue,!1),this.__define(ue.id,new f(i.FunctionName,ue.id,ue,null,null,null)),this.functionExpressionScope=!0}}class C extends v{constructor(I,W,ue){super(I,"catch",W,ue,!1)}}class E extends v{constructor(I,W,ue){super(I,"with",W,ue,!1)}__close(I){if(this.__shouldStaticallyClose(I))return super.__close(I);for(let W=0,ue=this.__left.length;W<ue;++W){const oe=this.__left[W];oe.tainted=!0,this.__delegateToUpperScope(oe)}return this.__left=null,this.upper}}class T extends v{constructor(I,W,ue){super(I,"block",W,ue,!1)}}class x extends v{constructor(I,W,ue){super(I,"switch",W,ue,!1)}}class A extends v{constructor(I,W,ue,oe){super(I,"function",W,ue,oe),this.block.type!==s.ArrowFunctionExpression&&this.__defineArguments()}isArgumentsMaterialized(){if(this.block.type===s.ArrowFunctionExpression)return!1;if(!this.isStatic())return!0;const I=this.set.get("arguments");return u(I,"Always have arguments variable."),I.tainted||I.references.length!==0}isThisMaterialized(){return this.isStatic()?this.thisFound:!0}__defineArguments(){this.__defineGeneric("arguments",this.set,this.variables,null,null),this.taints.set("arguments",!0)}__isValidResolution(I,W){if(this.block.type==="Program")return!0;const ue=this.block.body.range[0];return!(W.scope===this&&I.identifier.range[0]<ue&&W.defs.every(oe=>oe.name.range[0]>=ue))}}class k extends v{constructor(I,W,ue){super(I,"for",W,ue,!1)}}class B extends v{constructor(I,W,ue){super(I,"class",W,ue,!1)}}class R extends v{constructor(I,W,ue){super(I,"class-field-initializer",W,ue,!0)}}class F extends v{constructor(I,W,ue){super(I,"class-static-block",W,ue,!0)}}class P{constructor(I){this.scopes=[],this.globalScope=null,this.__nodeToScope=new WeakMap,this.__currentScope=null,this.__options=I,this.__declaredVariables=new WeakMap}__isOptimistic(){return this.__options.optimistic}__ignoreEval(){return this.__options.ignoreEval}__isJSXEnabled(){return this.__options.jsx===!0}isGlobalReturn(){return this.__options.nodejsScope||this.__options.sourceType==="commonjs"}isModule(){return this.__options.sourceType==="module"}isImpliedStrict(){return this.__options.impliedStrict}isStrictModeSupported(){return this.__options.ecmaVersion>=5}__get(I){return this.__nodeToScope.get(I)}getDeclaredVariables(I){return this.__declaredVariables.get(I)||[]}acquire(I,W){function ue(ne){return!(ne.type==="function"&&ne.functionExpressionScope)}const oe=this.__get(I);if(!oe||oe.length===0)return null;if(oe.length===1)return oe[0];if(W)for(let ne=oe.length-1;ne>=0;--ne){const he=oe[ne];if(ue(he))return he}else for(let ne=0,he=oe.length;ne<he;++ne){const ye=oe[ne];if(ue(ye))return ye}return null}acquireAll(I){return this.__get(I)}release(I,W){const ue=this.__get(I);if(ue&&ue.length){const oe=ue[0].upper;return oe?this.acquire(oe.block,W):null}return null}attach(){}detach(){}__nestScope(I){return I instanceof S&&(u(this.__currentScope===null),this.globalScope=I),this.__currentScope=I,I}__nestGlobalScope(I){return this.__nestScope(new S(this,I))}__nestBlockScope(I){return this.__nestScope(new T(this,this.__currentScope,I))}__nestFunctionScope(I,W){return this.__nestScope(new A(this,this.__currentScope,I,W))}__nestForScope(I){return this.__nestScope(new k(this,this.__currentScope,I))}__nestCatchScope(I){return this.__nestScope(new C(this,this.__currentScope,I))}__nestWithScope(I){return this.__nestScope(new E(this,this.__currentScope,I))}__nestClassScope(I){return this.__nestScope(new B(this,this.__currentScope,I))}__nestClassFieldInitializerScope(I){return this.__nestScope(new R(this,this.__currentScope,I))}__nestClassStaticBlockScope(I){return this.__nestScope(new F(this,this.__currentScope,I))}__nestSwitchScope(I){return this.__nestScope(new x(this,this.__currentScope,I))}__nestModuleScope(I){return this.__nestScope(new b(this,this.__currentScope,I))}__nestFunctionExpressionNameScope(I){return this.__nestScope(new w(this,this.__currentScope,I))}__isES6(){return this.__options.ecmaVersion>=6}}const{Syntax:N}=o.default;function j(Y){return Y.at(-1)||null}class V extends t.default.Visitor{static isPattern(I){const W=I.type;return W===N.Identifier||W===N.ObjectPattern||W===N.ArrayPattern||W===N.SpreadElement||W===N.RestElement||W===N.AssignmentPattern}constructor(I,W,ue){super(null,I),this.rootPattern=W,this.callback=ue,this.assignments=[],this.rightHandNodes=[],this.restElements=[]}Identifier(I){const W=j(this.restElements);this.callback(I,{topLevel:I===this.rootPattern,rest:W!=null&&W.argument===I,assignments:this.assignments})}Property(I){I.computed&&this.rightHandNodes.push(I.key),this.visit(I.value)}ArrayPattern(I){for(let W=0,ue=I.elements.length;W<ue;++W){const oe=I.elements[W];this.visit(oe)}}AssignmentPattern(I){this.assignments.push(I),this.visit(I.left),this.rightHandNodes.push(I.right),this.assignments.pop()}RestElement(I){this.restElements.push(I),this.visit(I.argument),this.restElements.pop()}MemberExpression(I){I.computed&&this.rightHandNodes.push(I.property),this.rightHandNodes.push(I.object)}SpreadElement(I){this.visit(I.argument)}ArrayExpression(I){I.elements.forEach(this.visit,this)}AssignmentExpression(I){this.assignments.push(I),this.visit(I.left),this.rightHandNodes.push(I.right),this.assignments.pop()}CallExpression(I){I.arguments.forEach(W=>{this.rightHandNodes.push(W)}),this.visit(I.callee)}}const{Syntax:O}=o.default;function G(Y,I,W,ue){const oe=new V(Y,I,ue);oe.visit(I),W!=null&&oe.rightHandNodes.forEach(W.visit,W)}class L extends t.default.Visitor{constructor(I,W){super(null,W.options),this.declaration=I,this.referencer=W}visitImport(I,W){this.referencer.visitPattern(I,ue=>{this.referencer.currentScope().__define(ue,new f(i.ImportBinding,ue,W,this.declaration,null,null))})}ImportNamespaceSpecifier(I){const W=I.local||I.id;W&&this.visitImport(W,I)}ImportDefaultSpecifier(I){const W=I.local||I.id;this.visitImport(W,I)}ImportSpecifier(I){const W=I.local||I.id;I.name?this.visitImport(I.name,I):this.visitImport(W,I)}}class K extends t.default.Visitor{constructor(I,W){super(null,I),this.options=I,this.scopeManager=W,this.parent=null,this.isInnerMethodDefinition=!1}currentScope(){return this.scopeManager.__currentScope}close(I){for(;this.currentScope()&&I===this.currentScope().block;)this.scopeManager.__currentScope=this.currentScope().__close(this.scopeManager)}pushInnerMethodDefinition(I){const W=this.isInnerMethodDefinition;return this.isInnerMethodDefinition=I,W}popInnerMethodDefinition(I){this.isInnerMethodDefinition=I}referencingDefaultValue(I,W,ue,oe){const ne=this.currentScope();W.forEach(he=>{ne.__referencing(I,m.WRITE,he.right,ue,I!==he.left,oe)})}visitPattern(I,W,ue){let oe=W,ne=ue;typeof W=="function"&&(ne=W,oe={processRightHandNodes:!1}),G(this.options,I,oe.processRightHandNodes?this:null,ne)}visitFunction(I){let W,ue;I.type===O.FunctionDeclaration&&this.currentScope().__define(I.id,new f(i.FunctionName,I.id,I,null,null,null)),I.type===O.FunctionExpression&&I.id&&this.scopeManager.__nestFunctionExpressionNameScope(I),this.scopeManager.__nestFunctionScope(I,this.isInnerMethodDefinition);const oe=this;function ne(he,ye){oe.currentScope().__define(he,new h(he,I,W,ye.rest)),oe.referencingDefaultValue(he,ye.assignments,null,!0)}for(W=0,ue=I.params.length;W<ue;++W)this.visitPattern(I.params[W],{processRightHandNodes:!0},ne);I.rest&&this.visitPattern({type:"RestElement",argument:I.rest},he=>{this.currentScope().__define(he,new h(he,I,I.params.length,!0))}),I.body&&(I.body.type===O.BlockStatement?this.visitChildren(I.body):this.visit(I.body)),this.close(I)}visitClass(I){I.type===O.ClassDeclaration&&this.currentScope().__define(I.id,new f(i.ClassName,I.id,I,null,null,null)),this.scopeManager.__nestClassScope(I),I.id&&this.currentScope().__define(I.id,new f(i.ClassName,I.id,I)),this.visit(I.superClass),this.visit(I.body),this.close(I)}visitProperty(I){let W;I.computed&&this.visit(I.key);const ue=I.type===O.MethodDefinition;ue&&(W=this.pushInnerMethodDefinition(!0)),this.visit(I.value),ue&&this.popInnerMethodDefinition(W)}visitForIn(I){I.left.type===O.VariableDeclaration&&I.left.kind!=="var"&&this.scopeManager.__nestForScope(I),I.left.type===O.VariableDeclaration?(this.visit(I.left),this.visitPattern(I.left.declarations[0].id,W=>{this.currentScope().__referencing(W,m.WRITE,I.right,null,!0,!0)})):this.visitPattern(I.left,{processRightHandNodes:!0},(W,ue)=>{let oe=null;this.currentScope().isStrict||(oe={pattern:W,node:I}),this.referencingDefaultValue(W,ue.assignments,oe,!1),this.currentScope().__referencing(W,m.WRITE,I.right,oe,!0,!1)}),this.visit(I.right),this.visit(I.body),this.close(I)}visitVariableDeclaration(I,W,ue,oe){const ne=ue.declarations[oe],he=ne.init;this.visitPattern(ne.id,{processRightHandNodes:!0},(ye,ge)=>{I.__define(ye,new f(W,ye,ne,ue,oe,ue.kind)),this.referencingDefaultValue(ye,ge.assignments,null,!0),he&&this.currentScope().__referencing(ye,m.WRITE,he,null,!ge.topLevel,!0)})}AssignmentExpression(I){V.isPattern(I.left)?I.operator==="="?this.visitPattern(I.left,{processRightHandNodes:!0},(W,ue)=>{let oe=null;this.currentScope().isStrict||(oe={pattern:W,node:I}),this.referencingDefaultValue(W,ue.assignments,oe,!1),this.currentScope().__referencing(W,m.WRITE,I.right,oe,!ue.topLevel,!1)}):this.currentScope().__referencing(I.left,m.RW,I.right):this.visit(I.left),this.visit(I.right)}CatchClause(I){this.scopeManager.__nestCatchScope(I),this.visitPattern(I.param,{processRightHandNodes:!0},(W,ue)=>{this.currentScope().__define(W,new f(i.CatchClause,W,I,null,null,null)),this.referencingDefaultValue(W,ue.assignments,null,!0)}),this.visit(I.body),this.close(I)}Program(I){this.scopeManager.__nestGlobalScope(I),this.scopeManager.isGlobalReturn()&&(this.currentScope().isStrict=!1,this.scopeManager.__nestFunctionScope(I,!1)),this.scopeManager.__isES6()&&this.scopeManager.isModule()&&this.scopeManager.__nestModuleScope(I),this.scopeManager.isStrictModeSupported()&&this.scopeManager.isImpliedStrict()&&(this.currentScope().isStrict=!0),this.visitChildren(I),this.close(I)}Identifier(I){this.currentScope().__referencing(I)}PrivateIdentifier(){}UpdateExpression(I){V.isPattern(I.argument)?this.currentScope().__referencing(I.argument,m.RW,null):this.visitChildren(I)}MemberExpression(I){this.visit(I.object),I.computed&&this.visit(I.property)}Property(I){this.visitProperty(I)}PropertyDefinition(I){const{computed:W,key:ue,value:oe}=I;W&&this.visit(ue),oe&&(this.scopeManager.__nestClassFieldInitializerScope(oe),this.visit(oe),this.close(oe))}StaticBlock(I){this.scopeManager.__nestClassStaticBlockScope(I),this.visitChildren(I),this.close(I)}MethodDefinition(I){this.visitProperty(I)}BreakStatement(){}ContinueStatement(){}LabeledStatement(I){this.visit(I.body)}ForStatement(I){I.init&&I.init.type===O.VariableDeclaration&&I.init.kind!=="var"&&this.scopeManager.__nestForScope(I),this.visitChildren(I),this.close(I)}ClassExpression(I){this.visitClass(I)}ClassDeclaration(I){this.visitClass(I)}CallExpression(I){!this.scopeManager.__ignoreEval()&&I.callee.type===O.Identifier&&I.callee.name==="eval"&&this.currentScope().variableScope.__detectEval(),this.visitChildren(I)}BlockStatement(I){this.scopeManager.__isES6()&&this.scopeManager.__nestBlockScope(I),this.visitChildren(I),this.close(I)}ThisExpression(){this.currentScope().variableScope.__detectThis()}WithStatement(I){this.visit(I.object),this.scopeManager.__nestWithScope(I),this.visit(I.body),this.close(I)}VariableDeclaration(I){const W=I.kind==="var"?this.currentScope().variableScope:this.currentScope();for(let ue=0,oe=I.declarations.length;ue<oe;++ue){const ne=I.declarations[ue];this.visitVariableDeclaration(W,i.Variable,I,ue),ne.init&&this.visit(ne.init)}}SwitchStatement(I){this.visit(I.discriminant),this.scopeManager.__isES6()&&this.scopeManager.__nestSwitchScope(I);for(let W=0,ue=I.cases.length;W<ue;++W)this.visit(I.cases[W]);this.close(I)}FunctionDeclaration(I){this.visitFunction(I)}FunctionExpression(I){this.visitFunction(I)}ForOfStatement(I){this.visitForIn(I)}ForInStatement(I){this.visitForIn(I)}ArrowFunctionExpression(I){this.visitFunction(I)}ImportDeclaration(I){u(this.scopeManager.__isES6()&&this.scopeManager.isModule(),"ImportDeclaration should appear when the mode is ES6 and in the module context."),new L(I,this).visit(I)}visitExportDeclaration(I){if(!I.source){if(I.declaration){this.visit(I.declaration);return}this.visitChildren(I)}}ExportDeclaration(I){this.visitExportDeclaration(I)}ExportAllDeclaration(I){this.visitExportDeclaration(I)}ExportDefaultDeclaration(I){this.visitExportDeclaration(I)}ExportNamedDeclaration(I){this.visitExportDeclaration(I)}ExportSpecifier(I){const W=I.id||I.local;this.visit(W)}MetaProperty(){}JSXIdentifier(I){this.scopeManager.__isJSXEnabled()&&I.name!=="this"&&this.currentScope().__referencing(I)}JSXMemberExpression(I){this.visit(I.object)}JSXElement(I){this.scopeManager.__isJSXEnabled()?(this.visit(I.openingElement),I.children.forEach(this.visit,this)):this.visitChildren(I)}JSXOpeningElement(I){if(this.scopeManager.__isJSXEnabled()){const W=I.name;(W.type==="JSXIdentifier"&&W.name[0].toUpperCase()===W.name[0]||W.type==="JSXMemberExpression")&&this.visit(W)}I.attributes.forEach(this.visit,this)}JSXAttribute(I){I.value&&this.visit(I.value)}JSXExpressionContainer(I){this.visit(I.expression)}JSXNamespacedName(I){this.visit(I.namespace),this.visit(I.name)}}const H="8.4.0";function ae(){return{optimistic:!1,nodejsScope:!1,impliedStrict:!1,sourceType:"script",ecmaVersion:5,childVisitorKeys:null,fallback:"iteration"}}function re(Y,I){function W(ue){return typeof ue=="object"&&ue instanceof Object&&!(ue instanceof Array)&&!(ue instanceof RegExp)}for(const ue in I)if(Object.hasOwn(I,ue)){const oe=I[ue];W(oe)?W(Y[ue])?re(Y[ue],oe):Y[ue]=re({},oe):Y[ue]=oe}return Y}function De(Y,I){const W=re(ae(),I),ue=new P(W);return new K(W,ue).visit(Y),u(ue.__currentScope===null,"currentScope should be null."),ue}return Jt.Definition=f,Jt.PatternVisitor=V,Jt.Reference=m,Jt.Referencer=K,Jt.Scope=v,Jt.ScopeManager=P,Jt.Variable=i,Jt.analyze=De,Jt.version=H,Jt}var $r={},Vp;function Wr(){if(Vp)return $r;Vp=1;const a={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source","attributes"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportAttribute:["key","value"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportExpression:["source","options"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},e=Object.keys(a);for(const p of e)Object.freeze(a[p]);Object.freeze(a);const n=new Set(["parent","leadingComments","trailingComments"]);function o(p){return!n.has(p)&&p[0]!=="_"}function t(p){return Object.keys(p).filter(o)}function u(p){const c=Object.assign({},a);for(const r of Object.keys(p))if(Object.hasOwn(c,r)){const m=new Set(p[r]);for(const i of c[r])m.add(i);c[r]=Object.freeze(Array.from(m))}else c[r]=Object.freeze(Array.from(p[r]));return Object.freeze(c)}return $r.KEYS=a,$r.getKeys=t,$r.unionWith=u,$r}var er={},mn={exports:{}},$p;function Vn(){return $p||($p=1,function(a,e){(function(n,o){o(e)})(this,function(n){var o=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],t=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],u="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",p="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",c={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},r="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",m={5:r,"5module":r+" export import",6:r+" const class extends export import super"},i=/^in(stanceof)?$/,f=new RegExp("["+p+"]"),h=new RegExp("["+p+u+"]");function s(y,D){for(var q=65536,X=0;X<D.length;X+=2){if(q+=D[X],q>y)return!1;if(q+=D[X+1],q>=y)return!0}return!1}function l(y,D){return y<65?y===36:y<91?!0:y<97?y===95:y<123?!0:y<=65535?y>=170&&f.test(String.fromCharCode(y)):D===!1?!1:s(y,t)}function g(y,D){return y<48?y===36:y<58?!0:y<65?!1:y<91?!0:y<97?y===95:y<123?!0:y<=65535?y>=170&&h.test(String.fromCharCode(y)):D===!1?!1:s(y,t)||s(y,o)}var d=function(D,q){q===void 0&&(q={}),this.label=D,this.keyword=q.keyword,this.beforeExpr=!!q.beforeExpr,this.startsExpr=!!q.startsExpr,this.isLoop=!!q.isLoop,this.isAssign=!!q.isAssign,this.prefix=!!q.prefix,this.postfix=!!q.postfix,this.binop=q.binop||null,this.updateContext=null};function v(y,D){return new d(y,{beforeExpr:!0,binop:D})}var S={beforeExpr:!0},b={startsExpr:!0},w={};function C(y,D){return D===void 0&&(D={}),D.keyword=y,w[y]=new d(y,D)}var E={num:new d("num",b),regexp:new d("regexp",b),string:new d("string",b),name:new d("name",b),privateId:new d("privateId",b),eof:new d("eof"),bracketL:new d("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new d("]"),braceL:new d("{",{beforeExpr:!0,startsExpr:!0}),braceR:new d("}"),parenL:new d("(",{beforeExpr:!0,startsExpr:!0}),parenR:new d(")"),comma:new d(",",S),semi:new d(";",S),colon:new d(":",S),dot:new d("."),question:new d("?",S),questionDot:new d("?."),arrow:new d("=>",S),template:new d("template"),invalidTemplate:new d("invalidTemplate"),ellipsis:new d("...",S),backQuote:new d("`",b),dollarBraceL:new d("${",{beforeExpr:!0,startsExpr:!0}),eq:new d("=",{beforeExpr:!0,isAssign:!0}),assign:new d("_=",{beforeExpr:!0,isAssign:!0}),incDec:new d("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new d("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:v("||",1),logicalAND:v("&&",2),bitwiseOR:v("|",3),bitwiseXOR:v("^",4),bitwiseAND:v("&",5),equality:v("==/!=/===/!==",6),relational:v("</>/<=/>=",7),bitShift:v("<</>>/>>>",8),plusMin:new d("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:v("%",10),star:v("*",10),slash:v("/",10),starstar:new d("**",{beforeExpr:!0}),coalesce:v("??",1),_break:C("break"),_case:C("case",S),_catch:C("catch"),_continue:C("continue"),_debugger:C("debugger"),_default:C("default",S),_do:C("do",{isLoop:!0,beforeExpr:!0}),_else:C("else",S),_finally:C("finally"),_for:C("for",{isLoop:!0}),_function:C("function",b),_if:C("if"),_return:C("return",S),_switch:C("switch"),_throw:C("throw",S),_try:C("try"),_var:C("var"),_const:C("const"),_while:C("while",{isLoop:!0}),_with:C("with"),_new:C("new",{beforeExpr:!0,startsExpr:!0}),_this:C("this",b),_super:C("super",b),_class:C("class",b),_extends:C("extends",S),_export:C("export"),_import:C("import",b),_null:C("null",b),_true:C("true",b),_false:C("false",b),_in:C("in",{beforeExpr:!0,binop:7}),_instanceof:C("instanceof",{beforeExpr:!0,binop:7}),_typeof:C("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:C("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:C("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},T=/\r\n?|\n|\u2028|\u2029/,x=new RegExp(T.source,"g");function A(y){return y===10||y===13||y===8232||y===8233}function k(y,D,q){q===void 0&&(q=y.length);for(var X=D;X<q;X++){var de=y.charCodeAt(X);if(A(de))return X<q-1&&de===13&&y.charCodeAt(X+1)===10?X+2:X+1}return-1}var B=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,R=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,F=Object.prototype,P=F.hasOwnProperty,N=F.toString,j=Object.hasOwn||function(y,D){return P.call(y,D)},V=Array.isArray||function(y){return N.call(y)==="[object Array]"},O=Object.create(null);function G(y){return O[y]||(O[y]=new RegExp("^(?:"+y.replace(/ /g,"|")+")$"))}function L(y){return y<=65535?String.fromCharCode(y):(y-=65536,String.fromCharCode((y>>10)+55296,(y&1023)+56320))}var K=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,H=function(D,q){this.line=D,this.column=q};H.prototype.offset=function(D){return new H(this.line,this.column+D)};var ae=function(D,q,X){this.start=q,this.end=X,D.sourceFile!==null&&(this.source=D.sourceFile)};function re(y,D){for(var q=1,X=0;;){var de=k(y,X,D);if(de<0)return new H(q,D-X);++q,X=de}}var De={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Y=!1;function I(y){var D={};for(var q in De)D[q]=y&&j(y,q)?y[q]:De[q];if(D.ecmaVersion==="latest"?D.ecmaVersion=1e8:D.ecmaVersion==null?(!Y&&typeof console=="object"&&console.warn&&(Y=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
2
|
+
Defaulting to 2020, but this will stop working in the future.`)),D.ecmaVersion=11):D.ecmaVersion>=2015&&(D.ecmaVersion-=2009),D.allowReserved==null&&(D.allowReserved=D.ecmaVersion<5),(!y||y.allowHashBang==null)&&(D.allowHashBang=D.ecmaVersion>=14),V(D.onToken)){var X=D.onToken;D.onToken=function(de){return X.push(de)}}return V(D.onComment)&&(D.onComment=W(D,D.onComment)),D}function W(y,D){return function(q,X,de,qe,We,at){var lt={type:q?"Block":"Line",value:X,start:de,end:qe};y.locations&&(lt.loc=new ae(this,We,at)),y.ranges&&(lt.range=[de,qe]),D.push(lt)}}var ue=1,oe=2,ne=4,he=8,ye=16,ge=32,Ce=64,z=128,Q=256,Re=512,$=ue|oe|Q;function ie(y,D){return oe|(y?ne:0)|(D?he:0)}var Te=0,Ne=1,Le=2,U=3,Qe=4,ct=5,st=function(D,q,X){this.options=D=I(D),this.sourceFile=D.sourceFile,this.keywords=G(m[D.ecmaVersion>=6?6:D.sourceType==="module"?"5module":5]);var de="";D.allowReserved!==!0&&(de=c[D.ecmaVersion>=6?6:D.ecmaVersion===5?5:3],D.sourceType==="module"&&(de+=" await")),this.reservedWords=G(de);var qe=(de?de+" ":"")+c.strict;this.reservedWordsStrict=G(qe),this.reservedWordsStrictBind=G(qe+" "+c.strictBind),this.input=String(q),this.containsEsc=!1,X?(this.pos=X,this.lineStart=this.input.lastIndexOf(`
|
|
3
|
+
`,X-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(T).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=E.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=D.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&D.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(ue),this.regexpState=null,this.privateNameStack=[]},Ke={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};st.prototype.parse=function(){var D=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(D)},Ke.inFunction.get=function(){return(this.currentVarScope().flags&oe)>0},Ke.inGenerator.get=function(){return(this.currentVarScope().flags&he)>0},Ke.inAsync.get=function(){return(this.currentVarScope().flags&ne)>0},Ke.canAwait.get=function(){for(var y=this.scopeStack.length-1;y>=0;y--){var D=this.scopeStack[y],q=D.flags;if(q&(Q|Re))return!1;if(q&oe)return(q&ne)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Ke.allowSuper.get=function(){var y=this.currentThisScope(),D=y.flags;return(D&Ce)>0||this.options.allowSuperOutsideMethod},Ke.allowDirectSuper.get=function(){return(this.currentThisScope().flags&z)>0},Ke.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ke.allowNewDotTarget.get=function(){for(var y=this.scopeStack.length-1;y>=0;y--){var D=this.scopeStack[y],q=D.flags;if(q&(Q|Re)||q&oe&&!(q&ye))return!0}return!1},Ke.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Q)>0},st.extend=function(){for(var D=[],q=arguments.length;q--;)D[q]=arguments[q];for(var X=this,de=0;de<D.length;de++)X=D[de](X);return X},st.parse=function(D,q){return new this(q,D).parse()},st.parseExpressionAt=function(D,q,X){var de=new this(X,D,q);return de.nextToken(),de.parseExpression()},st.tokenizer=function(D,q){return new this(q,D)},Object.defineProperties(st.prototype,Ke);var Je=st.prototype,ht=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Je.strictDirective=function(y){if(this.options.ecmaVersion<5)return!1;for(;;){R.lastIndex=y,y+=R.exec(this.input)[0].length;var D=ht.exec(this.input.slice(y));if(!D)return!1;if((D[1]||D[2])==="use strict"){R.lastIndex=y+D[0].length;var q=R.exec(this.input),X=q.index+q[0].length,de=this.input.charAt(X);return de===";"||de==="}"||T.test(q[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(de)||de==="!"&&this.input.charAt(X+1)==="=")}y+=D[0].length,R.lastIndex=y,y+=R.exec(this.input)[0].length,this.input[y]===";"&&y++}},Je.eat=function(y){return this.type===y?(this.next(),!0):!1},Je.isContextual=function(y){return this.type===E.name&&this.value===y&&!this.containsEsc},Je.eatContextual=function(y){return this.isContextual(y)?(this.next(),!0):!1},Je.expectContextual=function(y){this.eatContextual(y)||this.unexpected()},Je.canInsertSemicolon=function(){return this.type===E.eof||this.type===E.braceR||T.test(this.input.slice(this.lastTokEnd,this.start))},Je.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Je.semicolon=function(){!this.eat(E.semi)&&!this.insertSemicolon()&&this.unexpected()},Je.afterTrailingComma=function(y,D){if(this.type===y)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),D||this.next(),!0},Je.expect=function(y){this.eat(y)||this.unexpected()},Je.unexpected=function(y){this.raise(y??this.start,"Unexpected token")};var dt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Je.checkPatternErrors=function(y,D){if(y){y.trailingComma>-1&&this.raiseRecoverable(y.trailingComma,"Comma is not permitted after the rest element");var q=D?y.parenthesizedAssign:y.parenthesizedBind;q>-1&&this.raiseRecoverable(q,D?"Assigning to rvalue":"Parenthesized pattern")}},Je.checkExpressionErrors=function(y,D){if(!y)return!1;var q=y.shorthandAssign,X=y.doubleProto;if(!D)return q>=0||X>=0;q>=0&&this.raise(q,"Shorthand property assignments are valid only in destructuring patterns"),X>=0&&this.raiseRecoverable(X,"Redefinition of __proto__ property")},Je.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Je.isSimpleAssignTarget=function(y){return y.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(y.expression):y.type==="Identifier"||y.type==="MemberExpression"};var ot=st.prototype;ot.parseTopLevel=function(y){var D=Object.create(null);for(y.body||(y.body=[]);this.type!==E.eof;){var q=this.parseStatement(null,!0,D);y.body.push(q)}if(this.inModule)for(var X=0,de=Object.keys(this.undefinedExports);X<de.length;X+=1){var qe=de[X];this.raiseRecoverable(this.undefinedExports[qe].start,"Export '"+qe+"' is not defined")}return this.adaptDirectivePrologue(y.body),this.next(),y.sourceType=this.options.sourceType,this.finishNode(y,"Program")};var nt={kind:"loop"},ke={kind:"switch"};ot.isLet=function(y){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;R.lastIndex=this.pos;var D=R.exec(this.input),q=this.pos+D[0].length,X=this.input.charCodeAt(q);if(X===91||X===92)return!0;if(y)return!1;if(X===123||X>55295&&X<56320)return!0;if(l(X,!0)){for(var de=q+1;g(X=this.input.charCodeAt(de),!0);)++de;if(X===92||X>55295&&X<56320)return!0;var qe=this.input.slice(q,de);if(!i.test(qe))return!0}return!1},ot.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;R.lastIndex=this.pos;var y=R.exec(this.input),D=this.pos+y[0].length,q;return!T.test(this.input.slice(this.pos,D))&&this.input.slice(D,D+8)==="function"&&(D+8===this.input.length||!(g(q=this.input.charCodeAt(D+8))||q>55295&&q<56320))},ot.isUsingKeyword=function(y,D){if(this.options.ecmaVersion<17||!this.isContextual(y?"await":"using"))return!1;R.lastIndex=this.pos;var q=R.exec(this.input),X=this.pos+q[0].length;if(T.test(this.input.slice(this.pos,X)))return!1;if(y){var de=X+5,qe;if(this.input.slice(X,de)!=="using"||de===this.input.length||g(qe=this.input.charCodeAt(de))||qe>55295&&qe<56320)return!1;R.lastIndex=de;var We=R.exec(this.input);if(We&&T.test(this.input.slice(de,de+We[0].length)))return!1}if(D){var at=X+2,lt;if(this.input.slice(X,at)==="of"&&(at===this.input.length||!g(lt=this.input.charCodeAt(at))&&!(lt>55295&<<56320)))return!1}var yt=this.input.charCodeAt(X);return l(yt,!0)||yt===92},ot.isAwaitUsing=function(y){return this.isUsingKeyword(!0,y)},ot.isUsing=function(y){return this.isUsingKeyword(!1,y)},ot.parseStatement=function(y,D,q){var X=this.type,de=this.startNode(),qe;switch(this.isLet(y)&&(X=E._var,qe="let"),X){case E._break:case E._continue:return this.parseBreakContinueStatement(de,X.keyword);case E._debugger:return this.parseDebuggerStatement(de);case E._do:return this.parseDoStatement(de);case E._for:return this.parseForStatement(de);case E._function:return y&&(this.strict||y!=="if"&&y!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(de,!1,!y);case E._class:return y&&this.unexpected(),this.parseClass(de,!0);case E._if:return this.parseIfStatement(de);case E._return:return this.parseReturnStatement(de);case E._switch:return this.parseSwitchStatement(de);case E._throw:return this.parseThrowStatement(de);case E._try:return this.parseTryStatement(de);case E._const:case E._var:return qe=qe||this.value,y&&qe!=="var"&&this.unexpected(),this.parseVarStatement(de,qe);case E._while:return this.parseWhileStatement(de);case E._with:return this.parseWithStatement(de);case E.braceL:return this.parseBlock(!0,de);case E.semi:return this.parseEmptyStatement(de);case E._export:case E._import:if(this.options.ecmaVersion>10&&X===E._import){R.lastIndex=this.pos;var We=R.exec(this.input),at=this.pos+We[0].length,lt=this.input.charCodeAt(at);if(lt===40||lt===46)return this.parseExpressionStatement(de,this.parseExpression())}return this.options.allowImportExportEverywhere||(D||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),X===E._import?this.parseImport(de):this.parseExport(de,q);default:if(this.isAsyncFunction())return y&&this.unexpected(),this.next(),this.parseFunctionStatement(de,!0,!y);var yt=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(yt)return D&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),yt==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(de,!1,yt),this.semicolon(),this.finishNode(de,"VariableDeclaration");var St=this.value,At=this.parseExpression();return X===E.name&&At.type==="Identifier"&&this.eat(E.colon)?this.parseLabeledStatement(de,St,At,y):this.parseExpressionStatement(de,At)}},ot.parseBreakContinueStatement=function(y,D){var q=D==="break";this.next(),this.eat(E.semi)||this.insertSemicolon()?y.label=null:this.type!==E.name?this.unexpected():(y.label=this.parseIdent(),this.semicolon());for(var X=0;X<this.labels.length;++X){var de=this.labels[X];if((y.label==null||de.name===y.label.name)&&(de.kind!=null&&(q||de.kind==="loop")||y.label&&q))break}return X===this.labels.length&&this.raise(y.start,"Unsyntactic "+D),this.finishNode(y,q?"BreakStatement":"ContinueStatement")},ot.parseDebuggerStatement=function(y){return this.next(),this.semicolon(),this.finishNode(y,"DebuggerStatement")},ot.parseDoStatement=function(y){return this.next(),this.labels.push(nt),y.body=this.parseStatement("do"),this.labels.pop(),this.expect(E._while),y.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(E.semi):this.semicolon(),this.finishNode(y,"DoWhileStatement")},ot.parseForStatement=function(y){this.next();var D=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(nt),this.enterScope(0),this.expect(E.parenL),this.type===E.semi)return D>-1&&this.unexpected(D),this.parseFor(y,null);var q=this.isLet();if(this.type===E._var||this.type===E._const||q){var X=this.startNode(),de=q?"let":this.value;return this.next(),this.parseVar(X,!0,de),this.finishNode(X,"VariableDeclaration"),this.parseForAfterInit(y,X,D)}var qe=this.isContextual("let"),We=!1,at=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(at){var lt=this.startNode();return this.next(),at==="await using"&&this.next(),this.parseVar(lt,!0,at),this.finishNode(lt,"VariableDeclaration"),this.parseForAfterInit(y,lt,D)}var yt=this.containsEsc,St=new dt,At=this.start,Ut=D>-1?this.parseExprSubscripts(St,"await"):this.parseExpression(!0,St);return this.type===E._in||(We=this.options.ecmaVersion>=6&&this.isContextual("of"))?(D>-1?(this.type===E._in&&this.unexpected(D),y.await=!0):We&&this.options.ecmaVersion>=8&&(Ut.start===At&&!yt&&Ut.type==="Identifier"&&Ut.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(y.await=!1)),qe&&We&&this.raise(Ut.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(Ut,!1,St),this.checkLValPattern(Ut),this.parseForIn(y,Ut)):(this.checkExpressionErrors(St,!0),D>-1&&this.unexpected(D),this.parseFor(y,Ut))},ot.parseForAfterInit=function(y,D,q){return(this.type===E._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&D.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===E._in?q>-1&&this.unexpected(q):y.await=q>-1),this.parseForIn(y,D)):(q>-1&&this.unexpected(q),this.parseFor(y,D))},ot.parseFunctionStatement=function(y,D,q){return this.next(),this.parseFunction(y,ve|(q?0:Fe),!1,D)},ot.parseIfStatement=function(y){return this.next(),y.test=this.parseParenExpression(),y.consequent=this.parseStatement("if"),y.alternate=this.eat(E._else)?this.parseStatement("if"):null,this.finishNode(y,"IfStatement")},ot.parseReturnStatement=function(y){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(E.semi)||this.insertSemicolon()?y.argument=null:(y.argument=this.parseExpression(),this.semicolon()),this.finishNode(y,"ReturnStatement")},ot.parseSwitchStatement=function(y){this.next(),y.discriminant=this.parseParenExpression(),y.cases=[],this.expect(E.braceL),this.labels.push(ke),this.enterScope(0);for(var D,q=!1;this.type!==E.braceR;)if(this.type===E._case||this.type===E._default){var X=this.type===E._case;D&&this.finishNode(D,"SwitchCase"),y.cases.push(D=this.startNode()),D.consequent=[],this.next(),X?D.test=this.parseExpression():(q&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),q=!0,D.test=null),this.expect(E.colon)}else D||this.unexpected(),D.consequent.push(this.parseStatement(null));return this.exitScope(),D&&this.finishNode(D,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(y,"SwitchStatement")},ot.parseThrowStatement=function(y){return this.next(),T.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),y.argument=this.parseExpression(),this.semicolon(),this.finishNode(y,"ThrowStatement")};var Se=[];ot.parseCatchClauseParam=function(){var y=this.parseBindingAtom(),D=y.type==="Identifier";return this.enterScope(D?ge:0),this.checkLValPattern(y,D?Qe:Le),this.expect(E.parenR),y},ot.parseTryStatement=function(y){if(this.next(),y.block=this.parseBlock(),y.handler=null,this.type===E._catch){var D=this.startNode();this.next(),this.eat(E.parenL)?D.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),D.param=null,this.enterScope(0)),D.body=this.parseBlock(!1),this.exitScope(),y.handler=this.finishNode(D,"CatchClause")}return y.finalizer=this.eat(E._finally)?this.parseBlock():null,!y.handler&&!y.finalizer&&this.raise(y.start,"Missing catch or finally clause"),this.finishNode(y,"TryStatement")},ot.parseVarStatement=function(y,D,q){return this.next(),this.parseVar(y,!1,D,q),this.semicolon(),this.finishNode(y,"VariableDeclaration")},ot.parseWhileStatement=function(y){return this.next(),y.test=this.parseParenExpression(),this.labels.push(nt),y.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(y,"WhileStatement")},ot.parseWithStatement=function(y){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),y.object=this.parseParenExpression(),y.body=this.parseStatement("with"),this.finishNode(y,"WithStatement")},ot.parseEmptyStatement=function(y){return this.next(),this.finishNode(y,"EmptyStatement")},ot.parseLabeledStatement=function(y,D,q,X){for(var de=0,qe=this.labels;de<qe.length;de+=1){var We=qe[de];We.name===D&&this.raise(q.start,"Label '"+D+"' is already declared")}for(var at=this.type.isLoop?"loop":this.type===E._switch?"switch":null,lt=this.labels.length-1;lt>=0;lt--){var yt=this.labels[lt];if(yt.statementStart===y.start)yt.statementStart=this.start,yt.kind=at;else break}return this.labels.push({name:D,kind:at,statementStart:this.start}),y.body=this.parseStatement(X?X.indexOf("label")===-1?X+"label":X:"label"),this.labels.pop(),y.label=q,this.finishNode(y,"LabeledStatement")},ot.parseExpressionStatement=function(y,D){return y.expression=D,this.semicolon(),this.finishNode(y,"ExpressionStatement")},ot.parseBlock=function(y,D,q){for(y===void 0&&(y=!0),D===void 0&&(D=this.startNode()),D.body=[],this.expect(E.braceL),y&&this.enterScope(0);this.type!==E.braceR;){var X=this.parseStatement(null);D.body.push(X)}return q&&(this.strict=!1),this.next(),y&&this.exitScope(),this.finishNode(D,"BlockStatement")},ot.parseFor=function(y,D){return y.init=D,this.expect(E.semi),y.test=this.type===E.semi?null:this.parseExpression(),this.expect(E.semi),y.update=this.type===E.parenR?null:this.parseExpression(),this.expect(E.parenR),y.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(y,"ForStatement")},ot.parseForIn=function(y,D){var q=this.type===E._in;return this.next(),D.type==="VariableDeclaration"&&D.declarations[0].init!=null&&(!q||this.options.ecmaVersion<8||this.strict||D.kind!=="var"||D.declarations[0].id.type!=="Identifier")&&this.raise(D.start,(q?"for-in":"for-of")+" loop variable declaration may not have an initializer"),y.left=D,y.right=q?this.parseExpression():this.parseMaybeAssign(),this.expect(E.parenR),y.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(y,q?"ForInStatement":"ForOfStatement")},ot.parseVar=function(y,D,q,X){for(y.declarations=[],y.kind=q;;){var de=this.startNode();if(this.parseVarId(de,q),this.eat(E.eq)?de.init=this.parseMaybeAssign(D):!X&&q==="const"&&!(this.type===E._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!X&&(q==="using"||q==="await using")&&this.options.ecmaVersion>=17&&this.type!==E._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+q+" declaration"):!X&&de.id.type!=="Identifier"&&!(D&&(this.type===E._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):de.init=null,y.declarations.push(this.finishNode(de,"VariableDeclarator")),!this.eat(E.comma))break}return y},ot.parseVarId=function(y,D){y.id=D==="using"||D==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(y.id,D==="var"?Ne:Le,!1)};var ve=1,Fe=2,$e=4;ot.parseFunction=function(y,D,q,X,de){this.initFunction(y),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!X)&&(this.type===E.star&&D&Fe&&this.unexpected(),y.generator=this.eat(E.star)),this.options.ecmaVersion>=8&&(y.async=!!X),D&ve&&(y.id=D&$e&&this.type!==E.name?null:this.parseIdent(),y.id&&!(D&Fe)&&this.checkLValSimple(y.id,this.strict||y.generator||y.async?this.treatFunctionsAsVar?Ne:Le:U));var qe=this.yieldPos,We=this.awaitPos,at=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ie(y.async,y.generator)),D&ve||(y.id=this.type===E.name?this.parseIdent():null),this.parseFunctionParams(y),this.parseFunctionBody(y,q,!1,de),this.yieldPos=qe,this.awaitPos=We,this.awaitIdentPos=at,this.finishNode(y,D&ve?"FunctionDeclaration":"FunctionExpression")},ot.parseFunctionParams=function(y){this.expect(E.parenL),y.params=this.parseBindingList(E.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ot.parseClass=function(y,D){this.next();var q=this.strict;this.strict=!0,this.parseClassId(y,D),this.parseClassSuper(y);var X=this.enterClassBody(),de=this.startNode(),qe=!1;for(de.body=[],this.expect(E.braceL);this.type!==E.braceR;){var We=this.parseClassElement(y.superClass!==null);We&&(de.body.push(We),We.type==="MethodDefinition"&&We.kind==="constructor"?(qe&&this.raiseRecoverable(We.start,"Duplicate constructor in the same class"),qe=!0):We.key&&We.key.type==="PrivateIdentifier"&&ce(X,We)&&this.raiseRecoverable(We.key.start,"Identifier '#"+We.key.name+"' has already been declared"))}return this.strict=q,this.next(),y.body=this.finishNode(de,"ClassBody"),this.exitClassBody(),this.finishNode(y,D?"ClassDeclaration":"ClassExpression")},ot.parseClassElement=function(y){if(this.eat(E.semi))return null;var D=this.options.ecmaVersion,q=this.startNode(),X="",de=!1,qe=!1,We="method",at=!1;if(this.eatContextual("static")){if(D>=13&&this.eat(E.braceL))return this.parseClassStaticBlock(q),q;this.isClassElementNameStart()||this.type===E.star?at=!0:X="static"}if(q.static=at,!X&&D>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===E.star)&&!this.canInsertSemicolon()?qe=!0:X="async"),!X&&(D>=9||!qe)&&this.eat(E.star)&&(de=!0),!X&&!qe&&!de){var lt=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?We=lt:X=lt)}if(X?(q.computed=!1,q.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),q.key.name=X,this.finishNode(q.key,"Identifier")):this.parseClassElementName(q),D<13||this.type===E.parenL||We!=="method"||de||qe){var yt=!q.static&&be(q,"constructor"),St=yt&&y;yt&&We!=="method"&&this.raise(q.key.start,"Constructor can't have get/set modifier"),q.kind=yt?"constructor":We,this.parseClassMethod(q,de,qe,St)}else this.parseClassField(q);return q},ot.isClassElementNameStart=function(){return this.type===E.name||this.type===E.privateId||this.type===E.num||this.type===E.string||this.type===E.bracketL||this.type.keyword},ot.parseClassElementName=function(y){this.type===E.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),y.computed=!1,y.key=this.parsePrivateIdent()):this.parsePropertyName(y)},ot.parseClassMethod=function(y,D,q,X){var de=y.key;y.kind==="constructor"?(D&&this.raise(de.start,"Constructor can't be a generator"),q&&this.raise(de.start,"Constructor can't be an async method")):y.static&&be(y,"prototype")&&this.raise(de.start,"Classes may not have a static property named prototype");var qe=y.value=this.parseMethod(D,q,X);return y.kind==="get"&&qe.params.length!==0&&this.raiseRecoverable(qe.start,"getter should have no params"),y.kind==="set"&&qe.params.length!==1&&this.raiseRecoverable(qe.start,"setter should have exactly one param"),y.kind==="set"&&qe.params[0].type==="RestElement"&&this.raiseRecoverable(qe.params[0].start,"Setter cannot use rest params"),this.finishNode(y,"MethodDefinition")},ot.parseClassField=function(y){return be(y,"constructor")?this.raise(y.key.start,"Classes can't have a field named 'constructor'"):y.static&&be(y,"prototype")&&this.raise(y.key.start,"Classes can't have a static field named 'prototype'"),this.eat(E.eq)?(this.enterScope(Re|Ce),y.value=this.parseMaybeAssign(),this.exitScope()):y.value=null,this.semicolon(),this.finishNode(y,"PropertyDefinition")},ot.parseClassStaticBlock=function(y){y.body=[];var D=this.labels;for(this.labels=[],this.enterScope(Q|Ce);this.type!==E.braceR;){var q=this.parseStatement(null);y.body.push(q)}return this.next(),this.exitScope(),this.labels=D,this.finishNode(y,"StaticBlock")},ot.parseClassId=function(y,D){this.type===E.name?(y.id=this.parseIdent(),D&&this.checkLValSimple(y.id,Le,!1)):(D===!0&&this.unexpected(),y.id=null)},ot.parseClassSuper=function(y){y.superClass=this.eat(E._extends)?this.parseExprSubscripts(null,!1):null},ot.enterClassBody=function(){var y={declared:Object.create(null),used:[]};return this.privateNameStack.push(y),y.declared},ot.exitClassBody=function(){var y=this.privateNameStack.pop(),D=y.declared,q=y.used;if(this.options.checkPrivateFields)for(var X=this.privateNameStack.length,de=X===0?null:this.privateNameStack[X-1],qe=0;qe<q.length;++qe){var We=q[qe];j(D,We.name)||(de?de.used.push(We):this.raiseRecoverable(We.start,"Private field '#"+We.name+"' must be declared in an enclosing class"))}};function ce(y,D){var q=D.key.name,X=y[q],de="true";return D.type==="MethodDefinition"&&(D.kind==="get"||D.kind==="set")&&(de=(D.static?"s":"i")+D.kind),X==="iget"&&de==="iset"||X==="iset"&&de==="iget"||X==="sget"&&de==="sset"||X==="sset"&&de==="sget"?(y[q]="true",!1):X?!0:(y[q]=de,!1)}function be(y,D){var q=y.computed,X=y.key;return!q&&(X.type==="Identifier"&&X.name===D||X.type==="Literal"&&X.value===D)}ot.parseExportAllDeclaration=function(y,D){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(y.exported=this.parseModuleExportName(),this.checkExport(D,y.exported,this.lastTokStart)):y.exported=null),this.expectContextual("from"),this.type!==E.string&&this.unexpected(),y.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(y.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(y,"ExportAllDeclaration")},ot.parseExport=function(y,D){if(this.next(),this.eat(E.star))return this.parseExportAllDeclaration(y,D);if(this.eat(E._default))return this.checkExport(D,"default",this.lastTokStart),y.declaration=this.parseExportDefaultDeclaration(),this.finishNode(y,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())y.declaration=this.parseExportDeclaration(y),y.declaration.type==="VariableDeclaration"?this.checkVariableExport(D,y.declaration.declarations):this.checkExport(D,y.declaration.id,y.declaration.id.start),y.specifiers=[],y.source=null,this.options.ecmaVersion>=16&&(y.attributes=[]);else{if(y.declaration=null,y.specifiers=this.parseExportSpecifiers(D),this.eatContextual("from"))this.type!==E.string&&this.unexpected(),y.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(y.attributes=this.parseWithClause());else{for(var q=0,X=y.specifiers;q<X.length;q+=1){var de=X[q];this.checkUnreserved(de.local),this.checkLocalExport(de.local),de.local.type==="Literal"&&this.raise(de.local.start,"A string literal cannot be used as an exported binding without `from`.")}y.source=null,this.options.ecmaVersion>=16&&(y.attributes=[])}this.semicolon()}return this.finishNode(y,"ExportNamedDeclaration")},ot.parseExportDeclaration=function(y){return this.parseStatement(null)},ot.parseExportDefaultDeclaration=function(){var y;if(this.type===E._function||(y=this.isAsyncFunction())){var D=this.startNode();return this.next(),y&&this.next(),this.parseFunction(D,ve|$e,!1,y)}else if(this.type===E._class){var q=this.startNode();return this.parseClass(q,"nullableID")}else{var X=this.parseMaybeAssign();return this.semicolon(),X}},ot.checkExport=function(y,D,q){y&&(typeof D!="string"&&(D=D.type==="Identifier"?D.name:D.value),j(y,D)&&this.raiseRecoverable(q,"Duplicate export '"+D+"'"),y[D]=!0)},ot.checkPatternExport=function(y,D){var q=D.type;if(q==="Identifier")this.checkExport(y,D,D.start);else if(q==="ObjectPattern")for(var X=0,de=D.properties;X<de.length;X+=1){var qe=de[X];this.checkPatternExport(y,qe)}else if(q==="ArrayPattern")for(var We=0,at=D.elements;We<at.length;We+=1){var lt=at[We];lt&&this.checkPatternExport(y,lt)}else q==="Property"?this.checkPatternExport(y,D.value):q==="AssignmentPattern"?this.checkPatternExport(y,D.left):q==="RestElement"&&this.checkPatternExport(y,D.argument)},ot.checkVariableExport=function(y,D){if(y)for(var q=0,X=D;q<X.length;q+=1){var de=X[q];this.checkPatternExport(y,de.id)}},ot.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},ot.parseExportSpecifier=function(y){var D=this.startNode();return D.local=this.parseModuleExportName(),D.exported=this.eatContextual("as")?this.parseModuleExportName():D.local,this.checkExport(y,D.exported,D.exported.start),this.finishNode(D,"ExportSpecifier")},ot.parseExportSpecifiers=function(y){var D=[],q=!0;for(this.expect(E.braceL);!this.eat(E.braceR);){if(q)q=!1;else if(this.expect(E.comma),this.afterTrailingComma(E.braceR))break;D.push(this.parseExportSpecifier(y))}return D},ot.parseImport=function(y){return this.next(),this.type===E.string?(y.specifiers=Se,y.source=this.parseExprAtom()):(y.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),y.source=this.type===E.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(y.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(y,"ImportDeclaration")},ot.parseImportSpecifier=function(){var y=this.startNode();return y.imported=this.parseModuleExportName(),this.eatContextual("as")?y.local=this.parseIdent():(this.checkUnreserved(y.imported),y.local=y.imported),this.checkLValSimple(y.local,Le),this.finishNode(y,"ImportSpecifier")},ot.parseImportDefaultSpecifier=function(){var y=this.startNode();return y.local=this.parseIdent(),this.checkLValSimple(y.local,Le),this.finishNode(y,"ImportDefaultSpecifier")},ot.parseImportNamespaceSpecifier=function(){var y=this.startNode();return this.next(),this.expectContextual("as"),y.local=this.parseIdent(),this.checkLValSimple(y.local,Le),this.finishNode(y,"ImportNamespaceSpecifier")},ot.parseImportSpecifiers=function(){var y=[],D=!0;if(this.type===E.name&&(y.push(this.parseImportDefaultSpecifier()),!this.eat(E.comma)))return y;if(this.type===E.star)return y.push(this.parseImportNamespaceSpecifier()),y;for(this.expect(E.braceL);!this.eat(E.braceR);){if(D)D=!1;else if(this.expect(E.comma),this.afterTrailingComma(E.braceR))break;y.push(this.parseImportSpecifier())}return y},ot.parseWithClause=function(){var y=[];if(!this.eat(E._with))return y;this.expect(E.braceL);for(var D={},q=!0;!this.eat(E.braceR);){if(q)q=!1;else if(this.expect(E.comma),this.afterTrailingComma(E.braceR))break;var X=this.parseImportAttribute(),de=X.key.type==="Identifier"?X.key.name:X.key.value;j(D,de)&&this.raiseRecoverable(X.key.start,"Duplicate attribute key '"+de+"'"),D[de]=!0,y.push(X)}return y},ot.parseImportAttribute=function(){var y=this.startNode();return y.key=this.type===E.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(E.colon),this.type!==E.string&&this.unexpected(),y.value=this.parseExprAtom(),this.finishNode(y,"ImportAttribute")},ot.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===E.string){var y=this.parseLiteral(this.value);return K.test(y.value)&&this.raise(y.start,"An export name cannot include a lone surrogate."),y}return this.parseIdent(!0)},ot.adaptDirectivePrologue=function(y){for(var D=0;D<y.length&&this.isDirectiveCandidate(y[D]);++D)y[D].directive=y[D].expression.raw.slice(1,-1)},ot.isDirectiveCandidate=function(y){return this.options.ecmaVersion>=5&&y.type==="ExpressionStatement"&&y.expression.type==="Literal"&&typeof y.expression.value=="string"&&(this.input[y.start]==='"'||this.input[y.start]==="'")};var ee=st.prototype;ee.toAssignable=function(y,D,q){if(this.options.ecmaVersion>=6&&y)switch(y.type){case"Identifier":this.inAsync&&y.name==="await"&&this.raise(y.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":y.type="ObjectPattern",q&&this.checkPatternErrors(q,!0);for(var X=0,de=y.properties;X<de.length;X+=1){var qe=de[X];this.toAssignable(qe,D),qe.type==="RestElement"&&(qe.argument.type==="ArrayPattern"||qe.argument.type==="ObjectPattern")&&this.raise(qe.argument.start,"Unexpected token")}break;case"Property":y.kind!=="init"&&this.raise(y.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(y.value,D);break;case"ArrayExpression":y.type="ArrayPattern",q&&this.checkPatternErrors(q,!0),this.toAssignableList(y.elements,D);break;case"SpreadElement":y.type="RestElement",this.toAssignable(y.argument,D),y.argument.type==="AssignmentPattern"&&this.raise(y.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":y.operator!=="="&&this.raise(y.left.end,"Only '=' operator can be used for specifying default value."),y.type="AssignmentPattern",delete y.operator,this.toAssignable(y.left,D);break;case"ParenthesizedExpression":this.toAssignable(y.expression,D,q);break;case"ChainExpression":this.raiseRecoverable(y.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!D)break;default:this.raise(y.start,"Assigning to rvalue")}else q&&this.checkPatternErrors(q,!0);return y},ee.toAssignableList=function(y,D){for(var q=y.length,X=0;X<q;X++){var de=y[X];de&&this.toAssignable(de,D)}if(q){var qe=y[q-1];this.options.ecmaVersion===6&&D&&qe&&qe.type==="RestElement"&&qe.argument.type!=="Identifier"&&this.unexpected(qe.argument.start)}return y},ee.parseSpread=function(y){var D=this.startNode();return this.next(),D.argument=this.parseMaybeAssign(!1,y),this.finishNode(D,"SpreadElement")},ee.parseRestBinding=function(){var y=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==E.name&&this.unexpected(),y.argument=this.parseBindingAtom(),this.finishNode(y,"RestElement")},ee.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case E.bracketL:var y=this.startNode();return this.next(),y.elements=this.parseBindingList(E.bracketR,!0,!0),this.finishNode(y,"ArrayPattern");case E.braceL:return this.parseObj(!0)}return this.parseIdent()},ee.parseBindingList=function(y,D,q,X){for(var de=[],qe=!0;!this.eat(y);)if(qe?qe=!1:this.expect(E.comma),D&&this.type===E.comma)de.push(null);else{if(q&&this.afterTrailingComma(y))break;if(this.type===E.ellipsis){var We=this.parseRestBinding();this.parseBindingListItem(We),de.push(We),this.type===E.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(y);break}else de.push(this.parseAssignableListItem(X))}return de},ee.parseAssignableListItem=function(y){var D=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(D),D},ee.parseBindingListItem=function(y){return y},ee.parseMaybeDefault=function(y,D,q){if(q=q||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(E.eq))return q;var X=this.startNodeAt(y,D);return X.left=q,X.right=this.parseMaybeAssign(),this.finishNode(X,"AssignmentPattern")},ee.checkLValSimple=function(y,D,q){D===void 0&&(D=Te);var X=D!==Te;switch(y.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(y.name)&&this.raiseRecoverable(y.start,(X?"Binding ":"Assigning to ")+y.name+" in strict mode"),X&&(D===Le&&y.name==="let"&&this.raiseRecoverable(y.start,"let is disallowed as a lexically bound name"),q&&(j(q,y.name)&&this.raiseRecoverable(y.start,"Argument name clash"),q[y.name]=!0),D!==ct&&this.declareName(y.name,D,y.start));break;case"ChainExpression":this.raiseRecoverable(y.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":X&&this.raiseRecoverable(y.start,"Binding member expression");break;case"ParenthesizedExpression":return X&&this.raiseRecoverable(y.start,"Binding parenthesized expression"),this.checkLValSimple(y.expression,D,q);default:this.raise(y.start,(X?"Binding":"Assigning to")+" rvalue")}},ee.checkLValPattern=function(y,D,q){switch(D===void 0&&(D=Te),y.type){case"ObjectPattern":for(var X=0,de=y.properties;X<de.length;X+=1){var qe=de[X];this.checkLValInnerPattern(qe,D,q)}break;case"ArrayPattern":for(var We=0,at=y.elements;We<at.length;We+=1){var lt=at[We];lt&&this.checkLValInnerPattern(lt,D,q)}break;default:this.checkLValSimple(y,D,q)}},ee.checkLValInnerPattern=function(y,D,q){switch(D===void 0&&(D=Te),y.type){case"Property":this.checkLValInnerPattern(y.value,D,q);break;case"AssignmentPattern":this.checkLValPattern(y.left,D,q);break;case"RestElement":this.checkLValPattern(y.argument,D,q);break;default:this.checkLValPattern(y,D,q)}};var le=function(D,q,X,de,qe){this.token=D,this.isExpr=!!q,this.preserveSpace=!!X,this.override=de,this.generator=!!qe},Ee={b_stat:new le("{",!1),b_expr:new le("{",!0),b_tmpl:new le("${",!1),p_stat:new le("(",!1),p_expr:new le("(",!0),q_tmpl:new le("`",!0,!0,function(y){return y.tryReadTemplateToken()}),f_stat:new le("function",!1),f_expr:new le("function",!0),f_expr_gen:new le("function",!0,!1,null,!0),f_gen:new le("function",!1,!1,null,!0)},Ie=st.prototype;Ie.initialContext=function(){return[Ee.b_stat]},Ie.curContext=function(){return this.context[this.context.length-1]},Ie.braceIsBlock=function(y){var D=this.curContext();return D===Ee.f_expr||D===Ee.f_stat?!0:y===E.colon&&(D===Ee.b_stat||D===Ee.b_expr)?!D.isExpr:y===E._return||y===E.name&&this.exprAllowed?T.test(this.input.slice(this.lastTokEnd,this.start)):y===E._else||y===E.semi||y===E.eof||y===E.parenR||y===E.arrow?!0:y===E.braceL?D===Ee.b_stat:y===E._var||y===E._const||y===E.name?!1:!this.exprAllowed},Ie.inGeneratorContext=function(){for(var y=this.context.length-1;y>=1;y--){var D=this.context[y];if(D.token==="function")return D.generator}return!1},Ie.updateContext=function(y){var D,q=this.type;q.keyword&&y===E.dot?this.exprAllowed=!1:(D=q.updateContext)?D.call(this,y):this.exprAllowed=q.beforeExpr},Ie.overrideContext=function(y){this.curContext()!==y&&(this.context[this.context.length-1]=y)},E.parenR.updateContext=E.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var y=this.context.pop();y===Ee.b_stat&&this.curContext().token==="function"&&(y=this.context.pop()),this.exprAllowed=!y.isExpr},E.braceL.updateContext=function(y){this.context.push(this.braceIsBlock(y)?Ee.b_stat:Ee.b_expr),this.exprAllowed=!0},E.dollarBraceL.updateContext=function(){this.context.push(Ee.b_tmpl),this.exprAllowed=!0},E.parenL.updateContext=function(y){var D=y===E._if||y===E._for||y===E._with||y===E._while;this.context.push(D?Ee.p_stat:Ee.p_expr),this.exprAllowed=!0},E.incDec.updateContext=function(){},E._function.updateContext=E._class.updateContext=function(y){y.beforeExpr&&y!==E._else&&!(y===E.semi&&this.curContext()!==Ee.p_stat)&&!(y===E._return&&T.test(this.input.slice(this.lastTokEnd,this.start)))&&!((y===E.colon||y===E.braceL)&&this.curContext()===Ee.b_stat)?this.context.push(Ee.f_expr):this.context.push(Ee.f_stat),this.exprAllowed=!1},E.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},E.backQuote.updateContext=function(){this.curContext()===Ee.q_tmpl?this.context.pop():this.context.push(Ee.q_tmpl),this.exprAllowed=!1},E.star.updateContext=function(y){if(y===E._function){var D=this.context.length-1;this.context[D]===Ee.f_expr?this.context[D]=Ee.f_expr_gen:this.context[D]=Ee.f_gen}this.exprAllowed=!0},E.name.updateContext=function(y){var D=!1;this.options.ecmaVersion>=6&&y!==E.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(D=!0),this.exprAllowed=D};var _=st.prototype;_.checkPropClash=function(y,D,q){if(!(this.options.ecmaVersion>=9&&y.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(y.computed||y.method||y.shorthand))){var X=y.key,de;switch(X.type){case"Identifier":de=X.name;break;case"Literal":de=String(X.value);break;default:return}var qe=y.kind;if(this.options.ecmaVersion>=6){de==="__proto__"&&qe==="init"&&(D.proto&&(q?q.doubleProto<0&&(q.doubleProto=X.start):this.raiseRecoverable(X.start,"Redefinition of __proto__ property")),D.proto=!0);return}de="$"+de;var We=D[de];if(We){var at;qe==="init"?at=this.strict&&We.init||We.get||We.set:at=We.init||We[qe],at&&this.raiseRecoverable(X.start,"Redefinition of property")}else We=D[de]={init:!1,get:!1,set:!1};We[qe]=!0}},_.parseExpression=function(y,D){var q=this.start,X=this.startLoc,de=this.parseMaybeAssign(y,D);if(this.type===E.comma){var qe=this.startNodeAt(q,X);for(qe.expressions=[de];this.eat(E.comma);)qe.expressions.push(this.parseMaybeAssign(y,D));return this.finishNode(qe,"SequenceExpression")}return de},_.parseMaybeAssign=function(y,D,q){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(y);this.exprAllowed=!1}var X=!1,de=-1,qe=-1,We=-1;D?(de=D.parenthesizedAssign,qe=D.trailingComma,We=D.doubleProto,D.parenthesizedAssign=D.trailingComma=-1):(D=new dt,X=!0);var at=this.start,lt=this.startLoc;(this.type===E.parenL||this.type===E.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=y==="await");var yt=this.parseMaybeConditional(y,D);if(q&&(yt=q.call(this,yt,at,lt)),this.type.isAssign){var St=this.startNodeAt(at,lt);return St.operator=this.value,this.type===E.eq&&(yt=this.toAssignable(yt,!1,D)),X||(D.parenthesizedAssign=D.trailingComma=D.doubleProto=-1),D.shorthandAssign>=yt.start&&(D.shorthandAssign=-1),this.type===E.eq?this.checkLValPattern(yt):this.checkLValSimple(yt),St.left=yt,this.next(),St.right=this.parseMaybeAssign(y),We>-1&&(D.doubleProto=We),this.finishNode(St,"AssignmentExpression")}else X&&this.checkExpressionErrors(D,!0);return de>-1&&(D.parenthesizedAssign=de),qe>-1&&(D.trailingComma=qe),yt},_.parseMaybeConditional=function(y,D){var q=this.start,X=this.startLoc,de=this.parseExprOps(y,D);if(this.checkExpressionErrors(D))return de;if(this.eat(E.question)){var qe=this.startNodeAt(q,X);return qe.test=de,qe.consequent=this.parseMaybeAssign(),this.expect(E.colon),qe.alternate=this.parseMaybeAssign(y),this.finishNode(qe,"ConditionalExpression")}return de},_.parseExprOps=function(y,D){var q=this.start,X=this.startLoc,de=this.parseMaybeUnary(D,!1,!1,y);return this.checkExpressionErrors(D)||de.start===q&&de.type==="ArrowFunctionExpression"?de:this.parseExprOp(de,q,X,-1,y)},_.parseExprOp=function(y,D,q,X,de){var qe=this.type.binop;if(qe!=null&&(!de||this.type!==E._in)&&qe>X){var We=this.type===E.logicalOR||this.type===E.logicalAND,at=this.type===E.coalesce;at&&(qe=E.logicalAND.binop);var lt=this.value;this.next();var yt=this.start,St=this.startLoc,At=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,de),yt,St,qe,de),Ut=this.buildBinary(D,q,y,At,lt,We||at);return(We&&this.type===E.coalesce||at&&(this.type===E.logicalOR||this.type===E.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(Ut,D,q,X,de)}return y},_.buildBinary=function(y,D,q,X,de,qe){X.type==="PrivateIdentifier"&&this.raise(X.start,"Private identifier can only be left side of binary expression");var We=this.startNodeAt(y,D);return We.left=q,We.operator=de,We.right=X,this.finishNode(We,qe?"LogicalExpression":"BinaryExpression")},_.parseMaybeUnary=function(y,D,q,X){var de=this.start,qe=this.startLoc,We;if(this.isContextual("await")&&this.canAwait)We=this.parseAwait(X),D=!0;else if(this.type.prefix){var at=this.startNode(),lt=this.type===E.incDec;at.operator=this.value,at.prefix=!0,this.next(),at.argument=this.parseMaybeUnary(null,!0,lt,X),this.checkExpressionErrors(y,!0),lt?this.checkLValSimple(at.argument):this.strict&&at.operator==="delete"&&J(at.argument)?this.raiseRecoverable(at.start,"Deleting local variable in strict mode"):at.operator==="delete"&&fe(at.argument)?this.raiseRecoverable(at.start,"Private fields can not be deleted"):D=!0,We=this.finishNode(at,lt?"UpdateExpression":"UnaryExpression")}else if(!D&&this.type===E.privateId)(X||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),We=this.parsePrivateIdent(),this.type!==E._in&&this.unexpected();else{if(We=this.parseExprSubscripts(y,X),this.checkExpressionErrors(y))return We;for(;this.type.postfix&&!this.canInsertSemicolon();){var yt=this.startNodeAt(de,qe);yt.operator=this.value,yt.prefix=!1,yt.argument=We,this.checkLValSimple(We),this.next(),We=this.finishNode(yt,"UpdateExpression")}}if(!q&&this.eat(E.starstar))if(D)this.unexpected(this.lastTokStart);else return this.buildBinary(de,qe,We,this.parseMaybeUnary(null,!1,!1,X),"**",!1);else return We};function J(y){return y.type==="Identifier"||y.type==="ParenthesizedExpression"&&J(y.expression)}function fe(y){return y.type==="MemberExpression"&&y.property.type==="PrivateIdentifier"||y.type==="ChainExpression"&&fe(y.expression)||y.type==="ParenthesizedExpression"&&fe(y.expression)}_.parseExprSubscripts=function(y,D){var q=this.start,X=this.startLoc,de=this.parseExprAtom(y,D);if(de.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return de;var qe=this.parseSubscripts(de,q,X,!1,D);return y&&qe.type==="MemberExpression"&&(y.parenthesizedAssign>=qe.start&&(y.parenthesizedAssign=-1),y.parenthesizedBind>=qe.start&&(y.parenthesizedBind=-1),y.trailingComma>=qe.start&&(y.trailingComma=-1)),qe},_.parseSubscripts=function(y,D,q,X,de){for(var qe=this.options.ecmaVersion>=8&&y.type==="Identifier"&&y.name==="async"&&this.lastTokEnd===y.end&&!this.canInsertSemicolon()&&y.end-y.start===5&&this.potentialArrowAt===y.start,We=!1;;){var at=this.parseSubscript(y,D,q,X,qe,We,de);if(at.optional&&(We=!0),at===y||at.type==="ArrowFunctionExpression"){if(We){var lt=this.startNodeAt(D,q);lt.expression=at,at=this.finishNode(lt,"ChainExpression")}return at}y=at}},_.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(E.arrow)},_.parseSubscriptAsyncArrow=function(y,D,q,X){return this.parseArrowExpression(this.startNodeAt(y,D),q,!0,X)},_.parseSubscript=function(y,D,q,X,de,qe,We){var at=this.options.ecmaVersion>=11,lt=at&&this.eat(E.questionDot);X&<&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var yt=this.eat(E.bracketL);if(yt||lt&&this.type!==E.parenL&&this.type!==E.backQuote||this.eat(E.dot)){var St=this.startNodeAt(D,q);St.object=y,yt?(St.property=this.parseExpression(),this.expect(E.bracketR)):this.type===E.privateId&&y.type!=="Super"?St.property=this.parsePrivateIdent():St.property=this.parseIdent(this.options.allowReserved!=="never"),St.computed=!!yt,at&&(St.optional=lt),y=this.finishNode(St,"MemberExpression")}else if(!X&&this.eat(E.parenL)){var At=new dt,Ut=this.yieldPos,Ae=this.awaitPos,Me=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Xe=this.parseExprList(E.parenR,this.options.ecmaVersion>=8,!1,At);if(de&&!lt&&this.shouldParseAsyncArrow())return this.checkPatternErrors(At,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Ut,this.awaitPos=Ae,this.awaitIdentPos=Me,this.parseSubscriptAsyncArrow(D,q,Xe,We);this.checkExpressionErrors(At,!0),this.yieldPos=Ut||this.yieldPos,this.awaitPos=Ae||this.awaitPos,this.awaitIdentPos=Me||this.awaitIdentPos;var mt=this.startNodeAt(D,q);mt.callee=y,mt.arguments=Xe,at&&(mt.optional=lt),y=this.finishNode(mt,"CallExpression")}else if(this.type===E.backQuote){(lt||qe)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var bt=this.startNodeAt(D,q);bt.tag=y,bt.quasi=this.parseTemplate({isTagged:!0}),y=this.finishNode(bt,"TaggedTemplateExpression")}return y},_.parseExprAtom=function(y,D,q){this.type===E.slash&&this.readRegexp();var X,de=this.potentialArrowAt===this.start;switch(this.type){case E._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),X=this.startNode(),this.next(),this.type===E.parenL&&!this.allowDirectSuper&&this.raise(X.start,"super() call outside constructor of a subclass"),this.type!==E.dot&&this.type!==E.bracketL&&this.type!==E.parenL&&this.unexpected(),this.finishNode(X,"Super");case E._this:return X=this.startNode(),this.next(),this.finishNode(X,"ThisExpression");case E.name:var qe=this.start,We=this.startLoc,at=this.containsEsc,lt=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!at&<.name==="async"&&!this.canInsertSemicolon()&&this.eat(E._function))return this.overrideContext(Ee.f_expr),this.parseFunction(this.startNodeAt(qe,We),0,!1,!0,D);if(de&&!this.canInsertSemicolon()){if(this.eat(E.arrow))return this.parseArrowExpression(this.startNodeAt(qe,We),[lt],!1,D);if(this.options.ecmaVersion>=8&<.name==="async"&&this.type===E.name&&!at&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return lt=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(E.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(qe,We),[lt],!0,D)}return lt;case E.regexp:var yt=this.value;return X=this.parseLiteral(yt.value),X.regex={pattern:yt.pattern,flags:yt.flags},X;case E.num:case E.string:return this.parseLiteral(this.value);case E._null:case E._true:case E._false:return X=this.startNode(),X.value=this.type===E._null?null:this.type===E._true,X.raw=this.type.keyword,this.next(),this.finishNode(X,"Literal");case E.parenL:var St=this.start,At=this.parseParenAndDistinguishExpression(de,D);return y&&(y.parenthesizedAssign<0&&!this.isSimpleAssignTarget(At)&&(y.parenthesizedAssign=St),y.parenthesizedBind<0&&(y.parenthesizedBind=St)),At;case E.bracketL:return X=this.startNode(),this.next(),X.elements=this.parseExprList(E.bracketR,!0,!0,y),this.finishNode(X,"ArrayExpression");case E.braceL:return this.overrideContext(Ee.b_expr),this.parseObj(!1,y);case E._function:return X=this.startNode(),this.next(),this.parseFunction(X,0);case E._class:return this.parseClass(this.startNode(),!1);case E._new:return this.parseNew();case E.backQuote:return this.parseTemplate();case E._import:return this.options.ecmaVersion>=11?this.parseExprImport(q):this.unexpected();default:return this.parseExprAtomDefault()}},_.parseExprAtomDefault=function(){this.unexpected()},_.parseExprImport=function(y){var D=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===E.parenL&&!y)return this.parseDynamicImport(D);if(this.type===E.dot){var q=this.startNodeAt(D.start,D.loc&&D.loc.start);return q.name="import",D.meta=this.finishNode(q,"Identifier"),this.parseImportMeta(D)}else this.unexpected()},_.parseDynamicImport=function(y){if(this.next(),y.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(E.parenR)?y.options=null:(this.expect(E.comma),this.afterTrailingComma(E.parenR)?y.options=null:(y.options=this.parseMaybeAssign(),this.eat(E.parenR)||(this.expect(E.comma),this.afterTrailingComma(E.parenR)||this.unexpected())));else if(!this.eat(E.parenR)){var D=this.start;this.eat(E.comma)&&this.eat(E.parenR)?this.raiseRecoverable(D,"Trailing comma is not allowed in import()"):this.unexpected(D)}return this.finishNode(y,"ImportExpression")},_.parseImportMeta=function(y){this.next();var D=this.containsEsc;return y.property=this.parseIdent(!0),y.property.name!=="meta"&&this.raiseRecoverable(y.property.start,"The only valid meta property for import is 'import.meta'"),D&&this.raiseRecoverable(y.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(y.start,"Cannot use 'import.meta' outside a module"),this.finishNode(y,"MetaProperty")},_.parseLiteral=function(y){var D=this.startNode();return D.value=y,D.raw=this.input.slice(this.start,this.end),D.raw.charCodeAt(D.raw.length-1)===110&&(D.bigint=D.value!=null?D.value.toString():D.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(D,"Literal")},_.parseParenExpression=function(){this.expect(E.parenL);var y=this.parseExpression();return this.expect(E.parenR),y},_.shouldParseArrow=function(y){return!this.canInsertSemicolon()},_.parseParenAndDistinguishExpression=function(y,D){var q=this.start,X=this.startLoc,de,qe=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var We=this.start,at=this.startLoc,lt=[],yt=!0,St=!1,At=new dt,Ut=this.yieldPos,Ae=this.awaitPos,Me;for(this.yieldPos=0,this.awaitPos=0;this.type!==E.parenR;)if(yt?yt=!1:this.expect(E.comma),qe&&this.afterTrailingComma(E.parenR,!0)){St=!0;break}else if(this.type===E.ellipsis){Me=this.start,lt.push(this.parseParenItem(this.parseRestBinding())),this.type===E.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else lt.push(this.parseMaybeAssign(!1,At,this.parseParenItem));var Xe=this.lastTokEnd,mt=this.lastTokEndLoc;if(this.expect(E.parenR),y&&this.shouldParseArrow(lt)&&this.eat(E.arrow))return this.checkPatternErrors(At,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Ut,this.awaitPos=Ae,this.parseParenArrowList(q,X,lt,D);(!lt.length||St)&&this.unexpected(this.lastTokStart),Me&&this.unexpected(Me),this.checkExpressionErrors(At,!0),this.yieldPos=Ut||this.yieldPos,this.awaitPos=Ae||this.awaitPos,lt.length>1?(de=this.startNodeAt(We,at),de.expressions=lt,this.finishNodeAt(de,"SequenceExpression",Xe,mt)):de=lt[0]}else de=this.parseParenExpression();if(this.options.preserveParens){var bt=this.startNodeAt(q,X);return bt.expression=de,this.finishNode(bt,"ParenthesizedExpression")}else return de},_.parseParenItem=function(y){return y},_.parseParenArrowList=function(y,D,q,X){return this.parseArrowExpression(this.startNodeAt(y,D),q,!1,X)};var te=[];_.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var y=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===E.dot){var D=this.startNodeAt(y.start,y.loc&&y.loc.start);D.name="new",y.meta=this.finishNode(D,"Identifier"),this.next();var q=this.containsEsc;return y.property=this.parseIdent(!0),y.property.name!=="target"&&this.raiseRecoverable(y.property.start,"The only valid meta property for new is 'new.target'"),q&&this.raiseRecoverable(y.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(y.start,"'new.target' can only be used in functions and class static block"),this.finishNode(y,"MetaProperty")}var X=this.start,de=this.startLoc;return y.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),X,de,!0,!1),this.eat(E.parenL)?y.arguments=this.parseExprList(E.parenR,this.options.ecmaVersion>=8,!1):y.arguments=te,this.finishNode(y,"NewExpression")},_.parseTemplateElement=function(y){var D=y.isTagged,q=this.startNode();return this.type===E.invalidTemplate?(D||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),q.value={raw:this.value.replace(/\r\n?/g,`
|
|
4
|
+
`),cooked:null}):q.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
5
|
+
`),cooked:this.value},this.next(),q.tail=this.type===E.backQuote,this.finishNode(q,"TemplateElement")},_.parseTemplate=function(y){y===void 0&&(y={});var D=y.isTagged;D===void 0&&(D=!1);var q=this.startNode();this.next(),q.expressions=[];var X=this.parseTemplateElement({isTagged:D});for(q.quasis=[X];!X.tail;)this.type===E.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(E.dollarBraceL),q.expressions.push(this.parseExpression()),this.expect(E.braceR),q.quasis.push(X=this.parseTemplateElement({isTagged:D}));return this.next(),this.finishNode(q,"TemplateLiteral")},_.isAsyncProp=function(y){return!y.computed&&y.key.type==="Identifier"&&y.key.name==="async"&&(this.type===E.name||this.type===E.num||this.type===E.string||this.type===E.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===E.star)&&!T.test(this.input.slice(this.lastTokEnd,this.start))},_.parseObj=function(y,D){var q=this.startNode(),X=!0,de={};for(q.properties=[],this.next();!this.eat(E.braceR);){if(X)X=!1;else if(this.expect(E.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(E.braceR))break;var qe=this.parseProperty(y,D);y||this.checkPropClash(qe,de,D),q.properties.push(qe)}return this.finishNode(q,y?"ObjectPattern":"ObjectExpression")},_.parseProperty=function(y,D){var q=this.startNode(),X,de,qe,We;if(this.options.ecmaVersion>=9&&this.eat(E.ellipsis))return y?(q.argument=this.parseIdent(!1),this.type===E.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(q,"RestElement")):(q.argument=this.parseMaybeAssign(!1,D),this.type===E.comma&&D&&D.trailingComma<0&&(D.trailingComma=this.start),this.finishNode(q,"SpreadElement"));this.options.ecmaVersion>=6&&(q.method=!1,q.shorthand=!1,(y||D)&&(qe=this.start,We=this.startLoc),y||(X=this.eat(E.star)));var at=this.containsEsc;return this.parsePropertyName(q),!y&&!at&&this.options.ecmaVersion>=8&&!X&&this.isAsyncProp(q)?(de=!0,X=this.options.ecmaVersion>=9&&this.eat(E.star),this.parsePropertyName(q)):de=!1,this.parsePropertyValue(q,y,X,de,qe,We,D,at),this.finishNode(q,"Property")},_.parseGetterSetter=function(y){var D=y.key.name;this.parsePropertyName(y),y.value=this.parseMethod(!1),y.kind=D;var q=y.kind==="get"?0:1;if(y.value.params.length!==q){var X=y.value.start;y.kind==="get"?this.raiseRecoverable(X,"getter should have no params"):this.raiseRecoverable(X,"setter should have exactly one param")}else y.kind==="set"&&y.value.params[0].type==="RestElement"&&this.raiseRecoverable(y.value.params[0].start,"Setter cannot use rest params")},_.parsePropertyValue=function(y,D,q,X,de,qe,We,at){(q||X)&&this.type===E.colon&&this.unexpected(),this.eat(E.colon)?(y.value=D?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,We),y.kind="init"):this.options.ecmaVersion>=6&&this.type===E.parenL?(D&&this.unexpected(),y.method=!0,y.value=this.parseMethod(q,X),y.kind="init"):!D&&!at&&this.options.ecmaVersion>=5&&!y.computed&&y.key.type==="Identifier"&&(y.key.name==="get"||y.key.name==="set")&&this.type!==E.comma&&this.type!==E.braceR&&this.type!==E.eq?((q||X)&&this.unexpected(),this.parseGetterSetter(y)):this.options.ecmaVersion>=6&&!y.computed&&y.key.type==="Identifier"?((q||X)&&this.unexpected(),this.checkUnreserved(y.key),y.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=de),D?y.value=this.parseMaybeDefault(de,qe,this.copyNode(y.key)):this.type===E.eq&&We?(We.shorthandAssign<0&&(We.shorthandAssign=this.start),y.value=this.parseMaybeDefault(de,qe,this.copyNode(y.key))):y.value=this.copyNode(y.key),y.kind="init",y.shorthand=!0):this.unexpected()},_.parsePropertyName=function(y){if(this.options.ecmaVersion>=6){if(this.eat(E.bracketL))return y.computed=!0,y.key=this.parseMaybeAssign(),this.expect(E.bracketR),y.key;y.computed=!1}return y.key=this.type===E.num||this.type===E.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},_.initFunction=function(y){y.id=null,this.options.ecmaVersion>=6&&(y.generator=y.expression=!1),this.options.ecmaVersion>=8&&(y.async=!1)},_.parseMethod=function(y,D,q){var X=this.startNode(),de=this.yieldPos,qe=this.awaitPos,We=this.awaitIdentPos;return this.initFunction(X),this.options.ecmaVersion>=6&&(X.generator=y),this.options.ecmaVersion>=8&&(X.async=!!D),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ie(D,X.generator)|Ce|(q?z:0)),this.expect(E.parenL),X.params=this.parseBindingList(E.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(X,!1,!0,!1),this.yieldPos=de,this.awaitPos=qe,this.awaitIdentPos=We,this.finishNode(X,"FunctionExpression")},_.parseArrowExpression=function(y,D,q,X){var de=this.yieldPos,qe=this.awaitPos,We=this.awaitIdentPos;return this.enterScope(ie(q,!1)|ye),this.initFunction(y),this.options.ecmaVersion>=8&&(y.async=!!q),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,y.params=this.toAssignableList(D,!0),this.parseFunctionBody(y,!0,!1,X),this.yieldPos=de,this.awaitPos=qe,this.awaitIdentPos=We,this.finishNode(y,"ArrowFunctionExpression")},_.parseFunctionBody=function(y,D,q,X){var de=D&&this.type!==E.braceL,qe=this.strict,We=!1;if(de)y.body=this.parseMaybeAssign(X),y.expression=!0,this.checkParams(y,!1);else{var at=this.options.ecmaVersion>=7&&!this.isSimpleParamList(y.params);(!qe||at)&&(We=this.strictDirective(this.end),We&&at&&this.raiseRecoverable(y.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var lt=this.labels;this.labels=[],We&&(this.strict=!0),this.checkParams(y,!qe&&!We&&!D&&!q&&this.isSimpleParamList(y.params)),this.strict&&y.id&&this.checkLValSimple(y.id,ct),y.body=this.parseBlock(!1,void 0,We&&!qe),y.expression=!1,this.adaptDirectivePrologue(y.body.body),this.labels=lt}this.exitScope()},_.isSimpleParamList=function(y){for(var D=0,q=y;D<q.length;D+=1){var X=q[D];if(X.type!=="Identifier")return!1}return!0},_.checkParams=function(y,D){for(var q=Object.create(null),X=0,de=y.params;X<de.length;X+=1){var qe=de[X];this.checkLValInnerPattern(qe,Ne,D?null:q)}},_.parseExprList=function(y,D,q,X){for(var de=[],qe=!0;!this.eat(y);){if(qe)qe=!1;else if(this.expect(E.comma),D&&this.afterTrailingComma(y))break;var We=void 0;q&&this.type===E.comma?We=null:this.type===E.ellipsis?(We=this.parseSpread(X),X&&this.type===E.comma&&X.trailingComma<0&&(X.trailingComma=this.start)):We=this.parseMaybeAssign(!1,X),de.push(We)}return de},_.checkUnreserved=function(y){var D=y.start,q=y.end,X=y.name;if(this.inGenerator&&X==="yield"&&this.raiseRecoverable(D,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&X==="await"&&this.raiseRecoverable(D,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&$)&&X==="arguments"&&this.raiseRecoverable(D,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(X==="arguments"||X==="await")&&this.raise(D,"Cannot use "+X+" in class static initialization block"),this.keywords.test(X)&&this.raise(D,"Unexpected keyword '"+X+"'"),!(this.options.ecmaVersion<6&&this.input.slice(D,q).indexOf("\\")!==-1)){var de=this.strict?this.reservedWordsStrict:this.reservedWords;de.test(X)&&(!this.inAsync&&X==="await"&&this.raiseRecoverable(D,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(D,"The keyword '"+X+"' is reserved"))}},_.parseIdent=function(y){var D=this.parseIdentNode();return this.next(!!y),this.finishNode(D,"Identifier"),y||(this.checkUnreserved(D),D.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=D.start)),D},_.parseIdentNode=function(){var y=this.startNode();return this.type===E.name?y.name=this.value:this.type.keyword?(y.name=this.type.keyword,(y.name==="class"||y.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=E.name):this.unexpected(),y},_.parsePrivateIdent=function(){var y=this.startNode();return this.type===E.privateId?y.name=this.value:this.unexpected(),this.next(),this.finishNode(y,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(y.start,"Private field '#"+y.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(y)),y},_.parseYield=function(y){this.yieldPos||(this.yieldPos=this.start);var D=this.startNode();return this.next(),this.type===E.semi||this.canInsertSemicolon()||this.type!==E.star&&!this.type.startsExpr?(D.delegate=!1,D.argument=null):(D.delegate=this.eat(E.star),D.argument=this.parseMaybeAssign(y)),this.finishNode(D,"YieldExpression")},_.parseAwait=function(y){this.awaitPos||(this.awaitPos=this.start);var D=this.startNode();return this.next(),D.argument=this.parseMaybeUnary(null,!0,!1,y),this.finishNode(D,"AwaitExpression")};var we=st.prototype;we.raise=function(y,D){var q=re(this.input,y);D+=" ("+q.line+":"+q.column+")",this.sourceFile&&(D+=" in "+this.sourceFile);var X=new SyntaxError(D);throw X.pos=y,X.loc=q,X.raisedAt=this.pos,X},we.raiseRecoverable=we.raise,we.curPosition=function(){if(this.options.locations)return new H(this.curLine,this.pos-this.lineStart)};var Pe=st.prototype,ze=function(D){this.flags=D,this.var=[],this.lexical=[],this.functions=[]};Pe.enterScope=function(y){this.scopeStack.push(new ze(y))},Pe.exitScope=function(){this.scopeStack.pop()},Pe.treatFunctionsAsVarInScope=function(y){return y.flags&oe||!this.inModule&&y.flags&ue},Pe.declareName=function(y,D,q){var X=!1;if(D===Le){var de=this.currentScope();X=de.lexical.indexOf(y)>-1||de.functions.indexOf(y)>-1||de.var.indexOf(y)>-1,de.lexical.push(y),this.inModule&&de.flags&ue&&delete this.undefinedExports[y]}else if(D===Qe){var qe=this.currentScope();qe.lexical.push(y)}else if(D===U){var We=this.currentScope();this.treatFunctionsAsVar?X=We.lexical.indexOf(y)>-1:X=We.lexical.indexOf(y)>-1||We.var.indexOf(y)>-1,We.functions.push(y)}else for(var at=this.scopeStack.length-1;at>=0;--at){var lt=this.scopeStack[at];if(lt.lexical.indexOf(y)>-1&&!(lt.flags&ge&<.lexical[0]===y)||!this.treatFunctionsAsVarInScope(lt)&<.functions.indexOf(y)>-1){X=!0;break}if(lt.var.push(y),this.inModule&<.flags&ue&&delete this.undefinedExports[y],lt.flags&$)break}X&&this.raiseRecoverable(q,"Identifier '"+y+"' has already been declared")},Pe.checkLocalExport=function(y){this.scopeStack[0].lexical.indexOf(y.name)===-1&&this.scopeStack[0].var.indexOf(y.name)===-1&&(this.undefinedExports[y.name]=y)},Pe.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Pe.currentVarScope=function(){for(var y=this.scopeStack.length-1;;y--){var D=this.scopeStack[y];if(D.flags&($|Re|Q))return D}},Pe.currentThisScope=function(){for(var y=this.scopeStack.length-1;;y--){var D=this.scopeStack[y];if(D.flags&($|Re|Q)&&!(D.flags&ye))return D}};var Ye=function(D,q,X){this.type="",this.start=q,this.end=0,D.options.locations&&(this.loc=new ae(D,X)),D.options.directSourceFile&&(this.sourceFile=D.options.directSourceFile),D.options.ranges&&(this.range=[q,0])},et=st.prototype;et.startNode=function(){return new Ye(this,this.start,this.startLoc)},et.startNodeAt=function(y,D){return new Ye(this,y,D)};function pe(y,D,q,X){return y.type=D,y.end=q,this.options.locations&&(y.loc.end=X),this.options.ranges&&(y.range[1]=q),y}et.finishNode=function(y,D){return pe.call(this,y,D,this.lastTokEnd,this.lastTokEndLoc)},et.finishNodeAt=function(y,D,q,X){return pe.call(this,y,D,q,X)},et.copyNode=function(y){var D=new Ye(this,y.start,this.startLoc);for(var q in y)D[q]=y[q];return D};var se="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",xe="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",_e=xe+" Extended_Pictographic",Be=_e,Ze=Be+" EBase EComp EMod EPres ExtPict",Oe=Ze,He=Oe,tt={9:xe,10:_e,11:Be,12:Ze,13:Oe,14:He},Ve="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",it={9:"",10:"",11:"",12:"",13:"",14:Ve},pt="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",vt="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ft=vt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",gt=ft+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ct=gt+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Et=Ct+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Tt=Et+" "+se,_t={9:vt,10:ft,11:gt,12:Ct,13:Et,14:Tt},kt={};function Wt(y){var D=kt[y]={binary:G(tt[y]+" "+pt),binaryOfStrings:G(it[y]),nonBinary:{General_Category:G(pt),Script:G(_t[y])}};D.nonBinary.Script_Extensions=D.nonBinary.Script,D.nonBinary.gc=D.nonBinary.General_Category,D.nonBinary.sc=D.nonBinary.Script,D.nonBinary.scx=D.nonBinary.Script_Extensions}for(var zt=0,Ot=[9,10,11,12,13,14];zt<Ot.length;zt+=1){var $t=Ot[zt];Wt($t)}var ut=st.prototype,Mt=function(D,q){this.parent=D,this.base=q||this};Mt.prototype.separatedFrom=function(D){for(var q=this;q;q=q.parent)for(var X=D;X;X=X.parent)if(q.base===X.base&&q!==X)return!0;return!1},Mt.prototype.sibling=function(){return new Mt(this.parent,this.base)};var Lt=function(D){this.parser=D,this.validFlags="gim"+(D.options.ecmaVersion>=6?"uy":"")+(D.options.ecmaVersion>=9?"s":"")+(D.options.ecmaVersion>=13?"d":"")+(D.options.ecmaVersion>=15?"v":""),this.unicodeProperties=kt[D.options.ecmaVersion>=14?14:D.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Lt.prototype.reset=function(D,q,X){var de=X.indexOf("v")!==-1,qe=X.indexOf("u")!==-1;this.start=D|0,this.source=q+"",this.flags=X,de&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=qe&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=qe&&this.parser.options.ecmaVersion>=9)},Lt.prototype.raise=function(D){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+D)},Lt.prototype.at=function(D,q){q===void 0&&(q=!1);var X=this.source,de=X.length;if(D>=de)return-1;var qe=X.charCodeAt(D);if(!(q||this.switchU)||qe<=55295||qe>=57344||D+1>=de)return qe;var We=X.charCodeAt(D+1);return We>=56320&&We<=57343?(qe<<10)+We-56613888:qe},Lt.prototype.nextIndex=function(D,q){q===void 0&&(q=!1);var X=this.source,de=X.length;if(D>=de)return de;var qe=X.charCodeAt(D),We;return!(q||this.switchU)||qe<=55295||qe>=57344||D+1>=de||(We=X.charCodeAt(D+1))<56320||We>57343?D+1:D+2},Lt.prototype.current=function(D){return D===void 0&&(D=!1),this.at(this.pos,D)},Lt.prototype.lookahead=function(D){return D===void 0&&(D=!1),this.at(this.nextIndex(this.pos,D),D)},Lt.prototype.advance=function(D){D===void 0&&(D=!1),this.pos=this.nextIndex(this.pos,D)},Lt.prototype.eat=function(D,q){return q===void 0&&(q=!1),this.current(q)===D?(this.advance(q),!0):!1},Lt.prototype.eatChars=function(D,q){q===void 0&&(q=!1);for(var X=this.pos,de=0,qe=D;de<qe.length;de+=1){var We=qe[de],at=this.at(X,q);if(at===-1||at!==We)return!1;X=this.nextIndex(X,q)}return this.pos=X,!0},ut.validateRegExpFlags=function(y){for(var D=y.validFlags,q=y.flags,X=!1,de=!1,qe=0;qe<q.length;qe++){var We=q.charAt(qe);D.indexOf(We)===-1&&this.raise(y.start,"Invalid regular expression flag"),q.indexOf(We,qe+1)>-1&&this.raise(y.start,"Duplicate regular expression flag"),We==="u"&&(X=!0),We==="v"&&(de=!0)}this.options.ecmaVersion>=15&&X&&de&&this.raise(y.start,"Invalid regular expression flag")};function Er(y){for(var D in y)return!0;return!1}ut.validateRegExpPattern=function(y){this.regexp_pattern(y),!y.switchN&&this.options.ecmaVersion>=9&&Er(y.groupNames)&&(y.switchN=!0,this.regexp_pattern(y))},ut.regexp_pattern=function(y){y.pos=0,y.lastIntValue=0,y.lastStringValue="",y.lastAssertionIsQuantifiable=!1,y.numCapturingParens=0,y.maxBackReference=0,y.groupNames=Object.create(null),y.backReferenceNames.length=0,y.branchID=null,this.regexp_disjunction(y),y.pos!==y.source.length&&(y.eat(41)&&y.raise("Unmatched ')'"),(y.eat(93)||y.eat(125))&&y.raise("Lone quantifier brackets")),y.maxBackReference>y.numCapturingParens&&y.raise("Invalid escape");for(var D=0,q=y.backReferenceNames;D<q.length;D+=1){var X=q[D];y.groupNames[X]||y.raise("Invalid named capture referenced")}},ut.regexp_disjunction=function(y){var D=this.options.ecmaVersion>=16;for(D&&(y.branchID=new Mt(y.branchID,null)),this.regexp_alternative(y);y.eat(124);)D&&(y.branchID=y.branchID.sibling()),this.regexp_alternative(y);D&&(y.branchID=y.branchID.parent),this.regexp_eatQuantifier(y,!0)&&y.raise("Nothing to repeat"),y.eat(123)&&y.raise("Lone quantifier brackets")},ut.regexp_alternative=function(y){for(;y.pos<y.source.length&&this.regexp_eatTerm(y););},ut.regexp_eatTerm=function(y){return this.regexp_eatAssertion(y)?(y.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(y)&&y.switchU&&y.raise("Invalid quantifier"),!0):(y.switchU?this.regexp_eatAtom(y):this.regexp_eatExtendedAtom(y))?(this.regexp_eatQuantifier(y),!0):!1},ut.regexp_eatAssertion=function(y){var D=y.pos;if(y.lastAssertionIsQuantifiable=!1,y.eat(94)||y.eat(36))return!0;if(y.eat(92)){if(y.eat(66)||y.eat(98))return!0;y.pos=D}if(y.eat(40)&&y.eat(63)){var q=!1;if(this.options.ecmaVersion>=9&&(q=y.eat(60)),y.eat(61)||y.eat(33))return this.regexp_disjunction(y),y.eat(41)||y.raise("Unterminated group"),y.lastAssertionIsQuantifiable=!q,!0}return y.pos=D,!1},ut.regexp_eatQuantifier=function(y,D){return D===void 0&&(D=!1),this.regexp_eatQuantifierPrefix(y,D)?(y.eat(63),!0):!1},ut.regexp_eatQuantifierPrefix=function(y,D){return y.eat(42)||y.eat(43)||y.eat(63)||this.regexp_eatBracedQuantifier(y,D)},ut.regexp_eatBracedQuantifier=function(y,D){var q=y.pos;if(y.eat(123)){var X=0,de=-1;if(this.regexp_eatDecimalDigits(y)&&(X=y.lastIntValue,y.eat(44)&&this.regexp_eatDecimalDigits(y)&&(de=y.lastIntValue),y.eat(125)))return de!==-1&&de<X&&!D&&y.raise("numbers out of order in {} quantifier"),!0;y.switchU&&!D&&y.raise("Incomplete quantifier"),y.pos=q}return!1},ut.regexp_eatAtom=function(y){return this.regexp_eatPatternCharacters(y)||y.eat(46)||this.regexp_eatReverseSolidusAtomEscape(y)||this.regexp_eatCharacterClass(y)||this.regexp_eatUncapturingGroup(y)||this.regexp_eatCapturingGroup(y)},ut.regexp_eatReverseSolidusAtomEscape=function(y){var D=y.pos;if(y.eat(92)){if(this.regexp_eatAtomEscape(y))return!0;y.pos=D}return!1},ut.regexp_eatUncapturingGroup=function(y){var D=y.pos;if(y.eat(40)){if(y.eat(63)){if(this.options.ecmaVersion>=16){var q=this.regexp_eatModifiers(y),X=y.eat(45);if(q||X){for(var de=0;de<q.length;de++){var qe=q.charAt(de);q.indexOf(qe,de+1)>-1&&y.raise("Duplicate regular expression modifiers")}if(X){var We=this.regexp_eatModifiers(y);!q&&!We&&y.current()===58&&y.raise("Invalid regular expression modifiers");for(var at=0;at<We.length;at++){var lt=We.charAt(at);(We.indexOf(lt,at+1)>-1||q.indexOf(lt)>-1)&&y.raise("Duplicate regular expression modifiers")}}}}if(y.eat(58)){if(this.regexp_disjunction(y),y.eat(41))return!0;y.raise("Unterminated group")}}y.pos=D}return!1},ut.regexp_eatCapturingGroup=function(y){if(y.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(y):y.current()===63&&y.raise("Invalid group"),this.regexp_disjunction(y),y.eat(41))return y.numCapturingParens+=1,!0;y.raise("Unterminated group")}return!1},ut.regexp_eatModifiers=function(y){for(var D="",q=0;(q=y.current())!==-1&&Sr(q);)D+=L(q),y.advance();return D};function Sr(y){return y===105||y===109||y===115}ut.regexp_eatExtendedAtom=function(y){return y.eat(46)||this.regexp_eatReverseSolidusAtomEscape(y)||this.regexp_eatCharacterClass(y)||this.regexp_eatUncapturingGroup(y)||this.regexp_eatCapturingGroup(y)||this.regexp_eatInvalidBracedQuantifier(y)||this.regexp_eatExtendedPatternCharacter(y)},ut.regexp_eatInvalidBracedQuantifier=function(y){return this.regexp_eatBracedQuantifier(y,!0)&&y.raise("Nothing to repeat"),!1},ut.regexp_eatSyntaxCharacter=function(y){var D=y.current();return Qt(D)?(y.lastIntValue=D,y.advance(),!0):!1};function Qt(y){return y===36||y>=40&&y<=43||y===46||y===63||y>=91&&y<=94||y>=123&&y<=125}ut.regexp_eatPatternCharacters=function(y){for(var D=y.pos,q=0;(q=y.current())!==-1&&!Qt(q);)y.advance();return y.pos!==D},ut.regexp_eatExtendedPatternCharacter=function(y){var D=y.current();return D!==-1&&D!==36&&!(D>=40&&D<=43)&&D!==46&&D!==63&&D!==91&&D!==94&&D!==124?(y.advance(),!0):!1},ut.regexp_groupSpecifier=function(y){if(y.eat(63)){this.regexp_eatGroupName(y)||y.raise("Invalid group");var D=this.options.ecmaVersion>=16,q=y.groupNames[y.lastStringValue];if(q)if(D)for(var X=0,de=q;X<de.length;X+=1){var qe=de[X];qe.separatedFrom(y.branchID)||y.raise("Duplicate capture group name")}else y.raise("Duplicate capture group name");D?(q||(y.groupNames[y.lastStringValue]=[])).push(y.branchID):y.groupNames[y.lastStringValue]=!0}},ut.regexp_eatGroupName=function(y){if(y.lastStringValue="",y.eat(60)){if(this.regexp_eatRegExpIdentifierName(y)&&y.eat(62))return!0;y.raise("Invalid capture group name")}return!1},ut.regexp_eatRegExpIdentifierName=function(y){if(y.lastStringValue="",this.regexp_eatRegExpIdentifierStart(y)){for(y.lastStringValue+=L(y.lastIntValue);this.regexp_eatRegExpIdentifierPart(y);)y.lastStringValue+=L(y.lastIntValue);return!0}return!1},ut.regexp_eatRegExpIdentifierStart=function(y){var D=y.pos,q=this.options.ecmaVersion>=11,X=y.current(q);return y.advance(q),X===92&&this.regexp_eatRegExpUnicodeEscapeSequence(y,q)&&(X=y.lastIntValue),cr(X)?(y.lastIntValue=X,!0):(y.pos=D,!1)};function cr(y){return l(y,!0)||y===36||y===95}ut.regexp_eatRegExpIdentifierPart=function(y){var D=y.pos,q=this.options.ecmaVersion>=11,X=y.current(q);return y.advance(q),X===92&&this.regexp_eatRegExpUnicodeEscapeSequence(y,q)&&(X=y.lastIntValue),rr(X)?(y.lastIntValue=X,!0):(y.pos=D,!1)};function rr(y){return g(y,!0)||y===36||y===95||y===8204||y===8205}ut.regexp_eatAtomEscape=function(y){return this.regexp_eatBackReference(y)||this.regexp_eatCharacterClassEscape(y)||this.regexp_eatCharacterEscape(y)||y.switchN&&this.regexp_eatKGroupName(y)?!0:(y.switchU&&(y.current()===99&&y.raise("Invalid unicode escape"),y.raise("Invalid escape")),!1)},ut.regexp_eatBackReference=function(y){var D=y.pos;if(this.regexp_eatDecimalEscape(y)){var q=y.lastIntValue;if(y.switchU)return q>y.maxBackReference&&(y.maxBackReference=q),!0;if(q<=y.numCapturingParens)return!0;y.pos=D}return!1},ut.regexp_eatKGroupName=function(y){if(y.eat(107)){if(this.regexp_eatGroupName(y))return y.backReferenceNames.push(y.lastStringValue),!0;y.raise("Invalid named reference")}return!1},ut.regexp_eatCharacterEscape=function(y){return this.regexp_eatControlEscape(y)||this.regexp_eatCControlLetter(y)||this.regexp_eatZero(y)||this.regexp_eatHexEscapeSequence(y)||this.regexp_eatRegExpUnicodeEscapeSequence(y,!1)||!y.switchU&&this.regexp_eatLegacyOctalEscapeSequence(y)||this.regexp_eatIdentityEscape(y)},ut.regexp_eatCControlLetter=function(y){var D=y.pos;if(y.eat(99)){if(this.regexp_eatControlLetter(y))return!0;y.pos=D}return!1},ut.regexp_eatZero=function(y){return y.current()===48&&!dr(y.lookahead())?(y.lastIntValue=0,y.advance(),!0):!1},ut.regexp_eatControlEscape=function(y){var D=y.current();return D===116?(y.lastIntValue=9,y.advance(),!0):D===110?(y.lastIntValue=10,y.advance(),!0):D===118?(y.lastIntValue=11,y.advance(),!0):D===102?(y.lastIntValue=12,y.advance(),!0):D===114?(y.lastIntValue=13,y.advance(),!0):!1},ut.regexp_eatControlLetter=function(y){var D=y.current();return fr(D)?(y.lastIntValue=D%32,y.advance(),!0):!1};function fr(y){return y>=65&&y<=90||y>=97&&y<=122}ut.regexp_eatRegExpUnicodeEscapeSequence=function(y,D){D===void 0&&(D=!1);var q=y.pos,X=D||y.switchU;if(y.eat(117)){if(this.regexp_eatFixedHexDigits(y,4)){var de=y.lastIntValue;if(X&&de>=55296&&de<=56319){var qe=y.pos;if(y.eat(92)&&y.eat(117)&&this.regexp_eatFixedHexDigits(y,4)){var We=y.lastIntValue;if(We>=56320&&We<=57343)return y.lastIntValue=(de-55296)*1024+(We-56320)+65536,!0}y.pos=qe,y.lastIntValue=de}return!0}if(X&&y.eat(123)&&this.regexp_eatHexDigits(y)&&y.eat(125)&&br(y.lastIntValue))return!0;X&&y.raise("Invalid unicode escape"),y.pos=q}return!1};function br(y){return y>=0&&y<=1114111}ut.regexp_eatIdentityEscape=function(y){if(y.switchU)return this.regexp_eatSyntaxCharacter(y)?!0:y.eat(47)?(y.lastIntValue=47,!0):!1;var D=y.current();return D!==99&&(!y.switchN||D!==107)?(y.lastIntValue=D,y.advance(),!0):!1},ut.regexp_eatDecimalEscape=function(y){y.lastIntValue=0;var D=y.current();if(D>=49&&D<=57){do y.lastIntValue=10*y.lastIntValue+(D-48),y.advance();while((D=y.current())>=48&&D<=57);return!0}return!1};var Zt=0,Gt=1,jt=2;ut.regexp_eatCharacterClassEscape=function(y){var D=y.current();if(Nr(D))return y.lastIntValue=-1,y.advance(),Gt;var q=!1;if(y.switchU&&this.options.ecmaVersion>=9&&((q=D===80)||D===112)){y.lastIntValue=-1,y.advance();var X;if(y.eat(123)&&(X=this.regexp_eatUnicodePropertyValueExpression(y))&&y.eat(125))return q&&X===jt&&y.raise("Invalid property name"),X;y.raise("Invalid property name")}return Zt};function Nr(y){return y===100||y===68||y===115||y===83||y===119||y===87}ut.regexp_eatUnicodePropertyValueExpression=function(y){var D=y.pos;if(this.regexp_eatUnicodePropertyName(y)&&y.eat(61)){var q=y.lastStringValue;if(this.regexp_eatUnicodePropertyValue(y)){var X=y.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(y,q,X),Gt}}if(y.pos=D,this.regexp_eatLoneUnicodePropertyNameOrValue(y)){var de=y.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(y,de)}return Zt},ut.regexp_validateUnicodePropertyNameAndValue=function(y,D,q){j(y.unicodeProperties.nonBinary,D)||y.raise("Invalid property name"),y.unicodeProperties.nonBinary[D].test(q)||y.raise("Invalid property value")},ut.regexp_validateUnicodePropertyNameOrValue=function(y,D){if(y.unicodeProperties.binary.test(D))return Gt;if(y.switchV&&y.unicodeProperties.binaryOfStrings.test(D))return jt;y.raise("Invalid property name")},ut.regexp_eatUnicodePropertyName=function(y){var D=0;for(y.lastStringValue="";Mr(D=y.current());)y.lastStringValue+=L(D),y.advance();return y.lastStringValue!==""};function Mr(y){return fr(y)||y===95}ut.regexp_eatUnicodePropertyValue=function(y){var D=0;for(y.lastStringValue="";jr(D=y.current());)y.lastStringValue+=L(D),y.advance();return y.lastStringValue!==""};function jr(y){return Mr(y)||dr(y)}ut.regexp_eatLoneUnicodePropertyNameOrValue=function(y){return this.regexp_eatUnicodePropertyValue(y)},ut.regexp_eatCharacterClass=function(y){if(y.eat(91)){var D=y.eat(94),q=this.regexp_classContents(y);return y.eat(93)||y.raise("Unterminated character class"),D&&q===jt&&y.raise("Negated character class may contain strings"),!0}return!1},ut.regexp_classContents=function(y){return y.current()===93?Gt:y.switchV?this.regexp_classSetExpression(y):(this.regexp_nonEmptyClassRanges(y),Gt)},ut.regexp_nonEmptyClassRanges=function(y){for(;this.regexp_eatClassAtom(y);){var D=y.lastIntValue;if(y.eat(45)&&this.regexp_eatClassAtom(y)){var q=y.lastIntValue;y.switchU&&(D===-1||q===-1)&&y.raise("Invalid character class"),D!==-1&&q!==-1&&D>q&&y.raise("Range out of order in character class")}}},ut.regexp_eatClassAtom=function(y){var D=y.pos;if(y.eat(92)){if(this.regexp_eatClassEscape(y))return!0;if(y.switchU){var q=y.current();(q===99||Rr(q))&&y.raise("Invalid class escape"),y.raise("Invalid escape")}y.pos=D}var X=y.current();return X!==93?(y.lastIntValue=X,y.advance(),!0):!1},ut.regexp_eatClassEscape=function(y){var D=y.pos;if(y.eat(98))return y.lastIntValue=8,!0;if(y.switchU&&y.eat(45))return y.lastIntValue=45,!0;if(!y.switchU&&y.eat(99)){if(this.regexp_eatClassControlLetter(y))return!0;y.pos=D}return this.regexp_eatCharacterClassEscape(y)||this.regexp_eatCharacterEscape(y)},ut.regexp_classSetExpression=function(y){var D=Gt,q;if(!this.regexp_eatClassSetRange(y))if(q=this.regexp_eatClassSetOperand(y)){q===jt&&(D=jt);for(var X=y.pos;y.eatChars([38,38]);){if(y.current()!==38&&(q=this.regexp_eatClassSetOperand(y))){q!==jt&&(D=Gt);continue}y.raise("Invalid character in character class")}if(X!==y.pos)return D;for(;y.eatChars([45,45]);)this.regexp_eatClassSetOperand(y)||y.raise("Invalid character in character class");if(X!==y.pos)return D}else y.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(y)){if(q=this.regexp_eatClassSetOperand(y),!q)return D;q===jt&&(D=jt)}},ut.regexp_eatClassSetRange=function(y){var D=y.pos;if(this.regexp_eatClassSetCharacter(y)){var q=y.lastIntValue;if(y.eat(45)&&this.regexp_eatClassSetCharacter(y)){var X=y.lastIntValue;return q!==-1&&X!==-1&&q>X&&y.raise("Range out of order in character class"),!0}y.pos=D}return!1},ut.regexp_eatClassSetOperand=function(y){return this.regexp_eatClassSetCharacter(y)?Gt:this.regexp_eatClassStringDisjunction(y)||this.regexp_eatNestedClass(y)},ut.regexp_eatNestedClass=function(y){var D=y.pos;if(y.eat(91)){var q=y.eat(94),X=this.regexp_classContents(y);if(y.eat(93))return q&&X===jt&&y.raise("Negated character class may contain strings"),X;y.pos=D}if(y.eat(92)){var de=this.regexp_eatCharacterClassEscape(y);if(de)return de;y.pos=D}return null},ut.regexp_eatClassStringDisjunction=function(y){var D=y.pos;if(y.eatChars([92,113])){if(y.eat(123)){var q=this.regexp_classStringDisjunctionContents(y);if(y.eat(125))return q}else y.raise("Invalid escape");y.pos=D}return null},ut.regexp_classStringDisjunctionContents=function(y){for(var D=this.regexp_classString(y);y.eat(124);)this.regexp_classString(y)===jt&&(D=jt);return D},ut.regexp_classString=function(y){for(var D=0;this.regexp_eatClassSetCharacter(y);)D++;return D===1?Gt:jt},ut.regexp_eatClassSetCharacter=function(y){var D=y.pos;if(y.eat(92))return this.regexp_eatCharacterEscape(y)||this.regexp_eatClassSetReservedPunctuator(y)?!0:y.eat(98)?(y.lastIntValue=8,!0):(y.pos=D,!1);var q=y.current();return q<0||q===y.lookahead()&&Fr(q)||an(q)?!1:(y.advance(),y.lastIntValue=q,!0)};function Fr(y){return y===33||y>=35&&y<=38||y>=42&&y<=44||y===46||y>=58&&y<=64||y===94||y===96||y===126}function an(y){return y===40||y===41||y===45||y===47||y>=91&&y<=93||y>=123&&y<=125}ut.regexp_eatClassSetReservedPunctuator=function(y){var D=y.current();return on(D)?(y.lastIntValue=D,y.advance(),!0):!1};function on(y){return y===33||y===35||y===37||y===38||y===44||y===45||y>=58&&y<=62||y===64||y===96||y===126}ut.regexp_eatClassControlLetter=function(y){var D=y.current();return dr(D)||D===95?(y.lastIntValue=D%32,y.advance(),!0):!1},ut.regexp_eatHexEscapeSequence=function(y){var D=y.pos;if(y.eat(120)){if(this.regexp_eatFixedHexDigits(y,2))return!0;y.switchU&&y.raise("Invalid escape"),y.pos=D}return!1},ut.regexp_eatDecimalDigits=function(y){var D=y.pos,q=0;for(y.lastIntValue=0;dr(q=y.current());)y.lastIntValue=10*y.lastIntValue+(q-48),y.advance();return y.pos!==D};function dr(y){return y>=48&&y<=57}ut.regexp_eatHexDigits=function(y){var D=y.pos,q=0;for(y.lastIntValue=0;gr(q=y.current());)y.lastIntValue=16*y.lastIntValue+Ur(q),y.advance();return y.pos!==D};function gr(y){return y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102}function Ur(y){return y>=65&&y<=70?10+(y-65):y>=97&&y<=102?10+(y-97):y-48}ut.regexp_eatLegacyOctalEscapeSequence=function(y){if(this.regexp_eatOctalDigit(y)){var D=y.lastIntValue;if(this.regexp_eatOctalDigit(y)){var q=y.lastIntValue;D<=3&&this.regexp_eatOctalDigit(y)?y.lastIntValue=D*64+q*8+y.lastIntValue:y.lastIntValue=D*8+q}else y.lastIntValue=D;return!0}return!1},ut.regexp_eatOctalDigit=function(y){var D=y.current();return Rr(D)?(y.lastIntValue=D-48,y.advance(),!0):(y.lastIntValue=0,!1)};function Rr(y){return y>=48&&y<=55}ut.regexp_eatFixedHexDigits=function(y,D){var q=y.pos;y.lastIntValue=0;for(var X=0;X<D;++X){var de=y.current();if(!gr(de))return y.pos=q,!1;y.lastIntValue=16*y.lastIntValue+Ur(de),y.advance()}return!0};var pr=function(D){this.type=D.type,this.value=D.value,this.start=D.start,this.end=D.end,D.options.locations&&(this.loc=new ae(D,D.startLoc,D.endLoc)),D.options.ranges&&(this.range=[D.start,D.end])},xt=st.prototype;xt.next=function(y){!y&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new pr(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},xt.getToken=function(){return this.next(),new pr(this)},typeof Symbol<"u"&&(xt[Symbol.iterator]=function(){var y=this;return{next:function(){var D=y.getToken();return{done:D.type===E.eof,value:D}}}}),xt.nextToken=function(){var y=this.curContext();if((!y||!y.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(E.eof);if(y.override)return y.override(this);this.readToken(this.fullCharCodeAtPos())},xt.readToken=function(y){return l(y,this.options.ecmaVersion>=6)||y===92?this.readWord():this.getTokenFromCode(y)},xt.fullCharCodeAtPos=function(){var y=this.input.charCodeAt(this.pos);if(y<=55295||y>=56320)return y;var D=this.input.charCodeAt(this.pos+1);return D<=56319||D>=57344?y:(y<<10)+D-56613888},xt.skipBlockComment=function(){var y=this.options.onComment&&this.curPosition(),D=this.pos,q=this.input.indexOf("*/",this.pos+=2);if(q===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=q+2,this.options.locations)for(var X=void 0,de=D;(X=k(this.input,de,this.pos))>-1;)++this.curLine,de=this.lineStart=X;this.options.onComment&&this.options.onComment(!0,this.input.slice(D+2,q),D,this.pos,y,this.curPosition())},xt.skipLineComment=function(y){for(var D=this.pos,q=this.options.onComment&&this.curPosition(),X=this.input.charCodeAt(this.pos+=y);this.pos<this.input.length&&!A(X);)X=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(D+y,this.pos),D,this.pos,q,this.curPosition())},xt.skipSpace=function(){e:for(;this.pos<this.input.length;){var y=this.input.charCodeAt(this.pos);switch(y){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(y>8&&y<14||y>=5760&&B.test(String.fromCharCode(y)))++this.pos;else break e}}},xt.finishToken=function(y,D){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var q=this.type;this.type=y,this.value=D,this.updateContext(q)},xt.readToken_dot=function(){var y=this.input.charCodeAt(this.pos+1);if(y>=48&&y<=57)return this.readNumber(!0);var D=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&y===46&&D===46?(this.pos+=3,this.finishToken(E.ellipsis)):(++this.pos,this.finishToken(E.dot))},xt.readToken_slash=function(){var y=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):y===61?this.finishOp(E.assign,2):this.finishOp(E.slash,1)},xt.readToken_mult_modulo_exp=function(y){var D=this.input.charCodeAt(this.pos+1),q=1,X=y===42?E.star:E.modulo;return this.options.ecmaVersion>=7&&y===42&&D===42&&(++q,X=E.starstar,D=this.input.charCodeAt(this.pos+2)),D===61?this.finishOp(E.assign,q+1):this.finishOp(X,q)},xt.readToken_pipe_amp=function(y){var D=this.input.charCodeAt(this.pos+1);if(D===y){if(this.options.ecmaVersion>=12){var q=this.input.charCodeAt(this.pos+2);if(q===61)return this.finishOp(E.assign,3)}return this.finishOp(y===124?E.logicalOR:E.logicalAND,2)}return D===61?this.finishOp(E.assign,2):this.finishOp(y===124?E.bitwiseOR:E.bitwiseAND,1)},xt.readToken_caret=function(){var y=this.input.charCodeAt(this.pos+1);return y===61?this.finishOp(E.assign,2):this.finishOp(E.bitwiseXOR,1)},xt.readToken_plus_min=function(y){var D=this.input.charCodeAt(this.pos+1);return D===y?D===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||T.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(E.incDec,2):D===61?this.finishOp(E.assign,2):this.finishOp(E.plusMin,1)},xt.readToken_lt_gt=function(y){var D=this.input.charCodeAt(this.pos+1),q=1;return D===y?(q=y===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+q)===61?this.finishOp(E.assign,q+1):this.finishOp(E.bitShift,q)):D===33&&y===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(D===61&&(q=2),this.finishOp(E.relational,q))},xt.readToken_eq_excl=function(y){var D=this.input.charCodeAt(this.pos+1);return D===61?this.finishOp(E.equality,this.input.charCodeAt(this.pos+2)===61?3:2):y===61&&D===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(E.arrow)):this.finishOp(y===61?E.eq:E.prefix,1)},xt.readToken_question=function(){var y=this.options.ecmaVersion;if(y>=11){var D=this.input.charCodeAt(this.pos+1);if(D===46){var q=this.input.charCodeAt(this.pos+2);if(q<48||q>57)return this.finishOp(E.questionDot,2)}if(D===63){if(y>=12){var X=this.input.charCodeAt(this.pos+2);if(X===61)return this.finishOp(E.assign,3)}return this.finishOp(E.coalesce,2)}}return this.finishOp(E.question,1)},xt.readToken_numberSign=function(){var y=this.options.ecmaVersion,D=35;if(y>=13&&(++this.pos,D=this.fullCharCodeAtPos(),l(D,!0)||D===92))return this.finishToken(E.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+L(D)+"'")},xt.getTokenFromCode=function(y){switch(y){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(E.parenL);case 41:return++this.pos,this.finishToken(E.parenR);case 59:return++this.pos,this.finishToken(E.semi);case 44:return++this.pos,this.finishToken(E.comma);case 91:return++this.pos,this.finishToken(E.bracketL);case 93:return++this.pos,this.finishToken(E.bracketR);case 123:return++this.pos,this.finishToken(E.braceL);case 125:return++this.pos,this.finishToken(E.braceR);case 58:return++this.pos,this.finishToken(E.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(E.backQuote);case 48:var D=this.input.charCodeAt(this.pos+1);if(D===120||D===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(D===111||D===79)return this.readRadixNumber(8);if(D===98||D===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(y);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(y);case 124:case 38:return this.readToken_pipe_amp(y);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(y);case 60:case 62:return this.readToken_lt_gt(y);case 61:case 33:return this.readToken_eq_excl(y);case 63:return this.readToken_question();case 126:return this.finishOp(E.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+L(y)+"'")},xt.finishOp=function(y,D){var q=this.input.slice(this.pos,this.pos+D);return this.pos+=D,this.finishToken(y,q)},xt.readRegexp=function(){for(var y,D,q=this.pos;;){this.pos>=this.input.length&&this.raise(q,"Unterminated regular expression");var X=this.input.charAt(this.pos);if(T.test(X)&&this.raise(q,"Unterminated regular expression"),y)y=!1;else{if(X==="[")D=!0;else if(X==="]"&&D)D=!1;else if(X==="/"&&!D)break;y=X==="\\"}++this.pos}var de=this.input.slice(q,this.pos);++this.pos;var qe=this.pos,We=this.readWord1();this.containsEsc&&this.unexpected(qe);var at=this.regexpState||(this.regexpState=new Lt(this));at.reset(q,de,We),this.validateRegExpFlags(at),this.validateRegExpPattern(at);var lt=null;try{lt=new RegExp(de,We)}catch{}return this.finishToken(E.regexp,{pattern:de,flags:We,value:lt})},xt.readInt=function(y,D,q){for(var X=this.options.ecmaVersion>=12&&D===void 0,de=q&&this.input.charCodeAt(this.pos)===48,qe=this.pos,We=0,at=0,lt=0,yt=D??1/0;lt<yt;++lt,++this.pos){var St=this.input.charCodeAt(this.pos),At=void 0;if(X&&St===95){de&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),at===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),lt===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),at=St;continue}if(St>=97?At=St-97+10:St>=65?At=St-65+10:St>=48&&St<=57?At=St-48:At=1/0,At>=y)break;at=St,We=We*y+At}return X&&at===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===qe||D!=null&&this.pos-qe!==D?null:We};function ln(y,D){return D?parseInt(y,8):parseFloat(y.replace(/_/g,""))}function qr(y){return typeof BigInt!="function"?null:BigInt(y.replace(/_/g,""))}xt.readRadixNumber=function(y){var D=this.pos;this.pos+=2;var q=this.readInt(y);return q==null&&this.raise(this.start+2,"Expected number in radix "+y),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(q=qr(this.input.slice(D,this.pos)),++this.pos):l(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(E.num,q)},xt.readNumber=function(y){var D=this.pos;!y&&this.readInt(10,void 0,!0)===null&&this.raise(D,"Invalid number");var q=this.pos-D>=2&&this.input.charCodeAt(D)===48;q&&this.strict&&this.raise(D,"Invalid number");var X=this.input.charCodeAt(this.pos);if(!q&&!y&&this.options.ecmaVersion>=11&&X===110){var de=qr(this.input.slice(D,this.pos));return++this.pos,l(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(E.num,de)}q&&/[89]/.test(this.input.slice(D,this.pos))&&(q=!1),X===46&&!q&&(++this.pos,this.readInt(10),X=this.input.charCodeAt(this.pos)),(X===69||X===101)&&!q&&(X=this.input.charCodeAt(++this.pos),(X===43||X===45)&&++this.pos,this.readInt(10)===null&&this.raise(D,"Invalid number")),l(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var qe=ln(this.input.slice(D,this.pos),q);return this.finishToken(E.num,qe)},xt.readCodePoint=function(){var y=this.input.charCodeAt(this.pos),D;if(y===123){this.options.ecmaVersion<6&&this.unexpected();var q=++this.pos;D=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,D>1114111&&this.invalidStringToken(q,"Code point out of bounds")}else D=this.readHexChar(4);return D},xt.readString=function(y){for(var D="",q=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var X=this.input.charCodeAt(this.pos);if(X===y)break;X===92?(D+=this.input.slice(q,this.pos),D+=this.readEscapedChar(!1),q=this.pos):X===8232||X===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(A(X)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return D+=this.input.slice(q,this.pos++),this.finishToken(E.string,D)};var Ge={};xt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(y){if(y===Ge)this.readInvalidTemplateToken();else throw y}this.inTemplateElement=!1},xt.invalidStringToken=function(y,D){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ge;this.raise(y,D)},xt.readTmplToken=function(){for(var y="",D=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var q=this.input.charCodeAt(this.pos);if(q===96||q===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===E.template||this.type===E.invalidTemplate)?q===36?(this.pos+=2,this.finishToken(E.dollarBraceL)):(++this.pos,this.finishToken(E.backQuote)):(y+=this.input.slice(D,this.pos),this.finishToken(E.template,y));if(q===92)y+=this.input.slice(D,this.pos),y+=this.readEscapedChar(!0),D=this.pos;else if(A(q)){switch(y+=this.input.slice(D,this.pos),++this.pos,q){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:y+=`
|
|
6
|
+
`;break;default:y+=String.fromCharCode(q);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),D=this.pos}else++this.pos}},xt.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(E.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
7
|
+
`&&++this.pos;case`
|
|
8
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},xt.readEscapedChar=function(y){var D=this.input.charCodeAt(++this.pos);switch(++this.pos,D){case 110:return`
|
|
9
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return L(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),y){var q=this.pos-1;this.invalidStringToken(q,"Invalid escape sequence in template string")}default:if(D>=48&&D<=55){var X=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],de=parseInt(X,8);return de>255&&(X=X.slice(0,-1),de=parseInt(X,8)),this.pos+=X.length-1,D=this.input.charCodeAt(this.pos),(X!=="0"||D===56||D===57)&&(this.strict||y)&&this.invalidStringToken(this.pos-1-X.length,y?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(de)}return A(D)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(D)}},xt.readHexChar=function(y){var D=this.pos,q=this.readInt(16,y);return q===null&&this.invalidStringToken(D,"Bad character escape sequence"),q},xt.readWord1=function(){this.containsEsc=!1;for(var y="",D=!0,q=this.pos,X=this.options.ecmaVersion>=6;this.pos<this.input.length;){var de=this.fullCharCodeAtPos();if(g(de,X))this.pos+=de<=65535?1:2;else if(de===92){this.containsEsc=!0,y+=this.input.slice(q,this.pos);var qe=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var We=this.readCodePoint();(D?l:g)(We,X)||this.invalidStringToken(qe,"Invalid Unicode escape"),y+=L(We),q=this.pos}else break;D=!1}return y+this.input.slice(q,this.pos)},xt.readWord=function(){var y=this.readWord1(),D=E.name;return this.keywords.test(y)&&(D=w[y]),this.finishToken(D,y)};var M="8.15.0";st.acorn={Parser:st,version:M,defaultOptions:De,Position:H,SourceLocation:ae,getLineInfo:re,Node:Ye,TokenType:d,tokTypes:E,keywordTypes:w,TokContext:le,tokContexts:Ee,isIdentifierChar:g,isIdentifierStart:l,Token:pr,isNewLine:A,lineBreak:T,lineBreakG:x,nonASCIIwhitespace:B};function Z(y,D){return st.parse(y,D)}function me(y,D,q){return st.parseExpressionAt(y,D,q)}function je(y,D){return st.tokenizer(y,D)}n.Node=Ye,n.Parser=st,n.Position=H,n.SourceLocation=ae,n.TokContext=le,n.Token=pr,n.TokenType=d,n.defaultOptions=De,n.getLineInfo=re,n.isIdentifierChar=g,n.isIdentifierStart=l,n.isNewLine=A,n.keywordTypes=w,n.lineBreak=T,n.lineBreakG=x,n.nonASCIIwhitespace=B,n.parse=Z,n.parseExpressionAt=me,n.tokContexts=Ee,n.tokTypes=E,n.tokenizer=je,n.version=M})}(mn,mn.exports)),mn.exports}var $n={exports:{}},Wn,Wp;function Y0(){return Wp||(Wp=1,Wn={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),Wn}var Gp;function Q0(){return Gp||(Gp=1,function(a){const e=Y0(),n=/^[\da-fA-F]+$/,o=/^\d+$/,t=new WeakMap;function u(r){r=r.Parser.acorn||r;let m=t.get(r);if(!m){const i=r.tokTypes,f=r.TokContext,h=r.TokenType,s=new f("<tag",!1),l=new f("</tag",!1),g=new f("<tag>...</tag>",!0,!0),d={tc_oTag:s,tc_cTag:l,tc_expr:g},v={jsxName:new h("jsxName"),jsxText:new h("jsxText",{beforeExpr:!0}),jsxTagStart:new h("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new h("jsxTagEnd")};v.jsxTagStart.updateContext=function(){this.context.push(g),this.context.push(s),this.exprAllowed=!1},v.jsxTagEnd.updateContext=function(S){let b=this.context.pop();b===s&&S===i.slash||b===l?(this.context.pop(),this.exprAllowed=this.curContext()===g):this.exprAllowed=!0},m={tokContexts:d,tokTypes:v},t.set(r,m)}return m}function p(r){if(!r)return r;if(r.type==="JSXIdentifier")return r.name;if(r.type==="JSXNamespacedName")return r.namespace.name+":"+r.name.name;if(r.type==="JSXMemberExpression")return p(r.object)+"."+p(r.property)}a.exports=function(r){return r=r||{},function(m){return c({allowNamespaces:r.allowNamespaces!==!1,allowNamespacedObjects:!!r.allowNamespacedObjects},m)}},Object.defineProperty(a.exports,"tokTypes",{get:function(){return u(Vn()).tokTypes},configurable:!0,enumerable:!0});function c(r,m){const i=m.acorn||Vn(),f=u(i),h=i.tokTypes,s=f.tokTypes,l=i.tokContexts,g=f.tokContexts.tc_oTag,d=f.tokContexts.tc_cTag,v=f.tokContexts.tc_expr,S=i.isNewLine,b=i.isIdentifierStart,w=i.isIdentifierChar;return class extends m{static get acornJsx(){return f}jsx_readToken(){let C="",E=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let T=this.input.charCodeAt(this.pos);switch(T){case 60:case 123:return this.pos===this.start?T===60&&this.exprAllowed?(++this.pos,this.finishToken(s.jsxTagStart)):this.getTokenFromCode(T):(C+=this.input.slice(E,this.pos),this.finishToken(s.jsxText,C));case 38:C+=this.input.slice(E,this.pos),C+=this.jsx_readEntity(),E=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(T===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:S(T)?(C+=this.input.slice(E,this.pos),C+=this.jsx_readNewLine(!0),E=this.pos):++this.pos}}}jsx_readNewLine(C){let E=this.input.charCodeAt(this.pos),T;return++this.pos,E===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,T=C?`
|
|
10
|
+
`:`\r
|
|
11
|
+
`):T=String.fromCharCode(E),this.options.locations&&(++this.curLine,this.lineStart=this.pos),T}jsx_readString(C){let E="",T=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let x=this.input.charCodeAt(this.pos);if(x===C)break;x===38?(E+=this.input.slice(T,this.pos),E+=this.jsx_readEntity(),T=this.pos):S(x)?(E+=this.input.slice(T,this.pos),E+=this.jsx_readNewLine(!1),T=this.pos):++this.pos}return E+=this.input.slice(T,this.pos++),this.finishToken(h.string,E)}jsx_readEntity(){let C="",E=0,T,x=this.input[this.pos];x!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let A=++this.pos;for(;this.pos<this.input.length&&E++<10;){if(x=this.input[this.pos++],x===";"){C[0]==="#"?C[1]==="x"?(C=C.substr(2),n.test(C)&&(T=String.fromCharCode(parseInt(C,16)))):(C=C.substr(1),o.test(C)&&(T=String.fromCharCode(parseInt(C,10)))):T=e[C];break}C+=x}return T||(this.pos=A,"&")}jsx_readWord(){let C,E=this.pos;do C=this.input.charCodeAt(++this.pos);while(w(C)||C===45);return this.finishToken(s.jsxName,this.input.slice(E,this.pos))}jsx_parseIdentifier(){let C=this.startNode();return this.type===s.jsxName?C.name=this.value:this.type.keyword?C.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(C,"JSXIdentifier")}jsx_parseNamespacedName(){let C=this.start,E=this.startLoc,T=this.jsx_parseIdentifier();if(!r.allowNamespaces||!this.eat(h.colon))return T;var x=this.startNodeAt(C,E);return x.namespace=T,x.name=this.jsx_parseIdentifier(),this.finishNode(x,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===s.jsxTagEnd)return"";let C=this.start,E=this.startLoc,T=this.jsx_parseNamespacedName();for(this.type===h.dot&&T.type==="JSXNamespacedName"&&!r.allowNamespacedObjects&&this.unexpected();this.eat(h.dot);){let x=this.startNodeAt(C,E);x.object=T,x.property=this.jsx_parseIdentifier(),T=this.finishNode(x,"JSXMemberExpression")}return T}jsx_parseAttributeValue(){switch(this.type){case h.braceL:let C=this.jsx_parseExpressionContainer();return C.expression.type==="JSXEmptyExpression"&&this.raise(C.start,"JSX attributes must only be assigned a non-empty expression"),C;case s.jsxTagStart:case h.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let C=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(C,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let C=this.startNode();return this.next(),C.expression=this.type===h.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(h.braceR),this.finishNode(C,"JSXExpressionContainer")}jsx_parseAttribute(){let C=this.startNode();return this.eat(h.braceL)?(this.expect(h.ellipsis),C.argument=this.parseMaybeAssign(),this.expect(h.braceR),this.finishNode(C,"JSXSpreadAttribute")):(C.name=this.jsx_parseNamespacedName(),C.value=this.eat(h.eq)?this.jsx_parseAttributeValue():null,this.finishNode(C,"JSXAttribute"))}jsx_parseOpeningElementAt(C,E){let T=this.startNodeAt(C,E);T.attributes=[];let x=this.jsx_parseElementName();for(x&&(T.name=x);this.type!==h.slash&&this.type!==s.jsxTagEnd;)T.attributes.push(this.jsx_parseAttribute());return T.selfClosing=this.eat(h.slash),this.expect(s.jsxTagEnd),this.finishNode(T,x?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(C,E){let T=this.startNodeAt(C,E),x=this.jsx_parseElementName();return x&&(T.name=x),this.expect(s.jsxTagEnd),this.finishNode(T,x?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(C,E){let T=this.startNodeAt(C,E),x=[],A=this.jsx_parseOpeningElementAt(C,E),k=null;if(!A.selfClosing){e:for(;;)switch(this.type){case s.jsxTagStart:if(C=this.start,E=this.startLoc,this.next(),this.eat(h.slash)){k=this.jsx_parseClosingElementAt(C,E);break e}x.push(this.jsx_parseElementAt(C,E));break;case s.jsxText:x.push(this.parseExprAtom());break;case h.braceL:x.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}p(k.name)!==p(A.name)&&this.raise(k.start,"Expected corresponding JSX closing tag for <"+p(A.name)+">")}let B=A.name?"Element":"Fragment";return T["opening"+B]=A,T["closing"+B]=k,T.children=x,this.type===h.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(T,"JSX"+B)}jsx_parseText(){let C=this.parseLiteral(this.value);return C.type="JSXText",C}jsx_parseElement(){let C=this.start,E=this.startLoc;return this.next(),this.jsx_parseElementAt(C,E)}parseExprAtom(C){return this.type===s.jsxText?this.jsx_parseText():this.type===s.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(C)}readToken(C){let E=this.curContext();if(E===v)return this.jsx_readToken();if(E===g||E===d){if(b(C))return this.jsx_readWord();if(C==62)return++this.pos,this.finishToken(s.jsxTagEnd);if((C===34||C===39)&&E==g)return this.jsx_readString(C)}return C===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(s.jsxTagStart)):super.readToken(C)}updateContext(C){if(this.type==h.braceL){var E=this.curContext();E==g?this.context.push(l.b_expr):E==v?this.context.push(l.b_tmpl):super.updateContext(C),this.exprAllowed=!0}else if(this.type===h.slash&&C===s.jsxTagStart)this.context.length-=2,this.context.push(d),this.exprAllowed=!1;else return super.updateContext(C)}}}}($n)),$n.exports}var Gr={},zp;function Z0(){if(zp)return Gr;zp=1;const a={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source","attributes"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportAttribute:["key","value"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportExpression:["source","options"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},e=Object.keys(a);for(const p of e)Object.freeze(a[p]);Object.freeze(a);const n=new Set(["parent","leadingComments","trailingComments"]);function o(p){return!n.has(p)&&p[0]!=="_"}function t(p){return Object.keys(p).filter(o)}function u(p){const c=Object.assign({},a);for(const r of Object.keys(p))if(Object.hasOwn(c,r)){const m=new Set(p[r]);for(const i of c[r])m.add(i);c[r]=Object.freeze(Array.from(m))}else c[r]=Object.freeze(Array.from(p[r]));return Object.freeze(c)}return Gr.KEYS=a,Gr.getKeys=t,Gr.unionWith=u,Gr}var Hp;function hn(){if(Hp)return er;Hp=1,Object.defineProperty(er,"__esModule",{value:!0});var a=Vn(),e=Q0(),n=Z0();function o(N){return N&&typeof N=="object"&&"default"in N?N:{default:N}}function t(N){if(N&&N.__esModule)return N;var j=Object.create(null);return N&&Object.keys(N).forEach(function(V){if(V!=="default"){var O=Object.getOwnPropertyDescriptor(N,V);Object.defineProperty(j,V,O.get?O:{enumerable:!0,get:function(){return N[V]}})}}),j.default=N,Object.freeze(j)}var u=t(a),p=o(e),c=t(n);const r={Boolean:"Boolean",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function m(N,j){const V=N[0],O=N.at(-1),G={type:r.Template,value:j.slice(V.start,O.end)};return V.loc&&(G.loc={start:V.loc.start,end:O.loc.end}),V.range&&(G.start=V.range[0],G.end=O.range[1],G.range=[G.start,G.end]),G}function i(N,j){this._acornTokTypes=N,this._tokens=[],this._curlyBrace=null,this._code=j}i.prototype={constructor:i,translate(N,j){const V=N.type,O=this._acornTokTypes;if(V===O.name)N.type=r.Identifier,N.value==="static"&&(N.type=r.Keyword),j.ecmaVersion>5&&(N.value==="yield"||N.value==="let")&&(N.type=r.Keyword);else if(V===O.privateId)N.type=r.PrivateIdentifier;else if(V===O.semi||V===O.comma||V===O.parenL||V===O.parenR||V===O.braceL||V===O.braceR||V===O.dot||V===O.bracketL||V===O.colon||V===O.question||V===O.bracketR||V===O.ellipsis||V===O.arrow||V===O.jsxTagStart||V===O.incDec||V===O.starstar||V===O.jsxTagEnd||V===O.prefix||V===O.questionDot||V.binop&&!V.keyword||V.isAssign)N.type=r.Punctuator,N.value=this._code.slice(N.start,N.end);else if(V===O.jsxName)N.type=r.JSXIdentifier;else if(V.label==="jsxText"||V===O.jsxAttrValueToken)N.type=r.JSXText;else if(V.keyword)V.keyword==="true"||V.keyword==="false"?N.type=r.Boolean:V.keyword==="null"?N.type=r.Null:N.type=r.Keyword;else if(V===O.num)N.type=r.Numeric,N.value=this._code.slice(N.start,N.end);else if(V===O.string)j.jsxAttrValueToken?(j.jsxAttrValueToken=!1,N.type=r.JSXText):N.type=r.String,N.value=this._code.slice(N.start,N.end);else if(V===O.regexp){N.type=r.RegularExpression;const G=N.value;N.regex={flags:G.flags,pattern:G.pattern},N.value=`/${G.pattern}/${G.flags}`}return N},onToken(N,j){const V=this._acornTokTypes,O=j.tokens,G=this._tokens,L=()=>{O.push(m(this._tokens,this._code)),this._tokens=[]};if(N.type===V.eof){this._curlyBrace&&O.push(this.translate(this._curlyBrace,j));return}if(N.type===V.backQuote){this._curlyBrace&&(O.push(this.translate(this._curlyBrace,j)),this._curlyBrace=null),G.push(N),G.length>1&&L();return}if(N.type===V.dollarBraceL){G.push(N),L();return}if(N.type===V.braceR){this._curlyBrace&&O.push(this.translate(this._curlyBrace,j)),this._curlyBrace=N;return}if(N.type===V.template||N.type===V.invalidTemplate){this._curlyBrace&&(G.push(this._curlyBrace),this._curlyBrace=null),G.push(N);return}this._curlyBrace&&(O.push(this.translate(this._curlyBrace,j)),this._curlyBrace=null),O.push(this.translate(N,j))}};const f=[3,5,6,7,8,9,10,11,12,13,14,15,16,17];function h(){return f.at(-1)}function s(){return[...f]}function l(N=5){let j=N==="latest"?h():N;if(typeof j!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof N} instead.`);if(j>=2015&&(j-=2009),!f.includes(j))throw new Error("Invalid ecmaVersion.");return j}function g(N="script"){if(N==="script"||N==="module")return N;if(N==="commonjs")return"script";throw new Error("Invalid sourceType.")}function d(N){const j=l(N.ecmaVersion),V=g(N.sourceType),O=N.range===!0,G=N.loc===!0;if(j!==3&&N.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof N.allowReserved<"u"&&typeof N.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");const L=j===3?N.allowReserved||"never":!1,K=N.ecmaFeatures||{},H=N.sourceType==="commonjs"||!!K.globalReturn;if(V==="module"&&j<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},N,{ecmaVersion:j,sourceType:V,ranges:O,locations:G,allowReserved:L,allowReturnOutsideFunction:H})}const v=Symbol("espree's internal state"),S=Symbol("espree's esprimaFinishNode");function b(N,j,V,O,G,L,K){let H;N?H="Block":K.slice(V,V+2)==="#!"?H="Hashbang":H="Line";const ae={type:H,value:j};return typeof V=="number"&&(ae.start=V,ae.end=O,ae.range=[V,O]),typeof G=="object"&&(ae.loc={start:G,end:L}),ae}var w=()=>N=>{const j=Object.assign({},N.acorn.tokTypes);return N.acornJsx&&Object.assign(j,N.acornJsx.tokTypes),class extends N{constructor(O,G){(typeof O!="object"||O===null)&&(O={}),typeof G!="string"&&!(G instanceof String)&&(G=String(G));const L=O.sourceType,K=d(O),H=K.ecmaFeatures||{},ae=K.tokens===!0?new i(j,G):null,re={originalSourceType:L||K.sourceType,tokens:ae?[]:null,comments:K.comment===!0?[]:null,impliedStrict:H.impliedStrict===!0&&K.ecmaVersion>=5,ecmaVersion:K.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:K.ecmaVersion,sourceType:K.sourceType,ranges:K.ranges,locations:K.locations,allowReserved:K.allowReserved,allowReturnOutsideFunction:K.allowReturnOutsideFunction,onToken(De){ae&&ae.onToken(De,re),De.type!==j.eof&&(re.lastToken=De)},onComment(De,Y,I,W,ue,oe){if(re.comments){const ne=b(De,Y,I,W,ue,oe,G);re.comments.push(ne)}}},G),this[v]=re}tokenize(){do this.next();while(this.type!==j.eof);this.next();const O=this[v],G=O.tokens;return O.comments&&(G.comments=O.comments),G}finishNode(...O){const G=super.finishNode(...O);return this[S](G)}finishNodeAt(...O){const G=super.finishNodeAt(...O);return this[S](G)}parse(){const O=this[v],G=super.parse();if(G.sourceType=O.originalSourceType,O.comments&&(G.comments=O.comments),O.tokens&&(G.tokens=O.tokens),G.body.length){const[L]=G.body;G.range&&(G.range[0]=L.range[0]),G.loc&&(G.loc.start=L.loc.start),G.start=L.start}return O.lastToken&&(G.range&&(G.range[1]=O.lastToken.range[1]),G.loc&&(G.loc.end=O.lastToken.loc.end),G.end=O.lastToken.end),this[v].templateElements.forEach(L=>{const H=L.tail?1:2;L.start+=-1,L.end+=H,L.range&&(L.range[0]+=-1,L.range[1]+=H),L.loc&&(L.loc.start.column+=-1,L.loc.end.column+=H)}),G}parseTopLevel(O){return this[v].impliedStrict&&(this.strict=!0),super.parseTopLevel(O)}raise(O,G){const L=N.acorn.getLineInfo(this.input,O),K=new SyntaxError(G);throw K.index=O,K.lineNumber=L.line,K.column=L.column+1,K}raiseRecoverable(O,G){this.raise(O,G)}unexpected(O){let G="Unexpected token";if(O!=null){if(this.pos=O,this.options.locations)for(;this.pos<this.lineStart;)this.lineStart=this.input.lastIndexOf(`
|
|
12
|
+
`,this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(G+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,G)}jsx_readString(O){const G=super.jsx_readString(O);return this.type===j.string&&(this[v].jsxAttrValueToken=!0),G}[S](O){return O.type==="TemplateElement"&&this[v].templateElements.push(O),O.type.includes("Function")&&!O.generator&&(O.generator=!1),O}}};const C="10.4.0",E={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=u.Parser.extend(w())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=u.Parser.extend(p.default(),w())),this._jsx},get(N){return!!(N&&N.ecmaFeatures&&N.ecmaFeatures.jsx)?this.jsx:this.regular}};function T(N,j){const V=E.get(j);return(!j||j.tokens!==!0)&&(j=Object.assign({},j,{tokens:!0})),new V(j,N).tokenize()}function x(N,j){const V=E.get(j);return new V(j,N).parse()}const A=C,k="espree",B=function(){return c.KEYS}(),R=function(){let N,j={};typeof Object.create=="function"&&(j=Object.create(null));for(N in B)Object.hasOwn(B,N)&&(j[N]=N);return typeof Object.freeze=="function"&&Object.freeze(j),j}(),F=h(),P=s();return er.Syntax=R,er.VisitorKeys=B,er.latestEcmaVersion=F,er.name=k,er.parse=x,er.supportedEcmaVersions=P,er.tokenize=T,er.version=A,er}var zr={exports:{}};zr.exports;var Kp;function ex(){return Kp||(Kp=1,function(a,e){var n=200,o="__lodash_hash_undefined__",t=800,u=16,p=9007199254740991,c="[object Arguments]",r="[object Array]",m="[object AsyncFunction]",i="[object Boolean]",f="[object Date]",h="[object Error]",s="[object Function]",l="[object GeneratorFunction]",g="[object Map]",d="[object Number]",v="[object Null]",S="[object Object]",b="[object Proxy]",w="[object RegExp]",C="[object Set]",E="[object String]",T="[object Undefined]",x="[object WeakMap]",A="[object ArrayBuffer]",k="[object DataView]",B="[object Float32Array]",R="[object Float64Array]",F="[object Int8Array]",P="[object Int16Array]",N="[object Int32Array]",j="[object Uint8Array]",V="[object Uint8ClampedArray]",O="[object Uint16Array]",G="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,K=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,ae={};ae[B]=ae[R]=ae[F]=ae[P]=ae[N]=ae[j]=ae[V]=ae[O]=ae[G]=!0,ae[c]=ae[r]=ae[A]=ae[i]=ae[k]=ae[f]=ae[h]=ae[s]=ae[g]=ae[d]=ae[S]=ae[w]=ae[C]=ae[E]=ae[x]=!1;var re=typeof Xt=="object"&&Xt&&Xt.Object===Object&&Xt,De=typeof self=="object"&&self&&self.Object===Object&&self,Y=re||De||Function("return this")(),I=e&&!e.nodeType&&e,W=I&&!0&&a&&!a.nodeType&&a,ue=W&&W.exports===I,oe=ue&&re.process,ne=function(){try{var Ae=W&&W.require&&W.require("util").types;return Ae||oe&&oe.binding&&oe.binding("util")}catch{}}(),he=ne&&ne.isTypedArray;function ye(Ae,Me,Xe){switch(Xe.length){case 0:return Ae.call(Me);case 1:return Ae.call(Me,Xe[0]);case 2:return Ae.call(Me,Xe[0],Xe[1]);case 3:return Ae.call(Me,Xe[0],Xe[1],Xe[2])}return Ae.apply(Me,Xe)}function ge(Ae,Me){for(var Xe=-1,mt=Array(Ae);++Xe<Ae;)mt[Xe]=Me(Xe);return mt}function Ce(Ae){return function(Me){return Ae(Me)}}function z(Ae,Me){return Ae?.[Me]}function Q(Ae,Me){return function(Xe){return Ae(Me(Xe))}}var Re=Array.prototype,$=Function.prototype,ie=Object.prototype,Te=Y["__core-js_shared__"],Ne=$.toString,Le=ie.hasOwnProperty,U=function(){var Ae=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||"");return Ae?"Symbol(src)_1."+Ae:""}(),Qe=ie.toString,ct=Ne.call(Object),st=RegExp("^"+Ne.call(Le).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ke=ue?Y.Buffer:void 0,Je=Y.Symbol,ht=Y.Uint8Array;Ke&&Ke.allocUnsafe;var dt=Q(Object.getPrototypeOf,Object),ot=Object.create,nt=ie.propertyIsEnumerable,ke=Re.splice,Se=Je?Je.toStringTag:void 0,ve=function(){try{var Ae=jt(Object,"defineProperty");return Ae({},"",{}),Ae}catch{}}(),Fe=Ke?Ke.isBuffer:void 0,$e=Math.max,ce=Date.now,be=jt(Y,"Map"),ee=jt(Object,"create"),le=function(){function Ae(){}return function(Me){if(!X(Me))return{};if(ot)return ot(Me);Ae.prototype=Me;var Xe=new Ae;return Ae.prototype=void 0,Xe}}();function Ee(Ae){var Me=-1,Xe=Ae==null?0:Ae.length;for(this.clear();++Me<Xe;){var mt=Ae[Me];this.set(mt[0],mt[1])}}function Ie(){this.__data__=ee?ee(null):{},this.size=0}function _(Ae){var Me=this.has(Ae)&&delete this.__data__[Ae];return this.size-=Me?1:0,Me}function J(Ae){var Me=this.__data__;if(ee){var Xe=Me[Ae];return Xe===o?void 0:Xe}return Le.call(Me,Ae)?Me[Ae]:void 0}function fe(Ae){var Me=this.__data__;return ee?Me[Ae]!==void 0:Le.call(Me,Ae)}function te(Ae,Me){var Xe=this.__data__;return this.size+=this.has(Ae)?0:1,Xe[Ae]=ee&&Me===void 0?o:Me,this}Ee.prototype.clear=Ie,Ee.prototype.delete=_,Ee.prototype.get=J,Ee.prototype.has=fe,Ee.prototype.set=te;function we(Ae){var Me=-1,Xe=Ae==null?0:Ae.length;for(this.clear();++Me<Xe;){var mt=Ae[Me];this.set(mt[0],mt[1])}}function Pe(){this.__data__=[],this.size=0}function ze(Ae){var Me=this.__data__,Xe=Et(Me,Ae);if(Xe<0)return!1;var mt=Me.length-1;return Xe==mt?Me.pop():ke.call(Me,Xe,1),--this.size,!0}function Ye(Ae){var Me=this.__data__,Xe=Et(Me,Ae);return Xe<0?void 0:Me[Xe][1]}function et(Ae){return Et(this.__data__,Ae)>-1}function pe(Ae,Me){var Xe=this.__data__,mt=Et(Xe,Ae);return mt<0?(++this.size,Xe.push([Ae,Me])):Xe[mt][1]=Me,this}we.prototype.clear=Pe,we.prototype.delete=ze,we.prototype.get=Ye,we.prototype.has=et,we.prototype.set=pe;function se(Ae){var Me=-1,Xe=Ae==null?0:Ae.length;for(this.clear();++Me<Xe;){var mt=Ae[Me];this.set(mt[0],mt[1])}}function xe(){this.size=0,this.__data__={hash:new Ee,map:new(be||we),string:new Ee}}function _e(Ae){var Me=Gt(this,Ae).delete(Ae);return this.size-=Me?1:0,Me}function Be(Ae){return Gt(this,Ae).get(Ae)}function Ze(Ae){return Gt(this,Ae).has(Ae)}function Oe(Ae,Me){var Xe=Gt(this,Ae),mt=Xe.size;return Xe.set(Ae,Me),this.size+=Xe.size==mt?0:1,this}se.prototype.clear=xe,se.prototype.delete=_e,se.prototype.get=Be,se.prototype.has=Ze,se.prototype.set=Oe;function He(Ae){var Me=this.__data__=new we(Ae);this.size=Me.size}function tt(){this.__data__=new we,this.size=0}function Ve(Ae){var Me=this.__data__,Xe=Me.delete(Ae);return this.size=Me.size,Xe}function it(Ae){return this.__data__.get(Ae)}function pt(Ae){return this.__data__.has(Ae)}function vt(Ae,Me){var Xe=this.__data__;if(Xe instanceof we){var mt=Xe.__data__;if(!be||mt.length<n-1)return mt.push([Ae,Me]),this.size=++Xe.size,this;Xe=this.__data__=new se(mt)}return Xe.set(Ae,Me),this.size=Xe.size,this}He.prototype.clear=tt,He.prototype.delete=Ve,He.prototype.get=it,He.prototype.has=pt,He.prototype.set=vt;function ft(Ae,Me){var Xe=Z(Ae),mt=!Xe&&M(Ae),bt=!Xe&&!mt&&y(Ae),Dt=!Xe&&!mt&&!bt&&We(Ae),It=Xe||mt||bt||Dt,wt=It?ge(Ae.length,String):[],Pt=wt.length;for(var nr in Ae)It&&(nr=="length"||bt&&(nr=="offset"||nr=="parent")||Dt&&(nr=="buffer"||nr=="byteLength"||nr=="byteOffset")||jr(nr,Pt))||wt.push(nr);return wt}function gt(Ae,Me,Xe){(Xe!==void 0&&!Ge(Ae[Me],Xe)||Xe===void 0&&!(Me in Ae))&&Tt(Ae,Me,Xe)}function Ct(Ae,Me,Xe){var mt=Ae[Me];(!(Le.call(Ae,Me)&&Ge(mt,Xe))||Xe===void 0&&!(Me in Ae))&&Tt(Ae,Me,Xe)}function Et(Ae,Me){for(var Xe=Ae.length;Xe--;)if(Ge(Ae[Xe][0],Me))return Xe;return-1}function Tt(Ae,Me,Xe){Me=="__proto__"&&ve?ve(Ae,Me,{configurable:!0,enumerable:!0,value:Xe,writable:!0}):Ae[Me]=Xe}var _t=Zt();function kt(Ae){return Ae==null?Ae===void 0?T:v:Se&&Se in Object(Ae)?Nr(Ae):Ur(Ae)}function Wt(Ae){return de(Ae)&&kt(Ae)==c}function zt(Ae){if(!X(Ae)||on(Ae))return!1;var Me=D(Ae)?st:K;return Me.test(qr(Ae))}function Ot(Ae){return de(Ae)&&q(Ae.length)&&!!ae[kt(Ae)]}function $t(Ae){if(!X(Ae))return gr(Ae);var Me=dr(Ae),Xe=[];for(var mt in Ae)mt=="constructor"&&(Me||!Le.call(Ae,mt))||Xe.push(mt);return Xe}function ut(Ae,Me,Xe,mt,bt){Ae!==Me&&_t(Me,function(Dt,It){if(bt||(bt=new He),X(Dt))Mt(Ae,Me,It,Xe,ut,mt,bt);else{var wt=mt?mt(pr(Ae,It),Dt,It+"",Ae,Me,bt):void 0;wt===void 0&&(wt=Dt),gt(Ae,It,wt)}},lt)}function Mt(Ae,Me,Xe,mt,bt,Dt,It){var wt=pr(Ae,Xe),Pt=pr(Me,Xe),nr=It.get(Pt);if(nr){gt(Ae,Xe,nr);return}var Kt=Dt?Dt(wt,Pt,Xe+"",Ae,Me,It):void 0,un=Kt===void 0;if(un){var xp=Z(Pt),Cp=!xp&&y(Pt),g0=!xp&&!Cp&&We(Pt);Kt=Pt,xp||Cp||g0?Z(wt)?Kt=wt:je(wt)?Kt=rr(wt):Cp?(un=!1,Kt=Sr(Pt)):g0?(un=!1,Kt=cr(Pt)):Kt=[]:qe(Pt)||M(Pt)?(Kt=wt,M(wt)?Kt=at(wt):(!X(wt)||D(wt))&&(Kt=Mr(Pt))):un=!1}un&&(It.set(Pt,Kt),bt(Kt,Pt,mt,Dt,It),It.delete(Pt)),gt(Ae,Xe,Kt)}function Lt(Ae,Me){return xt(Rr(Ae,Me,At),Ae+"")}var Er=ve?function(Ae,Me){return ve(Ae,"toString",{configurable:!0,enumerable:!1,value:St(Me),writable:!0})}:At;function Sr(Ae,Me){return Ae.slice()}function Qt(Ae){var Me=new Ae.constructor(Ae.byteLength);return new ht(Me).set(new ht(Ae)),Me}function cr(Ae,Me){var Xe=Qt(Ae.buffer);return new Ae.constructor(Xe,Ae.byteOffset,Ae.length)}function rr(Ae,Me){var Xe=-1,mt=Ae.length;for(Me||(Me=Array(mt));++Xe<mt;)Me[Xe]=Ae[Xe];return Me}function fr(Ae,Me,Xe,mt){var bt=!Xe;Xe||(Xe={});for(var Dt=-1,It=Me.length;++Dt<It;){var wt=Me[Dt],Pt=void 0;Pt===void 0&&(Pt=Ae[wt]),bt?Tt(Xe,wt,Pt):Ct(Xe,wt,Pt)}return Xe}function br(Ae){return Lt(function(Me,Xe){var mt=-1,bt=Xe.length,Dt=bt>1?Xe[bt-1]:void 0,It=bt>2?Xe[2]:void 0;for(Dt=Ae.length>3&&typeof Dt=="function"?(bt--,Dt):void 0,It&&Fr(Xe[0],Xe[1],It)&&(Dt=bt<3?void 0:Dt,bt=1),Me=Object(Me);++mt<bt;){var wt=Xe[mt];wt&&Ae(Me,wt,mt,Dt)}return Me})}function Zt(Ae){return function(Me,Xe,mt){for(var bt=-1,Dt=Object(Me),It=mt(Me),wt=It.length;wt--;){var Pt=It[++bt];if(Xe(Dt[Pt],Pt,Dt)===!1)break}return Me}}function Gt(Ae,Me){var Xe=Ae.__data__;return an(Me)?Xe[typeof Me=="string"?"string":"hash"]:Xe.map}function jt(Ae,Me){var Xe=z(Ae,Me);return zt(Xe)?Xe:void 0}function Nr(Ae){var Me=Le.call(Ae,Se),Xe=Ae[Se];try{Ae[Se]=void 0;var mt=!0}catch{}var bt=Qe.call(Ae);return mt&&(Me?Ae[Se]=Xe:delete Ae[Se]),bt}function Mr(Ae){return typeof Ae.constructor=="function"&&!dr(Ae)?le(dt(Ae)):{}}function jr(Ae,Me){var Xe=typeof Ae;return Me=Me??p,!!Me&&(Xe=="number"||Xe!="symbol"&&H.test(Ae))&&Ae>-1&&Ae%1==0&&Ae<Me}function Fr(Ae,Me,Xe){if(!X(Xe))return!1;var mt=typeof Me;return(mt=="number"?me(Xe)&&jr(Me,Xe.length):mt=="string"&&Me in Xe)?Ge(Xe[Me],Ae):!1}function an(Ae){var Me=typeof Ae;return Me=="string"||Me=="number"||Me=="symbol"||Me=="boolean"?Ae!=="__proto__":Ae===null}function on(Ae){return!!U&&U in Ae}function dr(Ae){var Me=Ae&&Ae.constructor,Xe=typeof Me=="function"&&Me.prototype||ie;return Ae===Xe}function gr(Ae){var Me=[];if(Ae!=null)for(var Xe in Object(Ae))Me.push(Xe);return Me}function Ur(Ae){return Qe.call(Ae)}function Rr(Ae,Me,Xe){return Me=$e(Me===void 0?Ae.length-1:Me,0),function(){for(var mt=arguments,bt=-1,Dt=$e(mt.length-Me,0),It=Array(Dt);++bt<Dt;)It[bt]=mt[Me+bt];bt=-1;for(var wt=Array(Me+1);++bt<Me;)wt[bt]=mt[bt];return wt[Me]=Xe(It),ye(Ae,this,wt)}}function pr(Ae,Me){if(!(Me==="constructor"&&typeof Ae[Me]=="function")&&Me!="__proto__")return Ae[Me]}var xt=ln(Er);function ln(Ae){var Me=0,Xe=0;return function(){var mt=ce(),bt=u-(mt-Xe);if(Xe=mt,bt>0){if(++Me>=t)return arguments[0]}else Me=0;return Ae.apply(void 0,arguments)}}function qr(Ae){if(Ae!=null){try{return Ne.call(Ae)}catch{}try{return Ae+""}catch{}}return""}function Ge(Ae,Me){return Ae===Me||Ae!==Ae&&Me!==Me}var M=Wt(function(){return arguments}())?Wt:function(Ae){return de(Ae)&&Le.call(Ae,"callee")&&!nt.call(Ae,"callee")},Z=Array.isArray;function me(Ae){return Ae!=null&&q(Ae.length)&&!D(Ae)}function je(Ae){return de(Ae)&&me(Ae)}var y=Fe||Ut;function D(Ae){if(!X(Ae))return!1;var Me=kt(Ae);return Me==s||Me==l||Me==m||Me==b}function q(Ae){return typeof Ae=="number"&&Ae>-1&&Ae%1==0&&Ae<=p}function X(Ae){var Me=typeof Ae;return Ae!=null&&(Me=="object"||Me=="function")}function de(Ae){return Ae!=null&&typeof Ae=="object"}function qe(Ae){if(!de(Ae)||kt(Ae)!=S)return!1;var Me=dt(Ae);if(Me===null)return!0;var Xe=Le.call(Me,"constructor")&&Me.constructor;return typeof Xe=="function"&&Xe instanceof Xe&&Ne.call(Xe)==ct}var We=he?Ce(he):Ot;function at(Ae){return fr(Ae,lt(Ae))}function lt(Ae){return me(Ae)?ft(Ae):$t(Ae)}var yt=br(function(Ae,Me,Xe){ut(Ae,Me,Xe)});function St(Ae){return function(){return Ae}}function At(Ae){return Ae}function Ut(){return!1}a.exports=yt}(zr,zr.exports)),zr.exports}var tx="9.31.0",rx={version:tx},dn={},sr=[],Yt=[],nx=typeof Uint8Array<"u"?Uint8Array:Array,Gn=!1;function Xp(){Gn=!0;for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,n=a.length;e<n;++e)sr[e]=a[e],Yt[a.charCodeAt(e)]=e;Yt[45]=62,Yt[95]=63}function sx(a){Gn||Xp();var e,n,o,t,u,p,c=a.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");u=a[c-2]==="="?2:a[c-1]==="="?1:0,p=new nx(c*3/4-u),o=u>0?c-4:c;var r=0;for(e=0,n=0;e<o;e+=4,n+=3)t=Yt[a.charCodeAt(e)]<<18|Yt[a.charCodeAt(e+1)]<<12|Yt[a.charCodeAt(e+2)]<<6|Yt[a.charCodeAt(e+3)],p[r++]=t>>16&255,p[r++]=t>>8&255,p[r++]=t&255;return u===2?(t=Yt[a.charCodeAt(e)]<<2|Yt[a.charCodeAt(e+1)]>>4,p[r++]=t&255):u===1&&(t=Yt[a.charCodeAt(e)]<<10|Yt[a.charCodeAt(e+1)]<<4|Yt[a.charCodeAt(e+2)]>>2,p[r++]=t>>8&255,p[r++]=t&255),p}function ax(a){return sr[a>>18&63]+sr[a>>12&63]+sr[a>>6&63]+sr[a&63]}function ix(a,e,n){for(var o,t=[],u=e;u<n;u+=3)o=(a[u]<<16)+(a[u+1]<<8)+a[u+2],t.push(ax(o));return t.join("")}function Jp(a){Gn||Xp();for(var e,n=a.length,o=n%3,t="",u=[],p=16383,c=0,r=n-o;c<r;c+=p)u.push(ix(a,c,c+p>r?r:c+p));return o===1?(e=a[n-1],t+=sr[e>>2],t+=sr[e<<4&63],t+="=="):o===2&&(e=(a[n-2]<<8)+a[n-1],t+=sr[e>>10],t+=sr[e>>4&63],t+=sr[e<<2&63],t+="="),u.push(t),u.join("")}function gn(a,e,n,o,t){var u,p,c=t*8-o-1,r=(1<<c)-1,m=r>>1,i=-7,f=n?t-1:0,h=n?-1:1,s=a[e+f];for(f+=h,u=s&(1<<-i)-1,s>>=-i,i+=c;i>0;u=u*256+a[e+f],f+=h,i-=8);for(p=u&(1<<-i)-1,u>>=-i,i+=o;i>0;p=p*256+a[e+f],f+=h,i-=8);if(u===0)u=1-m;else{if(u===r)return p?NaN:(s?-1:1)*(1/0);p=p+Math.pow(2,o),u=u-m}return(s?-1:1)*p*Math.pow(2,u-o)}function Yp(a,e,n,o,t,u){var p,c,r,m=u*8-t-1,i=(1<<m)-1,f=i>>1,h=t===23?Math.pow(2,-24)-Math.pow(2,-77):0,s=o?0:u-1,l=o?1:-1,g=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,p=i):(p=Math.floor(Math.log(e)/Math.LN2),e*(r=Math.pow(2,-p))<1&&(p--,r*=2),p+f>=1?e+=h/r:e+=h*Math.pow(2,1-f),e*r>=2&&(p++,r/=2),p+f>=i?(c=0,p=i):p+f>=1?(c=(e*r-1)*Math.pow(2,t),p=p+f):(c=e*Math.pow(2,f-1)*Math.pow(2,t),p=0));t>=8;a[n+s]=c&255,s+=l,c/=256,t-=8);for(p=p<<t|c,m+=t;m>0;a[n+s]=p&255,s+=l,p/=256,m-=8);a[n+s-l]|=g*128}var ox={}.toString,Qp=Array.isArray||function(a){return ox.call(a)=="[object Array]"};/*!
|
|
13
|
+
* The buffer module from node.js, for the browser.
|
|
14
|
+
*
|
|
15
|
+
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
16
|
+
* @license MIT
|
|
17
|
+
*/var lx=50;rt.TYPED_ARRAY_SUPPORT=Xt.TYPED_ARRAY_SUPPORT!==void 0?Xt.TYPED_ARRAY_SUPPORT:!0,yn();function yn(){return rt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function hr(a,e){if(yn()<e)throw new RangeError("Invalid typed array length");return rt.TYPED_ARRAY_SUPPORT?(a=new Uint8Array(e),a.__proto__=rt.prototype):(a===null&&(a=new rt(e)),a.length=e),a}function rt(a,e,n){if(!rt.TYPED_ARRAY_SUPPORT&&!(this instanceof rt))return new rt(a,e,n);if(typeof a=="number"){if(typeof e=="string")throw new Error("If encoding is specified then the first argument must be a string");return zn(this,a)}return Zp(this,a,e,n)}rt.poolSize=8192,rt._augment=function(a){return a.__proto__=rt.prototype,a};function Zp(a,e,n,o){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer?fx(a,e,n,o):typeof e=="string"?cx(a,e,n):px(a,e)}rt.from=function(a,e,n){return Zp(null,a,e,n)},rt.TYPED_ARRAY_SUPPORT&&(rt.prototype.__proto__=Uint8Array.prototype,rt.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&rt[Symbol.species]);function em(a){if(typeof a!="number")throw new TypeError('"size" argument must be a number');if(a<0)throw new RangeError('"size" argument must not be negative')}function ux(a,e,n,o){return em(e),e<=0?hr(a,e):n!==void 0?typeof o=="string"?hr(a,e).fill(n,o):hr(a,e).fill(n):hr(a,e)}rt.alloc=function(a,e,n){return ux(null,a,e,n)};function zn(a,e){if(em(e),a=hr(a,e<0?0:Kn(e)|0),!rt.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)a[n]=0;return a}rt.allocUnsafe=function(a){return zn(null,a)},rt.allocUnsafeSlow=function(a){return zn(null,a)};function cx(a,e,n){if((typeof n!="string"||n==="")&&(n="utf8"),!rt.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var o=tm(e,n)|0;a=hr(a,o);var t=a.write(e,n);return t!==o&&(a=a.slice(0,t)),a}function Hn(a,e){var n=e.length<0?0:Kn(e.length)|0;a=hr(a,n);for(var o=0;o<n;o+=1)a[o]=e[o]&255;return a}function fx(a,e,n,o){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(o||0))throw new RangeError("'length' is out of bounds");return n===void 0&&o===void 0?e=new Uint8Array(e):o===void 0?e=new Uint8Array(e,n):e=new Uint8Array(e,n,o),rt.TYPED_ARRAY_SUPPORT?(a=e,a.__proto__=rt.prototype):a=Hn(a,e),a}function px(a,e){if(ar(e)){var n=Kn(e.length)|0;return a=hr(a,n),a.length===0||e.copy(a,0,0,n),a}if(e){if(typeof ArrayBuffer<"u"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||Fx(e.length)?hr(a,0):Hn(a,e);if(e.type==="Buffer"&&Qp(e.data))return Hn(a,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Kn(a){if(a>=yn())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+yn().toString(16)+" bytes");return a|0}rt.isBuffer=Rx;function ar(a){return!!(a!=null&&a._isBuffer)}rt.compare=function(e,n){if(!ar(e)||!ar(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var o=e.length,t=n.length,u=0,p=Math.min(o,t);u<p;++u)if(e[u]!==n[u]){o=e[u],t=n[u];break}return o<t?-1:t<o?1:0},rt.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},rt.concat=function(e,n){if(!Qp(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return rt.alloc(0);var o;if(n===void 0)for(n=0,o=0;o<e.length;++o)n+=e[o].length;var t=rt.allocUnsafe(n),u=0;for(o=0;o<e.length;++o){var p=e[o];if(!ar(p))throw new TypeError('"list" argument must be an Array of Buffers');p.copy(t,u),u+=p.length}return t};function tm(a,e){if(ar(a))return a.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(a)||a instanceof ArrayBuffer))return a.byteLength;typeof a!="string"&&(a=""+a);var n=a.length;if(n===0)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Sn(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return cm(a).length;default:if(o)return Sn(a).length;e=(""+e).toLowerCase(),o=!0}}rt.byteLength=tm;function mx(a,e,n){var o=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,e>>>=0,n<=e))return"";for(a||(a="utf8");;)switch(a){case"hex":return Cx(this,e,n);case"utf8":case"utf-8":return am(this,e,n);case"ascii":return bx(this,e,n);case"latin1":case"binary":return xx(this,e,n);case"base64":return Ex(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wx(this,e,n);default:if(o)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),o=!0}}rt.prototype._isBuffer=!0;function wr(a,e,n){var o=a[e];a[e]=a[n],a[n]=o}rt.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<e;n+=2)wr(this,n,n+1);return this},rt.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<e;n+=4)wr(this,n,n+3),wr(this,n+1,n+2);return this},rt.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<e;n+=8)wr(this,n,n+7),wr(this,n+1,n+6),wr(this,n+2,n+5),wr(this,n+3,n+4);return this},rt.prototype.toString=function(){var e=this.length|0;return e===0?"":arguments.length===0?am(this,0,e):mx.apply(this,arguments)},rt.prototype.equals=function(e){if(!ar(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:rt.compare(this,e)===0},rt.prototype.inspect=function(){var e="",n=lx;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},rt.prototype.compare=function(e,n,o,t,u){if(!ar(e))throw new TypeError("Argument must be a Buffer");if(n===void 0&&(n=0),o===void 0&&(o=e?e.length:0),t===void 0&&(t=0),u===void 0&&(u=this.length),n<0||o>e.length||t<0||u>this.length)throw new RangeError("out of range index");if(t>=u&&n>=o)return 0;if(t>=u)return-1;if(n>=o)return 1;if(n>>>=0,o>>>=0,t>>>=0,u>>>=0,this===e)return 0;for(var p=u-t,c=o-n,r=Math.min(p,c),m=this.slice(t,u),i=e.slice(n,o),f=0;f<r;++f)if(m[f]!==i[f]){p=m[f],c=i[f];break}return p<c?-1:c<p?1:0};function rm(a,e,n,o,t){if(a.length===0)return-1;if(typeof n=="string"?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=t?0:a.length-1),n<0&&(n=a.length+n),n>=a.length){if(t)return-1;n=a.length-1}else if(n<0)if(t)n=0;else return-1;if(typeof e=="string"&&(e=rt.from(e,o)),ar(e))return e.length===0?-1:nm(a,e,n,o,t);if(typeof e=="number")return e=e&255,rt.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?t?Uint8Array.prototype.indexOf.call(a,e,n):Uint8Array.prototype.lastIndexOf.call(a,e,n):nm(a,[e],n,o,t);throw new TypeError("val must be string, number or Buffer")}function nm(a,e,n,o,t){var u=1,p=a.length,c=e.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(a.length<2||e.length<2)return-1;u=2,p/=2,c/=2,n/=2}function r(s,l){return u===1?s[l]:s.readUInt16BE(l*u)}var m;if(t){var i=-1;for(m=n;m<p;m++)if(r(a,m)===r(e,i===-1?0:m-i)){if(i===-1&&(i=m),m-i+1===c)return i*u}else i!==-1&&(m-=m-i),i=-1}else for(n+c>p&&(n=p-c),m=n;m>=0;m--){for(var f=!0,h=0;h<c;h++)if(r(a,m+h)!==r(e,h)){f=!1;break}if(f)return m}return-1}rt.prototype.includes=function(e,n,o){return this.indexOf(e,n,o)!==-1},rt.prototype.indexOf=function(e,n,o){return rm(this,e,n,o,!0)},rt.prototype.lastIndexOf=function(e,n,o){return rm(this,e,n,o,!1)};function hx(a,e,n,o){n=Number(n)||0;var t=a.length-n;o?(o=Number(o),o>t&&(o=t)):o=t;var u=e.length;if(u%2!==0)throw new TypeError("Invalid hex string");o>u/2&&(o=u/2);for(var p=0;p<o;++p){var c=parseInt(e.substr(p*2,2),16);if(isNaN(c))return p;a[n+p]=c}return p}function dx(a,e,n,o){return bn(Sn(e,a.length-n),a,n,o)}function sm(a,e,n,o){return bn(Ix(e),a,n,o)}function gx(a,e,n,o){return sm(a,e,n,o)}function yx(a,e,n,o){return bn(cm(e),a,n,o)}function vx(a,e,n,o){return bn(Px(e,a.length-n),a,n,o)}rt.prototype.write=function(e,n,o,t){if(n===void 0)t="utf8",o=this.length,n=0;else if(o===void 0&&typeof n=="string")t=n,o=this.length,n=0;else if(isFinite(n))n=n|0,isFinite(o)?(o=o|0,t===void 0&&(t="utf8")):(t=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var u=this.length-n;if((o===void 0||o>u)&&(o=u),e.length>0&&(o<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");t||(t="utf8");for(var p=!1;;)switch(t){case"hex":return hx(this,e,n,o);case"utf8":case"utf-8":return dx(this,e,n,o);case"ascii":return sm(this,e,n,o);case"latin1":case"binary":return gx(this,e,n,o);case"base64":return yx(this,e,n,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vx(this,e,n,o);default:if(p)throw new TypeError("Unknown encoding: "+t);t=(""+t).toLowerCase(),p=!0}},rt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ex(a,e,n){return e===0&&n===a.length?Jp(a):Jp(a.slice(e,n))}function am(a,e,n){n=Math.min(a.length,n);for(var o=[],t=e;t<n;){var u=a[t],p=null,c=u>239?4:u>223?3:u>191?2:1;if(t+c<=n){var r,m,i,f;switch(c){case 1:u<128&&(p=u);break;case 2:r=a[t+1],(r&192)===128&&(f=(u&31)<<6|r&63,f>127&&(p=f));break;case 3:r=a[t+1],m=a[t+2],(r&192)===128&&(m&192)===128&&(f=(u&15)<<12|(r&63)<<6|m&63,f>2047&&(f<55296||f>57343)&&(p=f));break;case 4:r=a[t+1],m=a[t+2],i=a[t+3],(r&192)===128&&(m&192)===128&&(i&192)===128&&(f=(u&15)<<18|(r&63)<<12|(m&63)<<6|i&63,f>65535&&f<1114112&&(p=f))}}p===null?(p=65533,c=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),t+=c}return Sx(o)}var im=4096;function Sx(a){var e=a.length;if(e<=im)return String.fromCharCode.apply(String,a);for(var n="",o=0;o<e;)n+=String.fromCharCode.apply(String,a.slice(o,o+=im));return n}function bx(a,e,n){var o="";n=Math.min(a.length,n);for(var t=e;t<n;++t)o+=String.fromCharCode(a[t]&127);return o}function xx(a,e,n){var o="";n=Math.min(a.length,n);for(var t=e;t<n;++t)o+=String.fromCharCode(a[t]);return o}function Cx(a,e,n){var o=a.length;(!e||e<0)&&(e=0),(!n||n<0||n>o)&&(n=o);for(var t="",u=e;u<n;++u)t+=Dx(a[u]);return t}function wx(a,e,n){for(var o=a.slice(e,n),t="",u=0;u<o.length;u+=2)t+=String.fromCharCode(o[u]+o[u+1]*256);return t}rt.prototype.slice=function(e,n){var o=this.length;e=~~e,n=n===void 0?o:~~n,e<0?(e+=o,e<0&&(e=0)):e>o&&(e=o),n<0?(n+=o,n<0&&(n=0)):n>o&&(n=o),n<e&&(n=e);var t;if(rt.TYPED_ARRAY_SUPPORT)t=this.subarray(e,n),t.__proto__=rt.prototype;else{var u=n-e;t=new rt(u,void 0);for(var p=0;p<u;++p)t[p]=this[p+e]}return t};function Nt(a,e,n){if(a%1!==0||a<0)throw new RangeError("offset is not uint");if(a+e>n)throw new RangeError("Trying to access beyond buffer length")}rt.prototype.readUIntLE=function(e,n,o){e=e|0,n=n|0,o||Nt(e,n,this.length);for(var t=this[e],u=1,p=0;++p<n&&(u*=256);)t+=this[e+p]*u;return t},rt.prototype.readUIntBE=function(e,n,o){e=e|0,n=n|0,o||Nt(e,n,this.length);for(var t=this[e+--n],u=1;n>0&&(u*=256);)t+=this[e+--n]*u;return t},rt.prototype.readUInt8=function(e,n){return n||Nt(e,1,this.length),this[e]},rt.prototype.readUInt16LE=function(e,n){return n||Nt(e,2,this.length),this[e]|this[e+1]<<8},rt.prototype.readUInt16BE=function(e,n){return n||Nt(e,2,this.length),this[e]<<8|this[e+1]},rt.prototype.readUInt32LE=function(e,n){return n||Nt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},rt.prototype.readUInt32BE=function(e,n){return n||Nt(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},rt.prototype.readIntLE=function(e,n,o){e=e|0,n=n|0,o||Nt(e,n,this.length);for(var t=this[e],u=1,p=0;++p<n&&(u*=256);)t+=this[e+p]*u;return u*=128,t>=u&&(t-=Math.pow(2,8*n)),t},rt.prototype.readIntBE=function(e,n,o){e=e|0,n=n|0,o||Nt(e,n,this.length);for(var t=n,u=1,p=this[e+--t];t>0&&(u*=256);)p+=this[e+--t]*u;return u*=128,p>=u&&(p-=Math.pow(2,8*n)),p},rt.prototype.readInt8=function(e,n){return n||Nt(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},rt.prototype.readInt16LE=function(e,n){n||Nt(e,2,this.length);var o=this[e]|this[e+1]<<8;return o&32768?o|4294901760:o},rt.prototype.readInt16BE=function(e,n){n||Nt(e,2,this.length);var o=this[e+1]|this[e]<<8;return o&32768?o|4294901760:o},rt.prototype.readInt32LE=function(e,n){return n||Nt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},rt.prototype.readInt32BE=function(e,n){return n||Nt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},rt.prototype.readFloatLE=function(e,n){return n||Nt(e,4,this.length),gn(this,e,!0,23,4)},rt.prototype.readFloatBE=function(e,n){return n||Nt(e,4,this.length),gn(this,e,!1,23,4)},rt.prototype.readDoubleLE=function(e,n){return n||Nt(e,8,this.length),gn(this,e,!0,52,8)},rt.prototype.readDoubleBE=function(e,n){return n||Nt(e,8,this.length),gn(this,e,!1,52,8)};function Ht(a,e,n,o,t,u){if(!ar(a))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>t||e<u)throw new RangeError('"value" argument is out of bounds');if(n+o>a.length)throw new RangeError("Index out of range")}rt.prototype.writeUIntLE=function(e,n,o,t){if(e=+e,n=n|0,o=o|0,!t){var u=Math.pow(2,8*o)-1;Ht(this,e,n,o,u,0)}var p=1,c=0;for(this[n]=e&255;++c<o&&(p*=256);)this[n+c]=e/p&255;return n+o},rt.prototype.writeUIntBE=function(e,n,o,t){if(e=+e,n=n|0,o=o|0,!t){var u=Math.pow(2,8*o)-1;Ht(this,e,n,o,u,0)}var p=o-1,c=1;for(this[n+p]=e&255;--p>=0&&(c*=256);)this[n+p]=e/c&255;return n+o},rt.prototype.writeUInt8=function(e,n,o){return e=+e,n=n|0,o||Ht(this,e,n,1,255,0),rt.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=e&255,n+1};function vn(a,e,n,o){e<0&&(e=65535+e+1);for(var t=0,u=Math.min(a.length-n,2);t<u;++t)a[n+t]=(e&255<<8*(o?t:1-t))>>>(o?t:1-t)*8}rt.prototype.writeUInt16LE=function(e,n,o){return e=+e,n=n|0,o||Ht(this,e,n,2,65535,0),rt.TYPED_ARRAY_SUPPORT?(this[n]=e&255,this[n+1]=e>>>8):vn(this,e,n,!0),n+2},rt.prototype.writeUInt16BE=function(e,n,o){return e=+e,n=n|0,o||Ht(this,e,n,2,65535,0),rt.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=e&255):vn(this,e,n,!1),n+2};function En(a,e,n,o){e<0&&(e=4294967295+e+1);for(var t=0,u=Math.min(a.length-n,4);t<u;++t)a[n+t]=e>>>(o?t:3-t)*8&255}rt.prototype.writeUInt32LE=function(e,n,o){return e=+e,n=n|0,o||Ht(this,e,n,4,4294967295,0),rt.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=e&255):En(this,e,n,!0),n+4},rt.prototype.writeUInt32BE=function(e,n,o){return e=+e,n=n|0,o||Ht(this,e,n,4,4294967295,0),rt.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255):En(this,e,n,!1),n+4},rt.prototype.writeIntLE=function(e,n,o,t){if(e=+e,n=n|0,!t){var u=Math.pow(2,8*o-1);Ht(this,e,n,o,u-1,-u)}var p=0,c=1,r=0;for(this[n]=e&255;++p<o&&(c*=256);)e<0&&r===0&&this[n+p-1]!==0&&(r=1),this[n+p]=(e/c>>0)-r&255;return n+o},rt.prototype.writeIntBE=function(e,n,o,t){if(e=+e,n=n|0,!t){var u=Math.pow(2,8*o-1);Ht(this,e,n,o,u-1,-u)}var p=o-1,c=1,r=0;for(this[n+p]=e&255;--p>=0&&(c*=256);)e<0&&r===0&&this[n+p+1]!==0&&(r=1),this[n+p]=(e/c>>0)-r&255;return n+o},rt.prototype.writeInt8=function(e,n,o){return e=+e,n=n|0,o||Ht(this,e,n,1,127,-128),rt.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[n]=e&255,n+1},rt.prototype.writeInt16LE=function(e,n,o){return e=+e,n=n|0,o||Ht(this,e,n,2,32767,-32768),rt.TYPED_ARRAY_SUPPORT?(this[n]=e&255,this[n+1]=e>>>8):vn(this,e,n,!0),n+2},rt.prototype.writeInt16BE=function(e,n,o){return e=+e,n=n|0,o||Ht(this,e,n,2,32767,-32768),rt.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=e&255):vn(this,e,n,!1),n+2},rt.prototype.writeInt32LE=function(e,n,o){return e=+e,n=n|0,o||Ht(this,e,n,4,2147483647,-2147483648),rt.TYPED_ARRAY_SUPPORT?(this[n]=e&255,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):En(this,e,n,!0),n+4},rt.prototype.writeInt32BE=function(e,n,o){return e=+e,n=n|0,o||Ht(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),rt.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255):En(this,e,n,!1),n+4};function om(a,e,n,o,t,u){if(n+o>a.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function lm(a,e,n,o,t){return t||om(a,e,n,4),Yp(a,e,n,o,23,4),n+4}rt.prototype.writeFloatLE=function(e,n,o){return lm(this,e,n,!0,o)},rt.prototype.writeFloatBE=function(e,n,o){return lm(this,e,n,!1,o)};function um(a,e,n,o,t){return t||om(a,e,n,8),Yp(a,e,n,o,52,8),n+8}rt.prototype.writeDoubleLE=function(e,n,o){return um(this,e,n,!0,o)},rt.prototype.writeDoubleBE=function(e,n,o){return um(this,e,n,!1,o)},rt.prototype.copy=function(e,n,o,t){if(o||(o=0),!t&&t!==0&&(t=this.length),n>=e.length&&(n=e.length),n||(n=0),t>0&&t<o&&(t=o),t===o||e.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("sourceStart out of bounds");if(t<0)throw new RangeError("sourceEnd out of bounds");t>this.length&&(t=this.length),e.length-n<t-o&&(t=e.length-n+o);var u=t-o,p;if(this===e&&o<n&&n<t)for(p=u-1;p>=0;--p)e[p+n]=this[p+o];else if(u<1e3||!rt.TYPED_ARRAY_SUPPORT)for(p=0;p<u;++p)e[p+n]=this[p+o];else Uint8Array.prototype.set.call(e,this.subarray(o,o+u),n);return u},rt.prototype.fill=function(e,n,o,t){if(typeof e=="string"){if(typeof n=="string"?(t=n,n=0,o=this.length):typeof o=="string"&&(t=o,o=this.length),e.length===1){var u=e.charCodeAt(0);u<256&&(e=u)}if(t!==void 0&&typeof t!="string")throw new TypeError("encoding must be a string");if(typeof t=="string"&&!rt.isEncoding(t))throw new TypeError("Unknown encoding: "+t)}else typeof e=="number"&&(e=e&255);if(n<0||this.length<n||this.length<o)throw new RangeError("Out of range index");if(o<=n)return this;n=n>>>0,o=o===void 0?this.length:o>>>0,e||(e=0);var p;if(typeof e=="number")for(p=n;p<o;++p)this[p]=e;else{var c=ar(e)?e:Sn(new rt(e,t).toString()),r=c.length;for(p=0;p<o-n;++p)this[p+n]=c[p%r]}return this};var Ax=/[^+\/0-9A-Za-z-_]/g;function Tx(a){if(a=kx(a).replace(Ax,""),a.length<2)return"";for(;a.length%4!==0;)a=a+"=";return a}function kx(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function Dx(a){return a<16?"0"+a.toString(16):a.toString(16)}function Sn(a,e){e=e||1/0;for(var n,o=a.length,t=null,u=[],p=0;p<o;++p){if(n=a.charCodeAt(p),n>55295&&n<57344){if(!t){if(n>56319){(e-=3)>-1&&u.push(239,191,189);continue}else if(p+1===o){(e-=3)>-1&&u.push(239,191,189);continue}t=n;continue}if(n<56320){(e-=3)>-1&&u.push(239,191,189),t=n;continue}n=(t-55296<<10|n-56320)+65536}else t&&(e-=3)>-1&&u.push(239,191,189);if(t=null,n<128){if((e-=1)<0)break;u.push(n)}else if(n<2048){if((e-=2)<0)break;u.push(n>>6|192,n&63|128)}else if(n<65536){if((e-=3)<0)break;u.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((e-=4)<0)break;u.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return u}function Ix(a){for(var e=[],n=0;n<a.length;++n)e.push(a.charCodeAt(n)&255);return e}function Px(a,e){for(var n,o,t,u=[],p=0;p<a.length&&!((e-=2)<0);++p)n=a.charCodeAt(p),o=n>>8,t=n%256,u.push(t),u.push(o);return u}function cm(a){return sx(Tx(a))}function bn(a,e,n,o){for(var t=0;t<o&&!(t+n>=e.length||t>=a.length);++t)e[t+n]=a[t];return t}function Fx(a){return a!==a}function Rx(a){return a!=null&&(!!a._isBuffer||fm(a)||_x(a))}function fm(a){return!!a.constructor&&typeof a.constructor.isBuffer=="function"&&a.constructor.isBuffer(a)}function _x(a){return typeof a.readFloatLE=="function"&&typeof a.slice=="function"&&fm(a.slice(0,0))}var xn;typeof Object.create=="function"?xn=function(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:xn=function(e,n){e.super_=n;var o=function(){};o.prototype=n.prototype,e.prototype=new o,e.prototype.constructor=e};var pm=Object.getOwnPropertyDescriptors||function(e){for(var n=Object.keys(e),o={},t=0;t<n.length;t++)o[n[t]]=Object.getOwnPropertyDescriptor(e,n[t]);return o},Bx=/%[sdj%]/g;function Cn(a){if(!Kr(a)){for(var e=[],n=0;n<arguments.length;n++)e.push(ir(arguments[n]));return e.join(" ")}for(var n=1,o=arguments,t=o.length,u=String(a).replace(Bx,function(c){if(c==="%%")return"%";if(n>=t)return c;switch(c){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return JSON.stringify(o[n++])}catch{return"[Circular]"}default:return c}}),p=o[n];n<t;p=o[++n])Hr(p)||!Ar(p)?u+=" "+p:u+=" "+ir(p);return u}function Xn(a,e){if(or(Xt.process))return function(){return Xn(a,e).apply(this,arguments)};if(Bt.noDeprecation===!0)return a;var n=!1;function o(){if(!n){if(Bt.throwDeprecation)throw new Error(e);Bt.traceDeprecation?console.trace(e):console.error(e),n=!0}return a.apply(this,arguments)}return o}var wn={},Jn;function mm(a){if(or(Jn)&&(Jn=Bt.env.NODE_DEBUG||""),a=a.toUpperCase(),!wn[a])if(new RegExp("\\b"+a+"\\b","i").test(Jn)){var e=0;wn[a]=function(){var n=Cn.apply(null,arguments);console.error("%s %d: %s",a,e,n)}}else wn[a]=function(){};return wn[a]}function ir(a,e){var n={seen:[],stylize:Ox};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Tn(e)?n.showHidden=e:e&&ns(n,e),or(n.showHidden)&&(n.showHidden=!1),or(n.depth)&&(n.depth=2),or(n.colors)&&(n.colors=!1),or(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Lx),An(n,a,n.depth)}ir.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},ir.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Lx(a,e){var n=ir.styles[e];return n?"\x1B["+ir.colors[n][0]+"m"+a+"\x1B["+ir.colors[n][1]+"m":a}function Ox(a,e){return a}function Nx(a){var e={};return a.forEach(function(n,o){e[n]=!0}),e}function An(a,e,n){if(a.customInspect&&e&&Yr(e.inspect)&&e.inspect!==ir&&!(e.constructor&&e.constructor.prototype===e)){var o=e.inspect(n,a);return Kr(o)||(o=An(a,o,n)),o}var t=Mx(a,e);if(t)return t;var u=Object.keys(e),p=Nx(u);if(a.showHidden&&(u=Object.getOwnPropertyNames(e)),Jr(e)&&(u.indexOf("message")>=0||u.indexOf("description")>=0))return Yn(e);if(u.length===0){if(Yr(e)){var c=e.name?": "+e.name:"";return a.stylize("[Function"+c+"]","special")}if(Xr(e))return a.stylize(RegExp.prototype.toString.call(e),"regexp");if(kn(e))return a.stylize(Date.prototype.toString.call(e),"date");if(Jr(e))return Yn(e)}var r="",m=!1,i=["{","}"];if(Zn(e)&&(m=!0,i=["[","]"]),Yr(e)){var f=e.name?": "+e.name:"";r=" [Function"+f+"]"}if(Xr(e)&&(r=" "+RegExp.prototype.toString.call(e)),kn(e)&&(r=" "+Date.prototype.toUTCString.call(e)),Jr(e)&&(r=" "+Yn(e)),u.length===0&&(!m||e.length==0))return i[0]+r+i[1];if(n<0)return Xr(e)?a.stylize(RegExp.prototype.toString.call(e),"regexp"):a.stylize("[Object]","special");a.seen.push(e);var h;return m?h=jx(a,e,n,p,u):h=u.map(function(s){return Qn(a,e,n,p,s,m)}),a.seen.pop(),Ux(h,r,i)}function Mx(a,e){if(or(e))return a.stylize("undefined","undefined");if(Kr(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(n,"string")}if(es(e))return a.stylize(""+e,"number");if(Tn(e))return a.stylize(""+e,"boolean");if(Hr(e))return a.stylize("null","null")}function Yn(a){return"["+Error.prototype.toString.call(a)+"]"}function jx(a,e,n,o,t){for(var u=[],p=0,c=e.length;p<c;++p)Em(e,String(p))?u.push(Qn(a,e,n,o,String(p),!0)):u.push("");return t.forEach(function(r){r.match(/^\d+$/)||u.push(Qn(a,e,n,o,r,!0))}),u}function Qn(a,e,n,o,t,u){var p,c,r;if(r=Object.getOwnPropertyDescriptor(e,t)||{value:e[t]},r.get?r.set?c=a.stylize("[Getter/Setter]","special"):c=a.stylize("[Getter]","special"):r.set&&(c=a.stylize("[Setter]","special")),Em(o,t)||(p="["+t+"]"),c||(a.seen.indexOf(r.value)<0?(Hr(n)?c=An(a,r.value,null):c=An(a,r.value,n-1),c.indexOf(`
|
|
18
|
+
`)>-1&&(u?c=c.split(`
|
|
19
|
+
`).map(function(m){return" "+m}).join(`
|
|
20
|
+
`).substr(2):c=`
|
|
21
|
+
`+c.split(`
|
|
22
|
+
`).map(function(m){return" "+m}).join(`
|
|
23
|
+
`))):c=a.stylize("[Circular]","special")),or(p)){if(u&&t.match(/^\d+$/))return c;p=JSON.stringify(""+t),p.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(p=p.substr(1,p.length-2),p=a.stylize(p,"name")):(p=p.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),p=a.stylize(p,"string"))}return p+": "+c}function Ux(a,e,n){var o=a.reduce(function(t,u){return u.indexOf(`
|
|
24
|
+
`)>=0,t+u.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>60?n[0]+(e===""?"":e+`
|
|
25
|
+
`)+" "+a.join(`,
|
|
26
|
+
`)+" "+n[1]:n[0]+e+" "+a.join(", ")+" "+n[1]}function Zn(a){return Array.isArray(a)}function Tn(a){return typeof a=="boolean"}function Hr(a){return a===null}function hm(a){return a==null}function es(a){return typeof a=="number"}function Kr(a){return typeof a=="string"}function dm(a){return typeof a=="symbol"}function or(a){return a===void 0}function Xr(a){return Ar(a)&&ts(a)==="[object RegExp]"}function Ar(a){return typeof a=="object"&&a!==null}function kn(a){return Ar(a)&&ts(a)==="[object Date]"}function Jr(a){return Ar(a)&&(ts(a)==="[object Error]"||a instanceof Error)}function Yr(a){return typeof a=="function"}function gm(a){return a===null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||typeof a=="symbol"||typeof a>"u"}function ym(a){return rt.isBuffer(a)}function ts(a){return Object.prototype.toString.call(a)}function rs(a){return a<10?"0"+a.toString(10):a.toString(10)}var qx=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Vx(){var a=new Date,e=[rs(a.getHours()),rs(a.getMinutes()),rs(a.getSeconds())].join(":");return[a.getDate(),qx[a.getMonth()],e].join(" ")}function vm(){console.log("%s - %s",Vx(),Cn.apply(null,arguments))}function ns(a,e){if(!e||!Ar(e))return a;for(var n=Object.keys(e),o=n.length;o--;)a[n[o]]=e[n[o]];return a}function Em(a,e){return Object.prototype.hasOwnProperty.call(a,e)}var Tr=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function ss(a){if(typeof a!="function")throw new TypeError('The "original" argument must be of type Function');if(Tr&&a[Tr]){var e=a[Tr];if(typeof e!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,Tr,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var n,o,t=new Promise(function(c,r){n=c,o=r}),u=[],p=0;p<arguments.length;p++)u.push(arguments[p]);u.push(function(c,r){c?o(c):n(r)});try{a.apply(this,u)}catch(c){o(c)}return t}return Object.setPrototypeOf(e,Object.getPrototypeOf(a)),Tr&&Object.defineProperty(e,Tr,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,pm(a))}ss.custom=Tr;function $x(a,e){if(!a){var n=new Error("Promise was rejected with a falsy value");n.reason=a,a=n}return e(a)}function Sm(a){if(typeof a!="function")throw new TypeError('The "original" argument must be of type Function');function e(){for(var n=[],o=0;o<arguments.length;o++)n.push(arguments[o]);var t=n.pop();if(typeof t!="function")throw new TypeError("The last argument must be of type Function");var u=this,p=function(){return t.apply(u,arguments)};a.apply(this,n).then(function(c){Bt.nextTick(p.bind(null,null,c))},function(c){Bt.nextTick($x.bind(null,c,p))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(a)),Object.defineProperties(e,pm(a)),e}var Wx={inherits:xn,_extend:ns,log:vm,isBuffer:ym,isPrimitive:gm,isFunction:Yr,isError:Jr,isDate:kn,isObject:Ar,isRegExp:Xr,isUndefined:or,isSymbol:dm,isString:Kr,isNumber:es,isNullOrUndefined:hm,isNull:Hr,isBoolean:Tn,isArray:Zn,inspect:ir,deprecate:Xn,format:Cn,debuglog:mm,promisify:ss,callbackify:Sm},Gx=Object.freeze({__proto__:null,_extend:ns,callbackify:Sm,debuglog:mm,default:Wx,deprecate:Xn,format:Cn,inherits:xn,inspect:ir,isArray:Zn,isBoolean:Tn,isBuffer:ym,isDate:kn,isError:Jr,isFunction:Yr,isNull:Hr,isNullOrUndefined:hm,isNumber:es,isObject:Ar,isPrimitive:gm,isRegExp:Xr,isString:Kr,isSymbol:dm,isUndefined:or,log:vm,promisify:ss}),zx=wp(Gx),Dn={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */var bm;function Hx(){return bm||(bm=1,function(a,e){(function(n,o){o(e)})(this,function(n){function o(){for(var pe=arguments.length,se=Array(pe),xe=0;xe<pe;xe++)se[xe]=arguments[xe];if(se.length>1){se[0]=se[0].slice(0,-1);for(var _e=se.length-1,Be=1;Be<_e;++Be)se[Be]=se[Be].slice(1,-1);return se[_e]=se[_e].slice(1),se.join("")}else return se[0]}function t(pe){return"(?:"+pe+")"}function u(pe){return pe===void 0?"undefined":pe===null?"null":Object.prototype.toString.call(pe).split(" ").pop().split("]").shift().toLowerCase()}function p(pe){return pe.toUpperCase()}function c(pe){return pe!=null?pe instanceof Array?pe:typeof pe.length!="number"||pe.split||pe.setInterval||pe.call?[pe]:Array.prototype.slice.call(pe):[]}function r(pe,se){var xe=pe;if(se)for(var _e in se)xe[_e]=se[_e];return xe}function m(pe){var se="[A-Za-z]",xe="[0-9]",_e=o(xe,"[A-Fa-f]"),Be=t(t("%[EFef]"+_e+"%"+_e+_e+"%"+_e+_e)+"|"+t("%[89A-Fa-f]"+_e+"%"+_e+_e)+"|"+t("%"+_e+_e)),Ze="[\\:\\/\\?\\#\\[\\]\\@]",Oe="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",He=o(Ze,Oe),tt=pe?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ve=pe?"[\\uE000-\\uF8FF]":"[]",it=o(se,xe,"[\\-\\.\\_\\~]",tt);t(se+o(se,xe,"[\\+\\-\\.]")+"*"),t(t(Be+"|"+o(it,Oe,"[\\:]"))+"*");var pt=t(t("25[0-5]")+"|"+t("2[0-4]"+xe)+"|"+t("1"+xe+xe)+"|"+t("0?[1-9]"+xe)+"|0?0?"+xe),vt=t(pt+"\\."+pt+"\\."+pt+"\\."+pt),ft=t(_e+"{1,4}"),gt=t(t(ft+"\\:"+ft)+"|"+vt),Ct=t(t(ft+"\\:")+"{6}"+gt),Et=t("\\:\\:"+t(ft+"\\:")+"{5}"+gt),Tt=t(t(ft)+"?\\:\\:"+t(ft+"\\:")+"{4}"+gt),_t=t(t(t(ft+"\\:")+"{0,1}"+ft)+"?\\:\\:"+t(ft+"\\:")+"{3}"+gt),kt=t(t(t(ft+"\\:")+"{0,2}"+ft)+"?\\:\\:"+t(ft+"\\:")+"{2}"+gt),Wt=t(t(t(ft+"\\:")+"{0,3}"+ft)+"?\\:\\:"+ft+"\\:"+gt),zt=t(t(t(ft+"\\:")+"{0,4}"+ft)+"?\\:\\:"+gt),Ot=t(t(t(ft+"\\:")+"{0,5}"+ft)+"?\\:\\:"+ft),$t=t(t(t(ft+"\\:")+"{0,6}"+ft)+"?\\:\\:"),ut=t([Ct,Et,Tt,_t,kt,Wt,zt,Ot,$t].join("|")),Mt=t(t(it+"|"+Be)+"+");t("[vV]"+_e+"+\\."+o(it,Oe,"[\\:]")+"+"),t(t(Be+"|"+o(it,Oe))+"*");var Lt=t(Be+"|"+o(it,Oe,"[\\:\\@]"));return t(t(Be+"|"+o(it,Oe,"[\\@]"))+"+"),t(t(Lt+"|"+o("[\\/\\?]",Ve))+"*"),{NOT_SCHEME:new RegExp(o("[^]",se,xe,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(o("[^\\%\\:]",it,Oe),"g"),NOT_HOST:new RegExp(o("[^\\%\\[\\]\\:]",it,Oe),"g"),NOT_PATH:new RegExp(o("[^\\%\\/\\:\\@]",it,Oe),"g"),NOT_PATH_NOSCHEME:new RegExp(o("[^\\%\\/\\@]",it,Oe),"g"),NOT_QUERY:new RegExp(o("[^\\%]",it,Oe,"[\\:\\@\\/\\?]",Ve),"g"),NOT_FRAGMENT:new RegExp(o("[^\\%]",it,Oe,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(o("[^]",it,Oe),"g"),UNRESERVED:new RegExp(it,"g"),OTHER_CHARS:new RegExp(o("[^\\%]",it,He),"g"),PCT_ENCODED:new RegExp(Be,"g"),IPV4ADDRESS:new RegExp("^("+vt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+ut+")"+t(t("\\%25|\\%(?!"+_e+"{2})")+"("+Mt+")")+"?\\]?$")}}var i=m(!1),f=m(!0),h=function(){function pe(se,xe){var _e=[],Be=!0,Ze=!1,Oe=void 0;try{for(var He=se[Symbol.iterator](),tt;!(Be=(tt=He.next()).done)&&(_e.push(tt.value),!(xe&&_e.length===xe));Be=!0);}catch(Ve){Ze=!0,Oe=Ve}finally{try{!Be&&He.return&&He.return()}finally{if(Ze)throw Oe}}return _e}return function(se,xe){if(Array.isArray(se))return se;if(Symbol.iterator in Object(se))return pe(se,xe);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(pe){if(Array.isArray(pe)){for(var se=0,xe=Array(pe.length);se<pe.length;se++)xe[se]=pe[se];return xe}else return Array.from(pe)},l=2147483647,g=36,d=1,v=26,S=38,b=700,w=72,C=128,E="-",T=/^xn--/,x=/[^\0-\x7E]/,A=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},B=g-d,R=Math.floor,F=String.fromCharCode;function P(pe){throw new RangeError(k[pe])}function N(pe,se){for(var xe=[],_e=pe.length;_e--;)xe[_e]=se(pe[_e]);return xe}function j(pe,se){var xe=pe.split("@"),_e="";xe.length>1&&(_e=xe[0]+"@",pe=xe[1]),pe=pe.replace(A,".");var Be=pe.split("."),Ze=N(Be,se).join(".");return _e+Ze}function V(pe){for(var se=[],xe=0,_e=pe.length;xe<_e;){var Be=pe.charCodeAt(xe++);if(Be>=55296&&Be<=56319&&xe<_e){var Ze=pe.charCodeAt(xe++);(Ze&64512)==56320?se.push(((Be&1023)<<10)+(Ze&1023)+65536):(se.push(Be),xe--)}else se.push(Be)}return se}var O=function(se){return String.fromCodePoint.apply(String,s(se))},G=function(se){return se-48<10?se-22:se-65<26?se-65:se-97<26?se-97:g},L=function(se,xe){return se+22+75*(se<26)-((xe!=0)<<5)},K=function(se,xe,_e){var Be=0;for(se=_e?R(se/b):se>>1,se+=R(se/xe);se>B*v>>1;Be+=g)se=R(se/B);return R(Be+(B+1)*se/(se+S))},H=function(se){var xe=[],_e=se.length,Be=0,Ze=C,Oe=w,He=se.lastIndexOf(E);He<0&&(He=0);for(var tt=0;tt<He;++tt)se.charCodeAt(tt)>=128&&P("not-basic"),xe.push(se.charCodeAt(tt));for(var Ve=He>0?He+1:0;Ve<_e;){for(var it=Be,pt=1,vt=g;;vt+=g){Ve>=_e&&P("invalid-input");var ft=G(se.charCodeAt(Ve++));(ft>=g||ft>R((l-Be)/pt))&&P("overflow"),Be+=ft*pt;var gt=vt<=Oe?d:vt>=Oe+v?v:vt-Oe;if(ft<gt)break;var Ct=g-gt;pt>R(l/Ct)&&P("overflow"),pt*=Ct}var Et=xe.length+1;Oe=K(Be-it,Et,it==0),R(Be/Et)>l-Ze&&P("overflow"),Ze+=R(Be/Et),Be%=Et,xe.splice(Be++,0,Ze)}return String.fromCodePoint.apply(String,xe)},ae=function(se){var xe=[];se=V(se);var _e=se.length,Be=C,Ze=0,Oe=w,He=!0,tt=!1,Ve=void 0;try{for(var it=se[Symbol.iterator](),pt;!(He=(pt=it.next()).done);He=!0){var vt=pt.value;vt<128&&xe.push(F(vt))}}catch(Zt){tt=!0,Ve=Zt}finally{try{!He&&it.return&&it.return()}finally{if(tt)throw Ve}}var ft=xe.length,gt=ft;for(ft&&xe.push(E);gt<_e;){var Ct=l,Et=!0,Tt=!1,_t=void 0;try{for(var kt=se[Symbol.iterator](),Wt;!(Et=(Wt=kt.next()).done);Et=!0){var zt=Wt.value;zt>=Be&&zt<Ct&&(Ct=zt)}}catch(Zt){Tt=!0,_t=Zt}finally{try{!Et&&kt.return&&kt.return()}finally{if(Tt)throw _t}}var Ot=gt+1;Ct-Be>R((l-Ze)/Ot)&&P("overflow"),Ze+=(Ct-Be)*Ot,Be=Ct;var $t=!0,ut=!1,Mt=void 0;try{for(var Lt=se[Symbol.iterator](),Er;!($t=(Er=Lt.next()).done);$t=!0){var Sr=Er.value;if(Sr<Be&&++Ze>l&&P("overflow"),Sr==Be){for(var Qt=Ze,cr=g;;cr+=g){var rr=cr<=Oe?d:cr>=Oe+v?v:cr-Oe;if(Qt<rr)break;var fr=Qt-rr,br=g-rr;xe.push(F(L(rr+fr%br,0))),Qt=R(fr/br)}xe.push(F(L(Qt,0))),Oe=K(Ze,Ot,gt==ft),Ze=0,++gt}}}catch(Zt){ut=!0,Mt=Zt}finally{try{!$t&&Lt.return&&Lt.return()}finally{if(ut)throw Mt}}++Ze,++Be}return xe.join("")},re=function(se){return j(se,function(xe){return T.test(xe)?H(xe.slice(4).toLowerCase()):xe})},De=function(se){return j(se,function(xe){return x.test(xe)?"xn--"+ae(xe):xe})},Y={version:"2.1.0",ucs2:{decode:V,encode:O},decode:H,encode:ae,toASCII:De,toUnicode:re},I={};function W(pe){var se=pe.charCodeAt(0),xe=void 0;return se<16?xe="%0"+se.toString(16).toUpperCase():se<128?xe="%"+se.toString(16).toUpperCase():se<2048?xe="%"+(se>>6|192).toString(16).toUpperCase()+"%"+(se&63|128).toString(16).toUpperCase():xe="%"+(se>>12|224).toString(16).toUpperCase()+"%"+(se>>6&63|128).toString(16).toUpperCase()+"%"+(se&63|128).toString(16).toUpperCase(),xe}function ue(pe){for(var se="",xe=0,_e=pe.length;xe<_e;){var Be=parseInt(pe.substr(xe+1,2),16);if(Be<128)se+=String.fromCharCode(Be),xe+=3;else if(Be>=194&&Be<224){if(_e-xe>=6){var Ze=parseInt(pe.substr(xe+4,2),16);se+=String.fromCharCode((Be&31)<<6|Ze&63)}else se+=pe.substr(xe,6);xe+=6}else if(Be>=224){if(_e-xe>=9){var Oe=parseInt(pe.substr(xe+4,2),16),He=parseInt(pe.substr(xe+7,2),16);se+=String.fromCharCode((Be&15)<<12|(Oe&63)<<6|He&63)}else se+=pe.substr(xe,9);xe+=9}else se+=pe.substr(xe,3),xe+=3}return se}function oe(pe,se){function xe(_e){var Be=ue(_e);return Be.match(se.UNRESERVED)?Be:_e}return pe.scheme&&(pe.scheme=String(pe.scheme).replace(se.PCT_ENCODED,xe).toLowerCase().replace(se.NOT_SCHEME,"")),pe.userinfo!==void 0&&(pe.userinfo=String(pe.userinfo).replace(se.PCT_ENCODED,xe).replace(se.NOT_USERINFO,W).replace(se.PCT_ENCODED,p)),pe.host!==void 0&&(pe.host=String(pe.host).replace(se.PCT_ENCODED,xe).toLowerCase().replace(se.NOT_HOST,W).replace(se.PCT_ENCODED,p)),pe.path!==void 0&&(pe.path=String(pe.path).replace(se.PCT_ENCODED,xe).replace(pe.scheme?se.NOT_PATH:se.NOT_PATH_NOSCHEME,W).replace(se.PCT_ENCODED,p)),pe.query!==void 0&&(pe.query=String(pe.query).replace(se.PCT_ENCODED,xe).replace(se.NOT_QUERY,W).replace(se.PCT_ENCODED,p)),pe.fragment!==void 0&&(pe.fragment=String(pe.fragment).replace(se.PCT_ENCODED,xe).replace(se.NOT_FRAGMENT,W).replace(se.PCT_ENCODED,p)),pe}function ne(pe){return pe.replace(/^0*(.*)/,"$1")||"0"}function he(pe,se){var xe=pe.match(se.IPV4ADDRESS)||[],_e=h(xe,2),Be=_e[1];return Be?Be.split(".").map(ne).join("."):pe}function ye(pe,se){var xe=pe.match(se.IPV6ADDRESS)||[],_e=h(xe,3),Be=_e[1],Ze=_e[2];if(Be){for(var Oe=Be.toLowerCase().split("::").reverse(),He=h(Oe,2),tt=He[0],Ve=He[1],it=Ve?Ve.split(":").map(ne):[],pt=tt.split(":").map(ne),vt=se.IPV4ADDRESS.test(pt[pt.length-1]),ft=vt?7:8,gt=pt.length-ft,Ct=Array(ft),Et=0;Et<ft;++Et)Ct[Et]=it[Et]||pt[gt+Et]||"";vt&&(Ct[ft-1]=he(Ct[ft-1],se));var Tt=Ct.reduce(function(Ot,$t,ut){if(!$t||$t==="0"){var Mt=Ot[Ot.length-1];Mt&&Mt.index+Mt.length===ut?Mt.length++:Ot.push({index:ut,length:1})}return Ot},[]),_t=Tt.sort(function(Ot,$t){return $t.length-Ot.length})[0],kt=void 0;if(_t&&_t.length>1){var Wt=Ct.slice(0,_t.index),zt=Ct.slice(_t.index+_t.length);kt=Wt.join(":")+"::"+zt.join(":")}else kt=Ct.join(":");return Ze&&(kt+="%"+Ze),kt}else return pe}var ge=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Ce="".match(/(){0}/)[1]===void 0;function z(pe){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xe={},_e=se.iri!==!1?f:i;se.reference==="suffix"&&(pe=(se.scheme?se.scheme+":":"")+"//"+pe);var Be=pe.match(ge);if(Be){Ce?(xe.scheme=Be[1],xe.userinfo=Be[3],xe.host=Be[4],xe.port=parseInt(Be[5],10),xe.path=Be[6]||"",xe.query=Be[7],xe.fragment=Be[8],isNaN(xe.port)&&(xe.port=Be[5])):(xe.scheme=Be[1]||void 0,xe.userinfo=pe.indexOf("@")!==-1?Be[3]:void 0,xe.host=pe.indexOf("//")!==-1?Be[4]:void 0,xe.port=parseInt(Be[5],10),xe.path=Be[6]||"",xe.query=pe.indexOf("?")!==-1?Be[7]:void 0,xe.fragment=pe.indexOf("#")!==-1?Be[8]:void 0,isNaN(xe.port)&&(xe.port=pe.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Be[4]:void 0)),xe.host&&(xe.host=ye(he(xe.host,_e),_e)),xe.scheme===void 0&&xe.userinfo===void 0&&xe.host===void 0&&xe.port===void 0&&!xe.path&&xe.query===void 0?xe.reference="same-document":xe.scheme===void 0?xe.reference="relative":xe.fragment===void 0?xe.reference="absolute":xe.reference="uri",se.reference&&se.reference!=="suffix"&&se.reference!==xe.reference&&(xe.error=xe.error||"URI is not a "+se.reference+" reference.");var Ze=I[(se.scheme||xe.scheme||"").toLowerCase()];if(!se.unicodeSupport&&(!Ze||!Ze.unicodeSupport)){if(xe.host&&(se.domainHost||Ze&&Ze.domainHost))try{xe.host=Y.toASCII(xe.host.replace(_e.PCT_ENCODED,ue).toLowerCase())}catch(Oe){xe.error=xe.error||"Host's domain name can not be converted to ASCII via punycode: "+Oe}oe(xe,i)}else oe(xe,_e);Ze&&Ze.parse&&Ze.parse(xe,se)}else xe.error=xe.error||"URI can not be parsed.";return xe}function Q(pe,se){var xe=se.iri!==!1?f:i,_e=[];return pe.userinfo!==void 0&&(_e.push(pe.userinfo),_e.push("@")),pe.host!==void 0&&_e.push(ye(he(String(pe.host),xe),xe).replace(xe.IPV6ADDRESS,function(Be,Ze,Oe){return"["+Ze+(Oe?"%25"+Oe:"")+"]"})),(typeof pe.port=="number"||typeof pe.port=="string")&&(_e.push(":"),_e.push(String(pe.port))),_e.length?_e.join(""):void 0}var Re=/^\.\.?\//,$=/^\/\.(\/|$)/,ie=/^\/\.\.(\/|$)/,Te=/^\/?(?:.|\n)*?(?=\/|$)/;function Ne(pe){for(var se=[];pe.length;)if(pe.match(Re))pe=pe.replace(Re,"");else if(pe.match($))pe=pe.replace($,"/");else if(pe.match(ie))pe=pe.replace(ie,"/"),se.pop();else if(pe==="."||pe==="..")pe="";else{var xe=pe.match(Te);if(xe){var _e=xe[0];pe=pe.slice(_e.length),se.push(_e)}else throw new Error("Unexpected dot segment condition")}return se.join("")}function Le(pe){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xe=se.iri?f:i,_e=[],Be=I[(se.scheme||pe.scheme||"").toLowerCase()];if(Be&&Be.serialize&&Be.serialize(pe,se),pe.host&&!xe.IPV6ADDRESS.test(pe.host)){if(se.domainHost||Be&&Be.domainHost)try{pe.host=se.iri?Y.toUnicode(pe.host):Y.toASCII(pe.host.replace(xe.PCT_ENCODED,ue).toLowerCase())}catch(He){pe.error=pe.error||"Host's domain name can not be converted to "+(se.iri?"Unicode":"ASCII")+" via punycode: "+He}}oe(pe,xe),se.reference!=="suffix"&&pe.scheme&&(_e.push(pe.scheme),_e.push(":"));var Ze=Q(pe,se);if(Ze!==void 0&&(se.reference!=="suffix"&&_e.push("//"),_e.push(Ze),pe.path&&pe.path.charAt(0)!=="/"&&_e.push("/")),pe.path!==void 0){var Oe=pe.path;!se.absolutePath&&(!Be||!Be.absolutePath)&&(Oe=Ne(Oe)),Ze===void 0&&(Oe=Oe.replace(/^\/\//,"/%2F")),_e.push(Oe)}return pe.query!==void 0&&(_e.push("?"),_e.push(pe.query)),pe.fragment!==void 0&&(_e.push("#"),_e.push(pe.fragment)),_e.join("")}function U(pe,se){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_e=arguments[3],Be={};return _e||(pe=z(Le(pe,xe),xe),se=z(Le(se,xe),xe)),xe=xe||{},!xe.tolerant&&se.scheme?(Be.scheme=se.scheme,Be.userinfo=se.userinfo,Be.host=se.host,Be.port=se.port,Be.path=Ne(se.path||""),Be.query=se.query):(se.userinfo!==void 0||se.host!==void 0||se.port!==void 0?(Be.userinfo=se.userinfo,Be.host=se.host,Be.port=se.port,Be.path=Ne(se.path||""),Be.query=se.query):(se.path?(se.path.charAt(0)==="/"?Be.path=Ne(se.path):((pe.userinfo!==void 0||pe.host!==void 0||pe.port!==void 0)&&!pe.path?Be.path="/"+se.path:pe.path?Be.path=pe.path.slice(0,pe.path.lastIndexOf("/")+1)+se.path:Be.path=se.path,Be.path=Ne(Be.path)),Be.query=se.query):(Be.path=pe.path,se.query!==void 0?Be.query=se.query:Be.query=pe.query),Be.userinfo=pe.userinfo,Be.host=pe.host,Be.port=pe.port),Be.scheme=pe.scheme),Be.fragment=se.fragment,Be}function Qe(pe,se,xe){var _e=r({scheme:"null"},xe);return Le(U(z(pe,_e),z(se,_e),_e,!0),_e)}function ct(pe,se){return typeof pe=="string"?pe=Le(z(pe,se),se):u(pe)==="object"&&(pe=z(Le(pe,se),se)),pe}function st(pe,se,xe){return typeof pe=="string"?pe=Le(z(pe,xe),xe):u(pe)==="object"&&(pe=Le(pe,xe)),typeof se=="string"?se=Le(z(se,xe),xe):u(se)==="object"&&(se=Le(se,xe)),pe===se}function Ke(pe,se){return pe&&pe.toString().replace(!se||!se.iri?i.ESCAPE:f.ESCAPE,W)}function Je(pe,se){return pe&&pe.toString().replace(!se||!se.iri?i.PCT_ENCODED:f.PCT_ENCODED,ue)}var ht={scheme:"http",domainHost:!0,parse:function(se,xe){return se.host||(se.error=se.error||"HTTP URIs must have a host."),se},serialize:function(se,xe){var _e=String(se.scheme).toLowerCase()==="https";return(se.port===(_e?443:80)||se.port==="")&&(se.port=void 0),se.path||(se.path="/"),se}},dt={scheme:"https",domainHost:ht.domainHost,parse:ht.parse,serialize:ht.serialize};function ot(pe){return typeof pe.secure=="boolean"?pe.secure:String(pe.scheme).toLowerCase()==="wss"}var nt={scheme:"ws",domainHost:!0,parse:function(se,xe){var _e=se;return _e.secure=ot(_e),_e.resourceName=(_e.path||"/")+(_e.query?"?"+_e.query:""),_e.path=void 0,_e.query=void 0,_e},serialize:function(se,xe){if((se.port===(ot(se)?443:80)||se.port==="")&&(se.port=void 0),typeof se.secure=="boolean"&&(se.scheme=se.secure?"wss":"ws",se.secure=void 0),se.resourceName){var _e=se.resourceName.split("?"),Be=h(_e,2),Ze=Be[0],Oe=Be[1];se.path=Ze&&Ze!=="/"?Ze:void 0,se.query=Oe,se.resourceName=void 0}return se.fragment=void 0,se}},ke={scheme:"wss",domainHost:nt.domainHost,parse:nt.parse,serialize:nt.serialize},Se={},ve="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Fe="[0-9A-Fa-f]",$e=t(t("%[EFef]"+Fe+"%"+Fe+Fe+"%"+Fe+Fe)+"|"+t("%[89A-Fa-f]"+Fe+"%"+Fe+Fe)+"|"+t("%"+Fe+Fe)),ce="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",ee=o(be,'[\\"\\\\]'),le="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Ee=new RegExp(ve,"g"),Ie=new RegExp($e,"g"),_=new RegExp(o("[^]",ce,"[\\.]",'[\\"]',ee),"g"),J=new RegExp(o("[^]",ve,le),"g"),fe=J;function te(pe){var se=ue(pe);return se.match(Ee)?se:pe}var we={scheme:"mailto",parse:function(se,xe){var _e=se,Be=_e.to=_e.path?_e.path.split(","):[];if(_e.path=void 0,_e.query){for(var Ze=!1,Oe={},He=_e.query.split("&"),tt=0,Ve=He.length;tt<Ve;++tt){var it=He[tt].split("=");switch(it[0]){case"to":for(var pt=it[1].split(","),vt=0,ft=pt.length;vt<ft;++vt)Be.push(pt[vt]);break;case"subject":_e.subject=Je(it[1],xe);break;case"body":_e.body=Je(it[1],xe);break;default:Ze=!0,Oe[Je(it[0],xe)]=Je(it[1],xe);break}}Ze&&(_e.headers=Oe)}_e.query=void 0;for(var gt=0,Ct=Be.length;gt<Ct;++gt){var Et=Be[gt].split("@");if(Et[0]=Je(Et[0]),xe.unicodeSupport)Et[1]=Je(Et[1],xe).toLowerCase();else try{Et[1]=Y.toASCII(Je(Et[1],xe).toLowerCase())}catch(Tt){_e.error=_e.error||"Email address's domain name can not be converted to ASCII via punycode: "+Tt}Be[gt]=Et.join("@")}return _e},serialize:function(se,xe){var _e=se,Be=c(se.to);if(Be){for(var Ze=0,Oe=Be.length;Ze<Oe;++Ze){var He=String(Be[Ze]),tt=He.lastIndexOf("@"),Ve=He.slice(0,tt).replace(Ie,te).replace(Ie,p).replace(_,W),it=He.slice(tt+1);try{it=xe.iri?Y.toUnicode(it):Y.toASCII(Je(it,xe).toLowerCase())}catch(gt){_e.error=_e.error||"Email address's domain name can not be converted to "+(xe.iri?"Unicode":"ASCII")+" via punycode: "+gt}Be[Ze]=Ve+"@"+it}_e.path=Be.join(",")}var pt=se.headers=se.headers||{};se.subject&&(pt.subject=se.subject),se.body&&(pt.body=se.body);var vt=[];for(var ft in pt)pt[ft]!==Se[ft]&&vt.push(ft.replace(Ie,te).replace(Ie,p).replace(J,W)+"="+pt[ft].replace(Ie,te).replace(Ie,p).replace(fe,W));return vt.length&&(_e.query=vt.join("&")),_e}},Pe=/^([^\:]+)\:(.*)/,ze={scheme:"urn",parse:function(se,xe){var _e=se.path&&se.path.match(Pe),Be=se;if(_e){var Ze=xe.scheme||Be.scheme||"urn",Oe=_e[1].toLowerCase(),He=_e[2],tt=Ze+":"+(xe.nid||Oe),Ve=I[tt];Be.nid=Oe,Be.nss=He,Be.path=void 0,Ve&&(Be=Ve.parse(Be,xe))}else Be.error=Be.error||"URN can not be parsed.";return Be},serialize:function(se,xe){var _e=xe.scheme||se.scheme||"urn",Be=se.nid,Ze=_e+":"+(xe.nid||Be),Oe=I[Ze];Oe&&(se=Oe.serialize(se,xe));var He=se,tt=se.nss;return He.path=(Be||xe.nid)+":"+tt,He}},Ye=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,et={scheme:"urn:uuid",parse:function(se,xe){var _e=se;return _e.uuid=_e.nss,_e.nss=void 0,!xe.tolerant&&(!_e.uuid||!_e.uuid.match(Ye))&&(_e.error=_e.error||"UUID is not valid."),_e},serialize:function(se,xe){var _e=se;return _e.nss=(se.uuid||"").toLowerCase(),_e}};I[ht.scheme]=ht,I[dt.scheme]=dt,I[nt.scheme]=nt,I[ke.scheme]=ke,I[we.scheme]=we,I[ze.scheme]=ze,I[et.scheme]=et,n.SCHEMES=I,n.pctEncChar=W,n.pctDecChars=ue,n.parse=z,n.removeDotSegments=Ne,n.serialize=Le,n.resolveComponents=U,n.resolve=Qe,n.normalize=ct,n.equal=st,n.escapeComponent=Ke,n.unescapeComponent=Je,Object.defineProperty(n,"__esModule",{value:!0})})}(Dn,Dn.exports)),Dn.exports}var as,xm;function is(){return xm||(xm=1,as=function a(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var o,t,u;if(Array.isArray(e)){if(o=e.length,o!=n.length)return!1;for(t=o;t--!==0;)if(!a(e[t],n[t]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(u=Object.keys(e),o=u.length,o!==Object.keys(n).length)return!1;for(t=o;t--!==0;)if(!Object.prototype.hasOwnProperty.call(n,u[t]))return!1;for(t=o;t--!==0;){var p=u[t];if(!a(e[p],n[p]))return!1}return!0}return e!==e&&n!==n}),as}var os,Cm;function Kx(){return Cm||(Cm=1,os=function(e){for(var n=0,o=e.length,t=0,u;t<o;)n++,u=e.charCodeAt(t++),u>=55296&&u<=56319&&t<o&&(u=e.charCodeAt(t),(u&64512)==56320&&t++);return n}),os}var ls,wm;function Lr(){if(wm)return ls;wm=1,ls={copy:a,checkDataType:e,checkDataTypes:n,coerceToTypes:t,toHash:u,getProperty:r,escapeQuotes:m,equal:is(),ucs2length:Kx(),varOccurences:i,varReplace:f,schemaHasRules:h,schemaHasRulesExcept:s,schemaUnknownRules:l,toQuotedString:g,getPathExpr:d,getPath:v,getData:w,unescapeFragment:E,unescapeJsonPointer:A,escapeFragment:T,escapeJsonPointer:x};function a(k,B){B=B||{};for(var R in k)B[R]=k[R];return B}function e(k,B,R,F){var P=F?" !== ":" === ",N=F?" || ":" && ",j=F?"!":"",V=F?"":"!";switch(k){case"null":return B+P+"null";case"array":return j+"Array.isArray("+B+")";case"object":return"("+j+B+N+"typeof "+B+P+'"object"'+N+V+"Array.isArray("+B+"))";case"integer":return"(typeof "+B+P+'"number"'+N+V+"("+B+" % 1)"+N+B+P+B+(R?N+j+"isFinite("+B+")":"")+")";case"number":return"(typeof "+B+P+'"'+k+'"'+(R?N+j+"isFinite("+B+")":"")+")";default:return"typeof "+B+P+'"'+k+'"'}}function n(k,B,R){switch(k.length){case 1:return e(k[0],B,R,!0);default:var F="",P=u(k);P.array&&P.object&&(F=P.null?"(":"(!"+B+" || ",F+="typeof "+B+' !== "object")',delete P.null,delete P.array,delete P.object),P.number&&delete P.integer;for(var N in P)F+=(F?" && ":"")+e(N,B,R,!0);return F}}var o=u(["string","number","integer","boolean","null"]);function t(k,B){if(Array.isArray(B)){for(var R=[],F=0;F<B.length;F++){var P=B[F];(o[P]||k==="array"&&P==="array")&&(R[R.length]=P)}if(R.length)return R}else{if(o[B])return[B];if(k==="array"&&B==="array")return["array"]}}function u(k){for(var B={},R=0;R<k.length;R++)B[k[R]]=!0;return B}var p=/^[a-z$_][a-z$_0-9]*$/i,c=/'|\\/g;function r(k){return typeof k=="number"?"["+k+"]":p.test(k)?"."+k:"['"+m(k)+"']"}function m(k){return k.replace(c,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function i(k,B){B+="[^0-9]";var R=k.match(new RegExp(B,"g"));return R?R.length:0}function f(k,B,R){return B+="([^0-9])",R=R.replace(/\$/g,"$$$$"),k.replace(new RegExp(B,"g"),R+"$1")}function h(k,B){if(typeof k=="boolean")return!k;for(var R in k)if(B[R])return!0}function s(k,B,R){if(typeof k=="boolean")return!k&&R!="not";for(var F in k)if(F!=R&&B[F])return!0}function l(k,B){if(typeof k!="boolean"){for(var R in k)if(!B[R])return R}}function g(k){return"'"+m(k)+"'"}function d(k,B,R,F){var P=R?"'/' + "+B+(F?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):F?"'[' + "+B+" + ']'":"'[\\'' + "+B+" + '\\']'";return C(k,P)}function v(k,B,R){var F=g(R?"/"+x(B):r(B));return C(k,F)}var S=/^\/(?:[^~]|~0|~1)*$/,b=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function w(k,B,R){var F,P,N,j;if(k==="")return"rootData";if(k[0]=="/"){if(!S.test(k))throw new Error("Invalid JSON-pointer: "+k);P=k,N="rootData"}else{if(j=k.match(b),!j)throw new Error("Invalid JSON-pointer: "+k);if(F=+j[1],P=j[2],P=="#"){if(F>=B)throw new Error("Cannot access property/index "+F+" levels up, current level is "+B);return R[B-F]}if(F>B)throw new Error("Cannot access data "+F+" levels up, current level is "+B);if(N="data"+(B-F||""),!P)return N}for(var V=N,O=P.split("/"),G=0;G<O.length;G++){var L=O[G];L&&(N+=r(A(L)),V+=" && "+N)}return V}function C(k,B){return k=='""'?B:(k+" + "+B).replace(/([^\\])' \+ '/g,"$1")}function E(k){return A(decodeURIComponent(k))}function T(k){return encodeURIComponent(x(k))}function x(k){return k.replace(/~/g,"~0").replace(/\//g,"~1")}function A(k){return k.replace(/~1/g,"/").replace(/~0/g,"~")}return ls}var us,Am;function Tm(){if(Am)return us;Am=1;var a=Lr();us=e;function e(n){a.copy(n,this)}return us}var cs={exports:{}},km;function Xx(){if(km)return cs.exports;km=1;var a=cs.exports=function(o,t,u){typeof t=="function"&&(u=t,t={}),u=t.cb||u;var p=typeof u=="function"?u:u.pre||function(){},c=u.post||function(){};e(t,p,c,o,"",o)};a.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},a.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},a.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},a.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function e(o,t,u,p,c,r,m,i,f,h){if(p&&typeof p=="object"&&!Array.isArray(p)){t(p,c,r,m,i,f,h);for(var s in p){var l=p[s];if(Array.isArray(l)){if(s in a.arrayKeywords)for(var g=0;g<l.length;g++)e(o,t,u,l[g],c+"/"+s+"/"+g,r,c,s,p,g)}else if(s in a.propsKeywords){if(l&&typeof l=="object")for(var d in l)e(o,t,u,l[d],c+"/"+s+"/"+n(d),r,c,s,p,d)}else(s in a.keywords||o.allKeys&&!(s in a.skipKeywords))&&e(o,t,u,l,c+"/"+s,r,c,s,p)}u(p,c,r,m,i,f,h)}}function n(o){return o.replace(/~/g,"~0").replace(/\//g,"~1")}return cs.exports}var fs,Dm;function ps(){if(Dm)return fs;Dm=1;var a=Hx(),e=is(),n=Lr(),o=Tm(),t=Xx();fs=u,u.normalizeId=v,u.fullPath=l,u.url=S,u.ids=b,u.inlineRef=f,u.schema=p;function u(w,C,E){var T=this._refs[E];if(typeof T=="string")if(this._refs[T])T=this._refs[T];else return u.call(this,w,C,T);if(T=T||this._schemas[E],T instanceof o)return f(T.schema,this._opts.inlineRefs)?T.schema:T.validate||this._compile(T);var x=p.call(this,C,E),A,k,B;return x&&(A=x.schema,C=x.root,B=x.baseId),A instanceof o?k=A.validate||w.call(this,A.schema,C,void 0,B):A!==void 0&&(k=f(A,this._opts.inlineRefs)?A:w.call(this,A,C,void 0,B)),k}function p(w,C){var E=a.parse(C),T=g(E),x=l(this._getId(w.schema));if(Object.keys(w.schema).length===0||T!==x){var A=v(T),k=this._refs[A];if(typeof k=="string")return c.call(this,w,k,E);if(k instanceof o)k.validate||this._compile(k),w=k;else if(k=this._schemas[A],k instanceof o){if(k.validate||this._compile(k),A==v(C))return{schema:k,root:w,baseId:x};w=k}else return;if(!w.schema)return;x=l(this._getId(w.schema))}return m.call(this,E,x,w.schema,w)}function c(w,C,E){var T=p.call(this,w,C);if(T){var x=T.schema,A=T.baseId;w=T.root;var k=this._getId(x);return k&&(A=S(A,k)),m.call(this,E,A,x,w)}}var r=n.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function m(w,C,E,T){if(w.fragment=w.fragment||"",w.fragment.slice(0,1)=="/"){for(var x=w.fragment.split("/"),A=1;A<x.length;A++){var k=x[A];if(k){if(k=n.unescapeFragment(k),E=E[k],E===void 0)break;var B;if(!r[k]&&(B=this._getId(E),B&&(C=S(C,B)),E.$ref)){var R=S(C,E.$ref),F=p.call(this,T,R);F&&(E=F.schema,T=F.root,C=F.baseId)}}}if(E!==void 0&&E!==T.schema)return{schema:E,root:T,baseId:C}}}var i=n.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function f(w,C){if(C===!1)return!1;if(C===void 0||C===!0)return h(w);if(C)return s(w)<=C}function h(w){var C;if(Array.isArray(w)){for(var E=0;E<w.length;E++)if(C=w[E],typeof C=="object"&&!h(C))return!1}else for(var T in w)if(T=="$ref"||(C=w[T],typeof C=="object"&&!h(C)))return!1;return!0}function s(w){var C=0,E;if(Array.isArray(w)){for(var T=0;T<w.length;T++)if(E=w[T],typeof E=="object"&&(C+=s(E)),C==1/0)return 1/0}else for(var x in w){if(x=="$ref")return 1/0;if(i[x])C++;else if(E=w[x],typeof E=="object"&&(C+=s(E)+1),C==1/0)return 1/0}return C}function l(w,C){C!==!1&&(w=v(w));var E=a.parse(w);return g(E)}function g(w){return a.serialize(w).split("#")[0]+"#"}var d=/#\/?$/;function v(w){return w?w.replace(d,""):""}function S(w,C){return C=v(C),a.resolve(w,C)}function b(w){var C=v(this._getId(w)),E={"":C},T={"":l(C,!1)},x={},A=this;return t(w,{allKeys:!0},function(k,B,R,F,P,N,j){if(B!==""){var V=A._getId(k),O=E[F],G=T[F]+"/"+P;if(j!==void 0&&(G+="/"+(typeof j=="number"?j:n.escapeFragment(j))),typeof V=="string"){V=O=v(O?a.resolve(O,V):V);var L=A._refs[V];if(typeof L=="string"&&(L=A._refs[L]),L&&L.schema){if(!e(k,L.schema))throw new Error('id "'+V+'" resolves to more than one schema')}else if(V!=v(G))if(V[0]=="#"){if(x[V]&&!e(k,x[V]))throw new Error('id "'+V+'" resolves to more than one schema');x[V]=k}else A._refs[V]=G}E[B]=O,T[B]=G}}),x}return fs}var ms,Im;function hs(){if(Im)return ms;Im=1;var a=ps();ms={Validation:o(e),MissingRef:o(n)};function e(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}n.message=function(t,u){return"can't resolve reference "+u+" from id "+t};function n(t,u,p){this.message=p||n.message(t,u),this.missingRef=a.url(t,u),this.missingSchema=a.normalizeId(a.fullPath(this.missingRef))}function o(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}return ms}var ds,Pm;function Fm(){return Pm||(Pm=1,ds=function(a,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var n=typeof e.cycles=="boolean"?e.cycles:!1,o=e.cmp&&function(u){return function(p){return function(c,r){var m={key:c,value:p[c]},i={key:r,value:p[r]};return u(m,i)}}}(e.cmp),t=[];return function u(p){if(p&&p.toJSON&&typeof p.toJSON=="function"&&(p=p.toJSON()),p!==void 0){if(typeof p=="number")return isFinite(p)?""+p:"null";if(typeof p!="object")return JSON.stringify(p);var c,r;if(Array.isArray(p)){for(r="[",c=0;c<p.length;c++)c&&(r+=","),r+=u(p[c])||"null";return r+"]"}if(p===null)return"null";if(t.indexOf(p)!==-1){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var m=t.push(p)-1,i=Object.keys(p).sort(o&&o(p));for(r="",c=0;c<i.length;c++){var f=i[c],h=u(p[f]);h&&(r&&(r+=","),r+=JSON.stringify(f)+":"+h)}return t.splice(m,1),"{"+r+"}"}}(a)}),ds}var gs,Rm;function _m(){return Rm||(Rm=1,gs=function(e,n,o){var t="",u=e.schema.$async===!0,p=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),c=e.self._getId(e.schema);if(e.opts.strictKeywords){var r=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(r){var m="unknown keyword: "+r;if(e.opts.strictKeywords==="log")e.logger.warn(m);else throw new Error(m)}}if(e.isTop&&(t+=" var validate = ",u&&(e.async=!0,t+="async "),t+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",c&&(e.opts.sourceCode||e.opts.processCode)&&(t+=" "+("/*# sourceURL="+c+" */")+" ")),typeof e.schema=="boolean"||!(p||e.schema.$ref)){var n="false schema",i=e.level,f=e.dataLevel,h=e.schema[n],s=e.schemaPath+e.util.getProperty(n),l=e.errSchemaPath+"/"+n,C=!e.opts.allErrors,x,g="data"+(f||""),w="valid"+i;if(e.schema===!1){e.isTop?C=!0:t+=" var "+w+" = false; ";var d=d||[];d.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(x||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'boolean schema is false' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),t+=" } "):t+=" {} ";var v=t;t=d.pop(),!e.compositeRule&&C?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?u?t+=" return data; ":t+=" validate.errors = null; return true; ":t+=" var "+w+" = true; ";return e.isTop&&(t+=" }; return validate; "),t}if(e.isTop){var S=e.isTop,i=e.level=0,f=e.dataLevel=0,g="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(b);else throw new Error(b)}t+=" var vErrors = null; ",t+=" var errors = 0; ",t+=" if (rootData === undefined) rootData = data; "}else{var i=e.level,f=e.dataLevel,g="data"+(f||"");if(c&&(e.baseId=e.resolve.url(e.baseId,c)),u&&!e.async)throw new Error("async schema in sync schema");t+=" var errs_"+i+" = errors;"}var w="valid"+i,C=!e.opts.allErrors,E="",T="",x,A=e.schema.type,k=Array.isArray(A);if(A&&e.opts.nullable&&e.schema.nullable===!0&&(k?A.indexOf("null")==-1&&(A=A.concat("null")):A!="null"&&(A=[A,"null"],k=!0)),k&&A.length==1&&(A=A[0],k=!1),e.schema.$ref&&p){if(e.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');e.opts.extendRefs!==!0&&(p=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(t+=" "+e.RULES.all.$comment.code(e,"$comment")),A){if(e.opts.coerceTypes)var B=e.util.coerceToTypes(e.opts.coerceTypes,A);var R=e.RULES.types[A];if(B||k||R===!0||R&&!$(R)){var s=e.schemaPath+".type",l=e.errSchemaPath+"/type",s=e.schemaPath+".type",l=e.errSchemaPath+"/type",F=k?"checkDataTypes":"checkDataType";if(t+=" if ("+e.util[F](A,g,e.opts.strictNumbers,!0)+") { ",B){var P="dataType"+i,N="coerced"+i;t+=" var "+P+" = typeof "+g+"; var "+N+" = undefined; ",e.opts.coerceTypes=="array"&&(t+=" if ("+P+" == 'object' && Array.isArray("+g+") && "+g+".length == 1) { "+g+" = "+g+"[0]; "+P+" = typeof "+g+"; if ("+e.util.checkDataType(e.schema.type,g,e.opts.strictNumbers)+") "+N+" = "+g+"; } "),t+=" if ("+N+" !== undefined) ; ";var j=B;if(j)for(var V,O=-1,G=j.length-1;O<G;)V=j[O+=1],V=="string"?t+=" else if ("+P+" == 'number' || "+P+" == 'boolean') "+N+" = '' + "+g+"; else if ("+g+" === null) "+N+" = ''; ":V=="number"||V=="integer"?(t+=" else if ("+P+" == 'boolean' || "+g+" === null || ("+P+" == 'string' && "+g+" && "+g+" == +"+g+" ",V=="integer"&&(t+=" && !("+g+" % 1)"),t+=")) "+N+" = +"+g+"; "):V=="boolean"?t+=" else if ("+g+" === 'false' || "+g+" === 0 || "+g+" === null) "+N+" = false; else if ("+g+" === 'true' || "+g+" === 1) "+N+" = true; ":V=="null"?t+=" else if ("+g+" === '' || "+g+" === 0 || "+g+" === false) "+N+" = null; ":e.opts.coerceTypes=="array"&&V=="array"&&(t+=" else if ("+P+" == 'string' || "+P+" == 'number' || "+P+" == 'boolean' || "+g+" == null) "+N+" = ["+g+"]; ");t+=" else { ";var d=d||[];d.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(x||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { type: '",k?t+=""+A.join(","):t+=""+A,t+="' } ",e.opts.messages!==!1&&(t+=" , message: 'should be ",k?t+=""+A.join(","):t+=""+A,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),t+=" } "):t+=" {} ";var v=t;t=d.pop(),!e.compositeRule&&C?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } if ("+N+" !== undefined) { ";var L=f?"data"+(f-1||""):"parentData",K=f?e.dataPathArr[f]:"parentDataProperty";t+=" "+g+" = "+N+"; ",f||(t+="if ("+L+" !== undefined)"),t+=" "+L+"["+K+"] = "+N+"; } "}else{var d=d||[];d.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(x||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { type: '",k?t+=""+A.join(","):t+=""+A,t+="' } ",e.opts.messages!==!1&&(t+=" , message: 'should be ",k?t+=""+A.join(","):t+=""+A,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),t+=" } "):t+=" {} ";var v=t;t=d.pop(),!e.compositeRule&&C?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } "}}if(e.schema.$ref&&!p)t+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",C&&(t+=" } if (errors === ",S?t+="0":t+="errs_"+i,t+=") { ",T+="}");else{var H=e.RULES;if(H){for(var R,ae=-1,re=H.length-1;ae<re;)if(R=H[ae+=1],$(R)){if(R.type&&(t+=" if ("+e.util.checkDataType(R.type,g,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(R.type=="object"&&e.schema.properties){var h=e.schema.properties,De=Object.keys(h),Y=De;if(Y)for(var I,W=-1,ue=Y.length-1;W<ue;){I=Y[W+=1];var oe=h[I];if(oe.default!==void 0){var ne=g+e.util.getProperty(I);if(e.compositeRule){if(e.opts.strictDefaults){var b="default is ignored for: "+ne;if(e.opts.strictDefaults==="log")e.logger.warn(b);else throw new Error(b)}}else t+=" if ("+ne+" === undefined ",e.opts.useDefaults=="empty"&&(t+=" || "+ne+" === null || "+ne+" === '' "),t+=" ) "+ne+" = ",e.opts.useDefaults=="shared"?t+=" "+e.useDefault(oe.default)+" ":t+=" "+JSON.stringify(oe.default)+" ",t+="; "}}}else if(R.type=="array"&&Array.isArray(e.schema.items)){var he=e.schema.items;if(he){for(var oe,O=-1,ye=he.length-1;O<ye;)if(oe=he[O+=1],oe.default!==void 0){var ne=g+"["+O+"]";if(e.compositeRule){if(e.opts.strictDefaults){var b="default is ignored for: "+ne;if(e.opts.strictDefaults==="log")e.logger.warn(b);else throw new Error(b)}}else t+=" if ("+ne+" === undefined ",e.opts.useDefaults=="empty"&&(t+=" || "+ne+" === null || "+ne+" === '' "),t+=" ) "+ne+" = ",e.opts.useDefaults=="shared"?t+=" "+e.useDefault(oe.default)+" ":t+=" "+JSON.stringify(oe.default)+" ",t+="; "}}}}var ge=R.rules;if(ge){for(var Ce,z=-1,Q=ge.length-1;z<Q;)if(Ce=ge[z+=1],ie(Ce)){var Re=Ce.code(e,Ce.keyword,R.type);Re&&(t+=" "+Re+" ",C&&(E+="}"))}}if(C&&(t+=" "+E+" ",E=""),R.type&&(t+=" } ",A&&A===R.type&&!B)){t+=" else { ";var s=e.schemaPath+".type",l=e.errSchemaPath+"/type",d=d||[];d.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(x||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { type: '",k?t+=""+A.join(","):t+=""+A,t+="' } ",e.opts.messages!==!1&&(t+=" , message: 'should be ",k?t+=""+A.join(","):t+=""+A,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),t+=" } "):t+=" {} ";var v=t;t=d.pop(),!e.compositeRule&&C?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } "}C&&(t+=" if (errors === ",S?t+="0":t+="errs_"+i,t+=") { ",T+="}")}}}C&&(t+=" "+T+" "),S?(u?(t+=" if (errors === 0) return data; ",t+=" else throw new ValidationError(vErrors); "):(t+=" validate.errors = vErrors; ",t+=" return errors === 0; "),t+=" }; return validate;"):t+=" var "+w+" = errors === errs_"+i+";";function $(Ne){for(var Le=Ne.rules,U=0;U<Le.length;U++)if(ie(Le[U]))return!0}function ie(Ne){return e.schema[Ne.keyword]!==void 0||Ne.implements&&Te(Ne)}function Te(Ne){for(var Le=Ne.implements,U=0;U<Le.length;U++)if(e.schema[Le[U]]!==void 0)return!0}return t}),gs}var ys,Bm;function Jx(){if(Bm)return ys;Bm=1;var a=ps(),e=Lr(),n=hs(),o=Fm(),t=_m(),u=e.ucs2length,p=is(),c=n.Validation;ys=r;function r(v,S,b,w){var C=this,E=this._opts,T=[void 0],x={},A=[],k={},B=[],R={},F=[];S=S||{schema:v,refVal:T,refs:x};var P=m.call(this,v,S,w),N=this._compilations[P.index];if(P.compiling)return N.callValidate=L;var j=this._formats,V=this.RULES;try{var O=K(v,S,b,w);N.validate=O;var G=N.callValidate;return G&&(G.schema=O.schema,G.errors=null,G.refs=O.refs,G.refVal=O.refVal,G.root=O.root,G.$async=O.$async,E.sourceCode&&(G.source=O.source)),O}finally{i.call(this,v,S,w)}function L(){var oe=N.validate,ne=oe.apply(this,arguments);return L.errors=oe.errors,ne}function K(oe,ne,he,ye){var ge=!ne||ne&&ne.schema==oe;if(ne.schema!=S.schema)return r.call(C,oe,ne,he,ye);var Ce=oe.$async===!0,z=t({isTop:!0,schema:oe,isRoot:ge,baseId:ye,root:ne,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:n.MissingRef,RULES:V,validate:t,util:e,resolve:a,resolveRef:H,usePattern:I,useDefault:W,useCustomRule:ue,opts:E,formats:j,logger:C.logger,self:C});z=d(T,l)+d(A,h)+d(B,s)+d(F,g)+z,E.processCode&&(z=E.processCode(z,oe));var Q;try{var Re=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",z);Q=Re(C,V,j,S,T,B,F,p,u,c),T[0]=Q}catch($){throw C.logger.error("Error compiling schema, function code:",z),$}return Q.schema=oe,Q.errors=null,Q.refs=x,Q.refVal=T,Q.root=ge?Q:ne,Ce&&(Q.$async=!0),E.sourceCode===!0&&(Q.source={code:z,patterns:A,defaults:B}),Q}function H(oe,ne,he){ne=a.url(oe,ne);var ye=x[ne],ge,Ce;if(ye!==void 0)return ge=T[ye],Ce="refVal["+ye+"]",Y(ge,Ce);if(!he&&S.refs){var z=S.refs[ne];if(z!==void 0)return ge=S.refVal[z],Ce=ae(ne,ge),Y(ge,Ce)}Ce=ae(ne);var Q=a.call(C,K,S,ne);if(Q===void 0){var Re=b&&b[ne];Re&&(Q=a.inlineRef(Re,E.inlineRefs)?Re:r.call(C,Re,S,b,oe))}if(Q===void 0)re(ne);else return De(ne,Q),Y(Q,Ce)}function ae(oe,ne){var he=T.length;return T[he]=ne,x[oe]=he,"refVal"+he}function re(oe){delete x[oe]}function De(oe,ne){var he=x[oe];T[he]=ne}function Y(oe,ne){return typeof oe=="object"||typeof oe=="boolean"?{code:ne,schema:oe,inline:!0}:{code:ne,$async:oe&&!!oe.$async}}function I(oe){var ne=k[oe];return ne===void 0&&(ne=k[oe]=A.length,A[ne]=oe),"pattern"+ne}function W(oe){switch(typeof oe){case"boolean":case"number":return""+oe;case"string":return e.toQuotedString(oe);case"object":if(oe===null)return"null";var ne=o(oe),he=R[ne];return he===void 0&&(he=R[ne]=B.length,B[he]=oe),"default"+he}}function ue(oe,ne,he,ye){if(C._opts.validateSchema!==!1){var ge=oe.definition.dependencies;if(ge&&!ge.every(function(Le){return Object.prototype.hasOwnProperty.call(he,Le)}))throw new Error("parent schema must have all required keywords: "+ge.join(","));var Ce=oe.definition.validateSchema;if(Ce){var z=Ce(ne);if(!z){var Q="keyword schema is invalid: "+C.errorsText(Ce.errors);if(C._opts.validateSchema=="log")C.logger.error(Q);else throw new Error(Q)}}}var Re=oe.definition.compile,$=oe.definition.inline,ie=oe.definition.macro,Te;if(Re)Te=Re.call(C,ne,he,ye);else if(ie)Te=ie.call(C,ne,he,ye),E.validateSchema!==!1&&C.validateSchema(Te,!0);else if($)Te=$.call(C,ye,oe.keyword,ne,he);else if(Te=oe.definition.validate,!Te)return;if(Te===void 0)throw new Error('custom keyword "'+oe.keyword+'"failed to compile');var Ne=F.length;return F[Ne]=Te,{code:"customRule"+Ne,validate:Te}}}function m(v,S,b){var w=f.call(this,v,S,b);return w>=0?{index:w,compiling:!0}:(w=this._compilations.length,this._compilations[w]={schema:v,root:S,baseId:b},{index:w,compiling:!1})}function i(v,S,b){var w=f.call(this,v,S,b);w>=0&&this._compilations.splice(w,1)}function f(v,S,b){for(var w=0;w<this._compilations.length;w++){var C=this._compilations[w];if(C.schema==v&&C.root==S&&C.baseId==b)return w}return-1}function h(v,S){return"var pattern"+v+" = new RegExp("+e.toQuotedString(S[v])+");"}function s(v){return"var default"+v+" = defaults["+v+"];"}function l(v,S){return S[v]===void 0?"":"var refVal"+v+" = refVal["+v+"];"}function g(v){return"var customRule"+v+" = customRules["+v+"];"}function d(v,S){if(!v.length)return"";for(var b="",w=0;w<v.length;w++)b+=S(w,v);return b}return ys}var vs={exports:{}},Lm;function Yx(){if(Lm)return vs.exports;Lm=1;var a=vs.exports=function(){this._cache={}};return a.prototype.put=function(n,o){this._cache[n]=o},a.prototype.get=function(n){return this._cache[n]},a.prototype.del=function(n){delete this._cache[n]},a.prototype.clear=function(){this._cache={}},vs.exports}var Es,Om;function Qx(){if(Om)return Es;Om=1;var a=Lr(),e=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31],o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,t=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,u=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,p=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,c=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,r=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,m=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,i=/^(?:\/(?:[^~/]|~0|~1)*)*$/,f=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,h=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;Es=s;function s(T){return T=T=="full"?"full":"fast",a.copy(s[T])}s.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":c,url:r,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:t,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:E,uuid:m,"json-pointer":i,"json-pointer-uri-fragment":f,"relative-json-pointer":h},s.full={date:g,time:d,"date-time":S,uri:w,"uri-reference":p,"uri-template":c,url:r,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:t,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:E,uuid:m,"json-pointer":i,"json-pointer-uri-fragment":f,"relative-json-pointer":h};function l(T){return T%4===0&&(T%100!==0||T%400===0)}function g(T){var x=T.match(e);if(!x)return!1;var A=+x[1],k=+x[2],B=+x[3];return k>=1&&k<=12&&B>=1&&B<=(k==2&&l(A)?29:n[k])}function d(T,x){var A=T.match(o);if(!A)return!1;var k=A[1],B=A[2],R=A[3],F=A[5];return(k<=23&&B<=59&&R<=59||k==23&&B==59&&R==60)&&(!x||F)}var v=/t|\s/i;function S(T){var x=T.split(v);return x.length==2&&g(x[0])&&d(x[1],!0)}var b=/\/|:/;function w(T){return b.test(T)&&u.test(T)}var C=/[^\\]\\Z/;function E(T){if(C.test(T))return!1;try{return new RegExp(T),!0}catch{return!1}}return Es}var Ss,Nm;function Zx(){return Nm||(Nm=1,Ss=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.errSchemaPath+"/"+n,m=!e.opts.allErrors,i="data"+(p||""),f="valid"+u,h,s;if(c=="#"||c=="#/")e.isRoot?(h=e.async,s="validate"):(h=e.root.schema.$async===!0,s="root.refVal[0]");else{var l=e.resolveRef(e.baseId,c,e.isRoot);if(l===void 0){var g=e.MissingRefError.message(e.baseId,c);if(e.opts.missingRefs=="fail"){e.logger.error(g);var d=d||[];d.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(r)+" , params: { ref: '"+e.util.escapeQuotes(c)+"' } ",e.opts.messages!==!1&&(t+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(c)+"' "),e.opts.verbose&&(t+=" , schema: "+e.util.toQuotedString(c)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+i+" "),t+=" } "):t+=" {} ";var v=t;t=d.pop(),!e.compositeRule&&m?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m&&(t+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(g),m&&(t+=" if (true) { ");else throw new e.MissingRefError(e.baseId,c,g)}else if(l.inline){var S=e.util.copy(e);S.level++;var b="valid"+S.level;S.schema=l.schema,S.schemaPath="",S.errSchemaPath=c;var w=e.validate(S).replace(/validate\.schema/g,l.code);t+=" "+w+" ",m&&(t+=" if ("+b+") { ")}else h=l.$async===!0||e.async&&l.$async!==!1,s=l.code}if(s){var d=d||[];d.push(t),t="",e.opts.passContext?t+=" "+s+".call(this, ":t+=" "+s+"( ",t+=" "+i+", (dataPath || '')",e.errorPath!='""'&&(t+=" + "+e.errorPath);var C=p?"data"+(p-1||""):"parentData",E=p?e.dataPathArr[p]:"parentDataProperty";t+=" , "+C+" , "+E+", rootData) ";var T=t;if(t=d.pop(),h){if(!e.async)throw new Error("async schema referenced by sync schema");m&&(t+=" var "+f+"; "),t+=" try { await "+T+"; ",m&&(t+=" "+f+" = true; "),t+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",m&&(t+=" "+f+" = false; "),t+=" } ",m&&(t+=" if ("+f+") { ")}else t+=" if (!"+T+") { if (vErrors === null) vErrors = "+s+".errors; else vErrors = vErrors.concat("+s+".errors); errors = vErrors.length; } ",m&&(t+=" else { ")}return t}),Ss}var bs,Mm;function eC(){return Mm||(Mm=1,bs=function(e,n,o){var t=" ",u=e.schema[n],p=e.schemaPath+e.util.getProperty(n),c=e.errSchemaPath+"/"+n,r=!e.opts.allErrors,m=e.util.copy(e),i="";m.level++;var f="valid"+m.level,h=m.baseId,s=!0,l=u;if(l)for(var g,d=-1,v=l.length-1;d<v;)g=l[d+=1],(e.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===!1:e.util.schemaHasRules(g,e.RULES.all))&&(s=!1,m.schema=g,m.schemaPath=p+"["+d+"]",m.errSchemaPath=c+"/"+d,t+=" "+e.validate(m)+" ",m.baseId=h,r&&(t+=" if ("+f+") { ",i+="}"));return r&&(s?t+=" if (true) { ":t+=" "+i.slice(0,-1)+" "),t}),bs}var xs,jm;function tC(){return jm||(jm=1,xs=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,f="data"+(p||""),h="valid"+u,s="errs__"+u,l=e.util.copy(e),g="";l.level++;var d="valid"+l.level,v=c.every(function(x){return e.opts.strictKeywords?typeof x=="object"&&Object.keys(x).length>0||x===!1:e.util.schemaHasRules(x,e.RULES.all)});if(v){var S=l.baseId;t+=" var "+s+" = errors; var "+h+" = false; ";var b=e.compositeRule;e.compositeRule=l.compositeRule=!0;var w=c;if(w)for(var C,E=-1,T=w.length-1;E<T;)C=w[E+=1],l.schema=C,l.schemaPath=r+"["+E+"]",l.errSchemaPath=m+"/"+E,t+=" "+e.validate(l)+" ",l.baseId=S,t+=" "+h+" = "+h+" || "+d+"; if (!"+h+") { ",g+="}";e.compositeRule=l.compositeRule=b,t+=" "+g+" if (!"+h+") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&i&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),t+=" } else { errors = "+s+"; if (vErrors !== null) { if ("+s+") vErrors.length = "+s+"; else vErrors = null; } ",e.opts.allErrors&&(t+=" } ")}else i&&(t+=" if (true) { ");return t}),xs}var Cs,Um;function rC(){return Um||(Um=1,Cs=function(e,n,o){var t=" ",u=e.schema[n],p=e.errSchemaPath+"/"+n;e.opts.allErrors;var c=e.util.toQuotedString(u);return e.opts.$comment===!0?t+=" console.log("+c+");":typeof e.opts.$comment=="function"&&(t+=" self._opts.$comment("+c+", "+e.util.toQuotedString(p)+", validate.root.schema);"),t}),Cs}var ws,qm;function nC(){return qm||(qm=1,ws=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,f="data"+(p||""),h="valid"+u,s=e.opts.$data&&c&&c.$data;s&&(t+=" var schema"+u+" = "+e.util.getData(c.$data,p,e.dataPathArr)+"; "),s||(t+=" var schema"+u+" = validate.schema"+r+";"),t+="var "+h+" = equal("+f+", schema"+u+"); if (!"+h+") { ";var l=l||[];l.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { allowedValue: schema"+u+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be equal to constant' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ";var g=t;return t=l.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+g+"]); ":t+=" validate.errors = ["+g+"]; return false; ":t+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" }",i&&(t+=" else { "),t}),ws}var As,Vm;function sC(){return Vm||(Vm=1,As=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,f="data"+(p||""),h="valid"+u,s="errs__"+u,l=e.util.copy(e),g="";l.level++;var d="valid"+l.level,v="i"+u,S=l.dataLevel=e.dataLevel+1,b="data"+S,w=e.baseId,C=e.opts.strictKeywords?typeof c=="object"&&Object.keys(c).length>0||c===!1:e.util.schemaHasRules(c,e.RULES.all);if(t+="var "+s+" = errors;var "+h+";",C){var E=e.compositeRule;e.compositeRule=l.compositeRule=!0,l.schema=c,l.schemaPath=r,l.errSchemaPath=m,t+=" var "+d+" = false; for (var "+v+" = 0; "+v+" < "+f+".length; "+v+"++) { ",l.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);var T=f+"["+v+"]";l.dataPathArr[S]=v;var x=e.validate(l);l.baseId=w,e.util.varOccurences(x,b)<2?t+=" "+e.util.varReplace(x,b,T)+" ":t+=" var "+b+" = "+T+"; "+x+" ",t+=" if ("+d+") break; } ",e.compositeRule=l.compositeRule=E,t+=" "+g+" if (!"+d+") {"}else t+=" if ("+f+".length == 0) {";var A=A||[];A.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should contain a valid item' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ";var k=t;return t=A.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+k+"]); ":t+=" validate.errors = ["+k+"]; return false; ":t+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { ",C&&(t+=" errors = "+s+"; if (vErrors !== null) { if ("+s+") vErrors.length = "+s+"; else vErrors = null; } "),e.opts.allErrors&&(t+=" } "),t}),As}var Ts,$m;function aC(){return $m||($m=1,Ts=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,f="data"+(p||""),h="errs__"+u,s=e.util.copy(e),l="";s.level++;var g="valid"+s.level,d={},v={},S=e.opts.ownProperties;for(E in c)if(E!="__proto__"){var b=c[E],w=Array.isArray(b)?v:d;w[E]=b}t+="var "+h+" = errors;";var C=e.errorPath;t+="var missing"+u+";";for(var E in v)if(w=v[E],w.length){if(t+=" if ( "+f+e.util.getProperty(E)+" !== undefined ",S&&(t+=" && Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(E)+"') "),i){t+=" && ( ";var T=w;if(T)for(var x,A=-1,k=T.length-1;A<k;){x=T[A+=1],A&&(t+=" || ");var B=e.util.getProperty(x),R=f+B;t+=" ( ( "+R+" === undefined ",S&&(t+=" || ! Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(x)+"') "),t+=") && (missing"+u+" = "+e.util.toQuotedString(e.opts.jsonPointers?x:B)+") ) "}t+=")) { ";var F="missing"+u,P="' + "+F+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(C,F,!0):C+" + "+F);var N=N||[];N.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { property: '"+e.util.escapeQuotes(E)+"', missingProperty: '"+P+"', depsCount: "+w.length+", deps: '"+e.util.escapeQuotes(w.length==1?w[0]:w.join(", "))+"' } ",e.opts.messages!==!1&&(t+=" , message: 'should have ",w.length==1?t+="property "+e.util.escapeQuotes(w[0]):t+="properties "+e.util.escapeQuotes(w.join(", ")),t+=" when property "+e.util.escapeQuotes(E)+" is present' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ";var j=t;t=N.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+j+"]); ":t+=" validate.errors = ["+j+"]; return false; ":t+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{t+=" ) { ";var V=w;if(V)for(var x,O=-1,G=V.length-1;O<G;){x=V[O+=1];var B=e.util.getProperty(x),P=e.util.escapeQuotes(x),R=f+B;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(C,x,e.opts.jsonPointers)),t+=" if ( "+R+" === undefined ",S&&(t+=" || ! Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(x)+"') "),t+=") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { property: '"+e.util.escapeQuotes(E)+"', missingProperty: '"+P+"', depsCount: "+w.length+", deps: '"+e.util.escapeQuotes(w.length==1?w[0]:w.join(", "))+"' } ",e.opts.messages!==!1&&(t+=" , message: 'should have ",w.length==1?t+="property "+e.util.escapeQuotes(w[0]):t+="properties "+e.util.escapeQuotes(w.join(", ")),t+=" when property "+e.util.escapeQuotes(E)+" is present' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}t+=" } ",i&&(l+="}",t+=" else { ")}e.errorPath=C;var L=s.baseId;for(var E in d){var b=d[E];(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0||b===!1:e.util.schemaHasRules(b,e.RULES.all))&&(t+=" "+g+" = true; if ( "+f+e.util.getProperty(E)+" !== undefined ",S&&(t+=" && Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(E)+"') "),t+=") { ",s.schema=b,s.schemaPath=r+e.util.getProperty(E),s.errSchemaPath=m+"/"+e.util.escapeFragment(E),t+=" "+e.validate(s)+" ",s.baseId=L,t+=" } ",i&&(t+=" if ("+g+") { ",l+="}"))}return i&&(t+=" "+l+" if ("+h+" == errors) {"),t}),Ts}var ks,Wm;function iC(){return Wm||(Wm=1,ks=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,f="data"+(p||""),h="valid"+u,s=e.opts.$data&&c&&c.$data;s&&(t+=" var schema"+u+" = "+e.util.getData(c.$data,p,e.dataPathArr)+"; ");var l="i"+u,g="schema"+u;s||(t+=" var "+g+" = validate.schema"+r+";"),t+="var "+h+";",s&&(t+=" if (schema"+u+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+u+")) "+h+" = false; else {"),t+=""+h+" = false;for (var "+l+"=0; "+l+"<"+g+".length; "+l+"++) if (equal("+f+", "+g+"["+l+"])) { "+h+" = true; break; }",s&&(t+=" } "),t+=" if (!"+h+") { ";var d=d||[];d.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { allowedValues: schema"+u+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ";var v=t;return t=d.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" }",i&&(t+=" else { "),t}),ks}var Ds,Gm;function oC(){return Gm||(Gm=1,Ds=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,f="data"+(p||"");if(e.opts.format===!1)return i&&(t+=" if (true) { "),t;var h=e.opts.$data&&c&&c.$data,s;h?(t+=" var schema"+u+" = "+e.util.getData(c.$data,p,e.dataPathArr)+"; ",s="schema"+u):s=c;var l=e.opts.unknownFormats,g=Array.isArray(l);if(h){var d="format"+u,v="isObject"+u,S="formatType"+u;t+=" var "+d+" = formats["+s+"]; var "+v+" = typeof "+d+" == 'object' && !("+d+" instanceof RegExp) && "+d+".validate; var "+S+" = "+v+" && "+d+".type || 'string'; if ("+v+") { ",e.async&&(t+=" var async"+u+" = "+d+".async; "),t+=" "+d+" = "+d+".validate; } if ( ",h&&(t+=" ("+s+" !== undefined && typeof "+s+" != 'string') || "),t+=" (",l!="ignore"&&(t+=" ("+s+" && !"+d+" ",g&&(t+=" && self._opts.unknownFormats.indexOf("+s+") == -1 "),t+=") || "),t+=" ("+d+" && "+S+" == '"+o+"' && !(typeof "+d+" == 'function' ? ",e.async?t+=" (async"+u+" ? await "+d+"("+f+") : "+d+"("+f+")) ":t+=" "+d+"("+f+") ",t+=" : "+d+".test("+f+"))))) {"}else{var d=e.formats[c];if(!d){if(l=="ignore")return e.logger.warn('unknown format "'+c+'" ignored in schema at path "'+e.errSchemaPath+'"'),i&&(t+=" if (true) { "),t;if(g&&l.indexOf(c)>=0)return i&&(t+=" if (true) { "),t;throw new Error('unknown format "'+c+'" is used in schema at path "'+e.errSchemaPath+'"')}var v=typeof d=="object"&&!(d instanceof RegExp)&&d.validate,S=v&&d.type||"string";if(v){var b=d.async===!0;d=d.validate}if(S!=o)return i&&(t+=" if (true) { "),t;if(b){if(!e.async)throw new Error("async format in sync schema");var w="formats"+e.util.getProperty(c)+".validate";t+=" if (!(await "+w+"("+f+"))) { "}else{t+=" if (! ";var w="formats"+e.util.getProperty(c);v&&(w+=".validate"),typeof d=="function"?t+=" "+w+"("+f+") ":t+=" "+w+".test("+f+") ",t+=") { "}}var C=C||[];C.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { format: ",h?t+=""+s:t+=""+e.util.toQuotedString(c),t+=" } ",e.opts.messages!==!1&&(t+=` , message: 'should match format "`,h?t+="' + "+s+" + '":t+=""+e.util.escapeQuotes(c),t+=`"' `),e.opts.verbose&&(t+=" , schema: ",h?t+="validate.schema"+r:t+=""+e.util.toQuotedString(c),t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ";var E=t;return t=C.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+E+"]); ":t+=" validate.errors = ["+E+"]; return false; ":t+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",i&&(t+=" else { "),t}),Ds}var Is,zm;function lC(){return zm||(zm=1,Is=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,f="data"+(p||""),h="valid"+u,s="errs__"+u,l=e.util.copy(e);l.level++;var g="valid"+l.level,d=e.schema.then,v=e.schema.else,S=d!==void 0&&(e.opts.strictKeywords?typeof d=="object"&&Object.keys(d).length>0||d===!1:e.util.schemaHasRules(d,e.RULES.all)),b=v!==void 0&&(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===!1:e.util.schemaHasRules(v,e.RULES.all)),w=l.baseId;if(S||b){var C;l.createErrors=!1,l.schema=c,l.schemaPath=r,l.errSchemaPath=m,t+=" var "+s+" = errors; var "+h+" = true; ";var E=e.compositeRule;e.compositeRule=l.compositeRule=!0,t+=" "+e.validate(l)+" ",l.baseId=w,l.createErrors=!0,t+=" errors = "+s+"; if (vErrors !== null) { if ("+s+") vErrors.length = "+s+"; else vErrors = null; } ",e.compositeRule=l.compositeRule=E,S?(t+=" if ("+g+") { ",l.schema=e.schema.then,l.schemaPath=e.schemaPath+".then",l.errSchemaPath=e.errSchemaPath+"/then",t+=" "+e.validate(l)+" ",l.baseId=w,t+=" "+h+" = "+g+"; ",S&&b?(C="ifClause"+u,t+=" var "+C+" = 'then'; "):C="'then'",t+=" } ",b&&(t+=" else { ")):t+=" if (!"+g+") { ",b&&(l.schema=e.schema.else,l.schemaPath=e.schemaPath+".else",l.errSchemaPath=e.errSchemaPath+"/else",t+=" "+e.validate(l)+" ",l.baseId=w,t+=" "+h+" = "+g+"; ",S&&b?(C="ifClause"+u,t+=" var "+C+" = 'else'; "):C="'else'",t+=" } "),t+=" if (!"+h+") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { failingKeyword: "+C+" } ",e.opts.messages!==!1&&(t+=` , message: 'should match "' + `+C+` + '" schema' `),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&i&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),t+=" } ",i&&(t+=" else { ")}else i&&(t+=" if (true) { ");return t}),Is}var Ps,Hm;function uC(){return Hm||(Hm=1,Ps=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,f="data"+(p||""),h="valid"+u,s="errs__"+u,l=e.util.copy(e),g="";l.level++;var d="valid"+l.level,v="i"+u,S=l.dataLevel=e.dataLevel+1,b="data"+S,w=e.baseId;if(t+="var "+s+" = errors;var "+h+";",Array.isArray(c)){var C=e.schema.additionalItems;if(C===!1){t+=" "+h+" = "+f+".length <= "+c.length+"; ";var E=m;m=e.errSchemaPath+"/additionalItems",t+=" if (!"+h+") { ";var T=T||[];T.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { limit: "+c.length+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have more than "+c.length+" items' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ";var x=t;t=T.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+x+"]); ":t+=" validate.errors = ["+x+"]; return false; ":t+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",m=E,i&&(g+="}",t+=" else { ")}var A=c;if(A){for(var k,B=-1,R=A.length-1;B<R;)if(k=A[B+=1],e.opts.strictKeywords?typeof k=="object"&&Object.keys(k).length>0||k===!1:e.util.schemaHasRules(k,e.RULES.all)){t+=" "+d+" = true; if ("+f+".length > "+B+") { ";var F=f+"["+B+"]";l.schema=k,l.schemaPath=r+"["+B+"]",l.errSchemaPath=m+"/"+B,l.errorPath=e.util.getPathExpr(e.errorPath,B,e.opts.jsonPointers,!0),l.dataPathArr[S]=B;var P=e.validate(l);l.baseId=w,e.util.varOccurences(P,b)<2?t+=" "+e.util.varReplace(P,b,F)+" ":t+=" var "+b+" = "+F+"; "+P+" ",t+=" } ",i&&(t+=" if ("+d+") { ",g+="}")}}if(typeof C=="object"&&(e.opts.strictKeywords?typeof C=="object"&&Object.keys(C).length>0||C===!1:e.util.schemaHasRules(C,e.RULES.all))){l.schema=C,l.schemaPath=e.schemaPath+".additionalItems",l.errSchemaPath=e.errSchemaPath+"/additionalItems",t+=" "+d+" = true; if ("+f+".length > "+c.length+") { for (var "+v+" = "+c.length+"; "+v+" < "+f+".length; "+v+"++) { ",l.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);var F=f+"["+v+"]";l.dataPathArr[S]=v;var P=e.validate(l);l.baseId=w,e.util.varOccurences(P,b)<2?t+=" "+e.util.varReplace(P,b,F)+" ":t+=" var "+b+" = "+F+"; "+P+" ",i&&(t+=" if (!"+d+") break; "),t+=" } } ",i&&(t+=" if ("+d+") { ",g+="}")}}else if(e.opts.strictKeywords?typeof c=="object"&&Object.keys(c).length>0||c===!1:e.util.schemaHasRules(c,e.RULES.all)){l.schema=c,l.schemaPath=r,l.errSchemaPath=m,t+=" for (var "+v+" = 0; "+v+" < "+f+".length; "+v+"++) { ",l.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);var F=f+"["+v+"]";l.dataPathArr[S]=v;var P=e.validate(l);l.baseId=w,e.util.varOccurences(P,b)<2?t+=" "+e.util.varReplace(P,b,F)+" ":t+=" var "+b+" = "+F+"; "+P+" ",i&&(t+=" if (!"+d+") break; "),t+=" }"}return i&&(t+=" "+g+" if ("+s+" == errors) {"),t}),Ps}var Fs,Km;function Xm(){return Km||(Km=1,Fs=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,w,f="data"+(p||""),h=e.opts.$data&&c&&c.$data,s;h?(t+=" var schema"+u+" = "+e.util.getData(c.$data,p,e.dataPathArr)+"; ",s="schema"+u):s=c;var l=n=="maximum",g=l?"exclusiveMaximum":"exclusiveMinimum",d=e.schema[g],v=e.opts.$data&&d&&d.$data,S=l?"<":">",b=l?">":"<",w=void 0;if(!(h||typeof c=="number"||c===void 0))throw new Error(n+" must be number");if(!(v||d===void 0||typeof d=="number"||typeof d=="boolean"))throw new Error(g+" must be number or boolean");if(v){var C=e.util.getData(d.$data,p,e.dataPathArr),E="exclusive"+u,T="exclType"+u,x="exclIsNumber"+u,A="op"+u,k="' + "+A+" + '";t+=" var schemaExcl"+u+" = "+C+"; ",C="schemaExcl"+u,t+=" var "+E+"; var "+T+" = typeof "+C+"; if ("+T+" != 'boolean' && "+T+" != 'undefined' && "+T+" != 'number') { ";var w=g,B=B||[];B.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(w||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: '"+g+" should be boolean' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ";var R=t;t=B.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+R+"]); ":t+=" validate.errors = ["+R+"]; return false; ":t+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else if ( ",h&&(t+=" ("+s+" !== undefined && typeof "+s+" != 'number') || "),t+=" "+T+" == 'number' ? ( ("+E+" = "+s+" === undefined || "+C+" "+S+"= "+s+") ? "+f+" "+b+"= "+C+" : "+f+" "+b+" "+s+" ) : ( ("+E+" = "+C+" === true) ? "+f+" "+b+"= "+s+" : "+f+" "+b+" "+s+" ) || "+f+" !== "+f+") { var op"+u+" = "+E+" ? '"+S+"' : '"+S+"='; ",c===void 0&&(w=g,m=e.errSchemaPath+"/"+g,s=C,h=v)}else{var x=typeof d=="number",k=S;if(x&&h){var A="'"+k+"'";t+=" if ( ",h&&(t+=" ("+s+" !== undefined && typeof "+s+" != 'number') || "),t+=" ( "+s+" === undefined || "+d+" "+S+"= "+s+" ? "+f+" "+b+"= "+d+" : "+f+" "+b+" "+s+" ) || "+f+" !== "+f+") { "}else{x&&c===void 0?(E=!0,w=g,m=e.errSchemaPath+"/"+g,s=d,b+="="):(x&&(s=Math[l?"min":"max"](d,c)),d===(x?s:!0)?(E=!0,w=g,m=e.errSchemaPath+"/"+g,b+="="):(E=!1,k+="="));var A="'"+k+"'";t+=" if ( ",h&&(t+=" ("+s+" !== undefined && typeof "+s+" != 'number') || "),t+=" "+f+" "+b+" "+s+" || "+f+" !== "+f+") { "}}w=w||n;var B=B||[];B.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(w||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { comparison: "+A+", limit: "+s+", exclusive: "+E+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be "+k+" ",h?t+="' + "+s:t+=""+s+"'"),e.opts.verbose&&(t+=" , schema: ",h?t+="validate.schema"+r:t+=""+c,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ";var R=t;return t=B.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+R+"]); ":t+=" validate.errors = ["+R+"]; return false; ":t+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",i&&(t+=" else { "),t}),Fs}var Rs,Jm;function Ym(){return Jm||(Jm=1,Rs=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,g,f="data"+(p||""),h=e.opts.$data&&c&&c.$data,s;if(h?(t+=" var schema"+u+" = "+e.util.getData(c.$data,p,e.dataPathArr)+"; ",s="schema"+u):s=c,!(h||typeof c=="number"))throw new Error(n+" must be number");var l=n=="maxItems"?">":"<";t+="if ( ",h&&(t+=" ("+s+" !== undefined && typeof "+s+" != 'number') || "),t+=" "+f+".length "+l+" "+s+") { ";var g=n,d=d||[];d.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(g||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { limit: "+s+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have ",n=="maxItems"?t+="more":t+="fewer",t+=" than ",h?t+="' + "+s+" + '":t+=""+c,t+=" items' "),e.opts.verbose&&(t+=" , schema: ",h?t+="validate.schema"+r:t+=""+c,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ";var v=t;return t=d.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",i&&(t+=" else { "),t}),Rs}var _s,Qm;function Zm(){return Qm||(Qm=1,_s=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,g,f="data"+(p||""),h=e.opts.$data&&c&&c.$data,s;if(h?(t+=" var schema"+u+" = "+e.util.getData(c.$data,p,e.dataPathArr)+"; ",s="schema"+u):s=c,!(h||typeof c=="number"))throw new Error(n+" must be number");var l=n=="maxLength"?">":"<";t+="if ( ",h&&(t+=" ("+s+" !== undefined && typeof "+s+" != 'number') || "),e.opts.unicode===!1?t+=" "+f+".length ":t+=" ucs2length("+f+") ",t+=" "+l+" "+s+") { ";var g=n,d=d||[];d.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(g||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { limit: "+s+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT be ",n=="maxLength"?t+="longer":t+="shorter",t+=" than ",h?t+="' + "+s+" + '":t+=""+c,t+=" characters' "),e.opts.verbose&&(t+=" , schema: ",h?t+="validate.schema"+r:t+=""+c,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ";var v=t;return t=d.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",i&&(t+=" else { "),t}),_s}var Bs,eh;function th(){return eh||(eh=1,Bs=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,g,f="data"+(p||""),h=e.opts.$data&&c&&c.$data,s;if(h?(t+=" var schema"+u+" = "+e.util.getData(c.$data,p,e.dataPathArr)+"; ",s="schema"+u):s=c,!(h||typeof c=="number"))throw new Error(n+" must be number");var l=n=="maxProperties"?">":"<";t+="if ( ",h&&(t+=" ("+s+" !== undefined && typeof "+s+" != 'number') || "),t+=" Object.keys("+f+").length "+l+" "+s+") { ";var g=n,d=d||[];d.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(g||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { limit: "+s+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have ",n=="maxProperties"?t+="more":t+="fewer",t+=" than ",h?t+="' + "+s+" + '":t+=""+c,t+=" properties' "),e.opts.verbose&&(t+=" , schema: ",h?t+="validate.schema"+r:t+=""+c,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ";var v=t;return t=d.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",i&&(t+=" else { "),t}),Bs}var Ls,rh;function cC(){return rh||(rh=1,Ls=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,f="data"+(p||""),h=e.opts.$data&&c&&c.$data,s;if(h?(t+=" var schema"+u+" = "+e.util.getData(c.$data,p,e.dataPathArr)+"; ",s="schema"+u):s=c,!(h||typeof c=="number"))throw new Error(n+" must be number");t+="var division"+u+";if (",h&&(t+=" "+s+" !== undefined && ( typeof "+s+" != 'number' || "),t+=" (division"+u+" = "+f+" / "+s+", ",e.opts.multipleOfPrecision?t+=" Math.abs(Math.round(division"+u+") - division"+u+") > 1e-"+e.opts.multipleOfPrecision+" ":t+=" division"+u+" !== parseInt(division"+u+") ",t+=" ) ",h&&(t+=" ) "),t+=" ) { ";var l=l||[];l.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { multipleOf: "+s+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be multiple of ",h?t+="' + "+s:t+=""+s+"'"),e.opts.verbose&&(t+=" , schema: ",h?t+="validate.schema"+r:t+=""+c,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ";var g=t;return t=l.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+g+"]); ":t+=" validate.errors = ["+g+"]; return false; ":t+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",i&&(t+=" else { "),t}),Ls}var Os,nh;function fC(){return nh||(nh=1,Os=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,f="data"+(p||""),h="errs__"+u,s=e.util.copy(e);s.level++;var l="valid"+s.level;if(e.opts.strictKeywords?typeof c=="object"&&Object.keys(c).length>0||c===!1:e.util.schemaHasRules(c,e.RULES.all)){s.schema=c,s.schemaPath=r,s.errSchemaPath=m,t+=" var "+h+" = errors; ";var g=e.compositeRule;e.compositeRule=s.compositeRule=!0,s.createErrors=!1;var d;s.opts.allErrors&&(d=s.opts.allErrors,s.opts.allErrors=!1),t+=" "+e.validate(s)+" ",s.createErrors=!0,d&&(s.opts.allErrors=d),e.compositeRule=s.compositeRule=g,t+=" if ("+l+") { ";var v=v||[];v.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should NOT be valid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ";var S=t;t=v.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+S+"]); ":t+=" validate.errors = ["+S+"]; return false; ":t+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(t+=" } ")}else t+=" var err = ",e.createErrors!==!1?(t+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should NOT be valid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i&&(t+=" if (false) { ");return t}),Os}var Ns,sh;function pC(){return sh||(sh=1,Ns=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,f="data"+(p||""),h="valid"+u,s="errs__"+u,l=e.util.copy(e),g="";l.level++;var d="valid"+l.level,v=l.baseId,S="prevValid"+u,b="passingSchemas"+u;t+="var "+s+" = errors , "+S+" = false , "+h+" = false , "+b+" = null; ";var w=e.compositeRule;e.compositeRule=l.compositeRule=!0;var C=c;if(C)for(var E,T=-1,x=C.length-1;T<x;)E=C[T+=1],(e.opts.strictKeywords?typeof E=="object"&&Object.keys(E).length>0||E===!1:e.util.schemaHasRules(E,e.RULES.all))?(l.schema=E,l.schemaPath=r+"["+T+"]",l.errSchemaPath=m+"/"+T,t+=" "+e.validate(l)+" ",l.baseId=v):t+=" var "+d+" = true; ",T&&(t+=" if ("+d+" && "+S+") { "+h+" = false; "+b+" = ["+b+", "+T+"]; } else { ",g+="}"),t+=" if ("+d+") { "+h+" = "+S+" = true; "+b+" = "+T+"; }";return e.compositeRule=l.compositeRule=w,t+=""+g+"if (!"+h+") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { passingSchemas: "+b+" } ",e.opts.messages!==!1&&(t+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&i&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),t+="} else { errors = "+s+"; if (vErrors !== null) { if ("+s+") vErrors.length = "+s+"; else vErrors = null; }",e.opts.allErrors&&(t+=" } "),t}),Ns}var Ms,ah;function mC(){return ah||(ah=1,Ms=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,f="data"+(p||""),h=e.opts.$data&&c&&c.$data,s;h?(t+=" var schema"+u+" = "+e.util.getData(c.$data,p,e.dataPathArr)+"; ",s="schema"+u):s=c;var l=h?"(new RegExp("+s+"))":e.usePattern(c);t+="if ( ",h&&(t+=" ("+s+" !== undefined && typeof "+s+" != 'string') || "),t+=" !"+l+".test("+f+") ) { ";var g=g||[];g.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { pattern: ",h?t+=""+s:t+=""+e.util.toQuotedString(c),t+=" } ",e.opts.messages!==!1&&(t+=` , message: 'should match pattern "`,h?t+="' + "+s+" + '":t+=""+e.util.escapeQuotes(c),t+=`"' `),e.opts.verbose&&(t+=" , schema: ",h?t+="validate.schema"+r:t+=""+e.util.toQuotedString(c),t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ";var d=t;return t=g.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+d+"]); ":t+=" validate.errors = ["+d+"]; return false; ":t+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",i&&(t+=" else { "),t}),Ms}var js,ih;function hC(){return ih||(ih=1,js=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,f="data"+(p||""),h="errs__"+u,s=e.util.copy(e),l="";s.level++;var g="valid"+s.level,d="key"+u,v="idx"+u,S=s.dataLevel=e.dataLevel+1,b="data"+S,w="dataProperties"+u,C=Object.keys(c||{}).filter(O),E=e.schema.patternProperties||{},T=Object.keys(E).filter(O),x=e.schema.additionalProperties,A=C.length||T.length,k=x===!1,B=typeof x=="object"&&Object.keys(x).length,R=e.opts.removeAdditional,F=k||B||R,P=e.opts.ownProperties,N=e.baseId,j=e.schema.required;if(j&&!(e.opts.$data&&j.$data)&&j.length<e.opts.loopRequired)var V=e.util.toHash(j);function O(st){return st!=="__proto__"}if(t+="var "+h+" = errors;var "+g+" = true;",P&&(t+=" var "+w+" = undefined;"),F){if(P?t+=" "+w+" = "+w+" || Object.keys("+f+"); for (var "+v+"=0; "+v+"<"+w+".length; "+v+"++) { var "+d+" = "+w+"["+v+"]; ":t+=" for (var "+d+" in "+f+") { ",A){if(t+=" var isAdditional"+u+" = !(false ",C.length)if(C.length>8)t+=" || validate.schema"+r+".hasOwnProperty("+d+") ";else{var G=C;if(G)for(var L,K=-1,H=G.length-1;K<H;)L=G[K+=1],t+=" || "+d+" == "+e.util.toQuotedString(L)+" "}if(T.length){var ae=T;if(ae)for(var re,De=-1,Y=ae.length-1;De<Y;)re=ae[De+=1],t+=" || "+e.usePattern(re)+".test("+d+") "}t+=" ); if (isAdditional"+u+") { "}if(R=="all")t+=" delete "+f+"["+d+"]; ";else{var I=e.errorPath,W="' + "+d+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,d,e.opts.jsonPointers)),k)if(R)t+=" delete "+f+"["+d+"]; ";else{t+=" "+g+" = false; ";var ue=m;m=e.errSchemaPath+"/additionalProperties";var oe=oe||[];oe.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { additionalProperty: '"+W+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is an invalid additional property":t+="should NOT have additional properties",t+="' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ";var ne=t;t=oe.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+ne+"]); ":t+=" validate.errors = ["+ne+"]; return false; ":t+=" var err = "+ne+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m=ue,i&&(t+=" break; ")}else if(B)if(R=="failing"){t+=" var "+h+" = errors; ";var he=e.compositeRule;e.compositeRule=s.compositeRule=!0,s.schema=x,s.schemaPath=e.schemaPath+".additionalProperties",s.errSchemaPath=e.errSchemaPath+"/additionalProperties",s.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,d,e.opts.jsonPointers);var ye=f+"["+d+"]";s.dataPathArr[S]=d;var ge=e.validate(s);s.baseId=N,e.util.varOccurences(ge,b)<2?t+=" "+e.util.varReplace(ge,b,ye)+" ":t+=" var "+b+" = "+ye+"; "+ge+" ",t+=" if (!"+g+") { errors = "+h+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+f+"["+d+"]; } ",e.compositeRule=s.compositeRule=he}else{s.schema=x,s.schemaPath=e.schemaPath+".additionalProperties",s.errSchemaPath=e.errSchemaPath+"/additionalProperties",s.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,d,e.opts.jsonPointers);var ye=f+"["+d+"]";s.dataPathArr[S]=d;var ge=e.validate(s);s.baseId=N,e.util.varOccurences(ge,b)<2?t+=" "+e.util.varReplace(ge,b,ye)+" ":t+=" var "+b+" = "+ye+"; "+ge+" ",i&&(t+=" if (!"+g+") break; ")}e.errorPath=I}A&&(t+=" } "),t+=" } ",i&&(t+=" if ("+g+") { ",l+="}")}var Ce=e.opts.useDefaults&&!e.compositeRule;if(C.length){var z=C;if(z)for(var L,Q=-1,Re=z.length-1;Q<Re;){L=z[Q+=1];var $=c[L];if(e.opts.strictKeywords?typeof $=="object"&&Object.keys($).length>0||$===!1:e.util.schemaHasRules($,e.RULES.all)){var ie=e.util.getProperty(L),ye=f+ie,Te=Ce&&$.default!==void 0;s.schema=$,s.schemaPath=r+ie,s.errSchemaPath=m+"/"+e.util.escapeFragment(L),s.errorPath=e.util.getPath(e.errorPath,L,e.opts.jsonPointers),s.dataPathArr[S]=e.util.toQuotedString(L);var ge=e.validate(s);if(s.baseId=N,e.util.varOccurences(ge,b)<2){ge=e.util.varReplace(ge,b,ye);var Ne=ye}else{var Ne=b;t+=" var "+b+" = "+ye+"; "}if(Te)t+=" "+ge+" ";else{if(V&&V[L]){t+=" if ( "+Ne+" === undefined ",P&&(t+=" || ! Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(L)+"') "),t+=") { "+g+" = false; ";var I=e.errorPath,ue=m,Le=e.util.escapeQuotes(L);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(I,L,e.opts.jsonPointers)),m=e.errSchemaPath+"/required";var oe=oe||[];oe.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+Le+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+Le+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ";var ne=t;t=oe.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+ne+"]); ":t+=" validate.errors = ["+ne+"]; return false; ":t+=" var err = "+ne+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m=ue,e.errorPath=I,t+=" } else { "}else i?(t+=" if ( "+Ne+" === undefined ",P&&(t+=" || ! Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(L)+"') "),t+=") { "+g+" = true; } else { "):(t+=" if ("+Ne+" !== undefined ",P&&(t+=" && Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(L)+"') "),t+=" ) { ");t+=" "+ge+" } "}}i&&(t+=" if ("+g+") { ",l+="}")}}if(T.length){var U=T;if(U)for(var re,Qe=-1,ct=U.length-1;Qe<ct;){re=U[Qe+=1];var $=E[re];if(e.opts.strictKeywords?typeof $=="object"&&Object.keys($).length>0||$===!1:e.util.schemaHasRules($,e.RULES.all)){s.schema=$,s.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(re),s.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(re),P?t+=" "+w+" = "+w+" || Object.keys("+f+"); for (var "+v+"=0; "+v+"<"+w+".length; "+v+"++) { var "+d+" = "+w+"["+v+"]; ":t+=" for (var "+d+" in "+f+") { ",t+=" if ("+e.usePattern(re)+".test("+d+")) { ",s.errorPath=e.util.getPathExpr(e.errorPath,d,e.opts.jsonPointers);var ye=f+"["+d+"]";s.dataPathArr[S]=d;var ge=e.validate(s);s.baseId=N,e.util.varOccurences(ge,b)<2?t+=" "+e.util.varReplace(ge,b,ye)+" ":t+=" var "+b+" = "+ye+"; "+ge+" ",i&&(t+=" if (!"+g+") break; "),t+=" } ",i&&(t+=" else "+g+" = true; "),t+=" } ",i&&(t+=" if ("+g+") { ",l+="}")}}}return i&&(t+=" "+l+" if ("+h+" == errors) {"),t}),js}var Us,oh;function dC(){return oh||(oh=1,Us=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,f="data"+(p||""),h="errs__"+u,s=e.util.copy(e),l="";s.level++;var g="valid"+s.level;if(t+="var "+h+" = errors;",e.opts.strictKeywords?typeof c=="object"&&Object.keys(c).length>0||c===!1:e.util.schemaHasRules(c,e.RULES.all)){s.schema=c,s.schemaPath=r,s.errSchemaPath=m;var d="key"+u,v="idx"+u,S="i"+u,b="' + "+d+" + '",w=s.dataLevel=e.dataLevel+1,C="data"+w,E="dataProperties"+u,T=e.opts.ownProperties,x=e.baseId;T&&(t+=" var "+E+" = undefined; "),T?t+=" "+E+" = "+E+" || Object.keys("+f+"); for (var "+v+"=0; "+v+"<"+E+".length; "+v+"++) { var "+d+" = "+E+"["+v+"]; ":t+=" for (var "+d+" in "+f+") { ",t+=" var startErrs"+u+" = errors; ";var A=d,k=e.compositeRule;e.compositeRule=s.compositeRule=!0;var B=e.validate(s);s.baseId=x,e.util.varOccurences(B,C)<2?t+=" "+e.util.varReplace(B,C,A)+" ":t+=" var "+C+" = "+A+"; "+B+" ",e.compositeRule=s.compositeRule=k,t+=" if (!"+g+") { for (var "+S+"=startErrs"+u+"; "+S+"<errors; "+S+"++) { vErrors["+S+"].propertyName = "+d+"; } var err = ",e.createErrors!==!1?(t+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { propertyName: '"+b+"' } ",e.opts.messages!==!1&&(t+=" , message: 'property name \\'"+b+"\\' is invalid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&i&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),i&&(t+=" break; "),t+=" } }"}return i&&(t+=" "+l+" if ("+h+" == errors) {"),t}),Us}var qs,lh;function gC(){return lh||(lh=1,qs=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,f="data"+(p||""),h="valid"+u,s=e.opts.$data&&c&&c.$data;s&&(t+=" var schema"+u+" = "+e.util.getData(c.$data,p,e.dataPathArr)+"; ");var l="schema"+u;if(!s)if(c.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var g=[],d=c;if(d)for(var v,S=-1,b=d.length-1;S<b;){v=d[S+=1];var w=e.schema.properties[v];w&&(e.opts.strictKeywords?typeof w=="object"&&Object.keys(w).length>0||w===!1:e.util.schemaHasRules(w,e.RULES.all))||(g[g.length]=v)}}else var g=c;if(s||g.length){var C=e.errorPath,E=s||g.length>=e.opts.loopRequired,T=e.opts.ownProperties;if(i)if(t+=" var missing"+u+"; ",E){s||(t+=" var "+l+" = validate.schema"+r+"; ");var x="i"+u,A="schema"+u+"["+x+"]",k="' + "+A+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(C,A,e.opts.jsonPointers)),t+=" var "+h+" = true; ",s&&(t+=" if (schema"+u+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+u+")) "+h+" = false; else {"),t+=" for (var "+x+" = 0; "+x+" < "+l+".length; "+x+"++) { "+h+" = "+f+"["+l+"["+x+"]] !== undefined ",T&&(t+=" && Object.prototype.hasOwnProperty.call("+f+", "+l+"["+x+"]) "),t+="; if (!"+h+") break; } ",s&&(t+=" } "),t+=" if (!"+h+") { ";var B=B||[];B.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+k+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+k+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ";var R=t;t=B.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+R+"]); ":t+=" validate.errors = ["+R+"]; return false; ":t+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { "}else{t+=" if ( ";var F=g;if(F)for(var P,x=-1,N=F.length-1;x<N;){P=F[x+=1],x&&(t+=" || ");var j=e.util.getProperty(P),V=f+j;t+=" ( ( "+V+" === undefined ",T&&(t+=" || ! Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(P)+"') "),t+=") && (missing"+u+" = "+e.util.toQuotedString(e.opts.jsonPointers?P:j)+") ) "}t+=") { ";var A="missing"+u,k="' + "+A+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(C,A,!0):C+" + "+A);var B=B||[];B.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+k+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+k+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ";var R=t;t=B.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+R+"]); ":t+=" validate.errors = ["+R+"]; return false; ":t+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { "}else if(E){s||(t+=" var "+l+" = validate.schema"+r+"; ");var x="i"+u,A="schema"+u+"["+x+"]",k="' + "+A+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(C,A,e.opts.jsonPointers)),s&&(t+=" if ("+l+" && !Array.isArray("+l+")) { var err = ",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+k+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+k+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+l+" !== undefined) { "),t+=" for (var "+x+" = 0; "+x+" < "+l+".length; "+x+"++) { if ("+f+"["+l+"["+x+"]] === undefined ",T&&(t+=" || ! Object.prototype.hasOwnProperty.call("+f+", "+l+"["+x+"]) "),t+=") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+k+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+k+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",s&&(t+=" } ")}else{var O=g;if(O)for(var P,G=-1,L=O.length-1;G<L;){P=O[G+=1];var j=e.util.getProperty(P),k=e.util.escapeQuotes(P),V=f+j;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(C,P,e.opts.jsonPointers)),t+=" if ( "+V+" === undefined ",T&&(t+=" || ! Object.prototype.hasOwnProperty.call("+f+", '"+e.util.escapeQuotes(P)+"') "),t+=") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+k+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+k+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=C}else i&&(t+=" if (true) {");return t}),qs}var Vs,uh;function yC(){return uh||(uh=1,Vs=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,f="data"+(p||""),h="valid"+u,s=e.opts.$data&&c&&c.$data,l;if(s?(t+=" var schema"+u+" = "+e.util.getData(c.$data,p,e.dataPathArr)+"; ",l="schema"+u):l=c,(c||s)&&e.opts.uniqueItems!==!1){s&&(t+=" var "+h+"; if ("+l+" === false || "+l+" === undefined) "+h+" = true; else if (typeof "+l+" != 'boolean') "+h+" = false; else { "),t+=" var i = "+f+".length , "+h+" = true , j; if (i > 1) { ";var g=e.schema.items&&e.schema.items.type,d=Array.isArray(g);if(!g||g=="object"||g=="array"||d&&(g.indexOf("object")>=0||g.indexOf("array")>=0))t+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+f+"[i], "+f+"[j])) { "+h+" = false; break outer; } } } ";else{t+=" var itemIndices = {}, item; for (;i--;) { var item = "+f+"[i]; ";var v="checkDataType"+(d?"s":"");t+=" if ("+e.util[v](g,"item",e.opts.strictNumbers,!0)+") continue; ",d&&(t+=` if (typeof item == 'string') item = '"' + item; `),t+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}t+=" } ",s&&(t+=" } "),t+=" if (!"+h+") { ";var S=S||[];S.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(t+=" , schema: ",s?t+="validate.schema"+r:t+=""+c,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),t+=" } "):t+=" {} ";var b=t;t=S.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+b+"]); ":t+=" validate.errors = ["+b+"]; return false; ":t+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",i&&(t+=" else { ")}else i&&(t+=" if (true) { ");return t}),Vs}var $s,ch;function vC(){return ch||(ch=1,$s={$ref:Zx(),allOf:eC(),anyOf:tC(),$comment:rC(),const:nC(),contains:sC(),dependencies:aC(),enum:iC(),format:oC(),if:lC(),items:uC(),maximum:Xm(),minimum:Xm(),maxItems:Ym(),minItems:Ym(),maxLength:Zm(),minLength:Zm(),maxProperties:th(),minProperties:th(),multipleOf:cC(),not:fC(),oneOf:pC(),pattern:mC(),properties:hC(),propertyNames:dC(),required:gC(),uniqueItems:yC(),validate:_m()}),$s}var Ws,fh;function EC(){if(fh)return Ws;fh=1;var a=vC(),e=Lr().toHash;return Ws=function(){var o=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"],u=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],p=["number","integer","string","array","object","boolean","null"];return o.all=e(t),o.types=e(p),o.forEach(function(c){c.rules=c.rules.map(function(r){var m;if(typeof r=="object"){var i=Object.keys(r)[0];m=r[i],r=i,m.forEach(function(h){t.push(h),o.all[h]=!0})}t.push(r);var f=o.all[r]={keyword:r,code:a[r],implements:m};return f}),o.all.$comment={keyword:"$comment",code:a.$comment},c.type&&(o.types[c.type]=c)}),o.keywords=e(t.concat(u)),o.custom={},o},Ws}var Gs,ph;function SC(){if(ph)return Gs;ph=1;var a=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];return Gs=function(e,n){for(var o=0;o<n.length;o++){e=JSON.parse(JSON.stringify(e));var t=n[o].split("/"),u=e,p;for(p=1;p<t.length;p++)u=u[t[p]];for(p=0;p<a.length;p++){var c=a[p],r=u[c];r&&(u[c]={anyOf:[r,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e},Gs}var zs,mh;function bC(){if(mh)return zs;mh=1;var a=hs().MissingRef;zs=e;function e(n,o,t){var u=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof o=="function"&&(t=o,o=void 0);var p=c(n).then(function(){var m=u._addSchema(n,void 0,o);return m.validate||r(m)});return t&&p.then(function(m){t(null,m)},t),p;function c(m){var i=m.$schema;return i&&!u.getSchema(i)?e.call(u,{$ref:i},!0):Promise.resolve()}function r(m){try{return u._compile(m)}catch(f){if(f instanceof a)return i(f);throw f}function i(f){var h=f.missingSchema;if(g(h))throw new Error("Schema "+h+" is loaded but "+f.missingRef+" cannot be resolved");var s=u._loadingSchemas[h];return s||(s=u._loadingSchemas[h]=u._opts.loadSchema(h),s.then(l,l)),s.then(function(d){if(!g(h))return c(d).then(function(){g(h)||u.addSchema(d,h,void 0,o)})}).then(function(){return r(m)});function l(){delete u._loadingSchemas[h]}function g(d){return u._refs[d]||u._schemas[d]}}}}return zs}var Hs,hh;function xC(){return hh||(hh=1,Hs=function(e,n,o){var t=" ",u=e.level,p=e.dataLevel,c=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,f,h="data"+(p||""),s="valid"+u,l="errs__"+u,g=e.opts.$data&&c&&c.$data,d;g?(t+=" var schema"+u+" = "+e.util.getData(c.$data,p,e.dataPathArr)+"; ",d="schema"+u):d=c;var v=this,S="definition"+u,b=v.definition,w="",C,E,T,x,A;if(g&&b.$data){A="keywordValidate"+u;var k=b.validateSchema;t+=" var "+S+" = RULES.custom['"+n+"'].definition; var "+A+" = "+S+".validate;"}else{if(x=e.useCustomRule(v,c,e.schema,e),!x)return;d="validate.schema"+r,A=x.code,C=b.compile,E=b.inline,T=b.macro}var B=A+".errors",R="i"+u,F="ruleErr"+u,P=b.async;if(P&&!e.async)throw new Error("async keyword in sync schema");if(E||T||(t+=""+B+" = null;"),t+="var "+l+" = errors;var "+s+";",g&&b.$data&&(w+="}",t+=" if ("+d+" === undefined) { "+s+" = true; } else { ",k&&(w+="}",t+=" "+s+" = "+S+".validateSchema("+d+"); if ("+s+") { ")),E)b.statements?t+=" "+x.validate+" ":t+=" "+s+" = "+x.validate+"; ";else if(T){var N=e.util.copy(e),w="";N.level++;var j="valid"+N.level;N.schema=x.validate,N.schemaPath="";var V=e.compositeRule;e.compositeRule=N.compositeRule=!0;var O=e.validate(N).replace(/validate\.schema/g,A);e.compositeRule=N.compositeRule=V,t+=" "+O}else{var G=G||[];G.push(t),t="",t+=" "+A+".call( ",e.opts.passContext?t+="this":t+="self",C||b.schema===!1?t+=" , "+h+" ":t+=" , "+d+" , "+h+" , validate.schema"+e.schemaPath+" ",t+=" , (dataPath || '')",e.errorPath!='""'&&(t+=" + "+e.errorPath);var L=p?"data"+(p-1||""):"parentData",K=p?e.dataPathArr[p]:"parentDataProperty";t+=" , "+L+" , "+K+" , rootData ) ";var H=t;t=G.pop(),b.errors===!1?(t+=" "+s+" = ",P&&(t+="await "),t+=""+H+"; "):P?(B="customErrors"+u,t+=" var "+B+" = null; try { "+s+" = await "+H+"; } catch (e) { "+s+" = false; if (e instanceof ValidationError) "+B+" = e.errors; else throw e; } "):t+=" "+B+" = null; "+s+" = "+H+"; "}if(b.modifying&&(t+=" if ("+L+") "+h+" = "+L+"["+K+"];"),t+=""+w,b.valid)i&&(t+=" if (true) { ");else{t+=" if ( ",b.valid===void 0?(t+=" !",T?t+=""+j:t+=""+s):t+=" "+!b.valid+" ",t+=") { ",f=v.keyword;var G=G||[];G.push(t),t="";var G=G||[];G.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(f||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { keyword: '"+v.keyword+"' } ",e.opts.messages!==!1&&(t+=` , message: 'should pass "`+v.keyword+`" keyword validation' `),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),t+=" } "):t+=" {} ";var ae=t;t=G.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+ae+"]); ":t+=" validate.errors = ["+ae+"]; return false; ":t+=" var err = "+ae+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var re=t;t=G.pop(),E?b.errors?b.errors!="full"&&(t+=" for (var "+R+"="+l+"; "+R+"<errors; "+R+"++) { var "+F+" = vErrors["+R+"]; if ("+F+".dataPath === undefined) "+F+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+F+".schemaPath === undefined) { "+F+'.schemaPath = "'+m+'"; } ',e.opts.verbose&&(t+=" "+F+".schema = "+d+"; "+F+".data = "+h+"; "),t+=" } "):b.errors===!1?t+=" "+re+" ":(t+=" if ("+l+" == errors) { "+re+" } else { for (var "+R+"="+l+"; "+R+"<errors; "+R+"++) { var "+F+" = vErrors["+R+"]; if ("+F+".dataPath === undefined) "+F+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+F+".schemaPath === undefined) { "+F+'.schemaPath = "'+m+'"; } ',e.opts.verbose&&(t+=" "+F+".schema = "+d+"; "+F+".data = "+h+"; "),t+=" } } "):T?(t+=" var err = ",e.createErrors!==!1?(t+=" { keyword: '"+(f||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { keyword: '"+v.keyword+"' } ",e.opts.messages!==!1&&(t+=` , message: 'should pass "`+v.keyword+`" keyword validation' `),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&i&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; ")):b.errors===!1?t+=" "+re+" ":(t+=" if (Array.isArray("+B+")) { if (vErrors === null) vErrors = "+B+"; else vErrors = vErrors.concat("+B+"); errors = vErrors.length; for (var "+R+"="+l+"; "+R+"<errors; "+R+"++) { var "+F+" = vErrors["+R+"]; if ("+F+".dataPath === undefined) "+F+".dataPath = (dataPath || '') + "+e.errorPath+"; "+F+'.schemaPath = "'+m+'"; ',e.opts.verbose&&(t+=" "+F+".schema = "+d+"; "+F+".data = "+h+"; "),t+=" } } else { "+re+" } "),t+=" } ",i&&(t+=" else { ")}return t}),Hs}var CC="http://json-schema.org/draft-07/schema#",wC="http://json-schema.org/draft-07/schema#",AC="Core schema meta-schema",TC={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},kC=["object","boolean"],DC={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dh={$schema:CC,$id:wC,title:AC,definitions:TC,type:kC,properties:DC,default:!0},Ks,gh;function IC(){if(gh)return Ks;gh=1;var a=dh;return Ks={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:a.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:a.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}},Ks}var Xs,yh;function PC(){if(yh)return Xs;yh=1;var a=/^[a-z_$][a-z0-9_$-]*$/i,e=xC(),n=IC();Xs={add:o,get:t,remove:u,validate:p};function o(c,r){var m=this.RULES;if(m.keywords[c])throw new Error("Keyword "+c+" is already defined");if(!a.test(c))throw new Error("Keyword "+c+" is not a valid identifier");if(r){this.validateKeyword(r,!0);var i=r.type;if(Array.isArray(i))for(var f=0;f<i.length;f++)s(c,i[f],r);else s(c,i,r);var h=r.metaSchema;h&&(r.$data&&this._opts.$data&&(h={anyOf:[h,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),r.validateSchema=this.compile(h,!0))}m.keywords[c]=m.all[c]=!0;function s(l,g,d){for(var v,S=0;S<m.length;S++){var b=m[S];if(b.type==g){v=b;break}}v||(v={type:g,rules:[]},m.push(v));var w={keyword:l,definition:d,custom:!0,code:e,implements:d.implements};v.rules.push(w),m.custom[l]=w}return this}function t(c){var r=this.RULES.custom[c];return r?r.definition:this.RULES.keywords[c]||!1}function u(c){var r=this.RULES;delete r.keywords[c],delete r.all[c],delete r.custom[c];for(var m=0;m<r.length;m++)for(var i=r[m].rules,f=0;f<i.length;f++)if(i[f].keyword==c){i.splice(f,1);break}return this}function p(c,r){p.errors=null;var m=this._validateKeyword=this._validateKeyword||this.compile(n,!0);if(m(c))return!0;if(p.errors=m.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(m.errors));return!1}return Xs}var FC="http://json-schema.org/draft-07/schema#",RC="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",_C="Meta-schema for $data reference (JSON Schema extension proposal)",BC="object",LC=["$data"],OC={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},NC=!1,MC={$schema:FC,$id:RC,description:_C,type:BC,required:LC,properties:OC,additionalProperties:NC},Js,vh;function Eh(){if(vh)return Js;vh=1;var a=Jx(),e=ps(),n=Yx(),o=Tm(),t=Fm(),u=Qx(),p=EC(),c=SC(),r=Lr();Js=l,l.prototype.validate=g,l.prototype.compile=d,l.prototype.addSchema=v,l.prototype.addMetaSchema=S,l.prototype.validateSchema=b,l.prototype.getSchema=C,l.prototype.removeSchema=x,l.prototype.addFormat=V,l.prototype.errorsText=j,l.prototype._addSchema=k,l.prototype._compile=B,l.prototype.compileAsync=bC();var m=PC();l.prototype.addKeyword=m.add,l.prototype.getKeyword=m.get,l.prototype.removeKeyword=m.remove,l.prototype.validateKeyword=m.validate;var i=hs();l.ValidationError=i.Validation,l.MissingRefError=i.MissingRef,l.$dataMetaSchema=c;var f="http://json-schema.org/draft-07/schema",h=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],s=["/properties"];function l(Y){if(!(this instanceof l))return new l(Y);Y=this._opts=r.copy(Y)||{},re(this),this._schemas={},this._refs={},this._fragments={},this._formats=u(Y.format),this._cache=Y.cache||new n,this._loadingSchemas={},this._compilations=[],this.RULES=p(),this._getId=R(Y),Y.loopRequired=Y.loopRequired||1/0,Y.errorDataPath=="property"&&(Y._errorDataPathProperty=!0),Y.serialize===void 0&&(Y.serialize=t),this._metaOpts=ae(this),Y.formats&&L(this),Y.keywords&&K(this),O(this),typeof Y.meta=="object"&&this.addMetaSchema(Y.meta),Y.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),G(this)}function g(Y,I){var W;if(typeof Y=="string"){if(W=this.getSchema(Y),!W)throw new Error('no schema with key or ref "'+Y+'"')}else{var ue=this._addSchema(Y);W=ue.validate||this._compile(ue)}var oe=W(I);return W.$async!==!0&&(this.errors=W.errors),oe}function d(Y,I){var W=this._addSchema(Y,void 0,I);return W.validate||this._compile(W)}function v(Y,I,W,ue){if(Array.isArray(Y)){for(var oe=0;oe<Y.length;oe++)this.addSchema(Y[oe],void 0,W,ue);return this}var ne=this._getId(Y);if(ne!==void 0&&typeof ne!="string")throw new Error("schema id must be string");return I=e.normalizeId(I||ne),H(this,I),this._schemas[I]=this._addSchema(Y,W,ue,!0),this}function S(Y,I,W){return this.addSchema(Y,I,W,!0),this}function b(Y,I){var W=Y.$schema;if(W!==void 0&&typeof W!="string")throw new Error("$schema must be a string");if(W=W||this._opts.defaultMeta||w(this),!W)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var ue=this.validate(W,Y);if(!ue&&I){var oe="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(oe);else throw new Error(oe)}return ue}function w(Y){var I=Y._opts.meta;return Y._opts.defaultMeta=typeof I=="object"?Y._getId(I)||I:Y.getSchema(f)?f:void 0,Y._opts.defaultMeta}function C(Y){var I=T(this,Y);switch(typeof I){case"object":return I.validate||this._compile(I);case"string":return this.getSchema(I);case"undefined":return E(this,Y)}}function E(Y,I){var W=e.schema.call(Y,{schema:{}},I);if(W){var ue=W.schema,oe=W.root,ne=W.baseId,he=a.call(Y,ue,oe,void 0,ne);return Y._fragments[I]=new o({ref:I,fragment:!0,schema:ue,root:oe,baseId:ne,validate:he}),he}}function T(Y,I){return I=e.normalizeId(I),Y._schemas[I]||Y._refs[I]||Y._fragments[I]}function x(Y){if(Y instanceof RegExp)return A(this,this._schemas,Y),A(this,this._refs,Y),this;switch(typeof Y){case"undefined":return A(this,this._schemas),A(this,this._refs),this._cache.clear(),this;case"string":var I=T(this,Y);return I&&this._cache.del(I.cacheKey),delete this._schemas[Y],delete this._refs[Y],this;case"object":var W=this._opts.serialize,ue=W?W(Y):Y;this._cache.del(ue);var oe=this._getId(Y);oe&&(oe=e.normalizeId(oe),delete this._schemas[oe],delete this._refs[oe])}return this}function A(Y,I,W){for(var ue in I){var oe=I[ue];!oe.meta&&(!W||W.test(ue))&&(Y._cache.del(oe.cacheKey),delete I[ue])}}function k(Y,I,W,ue){if(typeof Y!="object"&&typeof Y!="boolean")throw new Error("schema should be object or boolean");var oe=this._opts.serialize,ne=oe?oe(Y):Y,he=this._cache.get(ne);if(he)return he;ue=ue||this._opts.addUsedSchema!==!1;var ye=e.normalizeId(this._getId(Y));ye&&ue&&H(this,ye);var ge=this._opts.validateSchema!==!1&&!I,Ce;ge&&!(Ce=ye&&ye==e.normalizeId(Y.$schema))&&this.validateSchema(Y,!0);var z=e.ids.call(this,Y),Q=new o({id:ye,schema:Y,localRefs:z,cacheKey:ne,meta:W});return ye[0]!="#"&&ue&&(this._refs[ye]=Q),this._cache.put(ne,Q),ge&&Ce&&this.validateSchema(Y,!0),Q}function B(Y,I){if(Y.compiling)return Y.validate=oe,oe.schema=Y.schema,oe.errors=null,oe.root=I||oe,Y.schema.$async===!0&&(oe.$async=!0),oe;Y.compiling=!0;var W;Y.meta&&(W=this._opts,this._opts=this._metaOpts);var ue;try{ue=a.call(this,Y.schema,I,Y.localRefs)}catch(ne){throw delete Y.validate,ne}finally{Y.compiling=!1,Y.meta&&(this._opts=W)}return Y.validate=ue,Y.refs=ue.refs,Y.refVal=ue.refVal,Y.root=ue.root,ue;function oe(){var ne=Y.validate,he=ne.apply(this,arguments);return oe.errors=ne.errors,he}}function R(Y){switch(Y.schemaId){case"auto":return N;case"id":return F;default:return P}}function F(Y){return Y.$id&&this.logger.warn("schema $id ignored",Y.$id),Y.id}function P(Y){return Y.id&&this.logger.warn("schema id ignored",Y.id),Y.$id}function N(Y){if(Y.$id&&Y.id&&Y.$id!=Y.id)throw new Error("schema $id is different from id");return Y.$id||Y.id}function j(Y,I){if(Y=Y||this.errors,!Y)return"No errors";I=I||{};for(var W=I.separator===void 0?", ":I.separator,ue=I.dataVar===void 0?"data":I.dataVar,oe="",ne=0;ne<Y.length;ne++){var he=Y[ne];he&&(oe+=ue+he.dataPath+" "+he.message+W)}return oe.slice(0,-W.length)}function V(Y,I){return typeof I=="string"&&(I=new RegExp(I)),this._formats[Y]=I,this}function O(Y){var I;if(Y._opts.$data&&(I=MC,Y.addMetaSchema(I,I.$id,!0)),Y._opts.meta!==!1){var W=dh;Y._opts.$data&&(W=c(W,s)),Y.addMetaSchema(W,f,!0),Y._refs["http://json-schema.org/schema"]=f}}function G(Y){var I=Y._opts.schemas;if(I)if(Array.isArray(I))Y.addSchema(I);else for(var W in I)Y.addSchema(I[W],W)}function L(Y){for(var I in Y._opts.formats){var W=Y._opts.formats[I];Y.addFormat(I,W)}}function K(Y){for(var I in Y._opts.keywords){var W=Y._opts.keywords[I];Y.addKeyword(I,W)}}function H(Y,I){if(Y._schemas[I]||Y._refs[I])throw new Error('schema with key or id "'+I+'" already exists')}function ae(Y){for(var I=r.copy(Y._opts),W=0;W<h.length;W++)delete I[h[W]];return I}function re(Y){var I=Y._opts.logger;if(I===!1)Y.logger={log:De,warn:De,error:De};else{if(I===void 0&&(I=console),!(typeof I=="object"&&I.log&&I.warn&&I.error))throw new Error("logger must implement log, warn and error methods");Y.logger=I}}function De(){}return Js}var jC={AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},UC={Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},qC={Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},VC={Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},$C={Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},WC={AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},GC={AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffectReadOnly:!1,AnimationEffectTiming:!1,AnimationEffectTimingReadOnly:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AudioScheduledSourceNode:!1,AudioWorkletGlobalScope:!1,AudioWorkletNode:!1,AudioWorkletProcessor:!1,BarProp:!1,BaseAudioContext:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,BlobEvent:!1,blur:!1,BroadcastChannel:!1,btoa:!1,BudgetService:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasCaptureMediaStreamTrack:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClipboardEvent:!1,ClipboardItem:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,CompressionStream:!1,confirm:!1,console:!1,ConstantSourceNode:!1,ConvolverNode:!1,CountQueuingStrategy:!1,createImageBitmap:!1,Credential:!1,CredentialsContainer:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSConditionRule:!1,CSSFontFaceRule:!1,CSSGroupingRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMatrixComponent:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSPageRule:!1,CSSPerspective:!1,CSSRotate:!1,CSSRule:!1,CSSRuleList:!1,CSSScale:!1,CSSSkew:!1,CSSSkewX:!1,CSSSkewY:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CSSTransformValue:!1,CSSTranslate:!1,CustomElementRegistry:!1,customElements:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,DecompressionStream:!1,defaultstatus:!1,defaultStatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMParser:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectList:!1,DOMRectReadOnly:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FontFaceSetLoadEvent:!1,FormData:!1,FormDataEvent:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLContentElement:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLLabelElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLShadowElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDeadline:!1,IIRFilterNode:!1,Image:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageCapture:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,Intl:!1,isSecureContext:!1,KeyboardEvent:!1,KeyframeEffect:!1,KeyframeEffectReadOnly:!1,length:!1,localStorage:!1,location:!0,Location:!1,locationbar:!1,matchMedia:!1,MediaDeviceInfo:!1,MediaDevices:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyMessageEvent:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaMetadata:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaRecorder:!1,MediaSettingsRange:!1,MediaSource:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamConstraints:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,MediaStreamTrackEvent:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,NavigationPreloadManager:!1,navigator:!1,Navigator:!1,NavigatorUAData:!1,NetworkInformation:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,OffscreenCanvas:!0,OffscreenCanvasRenderingContext2D:!1,onabort:!0,onafterprint:!0,onanimationend:!0,onanimationiteration:!0,onanimationstart:!0,onappinstalled:!0,onauxclick:!0,onbeforeinstallprompt:!0,onbeforeprint:!0,onbeforeunload:!0,onblur:!0,oncancel:!0,oncanplay:!0,oncanplaythrough:!0,onchange:!0,onclick:!0,onclose:!0,oncontextmenu:!0,oncuechange:!0,ondblclick:!0,ondevicemotion:!0,ondeviceorientation:!0,ondeviceorientationabsolute:!0,ondrag:!0,ondragend:!0,ondragenter:!0,ondragleave:!0,ondragover:!0,ondragstart:!0,ondrop:!0,ondurationchange:!0,onemptied:!0,onended:!0,onerror:!0,onfocus:!0,ongotpointercapture:!0,onhashchange:!0,oninput:!0,oninvalid:!0,onkeydown:!0,onkeypress:!0,onkeyup:!0,onlanguagechange:!0,onload:!0,onloadeddata:!0,onloadedmetadata:!0,onloadstart:!0,onlostpointercapture:!0,onmessage:!0,onmessageerror:!0,onmousedown:!0,onmouseenter:!0,onmouseleave:!0,onmousemove:!0,onmouseout:!0,onmouseover:!0,onmouseup:!0,onmousewheel:!0,onoffline:!0,ononline:!0,onpagehide:!0,onpageshow:!0,onpause:!0,onplay:!0,onplaying:!0,onpointercancel:!0,onpointerdown:!0,onpointerenter:!0,onpointerleave:!0,onpointermove:!0,onpointerout:!0,onpointerover:!0,onpointerup:!0,onpopstate:!0,onprogress:!0,onratechange:!0,onrejectionhandled:!0,onreset:!0,onresize:!0,onscroll:!0,onsearch:!0,onseeked:!0,onseeking:!0,onselect:!0,onstalled:!0,onstorage:!0,onsubmit:!0,onsuspend:!0,ontimeupdate:!0,ontoggle:!0,ontransitionend:!0,onunhandledrejection:!0,onunload:!0,onvolumechange:!0,onwaiting:!0,onwheel:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,origin:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,OverconstrainedError:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,PannerNode:!1,parent:!1,Path2D:!1,PaymentAddress:!1,PaymentRequest:!1,PaymentRequestUpdateEvent:!1,PaymentResponse:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceNavigationTiming:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformancePaintTiming:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,PhotoCapabilities:!1,Plugin:!1,PluginArray:!1,PointerEvent:!1,PopStateEvent:!1,postMessage:!1,Presentation:!1,PresentationAvailability:!1,PresentationConnection:!1,PresentationConnectionAvailableEvent:!1,PresentationConnectionCloseEvent:!1,PresentationConnectionList:!1,PresentationReceiver:!1,PresentationRequest:!1,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,RadioNodeList:!1,Range:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,registerProcessor:!1,RemotePlayback:!1,removeEventListener:!1,reportError:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,ResizeObserver:!1,ResizeObserverEntry:!1,resizeTo:!1,Response:!1,RTCCertificate:!1,RTCDataChannel:!1,RTCDataChannelEvent:!1,RTCDtlsTransport:!1,RTCIceCandidate:!1,RTCIceGatherer:!1,RTCIceTransport:!1,RTCPeerConnection:!1,RTCPeerConnectionIceEvent:!1,RTCRtpContributingSource:!1,RTCRtpReceiver:!1,RTCRtpSender:!1,RTCSctpTransport:!1,RTCSessionDescription:!1,RTCStatsReport:!1,RTCTrackEvent:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedWorker:!1,SourceBuffer:!1,SourceBufferList:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,StaticRange:!1,status:!1,statusbar:!1,StereoPannerNode:!1,stop:!1,Storage:!1,StorageEvent:!1,StorageManager:!1,structuredClone:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!1,SubmitEvent:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAngle:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGComponentTransferFunctionElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDiscardElement:!1,SVGElement:!1,SVGEllipseElement:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGImageElement:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPathElement:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGViewElement:!1,TaskAttributionTiming:!1,Text:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeRanges:!1,ToggleEvent:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransformStream:!1,TransformStreamDefaultController:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,URLSearchParams:!1,ValidityState:!1,visualViewport:!1,VisualViewport:!1,VTTCue:!1,WaveShaperNode:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WheelEvent:!1,window:!1,Window:!1,Worker:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathExpression:!1,XPathResult:!1,XRAnchor:!1,XRBoundedReferenceSpace:!1,XRCPUDepthInformation:!1,XRDepthInformation:!1,XRFrame:!1,XRInputSource:!1,XRInputSourceArray:!1,XRInputSourceEvent:!1,XRInputSourcesChangeEvent:!1,XRPose:!1,XRReferenceSpace:!1,XRReferenceSpaceEvent:!1,XRRenderState:!1,XRRigidTransform:!1,XRSession:!1,XRSessionEvent:!1,XRSpace:!1,XRSystem:!1,XRView:!1,XRViewerPose:!1,XRViewport:!1,XRWebGLBinding:!1,XRWebGLDepthInformation:!1,XRWebGLLayer:!1,XSLTProcessor:!1},zC={addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,ErrorEvent:!1,Event:!1,fetch:!1,File:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,removeEventListener:!1,reportError:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,Worker:!1,WorkerGlobalScope:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLHttpRequest:!1},HC={__dirname:!1,__filename:!1,AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,exports:!0,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,module:!1,performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,require:!1,Response:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},KC={AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,Response:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},XC={exports:!0,global:!1,module:!1,require:!1},JC={define:!1,require:!1},YC={after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},QC={afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,expectAsync:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnAllFunctions:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},ZC={afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fdescribe:!1,fit:!1,it:!1,jest:!1,pit:!1,require:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},e1={asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},t1={console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},r1={emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},n1={defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},s1={__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,java:!1,Java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},a1={ActiveXObject:!1,CollectGarbage:!1,Debug:!1,Enumerator:!1,GetObject:!1,RuntimeObject:!1,ScriptEngine:!1,ScriptEngineBuildVersion:!1,ScriptEngineMajorVersion:!1,ScriptEngineMinorVersion:!1,VBArray:!1,WScript:!1,WSH:!1},i1={$:!1,jQuery:!1},o1={YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1},l1={cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,target:!1,tempdir:!1,test:!1,touch:!1,which:!1},u1={$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},c1={$:!1,Accounts:!1,AccountsClient:!1,AccountsCommon:!1,AccountsServer:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPRateLimiter:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},f1={_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},p1={$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},m1={addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,close:!0,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,ErrorEvent:!1,Event:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,File:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!1,indexedDB:!1,location:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,registration:!1,removeEventListener:!1,Request:!1,Response:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WindowClient:!1,Worker:!1,WorkerGlobalScope:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLHttpRequest:!1},h1={advanceClock:!1,atom:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},d1={andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findAll:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1,wait:!1},g1={$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},y1={browser:!1,chrome:!1,opr:!1},v1={cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addElement:!1,GM_addStyle:!1,GM_addValueChangeListener:!1,GM_deleteValue:!1,GM_download:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getTab:!1,GM_getTabs:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_notification:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_removeValueChangeListener:!1,GM_saveTab:!1,GM_setClipboard:!1,GM_setValue:!1,GM_unregisterMenuCommand:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},E1={$:!1,$_:!1,$$:!1,$0:!1,$1:!1,$2:!1,$3:!1,$4:!1,$x:!1,chrome:!1,clear:!1,copy:!1,debug:!1,dir:!1,dirxml:!1,getEventListeners:!1,inspect:!1,keys:!1,monitor:!1,monitorEvents:!1,profile:!1,profileEnd:!1,queryObjects:!1,table:!1,undebug:!1,unmonitor:!1,unmonitorEvents:!1,values:!1},S1={builtin:jC,es5:UC,es2015:qC,es2017:VC,es2020:$C,es2021:WC,browser:GC,worker:zC,node:HC,nodeBuiltin:KC,commonjs:XC,amd:JC,mocha:YC,jasmine:QC,jest:ZC,qunit:e1,phantomjs:t1,couch:r1,rhino:n1,nashorn:s1,wsh:a1,jquery:i1,yui:o1,shelljs:l1,prototypejs:u1,meteor:c1,mongo:f1,applescript:p1,serviceworker:m1,atomtest:h1,embertest:d1,protractor:g1,"shared-node-browser":{AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,clearInterval:!1,clearTimeout:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,Headers:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,Response:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},webextensions:y1,greasemonkey:v1,devtools:E1},Ys,Sh;function b1(){return Sh||(Sh=1,Ys=S1),Ys}var bh;function x1(){if(bh)return dn;bh=1,Object.defineProperty(dn,"__esModule",{value:!0});var a=zx,e=pn,n=Eh(),o=b1();function t(ye){return ye&&typeof ye=="object"&&"default"in ye?ye:{default:ye}}var u=t(a),p=t(e),c=t(n),r=t(o);const m=["off","warn","error"],i=m.reduce((ye,ge,Ce)=>(ye[ge]=Ce,ye),{}),f=new Set([0,1,2,"off","warn","error"]);function h(ye){const ge=Array.isArray(ye)?ye[0]:ye;return ge===0||ge===1||ge===2?ge:typeof ge=="string"&&i[ge.toLowerCase()]||0}function s(ye){ye.rules&&Object.keys(ye.rules).forEach(ge=>{const Ce=ye.rules[ge];typeof Ce=="number"?ye.rules[ge]=m[Ce]||m[0]:Array.isArray(Ce)&&typeof Ce[0]=="number"&&(Ce[0]=m[Ce[0]]||m[0])})}function l(ye){return h(ye)===2}function g(ye){let ge=Array.isArray(ye)?ye[0]:ye;return typeof ge=="string"&&(ge=ge.toLowerCase()),f.has(ge)}function d(ye){return Object.keys(ye).every(ge=>g(ye[ge]))}function v(ye){switch(ye){case"off":return"off";case!0:case"true":case"writeable":case"writable":return"writable";case null:case!1:case"false":case"readable":case"readonly":return"readonly";default:throw new Error(`'${ye}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`)}}var S={__proto__:null,getRuleSeverity:h,normalizeToStrings:s,isErrorSeverity:l,isValidSeverity:g,isEverySeverityValid:d,normalizeConfigGlobal:v};const b={ESLINT_LEGACY_ECMAFEATURES:"The 'ecmaFeatures' config file property is deprecated and has no effect.",ESLINT_PERSONAL_CONFIG_LOAD:"'~/.eslintrc.*' config files have been deprecated. Please use a config file per project or the '--config' option.",ESLINT_PERSONAL_CONFIG_SUPPRESS:"'~/.eslintrc.*' config files have been deprecated. Please remove it or add 'root:true' to the config files in your projects in order to avoid loading '~/.eslintrc.*' accidentally."},w=new Set;function C(ye,ge){const Ce=JSON.stringify({source:ye,errorCode:ge});if(w.has(Ce))return;w.add(Ce);const z=p.default.relative(process.cwd(),ye),Q=b[ge];process.emitWarning(`${Q} (found in "${z}")`,"DeprecationWarning",ge)}const E={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string"},$schema:{type:"string"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}};var T=(ye={})=>{const ge=new c.default({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:"ignore",verbose:!0,schemaId:"auto",...ye});return ge.addMetaSchema(E),ge._opts.defaultMeta=E.id,ge};function x(ye){return typeof ye=="object"&&ye!==null&&!Array.isArray(ye)}function A(ye,ge){if(ge===void 0)return ye;if(!x(ye)||!x(ge))return ge;const Ce={...ye,...ge};for(const z of Object.keys(ge))Object.prototype.propertyIsEnumerable.call(ye,z)&&(Ce[z]=A(ye[z],ge[z]));return Ce}function k(ye,ge){return!ye||!ge?ge||ye||[]:[...ye.map((Ce,z)=>A(Ce,ge[z])),...ge.slice(ye.length)]}const B={$schema:{type:"string"},env:{type:"object"},extends:{$ref:"#/definitions/stringOrStrings"},globals:{type:"object"},overrides:{type:"array",items:{$ref:"#/definitions/overrideConfig"},additionalItems:!1},parser:{type:["string","null"]},parserOptions:{type:"object"},plugins:{type:"array"},processor:{type:"string"},rules:{type:"object"},settings:{type:"object"},noInlineConfig:{type:"boolean"},reportUnusedDisableDirectives:{type:"boolean"},ecmaFeatures:{type:"object"}},R={definitions:{stringOrStrings:{oneOf:[{type:"string"},{type:"array",items:{type:"string"},additionalItems:!1}]},stringOrStringsRequired:{oneOf:[{type:"string"},{type:"array",items:{type:"string"},additionalItems:!1,minItems:1}]},objectConfig:{type:"object",properties:{root:{type:"boolean"},ignorePatterns:{$ref:"#/definitions/stringOrStrings"},...B},additionalProperties:!1},overrideConfig:{type:"object",properties:{excludedFiles:{$ref:"#/definitions/stringOrStrings"},files:{$ref:"#/definitions/stringOrStringsRequired"},...B},required:["files"],additionalProperties:!1}},$ref:"#/definitions/objectConfig"};function F(ye,ge){const Ce={};for(const[z,Q]of Object.entries(ye))Object.hasOwn(ge,z)||(Ce[z]=Q);return Ce}const P=F(r.default.es2015,r.default.es5),N={Atomics:!1,SharedArrayBuffer:!1},j={BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1},V={AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1};var O=new Map(Object.entries({builtin:{globals:r.default.es5},es6:{globals:P,parserOptions:{ecmaVersion:6}},es2015:{globals:P,parserOptions:{ecmaVersion:6}},es2016:{globals:P,parserOptions:{ecmaVersion:7}},es2017:{globals:{...P,...N},parserOptions:{ecmaVersion:8}},es2018:{globals:{...P,...N},parserOptions:{ecmaVersion:9}},es2019:{globals:{...P,...N},parserOptions:{ecmaVersion:10}},es2020:{globals:{...P,...N,...j},parserOptions:{ecmaVersion:11}},es2021:{globals:{...P,...N,...j,...V},parserOptions:{ecmaVersion:12}},es2022:{globals:{...P,...N,...j,...V},parserOptions:{ecmaVersion:13}},es2023:{globals:{...P,...N,...j,...V},parserOptions:{ecmaVersion:14}},es2024:{globals:{...P,...N,...j,...V},parserOptions:{ecmaVersion:15}},browser:{globals:r.default.browser},node:{globals:r.default.node,parserOptions:{ecmaFeatures:{globalReturn:!0}}},"shared-node-browser":{globals:r.default["shared-node-browser"]},worker:{globals:r.default.worker},serviceworker:{globals:r.default.serviceworker},commonjs:{globals:r.default.commonjs,parserOptions:{ecmaFeatures:{globalReturn:!0}}},amd:{globals:r.default.amd},mocha:{globals:r.default.mocha},jasmine:{globals:r.default.jasmine},jest:{globals:r.default.jest},phantomjs:{globals:r.default.phantomjs},jquery:{globals:r.default.jquery},qunit:{globals:r.default.qunit},prototypejs:{globals:r.default.prototypejs},shelljs:{globals:r.default.shelljs},meteor:{globals:r.default.meteor},mongo:{globals:r.default.mongo},protractor:{globals:r.default.protractor},applescript:{globals:r.default.applescript},nashorn:{globals:r.default.nashorn},atomtest:{globals:r.default.atomtest},embertest:{globals:r.default.embertest},webextensions:{globals:r.default.webextensions},greasemonkey:{globals:r.default.greasemonkey}}));const G=T(),L=new WeakMap,K=Function.prototype;let H;const ae={error:2,warn:1,off:0},re=new WeakSet,De=Object.freeze({type:"array",minItems:0,maxItems:0});class Y{constructor({builtInRules:ge=new Map}={}){this.builtInRules=ge}getRuleOptionsSchema(ge){if(!ge)return null;if(!ge.meta)return{...De};const Ce=ge.meta.schema;if(typeof Ce>"u")return{...De};if(Ce===!1)return null;if(typeof Ce!="object"||Ce===null)throw new TypeError("Rule's `meta.schema` must be an array or object");return Array.isArray(Ce)?Ce.length?{type:"array",items:Ce,minItems:0,maxItems:Ce.length}:{...De}:Ce}validateRuleSeverity(ge){const Ce=Array.isArray(ge)?ge[0]:ge,z=typeof Ce=="string"?ae[Ce.toLowerCase()]:Ce;if(z===0||z===1||z===2)return z;throw new Error(` Severity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${u.default.inspect(Ce).replace(/'/gu,'"').replace(/\n/gu,"")}').
|
|
27
|
+
`)}validateRuleSchema(ge,Ce){if(!L.has(ge))try{const Q=this.getRuleOptionsSchema(ge);Q&&L.set(ge,G.compile(Q))}catch(Q){const Re=new Error(Q.message,{cause:Q});throw Re.code="ESLINT_INVALID_RULE_OPTIONS_SCHEMA",Re}const z=L.get(ge);if(z){const Q=k(ge.meta?.defaultOptions,Ce);if(z(Q),z.errors)throw new Error(z.errors.map(Re=>` Value ${JSON.stringify(Re.data)} ${Re.message}.
|
|
28
|
+
`).join(""))}}validateRuleOptions(ge,Ce,z,Q=null){try{this.validateRuleSeverity(z)!==0&&this.validateRuleSchema(ge,Array.isArray(z)?z.slice(1):[])}catch(Re){let $=Re.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA"?`Error while processing options validation schema of rule '${Ce}': ${Re.message}`:`Configuration for rule "${Ce}" is invalid:
|
|
29
|
+
${Re.message}`;typeof Q=="string"&&($=`${Q}:
|
|
30
|
+
${$}`);const ie=new Error($,{cause:Re});throw Re.code&&(ie.code=Re.code),ie}}validateEnvironment(ge,Ce,z=K){ge&&Object.keys(ge).forEach(Q=>{if(!(z(Q)||O.get(Q)||null)){const $=`${Ce}:
|
|
31
|
+
Environment key "${Q}" is unknown
|
|
32
|
+
`;throw new Error($)}})}validateRules(ge,Ce,z=K){ge&&Object.keys(ge).forEach(Q=>{const Re=z(Q)||this.builtInRules.get(Q)||null;this.validateRuleOptions(Re,Q,ge[Q],Ce)})}validateGlobals(ge,Ce=null){ge&&Object.entries(ge).forEach(([z,Q])=>{try{v(Q)}catch(Re){throw new Error(`ESLint configuration of global '${z}' in ${Ce} is invalid:
|
|
33
|
+
${Re.message}`)}})}validateProcessor(ge,Ce,z){if(ge&&!z(ge))throw new Error(`ESLint configuration of processor in '${Ce}' is invalid: '${ge}' was not found.`)}formatErrors(ge){return ge.map(Ce=>{if(Ce.keyword==="additionalProperties")return`Unexpected top-level property "${Ce.dataPath.length?`${Ce.dataPath.slice(1)}.${Ce.params.additionalProperty}`:Ce.params.additionalProperty}"`;if(Ce.keyword==="type"){const Q=Ce.dataPath.slice(1),Re=Array.isArray(Ce.schema)?Ce.schema.join("/"):Ce.schema,$=JSON.stringify(Ce.data);return`Property "${Q}" is the wrong type (expected ${Re} but got \`${$}\`)`}return`"${Ce.dataPath[0]==="."?Ce.dataPath.slice(1):Ce.dataPath}" ${Ce.message}. Value: ${JSON.stringify(Ce.data)}`}).map(Ce=>` - ${Ce}.
|
|
34
|
+
`).join("")}validateConfigSchema(ge,Ce=null){if(H=H||G.compile(R),!H(ge))throw new Error(`ESLint configuration in ${Ce} is invalid:
|
|
35
|
+
${this.formatErrors(H.errors)}`);Object.hasOwn(ge,"ecmaFeatures")&&C(Ce,"ESLINT_LEGACY_ECMAFEATURES")}validate(ge,Ce,z,Q){this.validateConfigSchema(ge,Ce),this.validateRules(ge.rules,Ce,z),this.validateEnvironment(ge.env,Ce,Q),this.validateGlobals(ge.globals,Ce);for(const Re of ge.overrides||[])this.validateRules(Re.rules,Ce,z),this.validateEnvironment(Re.env,Ce,Q),this.validateGlobals(ge.globals,Ce)}validateConfigArray(ge){const Ce=Map.prototype.get.bind(ge.pluginEnvironments),z=Map.prototype.get.bind(ge.pluginProcessors),Q=Map.prototype.get.bind(ge.pluginRules);for(const Re of ge)re.has(Re)||(re.add(Re),this.validateEnvironment(Re.env,Re.name,Ce),this.validateGlobals(Re.globals,Re.name),this.validateProcessor(Re.processor,Re.name,z),this.validateRules(Re.rules,Re.name,Q))}}const I=/^@.*\//iu;function W(ye,ge){let Ce=ye;if(Ce.includes("\\")&&(Ce=Ce.replace(/\\/gu,"/")),Ce.charAt(0)==="@"){const z=new RegExp(`^(@[^/]+)(?:/(?:${ge})?)?$`,"u"),Q=new RegExp(`^${ge}(-|$)`,"u");z.test(Ce)?Ce=Ce.replace(z,`$1/${ge}`):Q.test(Ce.split("/")[1])||(Ce=Ce.replace(/^@([^/]+)\/(.*)$/u,`@$1/${ge}-$2`))}else Ce.startsWith(`${ge}-`)||(Ce=`${ge}-${Ce}`);return Ce}function ue(ye,ge){if(ye[0]==="@"){let Ce=new RegExp(`^(@[^/]+)/${ge}$`,"u").exec(ye);if(Ce)return Ce[1];if(Ce=new RegExp(`^(@[^/]+)/${ge}-(.+)$`,"u").exec(ye),Ce)return`${Ce[1]}/${Ce[2]}`}else if(ye.startsWith(`${ge}-`))return ye.slice(ge.length+1);return ye}function oe(ye){const ge=ye.match(I);return ge?ge[0]:""}var ne={__proto__:null,normalizePackageName:W,getShorthandName:ue,getNamespaceFromTerm:oe};const he={environments:O,ConfigOps:S,ConfigValidator:Y,naming:ne};return dn.Legacy=he,dn}var Qs={exports:{}},In={exports:{}},Zs,xh;function C1(){if(xh)return Zs;xh=1;var a=1e3,e=a*60,n=e*60,o=n*24,t=o*7,u=o*365.25;Zs=function(i,f){f=f||{};var h=typeof i;if(h==="string"&&i.length>0)return p(i);if(h==="number"&&isFinite(i))return f.long?r(i):c(i);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))};function p(i){if(i=String(i),!(i.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(f){var h=parseFloat(f[1]),s=(f[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return h*u;case"weeks":case"week":case"w":return h*t;case"days":case"day":case"d":return h*o;case"hours":case"hour":case"hrs":case"hr":case"h":return h*n;case"minutes":case"minute":case"mins":case"min":case"m":return h*e;case"seconds":case"second":case"secs":case"sec":case"s":return h*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function c(i){var f=Math.abs(i);return f>=o?Math.round(i/o)+"d":f>=n?Math.round(i/n)+"h":f>=e?Math.round(i/e)+"m":f>=a?Math.round(i/a)+"s":i+"ms"}function r(i){var f=Math.abs(i);return f>=o?m(i,f,o,"day"):f>=n?m(i,f,n,"hour"):f>=e?m(i,f,e,"minute"):f>=a?m(i,f,a,"second"):i+" ms"}function m(i,f,h,s){var l=f>=h*1.5;return Math.round(i/h)+" "+s+(l?"s":"")}return Zs}var ea,Ch;function w1(){if(Ch)return ea;Ch=1;function a(e){o.debug=o,o.default=o,o.coerce=m,o.disable=c,o.enable=u,o.enabled=r,o.humanize=C1(),o.destroy=i,Object.keys(e).forEach(f=>{o[f]=e[f]}),o.names=[],o.skips=[],o.formatters={};function n(f){let h=0;for(let s=0;s<f.length;s++)h=(h<<5)-h+f.charCodeAt(s),h|=0;return o.colors[Math.abs(h)%o.colors.length]}o.selectColor=n;function o(f){let h,s=null,l,g;function d(...v){if(!d.enabled)return;const S=d,b=Number(new Date),w=b-(h||b);S.diff=w,S.prev=h,S.curr=b,h=b,v[0]=o.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let C=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(T,x)=>{if(T==="%%")return"%";C++;const A=o.formatters[x];if(typeof A=="function"){const k=v[C];T=A.call(S,k),v.splice(C,1),C--}return T}),o.formatArgs.call(S,v),(S.log||o.log).apply(S,v)}return d.namespace=f,d.useColors=o.useColors(),d.color=o.selectColor(f),d.extend=t,d.destroy=o.destroy,Object.defineProperty(d,"enabled",{enumerable:!0,configurable:!1,get:()=>s!==null?s:(l!==o.namespaces&&(l=o.namespaces,g=o.enabled(f)),g),set:v=>{s=v}}),typeof o.init=="function"&&o.init(d),d}function t(f,h){const s=o(this.namespace+(typeof h>"u"?":":h)+f);return s.log=this.log,s}function u(f){o.save(f),o.namespaces=f,o.names=[],o.skips=[];const h=(typeof f=="string"?f:"").trim().replace(" ",",").split(",").filter(Boolean);for(const s of h)s[0]==="-"?o.skips.push(s.slice(1)):o.names.push(s)}function p(f,h){let s=0,l=0,g=-1,d=0;for(;s<f.length;)if(l<h.length&&(h[l]===f[s]||h[l]==="*"))h[l]==="*"?(g=l,d=s,l++):(s++,l++);else if(g!==-1)l=g+1,d++,s=d;else return!1;for(;l<h.length&&h[l]==="*";)l++;return l===h.length}function c(){const f=[...o.names,...o.skips.map(h=>"-"+h)].join(",");return o.enable(""),f}function r(f){for(const h of o.skips)if(p(f,h))return!1;for(const h of o.names)if(p(f,h))return!0;return!1}function m(f){return f instanceof Error?f.stack||f.message:f}function i(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return o.enable(o.load()),o}return ea=a,ea}var wh;function A1(){return wh||(wh=1,function(a,e){e.formatArgs=o,e.save=t,e.load=u,e.useColors=n,e.storage=p(),e.destroy=(()=>{let r=!1;return()=>{r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let r;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(r=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(r[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(r){if(r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+a.exports.humanize(this.diff),!this.useColors)return;const m="color: "+this.color;r.splice(1,0,m,"color: inherit");let i=0,f=0;r[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(i++,h==="%c"&&(f=i))}),r.splice(f,0,m)}e.log=console.debug||console.log||(()=>{});function t(r){try{r?e.storage.setItem("debug",r):e.storage.removeItem("debug")}catch{}}function u(){let r;try{r=e.storage.getItem("debug")}catch{}return!r&&typeof Bt<"u"&&"env"in Bt&&(r=Bt.env.DEBUG),r}function p(){try{return localStorage}catch{}}a.exports=w1()(e);const{formatters:c}=a.exports;c.j=function(r){try{return JSON.stringify(r)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}}}(In,In.exports)),In.exports}var Ah;function kr(){return Ah||(Ah=1,Qs.exports=A1()),Qs.exports}var ta,Th;function ra(){if(Th)return ta;Th=1;const a=Wr(),e=kr()("eslint:traverser");function n(){}function o(p){return p!==null&&typeof p=="object"&&typeof p.type=="string"}function t(p,c){let r=p[c.type];return r||(r=a.getKeys(c),e('Unknown node type "%s": Estimated visitor keys %j',c.type,r)),r}class u{constructor(){this._current=null,this._parents=[],this._skipped=!1,this._broken=!1,this._visitorKeys=null,this._enter=null,this._leave=null}current(){return this._current}parents(){return this._parents.slice(0)}break(){this._broken=!0}skip(){this._skipped=!0}traverse(c,r){this._current=null,this._parents=[],this._skipped=!1,this._broken=!1,this._visitorKeys=r.visitorKeys||a.KEYS,this._enter=r.enter||n,this._leave=r.leave||n,this._traverse(c,null)}_traverse(c,r){if(o(c)){if(this._current=c,this._skipped=!1,this._enter(c,r),!this._skipped&&!this._broken){const m=t(this._visitorKeys,c);if(m.length>=1){this._parents.push(c);for(let i=0;i<m.length&&!this._broken;++i){const f=c[m[i]];if(Array.isArray(f))for(let h=0;h<f.length&&!this._broken;++h)this._traverse(f[h],c);else this._traverse(f,c)}this._parents.pop()}}this._broken||this._leave(c,r),this._current=r}}static getKeys(c){return a.getKeys(c)}static traverse(c,r){new u().traverse(c,r)}static get DEFAULT_VISITOR_KEYS(){return a.KEYS}}return ta=u,ta}var na={},Or={},kh;function T1(){if(kh)return Or;kh=1,Object.defineProperty(Or,"__esModule",{value:!0});const a={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},e=Object.keys(a);for(const p of e)Object.freeze(a[p]);Object.freeze(a);const n=new Set(["parent","leadingComments","trailingComments"]);function o(p){return!n.has(p)&&p[0]!=="_"}function t(p){return Object.keys(p).filter(o)}function u(p){const c=Object.assign({},a);for(const r of Object.keys(p))if(Object.prototype.hasOwnProperty.call(c,r)){const m=new Set(p[r]);for(const i of c[r])m.add(i);c[r]=Object.freeze(Array.from(m))}else c[r]=Object.freeze(Array.from(p[r]));return Object.freeze(c)}return Or.KEYS=a,Or.getKeys=t,Or.unionWith=u,Or}var Dh;function qt(){return Dh||(Dh=1,function(a){Object.defineProperty(a,"__esModule",{value:!0});var e=T1();function n(ke,Se){const ve=Se.range[0];let Fe=ke,$e=!1;do{$e=!1;for(const ce of Fe.childScopes){const be=ce.block.range;if(be[0]<=ve&&ve<be[1]){Fe=ce,$e=!0;break}}}while($e);return Fe}function o(ke,Se){let ve="",Fe=ke;for(typeof Se=="string"?ve=Se:(ve=Se.name,Fe=n(Fe,Se));Fe!=null;){const $e=Fe.set.get(ve);if($e!=null)return $e;Fe=Fe.upper}return null}function t(ke){return!this(ke)}function u(ke){return t.bind(ke)}function p(ke,Se){return ke.type==="Punctuator"&&ke.value===Se}function c(ke){return p(ke,"=>")}function r(ke){return p(ke,",")}function m(ke){return p(ke,";")}function i(ke){return p(ke,":")}function f(ke){return p(ke,"(")}function h(ke){return p(ke,")")}function s(ke){return p(ke,"[")}function l(ke){return p(ke,"]")}function g(ke){return p(ke,"{")}function d(ke){return p(ke,"}")}function v(ke){return["Block","Line","Shebang"].includes(ke.type)}const S=u(c),b=u(r),w=u(m),C=u(i),E=u(f),T=u(h),x=u(s),A=u(l),k=u(g),B=u(d),R=u(v);function F(ke,Se){return ke.id?Se.getTokenAfter(ke.id,f):Se.getFirstToken(ke,f)}function P(ke,Se){const ve=ke.parent;let Fe=null,$e=null;if(ke.type==="ArrowFunctionExpression"){const ce=Se.getTokenBefore(ke.body,c);Fe=ce.loc.start,$e=ce.loc.end}else ve.type==="Property"||ve.type==="MethodDefinition"||ve.type==="PropertyDefinition"?(Fe=ve.loc.start,$e=F(ke,Se).loc.start):(Fe=ke.loc.start,$e=F(ke,Se).loc.start);return{start:{...Fe},end:{...$e}}}const N=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof Xt<"u"?Xt:{},j=Object.freeze(new Set(["Array","ArrayBuffer","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","isFinite","isNaN","isPrototypeOf","JSON","Map","Math","NaN","Number","Object","parseFloat","parseInt","Promise","Proxy","Reflect","RegExp","Set","String","Symbol","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","undefined","unescape","WeakMap","WeakSet"])),V=new Set([Array.isArray,typeof BigInt=="function"?BigInt:void 0,Boolean,Date,Date.parse,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,escape,isFinite,isNaN,isPrototypeOf,...Object.getOwnPropertyNames(Math).map(ke=>Math[ke]).filter(ke=>typeof ke=="function"),Number,Number.isFinite,Number.isNaN,Number.parseFloat,Number.parseInt,Object,Object.entries,Object.is,Object.isExtensible,Object.isFrozen,Object.isSealed,Object.keys,Object.values,parseFloat,parseInt,RegExp,String,String.fromCharCode,String.fromCodePoint,String.raw,Symbol.for,Symbol.keyFor,unescape].filter(ke=>typeof ke=="function")),O=new Set([Object.freeze,Object.preventExtensions,Object.seal]);function G(ke,Se){let ve=ke;for(;(typeof ve=="object"||typeof ve=="function")&&ve!==null;){const Fe=Object.getOwnPropertyDescriptor(ve,Se);if(Fe)return Fe;ve=Object.getPrototypeOf(ve)}return null}function L(ke,Se){const ve=G(ke,Se);return ve!=null&&ve.get!=null}function K(ke,Se){const ve=[];for(let Fe=0;Fe<ke.length;++Fe){const $e=ke[Fe];if($e==null)ve.length=Fe+1;else if($e.type==="SpreadElement"){const ce=ae($e.argument,Se);if(ce==null)return null;ve.push(...ce.value)}else{const ce=ae($e,Se);if(ce==null)return null;ve.push(ce.value)}}return ve}const H=Object.freeze({ArrayExpression(ke,Se){const ve=K(ke.elements,Se);return ve!=null?{value:ve}:null},AssignmentExpression(ke,Se){return ke.operator==="="?ae(ke.right,Se):null},BinaryExpression(ke,Se){if(ke.operator==="in"||ke.operator==="instanceof")return null;const ve=ae(ke.left,Se),Fe=ae(ke.right,Se);if(ve!=null&&Fe!=null)switch(ke.operator){case"==":return{value:ve.value==Fe.value};case"!=":return{value:ve.value!=Fe.value};case"===":return{value:ve.value===Fe.value};case"!==":return{value:ve.value!==Fe.value};case"<":return{value:ve.value<Fe.value};case"<=":return{value:ve.value<=Fe.value};case">":return{value:ve.value>Fe.value};case">=":return{value:ve.value>=Fe.value};case"<<":return{value:ve.value<<Fe.value};case">>":return{value:ve.value>>Fe.value};case">>>":return{value:ve.value>>>Fe.value};case"+":return{value:ve.value+Fe.value};case"-":return{value:ve.value-Fe.value};case"*":return{value:ve.value*Fe.value};case"/":return{value:ve.value/Fe.value};case"%":return{value:ve.value%Fe.value};case"**":return{value:ve.value**Fe.value};case"|":return{value:ve.value|Fe.value};case"^":return{value:ve.value^Fe.value};case"&":return{value:ve.value&Fe.value}}return null},CallExpression(ke,Se){const ve=ke.callee,Fe=K(ke.arguments,Se);if(Fe!=null)if(ve.type==="MemberExpression"){if(ve.property.type==="PrivateIdentifier")return null;const $e=ae(ve.object,Se);if($e!=null){if($e.value==null&&($e.optional||ke.optional))return{value:void 0,optional:!0};const ce=re(ve,Se);if(ce!=null){const be=$e.value,ee=ce.value;if(V.has(be[ee]))return{value:be[ee](...Fe)};if(O.has(be[ee]))return{value:Fe[0]}}}}else{const $e=ae(ve,Se);if($e!=null){if($e.value==null&&ke.optional)return{value:void 0,optional:!0};const ce=$e.value;if(V.has(ce))return{value:ce(...Fe)};if(O.has(ce))return{value:Fe[0]}}}return null},ConditionalExpression(ke,Se){const ve=ae(ke.test,Se);return ve!=null?ve.value?ae(ke.consequent,Se):ae(ke.alternate,Se):null},ExpressionStatement(ke,Se){return ae(ke.expression,Se)},Identifier(ke,Se){if(Se!=null){const ve=o(Se,ke);if(ve!=null&&ve.defs.length===0&&j.has(ve.name)&&ve.name in N)return{value:N[ve.name]};if(ve!=null&&ve.defs.length===1){const Fe=ve.defs[0];if(Fe.parent&&Fe.parent.kind==="const"&&Fe.node.id.type==="Identifier")return ae(Fe.node.init,Se)}}return null},Literal(ke){return(ke.regex!=null||ke.bigint!=null)&&ke.value==null?null:{value:ke.value}},LogicalExpression(ke,Se){const ve=ae(ke.left,Se);if(ve!=null){if(ke.operator==="||"&&ve.value||ke.operator==="&&"&&!ve.value||ke.operator==="??"&&ve.value!=null)return ve;const Fe=ae(ke.right,Se);if(Fe!=null)return Fe}return null},MemberExpression(ke,Se){if(ke.property.type==="PrivateIdentifier")return null;const ve=ae(ke.object,Se);if(ve!=null){if(ve.value==null&&(ve.optional||ke.optional))return{value:void 0,optional:!0};const Fe=re(ke,Se);if(Fe!=null&&!L(ve.value,Fe.value))return{value:ve.value[Fe.value]}}return null},ChainExpression(ke,Se){const ve=ae(ke.expression,Se);return ve!=null?{value:ve.value}:null},NewExpression(ke,Se){const ve=ae(ke.callee,Se),Fe=K(ke.arguments,Se);if(ve!=null&&Fe!=null){const $e=ve.value;if(V.has($e))return{value:new $e(...Fe)}}return null},ObjectExpression(ke,Se){const ve={};for(const Fe of ke.properties)if(Fe.type==="Property"){if(Fe.kind!=="init")return null;const $e=re(Fe,Se),ce=ae(Fe.value,Se);if($e==null||ce==null)return null;ve[$e.value]=ce.value}else if(Fe.type==="SpreadElement"||Fe.type==="ExperimentalSpreadProperty"){const $e=ae(Fe.argument,Se);if($e==null)return null;Object.assign(ve,$e.value)}else return null;return{value:ve}},SequenceExpression(ke,Se){const ve=ke.expressions[ke.expressions.length-1];return ae(ve,Se)},TaggedTemplateExpression(ke,Se){const ve=ae(ke.tag,Se),Fe=K(ke.quasi.expressions,Se);if(ve!=null&&Fe!=null){const $e=ve.value,ce=ke.quasi.quasis.map(be=>be.value.cooked);if(ce.raw=ke.quasi.quasis.map(be=>be.value.raw),$e===String.raw)return{value:$e(ce,...Fe)}}return null},TemplateLiteral(ke,Se){const ve=K(ke.expressions,Se);if(ve!=null){let Fe=ke.quasis[0].value.cooked;for(let $e=0;$e<ve.length;++$e)Fe+=ve[$e],Fe+=ke.quasis[$e+1].value.cooked;return{value:Fe}}return null},UnaryExpression(ke,Se){if(ke.operator==="delete")return null;if(ke.operator==="void")return{value:void 0};const ve=ae(ke.argument,Se);if(ve!=null)switch(ke.operator){case"-":return{value:-ve.value};case"+":return{value:+ve.value};case"!":return{value:!ve.value};case"~":return{value:~ve.value};case"typeof":return{value:typeof ve.value}}return null}});function ae(ke,Se){return ke!=null&&Object.hasOwnProperty.call(H,ke.type)?H[ke.type](ke,Se):null}function re(ke,Se){const ve=ke.type==="Property"?ke.key:ke.property;return ke.computed?ae(ve,Se):ve.type==="Identifier"?{value:ve.name}:ve.type==="Literal"?ve.bigint?{value:ve.bigint}:{value:String(ve.value)}:null}function De(ke,Se=null){try{return ae(ke,Se)}catch{return null}}function Y(ke,Se=null){if(ke&&ke.type==="Literal"&&ke.value===null){if(ke.regex)return`/${ke.regex.pattern}/${ke.regex.flags}`;if(ke.bigint)return ke.bigint}const ve=De(ke,Se);return ve&&String(ve.value)}function I(ke,Se){switch(ke.type){case"MemberExpression":return ke.computed?Y(ke.property,Se):ke.property.type==="PrivateIdentifier"?null:ke.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":return ke.computed?Y(ke.key,Se):ke.key.type==="Literal"?String(ke.key.value):ke.key.type==="PrivateIdentifier"?null:ke.key.name}return null}function W(ke,Se){const ve=ke.parent,Fe=[],$e=ve.type==="Property"&&ve.value===ke,ce=ve.type==="MethodDefinition"&&ve.value===ke,be=ve.type==="PropertyDefinition"&&ve.value===ke;if((ce||be)&&(ve.static&&Fe.push("static"),ve.key.type==="PrivateIdentifier"&&Fe.push("private")),ke.async&&Fe.push("async"),ke.generator&&Fe.push("generator"),$e||ce){if(ve.kind==="constructor")return"constructor";ve.kind==="get"?Fe.push("getter"):ve.kind==="set"?Fe.push("setter"):Fe.push("method")}else be?Fe.push("method"):(ke.type==="ArrowFunctionExpression"&&Fe.push("arrow"),Fe.push("function"));if($e||ce||be)if(ve.key.type==="PrivateIdentifier")Fe.push(`#${ve.key.name}`);else{const ee=I(ve);if(ee)Fe.push(`'${ee}'`);else if(Se){const le=Se.getText(ve.key);le.includes(`
|
|
36
|
+
`)||Fe.push(`[${le}]`)}}else ke.id?Fe.push(`'${ke.id.name}'`):ve.type==="VariableDeclarator"&&ve.id&&ve.id.type==="Identifier"?Fe.push(`'${ve.id.name}'`):(ve.type==="AssignmentExpression"||ve.type==="AssignmentPattern")&&ve.left&&ve.left.type==="Identifier"?Fe.push(`'${ve.left.name}'`):ve.type==="ExportDefaultDeclaration"&&ve.declaration===ke&&Fe.push("'default'");return Fe.join(" ")}const ue=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),oe=Object.freeze(new Set(["-","+","!","~"]));function ne(ke){return ke!==null&&typeof ke=="object"&&typeof ke.type=="string"}const he=Object.freeze(Object.assign(Object.create(null),{$visit(ke,Se,ve){const{type:Fe}=ke;return typeof this[Fe]=="function"?this[Fe](ke,Se,ve):this.$visitChildren(ke,Se,ve)},$visitChildren(ke,Se,ve){const{type:Fe}=ke;for(const $e of ve[Fe]||e.getKeys(ke)){const ce=ke[$e];if(Array.isArray(ce)){for(const be of ce)if(ne(be)&&this.$visit(be,Se,ve))return!0}else if(ne(ce)&&this.$visit(ce,Se,ve))return!0}return!1},ArrowFunctionExpression(){return!1},AssignmentExpression(){return!0},AwaitExpression(){return!0},BinaryExpression(ke,Se,ve){return Se.considerImplicitTypeConversion&&ue.has(ke.operator)&&(ke.left.type!=="Literal"||ke.right.type!=="Literal")?!0:this.$visitChildren(ke,Se,ve)},CallExpression(){return!0},FunctionExpression(){return!1},ImportExpression(){return!0},MemberExpression(ke,Se,ve){return Se.considerGetters||Se.considerImplicitTypeConversion&&ke.computed&&ke.property.type!=="Literal"?!0:this.$visitChildren(ke,Se,ve)},MethodDefinition(ke,Se,ve){return Se.considerImplicitTypeConversion&&ke.computed&&ke.key.type!=="Literal"?!0:this.$visitChildren(ke,Se,ve)},NewExpression(){return!0},Property(ke,Se,ve){return Se.considerImplicitTypeConversion&&ke.computed&&ke.key.type!=="Literal"?!0:this.$visitChildren(ke,Se,ve)},PropertyDefinition(ke,Se,ve){return Se.considerImplicitTypeConversion&&ke.computed&&ke.key.type!=="Literal"?!0:this.$visitChildren(ke,Se,ve)},UnaryExpression(ke,Se,ve){return ke.operator==="delete"||Se.considerImplicitTypeConversion&&oe.has(ke.operator)&&ke.argument.type!=="Literal"?!0:this.$visitChildren(ke,Se,ve)},UpdateExpression(){return!0},YieldExpression(){return!0}}));function ye(ke,Se,{considerGetters:ve=!1,considerImplicitTypeConversion:Fe=!1}={}){return he.$visit(ke,{considerGetters:ve,considerImplicitTypeConversion:Fe},Se.visitorKeys||e.KEYS)}function ge(ke,Se){const ve=ke.parent;switch(ve.type){case"CallExpression":case"NewExpression":return ve.arguments.length===1&&ve.arguments[0]===ke?Se.getTokenAfter(ve.callee,f):null;case"DoWhileStatement":return ve.test===ke?Se.getTokenAfter(ve.body,f):null;case"IfStatement":case"WhileStatement":return ve.test===ke?Se.getFirstToken(ve,1):null;case"ImportExpression":return ve.source===ke?Se.getFirstToken(ve,1):null;case"SwitchStatement":return ve.discriminant===ke?Se.getFirstToken(ve,1):null;case"WithStatement":return ve.object===ke?Se.getFirstToken(ve,1):null;default:return null}}function Ce(ke,Se,ve){let Fe,$e,ce,be,ee;if(typeof ke=="number"){if(Fe=ke|0,$e=Se,ce=ve,!(Fe>=1))throw new TypeError("'times' should be a positive integer.")}else Fe=1,$e=ke,ce=Se;if($e==null||$e.parent==null||$e.parent.type==="CatchClause"&&$e.parent.param===$e)return!1;be=ee=$e;do be=ce.getTokenBefore(be),ee=ce.getTokenAfter(ee);while(be!=null&&ee!=null&&f(be)&&h(ee)&&be!==ge($e,ce)&&--Fe>0);return Fe===0}const z=/\$(?:[$&`']|[1-9][0-9]?)/gu,Q=new WeakMap;function Re(ke,Se){let ve=!1;for(let Fe=Se-1;Fe>=0&&ke.charCodeAt(Fe)===92;--Fe)ve=!ve;return ve}function $(ke,Se,ve){const Fe=[];let $e=0,ce=null;function be(ee){switch(ee){case"$$":return"$";case"$&":return ce[0];case"$`":return Se.slice(0,ce.index);case"$'":return Se.slice(ce.index+ce[0].length);default:{const le=ee.slice(1);return le in ce?ce[le]:ee}}}for(ce of ke.execAll(Se))Fe.push(Se.slice($e,ce.index)),Fe.push(ve.replace(z,be)),$e=ce.index+ce[0].length;return Fe.push(Se.slice($e)),Fe.join("")}function ie(ke,Se,ve){const Fe=[];let $e=0;for(const ce of ke.execAll(Se))Fe.push(Se.slice($e,ce.index)),Fe.push(String(ve(...ce,ce.index,ce.input))),$e=ce.index+ce[0].length;return Fe.push(Se.slice($e)),Fe.join("")}class Te{constructor(Se,{escaped:ve=!1}={}){if(!(Se instanceof RegExp))throw new TypeError("'pattern' should be a RegExp instance.");if(!Se.flags.includes("g"))throw new Error("'pattern' should contains 'g' flag.");Q.set(this,{pattern:new RegExp(Se.source,Se.flags),escaped:!!ve})}*execAll(Se){const{pattern:ve,escaped:Fe}=Q.get(this);let $e=null,ce=0;for(ve.lastIndex=0;($e=ve.exec(Se))!=null;)(Fe||!Re(Se,$e.index))&&(ce=ve.lastIndex,yield $e,ve.lastIndex=ce)}test(Se){return!this.execAll(Se).next().done}[Symbol.replace](Se,ve){return typeof ve=="function"?ie(this,String(Se),ve):$(this,String(Se),String(ve))}}const Ne=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,Le=Function.call.bind(Object.hasOwnProperty),U=Symbol("read"),Qe=Symbol("call"),ct=Symbol("construct"),st=Symbol("esm"),Ke={require:{[Qe]:!0}};function Je(ke){return ke==null||ke.defs.length!==0||ke.references.some(Se=>Se.isWrite())}function ht(ke){const Se=ke.parent;switch(Se&&Se.type){case"ConditionalExpression":return Se.consequent===ke||Se.alternate===ke;case"LogicalExpression":return!0;case"SequenceExpression":return Se.expressions[Se.expressions.length-1]===ke;case"ChainExpression":return!0;default:return!1}}class dt{constructor(Se,{mode:ve="strict",globalObjectNames:Fe=["global","globalThis","self","window"]}={}){this.variableStack=[],this.globalScope=Se,this.mode=ve,this.globalObjectNames=Fe.slice(0)}*iterateGlobalReferences(Se){for(const ve of Object.keys(Se)){const Fe=Se[ve],$e=[ve],ce=this.globalScope.set.get(ve);Je(ce)||(yield*this._iterateVariableReferences(ce,$e,Fe,!0))}for(const ve of this.globalObjectNames){const Fe=[],$e=this.globalScope.set.get(ve);Je($e)||(yield*this._iterateVariableReferences($e,Fe,Se,!1))}}*iterateCjsReferences(Se){for(const{node:ve}of this.iterateGlobalReferences(Ke)){const Fe=Y(ve.arguments[0]);if(Fe==null||!Le(Se,Fe))continue;const $e=Se[Fe],ce=[Fe];$e[U]&&(yield{node:ve,path:ce,type:U,info:$e[U]}),yield*this._iteratePropertyReferences(ve,ce,$e)}}*iterateEsmReferences(Se){const ve=this.globalScope.block;for(const Fe of ve.body){if(!Ne.test(Fe.type)||Fe.source==null)continue;const $e=Fe.source.value;if(!Le(Se,$e))continue;const ce=Se[$e],be=[$e];if(ce[U]&&(yield{node:Fe,path:be,type:U,info:ce[U]}),Fe.type==="ExportAllDeclaration")for(const ee of Object.keys(ce)){const le=ce[ee];le[U]&&(yield{node:Fe,path:be.concat(ee),type:U,info:le[U]})}else for(const ee of Fe.specifiers){const le=Le(ce,st),Ee=this._iterateImportReferences(ee,be,le?ce:this.mode==="legacy"?{default:ce,...ce}:{default:ce});if(le)yield*Ee;else for(const Ie of Ee)Ie.path=Ie.path.filter(ot),(Ie.path.length>=2||Ie.type!==U)&&(yield Ie)}}}*_iterateVariableReferences(Se,ve,Fe,$e){if(!this.variableStack.includes(Se)){this.variableStack.push(Se);try{for(const ce of Se.references){if(!ce.isRead())continue;const be=ce.identifier;$e&&Fe[U]&&(yield{node:be,path:ve,type:U,info:Fe[U]}),yield*this._iteratePropertyReferences(be,ve,Fe)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(Se,ve,Fe){let $e=Se;for(;ht($e);)$e=$e.parent;const ce=$e.parent;if(ce.type==="MemberExpression"){if(ce.object===$e){const be=I(ce);if(be==null||!Le(Fe,be))return;ve=ve.concat(be);const ee=Fe[be];ee[U]&&(yield{node:ce,path:ve,type:U,info:ee[U]}),yield*this._iteratePropertyReferences(ce,ve,ee)}return}if(ce.type==="CallExpression"){ce.callee===$e&&Fe[Qe]&&(yield{node:ce,path:ve,type:Qe,info:Fe[Qe]});return}if(ce.type==="NewExpression"){ce.callee===$e&&Fe[ct]&&(yield{node:ce,path:ve,type:ct,info:Fe[ct]});return}if(ce.type==="AssignmentExpression"){ce.right===$e&&(yield*this._iterateLhsReferences(ce.left,ve,Fe),yield*this._iteratePropertyReferences(ce,ve,Fe));return}if(ce.type==="AssignmentPattern"){ce.right===$e&&(yield*this._iterateLhsReferences(ce.left,ve,Fe));return}ce.type==="VariableDeclarator"&&ce.init===$e&&(yield*this._iterateLhsReferences(ce.id,ve,Fe))}*_iterateLhsReferences(Se,ve,Fe){if(Se.type==="Identifier"){const $e=o(this.globalScope,Se);$e!=null&&(yield*this._iterateVariableReferences($e,ve,Fe,!1));return}if(Se.type==="ObjectPattern"){for(const $e of Se.properties){const ce=I($e);if(ce==null||!Le(Fe,ce))continue;const be=ve.concat(ce),ee=Fe[ce];ee[U]&&(yield{node:$e,path:be,type:U,info:ee[U]}),yield*this._iterateLhsReferences($e.value,be,ee)}return}Se.type==="AssignmentPattern"&&(yield*this._iterateLhsReferences(Se.left,ve,Fe))}*_iterateImportReferences(Se,ve,Fe){const $e=Se.type;if($e==="ImportSpecifier"||$e==="ImportDefaultSpecifier"){const ce=$e==="ImportDefaultSpecifier"?"default":Se.imported.name;if(!Le(Fe,ce))return;ve=ve.concat(ce);const be=Fe[ce];be[U]&&(yield{node:Se,path:ve,type:U,info:be[U]}),yield*this._iterateVariableReferences(o(this.globalScope,Se.local),ve,be,!1);return}if($e==="ImportNamespaceSpecifier"){yield*this._iterateVariableReferences(o(this.globalScope,Se.local),ve,Fe,!1);return}if($e==="ExportSpecifier"){const ce=Se.local.name;if(!Le(Fe,ce))return;ve=ve.concat(ce);const be=Fe[ce];be[U]&&(yield{node:Se,path:ve,type:U,info:be[U]})}}}dt.READ=U,dt.CALL=Qe,dt.CONSTRUCT=ct,dt.ESM=st;function ot(ke,Se){return!(Se===1&&ke==="default")}var nt={CALL:Qe,CONSTRUCT:ct,ESM:st,findVariable:o,getFunctionHeadLocation:P,getFunctionNameWithKind:W,getInnermostScope:n,getPropertyName:I,getStaticValue:De,getStringIfConstant:Y,hasSideEffect:ye,isArrowToken:c,isClosingBraceToken:d,isClosingBracketToken:l,isClosingParenToken:h,isColonToken:i,isCommaToken:r,isCommentToken:v,isNotArrowToken:S,isNotClosingBraceToken:B,isNotClosingBracketToken:A,isNotClosingParenToken:T,isNotColonToken:C,isNotCommaToken:b,isNotCommentToken:R,isNotOpeningBraceToken:k,isNotOpeningBracketToken:x,isNotOpeningParenToken:E,isNotSemicolonToken:w,isOpeningBraceToken:g,isOpeningBracketToken:s,isOpeningParenToken:f,isParenthesized:Ce,isSemicolonToken:m,PatternMatcher:Te,READ:U,ReferenceTracker:dt};a.CALL=Qe,a.CONSTRUCT=ct,a.ESM=st,a.PatternMatcher=Te,a.READ=U,a.ReferenceTracker=dt,a.default=nt,a.findVariable=o,a.getFunctionHeadLocation=P,a.getFunctionNameWithKind=W,a.getInnermostScope=n,a.getPropertyName=I,a.getStaticValue=De,a.getStringIfConstant=Y,a.hasSideEffect=ye,a.isArrowToken=c,a.isClosingBraceToken=d,a.isClosingBracketToken=l,a.isClosingParenToken=h,a.isColonToken=i,a.isCommaToken=r,a.isCommentToken=v,a.isNotArrowToken=S,a.isNotClosingBraceToken=B,a.isNotClosingBracketToken=A,a.isNotClosingParenToken=T,a.isNotColonToken=C,a.isNotCommaToken=b,a.isNotCommentToken=R,a.isNotOpeningBraceToken=k,a.isNotOpeningBracketToken=x,a.isNotOpeningParenToken=E,a.isNotSemicolonToken=w,a.isOpeningBraceToken=g,a.isOpeningBracketToken=s,a.isOpeningParenToken=f,a.isParenthesized=Ce,a.isSemicolonToken=m}(na)),na}var sa,Ih;function Pn(){if(Ih)return sa;Ih=1;function a(e,n="Assertion failed."){if(!e)throw new Error(n)}return sa=a,sa}var aa,Ph;function Qr(){return Ph||(Ph=1,aa=class{constructor(){this.current=null}getOneToken(){return this.moveNext()?this.current:null}getAllTokens(){const e=[];for(;this.moveNext();)e.push(this.current);return e}moveNext(){throw new Error("Not implemented.")}}),aa}var Zr={},Fh;function en(){return Fh||(Fh=1,Zr.search=function(e,n){for(let o=0,t=e.length-1;o<=t;){const u=(o+t)/2|0,c=e[u].range[0];if(n<=c){if(u===o)return u;t=u}else o=u+1}return e.length},Zr.getFirstIndex=function(e,n,o){if(o in n)return n[o];if(o-1 in n){const t=n[o-1],u=e[t];return u?u.range[0]>=o?t:t+1:e.length}return 0},Zr.getLastIndex=function(e,n,o){if(o in n)return n[o]-1;if(o-1 in n){const t=n[o-1],u=e[t];return u?u.range[1]>o?t-1:t:e.length-1}return e.length-1}),Zr}var ia,Rh;function k1(){if(Rh)return ia;Rh=1;const a=Qr(),e=en();return ia=class extends a{constructor(o,t,u,p,c){super(),this.tokens=o,this.comments=t,this.tokenIndex=e.getLastIndex(o,u,c),this.commentIndex=e.search(t,c)-1,this.border=p}moveNext(){const o=this.tokenIndex>=0?this.tokens[this.tokenIndex]:null,t=this.commentIndex>=0?this.comments[this.commentIndex]:null;return o&&(!t||o.range[1]>t.range[1])?(this.current=o,this.tokenIndex-=1):t?(this.current=t,this.commentIndex-=1):this.current=null,!!this.current&&(this.border===-1||this.current.range[0]>=this.border)}},ia}var oa,_h;function D1(){if(_h)return oa;_h=1;const a=Qr(),{getLastIndex:e,getFirstIndex:n}=en();return oa=class extends a{constructor(t,u,p,c,r){super(),this.tokens=t,this.index=e(t,p,r),this.indexEnd=n(t,p,c)}moveNext(){return this.index>=this.indexEnd?(this.current=this.tokens[this.index],this.index-=1,!0):!1}getOneToken(){return this.index>=this.indexEnd?this.tokens[this.index]:null}},oa}var la,Bh;function ua(){if(Bh)return la;Bh=1;const a=Qr();return la=class extends a{constructor(n){super(),this.cursor=n}moveNext(){const n=this.cursor.moveNext();return this.current=this.cursor.current,n}},la}var ca,Lh;function I1(){if(Lh)return ca;Lh=1;const a=ua();return ca=class extends a{constructor(n,o){super(n),this.predicate=o}moveNext(){const n=this.predicate;for(;super.moveNext();)if(n(this.current))return!0;return!1}},ca}var fa,Oh;function P1(){if(Oh)return fa;Oh=1;const a=Qr(),{getFirstIndex:e,search:n}=en();return fa=class extends a{constructor(t,u,p,c,r){super(),this.tokens=t,this.comments=u,this.tokenIndex=e(t,p,c),this.commentIndex=n(u,c),this.border=r}moveNext(){const t=this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex]:null,u=this.commentIndex<this.comments.length?this.comments[this.commentIndex]:null;return t&&(!u||t.range[0]<u.range[0])?(this.current=t,this.tokenIndex+=1):u?(this.current=u,this.commentIndex+=1):this.current=null,!!this.current&&(this.border===-1||this.current.range[1]<=this.border)}},fa}var pa,Nh;function ma(){if(Nh)return pa;Nh=1;const a=Qr(),{getFirstIndex:e,getLastIndex:n}=en();return pa=class extends a{constructor(t,u,p,c,r){super(),this.tokens=t,this.index=e(t,p,c),this.indexEnd=n(t,p,r)}moveNext(){return this.index<=this.indexEnd?(this.current=this.tokens[this.index],this.index+=1,!0):!1}getOneToken(){return this.index<=this.indexEnd?this.tokens[this.index]:null}getAllTokens(){return this.tokens.slice(this.index,this.indexEnd+1)}},pa}var ha,Mh;function F1(){if(Mh)return ha;Mh=1;const a=ua();return ha=class extends a{constructor(n,o){super(n),this.count=o}moveNext(){return this.count>0?(this.count-=1,super.moveNext()):!1}},ha}var da,jh;function R1(){if(jh)return da;jh=1;const a=ua();return da=class extends a{constructor(n,o){super(n),this.count=o}moveNext(){for(;this.count>0;)if(this.count-=1,!super.moveNext())return!1;return super.moveNext()}},da}var ga,Uh;function _1(){if(Uh)return ga;Uh=1;const a=k1(),e=D1(),n=I1(),o=P1(),t=ma(),u=F1(),p=R1();class c{constructor(m,i){this.TokenCursor=m,this.TokenCommentCursor=i}createBaseCursor(m,i,f,h,s,l){const g=l?this.TokenCommentCursor:this.TokenCursor;return new g(m,i,f,h,s)}createCursor(m,i,f,h,s,l,g,d,v){let S=this.createBaseCursor(m,i,f,h,s,l);return g&&(S=new n(S,g)),d>=1&&(S=new p(S,d)),v>=0&&(S=new u(S,v)),S}}return ga={forward:new c(t,o),backward:new c(e,a)},ga}var ya,qh;function B1(){if(qh)return ya;qh=1;const a=ma();return ya=class extends a{constructor(n,o,t,u,p,c,r){super(n,o,t,u,p),this.index=Math.max(0,this.index-c),this.indexEnd=Math.min(n.length-1,this.indexEnd+r)}},ya}var va,Vh;function L1(){if(Vh)return va;Vh=1;const{isCommentToken:a}=qt(),e=Pn(),n=_1(),o=ma(),t=B1(),u=en(),p=Symbol("tokens"),c=Symbol("comments"),r=Symbol("indexMap");function m(l,g){const d=Object.create(null);let v=0,S=0,b,w;for(;v<l.length||S<g.length;){for(b=S<g.length?g[S].range[0]:Number.MAX_SAFE_INTEGER;v<l.length&&(w=l[v].range)[0]<b;)d[w[0]]=v,d[w[1]-1]=v,v+=1;for(b=v<l.length?l[v].range[0]:Number.MAX_SAFE_INTEGER;S<g.length&&(w=g[S].range)[0]<b;)d[w[0]]=v,d[w[1]-1]=v,S+=1}return d}function i(l,g,d,v,S,b,w){let C=!1,E=0,T=null;return typeof w=="number"?E=w|0:typeof w=="function"?T=w:w&&(C=!!w.includeComments,E=w.skip|0,T=w.filter||null),e(E>=0,"options.skip should be zero or a positive integer."),e(!T||typeof T=="function","options.filter should be a function."),l.createCursor(g,d,v,S,b,C,T,E,-1)}function f(l,g,d,v,S,b,w){let C=!1,E=0,T=!1,x=null;return typeof w=="number"?(E=w|0,T=!0):typeof w=="function"?x=w:w&&(C=!!w.includeComments,E=w.count|0,T=typeof w.count=="number",x=w.filter||null),e(E>=0,"options.count should be zero or a positive integer."),e(!x||typeof x=="function","options.filter should be a function."),l.createCursor(g,d,v,S,b,C,x,0,T?E:-1)}function h(l,g,d,v,S,b,w){return typeof b>"u"&&typeof w>"u"?new o(l,g,d,v,S):typeof b=="number"||typeof b>"u"?new t(l,g,d,v,S,b|0,w|0):f(n.forward,l,g,d,v,S,b)}function s(l){const g=[];let d=l.getOneToken();for(;d&&a(d);)g.push(d),d=l.getOneToken();return g}return va=class{constructor(g,d){this[p]=g,this[c]=d,this[r]=m(g,d)}getTokenByRangeStart(g,d){const v=d&&d.includeComments,S=n.forward.createBaseCursor(this[p],this[c],this[r],g,-1,v).getOneToken();return S&&S.range[0]===g?S:null}getFirstToken(g,d){return i(n.forward,this[p],this[c],this[r],g.range[0],g.range[1],d).getOneToken()}getLastToken(g,d){return i(n.backward,this[p],this[c],this[r],g.range[0],g.range[1],d).getOneToken()}getTokenBefore(g,d){return i(n.backward,this[p],this[c],this[r],-1,g.range[0],d).getOneToken()}getTokenAfter(g,d){return i(n.forward,this[p],this[c],this[r],g.range[1],-1,d).getOneToken()}getFirstTokenBetween(g,d,v){return i(n.forward,this[p],this[c],this[r],g.range[1],d.range[0],v).getOneToken()}getLastTokenBetween(g,d,v){return i(n.backward,this[p],this[c],this[r],g.range[1],d.range[0],v).getOneToken()}getTokenOrCommentBefore(g,d){return this.getTokenBefore(g,{includeComments:!0,skip:d})}getTokenOrCommentAfter(g,d){return this.getTokenAfter(g,{includeComments:!0,skip:d})}getFirstTokens(g,d){return f(n.forward,this[p],this[c],this[r],g.range[0],g.range[1],d).getAllTokens()}getLastTokens(g,d){return f(n.backward,this[p],this[c],this[r],g.range[0],g.range[1],d).getAllTokens().reverse()}getTokensBefore(g,d){return f(n.backward,this[p],this[c],this[r],-1,g.range[0],d).getAllTokens().reverse()}getTokensAfter(g,d){return f(n.forward,this[p],this[c],this[r],g.range[1],-1,d).getAllTokens()}getFirstTokensBetween(g,d,v){return f(n.forward,this[p],this[c],this[r],g.range[1],d.range[0],v).getAllTokens()}getLastTokensBetween(g,d,v){return f(n.backward,this[p],this[c],this[r],g.range[1],d.range[0],v).getAllTokens().reverse()}getTokens(g,d,v){return h(this[p],this[c],this[r],g.range[0],g.range[1],d,v).getAllTokens()}getTokensBetween(g,d,v){return h(this[p],this[c],this[r],g.range[1],d.range[0],v,v).getAllTokens()}commentsExistBetween(g,d){const v=u.search(this[c],g.range[1]);return v<this[c].length&&this[c][v].range[1]<=d.range[0]}getCommentsBefore(g){const d=f(n.backward,this[p],this[c],this[r],-1,g.range[0],{includeComments:!0});return s(d).reverse()}getCommentsAfter(g){const d=f(n.forward,this[p],this[c],this[r],g.range[1],-1,{includeComments:!0});return s(d)}getCommentsInside(g){return this.getTokens(g,{includeComments:!0,filter:a})}},va}var Ea,$h;function Fn(){if($h)return Ea;$h=1;const a=/^(?:(?:Do)?While|For(?:In|Of)?|Switch)Statement$/u,e=/\r\n|[\r\n\u2028\u2029]/u,n=/^#!([^\r\n]+)/u;function o(){return new RegExp(e.source,"gu")}return Ea={breakableTypePattern:a,lineBreakPattern:e,createGlobalLinebreakMatcher:o,shebangPattern:n},Ea}var Sa,Wh;function Gh(){if(Wh)return Sa;Wh=1;const a={exports:!0,global:!1,module:!1,require:!1},e={Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},n={...e,JSON:!1},o={...n,ArrayBuffer:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,Map:!1,Promise:!1,Proxy:!1,Reflect:!1,Set:!1,Symbol:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,WeakMap:!1,WeakSet:!1},t={...o},u={...t,Atomics:!1,SharedArrayBuffer:!1},p={...u},c={...p},r={...c,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1},m={...r,AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1},i={...m},f={...i},h={...f},s={...h,Float16Array:!1,Iterator:!1},l={...s,AsyncDisposableStack:!1,DisposableStack:!1,SuppressedError:!1};return Sa={commonjs:a,es3:e,es5:n,es2015:o,es2016:t,es2017:u,es2018:p,es2019:c,es2020:r,es2021:m,es2022:i,es2023:f,es2024:h,es2025:s,es2026:l},Sa}var ba,zh;function Hh(){return zh||(zh=1,ba={directivesPattern:/^(eslint(?:-env|-enable|-disable(?:(?:-next)?-line)?)?|exported|globals?)(?:\s|$)/u}),ba}var xa,Kh;function Xh(){if(Kh)return xa;Kh=1;const a=kr()("eslint:code-path");function e(o){return o.id+(o.reachable?"":"!")}function n(o,t){const u=t?`:${t}`:"";switch(o.type){case"Identifier":return`${o.type}${u} (${o.name})`;case"Literal":return`${o.type}${u} (${o.value})`;default:return`${o.type}${u}`}}return xa={enabled:a.enabled,dump:a,dumpState:a.enabled?function(o,t,u){for(let p=0;p<t.currentSegments.length;++p){const c=t.currentSegments[p].internal;if(u){const r=c.nodes.length-1;r>=0&&c.nodes[r]===n(o,"enter")?c.nodes[r]=n(o,void 0):c.nodes.push(n(o,"exit"))}else c.nodes.push(n(o,"enter"))}a([`${t.currentSegments.map(e).join(",")})`,`${o.type}${u?":exit":""}`].join(" "))}:a,dumpDot:a.enabled?function(o){let t=`
|
|
37
|
+
digraph {
|
|
38
|
+
node[shape=box,style="rounded,filled",fillcolor=white];
|
|
39
|
+
initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];
|
|
40
|
+
`;o.returnedSegments.length>0&&(t+=`final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25];
|
|
41
|
+
`),o.thrownSegments.length>0&&(t+=`thrown[label="✘",shape=circle,width=0.3,height=0.3,fixedsize=true];
|
|
42
|
+
`);const u=Object.create(null),p=this.makeDotArrows(o,u);for(const c in u){const r=u[c];t+=`${c}[`,r.reachable?t+='label="':t+='style="rounded,dashed,filled",fillcolor="#FF9800",label="<<unreachable>>\\n',r.internal.nodes.length>0?t+=r.internal.nodes.join("\\n"):t+="????",t+=`"];
|
|
43
|
+
`}t+=`${p}
|
|
44
|
+
`,t+="}",a("DOT",t)}:a,makeDotArrows(o,t){const u=[[o.initialSegment,0]],p=t||Object.create(null);let c=o.initialSegment.id,r=`initial->${o.initialSegment.id}`;for(;u.length>0;){const m=u.pop(),i=m[0],f=m[1];if(p[i.id]&&f===0)continue;p[i.id]=i;const h=i.allNextSegments[f];h&&(c===i.id?r+=`->${h.id}`:r+=`;
|
|
45
|
+
${i.id}->${h.id}`,c=h.id,u.unshift([i,1+f]),u.push([h,0]))}return o.returnedSegments.forEach(m=>{c===m.id?r+="->final":r+=`;
|
|
46
|
+
${m.id}->final`,c=null}),o.thrownSegments.forEach(m=>{c===m.id?r+="->thrown":r+=`;
|
|
47
|
+
${m.id}->thrown`,c=null}),`${r};`}},xa}var Ca,Jh;function wa(){if(Jh)return Ca;Jh=1;const a=Xh();function e(o){return o.reachable}class n{constructor(t,u,p){this.id=t,this.nextSegments=[],this.prevSegments=u.filter(e),this.allNextSegments=[],this.allPrevSegments=u,this.reachable=p,Object.defineProperty(this,"internal",{value:{used:!1,loopedPrevSegments:[]}}),a.enabled&&(this.internal.nodes=[])}isLoopedPrevSegment(t){return this.internal.loopedPrevSegments.includes(t)}static newRoot(t){return new n(t,[],!0)}static newNext(t,u){return new n(t,n.flattenUnusedSegments(u),u.some(e))}static newUnreachable(t,u){const p=new n(t,n.flattenUnusedSegments(u),!1);return n.markUsed(p),p}static newDisconnected(t,u){return new n(t,[],u.some(e))}static markUsed(t){if(t.internal.used)return;t.internal.used=!0;let u;if(t.reachable)for(u=0;u<t.allPrevSegments.length;++u){const p=t.allPrevSegments[u];p.allNextSegments.push(t),p.nextSegments.push(t)}else for(u=0;u<t.allPrevSegments.length;++u)t.allPrevSegments[u].allNextSegments.push(t)}static markPrevSegmentAsLooped(t,u){t.internal.loopedPrevSegments.push(u)}static flattenUnusedSegments(t){const u=new Set;for(let p=0;p<t.length;++p){const c=t[p];if(!u.has(c))if(c.internal.used)u.add(c);else for(let r=0;r<c.allPrevSegments.length;++r){const m=c.allPrevSegments[r];u.has(m)||u.add(m)}}return[...u]}}return Ca=n,Ca}var Aa,Yh;function O1(){if(Yh)return Aa;Yh=1;const a=Pn(),e=wa();function n(p){return p.reachable}function o(p,c,r,m){const i=p.segmentsList,f=c>=0?c:i.length+c,h=r>=0?r:i.length+r,s=[];for(let l=0;l<p.count;++l){const g=[];for(let d=f;d<=h;++d)g.push(i[d][l]);s.push(m(p.idGenerator.next(),g))}return s}function t(p,c){let r=c;for(;r.length>p.count;){const m=[];for(let i=0,f=Math.floor(r.length/2);i<f;++i)m.push(e.newNext(p.idGenerator.next(),[r[i],r[i+f]]));r=m}return r}class u{constructor(c,r,m){this.idGenerator=c,this.upper=r,this.count=m,this.segmentsList=[]}get head(){const c=this.segmentsList;return c.length===0?[]:c.at(-1)}get empty(){return this.segmentsList.length===0}get reachable(){const c=this.head;return c.length>0&&c.some(n)}makeNext(c,r){return o(this,c,r,e.newNext)}makeUnreachable(c,r){return o(this,c,r,e.newUnreachable)}makeDisconnected(c,r){return o(this,c,r,e.newDisconnected)}add(c){a(c.length>=this.count,`${c.length} >= ${this.count}`),this.segmentsList.push(t(this,c))}replaceHead(c){a(c.length>=this.count,`${c.length} >= ${this.count}`),this.segmentsList.splice(-1,1,t(this,c))}addAll(c){a(c.count===this.count),this.segmentsList.push(...c.segmentsList)}clear(){this.segmentsList=[]}static newRoot(c){const r=new u(c,null,1);return r.add([e.newRoot(c.next())]),r}static newEmpty(c,r){return new u(c.idGenerator,c,(r?2:1)*c.count)}}return Aa=u,Aa}var Ta,Qh;function N1(){if(Qh)return Ta;Qh=1;const a=wa(),e=O1();class n{constructor(x,A,k,B){this.upper=x,this.breakable=A,this.label=k,this.brokenForkContext=e.newEmpty(B)}}class o{constructor(x){this.upper=x,this.choiceContextCount=0}}class t{constructor(x,A,k,B){this.upper=x,this.kind=A,this.isForkingAsResult=k,this.trueForkContext=e.newEmpty(B),this.falseForkContext=e.newEmpty(B),this.nullishForkContext=e.newEmpty(B),this.processed=!1}}class u{constructor(x,A,k,B){this.upper=x,this.type=A,this.label=k,this.brokenForkContext=B.brokenForkContext}}class p extends u{constructor(x,A,k){super(x,"WhileStatement",A,k),this.test=void 0,this.continueDestSegments=null}}class c extends u{constructor(x,A,k,B){super(x,"DoWhileStatement",A,k),this.test=void 0,this.entrySegments=null,this.continueForkContext=e.newEmpty(B)}}class r extends u{constructor(x,A,k){super(x,"ForStatement",A,k),this.test=void 0,this.endOfInitSegments=null,this.testSegments=null,this.endOfTestSegments=null,this.updateSegments=null,this.endOfUpdateSegments=null,this.continueDestSegments=null}}class m extends u{constructor(x,A,k){super(x,"ForInStatement",A,k),this.prevSegments=null,this.leftSegments=null,this.endOfLeftSegments=null,this.continueDestSegments=null}}class i extends u{constructor(x,A,k){super(x,"ForOfStatement",A,k),this.prevSegments=null,this.leftSegments=null,this.endOfLeftSegments=null,this.continueDestSegments=null}}class f{constructor(x,A){this.upper=x,this.hasCase=A,this.defaultSegments=null,this.defaultBodySegments=null,this.foundEmptyDefault=!1,this.lastIsDefault=!1,this.forkCount=0}}class h{constructor(x,A,k){this.upper=x,this.hasFinalizer=A,this.position="try",this.returnedForkContext=A?e.newEmpty(k):null,this.thrownForkContext=e.newEmpty(k),this.lastOfTryIsReachable=!1,this.lastOfCatchIsReachable=!1}}function s(T,x,A,k){for(let B=0;B<k.length;++B){const R=k[B];T.push(R),x.includes(R)||A.push(R)}}function l(T,x){if(!x)return T.loopContext;let A=T.loopContext;for(;A;){if(A.label===x)return A;A=A.upper}return null}function g(T,x){let A=T.breakContext;for(;A;){if(x?A.label===x:A.breakable)return A;A=A.upper}return null}function d(T){let x=T.tryContext;for(;x;){if(x.hasFinalizer&&x.position!=="finally")return x;x=x.upper}return T}function v(T){let x=T.tryContext;for(;x;){if(x.position==="try"||x.hasFinalizer&&x.position==="catch")return x;x=x.upper}return T}function S(T,x){T.splice(T.indexOf(x),1)}function b(T,x){for(let A=0;A<T.length;++A){const k=T[A],B=x[A];S(k.nextSegments,B),S(k.allNextSegments,B),S(B.prevSegments,k),S(B.allPrevSegments,k)}}function w(T,x,A){const k=a.flattenUnusedSegments(x),B=a.flattenUnusedSegments(A),R=Math.min(k.length,B.length);for(let F=0;F<R;++F){const P=k[F],N=B[F];N.reachable&&P.nextSegments.push(N),P.reachable&&N.prevSegments.push(P),P.allNextSegments.push(N),N.allPrevSegments.push(P),N.allPrevSegments.length>=2&&a.markPrevSegmentAsLooped(N,P),T.notifyLooped(P,N)}}function C(T,x,A){x.processed||(x.trueForkContext.add(A),x.falseForkContext.add(A),x.nullishForkContext.add(A)),T.test!==!0&&T.brokenForkContext.addAll(x.falseForkContext),T.endOfTestSegments=x.trueForkContext.makeNext(0,-1)}class E{constructor(x,A){this.idGenerator=x,this.notifyLooped=A,this.forkContext=e.newRoot(x),this.choiceContext=null,this.switchContext=null,this.tryContext=null,this.loopContext=null,this.breakContext=null,this.chainContext=null,this.currentSegments=[],this.initialSegment=this.forkContext.head[0],this.finalSegments=[],this.returnedForkContext=[],this.thrownForkContext=[];const k=this.finalSegments,B=this.returnedForkContext,R=this.thrownForkContext;B.add=s.bind(null,B,R,k),R.add=s.bind(null,R,B,k)}get headSegments(){return this.forkContext.head}get parentForkContext(){const x=this.forkContext;return x&&x.upper}pushForkContext(x){return this.forkContext=e.newEmpty(this.forkContext,x),this.forkContext}popForkContext(){const x=this.forkContext;return this.forkContext=x.upper,this.forkContext.replaceHead(x.makeNext(0,-1)),x}forkPath(){this.forkContext.add(this.parentForkContext.makeNext(-1,-1))}forkBypassPath(){this.forkContext.add(this.parentForkContext.head)}pushChoiceContext(x,A){this.choiceContext=new t(this.choiceContext,x,A,this.forkContext)}popChoiceContext(){const x=this.choiceContext,A=this.forkContext,k=A.head;switch(this.choiceContext=x.upper,x.kind){case"&&":case"||":case"??":if(x.processed||(x.trueForkContext.add(k),x.falseForkContext.add(k),x.nullishForkContext.add(k)),x.isForkingAsResult){const R=this.choiceContext;return R.trueForkContext.addAll(x.trueForkContext),R.falseForkContext.addAll(x.falseForkContext),R.nullishForkContext.addAll(x.nullishForkContext),R.processed=!0,x}break;case"test":x.processed?(x.falseForkContext.clear(),x.falseForkContext.add(k)):(x.trueForkContext.clear(),x.trueForkContext.add(k));break;case"loop":return x;default:throw new Error("unreachable")}const B=x.trueForkContext;return B.addAll(x.falseForkContext),A.replaceHead(B.makeNext(0,-1)),x}makeLogicalRight(){const x=this.choiceContext,A=this.forkContext;if(x.processed){let k;switch(x.kind){case"&&":k=x.trueForkContext;break;case"||":k=x.falseForkContext;break;case"??":k=x.nullishForkContext;break;default:throw new Error("unreachable")}A.replaceHead(k.makeNext(0,-1)),k.clear(),x.processed=!1}else{switch(x.kind){case"&&":x.falseForkContext.add(A.head),x.nullishForkContext.add(A.head);break;case"||":x.trueForkContext.add(A.head);break;case"??":x.trueForkContext.add(A.head),x.falseForkContext.add(A.head);break;default:throw new Error("unreachable")}A.replaceHead(A.makeNext(-1,-1))}}makeIfConsequent(){const x=this.choiceContext,A=this.forkContext;x.processed||(x.trueForkContext.add(A.head),x.falseForkContext.add(A.head),x.nullishForkContext.add(A.head)),x.processed=!1,A.replaceHead(x.trueForkContext.makeNext(0,-1))}makeIfAlternate(){const x=this.choiceContext,A=this.forkContext;x.trueForkContext.clear(),x.trueForkContext.add(A.head),x.processed=!0,A.replaceHead(x.falseForkContext.makeNext(0,-1))}pushChainContext(){this.chainContext=new o(this.chainContext)}popChainContext(){const x=this.chainContext;this.chainContext=x.upper;for(let A=x.choiceContextCount;A>0;--A)this.popChoiceContext()}makeOptionalNode(){this.chainContext&&(this.chainContext.choiceContextCount+=1,this.pushChoiceContext("??",!1))}makeOptionalRight(){this.chainContext&&this.makeLogicalRight()}pushSwitchContext(x,A){this.switchContext=new f(this.switchContext,x),this.pushBreakContext(!0,A)}popSwitchContext(){const x=this.switchContext;this.switchContext=x.upper;const A=this.forkContext,k=this.popBreakContext().brokenForkContext;if(x.forkCount===0){k.empty||(k.add(A.makeNext(-1,-1)),A.replaceHead(k.makeNext(0,-1)));return}const B=A.head;this.forkBypassPath();const R=A.head;k.add(B),x.lastIsDefault||(x.defaultBodySegments?(b(x.defaultSegments,x.defaultBodySegments),w(this,R,x.defaultBodySegments)):k.add(R));for(let F=0;F<x.forkCount;++F)this.forkContext=this.forkContext.upper;this.forkContext.replaceHead(k.makeNext(0,-1))}makeSwitchCaseBody(x,A){const k=this.switchContext;if(!k.hasCase)return;const B=this.forkContext,R=this.pushForkContext();R.add(B.makeNext(0,-1)),A?(k.defaultSegments=B.head,x?k.foundEmptyDefault=!0:k.defaultBodySegments=R.head):!x&&k.foundEmptyDefault&&(k.foundEmptyDefault=!1,k.defaultBodySegments=R.head),k.lastIsDefault=A,k.forkCount+=1}pushTryContext(x){this.tryContext=new h(this.tryContext,x,this.forkContext)}popTryContext(){const x=this.tryContext;if(this.tryContext=x.upper,x.position==="catch"){this.popForkContext();return}const A=x.returnedForkContext,k=x.thrownForkContext;if(A.empty&&k.empty)return;const B=this.forkContext.head;this.forkContext=this.forkContext.upper;const R=B.slice(0,B.length/2|0),F=B.slice(B.length/2|0);A.empty||d(this).returnedForkContext.add(F),k.empty||v(this).thrownForkContext.add(F),this.forkContext.replaceHead(R),!x.lastOfTryIsReachable&&!x.lastOfCatchIsReachable&&this.forkContext.makeUnreachable()}makeCatchBlock(){const x=this.tryContext,A=this.forkContext,k=x.thrownForkContext;x.position="catch",x.thrownForkContext=e.newEmpty(A),x.lastOfTryIsReachable=A.reachable,k.add(A.head);const B=k.makeNext(0,-1);this.pushForkContext(),this.forkBypassPath(),this.forkContext.add(B)}makeFinallyBlock(){const x=this.tryContext;let A=this.forkContext;const k=x.returnedForkContext,B=x.thrownForkContext,R=A.head;if(x.position==="catch"?(this.popForkContext(),A=this.forkContext,x.lastOfCatchIsReachable=A.reachable):x.lastOfTryIsReachable=A.reachable,x.position="finally",k.empty&&B.empty)return;const F=A.makeNext(-1,-1);for(let P=0;P<A.count;++P){const N=[R[P]];for(let j=0;j<k.segmentsList.length;++j)N.push(k.segmentsList[j][P]);for(let j=0;j<B.segmentsList.length;++j)N.push(B.segmentsList[j][P]);F.push(a.newNext(this.idGenerator.next(),N))}this.pushForkContext(!0),this.forkContext.add(F)}makeFirstThrowablePathInTryBlock(){const x=this.forkContext;if(!x.reachable)return;const A=v(this);A===this||A.position!=="try"||!A.thrownForkContext.empty||(A.thrownForkContext.add(x.head),x.replaceHead(x.makeNext(-1,-1)))}pushLoopContext(x,A){const k=this.forkContext,B=this.pushBreakContext(!0,A);switch(x){case"WhileStatement":this.pushChoiceContext("loop",!1),this.loopContext=new p(this.loopContext,A,B);break;case"DoWhileStatement":this.pushChoiceContext("loop",!1),this.loopContext=new c(this.loopContext,A,B,k);break;case"ForStatement":this.pushChoiceContext("loop",!1),this.loopContext=new r(this.loopContext,A,B);break;case"ForInStatement":this.loopContext=new m(this.loopContext,A,B);break;case"ForOfStatement":this.loopContext=new i(this.loopContext,A,B);break;default:throw new Error(`unknown type: "${x}"`)}}popLoopContext(){const x=this.loopContext;this.loopContext=x.upper;const A=this.forkContext,k=this.popBreakContext().brokenForkContext;switch(x.type){case"WhileStatement":case"ForStatement":this.popChoiceContext(),w(this,A.head,x.continueDestSegments);break;case"DoWhileStatement":{const B=this.popChoiceContext();B.processed||(B.trueForkContext.add(A.head),B.falseForkContext.add(A.head)),x.test!==!0&&k.addAll(B.falseForkContext);const R=B.trueForkContext.segmentsList;for(let F=0;F<R.length;++F)w(this,R[F],x.entrySegments);break}case"ForInStatement":case"ForOfStatement":k.add(A.head),w(this,A.head,x.leftSegments);break;default:throw new Error("unreachable")}k.empty?A.replaceHead(A.makeUnreachable(-1,-1)):A.replaceHead(k.makeNext(0,-1))}makeWhileTest(x){const A=this.loopContext,k=this.forkContext,B=k.makeNext(0,-1);A.test=x,A.continueDestSegments=B,k.replaceHead(B)}makeWhileBody(){const x=this.loopContext,A=this.choiceContext,k=this.forkContext;A.processed||(A.trueForkContext.add(k.head),A.falseForkContext.add(k.head)),x.test!==!0&&x.brokenForkContext.addAll(A.falseForkContext),k.replaceHead(A.trueForkContext.makeNext(0,-1))}makeDoWhileBody(){const x=this.loopContext,A=this.forkContext,k=A.makeNext(-1,-1);x.entrySegments=k,A.replaceHead(k)}makeDoWhileTest(x){const A=this.loopContext,k=this.forkContext;if(A.test=x,!A.continueForkContext.empty){A.continueForkContext.add(k.head);const B=A.continueForkContext.makeNext(0,-1);k.replaceHead(B)}}makeForTest(x){const A=this.loopContext,k=this.forkContext,B=k.head,R=k.makeNext(-1,-1);A.test=x,A.endOfInitSegments=B,A.continueDestSegments=A.testSegments=R,k.replaceHead(R)}makeForUpdate(){const x=this.loopContext,A=this.choiceContext,k=this.forkContext;x.testSegments?C(x,A,k.head):x.endOfInitSegments=k.head;const B=k.makeDisconnected(-1,-1);x.continueDestSegments=x.updateSegments=B,k.replaceHead(B)}makeForBody(){const x=this.loopContext,A=this.choiceContext,k=this.forkContext;x.updateSegments?(x.endOfUpdateSegments=k.head,x.testSegments&&w(this,x.endOfUpdateSegments,x.testSegments)):x.testSegments?C(x,A,k.head):x.endOfInitSegments=k.head;let B=x.endOfTestSegments;if(!B){const R=e.newEmpty(k);R.add(x.endOfInitSegments),x.endOfUpdateSegments&&R.add(x.endOfUpdateSegments),B=R.makeNext(0,-1)}x.continueDestSegments=x.continueDestSegments||B,k.replaceHead(B)}makeForInOfLeft(){const x=this.loopContext,A=this.forkContext,k=A.makeDisconnected(-1,-1);x.prevSegments=A.head,x.leftSegments=x.continueDestSegments=k,A.replaceHead(k)}makeForInOfRight(){const x=this.loopContext,A=this.forkContext,k=e.newEmpty(A);k.add(x.prevSegments);const B=k.makeNext(-1,-1);x.endOfLeftSegments=A.head,A.replaceHead(B)}makeForInOfBody(){const x=this.loopContext,A=this.forkContext,k=e.newEmpty(A);k.add(x.endOfLeftSegments);const B=k.makeNext(-1,-1);w(this,A.head,x.leftSegments),x.brokenForkContext.add(A.head),A.replaceHead(B)}pushBreakContext(x,A){return this.breakContext=new n(this.breakContext,x,A,this.forkContext),this.breakContext}popBreakContext(){const x=this.breakContext,A=this.forkContext;if(this.breakContext=x.upper,!x.breakable){const k=x.brokenForkContext;k.empty||(k.add(A.head),A.replaceHead(k.makeNext(0,-1)))}return x}makeBreak(x){const A=this.forkContext;if(!A.reachable)return;const k=g(this,x);k&&k.brokenForkContext.add(A.head),A.replaceHead(A.makeUnreachable(-1,-1))}makeContinue(x){const A=this.forkContext;if(!A.reachable)return;const k=l(this,x);k&&(k.continueDestSegments?(w(this,A.head,k.continueDestSegments),(k.type==="ForInStatement"||k.type==="ForOfStatement")&&k.brokenForkContext.add(A.head)):k.continueForkContext.add(A.head)),A.replaceHead(A.makeUnreachable(-1,-1))}makeReturn(){const x=this.forkContext;x.reachable&&(d(this).returnedForkContext.add(x.head),x.replaceHead(x.makeUnreachable(-1,-1)))}makeThrow(){const x=this.forkContext;x.reachable&&(v(this).thrownForkContext.add(x.head),x.replaceHead(x.makeUnreachable(-1,-1)))}makeFinal(){const x=this.currentSegments;x.length>0&&x[0].reachable&&this.returnedForkContext.add(x)}}return Ta=E,Ta}var ka,Zh;function ed(){if(Zh)return ka;Zh=1;class a{constructor(n){this.prefix=String(n),this.n=0}next(){return this.n=1+this.n|0,this.n<0&&(this.n=1),this.prefix+this.n}}return ka=a,ka}var Da,td;function M1(){if(td)return Da;td=1;const a=N1(),e=ed();class n{constructor({id:t,origin:u,upper:p,onLooped:c}){this.id=t,this.origin=u,this.upper=p,this.childCodePaths=[],Object.defineProperty(this,"internal",{value:new a(new e(`${t}_`),c)}),p&&p.childCodePaths.push(this)}static getState(t){return t.internal}get initialSegment(){return this.internal.initialSegment}get finalSegments(){return this.internal.finalSegments}get returnedSegments(){return this.internal.returnedForkContext}get thrownSegments(){return this.internal.thrownForkContext}traverseSegments(t,u){let p,c;typeof t=="function"?(c=t,p={}):(p=t||{},c=u);const r=p.first||this.internal.initialSegment,m=p.last;let i,f,h,s=null;const l=new Set,g=[[r,0]],d=new Set;let v=!1;const S={skip(){d.add(s)},break(){v=!0}};function b(C){return l.has(C)||s.isLoopedPrevSegment(C)}function w(C){return d.has(C)||s.isLoopedPrevSegment(C)}for(;g.length>0;){if(i=g.at(-1),s=i[0],f=i[1],f===0){if(l.has(s)){g.pop();continue}if(s!==r&&s.prevSegments.length>0&&!s.prevSegments.every(b)){g.pop();continue}if(l.add(s),d.size>0&&s.prevSegments.length>0&&s.prevSegments.every(w))d.add(s);else if(c.call(this,s,S),s===m&&S.skip(),v)break}h=s.nextSegments.length-1,f<h?(i[1]+=1,g.push([s.nextSegments[f],0])):f===h?(i[0]=s.nextSegments[f],i[1]=0):g.pop()}}}return Da=n,Da}var Ia,rd;function j1(){if(rd)return Ia;rd=1;const a=Pn(),{breakableTypePattern:e}=Fn(),n=M1(),o=wa(),t=ed(),u=Xh();function p(C){return!!C.test}function c(C){const E=C.parent;return E&&E.type==="PropertyDefinition"&&E.value===C}function r(C){return C==="&&"||C==="||"||C==="??"}function m(C){return C==="&&="||C==="||="||C==="??="}function i(C){return C.parent.type==="LabeledStatement"?C.parent.label.name:null}function f(C){const E=C.parent;switch(E.type){case"ConditionalExpression":case"IfStatement":case"WhileStatement":case"DoWhileStatement":case"ForStatement":return E.test===C;case"LogicalExpression":return r(E.operator);case"AssignmentExpression":return m(E.operator);default:return!1}}function h(C){if(C.type==="Literal")return!!C.value}function s(C){const E=C.parent;switch(E.type){case"LabeledStatement":case"BreakStatement":case"ContinueStatement":case"ArrayPattern":case"RestElement":case"ImportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"CatchClause":return!1;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ClassDeclaration":case"ClassExpression":case"VariableDeclarator":return E.id!==C;case"Property":case"PropertyDefinition":case"MethodDefinition":return E.key!==C||E.computed||E.shorthand;case"AssignmentPattern":return E.key!==C;default:return!0}}function l(C,E){const T=C.codePath,x=n.getState(T),A=x.currentSegments,k=x.headSegments,B=Math.max(A.length,k.length);let R,F,P;for(R=0;R<B;++R)if(F=A[R],P=k[R],F!==P&&F){const N=F.reachable?"onCodePathSegmentEnd":"onUnreachableCodePathSegmentEnd";u.dump(`${N} ${F.id}`),C.emit(N,[F,E])}for(x.currentSegments=k,R=0;R<B;++R)if(F=A[R],P=k[R],F!==P&&P){const N=P.reachable?"onCodePathSegmentStart":"onUnreachableCodePathSegmentStart";u.dump(`${N} ${P.id}`),o.markUsed(P),C.emit(N,[P,E])}}function g(C,E){const T=n.getState(C.codePath),x=T.currentSegments;for(let A=0;A<x.length;++A){const k=x[A],B=k.reachable?"onCodePathSegmentEnd":"onUnreachableCodePathSegmentEnd";u.dump(`${B} ${k.id}`),C.emit(B,[k,E])}T.currentSegments=[]}function d(C,E){const T=C.codePath,x=n.getState(T),A=E.parent;switch(A.type){case"CallExpression":A.optional===!0&&A.arguments.length>=1&&A.arguments[0]===E&&x.makeOptionalRight();break;case"MemberExpression":A.optional===!0&&A.property===E&&x.makeOptionalRight();break;case"LogicalExpression":A.right===E&&r(A.operator)&&x.makeLogicalRight();break;case"AssignmentExpression":A.right===E&&m(A.operator)&&x.makeLogicalRight();break;case"ConditionalExpression":case"IfStatement":A.consequent===E?x.makeIfConsequent():A.alternate===E&&x.makeIfAlternate();break;case"SwitchCase":A.consequent[0]===E&&x.makeSwitchCaseBody(!1,!A.test);break;case"TryStatement":A.handler===E?x.makeCatchBlock():A.finalizer===E&&x.makeFinallyBlock();break;case"WhileStatement":A.test===E?x.makeWhileTest(h(E)):(a(A.body===E),x.makeWhileBody());break;case"DoWhileStatement":A.body===E?x.makeDoWhileBody():(a(A.test===E),x.makeDoWhileTest(h(E)));break;case"ForStatement":A.test===E?x.makeForTest(h(E)):A.update===E?x.makeForUpdate():A.body===E&&x.makeForBody();break;case"ForInStatement":case"ForOfStatement":A.left===E?x.makeForInOfLeft():A.right===E?x.makeForInOfRight():(a(A.body===E),x.makeForInOfBody());break;case"AssignmentPattern":A.right===E&&(x.pushForkContext(),x.forkBypassPath(),x.forkPath());break}}function v(C,E){let T=C.codePath,x=T&&n.getState(T);const A=E.parent;function k(B){T&&(l(C,E),u.dumpState(E,x,!1)),T=C.codePath=new n({id:C.idGenerator.next(),origin:B,upper:T,onLooped:C.onLooped}),x=n.getState(T),u.dump(`onCodePathStart ${T.id}`),C.emit("onCodePathStart",[T,E])}switch(c(E)&&k("class-field-initializer"),E.type){case"Program":k("program");break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":k("function");break;case"StaticBlock":k("class-static-block");break;case"ChainExpression":x.pushChainContext();break;case"CallExpression":E.optional===!0&&x.makeOptionalNode();break;case"MemberExpression":E.optional===!0&&x.makeOptionalNode();break;case"LogicalExpression":r(E.operator)&&x.pushChoiceContext(E.operator,f(E));break;case"AssignmentExpression":m(E.operator)&&x.pushChoiceContext(E.operator.slice(0,-1),f(E));break;case"ConditionalExpression":case"IfStatement":x.pushChoiceContext("test",!1);break;case"SwitchStatement":x.pushSwitchContext(E.cases.some(p),i(E));break;case"TryStatement":x.pushTryContext(!!E.finalizer);break;case"SwitchCase":A.discriminant!==E&&A.cases[0]!==E&&x.forkPath();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":x.pushLoopContext(E.type,i(E));break;case"LabeledStatement":e.test(E.body.type)||x.pushBreakContext(!1,E.label.name);break}l(C,E),u.dumpState(E,x,!1)}function S(C,E){const T=C.codePath,x=n.getState(T);let A=!1;switch(E.type){case"ChainExpression":x.popChainContext();break;case"IfStatement":case"ConditionalExpression":x.popChoiceContext();break;case"LogicalExpression":r(E.operator)&&x.popChoiceContext();break;case"AssignmentExpression":m(E.operator)&&x.popChoiceContext();break;case"SwitchStatement":x.popSwitchContext();break;case"SwitchCase":E.consequent.length===0&&x.makeSwitchCaseBody(!0,!E.test),x.forkContext.reachable&&(A=!0);break;case"TryStatement":x.popTryContext();break;case"BreakStatement":l(C,E),x.makeBreak(E.label&&E.label.name),A=!0;break;case"ContinueStatement":l(C,E),x.makeContinue(E.label&&E.label.name),A=!0;break;case"ReturnStatement":l(C,E),x.makeReturn(),A=!0;break;case"ThrowStatement":l(C,E),x.makeThrow(),A=!0;break;case"Identifier":s(E)&&(x.makeFirstThrowablePathInTryBlock(),A=!0);break;case"CallExpression":case"ImportExpression":case"MemberExpression":case"NewExpression":case"YieldExpression":x.makeFirstThrowablePathInTryBlock();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":x.popLoopContext();break;case"AssignmentPattern":x.popForkContext();break;case"LabeledStatement":e.test(E.body.type)||x.popBreakContext();break}A||l(C,E),u.dumpState(E,x,!0)}function b(C,E){function T(){let x=C.codePath;n.getState(x).makeFinal(),g(C,E),u.dump(`onCodePathEnd ${x.id}`),C.emit("onCodePathEnd",[x,E]),u.dumpDot(x),x=C.codePath=C.codePath.upper,x&&u.dumpState(E,n.getState(x),!0)}switch(E.type){case"Program":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"StaticBlock":{T();break}case"CallExpression":E.optional===!0&&E.arguments.length===0&&n.getState(C.codePath).makeOptionalRight();break}c(E)&&T()}class w{constructor(E){this.original=E,this.emit=E.emit,this.codePath=null,this.idGenerator=new t("s"),this.currentNode=null,this.onLooped=this.onLooped.bind(this)}enterNode(E){this.currentNode=E,E.parent&&d(this,E),v(this,E),this.original.enterNode(E),this.currentNode=null}leaveNode(E){this.currentNode=E,S(this,E),this.original.leaveNode(E),b(this,E),this.currentNode=null}onLooped(E,T){E.reachable&&T.reachable&&(u.dump(`onCodePathSegmentLoop ${E.id} -> ${T.id}`),this.emit("onCodePathSegmentLoop",[E,T,this.currentNode]))}}return Ia=w,Ia}var Dr={},Pa={exports:{}},Fa={exports:{}},Ra,nd;function U1(){if(nd)return Ra;nd=1;var a,e,n,o,t,u,p={}.toString;a=c(function(r,m){return r.apply(null,m)}),e=function(r){return c(r)},n=c(function(r,m,i){return r(i,m)}),o=function(r){return function(m){return function(){return r(m(m)).apply(null,arguments)}}(function(m){return function(){return r(m(m)).apply(null,arguments)}})},t=c(function(r,m,i,f){return r(m(i),m(f))}),u=function(r){var m;return m={},function(){var i,f,h,s,l,g;for(f=[],h=0,s=arguments.length;h<s;++h)f.push(arguments[h]);return i=f,l=function(){var d,v,S,b=[];for(d=0,S=(v=i).length;d<S;++d)g=v[d],b.push(g+p.call(g).slice(8,-1));return b}().join(""),m[l]=l in m?m[l]:r.apply(null,i)}},Ra={curry:e,flip:n,fix:o,apply:a,over:t,memoize:u};function c(r,m){var i,f=function(h){return r.length>1?function(){var s=h?h.concat():[];return i=this,s.push.apply(s,arguments)<r.length&&arguments.length?f.call(i,s):r.apply(i,s)}:r};return f()}return Ra}var _a,sd;function q1(){if(sd)return _a;sd=1;var a,e,n,o,t,u,p,c,r,m,i,f,h,s,l,g,d,v,S,b,w,C,E,T,x,A,k,B,R,F,P,N,j,V,O,G,L,K,H,ae,re,De,Y,I,W,ue,oe,ne,he,ye,ge,Ce,z,Q,Re,$,ie,Te,Ne,Le,U,Qe,ct,st,Ke,Je,ht,dt,ot,nt,ke={}.toString;a=Se(function(ce,be){var ee,le,Ee;for(ee=0,le=be.length;ee<le;++ee)Ee=be[ee],ce(Ee);return be}),e=Se(function(ce,be){var ee,le,Ee,Ie=[];for(ee=0,le=be.length;ee<le;++ee)Ee=be[ee],Ie.push(ce(Ee));return Ie}),n=function(ce){var be,ee,le,Ee=[];for(be=0,ee=ce.length;be<ee;++be)le=ce[be],le&&Ee.push(le);return Ee},o=Se(function(ce,be){var ee,le,Ee,Ie=[];for(ee=0,le=be.length;ee<le;++ee)Ee=be[ee],ce(Ee)&&Ie.push(Ee);return Ie}),t=Se(function(ce,be){var ee,le,Ee,Ie=[];for(ee=0,le=be.length;ee<le;++ee)Ee=be[ee],ce(Ee)||Ie.push(Ee);return Ie}),u=Se(function(ce,be){var ee,le;return ee=ht(ce,be),le=be.slice(),ee!=null&&le.splice(ee,1),le}),p=Se(function(ce,be){var ee,le,Ee,Ie,_;for(ee=[],le=[],Ee=0,Ie=be.length;Ee<Ie;++Ee)_=be[Ee],(ce(_)?ee:le).push(_);return[ee,le]}),c=Se(function(ce,be){var ee,le,Ee;for(ee=0,le=be.length;ee<le;++ee)if(Ee=be[ee],ce(Ee))return Ee}),r=m=function(ce){return ce[0]},i=function(ce){if(ce.length)return ce.slice(1)},f=function(ce){return ce[ce.length-1]},h=function(ce){if(ce.length)return ce.slice(0,-1)},s=function(ce){return!ce.length},l=function(ce){return ce.concat().reverse()},g=function(ce){var be,ee,le,Ee;for(be=[],ee=0,le=ce.length;ee<le;++ee)Ee=ce[ee],ve(Ee,be)||be.push(Ee);return be},d=Se(function(ce,be){var ee,le,Ee,Ie,_,J=[];for(ee=[],le=0,Ee=be.length;le<Ee;++le)Ie=be[le],_=ce(Ie),!ve(_,ee)&&(ee.push(_),J.push(Ie));return J}),v=S=Se(function(ce,be,ee){var le,Ee,Ie;for(le=0,Ee=ee.length;le<Ee;++le)Ie=ee[le],be=ce(be,Ie);return be}),b=w=Se(function(ce,be){return v(ce,be[0],be.slice(1))}),C=Se(function(ce,be,ee){var le,Ee;for(le=ee.length-1;le>=0;--le)Ee=ee[le],be=ce(Ee,be);return be}),E=Se(function(ce,be){return C(ce,be[be.length-1],be.slice(0,-1))}),T=Se(function(ce,be){var ee,le,Ee;for(ee=[],le=be;(Ee=ce(le))!=null;)ee.push(Ee[0]),le=Ee[1];return ee}),x=function(ce){return[].concat.apply([],ce)},A=Se(function(ce,be){var ee;return[].concat.apply([],function(){var le,Ee,Ie,_=[];for(le=0,Ie=(Ee=be).length;le<Ie;++le)ee=Ee[le],_.push(ce(ee));return _}())}),k=function(ce){var be;return[].concat.apply([],function(){var ee,le,Ee,Ie=[];for(ee=0,Ee=(le=ce).length;ee<Ee;++ee)be=le[ee],ke.call(be).slice(8,-1)==="Array"?Ie.push(k(be)):Ie.push(be);return Ie}())},B=function(ce){var be,ee,le,Ee,Ie,_,J,fe,te,we;for(ee=[],le=1,Ee=arguments.length;le<Ee;++le)ee.push(arguments[le]);be=ee,Ie=[];e:for(le=0,_=ce.length;le<_;++le){for(J=ce[le],fe=0,te=be.length;fe<te;++fe)if(we=be[fe],ve(J,we))continue e;Ie.push(J)}return Ie},R=function(ce){var be,ee,le,Ee,Ie,_,J,fe,te,we;for(ee=[],le=1,Ee=arguments.length;le<Ee;++le)ee.push(arguments[le]);be=ee,Ie=[];e:for(le=0,_=ce.length;le<_;++le){for(J=ce[le],fe=0,te=be.length;fe<te;++fe)if(we=be[fe],!ve(J,we))continue e;Ie.push(J)}return Ie},F=function(){var ce,be,ee,le,Ee,Ie,_,J,fe,te;for(be=[],ee=0,le=arguments.length;ee<le;++ee)be.push(arguments[ee]);for(ce=be,Ee=[],ee=0,Ie=ce.length;ee<Ie;++ee)for(_=ce[ee],J=0,fe=_.length;J<fe;++J)te=_[J],ve(te,Ee)||Ee.push(te);return Ee},P=Se(function(ce,be){var ee,le,Ee,Ie,_;for(ee={},le=0,Ee=be.length;le<Ee;++le)Ie=be[le],_=ce(Ie),_ in ee?ee[_]+=1:ee[_]=1;return ee}),N=Se(function(ce,be){var ee,le,Ee,Ie,_;for(ee={},le=0,Ee=be.length;le<Ee;++le)Ie=be[le],_=ce(Ie),_ in ee?ee[_].push(Ie):ee[_]=[Ie];return ee}),j=function(ce){var be,ee,le;for(be=0,ee=ce.length;be<ee;++be)if(le=ce[be],!le)return!1;return!0},V=function(ce){var be,ee,le;for(be=0,ee=ce.length;be<ee;++be)if(le=ce[be],le)return!0;return!1},O=Se(function(ce,be){var ee,le,Ee;for(ee=0,le=be.length;ee<le;++ee)if(Ee=be[ee],ce(Ee))return!0;return!1}),G=Se(function(ce,be){var ee,le,Ee;for(ee=0,le=be.length;ee<le;++ee)if(Ee=be[ee],!ce(Ee))return!1;return!0}),L=function(ce){return ce.concat().sort(function(be,ee){return be>ee?1:be<ee?-1:0})},K=Se(function(ce,be){return be.concat().sort(ce)}),H=Se(function(ce,be){return be.concat().sort(function(ee,le){return ce(ee)>ce(le)?1:ce(ee)<ce(le)?-1:0})}),ae=function(ce){var be,ee,le,Ee;for(be=0,ee=0,le=ce.length;ee<le;++ee)Ee=ce[ee],be+=Ee;return be},re=function(ce){var be,ee,le,Ee;for(be=1,ee=0,le=ce.length;ee<le;++ee)Ee=ce[ee],be*=Ee;return be},De=Y=function(ce){var be,ee,le,Ee;for(be=0,ee=0,le=ce.length;ee<le;++ee)Ee=ce[ee],be+=Ee;return be/ce.length},I=function(ce){var be,ee,le,Ee,Ie;for(be=ce[0],ee=0,Ee=(le=ce.slice(1)).length;ee<Ee;++ee)Ie=le[ee],Ie>be&&(be=Ie);return be},W=function(ce){var be,ee,le,Ee,Ie;for(be=ce[0],ee=0,Ee=(le=ce.slice(1)).length;ee<Ee;++ee)Ie=le[ee],Ie<be&&(be=Ie);return be},ue=Se(function(ce,be){var ee,le,Ee,Ie,_;for(ee=be[0],le=0,Ie=(Ee=be.slice(1)).length;le<Ie;++le)_=Ee[le],ce(_)>ce(ee)&&(ee=_);return ee}),oe=Se(function(ce,be){var ee,le,Ee,Ie,_;for(ee=be[0],le=0,Ie=(Ee=be.slice(1)).length;le<Ie;++le)_=Ee[le],ce(_)<ce(ee)&&(ee=_);return ee}),ne=he=Se(function(ce,be,ee){var le,Ee;return le=be,[be].concat(function(){var Ie,_,J,fe=[];for(Ie=0,J=(_=ee).length;Ie<J;++Ie)Ee=_[Ie],fe.push(le=ce(le,Ee));return fe}())}),ye=ge=Se(function(ce,be){if(be.length)return ne(ce,be[0],be.slice(1))}),Ce=Se(function(ce,be,ee){return ee=ee.concat().reverse(),ne(ce,be,ee).reverse()}),z=Se(function(ce,be){if(be.length)return be=be.concat().reverse(),ne(ce,be[0],be.slice(1)).reverse()}),Q=Se(function(ce,be,ee){return ee.slice(ce,be)}),Re=Se(function(ce,be){return ce<=0?be.slice(0,0):be.slice(0,ce)}),$=Se(function(ce,be){return ce<=0?be:be.slice(ce)}),ie=Se(function(ce,be){return[Re(ce,be),$(ce,be)]}),Te=Se(function(ce,be){var ee,le;if(ee=be.length,!ee)return be;for(le=0;le<ee&&ce(be[le]);)le+=1;return be.slice(0,le)}),Ne=Se(function(ce,be){var ee,le;if(ee=be.length,!ee)return be;for(le=0;le<ee&&ce(be[le]);)le+=1;return be.slice(le)}),Le=Se(function(ce,be){return[Te(ce,be),Ne(ce,be)]}),U=Se(function(ce,be){return Le(Fe(ce,$e),be)}),Qe=Se(function(ce,be){var ee,le,Ee,Ie,_,J;for(ee=[],le=be.length,Ee=0,Ie=ce.length;Ee<Ie&&(_=Ee,J=ce[Ee],_!==le);++Ee)ee.push([J,be[_]]);return ee}),ct=Se(function(ce,be,ee){var le,Ee,Ie,_,J,fe;for(le=[],Ee=ee.length,Ie=0,_=be.length;Ie<_&&(J=Ie,fe=be[Ie],J!==Ee);++Ie)le.push(ce(fe,ee[J]));return le}),st=function(){var ce,be,ee,le,Ee,Ie,_,J,fe,te,we,Pe=[];for(be=[],ee=0,le=arguments.length;ee<le;++ee)be.push(arguments[ee]);for(ce=be,Ee=void 0,ee=0,Ie=ce.length;ee<Ie;++ee)_=ce[ee],Ee<=(J=_.length)||(Ee=J);for(ee=0;ee<Ee;++ee){for(fe=ee,te=[],we=0,Ie=ce.length;we<Ie;++we)_=ce[we],te.push(_[fe]);Pe.push(te)}return Pe},Ke=function(ce){var be,ee,le,Ee,Ie,_,J,fe,te,we=[];for(ee=[],le=1,Ee=arguments.length;le<Ee;++le)ee.push(arguments[le]);for(be=ee,Ie=void 0,le=0,_=be.length;le<_;++le)J=be[le],Ie<=(fe=J.length)||(Ie=fe);for(le=0;le<Ie;++le)te=le,we.push(ce.apply(null,Pe()));return we;function Pe(){var ze,Ye,et,pe=[];for(ze=0,et=(Ye=be).length;ze<et;++ze)J=Ye[ze],pe.push(J[te]);return pe}},Je=Se(function(ce,be){return ce<0?be[be.length+ce]:be[ce]}),ht=Se(function(ce,be){var ee,le,Ee,Ie;for(ee=0,le=be.length;ee<le;++ee)if(Ee=ee,Ie=be[ee],Ie===ce)return Ee}),dt=Se(function(ce,be){var ee,le,Ee,Ie,_=[];for(ee=0,le=be.length;ee<le;++ee)Ee=ee,Ie=be[ee],Ie===ce&&_.push(Ee);return _}),ot=Se(function(ce,be){var ee,le,Ee,Ie;for(ee=0,le=be.length;ee<le;++ee)if(Ee=ee,Ie=be[ee],ce(Ie))return Ee}),nt=Se(function(ce,be){var ee,le,Ee,Ie,_=[];for(ee=0,le=be.length;ee<le;++ee)Ee=ee,Ie=be[ee],ce(Ie)&&_.push(Ee);return _}),_a={each:a,map:e,filter:o,compact:n,reject:t,remove:u,partition:p,find:c,head:r,first:m,tail:i,last:f,initial:h,empty:s,reverse:l,difference:B,intersection:R,union:F,countBy:P,groupBy:N,fold:v,fold1:b,foldl:S,foldl1:w,foldr:C,foldr1:E,unfoldr:T,andList:j,orList:V,any:O,all:G,unique:g,uniqueBy:d,sort:L,sortWith:K,sortBy:H,sum:ae,product:re,mean:De,average:Y,concat:x,concatMap:A,flatten:k,maximum:I,minimum:W,maximumBy:ue,minimumBy:oe,scan:ne,scan1:ye,scanl:he,scanl1:ge,scanr:Ce,scanr1:z,slice:Q,take:Re,drop:$,splitAt:ie,takeWhile:Te,dropWhile:Ne,span:Le,breakList:U,zip:Qe,zipWith:ct,zipAll:st,zipAllWith:Ke,at:Je,elemIndex:ht,elemIndices:dt,findIndex:ot,findIndices:nt};function Se(ce,be){var ee,le=function(Ee){return ce.length>1?function(){var Ie=Ee?Ee.concat():[];return ee=this,Ie.push.apply(Ie,arguments)<ce.length&&arguments.length?le.call(ee,Ie):ce.apply(ee,Ie)}:ce};return le()}function ve(ce,be){for(var ee=-1,le=be.length>>>0;++ee<le;)if(ce===be[ee])return!0;return!1}function Fe(){var ce=arguments;return function(){var be,ee;for(ee=ce[0].apply(this,arguments),be=1;be<ce.length;++be)ee=ce[be](ee);return ee}}function $e(ce){return!ce}return _a}var Ba,ad;function V1(){if(ad)return Ba;ad=1;var a,e,n,o,t,u,p,c,r,m,i,f,h,s;a=function(g){var d,v,S=[];for(d in g)v=g[d],S.push(v);return S},e=function(g){var d,v=[];for(d in g)v.push(d);return v},n=function(g){var d,v,S,b={};for(d=0,v=g.length;d<v;++d)S=g[d],b[S[0]]=S[1];return b},o=function(g){var d,v,S=[];for(d in g)v=g[d],S.push([d,v]);return S},t=l(function(g,d){var v,S,b,w,C={};for(v=0,S=g.length;v<S;++v)b=v,w=g[v],C[w]=d[b];return C}),u=function(g){var d,v,S,b;d=[],v=[];for(S in g)b=g[S],d.push(S),v.push(b);return[d,v]},p=function(g){var d;for(d in g)return!1;return!0},c=l(function(g,d){var v,S;for(v in d)S=d[v],g(S);return d}),r=l(function(g,d){var v,S,b={};for(v in d)S=d[v],b[v]=g(S);return b}),m=function(g){var d,v,S={};for(d in g)v=g[d],v&&(S[d]=v);return S},i=l(function(g,d){var v,S,b={};for(v in d)S=d[v],g(S)&&(b[v]=S);return b}),f=l(function(g,d){var v,S,b={};for(v in d)S=d[v],g(S)||(b[v]=S);return b}),h=l(function(g,d){var v,S,b,w;v={},S={};for(b in d)w=d[b],(g(w)?v:S)[b]=w;return[v,S]}),s=l(function(g,d){var v,S;for(v in d)if(S=d[v],g(S))return S}),Ba={values:a,keys:e,pairsToObj:n,objToPairs:o,listsToObj:t,objToLists:u,empty:p,each:c,map:r,filter:i,compact:m,reject:f,partition:h,find:s};function l(g,d){var v,S=function(b){return g.length>1?function(){var w=b?b.concat():[];return v=this,w.push.apply(w,arguments)<g.length&&arguments.length?S.call(v,w):g.apply(v,w)}:g};return S()}return Ba}var La,id;function $1(){if(id)return La;id=1;var a,e,n,o,t,u,p,c,r,m,i,f,h;a=s(function(l,g){return g.split(l)}),e=s(function(l,g){return g.join(l)}),n=function(l){return l.length?l.split(`
|
|
48
|
+
`):[]},o=function(l){return l.join(`
|
|
49
|
+
`)},t=function(l){return l.length?l.split(/[ ]+/):[]},u=function(l){return l.join(" ")},p=function(l){return l.split("")},c=function(l){return l.join("")},r=function(l){return l.split("").reverse().join("")},m=s(function(l,g){var d,v;for(d="",v=0;v<l;++v)d+=g;return d}),i=function(l){return l.charAt(0).toUpperCase()+l.slice(1)},f=function(l){return l.replace(/[-_]+(.)?/g,function(g,d){return(d??"").toUpperCase()})},h=function(l){return l.replace(/([^-A-Z])([A-Z]+)/g,function(g,d,v){return d+"-"+(v.length>1?v:v.toLowerCase())}).replace(/^([A-Z]+)/,function(g,d){return d.length>1?d+"-":d.toLowerCase()})},La={split:a,join:e,lines:n,unlines:o,words:t,unwords:u,chars:p,unchars:c,reverse:r,repeat:m,capitalize:i,camelize:f,dasherize:h};function s(l,g){var d,v=function(S){return l.length>1?function(){var b=S?S.concat():[];return d=this,b.push.apply(b,arguments)<l.length&&arguments.length?v.call(d,b):l.apply(d,b)}:l};return v()}return La}var Oa,od;function W1(){if(od)return Oa;od=1;var a,e,n,o,t,u,p,c,r,m,i,f,h,s,l,g,d,v,S,b,w,C,E,T,x,A,k,B,R,F,P,N;a=j(function(V,O){return V>O?V:O}),e=j(function(V,O){return V<O?V:O}),n=function(V){return-V},o=Math.abs,t=function(V){return V<0?-1:V>0?1:0},u=j(function(V,O){return~~(V/O)}),p=j(function(V,O){return V%O}),c=j(function(V,O){return Math.floor(V/O)}),r=j(function(V,O){var G;return(V%(G=O)+G)%G}),m=function(V){return 1/V},i=Math.PI,f=i*2,h=Math.exp,s=Math.sqrt,l=Math.log,g=j(function(V,O){return Math.pow(V,O)}),d=Math.sin,v=Math.tan,S=Math.cos,b=Math.asin,w=Math.acos,C=Math.atan,E=j(function(V,O){return Math.atan2(V,O)}),T=function(V){return~~V},x=Math.round,A=Math.ceil,k=Math.floor,B=function(V){return V!==V},R=function(V){return V%2===0},F=function(V){return V%2!==0},P=j(function(V,O){var G;for(V=Math.abs(V),O=Math.abs(O);O!==0;)G=V%O,V=O,O=G;return V}),N=j(function(V,O){return Math.abs(Math.floor(V/P(V,O)*O))}),Oa={max:a,min:e,negate:n,abs:o,signum:t,quot:u,rem:p,div:c,mod:r,recip:m,pi:i,tau:f,exp:h,sqrt:s,ln:l,pow:g,sin:d,tan:v,cos:S,acos:w,asin:b,atan:C,atan2:E,truncate:T,round:x,ceiling:A,floor:k,isItNaN:B,even:R,odd:F,gcd:P,lcm:N};function j(V,O){var G,L=function(K){return V.length>1?function(){var H=K?K.concat():[];return G=this,H.push.apply(H,arguments)<V.length&&arguments.length?L.call(G,H):V.apply(G,H)}:V};return L()}return Oa}var Na,ld;function ud(){if(ld)return Na;ld=1;var a,e,n,o,t,u,p,c,r,m={}.toString;a=U1(),e=q1(),n=V1(),o=$1(),t=W1(),u=function(f){return f},p=i(function(f,h){return m.call(h).slice(8,-1)===f}),c=i(function(f,h){var s,l=[];for(s=0;s<f;++s)l.push(h);return l}),o.empty=e.empty,o.slice=e.slice,o.take=e.take,o.drop=e.drop,o.splitAt=e.splitAt,o.takeWhile=e.takeWhile,o.dropWhile=e.dropWhile,o.span=e.span,o.breakStr=e.breakList,r={Func:a,List:e,Obj:n,Str:o,Num:t,id:u,isType:p,replicate:c},r.each=e.each,r.map=e.map,r.filter=e.filter,r.compact=e.compact,r.reject=e.reject,r.partition=e.partition,r.find=e.find,r.head=e.head,r.first=e.first,r.tail=e.tail,r.last=e.last,r.initial=e.initial,r.empty=e.empty,r.reverse=e.reverse,r.difference=e.difference,r.intersection=e.intersection,r.union=e.union,r.countBy=e.countBy,r.groupBy=e.groupBy,r.fold=e.fold,r.foldl=e.foldl,r.fold1=e.fold1,r.foldl1=e.foldl1,r.foldr=e.foldr,r.foldr1=e.foldr1,r.unfoldr=e.unfoldr,r.andList=e.andList,r.orList=e.orList,r.any=e.any,r.all=e.all,r.unique=e.unique,r.uniqueBy=e.uniqueBy,r.sort=e.sort,r.sortWith=e.sortWith,r.sortBy=e.sortBy,r.sum=e.sum,r.product=e.product,r.mean=e.mean,r.average=e.average,r.concat=e.concat,r.concatMap=e.concatMap,r.flatten=e.flatten,r.maximum=e.maximum,r.minimum=e.minimum,r.maximumBy=e.maximumBy,r.minimumBy=e.minimumBy,r.scan=e.scan,r.scanl=e.scanl,r.scan1=e.scan1,r.scanl1=e.scanl1,r.scanr=e.scanr,r.scanr1=e.scanr1,r.slice=e.slice,r.take=e.take,r.drop=e.drop,r.splitAt=e.splitAt,r.takeWhile=e.takeWhile,r.dropWhile=e.dropWhile,r.span=e.span,r.breakList=e.breakList,r.zip=e.zip,r.zipWith=e.zipWith,r.zipAll=e.zipAll,r.zipAllWith=e.zipAllWith,r.at=e.at,r.elemIndex=e.elemIndex,r.elemIndices=e.elemIndices,r.findIndex=e.findIndex,r.findIndices=e.findIndices,r.apply=a.apply,r.curry=a.curry,r.flip=a.flip,r.fix=a.fix,r.over=a.over,r.split=o.split,r.join=o.join,r.lines=o.lines,r.unlines=o.unlines,r.words=o.words,r.unwords=o.unwords,r.chars=o.chars,r.unchars=o.unchars,r.repeat=o.repeat,r.capitalize=o.capitalize,r.camelize=o.camelize,r.dasherize=o.dasherize,r.values=n.values,r.keys=n.keys,r.pairsToObj=n.pairsToObj,r.objToPairs=n.objToPairs,r.listsToObj=n.listsToObj,r.objToLists=n.objToLists,r.max=t.max,r.min=t.min,r.negate=t.negate,r.abs=t.abs,r.signum=t.signum,r.quot=t.quot,r.rem=t.rem,r.div=t.div,r.mod=t.mod,r.recip=t.recip,r.pi=t.pi,r.tau=t.tau,r.exp=t.exp,r.sqrt=t.sqrt,r.ln=t.ln,r.pow=t.pow,r.sin=t.sin,r.tan=t.tan,r.cos=t.cos,r.acos=t.acos,r.asin=t.asin,r.atan=t.atan,r.atan2=t.atan2,r.truncate=t.truncate,r.round=t.round,r.ceiling=t.ceiling,r.floor=t.floor,r.isItNaN=t.isItNaN,r.even=t.even,r.odd=t.odd,r.gcd=t.gcd,r.lcm=t.lcm,r.VERSION="1.2.1",Na=r;function i(f,h){var s,l=function(g){return f.length>1?function(){var d=g?g.concat():[];return s=this,d.push.apply(d,arguments)<f.length&&arguments.length?l.call(s,d):f.apply(s,d)}:f};return l()}return Na}var cd;function G1(){return cd||(cd=1,(function(){var a,e,n;a=ud().reject;function o(s,l){if(s[0]===l)return s.shift();throw new Error("Expected '"+l+"', but got '"+s[0]+"' instead in "+JSON.stringify(s)+".")}function t(s,l){if(s[0]===l)return s.shift()}function u(s,l,g){var d,v,S,b;for(d=l[0],v=l[1],g&&o(s,d),S=[],b=","+(g?v:"");s.length&&g&&s[0]!==v;)S.push(i(s,b)),t(s,",");return g&&o(s,v),S}function p(s,l){return u(s,["[","]"],l)}function c(s,l){return u(s,["(",")"],l)}function r(s,l){var g,d,v;for(l&&o(s,"{"),g={},d=","+(l?"}":"");s.length&&(!l||s[0]!=="}");)v=m(s,":"),o(s,":"),g[v]=i(s,d),t(s,",");return l&&o(s,"}"),g}function m(s,l){var g;for(l==null&&(l=""),g="";s.length&&l.indexOf(s[0])===-1;)g+=s.shift();return g}function i(s,l){switch(s[0]){case"[":return p(s,!0);case"(":return c(s,!0);case"{":return r(s,!0);default:return m(s,l)}}function f(s,l,g){var d,v,S,b,w,C,E,T;return d=l[0],v=d.type,S=d.structure,b=s.concat(),!g.explicit&&l.length===1&&(!v&&S||v==="Array"||v==="Object")?(w=S==="array"||v==="Array"?p(s,s[0]==="["):S==="tuple"?c(s,s[0]==="("):r(s,s[0]==="{"),C=s.length?i(S==="array"||v==="Array"?(E=b,E.unshift("["),E.push("]"),E):(T=b,T.unshift("("),T.push(")"),T)):w):C=i(s),C}e=/\[\]\(\)}{:,/.source,n=RegExp(`("(?:\\\\"|[^"])*")|('(?:\\\\'|[^'])*')|(/(?:\\\\/|[^/])*/[a-zA-Z]*)|(#.*#)|([`+e+"])|([^\\s"+e+"](?:\\s*[^\\s"+e+"]+)*)|\\s*"),Fa.exports=function(s,l,g){var d,v;if(g==null&&(g={}),!g.explicit&&s.length===1&&s[0].type==="String")return l;if(d=a(h,l.split(n)),v=f(d,s,g),!v)throw new Error("Error parsing '"+l+"'.");return v};function h(s){return!s}}).call(this)),Fa.exports}var Ma={exports:{}},ja={exports:{}},Ua={exports:{}},fd;function z1(){return fd||(fd=1,(function(){var a,e;a=/[\$\w]+/;function n(l){var g;if(g=l[0],g==null)throw new Error("Unexpected end of input.");return g}function o(l){var g;if(g=n(l),!a.test(g))throw new Error("Expected text, got '"+g+"' instead.");return l.shift()}function t(l,g){var d;if(d=n(l),d!==g)throw new Error("Expected '"+g+"', got '"+d+"' instead.");return l.shift()}function u(l,g){var d;return d=l[0],d===g?l.shift():null}function p(l){var g;if(t(l,"["),n(l)==="]")throw new Error("Must specify type of Array - eg. [Type], got [] instead.");return g=h(l),t(l,"]"),{structure:"array",of:g}}function c(l){var g;if(g=[],t(l,"("),n(l)===")")throw new Error("Tuple must be of at least length 1 - eg. (Type), got () instead.");for(;g.push(h(l)),u(l,","),n(l)!==")";);return t(l,")"),{structure:"tuple",of:g}}function r(l){var g,d,v,S,b;for(g={},t(l,"{"),d=!1;;){if(u(l,"...")){d=!0;break}if(v=m(l),S=v[0],b=v[1],g[S]=b,u(l,","),n(l)==="}")break}return t(l,"}"),{structure:"fields",of:g,subset:d}}function m(l){var g,d;return g=o(l),t(l,":"),d=h(l),[g,d]}function i(l){switch(l[0]){case"[":return p(l);case"(":return c(l);case"{":return r(l)}}function f(l){var g,d,v,S;if(g=n(l),d=g==="*",d||a.test(g))return v=d?t(l,"*"):o(l),S=i(l),S?(S.type=v,S):{type:v};if(S=i(l),!S)throw new Error("Unexpected character: "+g);return S}function h(l){var g,d,v,S,b,w;if(n(l)==="::")throw new Error("No comment before comment separator '::' found.");for(g=l[1],g!=null&&g==="::"&&(l.shift(),l.shift()),d=[],v={},n(l)==="Maybe"&&(l.shift(),d=[{type:"Undefined"},{type:"Null"}],v={Undefined:!0,Null:!0});S=f(l),b=S.type,w=S.structure,v[b]||d.push(S),w==null&&(v[b]=!0),!!u(l,"|"););return d}e=RegExp("\\.\\.\\.|::|->|"+a.source+"|\\S","g"),Ua.exports=function(l){var g,d;if(!l.length)throw new Error("No type specified.");if(g=l.match(e)||[],s("->",g))throw new Error("Function types are not supported. To validate that something is a function, you may use 'Function'.");try{return h(g)}catch(v){throw d=v,new Error(d.message+" - Remaining tokens: "+JSON.stringify(g)+" - Initial input: '"+l+"'")}};function s(l,g){for(var d=-1,v=g.length>>>0;++d<v;)if(l===g[d])return!0;return!1}}).call(this)),Ua.exports}var qa={exports:{}},pd;function H1(){return pd||(pd=1,(function(){var a,e,n,o,t,u,p={}.toString;a=ud(),e=a.any,n=a.all,o=a.isItNaN,t={Number:{typeOf:"Number",validate:function(s){return!o(s)}},NaN:{typeOf:"Number",validate:o},Int:{typeOf:"Number",validate:function(s){return!o(s)&&s%1===0}},Float:{typeOf:"Number",validate:function(s){return!o(s)}},Date:{typeOf:"Date",validate:function(s){return!o(s.getTime())}}},u={array:"Array",tuple:"Array"};function c(s,l,g){return n(function(d){return h(d,l.of,g)},s)}function r(s,l,g){var d,v,S,b,w;for(d=0,v=0,b=(S=l.of).length;v<b;++v){if(w=S[v],!h(s[d],w,g))return!1;d++}return s.length<=d}function m(s,l,g){var d,v,S,b,w,C,E;d={},v=0;for(S in s)d[S]=!0,v++;b=0;for(w in C=l.of){if(E=C[w],!h(s[w],E,g))return!1;d[w]&&b++}return l.subset||v===b}function i(s,l,g){if(!(s instanceof Object))return!1;switch(l.structure){case"fields":return m(s,l,g);case"array":return c(s,l,g);case"tuple":return r(s,l,g)}}function f(s,l,g){var d,v,S,b;if(d=l.type,v=l.structure,d)return d==="*"?!0:(S=g.customTypes[d]||t[d],S?(S.typeOf===void 0||S.typeOf===p.call(s).slice(8,-1))&&S.validate(s):d===p.call(s).slice(8,-1)&&(!v||i(s,l,g)));if(v)return(b=u[v])&&b!==p.call(s).slice(8,-1)?!1:i(s,l,g);throw new Error("No type defined. Input: "+s+".")}function h(s,l,g){if(p.call(l).slice(8,-1)!=="Array")throw new Error("Types must be in an array. Input: "+s+".");return e(function(d){return f(s,d,g)},l)}qa.exports=function(s,l,g){return g==null&&(g={}),g.customTypes==null&&(g.customTypes={}),h(l,s,g)}}).call(this)),qa.exports}var md;function hd(){return md||(md=1,(function(){var a,e,n,o;a="0.4.0",e=z1(),n=H1(),o=function(t,u,p){return n(e(t),u,p)},ja.exports={VERSION:a,typeCheck:o,parsedTypeCheck:n,parseType:e}}).call(this)),ja.exports}var dd;function K1(){return dd||(dd=1,(function(){var a,e,n={}.toString;a=hd().parsedTypeCheck,e={"*":function(r,m){switch(n.call(r).slice(8,-1)){case"Array":return p(r,{type:"Array"},m);case"Object":return p(r,{type:"Object"},m);default:return{type:"Just",value:c(r,[{type:"Undefined"},{type:"Null"},{type:"NaN"},{type:"Boolean"},{type:"Number"},{type:"Date"},{type:"RegExp"},{type:"Array"},{type:"Object"},{type:"String"}],(m.explicit=!0,m))}}},Undefined:function(r){return r==="undefined"||r===void 0?{type:"Just",value:void 0}:{type:"Nothing"}},Null:function(r){return r==="null"?{type:"Just",value:null}:{type:"Nothing"}},NaN:function(r){return r==="NaN"?{type:"Just",value:NaN}:{type:"Nothing"}},Boolean:function(r){return r==="true"?{type:"Just",value:!0}:r==="false"?{type:"Just",value:!1}:{type:"Nothing"}},Number:function(r){return{type:"Just",value:+r}},Int:function(r){return{type:"Just",value:+r}},Float:function(r){return{type:"Just",value:+r}},Date:function(r,m){var i;return(i=/^\#([\s\S]*)\#$/.exec(r))?{type:"Just",value:new Date(+i[1]||i[1])}:m.explicit?{type:"Nothing"}:{type:"Just",value:new Date(+r||r)}},RegExp:function(r,m){var i;return(i=/^\/([\s\S]*)\/([gimy]*)$/.exec(r))?{type:"Just",value:new RegExp(i[1],i[2])}:m.explicit?{type:"Nothing"}:{type:"Just",value:new RegExp(r)}},Array:function(r,m){return o(r,{of:[{type:"*"}]},m)},Object:function(r,m){return u(r,{of:{}},m)},String:function(r){var m,i;return n.call(r).slice(8,-1)!=="String"?{type:"Nothing"}:(m=function(f,h){return f.replace(/\\([^u]|u[0-9a-fA-F]{4})/g,function(s,l){switch(l[0]){case h:return h;case"\\":return"\\";case"b":return"\b";case"f":return"\f";case"n":return`
|
|
50
|
+
`;case"r":return"\r";case"t":return" ";case"u":return JSON.parse('"'+s+'"');default:return l}})},(i=r.match(/^'([\s\S]*)'$/))?{type:"Just",value:m(i[1],"'")}:(i=r.match(/^"([\s\S]*)"$/))?{type:"Just",value:m(i[1],'"')}:{type:"Just",value:r})}};function o(r,m,i){var f,h;return n.call(r).slice(8,-1)!=="Array"?{type:"Nothing"}:(f=m.of,{type:"Just",value:function(){var s,l,g,d=[];for(s=0,g=(l=r).length;s<g;++s)h=l[s],d.push(c(h,f,i));return d}()})}function t(r,m,i){var f,h,s,l,g,d,v;if(n.call(r).slice(8,-1)!=="Array")return{type:"Nothing"};for(f=[],h=0,s=0,g=(l=m.of).length;s<g;++s)d=l[s],v=c(r[h],d,i),n.call(v).slice(8,-1)!=="Undefined"&&f.push(v),h++;return r.length<=h?{type:"Just",value:f}:{type:"Nothing"}}function u(r,m,i){var f,h,s;return n.call(r).slice(8,-1)!=="Object"?{type:"Nothing"}:(f=m.of,{type:"Just",value:function(){var l,g={};for(h in l=r)s=l[h],g[c(h,[{type:"String"}],i)]=c(s,f[h]||[{type:"*"}],i);return g}()})}function p(r,m,i){var f,h,s,l;if(f=m.type,h=m.structure,f){if(s=((l=i.customTypes[f])!=null?l.cast:void 0)||e[f],!s)throw new Error("Type not defined: "+f+".");return s(r,i,c)}else switch(h){case"array":return o(r,m,i);case"tuple":return t(r,m,i);case"fields":return u(r,m,i)}}function c(r,m,i){var f,h,s,l,g,d;for(f=0,h=m.length;f<h;++f)if(s=m[f],l=p(r,s,i),g=l.type,d=l.value,g!=="Nothing"&&a([s],d,{customTypes:i.customTypes}))return d;throw new Error("Value "+JSON.stringify(r)+" does not type check against "+JSON.stringify(m)+".")}Ma.exports=function(r,m,i){return!i.explicit&&m.length===1&&m[0].type==="String"?r:c(r,m,i)}}).call(this)),Ma.exports}var gd;function X1(){return gd||(gd=1,(function(){var a,e,n,o,t,u;a=G1(),e=K1(),n=hd().parseType,o="0.4.1",t=function(p,c,r){return r==null&&(r={}),r.explicit==null&&(r.explicit=!1),r.customTypes==null&&(r.customTypes={}),e(a(p,c,r),p,r)},u=function(p,c,r){return t(n(p),c,r)},Pa.exports={VERSION:o,parse:u,parsedTypeParse:t}}).call(this)),Pa.exports}var yd;function vd(){if(yd)return Dr;yd=1;var a=X1();const e=/^([a-z]+(?:-[a-z]+)*)(?:\s|$)/u,n=new Set([0,1,2,"off","warn","error"]);function o(g){const d=Array.isArray(g)?g[0]:g;return n.has(d)}function t(g){return Object.values(g).every(o)}class u{label="";value="";justification="";constructor(d,v,S){this.label=d,this.value=v,this.justification=S}}class p{parseStringConfig(d){const v={};return d.trim().replace(new RegExp("(?<!\\s)\\s*([:,])\\s*","gu"),"$1").split(/\s|,+/u).forEach(b=>{if(!b)return;const[w,C=null]=b.split(":");v[w]=C}),v}parseJSONLikeConfig(d){try{const S=a.parse("Object",d)||{};if(t(S))return{ok:!0,config:S}}catch{}const v=d.replace(/([-a-zA-Z0-9/]+):/gu,'"$1":').replace(/(\]|[0-9])\s+(?=")/u,"$1,");try{return{ok:!0,config:JSON.parse(`{${v}}`)}}catch(S){const b=S instanceof Error?S.message:String(S);return{ok:!1,error:{message:`Failed to parse JSON from '${v}': ${b}`}}}}parseListConfig(d){const v={};return d.split(",").forEach(S=>{const b=S.trim().replace(/^(?<quote>['"]?)(?<ruleId>.*)\k<quote>$/su,"$<ruleId>");b&&(v[b]=!0)}),v}#e(d){const v=/\s-{2,}\s/u.exec(d);if(!v)return{directivePart:d.trim(),justificationPart:""};const S=d.slice(0,v.index).trim(),b=d.slice(v.index+v[0].length).trim();return{directivePart:S,justificationPart:b}}parseDirective(d){const{directivePart:v,justificationPart:S}=this.#e(d),b=e.exec(v);if(!b)return;const w=b[1],C=v.slice(b.index+w.length);return new u(w,C.trim(),S)}}function c(g){return"loc"in g}function r(g){return"position"in g}function m(g){return"range"in g}function i(g){return"position"in g}class f{type="visit";kind=1;target;phase;args;constructor({target:d,phase:v,args:S}){this.target=d,this.phase=v,this.args=S}}class h{type="call";kind=2;target;args;constructor({target:d,args:v}){this.target=d,this.args=v}}class s{type;node;value;justification;constructor({type:d,node:v,value:S,justification:b}){this.type=d,this.node=v,this.value=S,this.justification=b}}class l{#e;ast;text;constructor({text:d,ast:v,lineEndingPattern:S=/\r?\n/u}){this.ast=v,this.text=d,this.#e=d.split(S)}getLoc(d){if(c(d))return d.loc;if(r(d))return d.position;throw new Error("Custom getLoc() method must be implemented in the subclass.")}getRange(d){if(m(d))return d.range;if(i(d))return[d.position.start.offset,d.position.end.offset];throw new Error("Custom getRange() method must be implemented in the subclass.")}getParent(d){throw new Error("Not implemented.")}getAncestors(d){if(!d)throw new TypeError("Missing required argument: node.");const v=[];for(let S=this.getParent(d);S;S=this.getParent(S))v.push(S);return v.reverse()}getText(d,v,S){if(d){const b=this.getRange(d);return this.text.slice(Math.max(b[0]-(v||0),0),b[1]+(S||0))}return this.text}get lines(){return this.#e}traverse(){throw new Error("Not implemented.")}}return Dr.CallMethodStep=h,Dr.ConfigCommentParser=p,Dr.Directive=s,Dr.TextSourceCodeBase=l,Dr.VisitNodeStep=f,Dr}var Va,Ed;function J1(){if(Ed)return Va;Ed=1;const{isCommentToken:a}=qt(),e=L1(),n=Fn(),o=ra(),t=Gh(),{directivesPattern:u}=Hh(),p=j1(),{ConfigCommentParser:c,VisitNodeStep:r,CallMethodStep:m,Directive:i}=vd(),f=qn(),h=new c;function s(A){if(!A)throw new TypeError(`Unexpected empty AST. (${A})`);if(!A.tokens)throw new TypeError("AST is missing the tokens array.");if(!A.comments)throw new TypeError("AST is missing the comments array.");if(!A.loc)throw new TypeError("AST is missing location information.");if(!A.range)throw new TypeError("AST is missing range information")}function l(A){switch(A){case 3:return t.es3;case 5:return t.es5;default:return A<2015?t[`es${A+2009}`]:t[`es${A}`]}}function g(A){return A.type==="ExportDefaultDeclaration"||A.type==="ExportNamedDeclaration"||A.type==="ExportAllDeclaration"||A.type==="ExportSpecifier"}function d(A,k){const B=[];let R=0,F=0;for(;R<A.length||F<k.length;)F>=k.length||R<A.length&&A[R].range[0]<k[F].range[0]?B.push(A[R++]):B.push(k[F++]);return B}function v(A){switch(A){case"off":return"off";case!0:case"true":case"writeable":case"writable":return"writable";case null:case!1:case"false":case"readable":case"readonly":return"readonly";default:throw new Error(`'${A}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`)}}function S(A,k){return A.range[0]<=k.range[0]&&A.range[1]>=k.range[0]||k.range[0]<=A.range[0]&&k.range[1]>=A.range[0]}function b(A,k,B,R){if(S(k,B))return!1;const[F,P]=k.range[1]<=B.range[0]?[k,B]:[B,k],N=A.getLastToken(F)||F,j=A.getFirstToken(P)||P;let V=N;for(;V!==j;){const O=A.getTokenAfter(V,{includeComments:!0});if(V.range[1]!==O.range[0]||R&&O!==j&&O.type==="JSXText"&&/\s/u.test(O.value))return!0;V=O}return!1}function w(A,k){let B=0,R=A.length;for(;B<R;){const F=(B+R)/2|0;k<A[F]?R=F:B=F+1}return B}function C(A,k={},B={}){for(const F of new Set([...Object.keys(k),...Object.keys(B)])){const P=k[F]===void 0?void 0:v(k[F]),j=B[F]&&B[F].value||P,V=B[F]&&B[F].comments;if(j==="off")continue;let O=A.set.get(F);O||(O=new f.Variable(F,A),A.variables.push(O),A.set.set(F,O)),O.eslintImplicitGlobalSetting=P,O.eslintExplicitGlobal=V!==void 0,O.eslintExplicitGlobalComments=V,O.writeable=j==="writable"}A.through=A.through.filter(F=>{const P=F.identifier.name,N=A.set.get(P);return N?(F.resolved=N,N.references.push(F),!1):!0});const{implicit:R}=A;typeof R=="object"&&R!==null&&(R.variables=R.variables.filter(F=>{const P=F.name;return A.set.has(P)?(R.set.delete(P),!1):!0}),R.left&&(R.left=R.left.filter(F=>!A.set.has(F.identifier.name))))}function E(A,k){Object.keys(k).forEach(B=>{const R=A.set.get(B);R&&(R.eslintUsed=!0,R.eslintExported=!0)})}const T=Symbol("caches");class x extends e{#e;constructor(k,B){let R,F,P,N,j,V;typeof k=="string"?(R=k,P=B,F=!1):typeof k=="object"&&k!==null&&(R=k.text,P=k.ast,F=k.hasBOM,N=k.parserServices,j=k.scopeManager,V=k.visitorKeys),s(P),super(P.tokens,P.comments),this[T]=new Map([["scopes",new WeakMap],["vars",new Map],["configNodes",void 0],["isGlobalReference",new WeakMap]]),this.isESTree=P.type==="Program";const O=R.charCodeAt(0)===65279;this.hasBOM=O||!!F,this.text=O?R.slice(1):R,this.ast=P,this.parserServices=N||{},this.scopeManager=j||null,this.visitorKeys=V||o.DEFAULT_VISITOR_KEYS;const G=this.text.match(n.shebangPattern);G&&P.comments.length&&P.comments[0].value===G[1]&&(P.comments[0].type="Shebang"),this.tokensAndComments=d(P.tokens,P.comments),this.lines=[],this.lineStartIndices=[0];const K=n.createGlobalLinebreakMatcher();let H;for(;H=K.exec(this.text);)this.lines.push(this.text.slice(this.lineStartIndices.at(-1),H.index)),this.lineStartIndices.push(H.index+H[0].length);this.lines.push(this.text.slice(this.lineStartIndices.at(-1))),Object.freeze(this),Object.freeze(this.lines)}static splitLines(k){return k.split(n.createGlobalLinebreakMatcher())}getText(k,B,R){return k?this.text.slice(Math.max(k.range[0]-(B||0),0),k.range[1]+(R||0)):this.text}getLines(){return this.lines}getAllComments(){return this.ast.comments}getJSDocComment(k){const B=F=>{const P=this.getTokenBefore(F,{includeComments:!0});return P&&a(P)&&P.type==="Block"&&P.value.charAt(0)==="*"&&F.loc.start.line-P.loc.end.line<=1?P:null};let R=k.parent;switch(k.type){case"ClassDeclaration":case"FunctionDeclaration":return B(g(R)?R:k);case"ClassExpression":return B(R.parent);case"ArrowFunctionExpression":case"FunctionExpression":if(R.type!=="CallExpression"&&R.type!=="NewExpression"){for(;!this.getCommentsBefore(R).length&&!/Function/u.test(R.type)&&R.type!=="MethodDefinition"&&R.type!=="Property"&&(R=R.parent,!!R););if(R&&R.type!=="FunctionDeclaration"&&R.type!=="Program")return B(R)}return B(k);default:return null}}getNodeByRangeIndex(k){let B=null;return o.traverse(this.ast,{visitorKeys:this.visitorKeys,enter(R){R.range[0]<=k&&k<R.range[1]?B=R:this.skip()},leave(R){R===B&&this.break()}}),B}isSpaceBetween(k,B){return b(this,k,B,!1)}isSpaceBetweenTokens(k,B){return b(this,k,B,!0)}getLocFromIndex(k){if(typeof k!="number")throw new TypeError("Expected `index` to be a number.");if(k<0||k>this.text.length)throw new RangeError(`Index out of range (requested index ${k}, but source text has length ${this.text.length}).`);if(k===this.text.length)return{line:this.lines.length,column:this.lines.at(-1).length};const B=k>=this.lineStartIndices.at(-1)?this.lineStartIndices.length:w(this.lineStartIndices,k);return{line:B,column:k-this.lineStartIndices[B-1]}}getIndexFromLoc(k){if(k===null||typeof k!="object"||typeof k.line!="number"||typeof k.column!="number")throw new TypeError("Expected `loc` to be an object with numeric `line` and `column` properties.");if(k.line<=0)throw new RangeError(`Line number out of range (line ${k.line} requested). Line numbers should be 1-based.`);if(k.line>this.lineStartIndices.length)throw new RangeError(`Line number out of range (line ${k.line} requested, but only ${this.lineStartIndices.length} lines present).`);if(k.column<0)throw new RangeError(`Invalid column number (column ${k.column} requested).`);const B=this.lineStartIndices[k.line-1],R=k.line===this.lineStartIndices.length?this.text.length:this.lineStartIndices[k.line],F=B+k.column;if(k.line===this.lineStartIndices.length&&F>R||k.line<this.lineStartIndices.length&&F>=R)throw new RangeError(`Column number out of range (column ${k.column} requested, but the length of line ${k.line} is ${R-B}).`);return F}getScope(k){if(!k)throw new TypeError("Missing required argument: node.");const B=this[T].get("scopes"),R=B.get(k);if(R)return R;const F=k.type!=="Program";for(let P=k;P;P=P.parent){const N=this.scopeManager.acquire(P,F);if(N)return N.type==="function-expression-name"?(B.set(k,N.childScopes[0]),N.childScopes[0]):(B.set(k,N),N)}return B.set(k,this.scopeManager.scopes[0]),this.scopeManager.scopes[0]}getDeclaredVariables(k){return this.scopeManager.getDeclaredVariables(k)}getAncestors(k){if(!k)throw new TypeError("Missing required argument: node.");const B=[];for(let R=k.parent;R;R=R.parent)B.push(R);return B.reverse()}isGlobalReference(k){if(!k)throw new TypeError("Missing required argument: node.");const B=this[T].get("isGlobalReference");if(B.has(k))return B.get(k);if(k.type!=="Identifier")return B.set(k,!1),!1;const R=this.scopeManager.scopes[0].set.get(k.name);if(!R||R.defs.length>0)return B.set(k,!1),!1;const F=R.references.some(({identifier:P})=>P===k);return B.set(k,F),F}getLoc(k){return k.loc}getRange(k){return k.range}markVariableAsUsed(k,B=this.ast){const R=this.getScope(B);let F=R;R.type==="global"&&R.childScopes.length>0&&R.childScopes[0].block===this.ast&&(F=R.childScopes[0]);for(let P=F;P;P=P.upper){const N=P.variables.find(j=>j.name===k);if(N)return N.eslintUsed=!0,!0}return!1}getInlineConfigNodes(){let k=this[T].get("configNodes");return k||(k=this.ast.comments.filter(B=>{if(B.type==="Shebang")return!1;const R=h.parseDirective(B.value);return!R||!u.test(R.label)?!1:B.type!=="Line"||!!/^eslint-disable-(next-)?line$/u.test(R.label)}),this[T].set("configNodes",k),k)}getDisableDirectives(){const k=this[T].get("disableDirectives");if(k)return k;const B=[],R=[];this.getInlineConfigNodes().forEach(P=>{const{label:N,value:j,justification:V}=h.parseDirective(P.value),O=/^eslint-disable-(next-)?line$/u.test(N);if(!(P.type==="Line"&&!O)){if(N==="eslint-disable-line"&&P.loc.start.line!==P.loc.end.line){const G=`${N} comment should not span multiple lines.`;B.push({ruleId:null,message:G,loc:P.loc});return}switch(N){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{const G=N.slice(7);R.push(new i({type:G,node:P,value:j,justification:V}))}}}});const F={problems:B,directives:R};return this[T].set("disableDirectives",F),F}applyLanguageOptions(k){const B=Object.assign(Object.create(null),l(k.ecmaVersion),k.sourceType==="commonjs"?t.commonjs:void 0,k.globals);this[T].get("vars").set("configGlobals",B)}applyInlineConfig(){const k=[],B=[],R={},F=Object.create(null);this.getInlineConfigNodes().forEach(N=>{const{label:j,value:V}=h.parseDirective(N.value);switch(j){case"exported":Object.assign(R,h.parseListConfig(V));break;case"globals":case"global":for(const[O,G]of Object.entries(h.parseStringConfig(V))){let L;try{L=v(G)}catch(K){k.push({ruleId:null,loc:N.loc,message:K.message});continue}F[O]?(F[O].comments.push(N),F[O].value=L):F[O]={comments:[N],value:L}}break;case"eslint":{const O=h.parseJSONLikeConfig(V);O.ok?B.push({config:{rules:O.config},loc:N.loc}):k.push({ruleId:null,loc:N.loc,message:O.error.message});break}}});const P=this[T].get("vars");return P.set("inlineGlobals",F),P.set("exportedVariables",R),{configs:B,problems:k}}finalize(){const k=this[T].get("vars"),B=k.get("configGlobals"),R=k.get("inlineGlobals"),F=k.get("exportedVariables"),P=this.scopeManager.scopes[0];C(P,B,R),F&&E(P,F)}traverse(){if(this.#e)return this.#e;const k=this.#e=[];let B={enterNode(R){k.push(new r({target:R,phase:1,args:[R,R.parent]}))},leaveNode(R){k.push(new r({target:R,phase:2,args:[R,R.parent]}))},emit(R,F){k.push(new m({target:R,args:F}))}};return this.isESTree&&(B=new p(B)),o.traverse(this.ast,{enter(R,F){R.parent=F,B.enterNode(R)},leave(R){B.leaveNode(R)},visitorKeys:this.visitorKeys}),k}}return Va=x,Va}var $a,Sd;function bd(){return Sd||(Sd=1,$a={SourceCode:J1()}),$a}var Wa,xd;function Rn(){return xd||(xd=1,Wa=a=>{if(typeof a!="string")throw new TypeError("Expected a string");return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}),Wa}var Ga,Cd;function wd(){if(Cd)return Ga;Cd=1;function a(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function e(o,t){if(t===void 0)return o;if(!a(o)||!a(t))return t;const u={...o,...t};for(const p of Object.keys(t))Object.prototype.propertyIsEnumerable.call(o,p)&&(u[p]=e(o[p],t[p]));return u}function n(o,t){return!o||!t?t||o||[]:[...o.map((u,p)=>e(u,p<t.length?t[p]:void 0)),...t.slice(o.length)]}return Ga={deepMergeArrays:n},Ga}var za,Ad;function Td(){if(Ad)return za;Ad=1;function a(n){if([2,"2","error"].includes(n))return"error";if([1,"1","warn"].includes(n))return"warn";if([0,"0","off"].includes(n))return"off";throw new Error(`Invalid severity value: ${n}`)}function e(n){if([2,"2","error"].includes(n))return 2;if([1,"1","warn"].includes(n))return 1;if([0,"0","off"].includes(n))return 0;throw new Error(`Invalid severity value: ${n}`)}return za={normalizeSeverityToString:a,normalizeSeverityToNumber:e},za}var Ha,kd;function Ka(){if(kd)return Ha;kd=1;const{normalizeSeverityToNumber:a}=Td(),e=new Map([[0,0],["off",0],[1,1],["warn",1],[2,2],["error",2]]);function n(F){return typeof F=="object"&&F!==null}function o(F){return n(F)&&!Array.isArray(F)}function t(F){return typeof F>"u"}function u(F,P,N=new Map){let j=N.get(F);if(j){const O=j.get(P);if(O)return O}else j=new Map,N.set(F,j);const V={...F,...P};delete V.__proto__,j.set(P,V);for(const O of Object.keys(P)){if(O==="__proto__"||!Object.prototype.propertyIsEnumerable.call(F,O))continue;const G=F[O],L=P[O];o(G)&&o(L)?V[O]=u(G,L,N):t(L)&&(V[O]=G)}return V}function p(F){const P=Array.isArray(F)?F.slice(0):[F];return P[0]=e.get(P[0]),structuredClone(P)}function c(F){for(const P of Object.keys(F))if(typeof F[P]=="function")return!0;return!1}class r extends Error{constructor(P,N){super(`Key "${P}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate="invalid-rule-options",this.messageData={ruleId:P,value:N}}}function m(F,P){if(typeof P!="string"&&typeof P!="number"&&!Array.isArray(P))throw new r(F,P)}class i extends Error{constructor(P,N){super(`Key "${P}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate="invalid-rule-severity",this.messageData={ruleId:P,value:N}}}function f(F,P){if(typeof e.get(P)>"u")throw new i(F,P)}function h(F){if(!/[@a-z0-9-_$]+(?:\/(?:[a-z0-9-_$]+))+$/iu.test(F))throw new TypeError(`Expected string in the form "pluginName/objectName" but found "${F}".`)}function s(F){if(!n(F))throw new TypeError("Expected an object.")}class l extends Error{constructor(P){super("This appears to be in eslintrc format rather than flat config format."),this.messageTemplate="eslintrc-incompat",this.messageData={key:P}}}class g extends Error{constructor(P){super("This appears to be in eslintrc format (array of strings) rather than flat config format (object)."),this.messageTemplate="eslintrc-plugins",this.messageData={plugins:P}}}const d={merge:"replace",validate:"boolean"},v=new Set(["error","warn","off",2,1,0]),S={merge(F,P){const N=P===void 0?F:P;return typeof N=="boolean"?N?"warn":"off":a(N)},validate(F){if(!(v.has(F)||typeof F=="boolean"))throw new TypeError('Expected one of: "error", "warn", "off", 0, 1, 2, or a boolean.')}},b={merge(F,P){return a(P===void 0?F:P)},validate(F){if(!v.has(F))throw new TypeError('Expected one of: "error", "warn", "off", 0, 1, or 2.')}},w={merge(F={},P={}){return u(F,P)},validate:"object"},C={merge(F={},P={}){const N=u(F,P);for(const[j,V]of Object.entries(N))if(o(V)){if(c(V)){N[j]=P[j]??F[j];continue}N[j]={...N[j]};continue}return N},validate:"object"},E={merge:"replace",validate:h},T={merge(F={},P={}){const N=new Set([...Object.keys(F),...Object.keys(P)]),j={};for(const V of N)if(V!=="__proto__"){if(V in F&&V in P&&F[V]!==P[V])throw new TypeError(`Cannot redefine plugin "${V}".`);j[V]=P[V]||F[V]}return j},validate(F){if(F===null||typeof F!="object")throw new TypeError("Expected an object.");if(Array.isArray(F))throw new g(F);for(const P of Object.keys(F))if(P!=="__proto__"&&(F[P]===null||typeof F[P]!="object"))throw new TypeError(`Key "${P}": Expected an object.`)}},x={merge:"replace",validate(F){if(typeof F=="string")h(F);else if(F&&typeof F=="object"){if(typeof F.preprocess!="function"||typeof F.postprocess!="function")throw new TypeError("Object must have a preprocess() and a postprocess() method.")}else throw new TypeError("Expected an object or a string.")}},A={merge(F={},P={}){const N={...F,...P};for(const j of Object.keys(N))try{if(j==="__proto__"){delete N.__proto__;continue}if(N[j]=p(N[j]),!(j in F)||!(j in P))continue;const V=p(F[j]),O=p(P[j]);if(O.length===1){N[j]=[O[0],...V.slice(1)];continue}}catch(V){throw new Error(`Key "${j}": ${V.message}`,{cause:V})}return N},validate(F){s(F);for(const P of Object.keys(F)){if(P==="__proto__")continue;const N=F[P];m(P,N),Array.isArray(N)?f(P,N[0]):f(P,N)}}};function k(F){return{merge:"replace",validate(){throw new l(F)}}}return Ha={flatConfigSchema:{...Object.fromEntries(["env","extends","globals","ignorePatterns","noInlineConfig","overrides","parser","parserOptions","reportUnusedDisableDirectives","root"].map(F=>[F,k(F)])),settings:w,linterOptions:{schema:{noInlineConfig:d,reportUnusedDisableDirectives:S,reportUnusedInlineConfigs:b}},language:E,languageOptions:C,processor:x,plugins:T,rules:A},hasMethod:c,assertIsRuleSeverity:f},Ha}var Xa={},Ft={},Dd;function Y1(){if(Dd)return Ft;Dd=1;function a(I){if(typeof I!="string")throw new TypeError(`Path must be a string, received "${JSON.stringify(I)}"`)}function e(I,W){if(W.length>=I.length)return I;const ue=I.length-W.length;for(let oe=W.length-1;oe>=0;--oe)if(I.charCodeAt(ue+oe)!==W.charCodeAt(oe))return I;return I.slice(0,-W.length)}function n(I,W,ue=0){let oe=!1,ne=I.length;for(let he=I.length-1;he>=ue;--he)if(W(I.charCodeAt(he))){if(oe){ue=he+1;break}}else oe||(oe=!0,ne=he+1);return I.slice(ue,ne)}function o(I,W){if(a(I),I.length===0)return I;if(typeof W!="string")throw new TypeError(`Suffix must be a string, received "${JSON.stringify(W)}"`)}function t(I){if(I=I instanceof URL?I:new URL(I),I.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${I.protocol}"`);return I}function u(I){return I=t(I),decodeURIComponent(I.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function p(I,W){if(I.length<=1)return I;let ue=I.length;for(let oe=I.length-1;oe>0&&W(I.charCodeAt(oe));oe--)ue=oe;return I.slice(0,ue)}const c=46,r=47;function m(I){return I===r}function i(I,W=""){I instanceof URL&&(I=u(I)),o(I,W);const ue=n(I,m),oe=p(ue,m);return W?e(oe,W):oe}const f=":",h="/",s=/\/+/;function l(I){if(a(I),I.length===0)return"."}function g(I){I instanceof URL&&(I=u(I)),l(I);let W=-1,ue=!1;for(let oe=I.length-1;oe>=1;--oe)if(m(I.charCodeAt(oe))){if(ue){W=oe;break}}else ue=!0;return W===-1?m(I.charCodeAt(0))?"/":".":p(I.slice(0,W),m)}function d(I){I instanceof URL&&(I=u(I)),a(I);let W=-1,ue=0,oe=-1,ne=!0,he=0;for(let ye=I.length-1;ye>=0;--ye){const ge=I.charCodeAt(ye);if(m(ge)){if(!ne){ue=ye+1;break}continue}oe===-1&&(ne=!1,oe=ye+1),ge===c?W===-1?W=ye:he!==1&&(he=1):W!==-1&&(he=-1)}return W===-1||oe===-1||he===0||he===1&&W===oe-1&&W===ue+1?"":I.slice(W,oe)}function v(I,W){const ue=W.dir||W.root,oe=W.base||(W.name??"")+(W.ext??"");return ue?oe===I?ue:ue===W.root?ue+oe:ue+I+oe:oe}function S(I){if(I===null||typeof I!="object")throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof I}"`)}function b(I){return S(I),v("/",I)}function w(I){return a(I),I.length>0&&m(I.charCodeAt(0))}function C(I){if(a(I),I.length===0)return"."}function E(I,W,ue,oe){let ne="",he=0,ye=-1,ge=0,Ce;for(let z=0;z<=I.length;++z){if(z<I.length)Ce=I.charCodeAt(z);else{if(oe(Ce))break;Ce=r}if(oe(Ce)){if(!(ye===z-1||ge===1))if(ye!==z-1&&ge===2){if(ne.length<2||he!==2||ne.charCodeAt(ne.length-1)!==c||ne.charCodeAt(ne.length-2)!==c){if(ne.length>2){const Q=ne.lastIndexOf(ue);Q===-1?(ne="",he=0):(ne=ne.slice(0,Q),he=ne.length-1-ne.lastIndexOf(ue)),ye=z,ge=0;continue}else if(ne.length===2||ne.length===1){ne="",he=0,ye=z,ge=0;continue}}W&&(ne.length>0?ne+=`${ue}..`:ne="..",he=2)}else ne.length>0?ne+=ue+I.slice(ye+1,z):ne=I.slice(ye+1,z),he=z-ye-1;ye=z,ge=0}else Ce===c&&ge!==-1?++ge:ge=-1}return ne}function T(I){I instanceof URL&&(I=u(I)),C(I);const W=m(I.charCodeAt(0)),ue=m(I.charCodeAt(I.length-1));return I=E(I,!W,"/",m),I.length===0&&!W&&(I="."),I.length>0&&ue&&(I+="/"),W?`/${I}`:I}function x(I,...W){if(I===void 0)return".";I instanceof URL&&(I=u(I)),W=I?[I,...W]:W,W.forEach(oe=>a(oe));const ue=W.filter(oe=>oe.length>0).join("/");return ue===""?".":T(ue)}function A(I){a(I);const W={root:"",dir:"",base:"",ext:"",name:""};if(I.length===0)return W;const ue=m(I.charCodeAt(0));let oe;ue?(W.root="/",oe=1):oe=0;let ne=-1,he=0,ye=-1,ge=!0,Ce=I.length-1,z=0;for(;Ce>=oe;--Ce){const Q=I.charCodeAt(Ce);if(m(Q)){if(!ge){he=Ce+1;break}continue}ye===-1&&(ge=!1,ye=Ce+1),Q===c?ne===-1?ne=Ce:z!==1&&(z=1):ne!==-1&&(z=-1)}return ne===-1||ye===-1||z===0||z===1&&ne===ye-1&&ne===he+1?(ye!==-1&&(he===0&&ue?W.base=W.name=I.slice(1,ye):W.base=W.name=I.slice(he,ye)),W.base=W.base||"/"):(he===0&&ue?(W.name=I.slice(1,ne),W.base=I.slice(1,ye)):(W.name=I.slice(he,ne),W.base=I.slice(he,ye)),W.ext=I.slice(ne,ye)),he>0?W.dir=p(I.slice(0,he-1),m):ue&&(W.dir="/"),W}function k(...I){let W="",ue=!1;for(let oe=I.length-1;oe>=-1&&!ue;oe--){let ne;if(oe>=0)ne=I[oe];else{const{Deno:he}=globalThis;if(typeof he?.cwd!="function")throw new TypeError("Resolved a relative path without a current working directory (CWD)");ne=he.cwd()}a(ne),ne.length!==0&&(W=`${ne}/${W}`,ue=m(ne.charCodeAt(0)))}return W=E(W,!ue,"/",m),ue?W.length>0?`/${W}`:"/":W.length>0?W:"."}function B(I,W){if(a(I),a(W),I===W)return""}function R(I,W){if(B(I,W),I=k(I),W=k(W),I===W)return"";let ue=1;const oe=I.length;for(;ue<oe&&m(I.charCodeAt(ue));++ue);const ne=oe-ue;let he=1;const ye=W.length;for(;he<ye&&m(W.charCodeAt(he));++he);const ge=ye-he,Ce=ne<ge?ne:ge;let z=-1,Q=0;for(;Q<=Ce;++Q){if(Q===Ce){if(ge>Ce){if(m(W.charCodeAt(he+Q)))return W.slice(he+Q+1);if(Q===0)return W.slice(he+Q)}else ne>Ce&&(m(I.charCodeAt(ue+Q))?z=Q:Q===0&&(z=0));break}const $=I.charCodeAt(ue+Q),ie=W.charCodeAt(he+Q);if($!==ie)break;m($)&&(z=Q)}let Re="";for(Q=ue+z+1;Q<=oe;++Q)(Q===oe||m(I.charCodeAt(Q)))&&(Re.length===0?Re+="..":Re+="/..");return Re.length>0?Re+W.slice(he+z):(he+=z,m(W.charCodeAt(he))&&++he,W.slice(he))}const F={" ":"%09","\n":"%0A","\v":"%0B","\f":"%0C","\r":"%0D"," ":"%20"};function P(I){return I.replaceAll(/[\s]/g,W=>F[W]??W)}function N(I){if(!w(I))throw new TypeError(`Path must be absolute: received "${I}"`);const W=new URL("file:///");return W.pathname=P(I.replace(/%/g,"%25").replace(/\\/g,"%5C")),W}function j(I){return I}function V(I,W){const[ue="",...oe]=I,ne=ue.split(W);let he=ne.length,ye="";for(const ge of oe){const Ce=ge.split(W);Ce.length<=he&&(he=Ce.length,ye="");for(let z=0;z<he;z++)if(Ce[z]!==ne[z]){he=z,ye=z===0?"":W;break}}return ne.slice(0,he).join(W)+ye}function O(I){return V(I,h)}const G=["!","$","(",")","*","+",".","=","?","[","\\","^","{","|"],L=["-","\\","]"];function K(I,W,{extended:ue=!0,globstar:oe=!0,caseInsensitive:ne=!1}={}){if(W==="")return/(?!)/;let he=W.length;for(;he>1&&I.seps.includes(W[he-1]);he--);W=W.slice(0,he);let ye="";for(let ge=0;ge<W.length;){let Ce="";const z=[];let Q=!1,Re=!1,$=!1,ie=ge;for(;ie<W.length&&!I.seps.includes(W[ie]);ie++){if(Re){Re=!1,Ce+=(Q?L:G).includes(W[ie])?`\\${W[ie]}`:W[ie];continue}if(W[ie]===I.escapePrefix){Re=!0;continue}if(W[ie]==="[")if(Q){if(W[ie+1]===":"){let Te=ie+1,Ne="";for(;W[Te+1]!==void 0&&W[Te+1]!==":";)Ne+=W[Te+1],Te++;if(W[Te+1]===":"&&W[Te+2]==="]"){ie=Te+2,Ne==="alnum"?Ce+="\\dA-Za-z":Ne==="alpha"?Ce+="A-Za-z":Ne==="ascii"?Ce+="\0-":Ne==="blank"?Ce+=" ":Ne==="cntrl"?Ce+="\0-":Ne==="digit"?Ce+="\\d":Ne==="graph"?Ce+="!-~":Ne==="lower"?Ce+="a-z":Ne==="print"?Ce+=" -~":Ne==="punct"?Ce+=`!"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~`:Ne==="space"?Ce+="\\s\v":Ne==="upper"?Ce+="A-Z":Ne==="word"?Ce+="\\w":Ne==="xdigit"&&(Ce+="\\dA-Fa-f");continue}}}else{Q=!0,Ce+="[",W[ie+1]==="!"?(ie++,Ce+="^"):W[ie+1]==="^"&&(ie++,Ce+="\\^");continue}if(W[ie]==="]"&&Q){Q=!1,Ce+="]";continue}if(Q){Ce+=W[ie];continue}if(W[ie]===")"&&z.length>0&&z[z.length-1]!=="BRACE"){Ce+=")";const Te=z.pop();Te==="!"?Ce+=I.wildcard:Te!=="@"&&(Ce+=Te);continue}if(W[ie]==="|"&&z.length>0&&z[z.length-1]!=="BRACE"){Ce+="|";continue}if(W[ie]==="+"&&ue&&W[ie+1]==="("){ie++,z.push("+"),Ce+="(?:";continue}if(W[ie]==="@"&&ue&&W[ie+1]==="("){ie++,z.push("@"),Ce+="(?:";continue}if(W[ie]==="?"){ue&&W[ie+1]==="("?(ie++,z.push("?"),Ce+="(?:"):Ce+=".";continue}if(W[ie]==="!"&&ue&&W[ie+1]==="("){ie++,z.push("!"),Ce+="(?!";continue}if(W[ie]==="{"){z.push("BRACE"),Ce+="(?:";continue}if(W[ie]==="}"&&z[z.length-1]==="BRACE"){z.pop(),Ce+=")";continue}if(W[ie]===","&&z[z.length-1]==="BRACE"){Ce+="|";continue}if(W[ie]==="*"){if(ue&&W[ie+1]==="(")ie++,z.push("*"),Ce+="(?:";else{const Te=W[ie-1];let Ne=1;for(;W[ie+1]==="*";)ie++,Ne++;const Le=W[ie+1];oe&&Ne===2&&[...I.seps,void 0].includes(Te)&&[...I.seps,void 0].includes(Le)?(Ce+=I.globstar,$=!0):Ce+=I.wildcard}continue}Ce+=G.includes(W[ie])?`\\${W[ie]}`:W[ie]}if(z.length>0||Q||Re){Ce="";for(const Te of W.slice(ge,ie))Ce+=G.includes(Te)?`\\${Te}`:Te,$=!1}for(ye+=Ce,$||(ye+=ie<W.length?I.sep:I.sepMaybe,$=!0);I.seps.includes(W[ie]);)ie++;ge=ie}return ye=`^${ye}$`,new RegExp(ye,ne?"i":"")}const H={sep:"/+",sepMaybe:"/*",seps:["/"],globstar:"(?:[^/]*(?:/|$)+)*",wildcard:"[^/]*",escapePrefix:"\\"};function ae(I,W={}){return K(H,I,W)}function re(I){const W={"{":"}","(":")","[":"]"},ue=/\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;if(I==="")return!1;let oe;for(;oe=ue.exec(I);){if(oe[2])return!0;let ne=oe.index+oe[0].length;const he=oe[1],ye=he?W[he]:null;if(he&&ye){const ge=I.indexOf(ye,ne);ge!==-1&&(ne=ge+1)}I=I.slice(ne)}return!1}function De(I,W={}){const{globstar:ue=!1}=W;if(I.match(/\0/g))throw new Error(`Glob contains invalid characters: "${I}"`);if(!ue)return T(I);const oe=s.source,ne=new RegExp(`(?<=(${oe}|^)\\*\\*${oe})\\.\\.(?=${oe}|$)`,"g");return T(I.replace(ne,"\0")).replace(/\0/g,"..")}function Y(I,W={}){const{globstar:ue=!1}=W;if(!ue||I.length===0)return x(...I);let oe;for(const ne of I){const he=ne;he.length>0&&(oe?oe+=`${h}${he}`:oe=he)}return oe?De(oe,{globstar:ue}):"."}return Ft.DELIMITER=f,Ft.SEPARATOR=h,Ft.SEPARATOR_PATTERN=s,Ft.basename=i,Ft.common=O,Ft.dirname=g,Ft.extname=d,Ft.format=b,Ft.fromFileUrl=u,Ft.globToRegExp=ae,Ft.isAbsolute=w,Ft.isGlob=re,Ft.join=x,Ft.joinGlobs=Y,Ft.normalize=T,Ft.normalizeGlob=De,Ft.parse=A,Ft.relative=R,Ft.resolve=k,Ft.toFileUrl=N,Ft.toNamespacedPath=j,Ft}var Rt={},Id;function Q1(){if(Id)return Rt;Id=1;function a(z){if(typeof z!="string")throw new TypeError(`Path must be a string, received "${JSON.stringify(z)}"`)}function e(z,Q){if(Q.length>=z.length)return z;const Re=z.length-Q.length;for(let $=Q.length-1;$>=0;--$)if(z.charCodeAt(Re+$)!==Q.charCodeAt($))return z;return z.slice(0,-Q.length)}function n(z,Q,Re=0){let $=!1,ie=z.length;for(let Te=z.length-1;Te>=Re;--Te)if(Q(z.charCodeAt(Te))){if($){Re=Te+1;break}}else $||($=!0,ie=Te+1);return z.slice(Re,ie)}function o(z,Q){if(a(z),z.length===0)return z;if(typeof Q!="string")throw new TypeError(`Suffix must be a string, received "${JSON.stringify(Q)}"`)}const t=65,u=97,p=90,c=122,r=46,m=47,i=92,f=58,h=63;function s(z,Q){if(z.length<=1)return z;let Re=z.length;for(let $=z.length-1;$>0&&Q(z.charCodeAt($));$--)Re=$;return z.slice(0,Re)}function l(z){return z===m}function g(z){return z===m||z===i}function d(z){return z>=u&&z<=c||z>=t&&z<=p}function v(z){if(z=z instanceof URL?z:new URL(z),z.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${z.protocol}"`);return z}function S(z){z=v(z);let Q=decodeURIComponent(z.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return z.hostname!==""&&(Q=`\\\\${z.hostname}${Q}`),Q}function b(z,Q=""){z instanceof URL&&(z=S(z)),o(z,Q);let Re=0;if(z.length>=2){const Te=z.charCodeAt(0);d(Te)&&z.charCodeAt(1)===f&&(Re=2)}const $=n(z,g,Re),ie=s($,g);return Q?e(ie,Q):ie}const w=";",C="\\",E=/[\\/]+/;function T(z){if(a(z),z.length===0)return"."}function x(z){z instanceof URL&&(z=S(z)),T(z);const Q=z.length;let Re=-1,$=-1,ie=!0,Te=0;const Ne=z.charCodeAt(0);if(Q>1)if(g(Ne)){if(Re=Te=1,g(z.charCodeAt(1))){let Le=2,U=Le;for(;Le<Q&&!g(z.charCodeAt(Le));++Le);if(Le<Q&&Le!==U){for(U=Le;Le<Q&&g(z.charCodeAt(Le));++Le);if(Le<Q&&Le!==U){for(U=Le;Le<Q&&!g(z.charCodeAt(Le));++Le);if(Le===Q)return z;Le!==U&&(Re=Te=Le+1)}}}}else d(Ne)&&z.charCodeAt(1)===f&&(Re=Te=2,Q>2&&g(z.charCodeAt(2))&&(Re=Te=3));else if(g(Ne))return z;for(let Le=Q-1;Le>=Te;--Le)if(g(z.charCodeAt(Le))){if(!ie){$=Le;break}}else ie=!1;if($===-1){if(Re===-1)return".";$=Re}return s(z.slice(0,$),l)}function A(z){z instanceof URL&&(z=S(z)),a(z);let Q=0,Re=-1,$=0,ie=-1,Te=!0,Ne=0;z.length>=2&&z.charCodeAt(1)===f&&d(z.charCodeAt(0))&&(Q=$=2);for(let Le=z.length-1;Le>=Q;--Le){const U=z.charCodeAt(Le);if(g(U)){if(!Te){$=Le+1;break}continue}ie===-1&&(Te=!1,ie=Le+1),U===r?Re===-1?Re=Le:Ne!==1&&(Ne=1):Re!==-1&&(Ne=-1)}return Re===-1||ie===-1||Ne===0||Ne===1&&Re===ie-1&&Re===$+1?"":z.slice(Re,ie)}function k(z,Q){const Re=Q.dir||Q.root,$=Q.base||(Q.name??"")+(Q.ext??"");return Re?$===z?Re:Re===Q.root?Re+$:Re+z+$:$}function B(z){if(z===null||typeof z!="object")throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof z}"`)}function R(z){return B(z),k("\\",z)}function F(z){a(z);const Q=z.length;if(Q===0)return!1;const Re=z.charCodeAt(0);return g(Re)?!0:!!(d(Re)&&Q>2&&z.charCodeAt(1)===f&&g(z.charCodeAt(2)))}function P(z){if(a(z),z.length===0)return"."}function N(z,Q,Re,$){let ie="",Te=0,Ne=-1,Le=0,U;for(let Qe=0;Qe<=z.length;++Qe){if(Qe<z.length)U=z.charCodeAt(Qe);else{if($(U))break;U=m}if($(U)){if(!(Ne===Qe-1||Le===1))if(Ne!==Qe-1&&Le===2){if(ie.length<2||Te!==2||ie.charCodeAt(ie.length-1)!==r||ie.charCodeAt(ie.length-2)!==r){if(ie.length>2){const ct=ie.lastIndexOf(Re);ct===-1?(ie="",Te=0):(ie=ie.slice(0,ct),Te=ie.length-1-ie.lastIndexOf(Re)),Ne=Qe,Le=0;continue}else if(ie.length===2||ie.length===1){ie="",Te=0,Ne=Qe,Le=0;continue}}Q&&(ie.length>0?ie+=`${Re}..`:ie="..",Te=2)}else ie.length>0?ie+=Re+z.slice(Ne+1,Qe):ie=z.slice(Ne+1,Qe),Te=Qe-Ne-1;Ne=Qe,Le=0}else U===r&&Le!==-1?++Le:Le=-1}return ie}function j(z){z instanceof URL&&(z=S(z)),P(z);const Q=z.length;let Re=0,$,ie=!1;const Te=z.charCodeAt(0);if(Q>1)if(g(Te))if(ie=!0,g(z.charCodeAt(1))){let Le=2,U=Le;for(;Le<Q&&!g(z.charCodeAt(Le));++Le);if(Le<Q&&Le!==U){const Qe=z.slice(U,Le);for(U=Le;Le<Q&&g(z.charCodeAt(Le));++Le);if(Le<Q&&Le!==U){for(U=Le;Le<Q&&!g(z.charCodeAt(Le));++Le);if(Le===Q)return`\\\\${Qe}\\${z.slice(U)}\\`;Le!==U&&($=`\\\\${Qe}\\${z.slice(U,Le)}`,Re=Le)}}}else Re=1;else d(Te)&&z.charCodeAt(1)===f&&($=z.slice(0,2),Re=2,Q>2&&g(z.charCodeAt(2))&&(ie=!0,Re=3));else if(g(Te))return"\\";let Ne;return Re<Q?Ne=N(z.slice(Re),!ie,"\\",g):Ne="",Ne.length===0&&!ie&&(Ne="."),Ne.length>0&&g(z.charCodeAt(Q-1))&&(Ne+="\\"),$===void 0?ie?Ne.length>0?`\\${Ne}`:"\\":Ne:ie?Ne.length>0?`${$}\\${Ne}`:`${$}\\`:$+Ne}function V(z,...Q){if(z instanceof URL&&(z=S(z)),Q=z?[z,...Q]:Q,Q.forEach(Ne=>a(Ne)),Q=Q.filter(Ne=>Ne.length>0),Q.length===0)return".";let Re=!0,$=0;const ie=Q[0];if(g(ie.charCodeAt(0))){++$;const Ne=ie.length;Ne>1&&g(ie.charCodeAt(1))&&(++$,Ne>2&&(g(ie.charCodeAt(2))?++$:Re=!1))}let Te=Q.join("\\");if(Re){for(;$<Te.length&&g(Te.charCodeAt($));++$);$>=2&&(Te=`\\${Te.slice($)}`)}return j(Te)}function O(z){a(z);const Q={root:"",dir:"",base:"",ext:"",name:""},Re=z.length;if(Re===0)return Q;let $=0,ie=z.charCodeAt(0);if(Re>1){if(g(ie)){if($=1,g(z.charCodeAt(1))){let st=2,Ke=st;for(;st<Re&&!g(z.charCodeAt(st));++st);if(st<Re&&st!==Ke){for(Ke=st;st<Re&&g(z.charCodeAt(st));++st);if(st<Re&&st!==Ke){for(Ke=st;st<Re&&!g(z.charCodeAt(st));++st);st===Re?$=st:st!==Ke&&($=st+1)}}}}else if(d(ie)&&z.charCodeAt(1)===f)if($=2,Re>2){if(g(z.charCodeAt(2))){if(Re===3)return Q.root=Q.dir=z,Q.base="\\",Q;$=3}}else return Q.root=Q.dir=z,Q}else if(g(ie))return Q.root=Q.dir=z,Q.base="\\",Q;$>0&&(Q.root=z.slice(0,$));let Te=-1,Ne=$,Le=-1,U=!0,Qe=z.length-1,ct=0;for(;Qe>=$;--Qe){if(ie=z.charCodeAt(Qe),g(ie)){if(!U){Ne=Qe+1;break}continue}Le===-1&&(U=!1,Le=Qe+1),ie===r?Te===-1?Te=Qe:ct!==1&&(ct=1):Te!==-1&&(ct=-1)}return Te===-1||Le===-1||ct===0||ct===1&&Te===Le-1&&Te===Ne+1?Le!==-1&&(Q.base=Q.name=z.slice(Ne,Le)):(Q.name=z.slice(Ne,Te),Q.base=z.slice(Ne,Le),Q.ext=z.slice(Te,Le)),Q.base=Q.base||"\\",Ne>0&&Ne!==$?Q.dir=z.slice(0,Ne-1):Q.dir=Q.root,Q}function G(...z){let Q="",Re="",$=!1;for(let ie=z.length-1;ie>=-1;ie--){let Te;const{Deno:Ne}=globalThis;if(ie>=0)Te=z[ie];else if(Q){if(typeof Ne?.env?.get!="function"||typeof Ne?.cwd!="function")throw new TypeError("Resolved a relative path without a current working directory (CWD)");Te=Ne.cwd(),(Te===void 0||Te.slice(0,3).toLowerCase()!==`${Q.toLowerCase()}\\`)&&(Te=`${Q}\\`)}else{if(typeof Ne?.cwd!="function")throw new TypeError("Resolved a drive-letter-less path without a current working directory (CWD)");Te=Ne.cwd()}a(Te);const Le=Te.length;if(Le===0)continue;let U=0,Qe="",ct=!1;const st=Te.charCodeAt(0);if(Le>1)if(g(st))if(ct=!0,g(Te.charCodeAt(1))){let Ke=2,Je=Ke;for(;Ke<Le&&!g(Te.charCodeAt(Ke));++Ke);if(Ke<Le&&Ke!==Je){const ht=Te.slice(Je,Ke);for(Je=Ke;Ke<Le&&g(Te.charCodeAt(Ke));++Ke);if(Ke<Le&&Ke!==Je){for(Je=Ke;Ke<Le&&!g(Te.charCodeAt(Ke));++Ke);Ke===Le?(Qe=`\\\\${ht}\\${Te.slice(Je)}`,U=Ke):Ke!==Je&&(Qe=`\\\\${ht}\\${Te.slice(Je,Ke)}`,U=Ke)}}}else U=1;else d(st)&&Te.charCodeAt(1)===f&&(Qe=Te.slice(0,2),U=2,Le>2&&g(Te.charCodeAt(2))&&(ct=!0,U=3));else g(st)&&(U=1,ct=!0);if(!(Qe.length>0&&Q.length>0&&Qe.toLowerCase()!==Q.toLowerCase())&&(Q.length===0&&Qe.length>0&&(Q=Qe),$||(Re=`${Te.slice(U)}\\${Re}`,$=ct),$&&Q.length>0))break}return Re=N(Re,!$,"\\",g),Q+($?"\\":"")+Re||"."}function L(z,Q){if(a(z),a(Q),z===Q)return""}function K(z,Q){L(z,Q);const Re=G(z),$=G(Q);if(Re===$||(z=Re.toLowerCase(),Q=$.toLowerCase(),z===Q))return"";let ie=0,Te=z.length;for(;ie<Te&&z.charCodeAt(ie)===i;++ie);for(;Te-1>ie&&z.charCodeAt(Te-1)===i;--Te);const Ne=Te-ie;let Le=0,U=Q.length;for(;Le<U&&Q.charCodeAt(Le)===i;++Le);for(;U-1>Le&&Q.charCodeAt(U-1)===i;--U);const Qe=U-Le,ct=Ne<Qe?Ne:Qe;let st=-1,Ke=0;for(;Ke<=ct;++Ke){if(Ke===ct){if(Qe>ct){if(Q.charCodeAt(Le+Ke)===i)return $.slice(Le+Ke+1);if(Ke===2)return $.slice(Le+Ke)}Ne>ct&&(z.charCodeAt(ie+Ke)===i?st=Ke:Ke===2&&(st=3));break}const ht=z.charCodeAt(ie+Ke),dt=Q.charCodeAt(Le+Ke);if(ht!==dt)break;ht===i&&(st=Ke)}if(Ke!==ct&&st===-1)return $;let Je="";for(st===-1&&(st=0),Ke=ie+st+1;Ke<=Te;++Ke)(Ke===Te||z.charCodeAt(Ke)===i)&&(Je.length===0?Je+="..":Je+="\\..");return Je.length>0?Je+$.slice(Le+st,U):(Le+=st,$.charCodeAt(Le)===i&&++Le,$.slice(Le,U))}const H={" ":"%09","\n":"%0A","\v":"%0B","\f":"%0C","\r":"%0D"," ":"%20"};function ae(z){return z.replaceAll(/[\s]/g,Q=>H[Q]??Q)}function re(z){if(!F(z))throw new TypeError(`Path must be absolute: received "${z}"`);const[,Q,Re]=z.match(/^(?:[/\\]{2}([^/\\]+)(?=[/\\](?:[^/\\]|$)))?(.*)/),$=new URL("file:///");if($.pathname=ae(Re.replace(/%/g,"%25")),Q!==void 0&&Q!=="localhost"&&($.hostname=Q,!$.hostname))throw new TypeError(`Invalid hostname: "${$.hostname}"`);return $}function De(z){if(typeof z!="string")return z;if(z.length===0)return"";const Q=G(z);if(Q.length>=3){if(Q.charCodeAt(0)===i){if(Q.charCodeAt(1)===i){const Re=Q.charCodeAt(2);if(Re!==h&&Re!==r)return`\\\\?\\UNC\\${Q.slice(2)}`}}else if(d(Q.charCodeAt(0))&&Q.charCodeAt(1)===f&&Q.charCodeAt(2)===i)return`\\\\?\\${Q}`}return z}function Y(z,Q){const[Re="",...$]=z,ie=Re.split(Q);let Te=ie.length,Ne="";for(const Le of $){const U=Le.split(Q);U.length<=Te&&(Te=U.length,Ne="");for(let Qe=0;Qe<Te;Qe++)if(U[Qe]!==ie[Qe]){Te=Qe,Ne=Qe===0?"":Q;break}}return ie.slice(0,Te).join(Q)+Ne}function I(z){return Y(z,C)}const W=["!","$","(",")","*","+",".","=","?","[","\\","^","{","|"],ue=["-","\\","]"];function oe(z,Q,{extended:Re=!0,globstar:$=!0,caseInsensitive:ie=!1}={}){if(Q==="")return/(?!)/;let Te=Q.length;for(;Te>1&&z.seps.includes(Q[Te-1]);Te--);Q=Q.slice(0,Te);let Ne="";for(let Le=0;Le<Q.length;){let U="";const Qe=[];let ct=!1,st=!1,Ke=!1,Je=Le;for(;Je<Q.length&&!z.seps.includes(Q[Je]);Je++){if(st){st=!1,U+=(ct?ue:W).includes(Q[Je])?`\\${Q[Je]}`:Q[Je];continue}if(Q[Je]===z.escapePrefix){st=!0;continue}if(Q[Je]==="[")if(ct){if(Q[Je+1]===":"){let ht=Je+1,dt="";for(;Q[ht+1]!==void 0&&Q[ht+1]!==":";)dt+=Q[ht+1],ht++;if(Q[ht+1]===":"&&Q[ht+2]==="]"){Je=ht+2,dt==="alnum"?U+="\\dA-Za-z":dt==="alpha"?U+="A-Za-z":dt==="ascii"?U+="\0-":dt==="blank"?U+=" ":dt==="cntrl"?U+="\0-":dt==="digit"?U+="\\d":dt==="graph"?U+="!-~":dt==="lower"?U+="a-z":dt==="print"?U+=" -~":dt==="punct"?U+=`!"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~`:dt==="space"?U+="\\s\v":dt==="upper"?U+="A-Z":dt==="word"?U+="\\w":dt==="xdigit"&&(U+="\\dA-Fa-f");continue}}}else{ct=!0,U+="[",Q[Je+1]==="!"?(Je++,U+="^"):Q[Je+1]==="^"&&(Je++,U+="\\^");continue}if(Q[Je]==="]"&&ct){ct=!1,U+="]";continue}if(ct){U+=Q[Je];continue}if(Q[Je]===")"&&Qe.length>0&&Qe[Qe.length-1]!=="BRACE"){U+=")";const ht=Qe.pop();ht==="!"?U+=z.wildcard:ht!=="@"&&(U+=ht);continue}if(Q[Je]==="|"&&Qe.length>0&&Qe[Qe.length-1]!=="BRACE"){U+="|";continue}if(Q[Je]==="+"&&Re&&Q[Je+1]==="("){Je++,Qe.push("+"),U+="(?:";continue}if(Q[Je]==="@"&&Re&&Q[Je+1]==="("){Je++,Qe.push("@"),U+="(?:";continue}if(Q[Je]==="?"){Re&&Q[Je+1]==="("?(Je++,Qe.push("?"),U+="(?:"):U+=".";continue}if(Q[Je]==="!"&&Re&&Q[Je+1]==="("){Je++,Qe.push("!"),U+="(?!";continue}if(Q[Je]==="{"){Qe.push("BRACE"),U+="(?:";continue}if(Q[Je]==="}"&&Qe[Qe.length-1]==="BRACE"){Qe.pop(),U+=")";continue}if(Q[Je]===","&&Qe[Qe.length-1]==="BRACE"){U+="|";continue}if(Q[Je]==="*"){if(Re&&Q[Je+1]==="(")Je++,Qe.push("*"),U+="(?:";else{const ht=Q[Je-1];let dt=1;for(;Q[Je+1]==="*";)Je++,dt++;const ot=Q[Je+1];$&&dt===2&&[...z.seps,void 0].includes(ht)&&[...z.seps,void 0].includes(ot)?(U+=z.globstar,Ke=!0):U+=z.wildcard}continue}U+=W.includes(Q[Je])?`\\${Q[Je]}`:Q[Je]}if(Qe.length>0||ct||st){U="";for(const ht of Q.slice(Le,Je))U+=W.includes(ht)?`\\${ht}`:ht,Ke=!1}for(Ne+=U,Ke||(Ne+=Je<Q.length?z.sep:z.sepMaybe,Ke=!0);z.seps.includes(Q[Je]);)Je++;Le=Je}return Ne=`^${Ne}$`,new RegExp(Ne,ie?"i":"")}const ne={sep:"(?:\\\\|/)+",sepMaybe:"(?:\\\\|/)*",seps:["\\","/"],globstar:"(?:[^\\\\/]*(?:\\\\|/|$)+)*",wildcard:"[^\\\\/]*",escapePrefix:"`"};function he(z,Q={}){return oe(ne,z,Q)}function ye(z){const Q={"{":"}","(":")","[":"]"},Re=/\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;if(z==="")return!1;let $;for(;$=Re.exec(z);){if($[2])return!0;let ie=$.index+$[0].length;const Te=$[1],Ne=Te?Q[Te]:null;if(Te&&Ne){const Le=z.indexOf(Ne,ie);Le!==-1&&(ie=Le+1)}z=z.slice(ie)}return!1}function ge(z,Q={}){const{globstar:Re=!1}=Q;if(z.match(/\0/g))throw new Error(`Glob contains invalid characters: "${z}"`);if(!Re)return j(z);const $=E.source,ie=new RegExp(`(?<=(${$}|^)\\*\\*${$})\\.\\.(?=${$}|$)`,"g");return j(z.replace(ie,"\0")).replace(/\0/g,"..")}function Ce(z,Q={}){const{globstar:Re=!1}=Q;if(!Re||z.length===0)return V(...z);let $;for(const ie of z){const Te=ie;Te.length>0&&($?$+=`${C}${Te}`:$=Te)}return $?ge($,{globstar:Re}):"."}return Rt.DELIMITER=w,Rt.SEPARATOR=C,Rt.SEPARATOR_PATTERN=E,Rt.basename=b,Rt.common=I,Rt.dirname=x,Rt.extname=A,Rt.format=R,Rt.fromFileUrl=S,Rt.globToRegExp=he,Rt.isAbsolute=F,Rt.isGlob=ye,Rt.join=V,Rt.joinGlobs=Ce,Rt.normalize=j,Rt.normalizeGlob=ge,Rt.parse=O,Rt.relative=K,Rt.resolve=G,Rt.toFileUrl=re,Rt.toNamespacedPath=De,Rt}var Ja,Pd;function Z1(){if(Pd)return Ja;Pd=1,Ja=function(e,n){for(var o=[],t=0;t<e.length;t++){var u=n(e[t],t);a(u)?o.push.apply(o,u):o.push(u)}return o};var a=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};return Ja}var Ya,Fd;function ew(){if(Fd)return Ya;Fd=1,Ya=a;function a(o,t,u){o instanceof RegExp&&(o=e(o,u)),t instanceof RegExp&&(t=e(t,u));var p=n(o,t,u);return p&&{start:p[0],end:p[1],pre:u.slice(0,p[0]),body:u.slice(p[0]+o.length,p[1]),post:u.slice(p[1]+t.length)}}function e(o,t){var u=t.match(o);return u?u[0]:null}a.range=n;function n(o,t,u){var p,c,r,m,i,f=u.indexOf(o),h=u.indexOf(t,f+1),s=f;if(f>=0&&h>0){if(o===t)return[f,h];for(p=[],r=u.length;s>=0&&!i;)s==f?(p.push(s),f=u.indexOf(o,s+1)):p.length==1?i=[p.pop(),h]:(c=p.pop(),c<r&&(r=c,m=h),h=u.indexOf(t,s+1)),s=f<h&&f>=0?f:h;p.length&&(i=[r,m])}return i}return Ya}var Qa,Rd;function tw(){if(Rd)return Qa;Rd=1;var a=Z1(),e=ew();Qa=f;var n="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",t="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",p="\0PERIOD"+Math.random()+"\0";function c(v){return parseInt(v,10)==v?parseInt(v,10):v.charCodeAt(0)}function r(v){return v.split("\\\\").join(n).split("\\{").join(o).split("\\}").join(t).split("\\,").join(u).split("\\.").join(p)}function m(v){return v.split(n).join("\\").split(o).join("{").split(t).join("}").split(u).join(",").split(p).join(".")}function i(v){if(!v)return[""];var S=[],b=e("{","}",v);if(!b)return v.split(",");var w=b.pre,C=b.body,E=b.post,T=w.split(",");T[T.length-1]+="{"+C+"}";var x=i(E);return E.length&&(T[T.length-1]+=x.shift(),T.push.apply(T,x)),S.push.apply(S,T),S}function f(v){return v?(v.substr(0,2)==="{}"&&(v="\\{\\}"+v.substr(2)),d(r(v),!0).map(m)):[]}function h(v){return"{"+v+"}"}function s(v){return/^-?0\d/.test(v)}function l(v,S){return v<=S}function g(v,S){return v>=S}function d(v,S){var b=[],w=e("{","}",v);if(!w||/\$$/.test(w.pre))return[v];var C=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(w.body),E=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(w.body),T=C||E,x=w.body.indexOf(",")>=0;if(!T&&!x)return w.post.match(/,.*\}/)?(v=w.pre+"{"+w.body+t+w.post,d(v)):[v];var A;if(T)A=w.body.split(/\.\./);else if(A=i(w.body),A.length===1&&(A=d(A[0],!1).map(h),A.length===1)){var B=w.post.length?d(w.post,!1):[""];return B.map(function(W){return w.pre+A[0]+W})}var k=w.pre,B=w.post.length?d(w.post,!1):[""],R;if(T){var F=c(A[0]),P=c(A[1]),N=Math.max(A[0].length,A[1].length),j=A.length==3?Math.abs(c(A[2])):1,V=l,O=P<F;O&&(j*=-1,V=g);var G=A.some(s);R=[];for(var L=F;V(L,P);L+=j){var K;if(E)K=String.fromCharCode(L),K==="\\"&&(K="");else if(K=String(L),G){var H=N-K.length;if(H>0){var ae=new Array(H+1).join("0");L<0?K="-"+ae+K.slice(1):K=ae+K}}R.push(K)}}else R=a(A,function(I){return d(I,!1)});for(var re=0;re<R.length;re++)for(var De=0;De<B.length;De++){var Y=k+R[re]+B[De];(!S||T||Y)&&b.push(Y)}return b}return Qa}var Za,_d;function rw(){if(_d)return Za;_d=1,Za=s,s.Minimatch=l;var a=function(){try{return pn}catch{}}()||{sep:"/"};s.sep=a.sep;var e=s.GLOBSTAR=l.GLOBSTAR={},n=tw(),o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},t="[^/]",u=t+"*?",p="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",c="(?:(?!(?:\\/|^)\\.).)*?",r=m("().*{}+?[]^$\\!");function m(A){return A.split("").reduce(function(k,B){return k[B]=!0,k},{})}var i=/\/+/;s.filter=f;function f(A,k){return k=k||{},function(B,R,F){return s(B,A,k)}}function h(A,k){k=k||{};var B={};return Object.keys(A).forEach(function(R){B[R]=A[R]}),Object.keys(k).forEach(function(R){B[R]=k[R]}),B}s.defaults=function(A){if(!A||typeof A!="object"||!Object.keys(A).length)return s;var k=s,B=function(F,P,N){return k(F,P,h(A,N))};return B.Minimatch=function(F,P){return new k.Minimatch(F,h(A,P))},B.Minimatch.defaults=function(F){return k.defaults(h(A,F)).Minimatch},B.filter=function(F,P){return k.filter(F,h(A,P))},B.defaults=function(F){return k.defaults(h(A,F))},B.makeRe=function(F,P){return k.makeRe(F,h(A,P))},B.braceExpand=function(F,P){return k.braceExpand(F,h(A,P))},B.match=function(R,F,P){return k.match(R,F,h(A,P))},B},l.defaults=function(A){return s.defaults(A).Minimatch};function s(A,k,B){return b(k),B||(B={}),!B.nocomment&&k.charAt(0)==="#"?!1:new l(k,B).match(A)}function l(A,k){if(!(this instanceof l))return new l(A,k);b(A),k||(k={}),A=A.trim(),!k.allowWindowsEscape&&a.sep!=="/"&&(A=A.split(a.sep).join("/")),this.options=k,this.set=[],this.pattern=A,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!k.partial,this.make()}l.prototype.debug=function(){},l.prototype.make=g;function g(){var A=this.pattern,k=this.options;if(!k.nocomment&&A.charAt(0)==="#"){this.comment=!0;return}if(!A){this.empty=!0;return}this.parseNegate();var B=this.globSet=this.braceExpand();k.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,B),B=this.globParts=B.map(function(R){return R.split(i)}),this.debug(this.pattern,B),B=B.map(function(R,F,P){return R.map(this.parse,this)},this),this.debug(this.pattern,B),B=B.filter(function(R){return R.indexOf(!1)===-1}),this.debug(this.pattern,B),this.set=B}l.prototype.parseNegate=d;function d(){var A=this.pattern,k=!1,B=this.options,R=0;if(!B.nonegate){for(var F=0,P=A.length;F<P&&A.charAt(F)==="!";F++)k=!k,R++;R&&(this.pattern=A.substr(R)),this.negate=k}}s.braceExpand=function(A,k){return v(A,k)},l.prototype.braceExpand=v;function v(A,k){return k||(this instanceof l?k=this.options:k={}),A=typeof A>"u"?this.pattern:A,b(A),k.nobrace||!/\{(?:(?!\{).)*\}/.test(A)?[A]:n(A)}var S=1024*64,b=function(A){if(typeof A!="string")throw new TypeError("invalid pattern");if(A.length>S)throw new TypeError("pattern is too long")};l.prototype.parse=C;var w={};function C(A,k){b(A);var B=this.options;if(A==="**")if(B.noglobstar)A="*";else return e;if(A==="")return"";var R="",F=!!B.nocase,P=!1,N=[],j=[],V,O=!1,G=-1,L=-1,K=A.charAt(0)==="."?"":B.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",H=this;function ae(){if(V){switch(V){case"*":R+=u,F=!0;break;case"?":R+=t,F=!0;break;default:R+="\\"+V;break}H.debug("clearStateChar %j %j",V,R),V=!1}}for(var re=0,De=A.length,Y;re<De&&(Y=A.charAt(re));re++){if(this.debug("%s %s %s %j",A,re,R,Y),P&&r[Y]){R+="\\"+Y,P=!1;continue}switch(Y){case"/":return!1;case"\\":ae(),P=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",A,re,R,Y),O){this.debug(" in class"),Y==="!"&&re===L+1&&(Y="^"),R+=Y;continue}H.debug("call clearStateChar %j",V),ae(),V=Y,B.noext&&ae();continue;case"(":if(O){R+="(";continue}if(!V){R+="\\(";continue}N.push({type:V,start:re-1,reStart:R.length,open:o[V].open,close:o[V].close}),R+=V==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",V,R),V=!1;continue;case")":if(O||!N.length){R+="\\)";continue}ae(),F=!0;var I=N.pop();R+=I.close,I.type==="!"&&j.push(I),I.reEnd=R.length;continue;case"|":if(O||!N.length||P){R+="\\|",P=!1;continue}ae(),R+="|";continue;case"[":if(ae(),O){R+="\\"+Y;continue}O=!0,L=re,G=R.length,R+=Y;continue;case"]":if(re===L+1||!O){R+="\\"+Y,P=!1;continue}var W=A.substring(L+1,re);try{RegExp("["+W+"]")}catch{var ue=this.parse(W,w);R=R.substr(0,G)+"\\["+ue[0]+"\\]",F=F||ue[1],O=!1;continue}F=!0,O=!1,R+=Y;continue;default:ae(),P?P=!1:r[Y]&&!(Y==="^"&&O)&&(R+="\\"),R+=Y}}for(O&&(W=A.substr(L+1),ue=this.parse(W,w),R=R.substr(0,G)+"\\["+ue[0],F=F||ue[1]),I=N.pop();I;I=N.pop()){var oe=R.slice(I.reStart+I.open.length);this.debug("setting tail",R,I),oe=oe.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(Qe,ct,st){return st||(st="\\"),ct+ct+st+"|"}),this.debug(`tail=%j
|
|
51
|
+
%s`,oe,oe,I,R);var ne=I.type==="*"?u:I.type==="?"?t:"\\"+I.type;F=!0,R=R.slice(0,I.reStart)+ne+"\\("+oe}ae(),P&&(R+="\\\\");var he=!1;switch(R.charAt(0)){case"[":case".":case"(":he=!0}for(var ye=j.length-1;ye>-1;ye--){var ge=j[ye],Ce=R.slice(0,ge.reStart),z=R.slice(ge.reStart,ge.reEnd-8),Q=R.slice(ge.reEnd-8,ge.reEnd),Re=R.slice(ge.reEnd);Q+=Re;var $=Ce.split("(").length-1,ie=Re;for(re=0;re<$;re++)ie=ie.replace(/\)[+*?]?/,"");Re=ie;var Te="";Re===""&&k!==w&&(Te="$");var Ne=Ce+z+Re+Te+Q;R=Ne}if(R!==""&&F&&(R="(?=.)"+R),he&&(R=K+R),k===w)return[R,F];if(!F)return T(A);var Le=B.nocase?"i":"";try{var U=new RegExp("^"+R+"$",Le)}catch{return new RegExp("$.")}return U._glob=A,U._src=R,U}s.makeRe=function(A,k){return new l(A,k||{}).makeRe()},l.prototype.makeRe=E;function E(){if(this.regexp||this.regexp===!1)return this.regexp;var A=this.set;if(!A.length)return this.regexp=!1,this.regexp;var k=this.options,B=k.noglobstar?u:k.dot?p:c,R=k.nocase?"i":"",F=A.map(function(P){return P.map(function(N){return N===e?B:typeof N=="string"?x(N):N._src}).join("\\/")}).join("|");F="^(?:"+F+")$",this.negate&&(F="^(?!"+F+").*$");try{this.regexp=new RegExp(F,R)}catch{this.regexp=!1}return this.regexp}s.match=function(A,k,B){B=B||{};var R=new l(k,B);return A=A.filter(function(F){return R.match(F)}),R.options.nonull&&!A.length&&A.push(k),A},l.prototype.match=function(k,B){if(typeof B>"u"&&(B=this.partial),this.debug("match",k,this.pattern),this.comment)return!1;if(this.empty)return k==="";if(k==="/"&&B)return!0;var R=this.options;a.sep!=="/"&&(k=k.split(a.sep).join("/")),k=k.split(i),this.debug(this.pattern,"split",k);var F=this.set;this.debug(this.pattern,"set",F);var P,N;for(N=k.length-1;N>=0&&(P=k[N],!P);N--);for(N=0;N<F.length;N++){var j=F[N],V=k;R.matchBase&&j.length===1&&(V=[P]);var O=this.matchOne(V,j,B);if(O)return R.flipNegate?!0:!this.negate}return R.flipNegate?!1:this.negate},l.prototype.matchOne=function(A,k,B){var R=this.options;this.debug("matchOne",{this:this,file:A,pattern:k}),this.debug("matchOne",A.length,k.length);for(var F=0,P=0,N=A.length,j=k.length;F<N&&P<j;F++,P++){this.debug("matchOne loop");var V=k[P],O=A[F];if(this.debug(k,V,O),V===!1)return!1;if(V===e){this.debug("GLOBSTAR",[k,V,O]);var G=F,L=P+1;if(L===j){for(this.debug("** at the end");F<N;F++)if(A[F]==="."||A[F]===".."||!R.dot&&A[F].charAt(0)===".")return!1;return!0}for(;G<N;){var K=A[G];if(this.debug(`
|
|
52
|
+
globstar while`,A,G,k,L,K),this.matchOne(A.slice(G),k.slice(L),B))return this.debug("globstar found match!",G,N,K),!0;if(K==="."||K===".."||!R.dot&&K.charAt(0)==="."){this.debug("dot detected!",A,G,k,L);break}this.debug("globstar swallow a segment, and continue"),G++}return!!(B&&(this.debug(`
|
|
53
|
+
>>> no match, partial?`,A,G,k,L),G===N))}var H;if(typeof V=="string"?(H=O===V,this.debug("string match",V,O,H)):(H=O.match(V),this.debug("pattern match",V,O,H)),!H)return!1}if(F===N&&P===j)return!0;if(F===N)return B;if(P===j)return F===N-1&&A[F]==="";throw new Error("wtf?")};function T(A){return A.replace(/\\(.)/g,"$1")}function x(A){return A.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}return Za}var tn={},Bd;function nw(){if(Bd)return tn;Bd=1;class a{static overwrite(m,i){return i}static replace(m,i){return typeof i<"u"?i:m}static assign(m,i){return Object.assign({},m,i)}}class e{static array(m){if(!Array.isArray(m))throw new TypeError("Expected an array.")}static boolean(m){if(typeof m!="boolean")throw new TypeError("Expected a Boolean.")}static number(m){if(typeof m!="number")throw new TypeError("Expected a number.")}static object(m){if(!m||typeof m!="object")throw new TypeError("Expected an object.")}static"object?"(m){if(typeof m!="object")throw new TypeError("Expected an object or null.")}static string(m){if(typeof m!="string")throw new TypeError("Expected a string.")}static"string!"(m){if(typeof m!="string"||m.length===0)throw new TypeError("Expected a non-empty string.")}}function n(r,m){let i=!1;if(m.schema)if(typeof m.schema=="object")i=!0;else throw new TypeError("Schema must be an object.");if(typeof m.merge=="string"){if(!(m.merge in a))throw new TypeError(`Definition for key "${r}" missing valid merge strategy.`)}else if(!i&&typeof m.merge!="function")throw new TypeError(`Definition for key "${r}" must have a merge property.`);if(typeof m.validate=="string"){if(!(m.validate in e))throw new TypeError(`Definition for key "${r}" missing valid validation strategy.`)}else if(!i&&typeof m.validate!="function")throw new TypeError(`Definition for key "${r}" must have a validate() method.`)}class o extends Error{constructor(m){super(`Unexpected key "${m}" found.`)}}class t extends Error{constructor(m){super(`Missing required key "${m}".`)}}class u extends Error{constructor(m,i){super(`Key "${m}" requires keys "${i.join('", "')}".`)}}class p extends Error{constructor(m,i){super(`Key "${m}": ${i.message}`,{cause:i});for(const f of Object.keys(i))f in this||(this[f]=i[f])}}class c{#e=new Map;#t=new Map;constructor(m){if(!m)throw new Error("Schema definitions missing.");for(const i of Object.keys(m)){if(n(i,m[i]),typeof m[i].schema=="object"){const f=new c(m[i].schema);m[i]={...m[i],merge(h={},s={}){return f.merge(h,s)},validate(h){e.object(h),f.validate(h)}}}typeof m[i].merge=="string"&&(m[i]={...m[i],merge:a[m[i].merge]}),typeof m[i].validate=="string"&&(m[i]={...m[i],validate:e[m[i].validate]}),this.#e.set(i,m[i]),m[i].required&&this.#t.set(i,m[i])}}hasKey(m){return this.#e.has(m)}merge(...m){if(m.length<2)throw new TypeError("merge() requires at least two arguments.");if(m.some(i=>i===null||typeof i!="object"))throw new TypeError("All arguments must be objects.");return m.reduce((i,f)=>{this.validate(f);for(const[h,s]of this.#e)try{if(h in i||h in f){const g=s.merge.call(this,i[h],f[h]);g!==void 0&&(i[h]=g)}}catch(l){throw new p(h,l)}return i},{})}validate(m){for(const i of Object.keys(m)){if(!this.hasKey(i))throw new o(i);const f=this.#e.get(i);if(Array.isArray(f.requires)&&!f.requires.every(h=>h in m))throw new u(i,f.requires);try{f.validate.call(f,m[i])}catch(h){throw new p(i,h)}}for(const[i]of this.#t)if(!(i in m))throw new t(i)}}return tn.MergeStrategy=a,tn.ObjectSchema=c,tn.ValidationStrategy=e,tn}var Ld;function Od(){return Ld||(Ld=1,function(a){var e=Y1(),n=Q1(),o=rw(),t=kr(),u=nw();function p(ne){var he=Object.create(null);return ne&&Object.keys(ne).forEach(function(ye){if(ye!=="default"){var ge=Object.getOwnPropertyDescriptor(ne,ye);Object.defineProperty(he,ye,ge.get?ge:{enumerable:!0,get:function(){return ne[ye]}})}}),he.default=ne,Object.freeze(he)}var c=p(e),r=p(n);const m={required:!1,merge(){},validate(){}},i=Object.freeze({name:{required:!1,merge(){},validate(ne){if(typeof ne!="string")throw new TypeError("Property must be a string.")}},basePath:m,files:m,ignores:m});function f(ne){if(!Array.isArray(ne))throw new TypeError("Expected value to be an array.")}function h(ne){if(f(ne),ne.some(he=>typeof he!="string"&&typeof he!="function"))throw new TypeError("Expected array to only contain strings and functions.")}function s(ne){if(!Array.isArray(ne)||ne.length===0)throw new TypeError("Expected value to be a non-empty array.")}const l=Object.freeze({basePath:{required:!1,merge(){},validate(ne){if(typeof ne!="string")throw new TypeError("Expected value to be a string.")}},files:{required:!1,merge(){},validate(ne){s(ne),ne.forEach(he=>{if(Array.isArray(he))h(he);else if(typeof he!="string"&&typeof he!="function")throw new TypeError("Items must be a string, a function, or an array of strings and functions.")})}},ignores:{required:!1,merge(){},validate:h}}),g=o.Minimatch,d=t("@eslint/config-array"),v=new Map,S=new Map,b={dot:!0,allowWindowsEscape:!0},w=new Set(["array","function"]),C=new Set(["name","basePath"]),E=new u.ObjectSchema(l),T=Object.freeze({status:"external"}),x=Object.freeze({status:"ignored"}),A=Object.freeze({status:"unconfigured"}),k=/^\.\.(?:\/|$)/u;class B extends Error{constructor(he,ye,{cause:ge,message:Ce}){const z=Ce||ge.message;if(super(`Config ${he}: ${z}`,{cause:ge}),ge)for(const Q of Object.keys(ge))Q in this||(this[Q]=ge[Q]);this.name="ConfigError",this.index=ye}}function R(ne){return ne&&typeof ne.name=="string"&&ne.name?`"${ne.name}"`:"(unnamed)"}function F(ne,he,ye){const ge=R(ne);throw new B(ge,he,{cause:ye})}function P(ne){return typeof ne=="string"}function N(ne,he){if(ne===null)throw new B(R(ne),he,{message:"Unexpected null config."});if(ne===void 0)throw new B(R(ne),he,{message:"Unexpected undefined config."});if(typeof ne!="object")throw new B(R(ne),he,{message:"Unexpected non-object config."});const ye={};"basePath"in ne&&(ye.basePath=ne.basePath),"files"in ne&&(ye.files=ne.files),"ignores"in ne&&(ye.ignores=ne.ignores);try{E.validate(ye)}catch(ge){F(ne,he,ge)}}function j(ne,he,ye={}){let ge=v;ye.flipNegate&&(ge=S);let Ce=ge.get(he);return Ce||(Ce=new g(he,Object.assign({},b,ye)),ge.set(he,Ce)),Ce.match(ne)}function V(ne){if(P(ne)){if(ne.startsWith("./"))return ne.slice(2);if(ne.startsWith("!./"))return`!${ne.slice(3)}`}return ne}function O(ne){return P(ne)&&(ne.startsWith("./")||ne.startsWith("!./"))}function G(ne,he,ye){if(!ne)return ne;const ge=typeof ne.basePath=="string";let Ce=!1;if(ge&&(Ce=!0),!Ce&&Array.isArray(ne.files)&&(Ce=ne.files.some(Q=>Array.isArray(Q)?Q.some(O):O(Q))),!Ce&&Array.isArray(ne.ignores)&&(Ce=ne.ignores.some(O)),!Ce)return ne;const z={...ne};return ge&&(ye.isAbsolute(ne.basePath)?z.basePath=ye.toNamespacedPath(ne.basePath):z.basePath=ye.resolve(he,ne.basePath)),Array.isArray(z.files)&&(z.files=z.files.map(Q=>Array.isArray(Q)?Q.map(V):V(Q))),Array.isArray(z.ignores)&&(z.ignores=z.ignores.map(V)),z}async function L(ne,he,ye,ge,Ce){const z=ye.includes("function"),Q=ye.includes("array");async function*Re(Te){for(let Ne of Te){if(typeof Ne=="function"){if(!z)throw new TypeError("Unexpected function.");Ne=Ne(he),Ne.then&&(Ne=await Ne)}if(Array.isArray(Ne)){if(!Q)throw new TypeError("Unexpected array.");yield*Re(Ne)}else{if(typeof Ne=="function")throw new TypeError("A config function can only return an object or array.");yield Ne}}}const $=await Re(ne),ie=[];for await(const Te of $)ie.push(G(Te,ge,Ce));return ie}function K(ne,he,ye,ge,Ce){const z=ye.includes("function"),Q=ye.includes("array");function*Re(ie){for(let Te of ie){if(typeof Te=="function"){if(!z)throw new TypeError("Unexpected function.");if(Te=Te(he),Te.then)throw new TypeError("Async config functions are not supported.")}if(Array.isArray(Te)){if(!Q)throw new TypeError("Unexpected array.");yield*Re(Te)}else{if(typeof Te=="function")throw new TypeError("A config function can only return an object or array.");yield Te}}}const $=[];for(const ie of Re(ne))$.push(G(ie,ge,Ce));return $}function H(ne,he,ye){const ge=ye.resolve(he,ne),Ce=ye.toNamespacedPath(ge);return ye.relative(he,Ce).replaceAll(ye.SEPARATOR,"/")}function ae(ne,he,ye,{basePath:ge,path:Ce}={}){let z=!1;for(const Q of ne){let Re=ye;if(Q.basePath){if(Re=H(Ce.resolve(ge,ye),Q.basePath,Ce),Re===""||k.test(Re))continue;ye.endsWith("/")&&(Re+="/")}z=Q.ignores.reduce(($,ie)=>$?typeof ie=="string"&&ie.startsWith("!")?!j(Re,ie,{flipNegate:!0}):$:typeof ie=="function"?ie(he):ie.startsWith("!")?!1:j(Re,ie),z)}return z}function re(ne,he,ye){function ge(z){if(P(z))return j(he,z);if(typeof z=="function")return z(ne);throw new TypeError(`Unexpected matcher type ${z}.`)}let Ce=ye.files.some(z=>Array.isArray(z)?z.every(ge):ge(z));return Ce&&ye.ignores&&(Ce=!ae([{ignores:ye.ignores}],ne,he)),Ce}function De(ne){if(!ne.isNormalized())throw new Error("ConfigArray must be normalized to perform this operation.")}function Y(ne){if(ne.length>2)throw new TypeError("configTypes must be an array with at most two items.");for(const he of ne)if(!w.has(he))throw new TypeError(`Unexpected config type "${he}" found. Expected one of: "object", "array", "function".`)}function I(ne){if(ne.startsWith("/"))return c;if(/^(?:[A-Za-z]:[/\\]|[/\\]{2})/u.test(ne))return r;throw new Error(`Expected an absolute path but received "${ne}"`)}const W={isNormalized:Symbol("isNormalized"),configCache:Symbol("configCache"),schema:Symbol("schema"),finalizeConfig:Symbol("finalizeConfig"),preprocessConfig:Symbol("preprocessConfig")},ue=new WeakMap;class oe extends Array{#e;#t;constructor(he,{basePath:ye="/",normalized:ge=!1,schema:Ce,extraConfigTypes:z=[]}={}){if(super(),this[W.isNormalized]=ge,this[W.schema]=new u.ObjectSchema(Object.assign({},Ce,i)),!P(ye)||!ye)throw new TypeError("basePath must be a non-empty string");this.basePath=ye,Y(z),this.extraConfigTypes=[...z],Object.freeze(this.extraConfigTypes),this[W.configCache]=new Map,ue.set(this,{explicitMatches:new Map,directoryMatches:new Map,files:void 0,ignores:void 0}),Array.isArray(he)?this.push(...he):this.push(he),this.#t=I(ye),this.#e=this.#t.toNamespacedPath(ye)}static get[Symbol.species](){return Array}get files(){De(this);const he=ue.get(this);if(he.files)return he.files;const ye=[];for(const ge of this)ge.files&&ge.files.forEach(Ce=>{ye.push(Ce)});return he.files=ye,ue.set(this,he),ye}get ignores(){De(this);const he=ue.get(this);if(he.ignores)return he.ignores;const ye=[];for(const ge of this)ge.ignores&&Object.keys(ge).filter(Ce=>!C.has(Ce)).length===1&&ye.push(ge);return he.ignores=ye,ue.set(this,he),ye}isNormalized(){return this[W.isNormalized]}async normalize(he={}){if(!this.isNormalized()){const ye=await L(this,he,this.extraConfigTypes,this.#e,this.#t);this.length=0,this.push(...ye.map(this[W.preprocessConfig].bind(this))),this.forEach(N),this[W.isNormalized]=!0,Object.freeze(this)}return this}normalizeSync(he={}){if(!this.isNormalized()){const ye=K(this,he,this.extraConfigTypes,this.#e,this.#t);this.length=0,this.push(...ye.map(this[W.preprocessConfig].bind(this))),this.forEach(N),this[W.isNormalized]=!0,Object.freeze(this)}return this}[W.finalizeConfig](he){return he}[W.preprocessConfig](he){return he}getConfigWithStatus(he){De(this);const ye=this[W.configCache];if(ye.has(he))return ye.get(he);const ge=H(he,this.#e,this.#t);if(k.test(ge))return d(`No config for file ${he} outside of base path`),ye.set(he,T),T;if(this.isDirectoryIgnored(this.#t.dirname(he)))return d(`Ignoring ${he} based on directory pattern`),ye.set(he,x),x;if(ae(this.ignores,he,ge,{basePath:this.#e,path:this.#t}))return d(`Ignoring ${he} based on file pattern`),ye.set(he,x),x;const Ce=[];let z=!1;const Q=/^\*$|^!|\/\*{1,2}$/u;if(this.forEach((Te,Ne)=>{const Le=Te.basePath?H(this.#t.resolve(this.#e,he),Te.basePath,this.#t):ge;if(Te.basePath&&k.test(Le)){d(`Skipped config found for ${he} (based on config's base path: ${Te.basePath}`);return}if(!Te.files){if(!Te.ignores){d(`Universal config found for ${he}`),Ce.push(Ne);return}if(Object.keys(Te).filter(ct=>!C.has(ct)).length===1){d(`Skipped config found for ${he} (global ignores)`);return}if(ae([{ignores:Te.ignores}],he,Le)){d(`Skipped config found for ${he} (based on ignores: ${Te.ignores})`);return}d(`Matching config found for ${he} (based on ignores: ${Te.ignores})`),Ce.push(Ne);return}const U=[],Qe=Te.files.filter(ct=>Array.isArray(ct)?ct.every(st=>Q.test(st))?!0:(U.push(ct),!1):Q.test(ct)?!0:(U.push(ct),!1));if(Qe.length){if(d("Universal files patterns found. Checking carefully."),U.length&&re(he,Le,{files:U,ignores:Te.ignores})){d(`Matching config found for ${he}`),Ce.push(Ne),z=!0;return}if(Qe.length&&re(he,Le,{files:Qe,ignores:Te.ignores})){d(`Matching config found for ${he}`),Ce.push(Ne);return}return}re(he,Le,Te)&&(d(`Matching config found for ${he}`),Ce.push(Ne),z=!0)}),!z)return d(`No matching configs found for ${he}`),ye.set(he,A),A;const Re=Ce.toString();let $=ye.get(Re);if($)return ye.set(he,$),$;let ie=Ce.reduce((Te,Ne)=>{try{return this[W.schema].merge(Te,this[Ne])}catch(Le){F(this[Ne],Ne,Le)}},{});return ie=this[W.finalizeConfig](ie),$=Object.freeze({config:ie,status:"matched"}),ye.set(he,$),ye.set(Re,$),$}getConfig(he){return this.getConfigWithStatus(he).config}getConfigStatus(he){return this.getConfigWithStatus(he).status}isIgnored(he){return this.isFileIgnored(he)}isFileIgnored(he){return this.getConfigStatus(he)==="ignored"}isDirectoryIgnored(he){De(this);const ye=H(he,this.#e,this.#t);if(ye==="")return!1;if(k.test(ye))return!0;const ge=ue.get(this).directoryMatches;if(ge.has(ye))return ge.get(ye);const Ce=ye.split("/");let z="",Q;do z+=`${Ce.shift()}/`,Q=ae(this.ignores,this.#t.join(this.basePath,z),z,{basePath:this.#e,path:this.#t}),ge.set(z,Q);while(!Q&&Ce.length);return ge.set(ye,Q),Q}}Object.defineProperty(a,"ObjectSchema",{enumerable:!0,get:function(){return u.ObjectSchema}}),a.ConfigArray=oe,a.ConfigArraySymbol=W}(Xa)),Xa}var sw="http://json-schema.org/draft-04/schema#",aw="http://json-schema.org/draft-04/schema#",iw="Core schema meta-schema",ow={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},lw="object",uw={id:{type:"string"},$schema:{type:"string"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},cw={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},fw={id:sw,$schema:aw,description:iw,definitions:ow,type:lw,properties:uw,dependencies:cw,default:{}},ei,Nd;function pw(){if(Nd)return ei;Nd=1;const a=Eh(),e=fw;return ei=(n={})=>{const o=new a({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:"ignore",verbose:!0,schemaId:"auto",...n});return o.addMetaSchema(e),o._opts.defaultMeta=e.id,o},ei}var mw={"generator-star":["generator-star-spacing"],"global-strict":["strict"],"no-arrow-condition":["no-confusing-arrow","no-constant-condition"],"no-comma-dangle":["comma-dangle"],"no-empty-class":["no-empty-character-class"],"no-empty-label":["no-labels"],"no-extra-strict":["strict"],"no-reserved-keys":["quote-props"],"no-space-before-semi":["semi-spacing"],"no-wrap-func":["no-extra-parens"],"space-after-function-name":["space-before-function-paren"],"space-after-keywords":["keyword-spacing"],"space-before-function-parentheses":["space-before-function-paren"],"space-before-keywords":["keyword-spacing"],"space-in-brackets":["object-curly-spacing","array-bracket-spacing","computed-property-spacing"],"space-return-throw-case":["keyword-spacing"],"space-unary-word-ops":["space-unary-ops"],"spaced-line-comment":["spaced-comment"]},Md={rules:mw},ti,jd;function ri(){if(jd)return ti;jd=1;const{deepMergeArrays:a}=wd(),{flatConfigSchema:e,hasMethod:n}=Ka(),{ObjectSchema:o}=Od(),u=pw()(),p=Md,c=Object.freeze({type:"array",minItems:0,maxItems:0}),r=new Map([[0,0],[1,1],[2,2],["off",0],["warn",1],["error",2]]),m=new WeakMap;function i({pluginName:C,ruleName:E},T){const x=C==="@"?E:`${C}/${E}`,A=`Key "rules": Key "${x}"`;let k=`${A}: Could not find plugin "${C}" in configuration.`;const B=k;if(T.plugins&&T.plugins[C]){const F=p.rules[E];if(C==="@"&&F)k=`${A}: Rule "${E}" was removed and replaced by "${F}".`;else{k=`${A}: Could not find "${E}" in plugin "${C}".`;for(const[P,N]of Object.entries(T.plugins))if(N.rules&&N.rules[E]){k+=` Did you mean "${P}/${E}"?`;break}}}const R=new TypeError(k);throw k===B&&(R.messageTemplate="config-plugin-missing",R.messageData={pluginName:C,ruleId:x}),R}class f extends Error{constructor(E,T){super(`Error while processing options validation schema of rule '${E}': ${T.message}`,{cause:T}),this.code="ESLINT_INVALID_RULE_OPTIONS_SCHEMA"}}function h(C){let E,T;return C.includes("/")?(C.startsWith("@")?E=C.slice(0,C.lastIndexOf("/")):E=C.slice(0,C.indexOf("/")),T=C.slice(E.length+1)):(E="@",T=C),{pluginName:E,ruleName:T}}function s(C,E){const{pluginName:T,ruleName:x}=h(C);return E.plugins?.[T]?.rules?.[x]}function l(C){if(!C.meta)return{...c};const E=C.meta.schema;if(typeof E>"u")return{...c};if(E===!1)return null;if(typeof E!="object"||E===null)throw new TypeError("Rule's `meta.schema` must be an array or object");return Array.isArray(E)?E.length?{type:"array",items:E,minItems:0,maxItems:E.length}:{...c}:E}function g(C){const E=C.split("/");return{objectName:E.pop(),pluginName:E.join("/")}}function d(C){let E=C.name;if(!E&&(!C.meta||(E=C.meta.name,!E)))return null;let T=C.version;return T||(T=C.meta&&C.meta.version),T?`${E}@${T}`:E}function v(C,E,T){if(typeof C=="function"){const x=new TypeError(`Cannot serialize key "${E}" in "${T}": Function values are not supported.`);throw x.messageTemplate="config-serialize-function",x.messageData={key:E,objectKey:T},x}}function S(C,E="languageOptions"){if(typeof C.toJSON=="function"){const x=C.toJSON();return v(x,"toJSON",E),x}const T={};for(const[x,A]of Object.entries(C)){if(A){if(typeof A=="object"){const k=d(A);typeof A.toJSON=="function"?(T[x]=A.toJSON(),v(T[x],x,E)):k&&n(A)?T[x]=k:T[x]=S(A,x);continue}v(A,x,E)}T[x]=A}return T}function b(C,E){if(!m.has(C))try{const T=l(C);T&&m.set(C,u.compile(T))}catch(T){throw new f(E,T)}return m.get(C)}class w{#e;#t;constructor(E){const{plugins:T,language:x,languageOptions:A,processor:k,...B}=E;if(new o(e).validate(E),Object.assign(this,B),!x)throw new TypeError("Key 'language' is required.");this.plugins=T,this.language=x;const{pluginName:F,objectName:P}=g(x);if(this.#e=x,!T||!T[F]||!T[F].languages||!T[F].languages[P])throw new TypeError(`Key "language": Could not find "${P}" in plugin "${F}".`);this.language=T[F].languages[P],this.language.defaultLanguageOptions??A?this.languageOptions=e.languageOptions.merge(this.language.defaultLanguageOptions,A):this.languageOptions={};try{this.language.validateLanguageOptions(this.languageOptions)}catch(N){throw new TypeError(`Key "languageOptions": ${N.message}`,{cause:N})}if(this.language.normalizeLanguageOptions&&(this.languageOptions=this.language.normalizeLanguageOptions(this.languageOptions)),k)if(this.processor=k,typeof k=="string"){const{pluginName:N,objectName:j}=g(k);if(this.#t=k,!T||!T[N]||!T[N].processors||!T[N].processors[j])throw new TypeError(`Key "processor": Could not find "${j}" in plugin "${N}".`);this.processor=T[N].processors[j]}else if(typeof k=="object")this.#t=d(k),this.processor=k;else throw new TypeError("Key 'processor' must be a string or an object.");this.rules&&(this.#r(),this.validateRulesConfig(this.rules))}toJSON(){if(this.processor&&!this.#t)throw new Error("Could not serialize processor object (missing 'meta' object).");if(!this.#e)throw new Error("Could not serialize language object (missing 'meta' object).");return{...this,plugins:Object.entries(this.plugins).map(([E,T])=>{const x=d(T);return x?`${E}:${x}`:E}),language:this.#e,languageOptions:S(this.languageOptions),processor:this.#t}}getRuleDefinition(E){return s(E,this)}#r(){for(const[E,T]of Object.entries(this.rules)){let x=Array.isArray(T)?T:[T];x[0]=r.get(x[0]);const A=s(E,this),k=x.slice(1),B=a(A?.meta?.defaultOptions,k);B.length&&(x=[x[0],...B]),this.rules[E]=x}}validateRulesConfig(E){if(!E)throw new TypeError("Config is required for validation.");for(const[T,x]of Object.entries(E)){if(T==="__proto__"||x[0]===0)continue;const A=s(T,this);A||i(h(T),this);const k=b(A,T);if(k&&(k(x.slice(1)),k.errors))throw new Error(`Key "rules": Key "${T}":
|
|
54
|
+
${k.errors.map(B=>{if(B.keyword==="additionalProperties"&&B.schema===!1&&typeof B.parentSchema?.properties=="object"&&typeof B.params?.additionalProperty=="string"){const R=Object.keys(B.parentSchema.properties).map(F=>`"${F}"`);return` Value ${JSON.stringify(B.data)} ${B.message}.
|
|
55
|
+
Unexpected property "${B.params.additionalProperty}". Expected properties: ${R.join(", ")}.
|
|
56
|
+
`}return` Value ${JSON.stringify(B.data)} ${B.message}.
|
|
57
|
+
`}).join("")}`)}}static getRuleOptionsSchema(E){return l(E)}static getRuleNumericSeverity(E){const T=Array.isArray(E)?E[0]:E;return r.has(T)?r.get(T):typeof T=="string"?r.get(T.toLowerCase())??0:0}}return ti={Config:w},ti}var ni,Ud;function hw(){if(Ud)return ni;Ud=1;const a=Rn(),{Config:e}=ri();function n(m,i){return m.line-i.line||m.column-i.column}function o(m){const i=new Map;for(const f of m){const{unprocessedDirective:{parentDirective:h}}=f;i.has(h)?i.get(h).push(f):i.set(h,[f])}return[...i.values()]}function t(m,i,f){const h=i.value.trim(),s=f.text.indexOf(h,f.getRange(i.node)[0]);return m.map(l=>{const{ruleId:g}=l,v=new RegExp(String.raw`(?:^|\s*,\s*)(?<quote>['"]?)${a(g)}\k<quote>(?:\s*,\s*|$)`,"u").exec(h),S=v[0],b=s+v.index,w=b+S.length,C=S.indexOf(","),E=S.lastIndexOf(",");let T,x;return C!==E?(T=b+C,x=b+E):(T=b,x=w),{description:`'${g}'`,fix:{range:[T,x],text:""},unprocessedDirective:l.unprocessedDirective}})}function u(m,i,f){const h=f.getRange(i),s=m.filter(l=>l.ruleId).map(l=>`'${l.ruleId}'`);return{description:s.length<=2?s.join(" or "):`${s.slice(0,s.length-1).join(", ")}, or ${s.at(-1)}`,fix:{range:h,text:" "},unprocessedDirective:m[0].unprocessedDirective}}function p(m,i){return o(m).flatMap(h=>{const{parentDirective:s}=h[0].unprocessedDirective,l=new Set(s.ruleIds);for(const g of h)l.delete(g.ruleId);return l.size?t(h,s,i):[u(h,s.node,i)]})}function c(m){const i=new Map,f=new Set;for(let h=m.length-1;h>=0;h--){const s=m[h];if(s.type==="disable"){if(i.size===0)continue;if(s.ruleId===null){for(const l of i.values())f.add(l);i.clear()}else{const l=i.get(s.ruleId);if(l)f.add(l);else{const g=i.get(null);g&&f.add(g)}}}else s.type==="enable"&&(s.ruleId===null?(i.clear(),i.set(null,s)):i.set(s.ruleId,s))}return f}function r(m){const i=[],f=new Set,{sourceCode:h}=m;for(const b of m.problems){let w=[],C=0;for(;C<m.directives.length&&n(m.directives[C],b)<=0;){const E=m.directives[C++];if(E.ruleId===null||E.ruleId===b.ruleId)switch(E.type){case"disable":w.push(E);break;case"enable":w=[];break}}if(w.length>0){const E=w.map(T=>({kind:"directive",justification:T.unprocessedDirective.justification}));b.suppressions?b.suppressions=b.suppressions.concat(E):(b.suppressions=E,f.add(w.at(-1)))}i.push(b)}const s=m.directives.filter(b=>b.type==="disable"&&!f.has(b)&&!m.rulesToIgnore.has(b.ruleId)),l=new Set(m.directives.filter(b=>b.unprocessedDirective.type==="enable"&&!m.rulesToIgnore.has(b.ruleId)));if(l.size>0)for(const b of c(m.directives))l.delete(b);const g=p(s,h).concat(p(l,h)),d=m.language.columnStart===1?0:1,v=m.language.lineStart===1?0:1,S=g.map(({description:b,fix:w,unprocessedDirective:C})=>{const{parentDirective:E,type:T,line:x,column:A}=C;let k;T==="enable"?k=b?`Unused eslint-enable directive (no matching eslint-disable directives were found for ${b}).`:"Unused eslint-enable directive (no matching eslint-disable directives were found).":k=b?`Unused eslint-disable directive (no problems were reported from ${b}).`:"Unused eslint-disable directive (no problems were reported).";const B=h.getLoc(E.node);return{ruleId:null,message:k,line:T==="disable-next-line"?B.start.line+v:x,column:T==="disable-next-line"?B.start.column+d:A,severity:m.reportUnusedDisableDirectives==="warn"?1:2,nodeType:null,...m.disableFixes?{}:{fix:w}}});return{problems:i,unusedDirectives:S}}return ni=({language:m,sourceCode:i,directives:f,disableFixes:h,problems:s,configuredRules:l,ruleFilter:g,reportUnusedDisableDirectives:d="off"})=>{const v=f.filter(E=>E.type==="disable"||E.type==="enable").map(E=>Object.assign({},E,{unprocessedDirective:E})).sort(n),S=f.flatMap(E=>{switch(E.type){case"disable":case"enable":return[];case"disable-line":return[{type:"disable",line:E.line,column:1,ruleId:E.ruleId,unprocessedDirective:E},{type:"enable",line:E.line+1,column:0,ruleId:E.ruleId,unprocessedDirective:E}];case"disable-next-line":return[{type:"disable",line:E.line+1,column:1,ruleId:E.ruleId,unprocessedDirective:E},{type:"enable",line:E.line+2,column:0,ruleId:E.ruleId,unprocessedDirective:E}];default:throw new TypeError(`Unrecognized directive type '${E.type}'`)}}).sort(n),b=l&&g?new Set(Object.keys(l).filter(E=>{const T=e.getRuleNumericSeverity(l[E]);return T===0?!1:!g({severity:T,ruleId:E})})):new Set;b.size>0&&b.add(null);const w=r({language:m,sourceCode:i,problems:s,directives:v,disableFixes:h,reportUnusedDisableDirectives:d,rulesToIgnore:b}),C=r({language:m,sourceCode:i,problems:w.problems,directives:S,disableFixes:h,reportUnusedDisableDirectives:d,rulesToIgnore:b});return d!=="off"?C.problems.concat(w.unusedDirectives).concat(C.unusedDirectives).sort(n):C.problems},ni}var si,qd;function dw(){if(qd)return si;qd=1;function a(n,o){return{range:[n,n],text:o}}class e{#e;constructor({sourceCode:o}){this.#e=o}insertTextAfter(o,t){const u=this.#e.getRange(o);return this.insertTextAfterRange(u,t)}insertTextAfterRange(o,t){return a(o[1],t)}insertTextBefore(o,t){const u=this.#e.getRange(o);return this.insertTextBeforeRange(u,t)}insertTextBeforeRange(o,t){return a(o[0],t)}replaceText(o,t){const u=this.#e.getRange(o);return this.replaceTextRange(u,t)}replaceTextRange(o,t){return{range:o,text:t}}remove(o){const t=this.#e.getRange(o);return this.removeRange(t)}removeRange(o){return{range:o,text:""}}}return si={RuleFixer:e},si}var ai,Vd;function gw(){if(Vd)return ai;Vd=1;function a(){return/\{\{([^{}]+?)\}\}/gu}function e(n,o){if(!o)return n;const t=a();return n.replace(t,(u,p)=>{const c=p.trim();return c in o?o[c]:u})}return ai={getPlaceholderMatcher:a,interpolate:e},ai}var ii,$d;function yw(){if($d)return ii;$d=1;const a=Pn(),{RuleFixer:e}=dw(),{interpolate:n}=gw();function o(...l){return l.length===1?Object.assign({},l[0]):typeof l[1]=="string"?{node:l[0],message:l[1],data:l[2],fix:l[3]}:{node:l[0],loc:l[1],message:l[2],data:l[3],fix:l[4]}}function t(l){l.node?a(typeof l.node=="object","Node must be an object"):a(l.loc,"Node must be provided when reporting error if location is not provided")}function u(l){return l.loc.start?l.loc:{start:l.loc,end:null}}function p(l){return l?{range:[l.range[0],l.range[1]],text:l.text}:null}function c(l){l&&a(l.range&&typeof l.range[0]=="number"&&typeof l.range[1]=="number",`Fix has invalid range: ${JSON.stringify(l,null,2)}`)}function r(l,g){return l.range[0]-g.range[0]||l.range[1]-g.range[1]}function m(l,g){for(const C of l)c(C);if(l.length===0)return null;if(l.length===1)return p(l[0]);l.sort(r);const d=g.text,v=l[0].range[0],S=l.at(-1).range[1];let b="",w=Number.MIN_SAFE_INTEGER;for(const C of l)a(C.range[0]>=w,"Fix objects must not be overlapped in a report."),C.range[0]>=0&&(b+=d.slice(Math.max(0,v,w),C.range[0])),b+=C.text,w=C.range[1];return b+=d.slice(Math.max(0,v,w),S),{range:[v,S],text:b}}function i(l,g){if(typeof l.fix!="function")return null;const d=new e({sourceCode:g}),v=l.fix(d);return v&&Symbol.iterator in v?m(Array.from(v),g):(c(v),p(v))}function f(l,g,d){return!l.suggest||!Array.isArray(l.suggest)?[]:l.suggest.map(v=>{const S=v.desc||d[v.messageId];return{...v,desc:n(S,v.data),fix:i(v,g)}}).filter(({fix:v})=>v)}function h(l){const{language:g}=l,d=g.columnStart===1?0:1,v=g.lineStart===1?0:1,S={ruleId:l.ruleId,severity:l.severity,message:l.message,line:l.loc.start.line+v,column:l.loc.start.column+d,nodeType:l.node&&l.node.type||null};return l.messageId&&(S.messageId=l.messageId),l.loc.end&&(S.endLine=l.loc.end.line+v,S.endColumn=l.loc.end.column+d),l.fix&&(S.fix=l.fix),l.suggestions&&l.suggestions.length>0&&(S.suggestions=l.suggestions),S}function s(l,g){l&&Array.isArray(l)&&l.forEach(d=>{if(d.messageId){const{messageId:v}=d;if(!g)throw new TypeError(`context.report() called with a suggest option with a messageId '${v}', but no messages were present in the rule metadata.`);if(!g[v])throw new TypeError(`context.report() called with a suggest option with a messageId '${v}' which is not present in the 'messages' config: ${JSON.stringify(g,null,2)}`);if(d.desc)throw new TypeError("context.report() called with a suggest option that defines both a 'messageId' and an 'desc'. Please only pass one.")}else if(!d.desc)throw new TypeError("context.report() called with a suggest option that doesn't have either a `desc` or `messageId`");if(typeof d.fix!="function")throw new TypeError(`context.report() called with a suggest option without a fix function. See: ${d}`)})}return ii=function(g){return(...d)=>{const v=o(...d),S=g.messageIds,{sourceCode:b}=g;t(v);let w;if(v.messageId){if(!S)throw new TypeError("context.report() called with a messageId, but no messages were present in the rule metadata.");const C=v.messageId;if(v.message)throw new TypeError("context.report() called with a message and a messageId. Please only pass one.");if(!S||!Object.hasOwn(S,C))throw new TypeError(`context.report() called with a messageId of '${C}' which is not present in the 'messages' config: ${JSON.stringify(S,null,2)}`);w=S[C]}else if(v.message)w=v.message;else throw new TypeError("Missing `message` property in report() call; add a message that describes the linting problem.");return s(v.suggest,S),h({ruleId:g.ruleId,severity:g.severity,node:v.node,message:n(w,v.data),messageId:v.messageId,loc:v.loc?u(v):b.getLoc(v.node),fix:g.disableFixes?null:i(v,b),suggestions:g.disableFixes?[]:f(v,b,S),language:g.language})}},ii}function vw(a){throw new Error('Could not dynamically require "'+a+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var oi,Wd;function Ew(){if(Wd)return oi;Wd=1;const a=kr()("eslint:rules");class e extends Map{constructor(o){let t=o.length;super(a.enabled?o.map(([u,p])=>{let c=null;return[u,()=>(c||(a("Loading rule %o (remaining=%d)",u,--t),c=p()),c)]}):o),Object.defineProperty(e.prototype,"set",{configurable:!0,value:void 0})}get(o){const t=super.get(o);return t&&t()}*values(){for(const o of super.values())yield o()}*entries(){for(const[o,t]of super.entries())yield[o,t()]}forEach(o,t){for(const[u,p]of super.entries())o.call(t,p(),u,this)}}return Object.defineProperties(e.prototype,{clear:{configurable:!0,value:void 0},delete:{configurable:!0,value:void 0},[Symbol.iterator]:{configurable:!0,writable:!0,value:e.prototype.entries}}),oi={LazyLoadingRuleMap:e},oi}var li={exports:{}},rn={},ui={exports:{}},Gd;function Sw(){return Gd||(Gd=1,function(){function a(p){if(p==null)return!1;switch(p.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function e(p){if(p==null)return!1;switch(p.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function n(p){if(p==null)return!1;switch(p.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function o(p){return n(p)||p!=null&&p.type==="FunctionDeclaration"}function t(p){switch(p.type){case"IfStatement":return p.alternate!=null?p.alternate:p.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return p.body}return null}function u(p){var c;if(p.type!=="IfStatement"||p.alternate==null)return!1;c=p.consequent;do{if(c.type==="IfStatement"&&c.alternate==null)return!0;c=t(c)}while(c);return!1}ui.exports={isExpression:a,isStatement:n,isIterationStatement:e,isSourceElement:o,isProblematicIfStatement:u,trailingStatement:t}}()),ui.exports}var ci={exports:{}},zd;function Hd(){return zd||(zd=1,function(){var a,e,n,o,t,u;e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},a={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function p(d){return 48<=d&&d<=57}function c(d){return 48<=d&&d<=57||97<=d&&d<=102||65<=d&&d<=70}function r(d){return d>=48&&d<=55}n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function m(d){return d===32||d===9||d===11||d===12||d===160||d>=5760&&n.indexOf(d)>=0}function i(d){return d===10||d===13||d===8232||d===8233}function f(d){if(d<=65535)return String.fromCharCode(d);var v=String.fromCharCode(Math.floor((d-65536)/1024)+55296),S=String.fromCharCode((d-65536)%1024+56320);return v+S}for(o=new Array(128),u=0;u<128;++u)o[u]=u>=97&&u<=122||u>=65&&u<=90||u===36||u===95;for(t=new Array(128),u=0;u<128;++u)t[u]=u>=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57||u===36||u===95;function h(d){return d<128?o[d]:e.NonAsciiIdentifierStart.test(f(d))}function s(d){return d<128?t[d]:e.NonAsciiIdentifierPart.test(f(d))}function l(d){return d<128?o[d]:a.NonAsciiIdentifierStart.test(f(d))}function g(d){return d<128?t[d]:a.NonAsciiIdentifierPart.test(f(d))}ci.exports={isDecimalDigit:p,isHexDigit:c,isOctalDigit:r,isWhiteSpace:m,isLineTerminator:i,isIdentifierStartES5:h,isIdentifierPartES5:s,isIdentifierStartES6:l,isIdentifierPartES6:g}}()),ci.exports}var fi={exports:{}},Kd;function bw(){return Kd||(Kd=1,function(){var a=Hd();function e(h){switch(h){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function n(h,s){return!s&&h==="yield"?!1:o(h,s)}function o(h,s){if(s&&e(h))return!0;switch(h.length){case 2:return h==="if"||h==="in"||h==="do";case 3:return h==="var"||h==="for"||h==="new"||h==="try";case 4:return h==="this"||h==="else"||h==="case"||h==="void"||h==="with"||h==="enum";case 5:return h==="while"||h==="break"||h==="catch"||h==="throw"||h==="const"||h==="yield"||h==="class"||h==="super";case 6:return h==="return"||h==="typeof"||h==="delete"||h==="switch"||h==="export"||h==="import";case 7:return h==="default"||h==="finally"||h==="extends";case 8:return h==="function"||h==="continue"||h==="debugger";case 10:return h==="instanceof";default:return!1}}function t(h,s){return h==="null"||h==="true"||h==="false"||n(h,s)}function u(h,s){return h==="null"||h==="true"||h==="false"||o(h,s)}function p(h){return h==="eval"||h==="arguments"}function c(h){var s,l,g;if(h.length===0||(g=h.charCodeAt(0),!a.isIdentifierStartES5(g)))return!1;for(s=1,l=h.length;s<l;++s)if(g=h.charCodeAt(s),!a.isIdentifierPartES5(g))return!1;return!0}function r(h,s){return(h-55296)*1024+(s-56320)+65536}function m(h){var s,l,g,d,v;if(h.length===0)return!1;for(v=a.isIdentifierStartES6,s=0,l=h.length;s<l;++s){if(g=h.charCodeAt(s),55296<=g&&g<=56319){if(++s,s>=l||(d=h.charCodeAt(s),!(56320<=d&&d<=57343)))return!1;g=r(g,d)}if(!v(g))return!1;v=a.isIdentifierPartES6}return!0}function i(h,s){return c(h)&&!t(h,s)}function f(h,s){return m(h)&&!u(h,s)}fi.exports={isKeywordES5:n,isKeywordES6:o,isReservedWordES5:t,isReservedWordES6:u,isRestrictedWord:p,isIdentifierNameES5:c,isIdentifierNameES6:m,isIdentifierES5:i,isIdentifierES6:f}}()),fi.exports}var Xd;function Jd(){return Xd||(Xd=1,function(){rn.ast=Sw(),rn.code=Hd(),rn.keyword=bw()}()),rn}var pi,Yd;function mi(){return Yd||(Yd=1,pi={LATEST_ECMA_VERSION:2026}),pi}var Qd;function Ue(){return Qd||(Qd=1,function(a){const{KEYS:e}=Wr(),n=Jd(),o=hn(),t=Rn(),{breakableTypePattern:u,createGlobalLinebreakMatcher:p,lineBreakPattern:c,shebangPattern:r}=Fn(),m=Gh(),{LATEST_ECMA_VERSION:i}=mi(),f=/^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u,h=/^(?:DoWhile|For|ForIn|ForOf|While)Statement$/u,s=/^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|some)$/u,l=/Array$/u,g=/^(?:bind|call|apply)$/u,d=/^[\s*]*@this/mu,v=/^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u,S=/^(?:eslint[- ]|(?:globals?|exported) )/u,b=new Set([`\r
|
|
58
|
+
`,"\r",`
|
|
59
|
+
`,"\u2028","\u2029"]),w=new Set(["Program","BlockStatement","StaticBlock","SwitchCase"]),C=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,E=/^(?:[^\\]|\\.)*\\(?:[1-9]|0[0-9])/su,T=new Set(["&&=","||=","??="]),x=m[`es${i}`];function A(_,J,fe){const te=_.identifier,we=J===0||fe[J-1].identifier!==te;return te&&_.init===!1&&_.isWrite()&&we}function k(_){return _[0]!==_[0].toLocaleLowerCase()}function B(_){return _.id&&k(_.id.name)}function R(_){for(let J=_;J;J=J.parent)if(f.test(J.type))return J;return null}function F(_){return!!(_&&f.test(_.type))}function P(_){return!!(_&&h.test(_.type))}function N(_){for(let J=_;J&&!F(J);J=J.parent)if(P(J))return!0;return!1}function j(_){return _.type==="Literal"&&_.value===null&&!_.regex&&!_.bigint}function V(_){return j(_)||_.type==="Identifier"&&_.name==="undefined"||_.type==="UnaryExpression"&&_.operator==="void"}function O(_){return _.parent.type==="CallExpression"&&_.parent.callee===_}function G(_){switch(_.type){case"Literal":if(_.value===null){if(j(_))return String(_.value);if(_.regex)return`/${_.regex.pattern}/${_.regex.flags}`;if(_.bigint)return _.bigint}else return String(_.value);break;case"TemplateLiteral":if(_.expressions.length===0&&_.quasis.length===1)return _.quasis[0].value.cooked;break}return null}function L(_){let J;switch(_&&_.type){case"ChainExpression":return L(_.expression);case"Property":case"PropertyDefinition":case"MethodDefinition":J=_.key;break;case"MemberExpression":J=_.property;break}return J?J.type==="Identifier"&&!_.computed?J.name:G(J):null}function K(_){return _&&_.type==="ChainExpression"?_.expression:_}function H(_,J){return typeof J=="string"?_===J:J.test(_)}function ae(_,J){return _.type==="Identifier"&&H(_.name,J)}function re(_,J,fe){const te=K(_);if(te.type!=="MemberExpression"||J&&!ae(te.object,J))return!1;if(fe){const we=L(te);if(typeof we!="string"||!H(we,fe))return!1}return!0}function De(_,J){return _.regex||J.regex?!!(_.regex&&J.regex&&_.regex.pattern===J.regex.pattern&&_.regex.flags===J.regex.flags):_.bigint||J.bigint?_.bigint===J.bigint:_.value===J.value}function Y(_,J,fe=!1){if(_.type!==J.type)return _.type==="ChainExpression"?Y(_.expression,J,fe):J.type==="ChainExpression"?Y(_,J.expression,fe):!1;switch(_.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return _.name===J.name;case"Literal":return De(_,J);case"ChainExpression":return Y(_.expression,J.expression,fe);case"MemberExpression":{if(!fe){const te=L(_);if(te!==null)return Y(_.object,J.object,fe)&&te===L(J)}return _.computed===J.computed&&Y(_.object,J.object,fe)&&Y(_.property,J.property,fe)}default:return!1}}function I(_){return re(_,"Reflect","apply")}function W(_){return re(_,l,"from")}function ue(_){return re(_,null,s)}function oe(_){return J=>!_(J)}function ne(_,J){const fe=J.getJSDocComment(_);return fe&&d.test(fe.value)?!0:J.getCommentsBefore(_).some(te=>d.test(te.value))}function he(_,J){const fe=_.getTokenBefore(J),te=_.getTokenAfter(J);return!!(fe&&te)&&fe.value==="("&&fe.range[1]<=J.range[0]&&te.value===")"&&te.range[0]>=J.range[1]}function ye(_){return _.value==="="&&_.type==="Punctuator"}function ge(_){return _.value==="=>"&&_.type==="Punctuator"}function Ce(_){return _.value===","&&_.type==="Punctuator"}function z(_){return _.value==="."&&_.type==="Punctuator"}function Q(_){return _.value==="?."&&_.type==="Punctuator"}function Re(_){return _.value===";"&&_.type==="Punctuator"}function $(_){return _.value===":"&&_.type==="Punctuator"}function ie(_){return _.value==="("&&_.type==="Punctuator"}function Te(_){return _.value===")"&&_.type==="Punctuator"}function Ne(_){return _.value==="["&&_.type==="Punctuator"}function Le(_){return _.value==="]"&&_.type==="Punctuator"}function U(_){return _.value==="{"&&_.type==="Punctuator"}function Qe(_){return _.value==="}"&&_.type==="Punctuator"}function ct(_){return _.type==="Line"||_.type==="Block"||_.type==="Shebang"}function st(_){return _.type==="Keyword"}function Ke(_,J){if(_.type==="ArrowFunctionExpression"&&_.params.length===1){const fe=J.getFirstToken(_.params[0]),te=J.getTokenBefore(fe);return ie(te)?te:fe}return _.id?J.getTokenAfter(_.id,ie):J.getFirstToken(_,ie)}function Je(_,J,fe){const te=fe.getTokens(_),we=fe.getTokens(J);if(te.length!==we.length)return!1;for(let Pe=0;Pe<te.length;++Pe)if(te[Pe].type!==we[Pe].type||te[Pe].value!==we[Pe].value)return!1;return!0}function ht(_){return _.type==="LogicalExpression"&&(_.operator==="&&"||_.operator==="||")}function dt(_){return _.type==="LogicalExpression"&&_.operator==="??"}function ot(_,J){return ht(_)&&dt(J)||dt(_)&&ht(J)}function nt(_){return T.has(_)}function ke(_,J){return _.test?J.getTokenAfter(_.test,$):J.getFirstToken(_,1)}function Se(_){return _.type==="Identifier"?_.name:_.value}function ve(_){return _.value===null?_.raw==="null"?!1:typeof _.regex=="object"?!0:null:!!_.value}function Fe(_,J){switch(_.type){case"Literal":return J==="||"&&ve(_)===!0||J==="&&"&&ve(_)===!1;case"UnaryExpression":return J==="&&"&&_.operator==="void";case"LogicalExpression":return J===_.operator&&(Fe(_.left,J)||Fe(_.right,J));case"AssignmentExpression":return["||=","&&="].includes(_.operator)&&J===_.operator.slice(0,-1)&&Fe(_.right,J)}return!1}function $e(_,J){const fe=_.references.find(te=>te.identifier===J);return!!(fe&&fe.resolved&&fe.resolved.scope.type==="global"&&fe.resolved.defs.length===0)}function ce(_,J,fe){if(!J)return!0;switch(J.type){case"Literal":case"ArrowFunctionExpression":case"FunctionExpression":return!0;case"ClassExpression":case"ObjectExpression":return!0;case"TemplateLiteral":return fe&&J.quasis.some(te=>te.value.cooked.length)||J.expressions.every(te=>ce(_,te,!1));case"ArrayExpression":return fe?!0:J.elements.every(te=>ce(_,te,!1));case"UnaryExpression":return J.operator==="void"||J.operator==="typeof"&&fe?!0:J.operator==="!"?ce(_,J.argument,!0):ce(_,J.argument,!1);case"BinaryExpression":return ce(_,J.left,!1)&&ce(_,J.right,!1)&&J.operator!=="in";case"LogicalExpression":{const te=ce(_,J.left,fe),we=ce(_,J.right,fe),Pe=te&&Fe(J.left,J.operator),ze=fe&&we&&Fe(J.right,J.operator);return te&&we||Pe||ze}case"NewExpression":return fe;case"AssignmentExpression":return J.operator==="="?ce(_,J.right,fe):["||=","&&="].includes(J.operator)&&fe?Fe(J.right,J.operator.slice(0,-1)):!1;case"SequenceExpression":return ce(_,J.expressions.at(-1),fe);case"SpreadElement":return ce(_,J.argument,fe);case"CallExpression":return J.callee.type==="Identifier"&&J.callee.name==="Boolean"&&(J.arguments.length===0||ce(_,J.arguments[0],!0))?$e(_,J.callee):!1;case"Identifier":return J.name==="undefined"&&$e(_,J)}return!1}function be(_){if(_.type!=="ExpressionStatement")return!1;const J=_.parent;return J.type==="Program"||J.type==="TSModuleBlock"||J.type==="BlockStatement"&&F(J.parent)}function ee(_){return _.type==="ExpressionStatement"&&typeof _.directive=="string"}function le(_){const J=_.range[0];let fe=_;for(;(fe=fe.parent)&&fe.range[0]===J;)if(fe.type==="ExpressionStatement")return!0;return!1}let Ee;{let _=function(et){for(let pe=et;;){const{parent:se}=pe;if(!se)break;if(Ye.has(se.type)&&pe===se.typeAnnotation)return!0;pe=se}return!1};const J=new Set(["BreakStatement","ContinueStatement"]),fe=new Set(["ExportAllDeclaration","ExportNamedDeclaration","ImportDeclaration"]),te=new Set(["Identifier","Keyword"]),we={__proto__:null,break:"BreakStatement",continue:"ContinueStatement",debugger:"DebuggerStatement",do:"DoWhileStatement",else:"IfStatement",return:"ReturnStatement",yield:"YieldExpression"},Pe=new Set([":",";","{","=>","++","--"]),ze=new Set(["DoWhileStatement","ForInStatement","ForOfStatement","ForStatement","IfStatement","WhileStatement","WithStatement"]),Ye=new Set(["TSAsExpression","TSSatisfiesExpression","TSTypeAliasDeclaration","TSTypeAnnotation"]);Ee=function(et,pe){const se=et.getTokenBefore(pe);if(!se||se.type==="Punctuator"&&Pe.has(se.value))return!1;const xe=et.getNodeByRangeIndex(se.range[0]);if(xe.type==="TSDeclareFunction"||xe.parent.type==="TSImportEqualsDeclaration"||xe.parent.parent?.type==="TSImportEqualsDeclaration"||Ye.has(xe.type)||_(xe))return!1;if(Te(se))return!ze.has(xe.type);if(Qe(se))return xe.type==="BlockStatement"&&xe.parent.type==="FunctionExpression"&&xe.parent.parent.type!=="MethodDefinition"||xe.type==="ClassBody"&&xe.parent.type==="ClassExpression"||xe.type==="ObjectExpression";if(te.has(se.type)){if(xe.parent.type==="VariableDeclarator"&&!xe.parent.init||J.has(xe.parent.type))return!1;const _e=se.value,Be=we[_e];return xe.type!==Be}return se.type==="String"?!fe.has(xe.parent.type):!0}}function Ie(_){const{parent:J}=_;if(J.type==="ImportAttribute"&&J.key===_)return!0;if(J.type==="Property"&&!J.computed&&(J.key===_||J.value===_&&J.shorthand&&!J.method)&&J.parent.type==="ObjectExpression"){const fe=J.parent,te=fe.parent;if(te.type==="ImportExpression"&&te.options===fe)return!0;if(te.type==="Property"&&te.value===fe)return Ie(te.key)}return!1}a.exports={COMMENTS_IGNORE_PATTERN:v,LINEBREAKS:b,LINEBREAK_MATCHER:c,SHEBANG_MATCHER:r,STATEMENT_LIST_PARENTS:w,ECMASCRIPT_GLOBALS:x,isTokenOnSameLine(_,J){return _.loc.end.line===J.loc.start.line},isNullOrUndefined:V,isCallee:O,isES5Constructor:B,getUpperFunction:R,isFunction:F,isLoop:P,isInLoop:N,isArrayFromMethod:W,isParenthesised:he,createGlobalLinebreakMatcher:p,equalTokens:Je,isArrowToken:ge,isClosingBraceToken:Qe,isClosingBracketToken:Le,isClosingParenToken:Te,isColonToken:$,isCommaToken:Ce,isCommentToken:ct,isDotToken:z,isQuestionDotToken:Q,isKeywordToken:st,isNotClosingBraceToken:oe(Qe),isNotClosingBracketToken:oe(Le),isNotClosingParenToken:oe(Te),isNotColonToken:oe($),isNotCommaToken:oe(Ce),isNotDotToken:oe(z),isNotQuestionDotToken:oe(Q),isNotOpeningBraceToken:oe(U),isNotOpeningBracketToken:oe(Ne),isNotOpeningParenToken:oe(ie),isNotSemicolonToken:oe(Re),isOpeningBraceToken:U,isOpeningBracketToken:Ne,isOpeningParenToken:ie,isSemicolonToken:Re,isEqToken:ye,isStringLiteral(_){return _.type==="Literal"&&typeof _.value=="string"||_.type==="TemplateLiteral"},isBreakableStatement(_){return u.test(_.type)},getModifyingReferences(_){return _.filter(A)},isSurroundedBy(_,J){return _[0]===J&&_.at(-1)===J},isDirectiveComment(_){const J=_.value.trim();return _.type==="Line"&&J.startsWith("eslint-")||_.type==="Block"&&S.test(J)},getTrailingStatement:n.ast.trailingStatement,getVariableByName(_,J){let fe=_;for(;fe;){const te=fe.set.get(J);if(te)return te;fe=fe.upper}return null},isDefaultThisBinding(_,J,{capIsConstructor:fe=!0}={}){if(_.parent.type==="PropertyDefinition"&&_.parent.value===_||_.type==="StaticBlock"||(_.type==="FunctionDeclaration"||_.type==="FunctionExpression")&&_.params.some(Pe=>Pe.type==="Identifier"&&Pe.name==="this")||fe&&B(_)||ne(_,J))return!1;const te=_.id===null;let we=_;for(;we;){const Pe=we.parent;switch(Pe.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":we=Pe;break;case"ReturnStatement":{const ze=R(Pe);if(ze===null||!O(ze))return!0;we=ze.parent;break}case"ArrowFunctionExpression":if(we!==Pe.body||!O(Pe))return!0;we=Pe.parent;break;case"Property":case"PropertyDefinition":case"MethodDefinition":return Pe.value!==we;case"AssignmentExpression":case"AssignmentPattern":return!(Pe.left.type==="MemberExpression"||fe&&te&&Pe.left.type==="Identifier"&&k(Pe.left.name));case"VariableDeclarator":return!(fe&&te&&Pe.init===we&&Pe.id.type==="Identifier"&&k(Pe.id.name));case"MemberExpression":if(Pe.object===we&&re(Pe,null,g)){const ze=Pe.parent.type==="ChainExpression"?Pe.parent:Pe;return!(O(ze)&&ze.parent.arguments.length>=1&&!V(ze.parent.arguments[0]))}return!0;case"CallExpression":return I(Pe.callee)?Pe.arguments.length!==3||Pe.arguments[0]!==we||V(Pe.arguments[1]):W(Pe.callee)?Pe.arguments.length!==3||Pe.arguments[1]!==we||V(Pe.arguments[2]):ue(Pe.callee)?Pe.arguments.length!==2||Pe.arguments[0]!==we||V(Pe.arguments[1]):!0;default:return!0}}return!0},getPrecedence(_){switch(_.type){case"SequenceExpression":return 0;case"AssignmentExpression":case"ArrowFunctionExpression":case"YieldExpression":return 1;case"ConditionalExpression":return 3;case"LogicalExpression":switch(_.operator){case"||":case"??":return 4;case"&&":return 5}case"BinaryExpression":switch(_.operator){case"|":return 6;case"^":return 7;case"&":return 8;case"==":case"!=":case"===":case"!==":return 9;case"<":case"<=":case">":case">=":case"in":case"instanceof":return 10;case"<<":case">>":case">>>":return 11;case"+":case"-":return 12;case"*":case"/":case"%":return 13;case"**":return 15}case"UnaryExpression":case"AwaitExpression":return 16;case"UpdateExpression":return 17;case"CallExpression":case"ChainExpression":case"ImportExpression":return 18;case"NewExpression":return 19;default:return _.type in e?20:-1}},isEmptyBlock(_){return!!(_&&_.type==="BlockStatement"&&_.body.length===0)},isEmptyFunction(_){return F(_)&&a.exports.isEmptyBlock(_.body)},getDirectivePrologue(_){const J=[];if(_.type==="Program"||_.type==="FunctionDeclaration"||_.type==="FunctionExpression"||_.type==="ArrowFunctionExpression"&&_.body.type==="BlockStatement"){const fe=_.type==="Program"?_.body:_.body.body;for(const te of fe)if(te.type==="ExpressionStatement"&&te.expression.type==="Literal")J.push(te);else break}return J},isDecimalInteger(_){return _.type==="Literal"&&typeof _.value=="number"&&C.test(_.raw)},isDecimalIntegerNumericToken(_){return _.type==="Numeric"&&C.test(_.value)},getFunctionNameWithKind(_){const J=_.parent,fe=[];if((J.type==="MethodDefinition"||J.type==="PropertyDefinition")&&(J.static&&fe.push("static"),!J.computed&&J.key.type==="PrivateIdentifier"&&fe.push("private")),_.async&&fe.push("async"),_.generator&&fe.push("generator"),J.type==="Property"||J.type==="MethodDefinition"){if(J.kind==="constructor")return"constructor";J.kind==="get"?fe.push("getter"):J.kind==="set"?fe.push("setter"):fe.push("method")}else J.type==="PropertyDefinition"?fe.push("method"):(_.type==="ArrowFunctionExpression"&&fe.push("arrow"),fe.push("function"));if(J.type==="Property"||J.type==="MethodDefinition"||J.type==="PropertyDefinition")if(!J.computed&&J.key.type==="PrivateIdentifier")fe.push(`#${J.key.name}`);else{const te=L(J);te!==null?fe.push(`'${te}'`):_.id&&fe.push(`'${_.id.name}'`)}else _.id&&fe.push(`'${_.id.name}'`);return fe.join(" ")},getFunctionHeadLoc(_,J){const fe=_.parent;let te,we;if(fe.type==="Property"||fe.type==="MethodDefinition"||fe.type==="PropertyDefinition")te=fe.loc.start,we=Ke(_,J).loc.start;else if(_.type==="ArrowFunctionExpression"){const Pe=J.getTokenBefore(_.body,ge);te=Pe.loc.start,we=Pe.loc.end}else te=_.loc.start,we=Ke(_,J).loc.start;return{start:Object.assign({},te),end:Object.assign({},we)}},getNextLocation(_,{line:J,column:fe}){return fe<_.lines[J-1].length?{line:J,column:fe+1}:J<_.lines.length?{line:J+1,column:0}:null},getParenthesisedText(_,J){let fe=_.getFirstToken(J),te=_.getLastToken(J);for(;_.getTokenBefore(fe)&&_.getTokenBefore(fe).type==="Punctuator"&&_.getTokenBefore(fe).value==="("&&_.getTokenAfter(te)&&_.getTokenAfter(te).type==="Punctuator"&&_.getTokenAfter(te).value===")";)fe=_.getTokenBefore(fe),te=_.getTokenAfter(te);return _.getText().slice(fe.range[0],te.range[1])},couldBeError(_){switch(_.type){case"Identifier":case"CallExpression":case"NewExpression":case"MemberExpression":case"TaggedTemplateExpression":case"YieldExpression":case"AwaitExpression":case"ChainExpression":return!0;case"AssignmentExpression":return["=","&&="].includes(_.operator)?a.exports.couldBeError(_.right):["||=","??="].includes(_.operator)?a.exports.couldBeError(_.left)||a.exports.couldBeError(_.right):!1;case"SequenceExpression":{const J=_.expressions;return J.length!==0&&a.exports.couldBeError(J.at(-1))}case"LogicalExpression":return _.operator==="&&"?a.exports.couldBeError(_.right):a.exports.couldBeError(_.left)||a.exports.couldBeError(_.right);case"ConditionalExpression":return a.exports.couldBeError(_.consequent)||a.exports.couldBeError(_.alternate);default:return!1}},isNumericLiteral(_){return _.type==="Literal"&&(typeof _.value=="number"||!!_.bigint)},canTokensBeAdjacent(_,J){const fe={ecmaVersion:o.latestEcmaVersion,comment:!0,range:!0};let te;if(typeof _=="string"){let Pe;try{Pe=o.tokenize(_,fe)}catch{return!1}const ze=Pe.comments;if(te=Pe.at(-1),ze.length){const Ye=ze.at(-1);(!te||Ye.range[0]>te.range[0])&&(te=Ye)}}else te=_;if(te.type==="Shebang"||te.type==="Hashbang")return!1;let we;if(typeof J=="string"){let Pe;try{Pe=o.tokenize(J,fe)}catch{return!1}const ze=Pe.comments;if(we=Pe[0],ze.length){const Ye=ze[0];(!we||Ye.range[0]<we.range[0])&&(we=Ye)}}else we=J;if(te.type==="Punctuator"||we.type==="Punctuator"){if(te.type==="Punctuator"&&we.type==="Punctuator"){const Pe=new Set(["+","++"]),ze=new Set(["-","--"]);return!(Pe.has(te.value)&&Pe.has(we.value)||ze.has(te.value)&&ze.has(we.value))}return te.type==="Punctuator"&&te.value==="/"?!["Block","Line","RegularExpression"].includes(we.type):!0}return!!(te.type==="String"||we.type==="String"||te.type==="Template"||we.type==="Template"||te.type!=="Numeric"&&we.type==="Numeric"&&we.value.startsWith(".")||te.type==="Block"||we.type==="Block"||we.type==="Line"||we.type==="PrivateIdentifier")},getNameLocationInGlobalDirectiveComment(_,J,fe){const te=new RegExp(`[\\s,]${t(fe)}(?:$|[\\s,:])`,"gu");te.lastIndex=J.value.indexOf("global")+6;const we=te.exec(J.value),Pe=_.getLocFromIndex(J.range[0]+2+(we?we.index+1:0)),ze={line:Pe.line,column:Pe.column+(we?fe.length:1)};return{start:Pe,end:ze}},hasOctalOrNonOctalDecimalEscapeSequence(_){return E.test(_)},isStaticTemplateLiteral(_){return _.type==="TemplateLiteral"&&_.expressions.length===0},areBracesNecessary(_,J){function fe(Ye){return Ye.type==="VariableDeclaration"?Ye.kind==="const"||Ye.kind==="let":Ye.type==="FunctionDeclaration"||Ye.type==="ClassDeclaration"}function te(Ye){return Ye.value==="else"&&Ye.type==="Keyword"}function we(Ye){const et=J.getTokenAfter(Ye);return!!et&&te(et)}function Pe(Ye){switch(Ye.type){case"IfStatement":return Ye.alternate?Pe(Ye.alternate):!0;case"ForStatement":case"ForInStatement":case"ForOfStatement":case"LabeledStatement":case"WithStatement":case"WhileStatement":return Pe(Ye.body);default:return!1}}const ze=_.body[0];return fe(ze)||Pe(ze)&&we(_)},isReferenceToGlobalVariable:$e,isLogicalExpression:ht,isCoalesceExpression:dt,isMixedLogicalAndCoalesceExpressions:ot,isNullLiteral:j,getStaticStringValue:G,getStaticPropertyName:L,skipChainExpression:K,isSpecificId:ae,isSpecificMemberAccess:re,equalLiteralValue:De,isSameReference:Y,isLogicalAssignmentOperator:nt,getSwitchCaseColonToken:ke,getModuleExportName:Se,isConstant:ce,isTopLevelExpressionStatement:be,isDirective:ee,isStartOfExpressionStatement:le,needsPrecedingSemicolon:Ee,isImportAttributeKey:Ie}}(li)),li.exports}var hi,Zd;function xw(){if(Zd)return hi;Zd=1;const a=Ue();function e(p,c){if(p.length!==c.length)return!1;for(let r=0;r<p.length;r++){const m=p[r],i=c[r];if(m.type!==i.type||m.value!==i.value)return!1}return!0}function n(p,c){return typeof p=="string"&&typeof c=="string"?p===c:Array.isArray(p)&&Array.isArray(c)?e(p,c):!1}function o(p){return p.kind==="get"||p.kind==="set"}function t(p,c,r,m){const i=p.parent;return i.type==="CallExpression"&&a.isSpecificMemberAccess(i.callee,r,m)&&i.arguments[c]===p}function u(p){if(t(p,2,"Object","defineProperty")||t(p,2,"Reflect","defineProperty"))return!0;const c=p.parent.parent;return c.type==="ObjectExpression"&&(t(c,1,"Object","create")||t(c,1,"Object","defineProperties"))}return hi={meta:{type:"suggestion",defaultOptions:[{enforceForClassMembers:!0,getWithoutSet:!1,setWithoutGet:!0}],docs:{description:"Enforce getter and setter pairs in objects and classes",recommended:!1,url:"https://eslint.org/docs/latest/rules/accessor-pairs"},schema:[{type:"object",properties:{getWithoutSet:{type:"boolean"},setWithoutGet:{type:"boolean"},enforceForClassMembers:{type:"boolean"}},additionalProperties:!1}],messages:{missingGetterInPropertyDescriptor:"Getter is not present in property descriptor.",missingSetterInPropertyDescriptor:"Setter is not present in property descriptor.",missingGetterInObjectLiteral:"Getter is not present for {{ name }}.",missingSetterInObjectLiteral:"Setter is not present for {{ name }}.",missingGetterInClass:"Getter is not present for class {{ name }}.",missingSetterInClass:"Setter is not present for class {{ name }}."}},create(p){const[{getWithoutSet:c,setWithoutGet:r,enforceForClassMembers:m}]=p.options,i=p.sourceCode;function f(b,w){b.type==="Property"?p.report({node:b,messageId:`${w}InObjectLiteral`,loc:a.getFunctionHeadLoc(b.value,i),data:{name:a.getFunctionNameWithKind(b.value)}}):b.type==="MethodDefinition"?p.report({node:b,messageId:`${w}InClass`,loc:a.getFunctionHeadLoc(b.value,i),data:{name:a.getFunctionNameWithKind(b.value)}}):p.report({node:b,messageId:`${w}InPropertyDescriptor`})}function h(b,w){for(const C of b)f(C,w)}function s(b){const w=[];let C=!1;for(let E=0;E<b.length;E++){const T=b[E];if(o(T)){const x=a.getStaticPropertyName(T),A=x!==null?x:i.getTokens(T.key);for(let k=0;k<w.length;k++){const B=w[k];if(n(B.key,A)){B.getters.push(...T.kind==="get"?[T]:[]),B.setters.push(...T.kind==="set"?[T]:[]),C=!0;break}}C||w.push({key:A,getters:T.kind==="get"?[T]:[],setters:T.kind==="set"?[T]:[]}),C=!1}}for(const{getters:E,setters:T}of w)r&&T.length&&!E.length&&h(T,"missingGetter"),c&&E.length&&!T.length&&h(E,"missingSetter")}function l(b){s(b.properties.filter(w=>w.type==="Property"))}function g(b){const w=new Set(b.properties.filter(T=>T.type==="Property"&&T.kind==="init"&&!T.computed).map(({key:T})=>T.name)),C=w.has("get"),E=w.has("set");r&&E&&!C&&f(b,"missingGetter"),c&&C&&!E&&f(b,"missingSetter")}function d(b){l(b),u(b)&&g(b)}function v(b){const w=b.body.filter(C=>C.type==="MethodDefinition");s(w.filter(C=>C.static)),s(w.filter(C=>!C.static))}const S={};return(r||c)&&(S.ObjectExpression=d,m&&(S.ClassBody=v)),S}},hi}var di,eg;function Cw(){if(eg)return di;eg=1;const a=Ue();return di={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"array-bracket-newline",url:"https://eslint.style/rules/array-bracket-newline"}}]},type:"layout",docs:{description:"Enforce linebreaks after opening and before closing array brackets",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-bracket-newline"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}],messages:{unexpectedOpeningLinebreak:"There should be no linebreak after '['.",unexpectedClosingLinebreak:"There should be no linebreak before ']'.",missingOpeningLinebreak:"A linebreak is required after '['.",missingClosingLinebreak:"A linebreak is required before ']'."}},create(e){const n=e.sourceCode;function o(i){let f=!1,h=!1,s;return i?i==="consistent"?(f=!0,s=Number.POSITIVE_INFINITY):i==="always"||i.minItems===0?s=0:i==="never"?s=Number.POSITIVE_INFINITY:(h=!!i.multiline,s=i.minItems||Number.POSITIVE_INFINITY):(f=!1,h=!0,s=Number.POSITIVE_INFINITY),{consistent:f,multiline:h,minItems:s}}function t(i){const f=o(i);return{ArrayExpression:f,ArrayPattern:f}}function u(i,f){e.report({node:i,loc:f.loc,messageId:"unexpectedOpeningLinebreak",fix(h){const s=n.getTokenAfter(f,{includeComments:!0});return a.isCommentToken(s)?null:h.removeRange([f.range[1],s.range[0]])}})}function p(i,f){e.report({node:i,loc:f.loc,messageId:"unexpectedClosingLinebreak",fix(h){const s=n.getTokenBefore(f,{includeComments:!0});return a.isCommentToken(s)?null:h.removeRange([s.range[1],f.range[0]])}})}function c(i,f){e.report({node:i,loc:f.loc,messageId:"missingOpeningLinebreak",fix(h){return h.insertTextAfter(f,`
|
|
60
|
+
`)}})}function r(i,f){e.report({node:i,loc:f.loc,messageId:"missingClosingLinebreak",fix(h){return h.insertTextBefore(f,`
|
|
61
|
+
`)}})}function m(i){const f=i.elements,s=t(e.options[0])[i.type],l=n.getFirstToken(i),g=n.getLastToken(i),d=n.getTokenAfter(l,{includeComments:!0}),v=n.getTokenBefore(g,{includeComments:!0}),S=n.getTokenAfter(l),b=n.getTokenBefore(g);f.length>=s.minItems||s.multiline&&f.length>0&&d.loc.start.line!==v.loc.end.line||f.length===0&&d.type==="Block"&&d.loc.start.line!==v.loc.end.line&&d===v||s.consistent&&l.loc.end.line!==S.loc.start.line?(a.isTokenOnSameLine(l,S)&&c(i,l),a.isTokenOnSameLine(b,g)&&r(i,g)):(a.isTokenOnSameLine(l,S)||u(i,l),a.isTokenOnSameLine(b,g)||p(i,g))}return{ArrayPattern:m,ArrayExpression:m}}},di}var gi,tg;function ww(){if(tg)return gi;tg=1;const a=Ue();return gi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"array-bracket-spacing",url:"https://eslint.style/rules/array-bracket-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing inside array brackets",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-bracket-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{singleValue:{type:"boolean"},objectsInArrays:{type:"boolean"},arraysInArrays:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'."}},create(e){const n=e.options[0]==="always",o=e.sourceCode;function t(s){return e.options[1]?e.options[1][s]===!n:!1}const u={spaced:n,singleElementException:t("singleValue"),objectsInArraysException:t("objectsInArrays"),arraysInArraysException:t("arraysInArrays")};function p(s,l){const g=o.getTokenAfter(l);e.report({node:s,loc:{start:l.loc.end,end:g.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:l.value},fix(d){return d.removeRange([l.range[1],g.range[0]])}})}function c(s,l){const g=o.getTokenBefore(l);e.report({node:s,loc:{start:g.loc.end,end:l.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:l.value},fix(d){return d.removeRange([g.range[1],l.range[0]])}})}function r(s,l){e.report({node:s,loc:l.loc,messageId:"missingSpaceAfter",data:{tokenValue:l.value},fix(g){return g.insertTextAfter(l," ")}})}function m(s,l){e.report({node:s,loc:l.loc,messageId:"missingSpaceBefore",data:{tokenValue:l.value},fix(g){return g.insertTextBefore(l," ")}})}function i(s){return s&&(s.type==="ObjectExpression"||s.type==="ObjectPattern")}function f(s){return s&&(s.type==="ArrayExpression"||s.type==="ArrayPattern")}function h(s){if(u.spaced&&s.elements.length===0)return;const l=o.getFirstToken(s),g=o.getFirstToken(s,1),d=s.typeAnnotation?o.getTokenBefore(s.typeAnnotation):o.getLastToken(s),v=o.getTokenBefore(d),S=s.elements[0],b=s.elements.at(-1),w=u.objectsInArraysException&&i(S)||u.arraysInArraysException&&f(S)||u.singleElementException&&s.elements.length===1?!u.spaced:u.spaced,C=u.objectsInArraysException&&i(b)||u.arraysInArraysException&&f(b)||u.singleElementException&&s.elements.length===1?!u.spaced:u.spaced;a.isTokenOnSameLine(l,g)&&(w&&!o.isSpaceBetweenTokens(l,g)&&r(s,l),!w&&o.isSpaceBetweenTokens(l,g)&&p(s,l)),l!==v&&a.isTokenOnSameLine(v,d)&&(C&&!o.isSpaceBetweenTokens(v,d)&&m(s,d),!C&&o.isSpaceBetweenTokens(v,d)&&c(s,d))}return{ArrayPattern:h,ArrayExpression:h}}},gi}var yi,rg;function Aw(){if(rg)return yi;rg=1;const a=Ue(),e=/^(?:Arrow)?FunctionExpression$/u,n=/^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|reduce(?:Right)?|some|sort|toSorted)$/u;function o(i){return a.isSpecificMemberAccess(i,null,n)}function t(i){for(const f of i)if(f.reachable)return!0;return!1}function u(i){return["from","of","isArray"].includes(i)?"Array.".concat(i):"Array.prototype.".concat(i)}function p(i){let f=i;for(;f;){const h=f.parent;switch(h.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":f=h;break;case"ReturnStatement":{const s=a.getUpperFunction(h);if(s===null||!a.isCallee(s))return null;f=s.parent;break}case"CallExpression":return a.isArrayFromMethod(h.callee)&&h.arguments.length>=2&&h.arguments[1]===f?"from":o(h.callee)&&h.arguments.length>=1&&h.arguments[0]===f?a.getStaticPropertyName(h.callee):null;default:return null}}return null}function c(i){return i.type==="UnaryExpression"&&i.operator==="void"}function r(i,f,h){const s=a.getPrecedence(f)<a.getPrecedence({type:"UnaryExpression",operator:"void"})&&!a.isParenthesised(i,f),l=i.getTokenBefore(f,f.parent.type==="ArrowFunctionExpression"?a.isArrowToken:v=>v.type==="Keyword"&&v.value==="return"),g=i.getTokenAfter(l),d=l.value==="return"&&l.range[1]===g.range[0];return[h.insertTextBefore(g,`${d?" ":""}void ${s?"(":""}`),h.insertTextAfter(f,s?")":"")]}function m(i,f,h){const s=i.getTokenBefore(f.body,a.isArrowToken),l=i.getTokenAfter(s),g=i.getLastToken(f);return[h.insertTextBefore(l,"{"),h.insertTextAfter(g,"}")]}return yi={meta:{type:"problem",defaultOptions:[{allowImplicit:!1,checkForEach:!1,allowVoid:!1}],docs:{description:"Enforce `return` statements in callbacks of array methods",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-callback-return"},hasSuggestions:!0,schema:[{type:"object",properties:{allowImplicit:{type:"boolean"},checkForEach:{type:"boolean"},allowVoid:{type:"boolean"}},additionalProperties:!1}],messages:{expectedAtEnd:"{{arrayMethodName}}() expects a value to be returned at the end of {{name}}.",expectedInside:"{{arrayMethodName}}() expects a return value from {{name}}.",expectedReturnValue:"{{arrayMethodName}}() expects a return value from {{name}}.",expectedNoReturnValue:"{{arrayMethodName}}() expects no useless return value from {{name}}.",wrapBraces:"Wrap the expression in `{}`.",prependVoid:"Prepend `void` to the expression."}},create(i){const[f]=i.options,h=i.sourceCode;let s={arrayMethodName:null,upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null};function l(g){if(!s.shouldCheck)return;const d={messageId:"",suggest:[]};if(s.arrayMethodName==="forEach"){if(f.checkForEach&&g.type==="ArrowFunctionExpression"&&g.expression)if(f.allowVoid){if(c(g.body))return;d.messageId="expectedNoReturnValue",d.suggest=[{messageId:"wrapBraces",fix(v){return m(h,g,v)}},{messageId:"prependVoid",fix(v){return r(h,g.body,v)}}]}else d.messageId="expectedNoReturnValue",d.suggest=[{messageId:"wrapBraces",fix(v){return m(h,g,v)}}]}else g.body.type==="BlockStatement"&&t(s.currentSegments)&&(d.messageId=s.hasReturn?"expectedAtEnd":"expectedInside");if(d.messageId){const v=a.getFunctionNameWithKind(g);i.report({node:g,loc:a.getFunctionHeadLoc(g,h),messageId:d.messageId,data:{name:v,arrayMethodName:u(s.arrayMethodName)},suggest:d.suggest.length!==0?d.suggest:null})}}return{onCodePathStart(g,d){let v=null;e.test(d.type)&&(v=p(d)),s={arrayMethodName:v,upper:s,codePath:g,hasReturn:!1,shouldCheck:v&&!d.async&&!d.generator,node:d,currentSegments:new Set}},onCodePathEnd(){s=s.upper},onUnreachableCodePathSegmentStart(g){s.currentSegments.add(g)},onUnreachableCodePathSegmentEnd(g){s.currentSegments.delete(g)},onCodePathSegmentStart(g){s.currentSegments.add(g)},onCodePathSegmentEnd(g){s.currentSegments.delete(g)},ReturnStatement(g){if(!s.shouldCheck)return;s.hasReturn=!0;const d={messageId:"",suggest:[]};if(s.arrayMethodName==="forEach"){if(f.checkForEach&&g.argument)if(f.allowVoid){if(c(g.argument))return;d.messageId="expectedNoReturnValue",d.suggest=[{messageId:"prependVoid",fix(v){return r(h,g.argument,v)}}]}else d.messageId="expectedNoReturnValue"}else!f.allowImplicit&&!g.argument&&(d.messageId="expectedReturnValue");d.messageId&&i.report({node:g,messageId:d.messageId,data:{name:a.getFunctionNameWithKind(s.node),arrayMethodName:u(s.arrayMethodName)},suggest:d.suggest.length!==0?d.suggest:null})},"FunctionExpression:exit":l,"ArrowFunctionExpression:exit":l}}},yi}var vi,ng;function Tw(){if(ng)return vi;ng=1;const a=Ue();return vi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"array-element-newline",url:"https://eslint.style/rules/array-element-newline"}}]},type:"layout",docs:{description:"Enforce line breaks after each array element",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-element-newline"},fixable:"whitespace",schema:{definitions:{basicConfig:{oneOf:[{enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}},type:"array",items:[{oneOf:[{$ref:"#/definitions/basicConfig"},{type:"object",properties:{ArrayExpression:{$ref:"#/definitions/basicConfig"},ArrayPattern:{$ref:"#/definitions/basicConfig"}},additionalProperties:!1,minProperties:1}]}]},messages:{unexpectedLineBreak:"There should be no linebreak here.",missingLineBreak:"There should be a linebreak after this element."}},create(e){const n=e.sourceCode;function o(r){let m=!1,i=!1,f;const h=r||"always";return h==="always"||h.minItems===0?f=0:h==="never"?f=Number.POSITIVE_INFINITY:h==="consistent"?(m=!0,f=Number.POSITIVE_INFINITY):(i=!!h.multiline,f=h.minItems||Number.POSITIVE_INFINITY),{consistent:m,multiline:i,minItems:f}}function t(r){if(r&&(r.ArrayExpression||r.ArrayPattern)){let i,f;return r.ArrayExpression&&(i=o(r.ArrayExpression)),r.ArrayPattern&&(f=o(r.ArrayPattern)),{ArrayExpression:i,ArrayPattern:f}}const m=o(r);return{ArrayExpression:m,ArrayPattern:m}}function u(r){const m=n.getTokenBefore(r,{includeComments:!0});e.report({loc:{start:m.loc.end,end:r.loc.start},messageId:"unexpectedLineBreak",fix(i){if(a.isCommentToken(m))return null;if(!a.isTokenOnSameLine(m,r))return i.replaceTextRange([m.range[1],r.range[0]]," ");const f=n.getTokenBefore(m,{includeComments:!0});return a.isCommentToken(f)?null:i.replaceTextRange([f.range[1],m.range[0]],"")}})}function p(r){const m=n.getTokenBefore(r,{includeComments:!0});e.report({loc:{start:m.loc.end,end:r.loc.start},messageId:"missingLineBreak",fix(i){return i.replaceTextRange([m.range[1],r.range[0]],`
|
|
62
|
+
`)}})}function c(r){const m=r.elements,f=t(e.options[0])[r.type];if(!f)return;let h=!1;f.multiline&&(h=m.filter(g=>g!==null).some(g=>g.loc.start.line!==g.loc.end.line));let s=0;for(let g=0;g<r.elements.length;g++){const d=r.elements[g],v=m[g-1];if(g===0||d===null||v===null)continue;const S=n.getFirstTokenBetween(v,d,a.isCommaToken),b=n.getTokenBefore(S),w=n.getTokenAfter(S);a.isTokenOnSameLine(b,w)||s++}const l=m.length>=f.minItems||f.multiline&&h||f.consistent&&s>0&&s<r.elements.length;m.forEach((g,d)=>{const v=m[d-1];if(d===0||g===null||v===null)return;const S=n.getFirstTokenBetween(v,g,a.isCommaToken),b=n.getTokenBefore(S),w=n.getTokenAfter(S);l?a.isTokenOnSameLine(b,w)&&p(w):a.isTokenOnSameLine(b,w)||u(w)})}return{ArrayPattern:c,ArrayExpression:c}}},vi}var Ei,sg;function kw(){if(sg)return Ei;sg=1;const a=Ue();return Ei={meta:{type:"suggestion",defaultOptions:["as-needed"],docs:{description:"Require braces around arrow function bodies",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/arrow-body-style"},schema:{anyOf:[{type:"array",items:[{enum:["always","never"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["as-needed"]},{type:"object",properties:{requireReturnForObjectLiteral:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},fixable:"code",messages:{unexpectedOtherBlock:"Unexpected block statement surrounding arrow body.",unexpectedEmptyBlock:"Unexpected block statement surrounding arrow body; put a value of `undefined` immediately after the `=>`.",unexpectedObjectBlock:"Unexpected block statement surrounding arrow body; parenthesize the returned value and move it immediately after the `=>`.",unexpectedSingleBlock:"Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`.",expectedBlock:"Expected block statement surrounding arrow body."}},create(e){const n=e.options,o=n[0]==="always",t=n[0]==="as-needed",u=n[0]==="never",p=n[1]&&n[1].requireReturnForObjectLiteral,c=e.sourceCode;let r=null;function m(s){return s&&s.type==="Punctuator"&&/^[([/`+-]/u.test(s.value)}function i(s){let l=s;for(;!a.isParenthesised(c,l);)l=l.parent;return c.getTokenAfter(l)}function f(s){return s&&s.parent?s.parent.type==="ForStatement"&&s.parent.init===s?!0:f(s.parent):!1}function h(s){const l=s.body;if(l.type==="BlockStatement"){const g=l.body;if(g.length!==1&&!u||t&&p&&g[0].type==="ReturnStatement"&&g[0].argument&&g[0].argument.type==="ObjectExpression")return;if(u||t&&g[0].type==="ReturnStatement"){let d;g.length===0?d="unexpectedEmptyBlock":g.length>1||g[0].type!=="ReturnStatement"?d="unexpectedOtherBlock":g[0].argument===null?d="unexpectedSingleBlock":a.isOpeningBraceToken(c.getFirstToken(g[0],{skip:1}))?d="unexpectedObjectBlock":d="unexpectedSingleBlock",e.report({node:s,loc:l.loc,messageId:d,fix(v){const S=[];if(g.length!==1||g[0].type!=="ReturnStatement"||!g[0].argument||m(c.getTokenAfter(l)))return S;const b=c.getFirstToken(l),w=c.getLastToken(l),C=c.getFirstToken(g[0],1),E=c.getLastToken(g[0]);return c.commentsExistBetween(b,C)||c.commentsExistBetween(E,w)?S.push(v.remove(b),v.remove(w),v.remove(c.getTokenAfter(b))):S.push(v.removeRange([b.range[0],C.range[0]]),v.removeRange([E.range[1],w.range[1]])),(a.isOpeningBraceToken(C)||g[0].argument.type==="SequenceExpression"||r.hasInOperator&&f(s))&&(a.isParenthesised(c,g[0].argument)||S.push(v.insertTextBefore(C,"("),v.insertTextAfter(E,")"))),a.isSemicolonToken(E)&&S.push(v.remove(E)),S}})}}else(o||t&&p&&l.type==="ObjectExpression")&&e.report({node:s,loc:l.loc,messageId:"expectedBlock",fix(g){const d=[],v=c.getTokenBefore(l,a.isArrowToken),[S,b]=c.getTokensAfter(v,{count:2}),w=c.getLastToken(s);let C=null;if(a.isOpeningParenToken(S)&&a.isOpeningBraceToken(b)){const E=c.getNodeByRangeIndex(b.range[0]);E.type==="ObjectExpression"&&(C=E)}if(C){const E=S,T=b;a.isTokenOnSameLine(E,T)?d.push(g.replaceText(E,"{return ")):d.push(g.replaceText(E,"{"),g.insertTextBefore(T,"return ")),d.push(g.remove(i(C))),d.push(g.insertTextAfter(w,"}"))}else d.push(g.insertTextBefore(S,"{return ")),d.push(g.insertTextAfter(w,"}"));return d}})}return{"BinaryExpression[operator='in']"(){let s=r;for(;s;)s.hasInOperator=!0,s=s.upper},ArrowFunctionExpression(){r={upper:r,hasInOperator:!1}},"ArrowFunctionExpression:exit"(s){h(s),r=r.upper}}}},Ei}var Si,ag;function Dw(){if(ag)return Si;ag=1;const a=Ue();function e(n){return n.body.type==="BlockStatement"}return Si={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"arrow-parens",url:"https://eslint.style/rules/arrow-parens"}}]},type:"layout",docs:{description:"Require parentheses around arrow function arguments",recommended:!1,url:"https://eslint.org/docs/latest/rules/arrow-parens"},fixable:"code",schema:[{enum:["always","as-needed"]},{type:"object",properties:{requireForBlockBody:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedParens:"Unexpected parentheses around single function argument.",expectedParens:"Expected parentheses around arrow function argument.",unexpectedParensInline:"Unexpected parentheses around single function argument having a body with no curly braces.",expectedParensBlock:"Expected parentheses around arrow function argument having a body with curly braces."}},create(n){const o=n.options[0]==="as-needed",t=o&&n.options[1]&&n.options[1].requireForBlockBody===!0,u=n.sourceCode;function p(i){const f=u.getTokenBefore(i.params[0]);return f&&a.isOpeningParenToken(f)&&i.range[0]<=f.range[0]?f:null}function c(i){return u.getTokenAfter(i.params[0],a.isClosingParenToken)}function r(i,f){return u.commentsExistBetween(f,c(i))}function m(i,f){const h=i.async?1:0;return u.getFirstToken(i,{skip:h})!==f}return{"ArrowFunctionExpression[params.length=1]"(i){const f=!o||t&&e(i),h=p(i),s=h!==null,[l]=i.params;f&&!s&&n.report({node:i,messageId:t?"expectedParensBlock":"expectedParens",loc:l.loc,*fix(g){yield g.insertTextBefore(l,"("),yield g.insertTextAfter(l,")")}}),!f&&s&&l.type==="Identifier"&&!l.typeAnnotation&&!i.returnType&&!r(i,h)&&!m(i,h)&&n.report({node:i,messageId:t?"unexpectedParensInline":"unexpectedParens",loc:l.loc,*fix(g){const d=u.getTokenBefore(h),v=c(i);d&&d.range[1]===h.range[0]&&!a.canTokensBeAdjacent(d,u.getFirstToken(l))&&(yield g.insertTextBefore(h," ")),yield g.removeRange([h.range[0],l.range[0]]),yield g.removeRange([l.range[1],v.range[1]])}})}}}},Si}var bi,ig;function Iw(){if(ig)return bi;ig=1;const a=Ue();return bi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"arrow-spacing",url:"https://eslint.style/rules/arrow-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing before and after the arrow in arrow functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/arrow-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!0},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{expectedBefore:"Missing space before =>.",unexpectedBefore:"Unexpected space before =>.",expectedAfter:"Missing space after =>.",unexpectedAfter:"Unexpected space after =>."}},create(e){const n=Object.assign({},e.options[0]);n.before=n.before!==!1,n.after=n.after!==!1;const o=e.sourceCode;function t(c){const r=o.getTokenBefore(c.body,a.isArrowToken);return{before:o.getTokenBefore(r),arrow:r,after:o.getTokenAfter(r)}}function u(c){const r=c.arrow.range[0]-c.before.range[1],m=c.after.range[0]-c.arrow.range[1];return{before:r,after:m}}function p(c){const r=t(c),m=u(r);n.before?m.before===0&&e.report({node:r.before,messageId:"expectedBefore",fix(i){return i.insertTextBefore(r.arrow," ")}}):m.before>0&&e.report({node:r.before,messageId:"unexpectedBefore",fix(i){return i.removeRange([r.before.range[1],r.arrow.range[0]])}}),n.after?m.after===0&&e.report({node:r.after,messageId:"expectedAfter",fix(i){return i.insertTextAfter(r.arrow," ")}}):m.after>0&&e.report({node:r.after,messageId:"unexpectedAfter",fix(i){return i.removeRange([r.arrow.range[1],r.after.range[0]])}})}return{ArrowFunctionExpression:p}}},bi}var xi,og;function Pw(){return og||(og=1,xi={meta:{type:"suggestion",docs:{description:"Enforce the use of variables within the scope they are defined",recommended:!1,url:"https://eslint.org/docs/latest/rules/block-scoped-var"},schema:[],messages:{outOfScope:"'{{name}}' declared on line {{definitionLine}} column {{definitionColumn}} is used outside of binding context."}},create(a){let e=[];const n=a.sourceCode;function o(c){e.push(c.range)}function t(){e.pop()}function u(c,r){const m=c.identifier,i=r.name.loc.start;a.report({node:m,messageId:"outOfScope",data:{name:m.name,definitionLine:i.line,definitionColumn:i.column+1}})}function p(c){if(c.kind!=="var")return;const r=e.at(-1);function m(f){const h=f.identifier.range;return h[0]<r[0]||h[1]>r[1]}const i=n.getDeclaredVariables(c);for(let f=0;f<i.length;++f)i[f].references.filter(m).forEach(h=>u(h,i[f].defs.find(s=>s.parent===c)))}return{Program(c){e=[c.range]},BlockStatement:o,"BlockStatement:exit":t,ForStatement:o,"ForStatement:exit":t,ForInStatement:o,"ForInStatement:exit":t,ForOfStatement:o,"ForOfStatement:exit":t,SwitchStatement:o,"SwitchStatement:exit":t,CatchClause:o,"CatchClause:exit":t,StaticBlock:o,"StaticBlock:exit":t,VariableDeclaration:p}}}),xi}var Ci,lg;function Fw(){if(lg)return Ci;lg=1;const a=Ue();return Ci={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"block-spacing",url:"https://eslint.style/rules/block-spacing"}}]},type:"layout",docs:{description:"Disallow or enforce spaces inside of blocks after opening block and before closing block",recommended:!1,url:"https://eslint.org/docs/latest/rules/block-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{missing:"Requires a space {{location}} '{{token}}'.",extra:"Unexpected space(s) {{location}} '{{token}}'."}},create(e){const n=e.options[0]!=="never",o=n?"missing":"extra",t=e.sourceCode;function u(r){return r.type==="SwitchStatement"?r.cases.length>0?t.getTokenBefore(r.cases[0]):t.getLastToken(r,1):r.type==="StaticBlock"?t.getFirstToken(r,{skip:1}):t.getFirstToken(r)}function p(r,m){return!a.isTokenOnSameLine(r,m)||t.isSpaceBetweenTokens(r,m)===n}function c(r){const m=u(r),i=t.getLastToken(r),f=t.getTokenAfter(m,{includeComments:!0}),h=t.getTokenBefore(i,{includeComments:!0});if(!(m.type!=="Punctuator"||m.value!=="{"||i.type!=="Punctuator"||i.value!=="}"||f===i)&&!(!n&&f.type==="Line")){if(!p(m,f)){let s=m.loc;o==="extra"&&(s={start:m.loc.end,end:f.loc.start}),e.report({node:r,loc:s,messageId:o,data:{location:"after",token:m.value},fix(l){return n?l.insertTextBefore(f," "):l.removeRange([m.range[1],f.range[0]])}})}if(!p(h,i)){let s=i.loc;o==="extra"&&(s={start:h.loc.end,end:i.loc.start}),e.report({node:r,loc:s,messageId:o,data:{location:"before",token:i.value},fix(l){return n?l.insertTextAfter(h," "):l.removeRange([h.range[1],i.range[0]])}})}}}return{BlockStatement:c,StaticBlock:c,SwitchStatement:c}}},Ci}var wi,ug;function Rw(){if(ug)return wi;ug=1;const a=Ue();return wi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"brace-style",url:"https://eslint.style/rules/brace-style"}}]},type:"layout",docs:{description:"Enforce consistent brace style for blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/brace-style"},schema:[{enum:["1tbs","stroustrup","allman"]},{type:"object",properties:{allowSingleLine:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"whitespace",messages:{nextLineOpen:"Opening curly brace does not appear on the same line as controlling statement.",sameLineOpen:"Opening curly brace appears on the same line as controlling statement.",blockSameLine:"Statement inside of curly braces should be on next line.",nextLineClose:"Closing curly brace does not appear on the same line as the subsequent block.",singleLineClose:"Closing curly brace should be on the same line as opening curly brace or on the line after the previous block.",sameLineClose:"Closing curly brace appears on the same line as the subsequent block."}},create(e){const n=e.options[0]||"1tbs",o=e.options[1]||{},t=e.sourceCode;function u(r,m){const i=[r.range[1],m.range[0]];return t.text.slice(i[0],i[1]).trim()?null:h=>h.replaceTextRange(i," ")}function p(r,m){const i=t.getTokenBefore(r),f=t.getTokenAfter(r),h=t.getTokenBefore(m),s=o.allowSingleLine&&a.isTokenOnSameLine(r,m);n!=="allman"&&!a.isTokenOnSameLine(i,r)&&e.report({node:r,messageId:"nextLineOpen",fix:u(i,r)}),n==="allman"&&a.isTokenOnSameLine(i,r)&&!s&&e.report({node:r,messageId:"sameLineOpen",fix:l=>l.insertTextBefore(r,`
|
|
63
|
+
`)}),a.isTokenOnSameLine(r,f)&&f!==m&&!s&&e.report({node:r,messageId:"blockSameLine",fix:l=>l.insertTextAfter(r,`
|
|
64
|
+
`)}),h!==r&&!s&&a.isTokenOnSameLine(h,m)&&e.report({node:m,messageId:"singleLineClose",fix:l=>l.insertTextBefore(m,`
|
|
65
|
+
`)})}function c(r){const m=t.getTokenAfter(r);n==="1tbs"&&!a.isTokenOnSameLine(r,m)&&e.report({node:r,messageId:"nextLineClose",fix:u(r,m)}),n!=="1tbs"&&a.isTokenOnSameLine(r,m)&&e.report({node:r,messageId:"sameLineClose",fix:i=>i.insertTextAfter(r,`
|
|
66
|
+
`)})}return{BlockStatement(r){a.STATEMENT_LIST_PARENTS.has(r.parent.type)||p(t.getFirstToken(r),t.getLastToken(r))},StaticBlock(r){p(t.getFirstToken(r,{skip:1}),t.getLastToken(r))},ClassBody(r){p(t.getFirstToken(r),t.getLastToken(r))},SwitchStatement(r){const m=t.getLastToken(r),i=t.getTokenBefore(r.cases.length?r.cases[0]:m);p(i,m)},IfStatement(r){r.consequent.type==="BlockStatement"&&r.alternate&&c(t.getLastToken(r.consequent))},TryStatement(r){c(t.getLastToken(r.block)),r.handler&&r.finalizer&&c(t.getLastToken(r.handler.body))}}}},wi}var Ai,cg;function _w(){return cg||(cg=1,Ai={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"callback-return",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/callback-return.md"}}]},type:"suggestion",docs:{description:"Require `return` statements after callbacks",recommended:!1,url:"https://eslint.org/docs/latest/rules/callback-return"},schema:[{type:"array",items:{type:"string"}}],messages:{missingReturn:"Expected return with your callback function."}},create(a){const e=a.options[0]||["callback","cb","next"],n=a.sourceCode;function o(c,r){return c.parent?r.includes(c.parent.type)?c.parent:o(c.parent,r):null}function t(c){if(c.type==="Identifier")return!0;if(c.type==="MemberExpression"){if(c.object.type==="Identifier")return!0;if(c.object.type==="MemberExpression")return t(c.object)}return!1}function u(c){return t(c.callee)&&e.includes(n.getText(c.callee))}function p(c,r){return!r||r.type!=="ExpressionStatement"?!1:r.expression===c||(r.expression.type==="BinaryExpression"||r.expression.type==="LogicalExpression")&&r.expression.right===c}return{CallExpression(c){if(!u(c))return;const r=o(c,["BlockStatement","ReturnStatement","ArrowFunctionExpression"])||{};if(r.type!=="ReturnStatement"&&r.type!=="ArrowFunctionExpression"){if(r.type==="BlockStatement"){const m=r.body.at(-1);if(p(c,m)){const i=r.parent.type;if(i==="FunctionExpression"||i==="FunctionDeclaration"||i==="ArrowFunctionExpression")return}if(m.type==="ReturnStatement"&&p(c,r.body.at(-2)))return}o(c,["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"])&&a.report({node:c,messageId:"missingReturn"})}}}}}),Ai}var Ti,fg;function Bw(){if(fg)return Ti;fg=1;const a=Ue();return Ti={meta:{type:"suggestion",defaultOptions:[{allow:[],ignoreDestructuring:!1,ignoreGlobals:!1,ignoreImports:!1,properties:"always"}],docs:{description:"Enforce camelcase naming convention",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/camelcase"},schema:[{type:"object",properties:{ignoreDestructuring:{type:"boolean"},ignoreImports:{type:"boolean"},ignoreGlobals:{type:"boolean"},properties:{enum:["always","never"]},allow:{type:"array",items:{type:"string"},minItems:0,uniqueItems:!0}},additionalProperties:!1}],messages:{notCamelCase:"Identifier '{{name}}' is not in camel case.",notCamelCasePrivate:"#{{name}} is not in camel case."}},create(e){const[{allow:n,ignoreDestructuring:o,ignoreGlobals:t,ignoreImports:u,properties:p}]=e.options,c=e.sourceCode,r=new Set;function m(d){const v=d.replace(/^_+|_+$/gu,"");return v.includes("_")&&v!==v.toUpperCase()}function i(d){return n.some(v=>d===v||d.match(new RegExp(v,"u")))}function f(d){return!m(d)||i(d)}function h(d){const v=d.parent;switch(v.type){case"AssignmentExpression":case"AssignmentPattern":return v.left===d;case"Property":return v.parent.type==="ObjectPattern"&&v.value===d;case"ArrayPattern":case"RestElement":return!0;default:return!1}}function s(d){const v=d.name,S=d.parent.type==="AssignmentPattern"?d.parent:d,b=S.parent;switch(b.type){case"Property":return(b.parent.type==="ObjectPattern"||b.parent.type==="ObjectExpression")&&b.value===S&&!b.computed&&b.key.type==="Identifier"&&b.key.name===v;case"ImportSpecifier":return b.local===d&&a.getModuleExportName(b.imported)===v;default:return!1}}function l(d){r.has(d.range[0])||(r.add(d.range[0]),e.report({node:d,messageId:d.type==="PrivateIdentifier"?"notCamelCasePrivate":"notCamelCase",data:{name:d.name}}))}function g(d){d.parent.type==="CallExpression"||d.parent.type==="NewExpression"||d.parent.type==="AssignmentPattern"&&d.parent.right===d||o&&s(d)||a.isImportAttributeKey(d)||l(d)}return{Program(d){const v=c.getScope(d);if(!t){for(const S of v.variables)if(!(S.identifiers.length>0||f(S.name)))for(const b of S.references)g(b.identifier)}for(const S of v.through){const b=S.identifier;f(b.name)||a.isImportAttributeKey(b)||g(b)}},[["VariableDeclaration","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression","ClassDeclaration","ClassExpression","CatchClause"]](d){for(const v of c.getDeclaredVariables(d)){if(f(v.name))continue;const S=v.identifiers[0];o&&s(S)||l(S);for(const b of v.references)b.init||g(b.identifier)}},[["ObjectExpression > Property[computed!=true] > Identifier.key","MethodDefinition[computed!=true] > Identifier.key","PropertyDefinition[computed!=true] > Identifier.key","MethodDefinition > PrivateIdentifier.key","PropertyDefinition > PrivateIdentifier.key"]](d){p==="never"||a.isImportAttributeKey(d)||f(d.name)||l(d)},"MemberExpression[computed!=true] > Identifier.property"(d){p==="never"||!h(d.parent)||f(d.name)||l(d)},ImportDeclaration(d){for(const v of c.getDeclaredVariables(d)){if(f(v.name))continue;const S=v.identifiers[0];u&&s(S)||l(S);for(const b of v.references)g(b.identifier)}},[["ExportAllDeclaration > Identifier.exported","ExportSpecifier > Identifier.exported"]](d){f(d.name)||l(d)},[["LabeledStatement > Identifier.label","BreakStatement > Identifier.label","ContinueStatement > Identifier.label"]](d){f(d.name)||l(d)}}}},Ti}var ki,pg;function Lw(){if(pg)return ki;pg=1;const e=Ue().COMMENTS_IGNORE_PATTERN,n=/\s/gu,o=/^\s*[^:/?#\s]+:\/\/[^?#]/u,t=new RegExp("\\p{L}","u"),u={type:"object",properties:{ignorePattern:{type:"string"},ignoreInlineComments:{type:"boolean"},ignoreConsecutiveComments:{type:"boolean"}},additionalProperties:!1},p={ignorePattern:"",ignoreInlineComments:!1,ignoreConsecutiveComments:!1};function c(i,f){return Object.assign({},p,i[f]||i)}function r(i={}){return{Line:c(i,"line"),Block:c(i,"block")}}function m(i){Object.keys(i).forEach(f=>{const h=i[f].ignorePattern;if(h){const s=RegExp(`^\\s*(?:${h})`,"u");i[f].ignorePatternRegExp=s}})}return ki={meta:{type:"suggestion",docs:{description:"Enforce or disallow capitalization of the first letter of a comment",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/capitalized-comments"},fixable:"code",schema:[{enum:["always","never"]},{oneOf:[u,{type:"object",properties:{line:u,block:u},additionalProperties:!1}]}],messages:{unexpectedLowercaseComment:"Comments should not begin with a lowercase character.",unexpectedUppercaseComment:"Comments should not begin with an uppercase character."}},create(i){const f=i.options[0]||"always",h=r(i.options[1]),s=i.sourceCode;m(h);function l(S){const b=s.getTokenBefore(S,{includeComments:!0}),w=s.getTokenAfter(S,{includeComments:!0});return!!(b&&w&&S.loc.start.line===b.loc.end.line&&S.loc.end.line===w.loc.start.line)}function g(S){const b=s.getTokenBefore(S,{includeComments:!0});return!!(b&&["Block","Line"].includes(b.type))}function d(S,b){if(e.test(S.value))return!0;const w=S.value.replace(/\*/gu,"");if(b.ignorePatternRegExp&&b.ignorePatternRegExp.test(w)||b.ignoreInlineComments&&l(S)||b.ignoreConsecutiveComments&&g(S)||o.test(w))return!0;const C=w.replace(n,"");if(C.length===0)return!0;const[E]=C;if(!t.test(E))return!0;const T=E!==E.toLocaleLowerCase(),x=E!==E.toLocaleUpperCase();return!(f==="always"&&x||f==="never"&&T)}function v(S){const b=h[S.type];if(!d(S,b)){const C=f==="always"?"unexpectedLowercaseComment":"unexpectedUppercaseComment";i.report({node:null,loc:S.loc,messageId:C,fix(E){const T=S.value.match(t),x=T[0],A=S.range[0]+T.index+2;return E.replaceTextRange([A,A+x.length],f==="always"?x.toLocaleUpperCase():x.toLocaleLowerCase())}})}}return{Program(){s.getAllComments().filter(b=>b.type!=="Shebang").forEach(v)}}}},ki}var Di,mg;function Ow(){if(mg)return Di;mg=1;const a=Ue();return Di={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",defaultOptions:[{enforceForClassFields:!0,exceptMethods:[],ignoreOverrideMethods:!1}],docs:{description:"Enforce that class methods utilize `this`",recommended:!1,url:"https://eslint.org/docs/latest/rules/class-methods-use-this"},schema:[{type:"object",properties:{exceptMethods:{type:"array",items:{type:"string"}},enforceForClassFields:{type:"boolean"},ignoreOverrideMethods:{type:"boolean"},ignoreClassesWithImplements:{enum:["all","public-fields"]}},additionalProperties:!1}],messages:{missingThis:"Expected 'this' to be used by class {{name}}."}},create(e){const[n]=e.options,{enforceForClassFields:o,ignoreOverrideMethods:t,ignoreClassesWithImplements:u}=n,p=new Set(n.exceptMethods),c=[];function r(){c.push(!1)}function m(){return c.pop()}function i(){r()}function f(d){switch(d.type){case"MethodDefinition":return!d.static&&d.kind!=="constructor";case"AccessorProperty":case"PropertyDefinition":return!d.static&&o;default:return!1}}function h(d){const v=d.parent.parent;return v?.type==="ClassDeclaration"&&v.implements?.length>0}function s(d){if(f(d)){if(d.computed)return!0;if(t&&d.override||u&&h(d)&&(u==="all"||u==="public-fields"&&d.key.type!=="PrivateIdentifier"&&(!d.accessibility||d.accessibility==="public")))return!1;const v=d.key.type==="PrivateIdentifier"?"#":"",S=d.key.type==="Literal"?a.getStaticStringValue(d.key):d.key.name||"";return!p.has(v+S)}return!1}function l(d){const v=m();s(d.parent)&&!v&&e.report({node:d,loc:a.getFunctionHeadLoc(d,e.sourceCode),messageId:"missingThis",data:{name:a.getFunctionNameWithKind(d)}})}function g(){c.length&&(c[c.length-1]=!0)}return{FunctionDeclaration:i,"FunctionDeclaration:exit":l,FunctionExpression:i,"FunctionExpression:exit":l,"AccessorProperty > *.key:exit":r,"AccessorProperty:exit":m,"PropertyDefinition > *.key:exit":r,"PropertyDefinition:exit":m,StaticBlock:r,"StaticBlock:exit":m,ThisExpression:g,Super:g,...o&&{"AccessorProperty > ArrowFunctionExpression.value":i,"AccessorProperty > ArrowFunctionExpression.value:exit":l,"PropertyDefinition > ArrowFunctionExpression.value":i,"PropertyDefinition > ArrowFunctionExpression.value:exit":l}}}},Di}var Ii,hg;function Nw(){if(hg)return Ii;hg=1;const a=Ue(),e=Object.freeze({arrays:"never",objects:"never",imports:"never",exports:"never",functions:"never"});function n(t){return!(t.type==="RestElement"||t.type==="RestProperty"||t.type==="ExperimentalRestProperty")}function o(t,u){return typeof t=="string"?{arrays:t,objects:t,imports:t,exports:t,functions:u<2017?"ignore":t}:typeof t=="object"&&t!==null?{arrays:t.arrays||e.arrays,objects:t.objects||e.objects,imports:t.imports||e.imports,exports:t.exports||e.exports,functions:t.functions||e.functions}:e}return Ii={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"comma-dangle",url:"https://eslint.style/rules/comma-dangle"}}]},type:"layout",docs:{description:"Require or disallow trailing commas",recommended:!1,url:"https://eslint.org/docs/latest/rules/comma-dangle"},fixable:"code",schema:{definitions:{value:{enum:["always-multiline","always","never","only-multiline"]},valueWithIgnore:{enum:["always-multiline","always","ignore","never","only-multiline"]}},type:"array",items:[{oneOf:[{$ref:"#/definitions/value"},{type:"object",properties:{arrays:{$ref:"#/definitions/valueWithIgnore"},objects:{$ref:"#/definitions/valueWithIgnore"},imports:{$ref:"#/definitions/valueWithIgnore"},exports:{$ref:"#/definitions/valueWithIgnore"},functions:{$ref:"#/definitions/valueWithIgnore"}},additionalProperties:!1}]}],additionalItems:!1},messages:{unexpected:"Unexpected trailing comma.",missing:"Missing trailing comma."}},create(t){const u=o(t.options[0],t.languageOptions.ecmaVersion),p=t.sourceCode;function c(g){function d(v){return v.at(-1)}switch(g.type){case"ObjectExpression":case"ObjectPattern":return d(g.properties);case"ArrayExpression":case"ArrayPattern":return d(g.elements);case"ImportDeclaration":case"ExportNamedDeclaration":return d(g.specifiers);case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":return d(g.params);case"CallExpression":case"NewExpression":return d(g.arguments);default:return null}}function r(g,d){switch(g.type){case"ObjectExpression":case"ArrayExpression":case"CallExpression":case"NewExpression":return p.getLastToken(g,1);default:{const v=p.getTokenAfter(d);return a.isCommaToken(v)?v:p.getLastToken(d)}}}function m(g){const d=c(g);if(!d)return!1;const v=r(g,d);return p.getTokenAfter(v).loc.end.line!==v.loc.end.line}function i(g){const d=c(g);if(!d||g.type==="ImportDeclaration"&&d.type!=="ImportSpecifier")return;const v=r(g,d);a.isCommaToken(v)&&t.report({node:d,loc:v.loc,messageId:"unexpected",*fix(S){yield S.remove(v),yield S.insertTextBefore(p.getTokenBefore(v),""),yield S.insertTextAfter(p.getTokenAfter(v),"")}})}function f(g){const d=c(g);if(!d||g.type==="ImportDeclaration"&&d.type!=="ImportSpecifier")return;if(!n(d)){i(g);return}const v=r(g,d);v.value!==","&&t.report({node:d,loc:{start:v.loc.end,end:a.getNextLocation(p,v.loc.end)},messageId:"missing",*fix(S){yield S.insertTextAfter(v,","),yield S.insertTextBefore(v,""),yield S.insertTextAfter(p.getTokenAfter(v),"")}})}function h(g){m(g)?f(g):i(g)}function s(g){m(g)||i(g)}const l={always:f,"always-multiline":h,"only-multiline":s,never:i,ignore(){}};return{ObjectExpression:l[u.objects],ObjectPattern:l[u.objects],ArrayExpression:l[u.arrays],ArrayPattern:l[u.arrays],ImportDeclaration:l[u.imports],ExportNamedDeclaration:l[u.exports],FunctionDeclaration:l[u.functions],FunctionExpression:l[u.functions],ArrowFunctionExpression:l[u.functions],CallExpression:l[u.functions],NewExpression:l[u.functions]}}},Ii}var Pi,dg;function Mw(){if(dg)return Pi;dg=1;const a=Ue();return Pi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"comma-spacing",url:"https://eslint.style/rules/comma-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing before and after commas",recommended:!1,url:"https://eslint.org/docs/latest/rules/comma-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{missing:"A space is required {{loc}} ','.",unexpected:"There should be no space {{loc}} ','."}},create(e){const n=e.sourceCode,o=n.tokensAndComments,t={before:e.options[0]?e.options[0].before:!1,after:e.options[0]?e.options[0].after:!0},u=[];function p(r,m,i){e.report({node:r,fix(f){if(t[m])return m==="before"?f.insertTextBefore(r," "):f.insertTextAfter(r," ");let h,s;const l="";return m==="before"?(h=i.range[1],s=r.range[0]):(h=r.range[1],s=i.range[0]),f.replaceTextRange([h,s],l)},messageId:t[m]?"missing":"unexpected",data:{loc:m}})}function c(r){let m=n.getFirstToken(r);r.elements.forEach(i=>{let f;i===null?(f=n.getTokenAfter(m),a.isCommaToken(f)&&u.push(f)):f=n.getTokenAfter(i),m=f})}return{"Program:exit"(){o.forEach((r,m)=>{if(!a.isCommaToken(r))return;const i=o[m-1],f=o[m+1];i&&!a.isCommaToken(i)&&!u.includes(r)&&a.isTokenOnSameLine(i,r)&&t.before!==n.isSpaceBetweenTokens(i,r)&&p(r,"before",i),f&&!a.isCommaToken(f)&&!a.isClosingParenToken(f)&&!a.isClosingBracketToken(f)&&!a.isClosingBraceToken(f)&&!(!t.after&&f.type==="Line")&&a.isTokenOnSameLine(r,f)&&t.after!==n.isSpaceBetweenTokens(r,f)&&p(r,"after",f)})},ArrayExpression:c,ArrayPattern:c}}},Pi}var Fi,gg;function jw(){if(gg)return Fi;gg=1;const a=Ue();return Fi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"comma-style",url:"https://eslint.style/rules/comma-style"}}]},type:"layout",docs:{description:"Enforce consistent comma style",recommended:!1,url:"https://eslint.org/docs/latest/rules/comma-style"},fixable:"code",schema:[{enum:["first","last"]},{type:"object",properties:{exceptions:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],messages:{unexpectedLineBeforeAndAfterComma:"Bad line breaking before and after ','.",expectedCommaFirst:"',' should be placed first.",expectedCommaLast:"',' should be placed last."}},create(e){const n=e.options[0]||"last",o=e.sourceCode,t={ArrayPattern:!0,ArrowFunctionExpression:!0,CallExpression:!0,FunctionDeclaration:!0,FunctionExpression:!0,ImportDeclaration:!0,ObjectPattern:!0,NewExpression:!0};if(e.options.length===2&&Object.hasOwn(e.options[1],"exceptions")){const i=Object.keys(e.options[1].exceptions);for(let f=0;f<i.length;f++)t[i[f]]=e.options[1].exceptions[i[f]]}function u(i,f){switch(i){case"between":return`,${f.replace(a.LINEBREAK_MATCHER,"")}`;case"first":return`${f},`;case"last":return`,${f}`;default:return""}}function p(i,f,h,s){const l=o.text.slice(f.range[1],h.range[0])+o.text.slice(h.range[1],s.range[0]),g=[f.range[1],s.range[0]];return function(d){return d.replaceTextRange(g,u(i,l))}}function c(i,f,h,s){if(!(a.isTokenOnSameLine(f,h)&&a.isTokenOnSameLine(i,f)))if(!a.isTokenOnSameLine(f,h)&&!a.isTokenOnSameLine(i,f)){const l=o.getCommentsAfter(f)[0],g=l&&l.type==="Block"&&a.isTokenOnSameLine(f,l)?n:"between";e.report({node:s,loc:f.loc,messageId:"unexpectedLineBeforeAndAfterComma",fix:p(g,i,f,h)})}else n==="first"&&!a.isTokenOnSameLine(f,h)?e.report({node:s,loc:f.loc,messageId:"expectedCommaFirst",fix:p(n,i,f,h)}):n==="last"&&a.isTokenOnSameLine(f,h)&&e.report({node:s,loc:f.loc,messageId:"expectedCommaLast",fix:p(n,i,f,h)})}function r(i,f){const h=i[f],s=i.type==="ArrayExpression"||i.type==="ArrayPattern";if(h.length>1||s){let l=o.getFirstToken(i);if(h.forEach(g=>{const d=g?o.getTokenBefore(g):l,v=g?o.getFirstToken(g):o.getTokenAfter(d),S=g||v;if(a.isCommaToken(d)&&c(l,d,v,S),g){const b=o.getTokenAfter(g,a.isNotClosingParenToken);l=b?o.getTokenBefore(b):o.ast.tokens.at(-1)}else l=v}),s){const g=o.getLastToken(i),d=o.getTokenBefore(g);a.isCommaToken(d)&&c(o.getTokenBefore(d),d,g,g)}}}const m={};return t.VariableDeclaration||(m.VariableDeclaration=function(i){r(i,"declarations")}),t.ObjectExpression||(m.ObjectExpression=function(i){r(i,"properties")}),t.ObjectPattern||(m.ObjectPattern=function(i){r(i,"properties")}),t.ArrayExpression||(m.ArrayExpression=function(i){r(i,"elements")}),t.ArrayPattern||(m.ArrayPattern=function(i){r(i,"elements")}),t.FunctionDeclaration||(m.FunctionDeclaration=function(i){r(i,"params")}),t.FunctionExpression||(m.FunctionExpression=function(i){r(i,"params")}),t.ArrowFunctionExpression||(m.ArrowFunctionExpression=function(i){r(i,"params")}),t.CallExpression||(m.CallExpression=function(i){r(i,"arguments")}),t.ImportDeclaration||(m.ImportDeclaration=function(i){r(i,"specifiers")}),t.NewExpression||(m.NewExpression=function(i){r(i,"arguments")}),m}},Fi}var Ri,yg;function Ir(){if(yg)return Ri;yg=1;const a=/^[\u0000-\u007f]*$/u;let e;function n(t){return t.length<=1?t.toUpperCase():t[0].toUpperCase()+t.slice(1)}function o(t){if(a.test(t))return t.length;e??=new Intl.Segmenter("en-US");let u=0;for(const p of e.segment(t))u++;return u}return Ri={upperCaseFirst:n,getGraphemeCount:o},Ri}var _i,vg;function Uw(){if(vg)return _i;vg=1;const a=Ue(),{upperCaseFirst:e}=Ir(),n=20;return _i={meta:{type:"suggestion",defaultOptions:[n],docs:{description:"Enforce a maximum cyclomatic complexity allowed in a program",recommended:!1,url:"https://eslint.org/docs/latest/rules/complexity"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0},variant:{enum:["classic","modified"]}},additionalProperties:!1}]}],messages:{complex:"{{name}} has a complexity of {{complexity}}. Maximum allowed is {{max}}."}},create(o){const t=o.options[0];let u=n,p="classic";typeof t=="object"?((Object.hasOwn(t,"maximum")||Object.hasOwn(t,"max"))&&(u=t.maximum||t.max),Object.hasOwn(t,"variant")&&(p=t.variant)):typeof t=="number"&&(u=t);const c=p==="modified",r=[];function m(){r[r.length-1]++}return{onCodePathStart(){r.push(1)},CatchClause:m,ConditionalExpression:m,LogicalExpression:m,ForStatement:m,ForInStatement:m,ForOfStatement:m,IfStatement:m,WhileStatement:m,DoWhileStatement:m,AssignmentPattern:m,"SwitchCase[test]":()=>c||m(),SwitchStatement:()=>c&&m(),AssignmentExpression(i){a.isLogicalAssignmentOperator(i.operator)&&m()},MemberExpression(i){i.optional===!0&&m()},CallExpression(i){i.optional===!0&&m()},onCodePathEnd(i,f){const h=r.pop();if(!(i.origin!=="function"&&i.origin!=="class-field-initializer"&&i.origin!=="class-static-block")&&h>u){let s;i.origin==="class-field-initializer"?s="class field initializer":i.origin==="class-static-block"?s="class static block":s=a.getFunctionNameWithKind(f),o.report({node:f,messageId:"complex",data:{name:e(s),complexity:h,max:u}})}}}}},_i}var Bi,Eg;function qw(){if(Eg)return Bi;Eg=1;const a=Ue();return Bi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"computed-property-spacing",url:"https://eslint.style/rules/computed-property-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing inside computed property brackets",recommended:!1,url:"https://eslint.org/docs/latest/rules/computed-property-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{enforceForClassMembers:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'."}},create(e){const n=e.sourceCode,o=e.options[0]==="always",t=!e.options[1]||e.options[1].enforceForClassMembers;function u(f,h,s){e.report({node:f,loc:{start:h.loc.end,end:s.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:h.value},fix(l){return l.removeRange([h.range[1],s.range[0]])}})}function p(f,h,s){e.report({node:f,loc:{start:s.loc.end,end:h.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:h.value},fix(l){return l.removeRange([s.range[1],h.range[0]])}})}function c(f,h){e.report({node:f,loc:h.loc,messageId:"missingSpaceAfter",data:{tokenValue:h.value},fix(s){return s.insertTextAfter(h," ")}})}function r(f,h){e.report({node:f,loc:h.loc,messageId:"missingSpaceBefore",data:{tokenValue:h.value},fix(s){return s.insertTextBefore(h," ")}})}function m(f){return function(h){if(!h.computed)return;const s=h[f],l=n.getTokenBefore(s,a.isOpeningBracketToken),g=n.getTokenAfter(l,{includeComments:!0}),d=n.getTokenAfter(s,a.isClosingBracketToken),v=n.getTokenBefore(d,{includeComments:!0});a.isTokenOnSameLine(l,g)&&(o?!n.isSpaceBetweenTokens(l,g)&&a.isTokenOnSameLine(l,g)&&c(h,l):n.isSpaceBetweenTokens(l,g)&&u(h,l,g)),a.isTokenOnSameLine(v,d)&&(o?!n.isSpaceBetweenTokens(v,d)&&a.isTokenOnSameLine(v,d)&&r(h,d):n.isSpaceBetweenTokens(v,d)&&p(h,d,v))}}const i={Property:m("key"),MemberExpression:m("property")};return t&&(i.MethodDefinition=i.PropertyDefinition=i.Property),i}},Bi}var Li,Sg;function Vw(){if(Sg)return Li;Sg=1;const a=Ue(),{upperCaseFirst:e}=Ir();function n(t){for(const u of t)if(u.reachable)return!1;return!0}function o(t){return t.type==="FunctionExpression"&&t.parent&&t.parent.type==="MethodDefinition"&&t.parent.kind==="constructor"}return Li={meta:{type:"suggestion",docs:{description:"Require `return` statements to either always or never specify values",recommended:!1,url:"https://eslint.org/docs/latest/rules/consistent-return"},schema:[{type:"object",properties:{treatUndefinedAsUnspecified:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{treatUndefinedAsUnspecified:!1}],messages:{missingReturn:"Expected to return a value at the end of {{name}}.",missingReturnValue:"{{name}} expected a return value.",unexpectedReturnValue:"{{name}} expected no return value."}},create(t){const[{treatUndefinedAsUnspecified:u}]=t.options;let p=null;function c(r){let m,i;!p.hasReturnValue||n(p.currentSegments)||a.isES5Constructor(r)||o(r)||(r.type==="Program"?(m={line:1,column:0},i="program"):r.type==="ArrowFunctionExpression"?m=t.sourceCode.getTokenBefore(r.body,a.isArrowToken).loc:r.parent.type==="MethodDefinition"||r.parent.type==="Property"&&r.parent.method?m=r.parent.key.loc:m=(r.id||t.sourceCode.getFirstToken(r)).loc,i||(i=a.getFunctionNameWithKind(r)),t.report({node:r,loc:m,messageId:"missingReturn",data:{name:i}}))}return{onCodePathStart(r,m){p={upper:p,codePath:r,hasReturn:!1,hasReturnValue:!1,messageId:"",node:m,currentSegments:new Set}},onCodePathEnd(){p=p.upper},onUnreachableCodePathSegmentStart(r){p.currentSegments.add(r)},onUnreachableCodePathSegmentEnd(r){p.currentSegments.delete(r)},onCodePathSegmentStart(r){p.currentSegments.add(r)},onCodePathSegmentEnd(r){p.currentSegments.delete(r)},ReturnStatement(r){const m=r.argument;let i=!!m;u&&i&&(i=!a.isSpecificId(m,"undefined")&&m.operator!=="void"),p.hasReturn?p.hasReturnValue!==i&&t.report({node:r,messageId:p.messageId,data:p.data}):(p.hasReturn=!0,p.hasReturnValue=i,p.messageId=i?"missingReturnValue":"unexpectedReturnValue",p.data={name:p.node.type==="Program"?"Program":e(a.getFunctionNameWithKind(p.node))})},"Program:exit":c,"FunctionDeclaration:exit":c,"FunctionExpression:exit":c,"ArrowFunctionExpression:exit":c}}},Li}var Oi,bg;function $w(){return bg||(bg=1,Oi={meta:{type:"suggestion",docs:{description:"Enforce consistent naming when capturing the current execution context",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/consistent-this"},schema:{type:"array",items:{type:"string",minLength:1},uniqueItems:!0},defaultOptions:["that"],messages:{aliasNotAssignedToThis:"Designated alias '{{name}}' is not assigned to 'this'.",unexpectedAlias:"Unexpected alias '{{name}}' for 'this'."}},create(a){const e=a.options,n=a.sourceCode;function o(c,r){a.report({node:c,messageId:"aliasNotAssignedToThis",data:{name:r}})}function t(c,r,m){const i=m.type==="ThisExpression";e.includes(r)?(!i||c.operator&&c.operator!=="=")&&o(c,r):i&&a.report({node:c,messageId:"unexpectedAlias",data:{name:r}})}function u(c,r){const m=r.set.get(c);m&&(m.defs.some(i=>i.node.type==="VariableDeclarator"&&i.node.init!==null)||m.references.some(i=>{const f=i.writeExpr;return i.from===r&&f&&f.type==="ThisExpression"&&f.parent.operator==="="})||m.defs.map(i=>i.node).forEach(i=>{o(i,c)}))}function p(c){const r=n.getScope(c),m=c.type==="Program"&&c.sourceType==="module"?r.childScopes[0]:null;e.forEach(i=>{u(i,r),m&&u(i,m)})}return{"Program:exit":p,"FunctionExpression:exit":p,"FunctionDeclaration:exit":p,VariableDeclarator(c){const r=c.id,m=r.type==="ArrayPattern"||r.type==="ObjectPattern";c.init!==null&&!m&&t(c,r.name,c.init)},AssignmentExpression(c){c.left.type==="Identifier"&&t(c,c.left.name,c.right)}}}}),Oi}var Ni,xg;function Ww(){if(xg)return Ni;xg=1;function a(o){return o.type==="FunctionExpression"&&o.parent.type==="MethodDefinition"&&o.parent.kind==="constructor"}function e(o){if(!o)return!1;switch(o.type){case"ClassExpression":case"FunctionExpression":case"ThisExpression":case"MemberExpression":case"CallExpression":case"NewExpression":case"ChainExpression":case"YieldExpression":case"TaggedTemplateExpression":case"MetaProperty":return!0;case"Identifier":return o.name!=="undefined";case"AssignmentExpression":return["=","&&="].includes(o.operator)?e(o.right):["||=","??="].includes(o.operator)?e(o.left)||e(o.right):!1;case"LogicalExpression":return o.operator==="&&"?e(o.right):e(o.left)||e(o.right);case"ConditionalExpression":return e(o.alternate)||e(o.consequent);case"SequenceExpression":{const t=o.expressions.at(-1);return e(t)}default:return!1}}class n{calledInEveryPaths=!1;calledInSomePaths=!1;validNodes=[]}return Ni={meta:{type:"problem",docs:{description:"Require `super()` calls in constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/constructor-super"},schema:[],messages:{missingSome:"Lacked a call of 'super()' in some code paths.",missingAll:"Expected to call 'super()'.",duplicate:"Unexpected duplicate 'super()'.",badSuper:"Unexpected 'super()' because 'super' is not a constructor."}},create(o){let t=null;const u=Object.create(null);function p(m){return m.reachable&&u[m.id].calledInSomePaths}function c(m){return!!u[m.id]}function r(m){return m.reachable&&u[m.id].calledInEveryPaths}return{onCodePathStart(m,i){if(a(i)){const h=i.parent.parent.parent.superClass;t={upper:t,isConstructor:!0,hasExtends:!!h,superIsConstructor:e(h),codePath:m,currentSegments:new Set}}else t={upper:t,isConstructor:!1,hasExtends:!1,superIsConstructor:!1,codePath:m,currentSegments:new Set}},onCodePathEnd(m,i){const f=t.hasExtends;if(t=t.upper,!f)return;const h=m.returnedSegments,s=h.every(r),l=h.some(p);s||o.report({messageId:l?"missingSome":"missingAll",node:i.parent})},onCodePathSegmentStart(m,i){if(t.currentSegments.add(m),!(t.isConstructor&&t.hasExtends))return;const f=u[m.id]=new n,h=m.prevSegments.filter(c);h.length>0&&(f.calledInSomePaths=h.some(p),f.calledInEveryPaths=h.every(r)),i.parent&&i.parent.type==="ForStatement"&&i.parent.update===i&&(f.calledInEveryPaths=!0)},onUnreachableCodePathSegmentStart(m){t.currentSegments.add(m)},onUnreachableCodePathSegmentEnd(m){t.currentSegments.delete(m)},onCodePathSegmentEnd(m){t.currentSegments.delete(m)},onCodePathSegmentLoop(m,i){t.isConstructor&&t.hasExtends&&t.codePath.traverseSegments({first:i,last:m},(f,h)=>{const s=u[f.id];if(!s){h.skip();return}const l=f.prevSegments.filter(c),g=l.some(p),d=l.every(r);if(s.calledInSomePaths||=g,s.calledInEveryPaths||=d,g){const v=s.validNodes;s.validNodes=[];for(let S=0;S<v.length;++S){const b=v[S];o.report({messageId:"duplicate",node:b})}}})},"CallExpression:exit"(m){if(!(t.isConstructor&&t.hasExtends)||m.callee.type!=="Super")return;const i=t.currentSegments;let f=!1,h=null;for(const s of i)s.reachable&&(h=u[s.id],f=f||h.calledInSomePaths,h.calledInSomePaths=h.calledInEveryPaths=!0);h&&(f?o.report({messageId:"duplicate",node:m}):t.superIsConstructor?h.validNodes.push(m):o.report({messageId:"badSuper",node:m}))},ReturnStatement(m){if(!(t.isConstructor&&t.hasExtends)||!m.argument)return;const i=t.currentSegments;for(const f of i)if(f.reachable){const h=u[f.id];h.calledInSomePaths=h.calledInEveryPaths=!0}}}}},Ni}var Mi,Cg;function Gw(){if(Cg)return Mi;Cg=1;const a=Ue();return Mi={meta:{type:"suggestion",docs:{description:"Enforce consistent brace style for all control statements",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/curly"},schema:{anyOf:[{type:"array",items:[{enum:["all"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["multi","multi-line","multi-or-nest"]},{enum:["consistent"]}],minItems:0,maxItems:2}]},defaultOptions:["all"],fixable:"code",messages:{missingCurlyAfter:"Expected { after '{{name}}'.",missingCurlyAfterCondition:"Expected { after '{{name}}' condition.",unexpectedCurlyAfter:"Unnecessary { after '{{name}}'.",unexpectedCurlyAfterCondition:"Unnecessary { after '{{name}}' condition."}},create(e){const n=e.options[0]==="multi",o=e.options[0]==="multi-line",t=e.options[0]==="multi-or-nest",u=e.options[1]==="consistent",p=e.sourceCode;function c(h){const s=p.getTokenBefore(h),l=p.getLastToken(h),g=a.isSemicolonToken(l)?p.getTokenBefore(l):l;return s.loc.start.line===g.loc.end.line}function r(h){if(h.type==="EmptyStatement")return!0;const s=p.getFirstToken(h),l=p.getLastToken(h),g=a.isSemicolonToken(l)?p.getTokenBefore(l):l;return s.loc.start.line===g.loc.end.line}function m(h){const s=p.getTokenBefore(h),l=p.getTokenAfter(h),g=p.getNodeByRangeIndex(s.range[0]);return a.isSemicolonToken(s)||!l||g.type==="BlockStatement"&&g.parent.type!=="FunctionExpression"&&g.parent.type!=="ArrowFunctionExpression"?!1:!!(s.loc.end.line===l.loc.start.line||/^[([/`+-]/u.test(l.value)||s.type==="Punctuator"&&(s.value==="++"||s.value==="--"))}function i(h,s,l,g){const d=s.type==="BlockStatement";let v=null;if(d&&(s.body.length!==1||a.areBracesNecessary(s,p)))v=!0;else if(n)v=!1;else if(o)c(s)||(v=!0);else if(t)if(d){const S=s.body[0],b=p.getCommentsBefore(S);v=!r(S)||b.length>0}else v=!r(s);else v=!0;return{actual:d,expected:v,check(){this.expected!==null&&this.expected!==this.actual&&(this.expected?e.report({node:h,loc:s.loc,messageId:g&&g.condition?"missingCurlyAfterCondition":"missingCurlyAfter",data:{name:l},fix:S=>S.replaceText(s,`{${p.getText(s)}}`)}):e.report({node:h,loc:s.loc,messageId:g&&g.condition?"unexpectedCurlyAfterCondition":"unexpectedCurlyAfter",data:{name:l},fix(S){const b=h.type==="DoWhileStatement"&&p.getTokenBefore(s).range[1]===s.range[0]&&!a.canTokensBeAdjacent("do",p.getFirstToken(s,{skip:1})),w=p.getFirstToken(s),C=p.getLastToken(s),E=p.getTokenBefore(C);if(m(C))return null;const T=p.getText().slice(w.range[1],E.range[0])+p.getText(E)+p.getText().slice(E.range[1],C.range[0]);return S.replaceText(s,(b?" ":"")+T)}}))}}}function f(h){const s=[];for(let l=h;l;l=l.alternate)if(s.push(i(l,l.consequent,"if",{condition:!0})),l.alternate&&l.alternate.type!=="IfStatement"){s.push(i(l,l.alternate,"else"));break}if(u){const l=s.some(g=>g.expected!==null?g.expected:g.actual);s.forEach(g=>{g.expected=l})}return s}return{IfStatement(h){const s=h.parent;s.type==="IfStatement"&&s.alternate===h||f(h).forEach(g=>{g.check()})},WhileStatement(h){i(h,h.body,"while",{condition:!0}).check()},DoWhileStatement(h){i(h,h.body,"do").check()},ForStatement(h){i(h,h.body,"for",{condition:!0}).check()},ForInStatement(h){i(h,h.body,"for-in").check()},ForOfStatement(h){i(h,h.body,"for-of").check()}}}},Mi}var ji,wg;function zw(){if(wg)return ji;wg=1;const a=/^no default$/iu;return ji={meta:{type:"suggestion",defaultOptions:[{}],docs:{description:"Require `default` cases in `switch` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/default-case"},schema:[{type:"object",properties:{commentPattern:{type:"string"}},additionalProperties:!1}],messages:{missingDefaultCase:"Expected a default case."}},create(e){const[n]=e.options,o=n.commentPattern?new RegExp(n.commentPattern,"u"):a,t=e.sourceCode;function u(p){return p.at(-1)}return{SwitchStatement(p){if(!p.cases.length)return;if(!p.cases.some(r=>r.test===null)){let r;const m=u(p.cases),i=t.getCommentsAfter(m);i.length&&(r=u(i)),(!r||!o.test(r.value.trim()))&&e.report({node:p,messageId:"missingDefaultCase"})}}}}},ji}var Ui,Ag;function Hw(){return Ag||(Ag=1,Ui={meta:{type:"suggestion",docs:{description:"Enforce `default` clauses in `switch` statements to be last",recommended:!1,url:"https://eslint.org/docs/latest/rules/default-case-last"},schema:[],messages:{notLast:"Default clause should be the last clause."}},create(a){return{SwitchStatement(e){const n=e.cases,o=n.findIndex(t=>t.test===null);if(o!==-1&&o!==n.length-1){const t=n[o];a.report({node:t,messageId:"notLast"})}}}}}),Ui}var qi,Tg;function Kw(){if(Tg)return qi;Tg=1;function a(e){return!(e.type==="AssignmentPattern"||e.type==="RestElement"||e.optional)}return qi={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",docs:{description:"Enforce default parameters to be last",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/default-param-last"},schema:[],messages:{shouldBeLast:"Default parameters should be last."}},create(e){function n(o){let t=!1;for(let u=o.params.length-1;u>=0;u-=1){const p=o.params[u],c=p.type==="TSParameterProperty"?p.parameter:p;if(a(c)){t=!0;continue}t&&e.report({node:p,messageId:"shouldBeLast"})}}return{FunctionDeclaration:n,FunctionExpression:n,ArrowFunctionExpression:n}}},qi}var Vi,kg;function Xw(){if(kg)return Vi;kg=1;const a=Ue();return Vi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"dot-location",url:"https://eslint.style/rules/dot-location"}}]},type:"layout",docs:{description:"Enforce consistent newlines before and after dots",recommended:!1,url:"https://eslint.org/docs/latest/rules/dot-location"},schema:[{enum:["object","property"]}],fixable:"code",messages:{expectedDotAfterObject:"Expected dot to be on same line as object.",expectedDotBeforeProperty:"Expected dot to be on same line as property."}},create(e){const n=e.options[0],o=n==="object"||!n,t=e.sourceCode;function u(c){const r=c.property,m=t.getTokenBefore(r);if(o){const i=t.getTokenBefore(m);a.isTokenOnSameLine(i,m)||e.report({node:c,loc:m.loc,messageId:"expectedDotAfterObject",*fix(f){m.value.startsWith(".")&&a.isDecimalIntegerNumericToken(i)?yield f.insertTextAfter(i,` ${m.value}`):yield f.insertTextAfter(i,m.value),yield f.remove(m)}})}else a.isTokenOnSameLine(m,r)||e.report({node:c,loc:m.loc,messageId:"expectedDotBeforeProperty",*fix(i){yield i.remove(m),yield i.insertTextBefore(r,m.value)}})}function p(c){c.computed||u(c)}return{MemberExpression:p}}},Vi}var $i,Dg;function Wi(){return Dg||(Dg=1,$i=["abstract","boolean","break","byte","case","catch","char","class","const","continue","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","long","native","new","null","package","private","protected","public","return","short","static","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","volatile","while","with"]),$i}var Gi,Ig;function Jw(){if(Ig)return Gi;Ig=1;const a=Ue(),e=Wi(),n=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/u,o=new Set(["string","boolean"]);return Gi={meta:{type:"suggestion",defaultOptions:[{allowKeywords:!0,allowPattern:""}],docs:{description:"Enforce dot notation whenever possible",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/dot-notation"},schema:[{type:"object",properties:{allowKeywords:{type:"boolean"},allowPattern:{type:"string"}},additionalProperties:!1}],fixable:"code",messages:{useDot:"[{{key}}] is better written in dot notation.",useBrackets:".{{key}} is a syntax error."}},create(t){const[u]=t.options,p=u.allowKeywords,c=t.sourceCode;let r;u.allowPattern&&(r=new RegExp(u.allowPattern,"u"));function m(i,f){if(n.test(f)&&(p||!e.includes(String(f)))&&!(r&&r.test(f))){const h=i.property.type==="Literal"?JSON.stringify(f):`\`${f}\``;t.report({node:i.property,messageId:"useDot",data:{key:h},*fix(s){const l=c.getTokenAfter(i.object,a.isOpeningBracketToken),g=c.getLastToken(i),d=c.getTokenAfter(i);c.commentsExistBetween(l,g)||(i.optional||(yield s.insertTextBefore(l,a.isDecimalInteger(i.object)?" .":".")),yield s.replaceTextRange([l.range[0],g.range[1]],f),d&&g.range[1]===d.range[0]&&!a.canTokensBeAdjacent(String(f),d)&&(yield s.insertTextAfter(i," ")))}})}}return{MemberExpression(i){i.computed&&i.property.type==="Literal"&&(o.has(typeof i.property.value)||a.isNullLiteral(i.property))&&m(i,i.property.value),i.computed&&a.isStaticTemplateLiteral(i.property)&&m(i,i.property.quasis[0].value.cooked),!p&&!i.computed&&i.property.type==="Identifier"&&e.includes(String(i.property.name))&&t.report({node:i.property,messageId:"useBrackets",data:{key:i.property.name},*fix(f){const h=c.getTokenBefore(i.property);i.object.type==="Identifier"&&i.object.name==="let"&&!i.optional||c.commentsExistBetween(h,i.property)||(i.optional||(yield f.remove(h)),yield f.replaceText(i.property,`["${i.property.name}"]`))}})}}}},Gi}var zi,Pg;function Yw(){return Pg||(Pg=1,zi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"eol-last",url:"https://eslint.style/rules/eol-last"}}]},type:"layout",docs:{description:"Require or disallow newline at the end of files",recommended:!1,url:"https://eslint.org/docs/latest/rules/eol-last"},fixable:"whitespace",schema:[{enum:["always","never","unix","windows"]}],messages:{missing:"Newline required at end of file but not found.",unexpected:"Newline not allowed at end of file."}},create(a){return{Program:function(n){const o=a.sourceCode,t=o.getText(),u=o.lines.at(-1),p={column:u.length,line:o.lines.length},c=`
|
|
67
|
+
`,r=`\r${c}`,m=t.endsWith(c);if(!t.length)return;let i=a.options[0]||"always",f=!1;if(i==="unix"&&(i="always"),i==="windows"&&(i="always",f=!0),i==="always"&&!m)a.report({node:n,loc:p,messageId:"missing",fix(h){return h.insertTextAfterRange([0,t.length],f?r:c)}});else if(i==="never"&&m){const h=o.lines.at(-2);a.report({node:n,loc:{start:{line:o.lines.length-1,column:h.length},end:{line:o.lines.length,column:0}},messageId:"unexpected",fix(s){const l=/(?:\r?\n)+$/u,g=l.exec(o.text),d=g.index,v=o.text.length;return s.replaceTextRange([d,v],"")}})}}}}}),zi}var Hi,Fg;function Qw(){if(Fg)return Hi;Fg=1;const a=Ue();return Hi={meta:{type:"suggestion",hasSuggestions:!0,docs:{description:"Require the use of `===` and `!==`",recommended:!1,url:"https://eslint.org/docs/latest/rules/eqeqeq"},schema:{anyOf:[{type:"array",items:[{enum:["always"]},{type:"object",properties:{null:{enum:["always","never","ignore"]}},additionalProperties:!1}],additionalItems:!1},{type:"array",items:[{enum:["smart","allow-null"]}],additionalItems:!1}]},fixable:"code",messages:{unexpected:"Expected '{{expectedOperator}}' and instead saw '{{actualOperator}}'.",replaceOperator:"Use '{{expectedOperator}}' instead of '{{actualOperator}}'."}},create(e){const n=e.options[0]||"always",o=e.options[1]||{},t=e.sourceCode,u=n==="always"?o.null||"always":"ignore",p=u==="always",c=u==="never";function r(s){return s.type==="UnaryExpression"&&s.operator==="typeof"}function m(s){return r(s.left)||r(s.right)}function i(s){return s.left.type==="Literal"&&s.right.type==="Literal"&&typeof s.left.value==typeof s.right.value}function f(s){return a.isNullLiteral(s.right)||a.isNullLiteral(s.left)}function h(s,l){const g=t.getFirstTokenBetween(s.left,s.right,v=>v.value===s.operator),d={node:s,loc:g.loc,messageId:"unexpected",data:{expectedOperator:l,actualOperator:s.operator}};m(s)||i(s)?e.report({...d,fix(v){return v.replaceText(g,l)}}):e.report({...d,suggest:[{messageId:"replaceOperator",data:{expectedOperator:l,actualOperator:s.operator},fix:v=>v.replaceText(g,l)}]})}return{BinaryExpression(s){const l=f(s);if(s.operator!=="=="&&s.operator!=="!="){c&&l&&h(s,s.operator.slice(0,-1));return}n==="smart"&&(m(s)||i(s)||l)||!p&&l||h(s,`${s.operator}=`)}}}},Hi}var Ki,Rg;function Zw(){if(Rg)return Ki;Rg=1;const{getStaticValue:a}=qt();return Ki={meta:{type:"problem",docs:{description:"Enforce `for` loop update clause moving the counter in the right direction",recommended:!0,url:"https://eslint.org/docs/latest/rules/for-direction"},fixable:null,schema:[],messages:{incorrectDirection:"The update clause in this loop moves the variable in the wrong direction."}},create(e){const{sourceCode:n}=e;function o(c){e.report({node:c,messageId:"incorrectDirection"})}function t(c,r){const m=a(c.right,n.getScope(c));if(m&&["bigint","boolean","number"].includes(typeof m.value)){const i=Math.sign(Number(m.value))||0;return r*i}return 0}function u(c,r){if(c.argument.type==="Identifier"&&c.argument.name===r){if(c.operator==="++")return 1;if(c.operator==="--")return-1}return 0}function p(c,r){if(c.left.name===r){if(c.operator==="+=")return t(c,1);if(c.operator==="-=")return t(c,-1)}return 0}return{ForStatement(c){if(c.test&&c.test.type==="BinaryExpression"&&c.update)for(const r of["left","right"]){if(c.test[r].type!=="Identifier")continue;const m=c.test[r].name,i=c.test.operator,f=c.update;let h;if(i==="<"||i==="<=")h=r==="left"?-1:1;else if(i===">"||i===">=")h=r==="left"?1:-1;else return;f.type==="UpdateExpression"?u(f,m)===h&&o(c):f.type==="AssignmentExpression"&&p(f,m)===h&&o(c)}}}}},Ki}var Xi,_g;function eA(){if(_g)return Xi;_g=1;const a=Ue();return Xi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"function-call-spacing",url:"https://eslint.style/rules/function-call-spacing"}}]},type:"layout",docs:{description:"Require or disallow spacing between function identifiers and their invocations",recommended:!1,url:"https://eslint.org/docs/latest/rules/func-call-spacing"},fixable:"whitespace",schema:{anyOf:[{type:"array",items:[{enum:["never"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always"]},{type:"object",properties:{allowNewlines:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{unexpectedWhitespace:"Unexpected whitespace between function name and paren.",unexpectedNewline:"Unexpected newline between function name and paren.",missing:"Missing space between function name and paren."}},create(e){const n=e.options[0]!=="always",o=!n&&e.options[1]&&e.options[1].allowNewlines,t=e.sourceCode,u=t.getText();function p(c,r,m){const i=u.slice(r.range[1],m.range[0]).replace(/\/\*.*?\*\//gu,""),f=/\s/u.test(i),h=f&&a.LINEBREAK_MATCHER.test(i);n&&f?e.report({node:c,loc:{start:r.loc.end,end:{line:m.loc.start.line,column:m.loc.start.column-1}},messageId:"unexpectedWhitespace",fix(s){return t.commentsExistBetween(r,m)?null:c.optional?s.replaceTextRange([r.range[1],m.range[0]],"?."):h?null:s.removeRange([r.range[1],m.range[0]])}}):!n&&!f?e.report({node:c,loc:{start:{line:r.loc.end.line,column:r.loc.end.column-1},end:m.loc.start},messageId:"missing",fix(s){return c.optional?null:s.insertTextBefore(m," ")}}):!n&&!o&&h&&e.report({node:c,loc:{start:r.loc.end,end:m.loc.start},messageId:"unexpectedNewline",fix(s){if(!c.optional||t.commentsExistBetween(r,m))return null;const l=[r.range[1],m.range[0]],g=t.getTokenAfter(r);return g.range[0]===r.range[1]?s.replaceTextRange(l,"?. "):g.range[1]===m.range[0]?s.replaceTextRange(l," ?."):s.replaceTextRange(l," ?. ")}})}return{"CallExpression, NewExpression"(c){const r=t.getLastToken(c),m=t.getLastToken(c.callee),i=t.getFirstTokenBetween(m,r,a.isOpeningParenToken),f=i&&t.getTokenBefore(i,a.isNotQuestionDotToken);i&&i.range[1]<c.range[1]&&p(c,f,i)},ImportExpression(c){const r=t.getFirstToken(c),m=t.getTokenAfter(r);p(c,r,m)}}}},Xi}var Ji,Bg;function tA(){if(Bg)return Ji;Bg=1;const a=Ue(),e=Jd();function n(p){return p.type==="MemberExpression"&&p.object.type==="Identifier"&&p.object.name==="module"&&(p.property.type==="Identifier"&&p.property.name==="exports"||p.property.type==="Literal"&&p.property.value==="exports")}function o(p,c){return c>=2015?e.keyword.isIdentifierES6(p):e.keyword.isIdentifierES5(p)}const t={enum:["always","never"]},u={type:"object",properties:{considerPropertyDescriptor:{type:"boolean"},includeCommonJSModuleExports:{type:"boolean"}},additionalProperties:!1};return Ji={meta:{type:"suggestion",docs:{description:"Require function names to match the name of the variable or property to which they are assigned",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/func-name-matching"},schema:{anyOf:[{type:"array",additionalItems:!1,items:[t,u]},{type:"array",additionalItems:!1,items:[u]}]},messages:{matchProperty:"Function name `{{funcName}}` should match property name `{{name}}`.",matchVariable:"Function name `{{funcName}}` should match variable name `{{name}}`.",notMatchProperty:"Function name `{{funcName}}` should not match property name `{{name}}`.",notMatchVariable:"Function name `{{funcName}}` should not match variable name `{{name}}`."}},create(p){const c=(typeof p.options[0]=="object"?p.options[0]:p.options[1])||{},r=typeof p.options[0]=="string"?p.options[0]:"always",m=c.considerPropertyDescriptor,i=c.includeCommonJSModuleExports,f=p.languageOptions.ecmaVersion;function h(d,v,S){return S?S.type==="CallExpression"&&a.isSpecificMemberAccess(S.callee,d,v):!1}function s(d,v){return r==="always"&&d!==v||r==="never"&&d===v}function l(d,v,S,b){let w;r==="always"&&b?w="matchProperty":r==="always"?w="matchVariable":b?w="notMatchProperty":w="notMatchVariable",p.report({node:d,messageId:w,data:{name:v,funcName:S}})}function g(d){return d.type==="Literal"&&typeof d.value=="string"}return{VariableDeclarator(d){!d.init||d.init.type!=="FunctionExpression"||d.id.type!=="Identifier"||d.init.id&&s(d.id.name,d.init.id.name)&&l(d,d.id.name,d.init.id.name,!1)},AssignmentExpression(d){if(d.right.type!=="FunctionExpression"||d.left.computed&&d.left.property.type!=="Literal"||!i&&n(d.left)||d.left.type!=="Identifier"&&d.left.type!=="MemberExpression")return;const v=d.left.type==="MemberExpression",S=v?a.getStaticPropertyName(d.left):d.left.name;d.right.id&&S&&o(S)&&s(S,d.right.id.name)&&l(d,S,d.right.id.name,v)},"Property, PropertyDefinition[value]"(d){if(d.value.type==="FunctionExpression"&&d.value.id){if(d.key.type==="Identifier"&&!d.computed){const v=d.value.id.name;let S=d.key.name;if(m&&S==="value"&&d.parent.type==="ObjectExpression")if(h("Object","defineProperty",d.parent.parent)||h("Reflect","defineProperty",d.parent.parent)){const b=d.parent.parent.arguments[1];g(b)&&s(b.value,v)&&l(d,b.value,v,!0)}else h("Object","defineProperties",d.parent.parent.parent.parent)||h("Object","create",d.parent.parent.parent.parent)?(S=d.parent.parent.key.name,!d.parent.parent.computed&&s(S,v)&&l(d,S,v,!0)):s(S,v)&&l(d,S,v,!0);else s(S,v)&&l(d,S,v,!0);return}g(d.key)&&o(d.key.value,f)&&s(d.key.value,d.value.id.name)&&l(d,d.key.value,d.value.id.name,!0)}}}}},Ji}var Yi,Lg;function rA(){if(Lg)return Yi;Lg=1;const a=Ue();function e(n){return n&&n.defs[0].type==="FunctionName"}return Yi={meta:{type:"suggestion",defaultOptions:["always",{}],docs:{description:"Require or disallow named `function` expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/func-names"},schema:{definitions:{value:{enum:["always","as-needed","never"]}},items:[{$ref:"#/definitions/value"},{type:"object",properties:{generators:{$ref:"#/definitions/value"}},additionalProperties:!1}]},messages:{unnamed:"Unexpected unnamed {{name}}.",named:"Unexpected named {{name}}."}},create(n){const o=n.sourceCode;function t(i){return i.generator&&n.options[1].generators?n.options[1].generators:n.options[0]}function u(i){const f=i.parent;return f.type==="MethodDefinition"||f.type==="Property"&&(f.method||f.kind==="get"||f.kind==="set")}function p(i){const f=i.parent;return u(i)||f.type==="VariableDeclarator"&&f.id.type==="Identifier"&&f.init===i||f.type==="Property"&&f.value===i||f.type==="PropertyDefinition"&&f.value===i||f.type==="AssignmentExpression"&&f.left.type==="Identifier"&&f.right===i||f.type==="AssignmentPattern"&&f.left.type==="Identifier"&&f.right===i}function c(i){n.report({node:i,messageId:"unnamed",loc:a.getFunctionHeadLoc(i,o),data:{name:a.getFunctionNameWithKind(i)}})}function r(i){n.report({node:i,messageId:"named",loc:a.getFunctionHeadLoc(i,o),data:{name:a.getFunctionNameWithKind(i)}})}function m(i){const f=o.getDeclaredVariables(i)[0];if(e(f)&&f.references.length>0)return;const h=!!(i.id&&i.id.name),s=t(i);s==="never"?h&&i.type!=="FunctionDeclaration"&&r(i):s==="as-needed"?!h&&!p(i)&&c(i):!h&&!u(i)&&c(i)}return{"FunctionExpression:exit":m,"ExportDefaultDeclaration > FunctionDeclaration":m}}},Yi}var Qi,Og;function nA(){return Og||(Og=1,Qi={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",defaultOptions:["expression",{allowArrowFunctions:!1,allowTypeAnnotation:!1,overrides:{}}],docs:{description:"Enforce the consistent use of either `function` declarations or expressions assigned to variables",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/func-style"},schema:[{enum:["declaration","expression"]},{type:"object",properties:{allowArrowFunctions:{type:"boolean"},allowTypeAnnotation:{type:"boolean"},overrides:{type:"object",properties:{namedExports:{enum:["declaration","expression","ignore"]}},additionalProperties:!1}},additionalProperties:!1}],messages:{expression:"Expected a function expression.",declaration:"Expected a function declaration."}},create(a){const[e,{allowArrowFunctions:n,allowTypeAnnotation:o,overrides:t}]=a.options,u=e==="declaration",{namedExports:p}=t,c=[];function r(i){const f=i.id.name;return i.parent.type==="ExportNamedDeclaration"?i.parent.parent.body.some(h=>h.type==="ExportNamedDeclaration"&&h.declaration?.type==="TSDeclareFunction"&&h.declaration.id.name===f):i.parent.type==="SwitchCase"?i.parent.parent.cases.some(h=>h.consequent.some(s=>s.type==="TSDeclareFunction"&&s.id.name===f)):Array.isArray(i.parent.body)&&i.parent.body.some(h=>h.type==="TSDeclareFunction"&&h.id.name===f)}const m={FunctionDeclaration(i){c.push(!1),!u&&i.parent.type!=="ExportDefaultDeclaration"&&(typeof p>"u"||i.parent.type!=="ExportNamedDeclaration")&&!r(i)&&a.report({node:i,messageId:"expression"}),i.parent.type==="ExportNamedDeclaration"&&p==="expression"&&!r(i)&&a.report({node:i,messageId:"expression"})},"FunctionDeclaration:exit"(){c.pop()},FunctionExpression(i){c.push(!1),u&&i.parent.type==="VariableDeclarator"&&(typeof p>"u"||i.parent.parent.parent.type!=="ExportNamedDeclaration")&&!(o&&i.parent.id.typeAnnotation)&&a.report({node:i.parent,messageId:"declaration"}),i.parent.type==="VariableDeclarator"&&i.parent.parent.parent.type==="ExportNamedDeclaration"&&p==="declaration"&&!(o&&i.parent.id.typeAnnotation)&&a.report({node:i.parent,messageId:"declaration"})},"FunctionExpression:exit"(){c.pop()},"ThisExpression, Super"(){c.length>0&&(c[c.length-1]=!0)}};return n||(m.ArrowFunctionExpression=function(){c.push(!1)},m["ArrowFunctionExpression:exit"]=function(i){!c.pop()&&i.parent.type==="VariableDeclarator"&&(u&&(typeof p>"u"||i.parent.parent.parent.type!=="ExportNamedDeclaration")&&!(o&&i.parent.id.typeAnnotation)&&a.report({node:i.parent,messageId:"declaration"}),i.parent.parent.parent.type==="ExportNamedDeclaration"&&p==="declaration"&&!(o&&i.parent.id.typeAnnotation)&&a.report({node:i.parent,messageId:"declaration"}))}),m}}),Qi}var Zi,Ng;function sA(){return Ng||(Ng=1,Zi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"function-call-argument-newline",url:"https://eslint.style/rules/function-call-argument-newline"}}]},type:"layout",docs:{description:"Enforce line breaks between arguments of a function call",recommended:!1,url:"https://eslint.org/docs/latest/rules/function-call-argument-newline"},fixable:"whitespace",schema:[{enum:["always","never","consistent"]}],messages:{unexpectedLineBreak:"There should be no line break here.",missingLineBreak:"There should be a line break after this argument."}},create(a){const e=a.sourceCode,n={unexpected:{messageId:"unexpectedLineBreak",check:(u,p)=>u.loc.end.line!==p.loc.start.line,createFix:(u,p)=>c=>c.replaceTextRange([p.range[1],u.range[0]]," ")},missing:{messageId:"missingLineBreak",check:(u,p)=>u.loc.end.line===p.loc.start.line,createFix:(u,p)=>c=>c.replaceTextRange([p.range[1],u.range[0]],`
|
|
68
|
+
`)}};function o(u,p){for(let c=1;c<u.arguments.length;c++){const r=e.getLastToken(u.arguments[c-1]),m=e.getFirstToken(u.arguments[c]);if(p.check(r,m)){const i=e.getTokenBefore(m,{includeComments:!0}),f=i.type==="Line";a.report({node:u,loc:{start:i.loc.end,end:m.loc.start},messageId:p.messageId,fix:f?null:p.createFix(m,i)})}}}function t(u){if(u.arguments.length<2)return;const p=a.options[0]||"always";if(p==="never")o(u,n.unexpected);else if(p==="always")o(u,n.missing);else if(p==="consistent"){const c=e.getLastToken(u.arguments[0]),r=e.getFirstToken(u.arguments[1]);c.loc.end.line===r.loc.start.line?o(u,n.unexpected):o(u,n.missing)}}return{CallExpression:t,NewExpression:t}}}),Zi}var eo,Mg;function aA(){if(Mg)return eo;Mg=1;const a=Ue();return eo={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"function-paren-newline",url:"https://eslint.style/rules/function-paren-newline"}}]},type:"layout",docs:{description:"Enforce consistent line breaks inside function parentheses",recommended:!1,url:"https://eslint.org/docs/latest/rules/function-paren-newline"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never","consistent","multiline","multiline-arguments"]},{type:"object",properties:{minItems:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{expectedBefore:"Expected newline before ')'.",expectedAfter:"Expected newline after '('.",expectedBetween:"Expected newline between arguments/params.",unexpectedBefore:"Unexpected newline before ')'.",unexpectedAfter:"Unexpected newline after '('."}},create(e){const n=e.sourceCode,o=e.options[0]||"multiline",t=o==="multiline",u=o==="multiline-arguments",p=o==="consistent";let c;typeof o=="object"?c=o.minItems:o==="always"?c=0:o==="never"?c=1/0:c=null;function r(h,s){return u&&h.length===1?s:t||u?h.some((l,g)=>g!==h.length-1&&l.loc.end.line!==h[g+1].loc.start.line):p?s:h.length>=c}function m(h,s){const l=h.leftParen,g=h.rightParen,d=n.getTokenAfter(l),v=n.getTokenBefore(g),S=!a.isTokenOnSameLine(l,d),b=!a.isTokenOnSameLine(v,g),w=r(s,S);S&&!w?e.report({node:l,messageId:"unexpectedAfter",fix(C){return n.getText().slice(l.range[1],d.range[0]).trim()?null:C.removeRange([l.range[1],d.range[0]])}}):!S&&w&&e.report({node:l,messageId:"expectedAfter",fix:C=>C.insertTextAfter(l,`
|
|
69
|
+
`)}),b&&!w?e.report({node:g,messageId:"unexpectedBefore",fix(C){return n.getText().slice(v.range[1],g.range[0]).trim()?null:C.removeRange([v.range[1],g.range[0]])}}):!b&&w&&e.report({node:g,messageId:"expectedBefore",fix:C=>C.insertTextBefore(g,`
|
|
70
|
+
`)})}function i(h,s){const l=h.leftParen,g=n.getTokenAfter(l),d=!a.isTokenOnSameLine(l,g),v=r(s,d);for(let S=0;S<=s.length-2;S++){const b=s[S],w=s[S+1];!(b.loc.end.line!==w.loc.start.line)&&v&&e.report({node:b,messageId:"expectedBetween",fix:E=>E.insertTextBefore(w,`
|
|
71
|
+
`)})}}function f(h){switch(h.type){case"NewExpression":if(!h.arguments.length&&!(a.isOpeningParenToken(n.getLastToken(h,{skip:1}))&&a.isClosingParenToken(n.getLastToken(h))&&h.callee.range[1]<h.range[1]))return null;case"CallExpression":return{leftParen:n.getTokenAfter(h.callee,a.isOpeningParenToken),rightParen:n.getLastToken(h)};case"FunctionDeclaration":case"FunctionExpression":{const s=n.getFirstToken(h,a.isOpeningParenToken),l=h.params.length?n.getTokenAfter(h.params.at(-1),a.isClosingParenToken):n.getTokenAfter(s);return{leftParen:s,rightParen:l}}case"ArrowFunctionExpression":{const s=n.getFirstToken(h,{skip:h.async?1:0});if(!a.isOpeningParenToken(s))return null;const l=h.params.length?n.getTokenAfter(h.params.at(-1),a.isClosingParenToken):n.getTokenAfter(s);return{leftParen:s,rightParen:l}}case"ImportExpression":{const s=n.getFirstToken(h,1),l=n.getLastToken(h);return{leftParen:s,rightParen:l}}default:throw new TypeError(`unexpected node with type ${h.type}`)}}return{[["ArrowFunctionExpression","CallExpression","FunctionDeclaration","FunctionExpression","ImportExpression","NewExpression"]](h){const s=f(h);let l;h.type==="ImportExpression"?l=[h.source]:a.isFunction(h)?l=h.params:l=h.arguments,s&&(m(s,l),u&&i(s,l))}}}},eo}var to,jg;function iA(){if(jg)return to;jg=1;const a={oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}]};return to={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"generator-star-spacing",url:"https://eslint.style/rules/generator-star-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing around `*` operators in generator functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/generator-star-spacing"},fixable:"whitespace",schema:[{oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"},named:a,anonymous:a,method:a},additionalProperties:!1}]}],messages:{missingBefore:"Missing space before *.",missingAfter:"Missing space after *.",unexpectedBefore:"Unexpected space before *.",unexpectedAfter:"Unexpected space after *."}},create(e){const n={before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}};function o(f,h){return f?typeof f=="string"?n[f]:Object.assign({},h,f):h}const t=function(f){const h=o(f,n.before);return{named:o(f.named,h),anonymous:o(f.anonymous,h),method:o(f.method,h)}}(e.options[0]||{}),u=e.sourceCode;function p(f){return f.value==="*"&&f.type==="Punctuator"}function c(f){return u.getFirstToken(f.parent.method||f.parent.type==="MethodDefinition"?f.parent:f,p)}function r(f){return f[0].toUpperCase()+f.slice(1)}function m(f,h,s,l){if(!!(l.range[0]-s.range[1])!==t[f][h]){const g=s.value==="*",d=t[f][h],v=g?s:l,S=`${d?"missing":"unexpected"}${r(h)}`;e.report({node:v,messageId:S,fix(b){return d?g?b.insertTextAfter(v," "):b.insertTextBefore(v," "):b.removeRange([s.range[1],l.range[0]])}})}}function i(f){if(!f.generator)return;const h=c(f),s=u.getTokenBefore(h),l=u.getTokenAfter(h);let g="named";f.parent.type==="MethodDefinition"||f.parent.type==="Property"&&f.parent.method?g="method":f.id||(g="anonymous"),g==="method"&&h===u.getFirstToken(f.parent)||m(g,"before",s,h),m(g,"after",h,l)}return{FunctionDeclaration:i,FunctionExpression:i}}},to}var ro,Ug;function oA(){if(Ug)return ro;Ug=1;const a=Ue(),e=/^(?:Arrow)?FunctionExpression$/u;function n(o){for(const t of o)if(t.reachable)return!0;return!1}return ro={meta:{type:"problem",defaultOptions:[{allowImplicit:!1}],docs:{description:"Enforce `return` statements in getters",recommended:!0,url:"https://eslint.org/docs/latest/rules/getter-return"},fixable:null,schema:[{type:"object",properties:{allowImplicit:{type:"boolean"}},additionalProperties:!1}],messages:{expected:"Expected to return a value in {{name}}.",expectedAlways:"Expected {{name}} to always return a value."}},create(o){const[{allowImplicit:t}]=o.options,u=o.sourceCode;let p={upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null,currentSegments:[]};function c(m){p.shouldCheck&&n(p.currentSegments)&&o.report({node:m,loc:a.getFunctionHeadLoc(m,u),messageId:p.hasReturn?"expectedAlways":"expected",data:{name:a.getFunctionNameWithKind(p.node)}})}function r(m){const i=m.parent;if(e.test(m.type)&&m.body.type==="BlockStatement"){if(i.kind==="get")return!0;if(i.type==="Property"&&a.getStaticPropertyName(i)==="get"&&i.parent.type==="ObjectExpression"){if(i.parent.parent.type==="CallExpression"){const f=i.parent.parent.callee;if(a.isSpecificMemberAccess(f,"Object","defineProperty")||a.isSpecificMemberAccess(f,"Reflect","defineProperty"))return!0}if(i.parent.parent.type==="Property"&&i.parent.parent.parent.type==="ObjectExpression"&&i.parent.parent.parent.parent.type==="CallExpression"){const f=i.parent.parent.parent.parent.callee;return a.isSpecificMemberAccess(f,"Object","defineProperties")||a.isSpecificMemberAccess(f,"Object","create")}}}return!1}return{onCodePathStart(m,i){p={upper:p,codePath:m,hasReturn:!1,shouldCheck:r(i),node:i,currentSegments:new Set}},onCodePathEnd(){p=p.upper},onUnreachableCodePathSegmentStart(m){p.currentSegments.add(m)},onUnreachableCodePathSegmentEnd(m){p.currentSegments.delete(m)},onCodePathSegmentStart(m){p.currentSegments.add(m)},onCodePathSegmentEnd(m){p.currentSegments.delete(m)},ReturnStatement(m){p.shouldCheck&&(p.hasReturn=!0,!t&&!m.argument&&o.report({node:m,messageId:"expected",data:{name:a.getFunctionNameWithKind(p.node)}}))},"FunctionExpression:exit":c,"ArrowFunctionExpression:exit":c}}},ro}var no,qg;function lA(){if(qg)return no;qg=1;const a=new Set(["AssignmentExpression","VariableDeclarator","MemberExpression","ExpressionStatement","CallExpression","ConditionalExpression","Program","VariableDeclaration","ChainExpression"]);function e(o,t){const u=o.references.filter(p=>p.identifier.range[0]===t.range[0]&&p.identifier.range[1]===t.range[1]);return u.length===1?u[0]:null}function n(o,t){const u=e(o,t);return u&&u.resolved&&u.resolved.defs.length>0}return no={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"global-require",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/global-require.md"}}]},type:"suggestion",docs:{description:"Require `require()` calls to be placed at top-level module scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/global-require"},schema:[],messages:{unexpected:"Unexpected require()."}},create(o){const t=o.sourceCode;return{CallExpression(u){const p=t.getScope(u);u.callee.name==="require"&&!n(p,u.callee)&&(t.getAncestors(u).every(r=>a.has(r.type))||o.report({node:u,messageId:"unexpected"}))}}}},no}var so,Vg;function uA(){if(Vg)return so;Vg=1;const a=Ue();function e(t,u){if(t.length!==u.length)return!1;for(let p=0;p<t.length;p++){const c=t[p],r=u[p];if(c.type!==r.type||c.value!==r.value)return!1}return!0}function n(t,u){return typeof t=="string"&&typeof u=="string"?t===u:Array.isArray(t)&&Array.isArray(u)?e(t,u):!1}function o(t){return t.kind==="get"||t.kind==="set"}return so={meta:{type:"suggestion",defaultOptions:["anyOrder"],docs:{description:"Require grouped accessor pairs in object literals and classes",recommended:!1,url:"https://eslint.org/docs/latest/rules/grouped-accessor-pairs"},schema:[{enum:["anyOrder","getBeforeSet","setBeforeGet"]}],messages:{notGrouped:"Accessor pair {{ formerName }} and {{ latterName }} should be grouped.",invalidOrder:"Expected {{ latterName }} to be before {{ formerName }}."}},create(t){const[u]=t.options,p=t.sourceCode;function c(m,i,f){t.report({node:f,messageId:m,loc:a.getFunctionHeadLoc(f.value,p),data:{formerName:a.getFunctionNameWithKind(i.value),latterName:a.getFunctionNameWithKind(f.value)}})}function r(m,i){const f=[];let h=!1;for(let s=0;s<m.length;s++){const l=m[s];if(i(l)&&o(l)){const g=a.getStaticPropertyName(l),d=g!==null?g:p.getTokens(l.key);for(let v=0;v<f.length;v++){const S=f[v];if(n(S.key,d)){S.getters.push(...l.kind==="get"?[l]:[]),S.setters.push(...l.kind==="set"?[l]:[]),h=!0;break}}h||f.push({key:d,getters:l.kind==="get"?[l]:[],setters:l.kind==="set"?[l]:[]}),h=!1}}for(const{getters:s,setters:l}of f)if(s.length===1&&l.length===1){const[g]=s,[d]=l,v=m.indexOf(g),S=m.indexOf(d),b=v<S?g:d,w=v<S?d:g;Math.abs(v-S)>1?c("notGrouped",b,w):(u==="getBeforeSet"&&v>S||u==="setBeforeGet"&&v<S)&&c("invalidOrder",b,w)}}return{ObjectExpression(m){r(m.properties,i=>i.type==="Property")},ClassBody(m){r(m.body,i=>i.type==="MethodDefinition"&&!i.static),r(m.body,i=>i.type==="MethodDefinition"&&i.static)}}}},so}var ao,$g;function cA(){return $g||($g=1,ao={meta:{type:"suggestion",docs:{description:"Require `for-in` loops to include an `if` statement",recommended:!1,url:"https://eslint.org/docs/latest/rules/guard-for-in"},schema:[],messages:{wrap:"The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype."}},create(a){return{ForInStatement(e){const n=e.body;if(n.type!=="EmptyStatement"&&n.type!=="IfStatement"&&!(n.type==="BlockStatement"&&n.body.length===0)&&!(n.type==="BlockStatement"&&n.body.length===1&&n.body[0].type==="IfStatement")){if(n.type==="BlockStatement"&&n.body.length>=1&&n.body[0].type==="IfStatement"){const o=n.body[0];if(o.consequent.type==="ContinueStatement"||o.consequent.type==="BlockStatement"&&o.consequent.body.length===1&&o.consequent.body[0].type==="ContinueStatement")return}a.report({node:e,messageId:"wrap"})}}}}}),ao}var io,Wg;function fA(){return Wg||(Wg=1,io={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"handle-callback-err",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/handle-callback-err.md"}}]},type:"suggestion",docs:{description:"Require error handling in callbacks",recommended:!1,url:"https://eslint.org/docs/latest/rules/handle-callback-err"},schema:[{type:"string"}],messages:{expected:"Expected error to be handled."}},create(a){const e=a.options[0]||"err",n=a.sourceCode;function o(c){return c[0]==="^"}function t(c){return o(e)?new RegExp(e,"u").test(c):c===e}function u(c){return c.variables.filter(r=>r.defs[0]&&r.defs[0].type==="Parameter")}function p(c){const r=n.getScope(c),m=u(r),i=m[0];i&&t(i.name)&&i.references.length===0&&a.report({node:c,messageId:"expected"})}return{FunctionDeclaration:p,FunctionExpression:p,ArrowFunctionExpression:p}}}),io}var oo,Gg;function pA(){if(Gg)return oo;Gg=1;function a(t){const u=t.parent;return u.type==="AssignmentExpression"&&u.left===t||u.type==="ArrayPattern"||u.type==="RestElement"||u.type==="Property"&&u.value===t&&u.parent.type==="ObjectPattern"||u.type==="AssignmentPattern"&&u.left===t}function e(t){const u=t.parent;return u.type==="ImportSpecifier"&&u.imported!==u.local&&u.imported===t||u.type==="ExportSpecifier"&&u.parent.source&&u.local!==u.exported&&u.local===t}function n(t){const u=t.parent;return!u.computed&&u.type==="Property"&&u.parent.type==="ObjectPattern"&&u.value!==t&&u.key===t}function o(t){const u=t.parent;return u.type==="Property"&&u.parent.type==="ObjectExpression"&&u.shorthand}return oo={meta:{deprecated:{message:"The rule was renamed.",url:"https://eslint.org/blog/2020/07/eslint-v7.5.0-released/#deprecating-id-blacklist",deprecatedSince:"7.5.0",availableUntil:null,replacedBy:[{rule:{name:"id-denylist",url:"https://eslint.org/docs/rules/id-denylist"}}]},type:"suggestion",docs:{description:"Disallow specified identifiers",recommended:!1,url:"https://eslint.org/docs/latest/rules/id-blacklist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted."}},create(t){const u=new Set(t.options),p=new Set,c=t.sourceCode;let r;function m(s){return u.has(s)}function i(s){const l=r.set.get(s.name);return l&&l.defs.length===0&&l.references.some(g=>g.identifier===s)}function f(s){const l=s.parent;return l.type==="MemberExpression"&&l.property===s&&!l.computed?a(l):l.type!=="CallExpression"&&l.type!=="NewExpression"&&!e(s)&&!n(s)&&!(i(s)&&!o(s))}function h(s){p.has(s.range.toString())||(t.report({node:s,messageId:"restricted",data:{name:s.name}}),p.add(s.range.toString()))}return{Program(s){r=c.getScope(s)},Identifier(s){m(s.name)&&f(s)&&h(s)}}}},oo}var lo,zg;function mA(){if(zg)return lo;zg=1;const a=Ue();function e(t){const u=t.parent;return u.type==="AssignmentExpression"&&u.left===t||u.type==="ArrayPattern"||u.type==="RestElement"||u.type==="Property"&&u.value===t&&u.parent.type==="ObjectPattern"||u.type==="AssignmentPattern"&&u.left===t}function n(t){const u=t.parent;return u.type==="ImportSpecifier"&&u.imported!==u.local&&u.imported===t||u.type==="ExportSpecifier"&&u.parent.source&&u.local!==u.exported&&u.local===t}function o(t){const u=t.parent;return!u.computed&&u.type==="Property"&&u.parent.type==="ObjectPattern"&&u.key===t}return lo={meta:{type:"suggestion",defaultOptions:[],docs:{description:"Disallow specified identifiers",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/id-denylist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted.",restrictedPrivate:"Identifier '#{{name}}' is restricted."}},create(t){const u=new Set(t.options),p=new Set,c=t.sourceCode;let r;function m(s){return u.has(s)}function i(s){const l=r.set.get(s.name);return l&&l.defs.length===0&&l.references.some(g=>g.identifier===s)}function f(s){if(a.isImportAttributeKey(s))return!1;const l=s.parent;return l.type==="MemberExpression"&&l.property===s&&!l.computed?e(l):l.type!=="CallExpression"&&l.type!=="NewExpression"&&!n(s)&&!o(s)&&!i(s)}function h(s){if(!p.has(s.range.toString())){const l=s.type==="PrivateIdentifier";t.report({node:s,messageId:l?"restrictedPrivate":"restricted",data:{name:s.name}}),p.add(s.range.toString())}}return{Program(s){r=c.getScope(s)},[["Identifier","PrivateIdentifier"]](s){m(s.name)&&f(s)&&h(s)}}}},lo}var uo,Hg;function hA(){if(Hg)return uo;Hg=1;const{getGraphemeCount:a}=Ir(),{getModuleExportName:e,isImportAttributeKey:n}=Ue();return uo={meta:{type:"suggestion",defaultOptions:[{exceptionPatterns:[],exceptions:[],min:2,properties:"always"}],docs:{description:"Enforce minimum and maximum identifier lengths",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/id-length"},schema:[{type:"object",properties:{min:{type:"integer"},max:{type:"integer"},exceptions:{type:"array",uniqueItems:!0,items:{type:"string"}},exceptionPatterns:{type:"array",uniqueItems:!0,items:{type:"string"}},properties:{enum:["always","never"]}},additionalProperties:!1}],messages:{tooShort:"Identifier name '{{name}}' is too short (< {{min}}).",tooShortPrivate:"Identifier name '#{{name}}' is too short (< {{min}}).",tooLong:"Identifier name '{{name}}' is too long (> {{max}}).",tooLongPrivate:"Identifier name #'{{name}}' is too long (> {{max}})."}},create(o){const[t]=o.options,{max:u=1/0,min:p}=t,c=t.properties!=="never",r=new Set(t.exceptions),m=t.exceptionPatterns.map(s=>new RegExp(s,"u")),i=new Set;function f(s){return m.some(l=>l.test(s))}const h={MemberExpression:c&&function(s){return!s.computed&&(s.parent.left===s&&s.parent.type==="AssignmentExpression"||s.parent.type==="Property"&&s.parent.value===s&&s.parent.parent.type==="ObjectPattern"&&s.parent.parent.parent.left===s.parent.parent)},AssignmentPattern(s,l){return s.left===l},VariableDeclarator(s,l){return s.id===l},Property(s,l){if(s.parent.type==="ObjectPattern"){const g=s.value.name===s.key.name;return!g&&s.value===l||g&&s.key===l&&c}return c&&!n(l)&&!s.computed&&s.key.name===l.name},ImportSpecifier(s,l){return s.local===l&&e(s.imported)!==e(s.local)},ImportDefaultSpecifier:!0,ImportNamespaceSpecifier:!0,RestElement:!0,FunctionExpression:!0,ArrowFunctionExpression:!0,ClassDeclaration:!0,FunctionDeclaration:!0,MethodDefinition:!0,PropertyDefinition:!0,CatchClause:!0,ArrayPattern:!0};return{[["Identifier","PrivateIdentifier"]](s){const l=s.name,g=s.parent,d=a(l),v=d<p,S=d>u;if(!(v||S)||r.has(l)||f(l))return;const b=h[g.type];if(b&&!i.has(s.range.toString())&&(b===!0||b(g,s))){i.add(s.range.toString());let w=v?"tooShort":"tooLong";s.type==="PrivateIdentifier"&&(w+="Private"),o.report({node:s,messageId:w,data:{name:l,min:p,max:u}})}}}}},uo}var co,Kg;function dA(){if(Kg)return co;Kg=1;const a=Ue();return co={meta:{type:"suggestion",defaultOptions:["^.+$",{classFields:!1,ignoreDestructuring:!1,onlyDeclarations:!1,properties:!1}],docs:{description:"Require identifiers to match a specified regular expression",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/id-match"},schema:[{type:"string"},{type:"object",properties:{properties:{type:"boolean"},classFields:{type:"boolean"},onlyDeclarations:{type:"boolean"},ignoreDestructuring:{type:"boolean"}},additionalProperties:!1}],messages:{notMatch:"Identifier '{{name}}' does not match the pattern '{{pattern}}'.",notMatchPrivate:"Identifier '#{{name}}' does not match the pattern '{{pattern}}'."}},create(e){const[n,{classFields:o,ignoreDestructuring:t,onlyDeclarations:u,properties:p}]=e.options,c=new RegExp(n,"u"),r=e.sourceCode;let m;const i=new Set,f=new Set(["CallExpression","NewExpression"]),h=new Set(["FunctionDeclaration","VariableDeclarator"]),s=new Set(["ImportSpecifier","ImportNamespaceSpecifier","ImportDefaultSpecifier"]);function l(b){const w=m.set.get(b.name);return w&&w.defs.length===0&&w.references.some(C=>C.identifier===b)}function g(b){return!c.test(b)}function d(b){let{parent:w}=b;for(;w;){if(w.type==="ObjectPattern")return!0;w=w.parent}return!1}function v(b,w){return(!u||h.has(b.type))&&!f.has(b.type)&&g(w)}function S(b){if(!i.has(b.range.toString())){const w=b.type==="PrivateIdentifier"?"notMatchPrivate":"notMatch";e.report({node:b,messageId:w,data:{name:b.name,pattern:n}}),i.add(b.range.toString())}}return{Program(b){m=r.getScope(b)},Identifier(b){const w=b.name,C=b.parent,E=C.type==="MemberExpression"?C.parent:C;if(!(l(b)||a.isImportAttributeKey(b)))if(C.type==="MemberExpression"){if(!p)return;C.object.type==="Identifier"&&C.object.name===w||E.type==="AssignmentExpression"&&E.left.type==="MemberExpression"&&E.left.property.name===b.name?g(w)&&S(b):E.type==="AssignmentExpression"&&E.right.type!=="MemberExpression"&&g(w)&&S(b)}else if(C.type==="Property"&&C.parent.type==="ObjectExpression"&&C.key===b&&!C.computed)p&&g(w)&&S(b);else if(C.type==="Property"||C.type==="AssignmentPattern"){if(C.parent&&C.parent.type==="ObjectPattern"){!t&&C.shorthand&&C.value.left&&g(w)&&S(b);const T=C.key.name===C.value.name;if(!T&&C.key===b)return;C.value.name&&g(w)&&!(T&&t)&&S(b)}if(!p&&!C.computed||t&&d(b))return;C.right!==b&&v(E,w)&&S(b)}else s.has(C.type)?C.local&&C.local.name===b.name&&g(w)&&S(b):C.type==="PropertyDefinition"?o&&g(w)&&S(b):v(E,w)&&S(b)},PrivateIdentifier(b){b.parent.type==="PropertyDefinition"&&!o||g(b.name)&&S(b)}}}},co}var fo,Xg;function gA(){if(Xg)return fo;Xg=1;const{isCommentToken:a,isNotOpeningParenToken:e}=Ue();return fo={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"implicit-arrow-linebreak",url:"https://eslint.style/rules/implicit-arrow-linebreak"}}]},type:"layout",docs:{description:"Enforce the location of arrow function bodies",recommended:!1,url:"https://eslint.org/docs/latest/rules/implicit-arrow-linebreak"},fixable:"whitespace",schema:[{enum:["beside","below"]}],messages:{expected:"Expected a linebreak before this expression.",unexpected:"Expected no linebreak before this expression."}},create(n){const o=n.sourceCode,t=n.options[0]||"beside";function u(p){if(p.body.type==="BlockStatement")return;const c=o.getTokenBefore(p.body,e),r=o.getTokenAfter(c);c.loc.end.line===r.loc.start.line&&t==="below"?n.report({node:r,messageId:"expected",fix:m=>m.insertTextBefore(r,`
|
|
72
|
+
`)}):c.loc.end.line!==r.loc.start.line&&t==="beside"&&n.report({node:r,messageId:"unexpected",fix(m){return o.getFirstTokenBetween(c,r,{includeComments:!0,filter:a})?null:m.replaceTextRange([c.range[1],r.range[0]]," ")}})}return{ArrowFunctionExpression:p=>u(p)}}},fo}var po,Jg;function yA(){if(Jg)return po;Jg=1;const a=Ue(),e=new Set(["AssignmentExpression","AssignmentPattern","ArrayExpression","ArrayPattern","ArrowFunctionExpression","AwaitExpression","BlockStatement","BinaryExpression","BreakStatement","CallExpression","CatchClause","ChainExpression","ClassBody","ClassDeclaration","ClassExpression","ConditionalExpression","ContinueStatement","DoWhileStatement","DebuggerStatement","EmptyStatement","ExperimentalRestProperty","ExperimentalSpreadProperty","ExpressionStatement","ForStatement","ForInStatement","ForOfStatement","FunctionDeclaration","FunctionExpression","Identifier","IfStatement","Literal","LabeledStatement","LogicalExpression","MemberExpression","MetaProperty","MethodDefinition","NewExpression","ObjectExpression","ObjectPattern","PrivateIdentifier","Program","Property","PropertyDefinition","RestElement","ReturnStatement","SequenceExpression","SpreadElement","StaticBlock","Super","SwitchCase","SwitchStatement","TaggedTemplateExpression","TemplateElement","TemplateLiteral","ThisExpression","ThrowStatement","TryStatement","UnaryExpression","UpdateExpression","VariableDeclaration","VariableDeclarator","WhileStatement","WithStatement","YieldExpression","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXEmptyExpression","JSXExpressionContainer","JSXElement","JSXClosingElement","JSXOpeningElement","JSXAttribute","JSXSpreadAttribute","JSXText","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ExportSpecifier","ImportDeclaration","ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier","ImportExpression"]);class n{constructor(c){this._values=Array(c+1)}insert(c,r){this._values[c]=r}findLastNotAfter(c){const r=this._values;for(let m=c;m>=0;m--){const i=r[m];if(i)return i}}deleteRange(c,r){this._values.fill(void 0,c,r)}}class o{constructor(c){this.sourceCode=c,this.firstTokensByLineNumber=new Map;const r=c.tokensAndComments;for(let m=0;m<r.length;m++){const i=r[m];this.firstTokensByLineNumber.has(i.loc.start.line)||this.firstTokensByLineNumber.set(i.loc.start.line,i),!this.firstTokensByLineNumber.has(i.loc.end.line)&&c.text.slice(i.range[1]-i.loc.end.column,i.range[1]).trim()&&this.firstTokensByLineNumber.set(i.loc.end.line,i)}}getFirstTokenOfLine(c){return this.firstTokensByLineNumber.get(c.loc.start.line)}isFirstTokenOfLine(c){return this.getFirstTokenOfLine(c)===c}getTokenIndent(c){return this.sourceCode.text.slice(c.range[0]-c.loc.start.column,c.range[0])}}class t{constructor(c,r,m,i){this._tokenInfo=c,this._indentSize=r,this._indentType=m,this._indexMap=new n(i),this._indexMap.insert(0,{offset:0,from:null,force:!1}),this._lockedFirstTokens=new WeakMap,this._desiredIndentCache=new WeakMap,this._ignoredTokens=new WeakSet}_getOffsetDescriptor(c){return this._indexMap.findLastNotAfter(c.range[0])}matchOffsetOf(c,r){this._lockedFirstTokens.set(r,c)}setDesiredOffset(c,r,m){return this.setDesiredOffsets(c.range,r,m)}setDesiredOffsets(c,r,m,i){const f={offset:m,from:r,force:i},h=this._indexMap.findLastNotAfter(c[1]),s=r&&r.range[0]>=c[0]&&r.range[1]<=c[1],l=s&&this._getOffsetDescriptor(r);this._indexMap.deleteRange(c[0]+1,c[1]),this._indexMap.insert(c[0],f),s&&(this._indexMap.insert(r.range[0],l),this._indexMap.insert(r.range[1],f)),this._indexMap.insert(c[1],h)}getDesiredIndent(c){if(!this._desiredIndentCache.has(c))if(this._ignoredTokens.has(c))this._desiredIndentCache.set(c,this._tokenInfo.getTokenIndent(c));else if(this._lockedFirstTokens.has(c)){const r=this._lockedFirstTokens.get(c);this._desiredIndentCache.set(c,this.getDesiredIndent(this._tokenInfo.getFirstTokenOfLine(r))+this._indentType.repeat(r.loc.start.column-this._tokenInfo.getFirstTokenOfLine(r).loc.start.column))}else{const r=this._getOffsetDescriptor(c),m=r.from&&r.from.loc.start.line===c.loc.start.line&&!/^\s*?\n/u.test(c.value)&&!r.force?0:r.offset*this._indentSize;this._desiredIndentCache.set(c,(r.from?this.getDesiredIndent(r.from):"")+this._indentType.repeat(m))}return this._desiredIndentCache.get(c)}ignoreToken(c){this._tokenInfo.isFirstTokenOfLine(c)&&this._ignoredTokens.add(c)}getFirstDependency(c){return this._getOffsetDescriptor(c).from}}const u={oneOf:[{type:"integer",minimum:0},{enum:["first","off"]}]};return po={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"indent",url:"https://eslint.style/rules/indent"}}]},type:"layout",docs:{description:"Enforce consistent indentation",recommended:!1,url:"https://eslint.org/docs/latest/rules/indent"},fixable:"whitespace",schema:[{oneOf:[{enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0,default:0},VariableDeclarator:{oneOf:[u,{type:"object",properties:{var:u,let:u,const:u},additionalProperties:!1}]},outerIIFEBody:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},MemberExpression:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},FunctionDeclaration:{type:"object",properties:{parameters:u,body:{type:"integer",minimum:0}},additionalProperties:!1},FunctionExpression:{type:"object",properties:{parameters:u,body:{type:"integer",minimum:0}},additionalProperties:!1},StaticBlock:{type:"object",properties:{body:{type:"integer",minimum:0}},additionalProperties:!1},CallExpression:{type:"object",properties:{arguments:u},additionalProperties:!1},ArrayExpression:u,ObjectExpression:u,ImportDeclaration:u,flatTernaryExpressions:{type:"boolean",default:!1},offsetTernaryExpressions:{type:"boolean",default:!1},ignoredNodes:{type:"array",items:{type:"string",not:{pattern:":exit$"}}},ignoreComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{wrongIndentation:"Expected indentation of {{expected}} but found {{actual}}."}},create(p){let i="space",f=4;const h={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:1,FunctionDeclaration:{parameters:1,body:1},FunctionExpression:{parameters:1,body:1},StaticBlock:{body:1},CallExpression:{arguments:1},MemberExpression:1,ArrayExpression:1,ObjectExpression:1,ImportDeclaration:1,flatTernaryExpressions:!1,ignoredNodes:[],ignoreComments:!1};p.options.length&&(p.options[0]==="tab"?(f=1,i="tab"):(f=p.options[0],i="space"),p.options[1]&&(Object.assign(h,p.options[1]),(typeof h.VariableDeclarator=="number"||h.VariableDeclarator==="first")&&(h.VariableDeclarator={var:h.VariableDeclarator,let:h.VariableDeclarator,const:h.VariableDeclarator})));const s=p.sourceCode,l=new o(s),g=new t(l,f,i==="space"?" ":" ",s.text.length),d=new WeakSet;function v(L,K,H){const ae=`${L} ${i}${L===1?"":"s"}`,re=`space${K===1?"":"s"}`,De=`tab${H===1?"":"s"}`;let Y;return K>0?Y=i==="space"?K:`${K} ${re}`:H>0?Y=i==="tab"?H:`${H} ${De}`:Y="0",{expected:ae,actual:Y}}function S(L,K){const H=Array.from(l.getTokenIndent(L)),ae=H.filter(De=>De===" ").length,re=H.filter(De=>De===" ").length;p.report({node:L,messageId:"wrongIndentation",data:v(K.length,ae,re),loc:{start:{line:L.loc.start.line,column:0},end:{line:L.loc.start.line,column:L.loc.start.column}},fix(De){const Y=[L.range[0]-L.loc.start.column,L.range[0]],I=K;return De.replaceTextRange(Y,I)}})}function b(L,K){const H=l.getTokenIndent(L);return H===K||H.includes(" ")&&H.includes(" ")}function w(L){if(!L.parent||L.parent.type!=="CallExpression"||L.parent.callee!==L)return!1;let K=L.parent&&L.parent.parent;for(;K.type==="UnaryExpression"&&["!","~","+","-"].includes(K.operator)||K.type==="AssignmentExpression"||K.type==="LogicalExpression"||K.type==="SequenceExpression"||K.type==="VariableDeclarator";)K=K.parent;return(K.type==="ExpressionStatement"||K.type==="VariableDeclaration")&&K.parent.type==="Program"}function C(L){const H=L.match(/\s*$/u)[0].match(a.createGlobalLinebreakMatcher());return H===null?0:H.length}function E(L,K,H,ae){function re(De){let Y=s.getTokenBefore(De);for(;a.isOpeningParenToken(Y)&&Y!==K;)Y=s.getTokenBefore(Y);return s.getTokenAfter(Y)}g.setDesiredOffsets([K.range[1],H.range[0]],K,typeof ae=="number"?ae:1),g.setDesiredOffset(H,K,0),!(ae==="first"&&L.length&&!L[0])&&L.forEach((De,Y)=>{if(De&&(ae==="off"&&g.ignoreToken(re(De)),Y!==0))if(ae==="first"&&l.isFirstTokenOfLine(re(De)))g.matchOffsetOf(re(L[0]),re(De));else{const I=L[Y-1],W=I&&re(I),ue=I&&s.getLastToken(I);I&&ue.loc.end.line-C(ue.value)>K.loc.end.line&&g.setDesiredOffsets([I.range[1],De.range[1]],W,0)}})}function T(L){if(L.type!=="BlockStatement"){const K=s.getTokenBefore(L,a.isNotOpeningParenToken);let H=s.getFirstToken(L),ae=s.getLastToken(L);for(;a.isOpeningParenToken(s.getTokenBefore(H))&&a.isClosingParenToken(s.getTokenAfter(ae));)H=s.getTokenBefore(H),ae=s.getTokenAfter(ae);g.setDesiredOffsets([H.range[0],ae.range[1]],K,1)}}function x(L){let K;L.arguments.length?K=s.getFirstTokenBetween(L.callee,L.arguments[0],a.isOpeningParenToken):K=s.getLastToken(L,1);const H=s.getLastToken(L);if(d.add(K),d.add(H),L.optional){const De=s.getTokenAfter(L.callee,a.isQuestionDotToken),Y=s.getTokensBetween(L.callee,De,{filter:a.isClosingParenToken}).length,I=Y?s.getTokenBefore(L.callee,{skip:Y-1}):s.getFirstToken(L.callee),W=s.getTokenBefore(De),ue=W.loc.end.line===K.loc.start.line?W:I;g.setDesiredOffset(De,ue,1)}const ae=L.callee.type==="TaggedTemplateExpression"?s.getFirstToken(L.callee.quasi):K,re=s.getTokenBefore(ae);g.setDesiredOffset(K,re,0),E(L.arguments,K,H,h.CallExpression.arguments)}function A(L){const K=[],H=[];for(let ae=0;ae<L.length;ae++){const re=L[ae];a.isOpeningParenToken(re)?K.push(re):a.isClosingParenToken(re)&&H.push({left:K.pop(),right:re})}for(let ae=H.length-1;ae>=0;ae--){const re=H[ae].left,De=H[ae].right;if(!d.has(re)&&!d.has(De)){const Y=new Set(s.getTokensBetween(re,De));Y.forEach(I=>{Y.has(g.getFirstDependency(I))||g.setDesiredOffset(I,re,1)})}g.setDesiredOffset(De,re,0)}}function k(L){const K=new Set(s.getTokens(L,{includeComments:!0}));K.forEach(H=>{if(!K.has(g.getFirstDependency(H))){const ae=l.getFirstTokenOfLine(H);H===ae?g.ignoreToken(H):g.setDesiredOffset(H,ae,0)}})}function B(L,K){let H=K;for(;H.parent&&!H.parent.type.endsWith("Statement")&&!H.parent.type.endsWith("Declaration");)H=H.parent;return H=H.parent,!H||H.loc.start.line===L.loc.start.line}function R(L,K){const H=L.loc.end.line,ae=K.loc.start.line;if(H===ae||H===ae-1)return!1;for(let re=H+1;re<ae;++re)if(!l.firstTokensByLineNumber.has(re))return!0;return!1}const F=new Set,P={"ArrayExpression, ArrayPattern"(L){const K=s.getFirstToken(L),H=s.getTokenAfter([...L.elements].reverse().find(ae=>ae)||K,a.isClosingBracketToken);E(L.elements,K,H,h.ArrayExpression)},"ObjectExpression, ObjectPattern"(L){const K=s.getFirstToken(L),H=s.getTokenAfter(L.properties.length?L.properties.at(-1):K,a.isClosingBraceToken);E(L.properties,K,H,h.ObjectExpression)},ArrowFunctionExpression(L){const K=s.getFirstToken(L,{skip:L.async?1:0});if(a.isOpeningParenToken(K)){const H=K,ae=s.getTokenBefore(L.body,a.isClosingParenToken);d.add(H),d.add(ae),E(L.params,H,ae,h.FunctionExpression.parameters)}T(L.body)},AssignmentExpression(L){const K=s.getFirstTokenBetween(L.left,L.right,H=>H.value===L.operator);g.setDesiredOffsets([K.range[0],L.range[1]],s.getLastToken(L.left),1),g.ignoreToken(K),g.ignoreToken(s.getTokenAfter(K))},"BinaryExpression, LogicalExpression"(L){const K=s.getFirstTokenBetween(L.left,L.right,ae=>ae.value===L.operator),H=s.getTokenAfter(K);g.ignoreToken(K),g.ignoreToken(H),g.setDesiredOffset(H,K,0)},"BlockStatement, ClassBody"(L){let K;L.parent&&w(L.parent)?K=h.outerIIFEBody:L.parent&&(L.parent.type==="FunctionExpression"||L.parent.type==="ArrowFunctionExpression")?K=h.FunctionExpression.body:L.parent&&L.parent.type==="FunctionDeclaration"?K=h.FunctionDeclaration.body:K=1,a.STATEMENT_LIST_PARENTS.has(L.parent.type)||g.setDesiredOffset(s.getFirstToken(L),s.getFirstToken(L.parent),0),E(L.body,s.getFirstToken(L),s.getLastToken(L),K)},CallExpression:x,"ClassDeclaration[superClass], ClassExpression[superClass]"(L){const K=s.getFirstToken(L),H=s.getTokenBefore(L.superClass,a.isNotOpeningParenToken);g.setDesiredOffsets([H.range[0],L.body.range[0]],K,1)},ConditionalExpression(L){const K=s.getFirstToken(L);if(!h.flatTernaryExpressions||!a.isTokenOnSameLine(L.test,L.consequent)||B(K,L)){const H=s.getFirstTokenBetween(L.test,L.consequent,I=>I.type==="Punctuator"&&I.value==="?"),ae=s.getFirstTokenBetween(L.consequent,L.alternate,I=>I.type==="Punctuator"&&I.value===":"),re=s.getTokenAfter(H),De=s.getTokenBefore(ae),Y=s.getTokenAfter(ae);g.setDesiredOffset(H,K,1),g.setDesiredOffset(ae,K,1),g.setDesiredOffset(re,K,re.type==="Punctuator"&&h.offsetTernaryExpressions?2:1),De.loc.end.line===Y.loc.start.line?g.setDesiredOffset(Y,re,0):g.setDesiredOffset(Y,K,Y.type==="Punctuator"&&h.offsetTernaryExpressions?2:1)}},"DoWhileStatement, WhileStatement, ForInStatement, ForOfStatement, WithStatement":L=>T(L.body),ExportNamedDeclaration(L){if(L.declaration===null){const K=s.getLastToken(L,a.isClosingBraceToken);E(L.specifiers,s.getFirstToken(L,{skip:1}),K,1),L.source&&g.setDesiredOffsets([K.range[1],L.range[1]],s.getFirstToken(L),1)}},ForStatement(L){const K=s.getFirstToken(L,1);L.init&&g.setDesiredOffsets(L.init.range,K,1),L.test&&g.setDesiredOffsets(L.test.range,K,1),L.update&&g.setDesiredOffsets(L.update.range,K,1),T(L.body)},"FunctionDeclaration, FunctionExpression"(L){const K=s.getTokenBefore(L.body),H=s.getTokenBefore(L.params.length?L.params[0]:K);d.add(H),d.add(K),E(L.params,H,K,h[L.type].parameters)},IfStatement(L){T(L.consequent),L.alternate&&T(L.alternate)},":matches(DoWhileStatement, ForStatement, ForInStatement, ForOfStatement, IfStatement, WhileStatement, WithStatement):exit"(L){let K;L.type==="IfStatement"?(K=[L.consequent],L.alternate&&K.push(L.alternate)):K=[L.body];for(const H of K){const ae=s.getLastToken(H);if(a.isSemicolonToken(ae)){const re=s.getTokenBefore(ae),De=s.getTokenAfter(ae);!a.isTokenOnSameLine(re,ae)&&De&&a.isTokenOnSameLine(ae,De)&&g.setDesiredOffset(ae,s.getFirstToken(L),0)}}},ImportDeclaration(L){if(L.specifiers.some(re=>re.type==="ImportSpecifier")){const re=s.getFirstToken(L,a.isOpeningBraceToken),De=s.getLastToken(L,a.isClosingBraceToken);E(L.specifiers.filter(Y=>Y.type==="ImportSpecifier"),re,De,h.ImportDeclaration)}const K=s.getLastToken(L,re=>re.type==="Identifier"&&re.value==="from"),H=s.getLastToken(L,re=>re.type==="String"),ae=s.getLastToken(L,re=>re.type==="Punctuator"&&re.value===";");if(K){const re=ae&&ae.range[1]===H.range[1]?L.range[1]:H.range[1];g.setDesiredOffsets([K.range[0],re],s.getFirstToken(L),1)}},ImportExpression(L){const K=s.getFirstToken(L,1),H=s.getLastToken(L);d.add(K),d.add(H),g.setDesiredOffset(K,s.getTokenBefore(K),0),E([L.source],K,H,h.CallExpression.arguments)},"MemberExpression, JSXMemberExpression, MetaProperty"(L){const K=L.type==="MetaProperty"?L.meta:L.object,H=s.getFirstTokenBetween(K,L.property,a.isNotClosingParenToken),ae=s.getTokenAfter(H),re=s.getTokensBetween(K,L.property,{filter:a.isClosingParenToken}).length,De=re?s.getTokenBefore(K,{skip:re-1}):s.getFirstToken(K),Y=s.getTokenBefore(H),I=L.computed?H:ae;L.computed&&(g.setDesiredOffset(s.getLastToken(L),H,0),g.setDesiredOffsets(L.property.range,H,1));const W=Y.loc.end.line===I.loc.start.line?Y:De;typeof h.MemberExpression=="number"?(g.setDesiredOffset(H,W,h.MemberExpression),g.setDesiredOffset(ae,L.computed?H:W,h.MemberExpression)):(g.ignoreToken(H),g.ignoreToken(ae),g.setDesiredOffset(H,W,0),g.setDesiredOffset(ae,H,0))},NewExpression(L){(L.arguments.length>0||a.isClosingParenToken(s.getLastToken(L))&&a.isOpeningParenToken(s.getLastToken(L,1)))&&x(L)},Property(L){if(!L.shorthand&&!L.method&&L.kind==="init"){const K=s.getFirstTokenBetween(L.key,L.value,a.isColonToken);g.ignoreToken(s.getTokenAfter(K))}},PropertyDefinition(L){const K=s.getFirstToken(L),H=s.getLastToken(L);let ae;if(L.computed){const re=s.getTokenBefore(L.key,a.isOpeningBracketToken),De=ae=s.getTokenAfter(L.key,a.isClosingBracketToken),Y=[re.range[1],De.range[0]];re!==K&&g.setDesiredOffset(re,K,0),g.setDesiredOffsets(Y,re,1),g.setDesiredOffset(De,re,0)}else{const re=ae=s.getFirstToken(L.key);re!==K&&g.setDesiredOffset(re,K,1)}if(L.value){const re=s.getTokenBefore(L.value,a.isEqToken),De=s.getTokenAfter(re);g.setDesiredOffset(re,ae,1),g.setDesiredOffset(De,re,1),a.isSemicolonToken(H)&&g.setDesiredOffset(H,re,1)}else a.isSemicolonToken(H)&&g.setDesiredOffset(H,ae,1)},StaticBlock(L){const K=s.getFirstToken(L,{skip:1}),H=s.getLastToken(L);E(L.body,K,H,h.StaticBlock.body)},SwitchStatement(L){const K=s.getTokenAfter(L.discriminant,a.isOpeningBraceToken),H=s.getLastToken(L);g.setDesiredOffsets([K.range[1],H.range[0]],K,h.SwitchCase),L.cases.length&&s.getTokensBetween(L.cases.at(-1),H,{includeComments:!0,filter:a.isCommentToken}).forEach(ae=>g.ignoreToken(ae))},SwitchCase(L){if(!(L.consequent.length===1&&L.consequent[0].type==="BlockStatement")){const K=s.getFirstToken(L),H=s.getTokenAfter(L);g.setDesiredOffsets([K.range[1],H.range[0]],K,1)}},TemplateLiteral(L){L.expressions.forEach((K,H)=>{const ae=L.quasis[H],re=L.quasis[H+1],De=ae.loc.start.line===ae.loc.end.line?s.getFirstToken(ae):null;g.setDesiredOffsets([ae.range[1],re.range[0]],De,1),g.setDesiredOffset(s.getFirstToken(re),De,0)})},VariableDeclaration(L){let K=Object.hasOwn(h.VariableDeclarator,L.kind)?h.VariableDeclarator[L.kind]:1;const H=s.getFirstToken(L),ae=s.getLastToken(L);if(h.VariableDeclarator[L.kind]==="first"){if(L.declarations.length>1){E(L.declarations,H,ae,"first");return}K=1}L.declarations.at(-1).loc.start.line>L.loc.start.line?g.setDesiredOffsets(L.range,H,K,!0):g.setDesiredOffsets(L.range,H,K),a.isSemicolonToken(ae)&&g.ignoreToken(ae)},VariableDeclarator(L){if(L.init){const K=s.getTokenBefore(L.init,a.isNotOpeningParenToken),H=s.getTokenAfter(K);g.ignoreToken(K),g.ignoreToken(H),g.setDesiredOffsets([H.range[0],L.range[1]],K,1),g.setDesiredOffset(K,s.getLastToken(L.id),0)}},"JSXAttribute[value]"(L){const K=s.getFirstTokenBetween(L.name,L.value,H=>H.type==="Punctuator"&&H.value==="=");g.setDesiredOffsets([K.range[0],L.value.range[1]],s.getFirstToken(L.name),1)},JSXElement(L){L.closingElement&&E(L.children,s.getFirstToken(L.openingElement),s.getFirstToken(L.closingElement),1)},JSXOpeningElement(L){const K=s.getFirstToken(L);let H;L.selfClosing?(H=s.getLastToken(L,{skip:1}),g.setDesiredOffset(s.getLastToken(L),H,0)):H=s.getLastToken(L),g.setDesiredOffsets(L.name.range,s.getFirstToken(L)),E(L.attributes,K,H,1)},JSXClosingElement(L){const K=s.getFirstToken(L);g.setDesiredOffsets(L.name.range,K,1)},JSXFragment(L){const K=s.getFirstToken(L.openingFragment),H=s.getFirstToken(L.closingFragment);E(L.children,K,H,1)},JSXOpeningFragment(L){const K=s.getFirstToken(L),H=s.getLastToken(L);g.setDesiredOffsets(L.range,K,1),g.matchOffsetOf(K,H)},JSXClosingFragment(L){const K=s.getFirstToken(L),H=s.getLastToken(L,{skip:1}),ae=s.getLastToken(L),re=a.isTokenOnSameLine(H,ae)?H:ae;g.setDesiredOffsets(L.range,K,1),g.matchOffsetOf(K,re)},JSXExpressionContainer(L){const K=s.getFirstToken(L),H=s.getLastToken(L);g.setDesiredOffsets([K.range[1],H.range[0]],K,1)},JSXSpreadAttribute(L){const K=s.getFirstToken(L),H=s.getLastToken(L);g.setDesiredOffsets([K.range[1],H.range[0]],K,1)},"*"(L){const K=s.getFirstToken(L);K&&!F.has(K)&&g.setDesiredOffsets(L.range,K,0)}},N=[],j={};for(const[L,K]of Object.entries(P))j[L]=H=>N.push({listener:K,node:H});const V=new Set;function O(L){V.add(L),F.add(s.getFirstToken(L))}const G=h.ignoredNodes.reduce((L,K)=>Object.assign(L,{[K]:O}),{});return Object.assign(j,G,{"*:exit"(L){e.has(L.type)||O(L)},"Program:exit"(){h.ignoreComments&&s.getAllComments().forEach(K=>g.ignoreToken(K));for(let K=0;K<N.length;K++){const H=N[K];V.has(H.node)||H.listener(H.node)}V.forEach(k),A(s.ast.tokens);const L=new WeakMap;for(let K=0;K<s.ast.comments.length;K++){const H=s.ast.comments[K],ae=s.getTokenBefore(H,{includeComments:!0}),re=L.has(ae)?L.get(ae):ae;L.set(H,re)}for(let K=1;K<s.lines.length+1;K++){if(!l.firstTokensByLineNumber.has(K))continue;const H=l.firstTokensByLineNumber.get(K);if(H.loc.start.line===K){if(a.isCommentToken(H)){const ae=L.get(H),re=ae?s.getTokenAfter(ae):s.ast.tokens[0],De=ae&&!R(ae,H),Y=re&&!R(H,re);if(re&&a.isSemicolonToken(re)&&!a.isTokenOnSameLine(H,re)&&g.setDesiredOffset(H,re,0),De&&b(H,g.getDesiredIndent(ae))||Y&&b(H,g.getDesiredIndent(re)))continue}b(H,g.getDesiredIndent(H))||S(H,g.getDesiredIndent(H))}}}})}},po}var mo,Yg;function vA(){if(Yg)return mo;Yg=1;const a=Ue();return mo={meta:{type:"layout",docs:{description:"Enforce consistent indentation",recommended:!1,url:"https://eslint.org/docs/latest/rules/indent-legacy"},deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"4.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"indent",url:"https://eslint.style/rules/indent"}}]},fixable:"whitespace",schema:[{oneOf:[{enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0},VariableDeclarator:{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{var:{type:"integer",minimum:0},let:{type:"integer",minimum:0},const:{type:"integer",minimum:0}}}]},outerIIFEBody:{type:"integer",minimum:0},MemberExpression:{type:"integer",minimum:0},FunctionDeclaration:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},body:{type:"integer",minimum:0}}},FunctionExpression:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},body:{type:"integer",minimum:0}}},CallExpression:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]}}},ArrayExpression:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},ObjectExpression:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]}},additionalProperties:!1}],messages:{expected:"Expected indentation of {{expected}} but found {{actual}}."}},create(e){let u="space",p=4;const c={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:null,FunctionDeclaration:{parameters:null,body:1},FunctionExpression:{parameters:null,body:1},CallExpression:{arguments:null},ArrayExpression:1,ObjectExpression:1},r=e.sourceCode;if(e.options.length&&(e.options[0]==="tab"?(p=1,u="tab"):typeof e.options[0]=="number"&&(p=e.options[0],u="space"),e.options[1])){const O=e.options[1];c.SwitchCase=O.SwitchCase||0;const G=O.VariableDeclarator;typeof G=="number"?c.VariableDeclarator={var:G,let:G,const:G}:typeof G=="object"&&Object.assign(c.VariableDeclarator,G),typeof O.outerIIFEBody=="number"&&(c.outerIIFEBody=O.outerIIFEBody),typeof O.MemberExpression=="number"&&(c.MemberExpression=O.MemberExpression),typeof O.FunctionDeclaration=="object"&&Object.assign(c.FunctionDeclaration,O.FunctionDeclaration),typeof O.FunctionExpression=="object"&&Object.assign(c.FunctionExpression,O.FunctionExpression),typeof O.CallExpression=="object"&&Object.assign(c.CallExpression,O.CallExpression),(typeof O.ArrayExpression=="number"||typeof O.ArrayExpression=="string")&&(c.ArrayExpression=O.ArrayExpression),(typeof O.ObjectExpression=="number"||typeof O.ObjectExpression=="string")&&(c.ObjectExpression=O.ObjectExpression)}const m={};function i(O,G,L){const K=`${O} ${u}${O===1?"":"s"}`,H=`space${G===1?"":"s"}`,ae=`tab${L===1?"":"s"}`;let re;return G>0&&L>0?re=`${G} ${H} and ${L} ${ae}`:G>0?re=u==="space"?G:`${G} ${H}`:L>0?re=u==="tab"?L:`${L} ${ae}`:re="0",{expected:K,actual:re}}function f(O,G,L,K,H,ae){if(L&&K)return;const re=(u==="space"?" ":" ").repeat(G),De=ae?[O.range[1]-O.loc.end.column,O.range[1]-O.loc.end.column+L+K]:[O.range[0]-O.loc.start.column,O.range[0]-O.loc.start.column+L+K];e.report({node:O,loc:H,messageId:"expected",data:i(G,L,K),fix:Y=>Y.replaceTextRange(De,re)})}function h(O,G){const L=G?r.getLastToken(O):r.getFirstToken(O),K=r.getText(L,L.loc.start.column).split(""),H=K.slice(0,K.findIndex(De=>De!==" "&&De!==" ")),ae=H.filter(De=>De===" ").length,re=H.filter(De=>De===" ").length;return{space:ae,tab:re,goodChar:u==="space"?ae:re,badChar:u==="space"?re:ae}}function s(O,G){const L=G===!0?r.getLastToken(O,1):r.getTokenBefore(O),K=G===!0?O.loc.end.line:O.loc.start.line,H=L?L.loc.end.line:-1;return K!==H}function l(O,G){const L=h(O,!1);if(O.type!=="ArrayExpression"&&O.type!=="ObjectExpression"&&(L.goodChar!==G||L.badChar!==0)&&s(O)&&f(O,G,L.space,L.tab),O.type==="IfStatement"&&O.alternate){const K=r.getTokenBefore(O.alternate);l(K,G),s(O.alternate)||l(O.alternate,G)}if(O.type==="TryStatement"&&O.handler){const K=r.getFirstToken(O.handler);l(K,G)}if(O.type==="TryStatement"&&O.finalizer){const K=r.getTokenBefore(O.finalizer);l(K,G)}if(O.type==="DoWhileStatement"){const K=r.getTokenAfter(O.body);l(K,G)}}function g(O,G){O.forEach(L=>l(L,G))}function d(O,G){const L=r.getLastToken(O),K=h(L,!0);(K.goodChar!==G||K.badChar!==0)&&s(O,!0)&&f(O,G,K.space,K.tab,{line:L.loc.start.line,column:L.loc.start.column},!0)}function v(O,G){const L=r.getLastToken(O,a.isClosingParenToken);if(r.getText(L,L.loc.start.column).slice(0,-1).trim())return;const H=h(L,!0);H.goodChar!==G&&f(O,G,H.space,H.tab,{line:L.loc.start.line,column:L.loc.start.column},!0)}function S(O,G){const L=h(O,!1);(L.goodChar!==G||L.badChar!==0)&&s(O)&&f(O,G,L.space,L.tab,{line:O.loc.start.line,column:O.loc.start.column})}function b(O,G,L){let K=O.parent;const H=new Set(L||["Program"]);for(;K.type!==G&&!H.has(K.type)&&K.type!=="Program";)K=K.parent;return K.type===G?K:null}function w(O){return b(O,"VariableDeclarator")}function C(O,G){return G&&G.parent.loc.start.line===O.loc.start.line&&G.parent.declarations.length>1}function E(O){const G=O.parent;return G.arguments.length>=2&&G.arguments[1]===O?G.arguments[0].loc.end.line>G.arguments[0].loc.start.line:!1}function T(O){const G=O.parent;let L=G.parent;if(G.type!=="CallExpression"||G.callee!==O)return!1;for(;L.type==="UnaryExpression"&&(L.operator==="!"||L.operator==="~"||L.operator==="+"||L.operator==="-")||L.type==="AssignmentExpression"||L.type==="LogicalExpression"||L.type==="SequenceExpression"||L.type==="VariableDeclarator";)L=L.parent;return(L.type==="ExpressionStatement"||L.type==="VariableDeclaration")&&L.parent&&L.parent.type==="Program"}function x(O){const G=O.parent;let L;if(G.parent&&(G.parent.type==="Property"||G.parent.type==="ArrayExpression")?L=h(G,!1).goodChar:L=h(G).goodChar,G.parent.type==="CallExpression"){const ae=G.parent;G.type!=="FunctionExpression"&&G.type!=="ArrowFunctionExpression"?ae&&ae.loc.start.line<O.loc.start.line&&(L=h(ae).goodChar):E(G)&&ae.callee.loc.start.line===ae.callee.loc.end.line&&!s(G)&&(L=h(ae).goodChar)}let K=p;c.outerIIFEBody!==null&&T(G)?K=c.outerIIFEBody*p:G.type==="FunctionExpression"?K=c.FunctionExpression.body*p:G.type==="FunctionDeclaration"&&(K=c.FunctionDeclaration.body*p),L+=K;const H=w(O);H&&C(O,H)&&(L+=p*c.VariableDeclarator[H.parent.kind]),O.body.length>0&&g(O.body,L),d(O,L-K)}function A(O){const G=r.getLastToken(O),L=O.loc.start.line,K=G.loc.end.line;return L===K}function k(O){if(A(O))return;let G=O.type==="ArrayExpression"?O.elements:O.properties;G=G.filter(ae=>ae!==null);let L,K;const H=w(O);if(s(O)){const ae=O.parent;if(L=h(ae).goodChar,(!H||H.loc.start.line!==O.loc.start.line)&&(ae.type!=="VariableDeclarator"||H===H.parent.declarations[0]))if(ae.type==="VariableDeclarator"&&H.loc.start.line===ae.loc.start.line)L+=p*c.VariableDeclarator[H.parent.kind];else if(ae.type==="ObjectExpression"||ae.type==="ArrayExpression"){const re=O.parent.type==="ObjectExpression"?O.parent.properties:O.parent.elements;re[0]&&re[0].loc.start.line===ae.loc.start.line&&re[0].loc.end.line!==ae.loc.start.line||(typeof c[ae.type]=="number"?L+=c[ae.type]*p:L=re[0].loc.start.column)}else ae.type==="CallExpression"||ae.type==="NewExpression"?typeof c.CallExpression.arguments=="number"?L+=c.CallExpression.arguments*p:c.CallExpression.arguments==="first"?ae.arguments.includes(O)&&(L=ae.arguments[0].loc.start.column):L+=p:(ae.type==="LogicalExpression"||ae.type==="ArrowFunctionExpression")&&(L+=p);S(O,L)}else L=h(O).goodChar;c[O.type]==="first"?K=G.length?G[0].loc.start.column:0:K=L+p*c[O.type],C(O,H)&&(K+=p*c.VariableDeclarator[H.parent.kind]),g(G,K),!(G.length>0&&G.at(-1).loc.end.line===O.loc.end.line)&&d(O,L+(C(O,H)?c.VariableDeclarator[H.parent.kind]*p:0))}function B(O){return O.type==="BlockStatement"||O.type==="ClassBody"||O.body&&O.body.type==="BlockStatement"||O.consequent&&O.consequent.type==="BlockStatement"}function R(O){if(A(O))return;if(O.parent&&(O.parent.type==="FunctionExpression"||O.parent.type==="FunctionDeclaration"||O.parent.type==="ArrowFunctionExpression")){x(O);return}let G,L;const K=["IfStatement","WhileStatement","ForStatement","ForInStatement","ForOfStatement","DoWhileStatement","ClassDeclaration","TryStatement"];O.parent&&K.includes(O.parent.type)&&B(O)?G=h(O.parent).goodChar:O.parent&&O.parent.type==="CatchClause"?G=h(O.parent.parent).goodChar:G=h(O).goodChar,O.type==="IfStatement"&&O.consequent.type!=="BlockStatement"?L=[O.consequent]:Array.isArray(O.body)?L=O.body:L=[O.body],L.length>0&&g(L,G+p),O.type==="BlockStatement"&&d(O,G)}function F(O){return O.declarations.reduce((G,L)=>{const K=G.at(-1);return(L.loc.start.line!==O.loc.start.line&&!K||K&&K.loc.start.line!==L.loc.start.line)&&G.push(L),G},[])}function P(O){const G=F(O),L=h(O).goodChar,K=G.at(-1),H=L+p*c.VariableDeclarator[O.kind];if(g(G,H),r.getLastToken(O).loc.end.line<=K.loc.end.line)return;const ae=r.getTokenBefore(K);ae.value===","?d(O,h(ae).goodChar):d(O,H-p)}function N(O){O.body.type!=="BlockStatement"&&R(O)}function j(O,G){const L=O.type==="SwitchStatement"?O:O.parent,K=typeof G>"u"?h(L).goodChar:G;let H;return m[L.loc.start.line]?m[L.loc.start.line]:(L.cases.length>0&&c.SwitchCase===0?H=K:H=K+p*c.SwitchCase,m[L.loc.start.line]=H,H)}function V(O){const G=/^return\s*?\(\s*?\);*?/u,L=r.getText(O).replace(r.getText(O.argument),"");return G.test(L)}return{Program(O){O.body.length>0&&g(O.body,h(O).goodChar)},ClassBody:R,BlockStatement:R,WhileStatement:N,ForStatement:N,ForInStatement:N,ForOfStatement:N,DoWhileStatement:N,IfStatement(O){O.consequent.type!=="BlockStatement"&&O.consequent.loc.start.line>O.loc.start.line&&R(O)},VariableDeclaration(O){O.declarations.at(-1).loc.start.line>O.declarations[0].loc.start.line&&P(O)},ObjectExpression(O){k(O)},ArrayExpression(O){k(O)},MemberExpression(O){if(typeof c.MemberExpression>"u"||A(O)||b(O,"VariableDeclarator",["FunctionExpression","ArrowFunctionExpression"])||b(O,"AssignmentExpression",["FunctionExpression"]))return;const G=h(O).goodChar+p*c.MemberExpression,L=[O.property],K=r.getTokenBefore(O.property);K.type==="Punctuator"&&K.value==="."&&L.push(K),g(L,G)},SwitchStatement(O){const G=h(O).goodChar,L=j(O,G);g(O.cases,L),d(O,G)},SwitchCase(O){if(A(O))return;const G=j(O);g(O.consequent,G+p)},FunctionDeclaration(O){A(O)||(c.FunctionDeclaration.parameters==="first"&&O.params.length?g(O.params.slice(1),O.params[0].loc.start.column):c.FunctionDeclaration.parameters!==null&&g(O.params,h(O).goodChar+p*c.FunctionDeclaration.parameters))},FunctionExpression(O){A(O)||(c.FunctionExpression.parameters==="first"&&O.params.length?g(O.params.slice(1),O.params[0].loc.start.column):c.FunctionExpression.parameters!==null&&g(O.params,h(O).goodChar+p*c.FunctionExpression.parameters))},ReturnStatement(O){if(A(O))return;const G=h(O).goodChar;V(O)?v(O,G):l(O,G)},CallExpression(O){A(O)||(c.CallExpression.arguments==="first"&&O.arguments.length?g(O.arguments.slice(1),O.arguments[0].loc.start.column):c.CallExpression.arguments!==null&&g(O.arguments,h(O).goodChar+p*c.CallExpression.arguments))}}}},mo}var ho,Qg;function EA(){if(Qg)return ho;Qg=1;const a=new Set(["const","using","await using"]);function e(o){return o.type==="ForInStatement"||o.type==="ForOfStatement"||o.type==="ForStatement"}function n(o){const t=o.parent,u=t.parent;return e(u)?u.type==="ForStatement"?u.init===t:u.left===t:!!o.init}return ho={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Require or disallow initialization in variable declarations",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/init-declarations"},schema:{anyOf:[{type:"array",items:[{enum:["always"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["never"]},{type:"object",properties:{ignoreForLoopInit:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{initialized:"Variable '{{idName}}' should be initialized on declaration.",notInitialized:"Variable '{{idName}}' should not be initialized on declaration."}},create(o){const t="always",u="never",p=o.options[0]||t,c=o.options[1]||{};let r=!1;return{TSModuleDeclaration(m){m.declare&&(r=!0)},"TSModuleDeclaration:exit"(m){m.declare&&(r=!1)},"VariableDeclaration:exit"(m){const i=m.kind,f=m.declarations;if(!(m.declare||r))for(let h=0;h<f.length;++h){const s=f[h],l=s.id,g=n(s),d=c.ignoreForLoopInit&&e(m.parent);let v="";p===t&&!g?v="initialized":p===u&&!a.has(i)&&g&&!d&&(v="notInitialized"),l.type==="Identifier"&&v&&o.report({node:s,messageId:v,data:{idName:l.name}})}}}}},ho}var go,Zg;function SA(){if(Zg)return go;Zg=1;const a=Ue(),e={"prefer-double":{quote:'"',description:"singlequote",convert(n){return n.replace(/'/gu,'"')}},"prefer-single":{quote:"'",description:"doublequote",convert(n){return n.replace(/"/gu,"'")}}};return go={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"jsx-quotes",url:"https://eslint.style/rules/jsx-quotes"}}]},type:"layout",docs:{description:"Enforce the consistent use of either double or single quotes in JSX attributes",recommended:!1,url:"https://eslint.org/docs/latest/rules/jsx-quotes"},fixable:"whitespace",schema:[{enum:["prefer-single","prefer-double"]}],messages:{unexpected:"Unexpected usage of {{description}}."}},create(n){const o=n.options[0]||"prefer-double",t=e[o];function u(p){return p.value.includes(t.quote)||a.isSurroundedBy(p.raw,t.quote)}return{JSXAttribute(p){const c=p.value;c&&a.isStringLiteral(c)&&!u(c)&&n.report({node:c,messageId:"unexpected",data:{description:t.description},fix(r){return r.replaceText(c,t.convert(c.raw))}})}}}},go}var yo,ey;function bA(){if(ey)return yo;ey=1;const a=Ue(),{getGraphemeCount:e}=Ir();function n(r){return a.LINEBREAK_MATCHER.test(r)}function o(r){return r.at(-1)}function t(r){return r.loc.end.line===r.loc.start.line}function u(r){const[m]=r,i=o(r);return m.loc.start.line===i.loc.end.line}function p(r,m){return r.mode=m.mode||"strict",typeof m.beforeColon<"u"?r.beforeColon=+m.beforeColon:r.beforeColon=0,typeof m.afterColon<"u"?r.afterColon=+m.afterColon:r.afterColon=1,typeof m.align<"u"&&(typeof m.align=="object"?r.align=m.align:r.align={on:m.align,mode:r.mode,beforeColon:r.beforeColon,afterColon:r.afterColon}),r}function c(r,m){return typeof m.align=="object"?(r.align=p({},m.align),r.align.on=m.align.on||"colon",r.align.mode=m.align.mode||"strict",r.multiLine=p({},m.multiLine||m),r.singleLine=p({},m.singleLine||m)):(r.multiLine=p({},m.multiLine||m),r.singleLine=p({},m.singleLine||m),r.multiLine.align&&(r.align={on:r.multiLine.align.on,mode:r.multiLine.align.mode||r.multiLine.mode,beforeColon:r.multiLine.align.beforeColon,afterColon:r.multiLine.align.afterColon})),r}return yo={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"key-spacing",url:"https://eslint.style/rules/key-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing between keys and values in object literal properties",recommended:!1,url:"https://eslint.org/docs/latest/rules/key-spacing"},fixable:"whitespace",schema:[{anyOf:[{type:"object",properties:{align:{anyOf:[{enum:["colon","value"]},{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}]},mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},{type:"object",properties:{singleLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},multiLine:{type:"object",properties:{align:{anyOf:[{enum:["colon","value"]},{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}]},mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},{type:"object",properties:{singleLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},multiLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},align:{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1}]}],messages:{extraKey:"Extra space after {{computed}}key '{{key}}'.",extraValue:"Extra space before value for {{computed}}key '{{key}}'.",missingKey:"Missing space after {{computed}}key '{{key}}'.",missingValue:"Missing space before value for {{computed}}key '{{key}}'."}},create(r){const m=r.options[0]||{},i=c({},m),f=i.multiLine,h=i.singleLine,s=i.align||null,l=r.sourceCode;function g(F){return!(F.method||F.shorthand||F.kind!=="init"||F.type!=="Property")}function d(F){return l.getTokenAfter(F,a.isColonToken)}function v(F){const P=d(F);return l.getTokenBefore(P)}function S(F){const P=d(F);return l.getTokenAfter(P)}function b(F,P){const N=F.loc.start.line,j=(g(P)?S(P.key):P).loc.start.line;if(j-N<=1)return!0;const V=l.getCommentsBefore(P);if(V.length&&V[0].loc.start.line-N<=1&&j-o(V).loc.end.line<=1){for(let O=1;O<V.length;O++)if(V[O].loc.start.line-V[O-1].loc.end.line>1)return!1;return!0}return!1}function w(F){const P=F.key;return F.computed?l.getText().slice(P.range[0],P.range[1]):a.getStaticPropertyName(F)}function C(F,P,N,j,V){const O=N.length-j;if((O&&V==="strict"||O<0&&V==="minimum"||O>0&&!j&&V==="minimum")&&!(j&&n(N))){const G=d(F.key),L=l.getTokenBefore(G,{includeComments:!0}),K=l.getTokenAfter(G,{includeComments:!0}),H=P==="key",ae=O>0,re=Math.abs(O),De=Array(re+1).join(" "),Y=H?L.loc.end:G.loc.start,I=H?G.loc.start:K.loc.start,W=H?L.loc:K.loc,ue=ae?{start:Y,end:I}:W;let oe;if(ae){let he;H?he=[L.range[1],L.range[1]+re]:he=[K.range[0]-re,K.range[0]],oe=function(ye){return ye.removeRange(he)}}else H?oe=function(he){return he.insertTextAfter(L,De)}:oe=function(he){return he.insertTextBefore(K,De)};let ne;ae?ne=P==="key"?"extraKey":"extraValue":ne=P==="key"?"missingKey":"missingValue",r.report({node:F[P],loc:ue,messageId:ne,data:{computed:F.computed?"computed ":"",key:w(F)},fix:oe})}}function E(F){const P=l.getFirstToken(F),N=v(F.key);return e(l.getText().slice(P.range[0],N.range[1]))}function T(F){const P=/(\s*):(\s*)/u.exec(l.getText().slice(F.key.range[1],F.value.range[0]));return P?{beforeColon:P[1],afterColon:P[2]}:null}function x(F){return F.properties.length===1?[F.properties]:F.properties.reduce((P,N)=>{const j=o(P),V=o(j);return!V||b(V,N)?j.push(N):P.push([N]),P},[[]])}function A(F){const P=F.length,N=F.map(E),j=s.on;let V=Math.max(...N),O,G,L;s&&P>1?(O=s.beforeColon,G=s.afterColon,L=s.mode):(O=f.beforeColon,G=f.afterColon,L=s.mode),V+=j==="colon"?O:G;for(let K=0;K<P;K++){const H=F[K],ae=T(H);if(ae){const re=N[K];j==="value"?(C(H,"key",ae.beforeColon,O,L),C(H,"value",ae.afterColon,V-re,L)):(C(H,"key",ae.beforeColon,V-re,L),C(H,"value",ae.afterColon,G,L))}}}function k(F,P){const N=T(F);N&&(C(F,"key",N.beforeColon,P.beforeColon,P.mode),C(F,"value",N.afterColon,P.afterColon,P.mode))}function B(F,P){const N=F.length;for(let j=0;j<N;j++)k(F[j],P)}function R(F){x(F).forEach(P=>{const N=P.filter(g);N.length>0&&u(N)?B(N,f):A(N)})}return s?{ObjectExpression(F){t(F)?B(F.properties.filter(g),h):R(F)}}:{Property(F){k(F,t(F.parent)?h:f)}}}},yo}var vo,ty;function xA(){if(ty)return vo;ty=1;const a=Ue(),e=Wi(),n=/^[)\]}>]$/u,o=/^(?:[([{<~!]|\+\+?|--?)$/u,t=/^[)\]}>*]$/u,u=/^[{*]$/u,p=/\$\{$/u,c=/^\}/u,r=/^(?:JSXElement|RegularExpression|String|Template|PrivateIdentifier)$/u,m=e.concat(["as","async","await","from","get","let","of","set","yield"]);(function(){m.sort();for(let h=1;h<m.length;++h)if(m[h]===m[h-1])throw new Error(`Duplication was found in the keyword list: ${m[h]}`)})();function i(h){return h.type==="Template"&&p.test(h.value)}function f(h){return h.type==="Template"&&c.test(h.value)}return vo={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"keyword-spacing",url:"https://eslint.style/rules/keyword-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing before and after keywords",recommended:!1,url:"https://eslint.org/docs/latest/rules/keyword-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!0},after:{type:"boolean",default:!0},overrides:{type:"object",properties:m.reduce((h,s)=>(h[s]={type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1},h),{}),additionalProperties:!1}},additionalProperties:!1}],messages:{expectedBefore:'Expected space(s) before "{{value}}".',expectedAfter:'Expected space(s) after "{{value}}".',unexpectedBefore:'Unexpected space(s) before "{{value}}".',unexpectedAfter:'Unexpected space(s) after "{{value}}".'}},create(h){const s=h.sourceCode,l=new WeakSet;function g(re,De){const Y=s.getTokenBefore(re);Y&&(r.test(Y.type)||De.test(Y.value))&&!i(Y)&&!l.has(Y)&&a.isTokenOnSameLine(Y,re)&&!s.isSpaceBetweenTokens(Y,re)&&h.report({loc:re.loc,messageId:"expectedBefore",data:re,fix(I){return I.insertTextBefore(re," ")}})}function d(re,De){const Y=s.getTokenBefore(re);Y&&(r.test(Y.type)||De.test(Y.value))&&!i(Y)&&!l.has(Y)&&a.isTokenOnSameLine(Y,re)&&s.isSpaceBetweenTokens(Y,re)&&h.report({loc:{start:Y.loc.end,end:re.loc.start},messageId:"unexpectedBefore",data:re,fix(I){return I.removeRange([Y.range[1],re.range[0]])}})}function v(re,De){const Y=s.getTokenAfter(re);Y&&(r.test(Y.type)||De.test(Y.value))&&!f(Y)&&!l.has(Y)&&a.isTokenOnSameLine(re,Y)&&!s.isSpaceBetweenTokens(re,Y)&&h.report({loc:re.loc,messageId:"expectedAfter",data:re,fix(I){return I.insertTextAfter(re," ")}})}function S(re,De){const Y=s.getTokenAfter(re);Y&&(r.test(Y.type)||De.test(Y.value))&&!f(Y)&&!l.has(Y)&&a.isTokenOnSameLine(re,Y)&&s.isSpaceBetweenTokens(re,Y)&&h.report({loc:{start:re.loc.end,end:Y.loc.start},messageId:"unexpectedAfter",data:re,fix(I){return I.removeRange([re.range[1],Y.range[0]])}})}function b(re={}){const De=re.before!==!1,Y=re.after!==!1,I={before:De?g:d,after:Y?v:S},W=re&&re.overrides||{},ue=Object.create(null);for(let oe=0;oe<m.length;++oe){const ne=m[oe],he=W[ne];if(he){const ye="before"in he?he.before:De,ge="after"in he?he.after:Y;ue[ne]={before:ye?g:d,after:ge?v:S}}else ue[ne]=I}return ue}const w=b(h.options[0]);function C(re,De){w[re.value].before(re,De||n)}function E(re,De){w[re.value].after(re,De||o)}function T(re){C(re),E(re)}function x(re){const De=re&&s.getFirstToken(re);De&&De.type==="Keyword"&&T(De)}function A(re){const De=re&&s.getFirstToken(re);De&&De.type==="Keyword"&&C(De)}function k(re){if(re){const De=s.getTokenBefore(re,a.isKeywordToken);T(De)}}function B(re){const De=re&&s.getFirstToken(re);De&&(De.type==="Keyword"&&De.value==="function"||De.value==="async")&&C(De)}function R(re){x(re),k(re.superClass)}function F(re){x(re),k(re.alternate)}function P(re){x(re),x(re.handler),k(re.finalizer)}function N(re){x(re),k(re.test)}function j(re){x(re);const De=s.getTokenBefore(re.right,a.isNotOpeningParenToken);s.getTokenBefore(De).type!=="PrivateIdentifier"&&C(De),E(De)}function V(re){re.await?(C(s.getFirstToken(re,0)),E(s.getFirstToken(re,1))):x(re);const De=s.getTokenBefore(re.right,a.isNotOpeningParenToken);s.getTokenBefore(De).type!=="PrivateIdentifier"&&C(De),E(De)}function O(re){const De=s.getFirstToken(re);if(C(De,t),E(De,u),re.type==="ExportDefaultDeclaration"&&T(s.getTokenAfter(De)),re.type==="ExportAllDeclaration"&&re.exported){const Y=s.getTokenBefore(re.exported);C(Y,t),E(Y,u)}if(re.source){const Y=s.getTokenBefore(re.source);C(Y,t),E(Y,u)}}function G(re){if(re.imported.range[0]!==re.local.range[0]){const De=s.getTokenBefore(re.local);C(De,t)}}function L(re){if(re.local.range[0]!==re.exported.range[0]){const De=s.getTokenBefore(re.exported);C(De,t),E(De,u)}}function K(re){const De=s.getFirstToken(re,1);C(De,t)}function H(re){if(re.static&&x(re),re.kind==="get"||re.kind==="set"||(re.method||re.type==="MethodDefinition")&&re.value.async){const De=s.getTokenBefore(re.key,Y=>{switch(Y.value){case"get":case"set":case"async":return!0;default:return!1}});if(!De)throw new Error("Failed to find token get, set, or async beside method name");T(De)}}function ae(re){C(s.getFirstToken(re))}return{DebuggerStatement:x,WithStatement:x,BreakStatement:x,ContinueStatement:x,ReturnStatement:x,ThrowStatement:x,TryStatement:P,IfStatement:F,SwitchStatement:x,SwitchCase:x,DoWhileStatement:N,ForInStatement:j,ForOfStatement:V,ForStatement:x,WhileStatement:x,ClassDeclaration:R,ExportNamedDeclaration:O,ExportDefaultDeclaration:O,ExportAllDeclaration:O,FunctionDeclaration:B,ImportDeclaration:O,VariableDeclaration:x,ArrowFunctionExpression:B,AwaitExpression:ae,ClassExpression:R,FunctionExpression:B,NewExpression:A,Super:A,ThisExpression:A,UnaryExpression:A,YieldExpression:A,ImportSpecifier:G,ExportSpecifier:L,ImportNamespaceSpecifier:K,MethodDefinition:H,PropertyDefinition:H,StaticBlock:x,Property:H,"BinaryExpression[operator='>']"(re){const De=s.getTokenBefore(re.right,a.isNotOpeningParenToken);l.add(De)}}}},vo}var Eo,ry;function CA(){if(ry)return Eo;ry=1;const a=Ue();return Eo={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"9.3.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"line-comment-position",url:"https://eslint.style/rules/line-comment-position"}}]},type:"layout",docs:{description:"Enforce position of line comments",recommended:!1,url:"https://eslint.org/docs/latest/rules/line-comment-position"},schema:[{oneOf:[{enum:["above","beside"]},{type:"object",properties:{position:{enum:["above","beside"]},ignorePattern:{type:"string"},applyDefaultPatterns:{type:"boolean"},applyDefaultIgnorePatterns:{type:"boolean"}},additionalProperties:!1}]}],messages:{above:"Expected comment to be above code.",beside:"Expected comment to be beside code."}},create(e){const n=e.options[0];let o,t,u=!0;!n||typeof n=="string"?o=!n||n==="above":(o=!n.position||n.position==="above",t=n.ignorePattern,Object.hasOwn(n,"applyDefaultIgnorePatterns")?u=n.applyDefaultIgnorePatterns:u=n.applyDefaultPatterns!==!1);const p=a.COMMENTS_IGNORE_PATTERN,c=/^\s*falls?\s?through/u,r=new RegExp(t,"u"),m=e.sourceCode;return{Program(){m.getAllComments().filter(f=>f.type==="Line").forEach(f=>{if(u&&(p.test(f.value)||c.test(f.value))||t&&r.test(f.value))return;const h=m.getTokenBefore(f,{includeComments:!0}),s=h&&h.loc.end.line===f.loc.start.line;o?s&&e.report({node:f,messageId:"above"}):s||e.report({node:f,messageId:"beside"})})}}}},Eo}var So,ny;function wA(){if(ny)return So;ny=1;const a=Ue();return So={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"linebreak-style",url:"https://eslint.style/rules/linebreak-style"}}]},type:"layout",docs:{description:"Enforce consistent linebreak style",recommended:!1,url:"https://eslint.org/docs/latest/rules/linebreak-style"},fixable:"whitespace",schema:[{enum:["unix","windows"]}],messages:{expectedLF:"Expected linebreaks to be 'LF' but found 'CRLF'.",expectedCRLF:"Expected linebreaks to be 'CRLF' but found 'LF'."}},create(e){const n=e.sourceCode;function o(t,u){return function(p){return p.replaceTextRange(t,u)}}return{Program:function(u){const p=e.options[0]||"unix",c=p==="unix",r=c?`
|
|
73
|
+
`:`\r
|
|
74
|
+
`,m=n.getText(),i=a.createGlobalLinebreakMatcher();let f,h=0;for(;(f=i.exec(m))!==null;){if(h++,f[0]===r)continue;const s=f.index,l=[s,s+f[0].length];e.report({node:u,loc:{start:{line:h,column:n.lines[h-1].length},end:{line:h+1,column:0}},messageId:c?"expectedLF":"expectedCRLF",fix:o(l,r)})}}}}},So}var bo,sy;function AA(){if(sy)return bo;sy=1;const a=Ue();function e(o){return o.map((u,p)=>({code:u.trim(),num:p+1})).filter(u=>!u.code).map(u=>u.num)}function n(o){const t=[];return o.forEach(u=>{const p=u.loc.start.line,c=u.loc.end.line;t.push(p,c)}),t}return bo={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"lines-around-comment",url:"https://eslint.style/rules/lines-around-comment"}}]},type:"layout",docs:{description:"Require empty lines around comments",recommended:!1,url:"https://eslint.org/docs/latest/rules/lines-around-comment"},fixable:"whitespace",schema:[{type:"object",properties:{beforeBlockComment:{type:"boolean",default:!0},afterBlockComment:{type:"boolean",default:!1},beforeLineComment:{type:"boolean",default:!1},afterLineComment:{type:"boolean",default:!1},allowBlockStart:{type:"boolean",default:!1},allowBlockEnd:{type:"boolean",default:!1},allowClassStart:{type:"boolean"},allowClassEnd:{type:"boolean"},allowObjectStart:{type:"boolean"},allowObjectEnd:{type:"boolean"},allowArrayStart:{type:"boolean"},allowArrayEnd:{type:"boolean"},ignorePattern:{type:"string"},applyDefaultIgnorePatterns:{type:"boolean"},afterHashbangComment:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{after:"Expected line after comment.",before:"Expected line before comment."}},create(o){const t=Object.assign({},o.options[0]),u=t.ignorePattern,p=a.COMMENTS_IGNORE_PATTERN,c=new RegExp(u,"u"),r=t.applyDefaultIgnorePatterns!==!1;t.beforeBlockComment=typeof t.beforeBlockComment<"u"?t.beforeBlockComment:!0;const m=o.sourceCode,i=m.lines,f=i.length+1,h=m.getAllComments(),s=n(h),l=e(i),g=new Set(s.concat(l));function d(P){let N=P;do N=m.getTokenBefore(N,{includeComments:!0});while(N&&a.isCommentToken(N));if(N&&a.isTokenOnSameLine(N,P))return!0;N=P;do N=m.getTokenAfter(N,{includeComments:!0});while(N&&a.isCommentToken(N));return!!(N&&a.isTokenOnSameLine(P,N))}function v(P,N){return P.type===N||P.body&&P.body.type===N||P.consequent&&P.consequent.type===N}function S(P){const N=m.getNodeByRangeIndex(P.range[0]);if(N&&N.type==="StaticBlock"){const j=m.getFirstToken(N,{skip:1});return P.range[0]>=j.range[0]?N:null}return N}function b(P,N){const j=S(P);if(j&&v(j,N)){let V=j;return j.type==="StaticBlock"?V=m.getFirstToken(j,{skip:1}):j.type==="SwitchStatement"&&(V=m.getTokenAfter(j.discriminant,{filter:a.isOpeningBraceToken})),P.loc.start.line-V.loc.start.line===1}return!1}function w(P,N){const j=S(P);return!!j&&v(j,N)&&j.loc.end.line-P.loc.end.line===1}function C(P){return b(P,"ClassBody")||b(P,"BlockStatement")||b(P,"StaticBlock")||b(P,"SwitchCase")||b(P,"SwitchStatement")}function E(P){return w(P,"ClassBody")||w(P,"BlockStatement")||w(P,"StaticBlock")||w(P,"SwitchCase")||w(P,"SwitchStatement")}function T(P){return b(P,"ClassBody")}function x(P){return w(P,"ClassBody")}function A(P){return b(P,"ObjectExpression")||b(P,"ObjectPattern")}function k(P){return w(P,"ObjectExpression")||w(P,"ObjectPattern")}function B(P){return b(P,"ArrayExpression")||b(P,"ArrayPattern")}function R(P){return w(P,"ArrayExpression")||w(P,"ArrayPattern")}function F(P,N){if(r&&p.test(P.value)||u&&c.test(P.value))return;let j=N.after,V=N.before;const O=P.loc.start.line-1,G=P.loc.end.line+1,L=d(P),K=t.allowBlockStart&&C(P)&&!(t.allowClassStart===!1&&T(P)),H=t.allowBlockEnd&&E(P)&&!(t.allowClassEnd===!1&&x(P)),ae=t.allowClassStart&&T(P),re=t.allowClassEnd&&x(P),De=t.allowObjectStart&&A(P),Y=t.allowObjectEnd&&k(P),I=t.allowArrayStart&&B(P),W=t.allowArrayEnd&&R(P),ue=K||ae||De||I,oe=H||re||Y||W;if(O<1&&(V=!1),G>=f&&(j=!1),L)return;const ne=m.getTokenBefore(P,{includeComments:!0}),he=m.getTokenAfter(P,{includeComments:!0});if(!ue&&V&&!g.has(O)&&!(a.isCommentToken(ne)&&a.isTokenOnSameLine(ne,P))){const ye=P.range[0]-P.loc.start.column,ge=[ye,ye];o.report({node:P,messageId:"before",fix(Ce){return Ce.insertTextBeforeRange(ge,`
|
|
75
|
+
`)}})}!oe&&j&&!g.has(G)&&!(a.isCommentToken(he)&&a.isTokenOnSameLine(P,he))&&o.report({node:P,messageId:"after",fix(ye){return ye.insertTextAfter(P,`
|
|
76
|
+
`)}})}return{Program(){h.forEach(P=>{P.type==="Line"?(t.beforeLineComment||t.afterLineComment)&&F(P,{after:t.afterLineComment,before:t.beforeLineComment}):P.type==="Block"?(t.beforeBlockComment||t.afterBlockComment)&&F(P,{after:t.afterBlockComment,before:t.beforeBlockComment}):P.type==="Shebang"&&t.afterHashbangComment&&F(P,{after:t.afterHashbangComment,before:!1})})}}}},bo}var xo,ay;function TA(){if(ay)return xo;ay=1;const a=Ue();return xo={meta:{type:"layout",docs:{description:"Require or disallow newlines around directives",recommended:!1,url:"https://eslint.org/docs/latest/rules/lines-around-directive"},schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{before:{enum:["always","never"]},after:{enum:["always","never"]}},additionalProperties:!1,minProperties:2}]}],fixable:"whitespace",messages:{expected:'Expected newline {{location}} "{{value}}" directive.',unexpected:'Unexpected newline {{location}} "{{value}}" directive.'},deprecated:{message:"The rule was replaced with a more general rule.",url:"https://eslint.org/blog/2017/06/eslint-v4.0.0-released/",deprecatedSince:"4.0.0",availableUntil:null,replacedBy:[{message:"The new rule moved to a plugin.",url:"https://eslint.org/docs/latest/rules/padding-line-between-statements#examples",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"padding-line-between-statements",url:"https://eslint.style/rules/padding-line-between-statements"}}]}},create(e){const n=e.sourceCode,o=e.options[0]||"always",t=typeof o=="string"?o:o.before,u=typeof o=="string"?o:o.after;function p(f){const h=n.getTokenBefore(f,{includeComments:!0}),s=h?h.loc.end.line:0;return f.loc.start.line-s>=2}function c(f){const h=n.getLastToken(f),s=n.getTokenBefore(h);return a.isSemicolonToken(h)&&h.loc.start.line>s.loc.end.line?s:h}function r(f){const h=c(f);return n.getTokenAfter(h,{includeComments:!0}).loc.start.line-h.loc.end.line>=2}function m(f,h,s){e.report({node:f,messageId:s?"expected":"unexpected",data:{value:f.expression.value,location:h},fix(l){const g=c(f);return s?h==="before"?l.insertTextBefore(f,`
|
|
77
|
+
`):l.insertTextAfter(g,`
|
|
78
|
+
`):l.removeRange(h==="before"?[f.range[0]-1,f.range[0]]:[g.range[1],g.range[1]+1])}})}function i(f){const h=a.getDirectivePrologue(f);if(!h.length)return;const s=h[0],l=n.getCommentsBefore(s);l.length?(t==="always"&&!p(s)&&m(s,"before",!0),t==="never"&&p(s)&&m(s,"before",!1)):f.type==="Program"&&t==="never"&&!l.length&&p(s)&&m(s,"before",!1);const g=h.at(-1),d=f.type==="Program"?f.body:f.body.body;g===d.at(-1)&&!g.trailingComments||(u==="always"&&!r(g)&&m(g,"after",!0),u==="never"&&r(g)&&m(g,"after",!1))}return{Program:i,FunctionDeclaration:i,FunctionExpression:i,ArrowFunctionExpression:i}}},xo}var Co,iy;function kA(){if(iy)return Co;iy=1;const a=Ue(),e={"*":{test:()=>!0},field:{test:n=>n.type==="PropertyDefinition"},method:{test:n=>n.type==="MethodDefinition"}};return Co={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"lines-between-class-members",url:"https://eslint.style/rules/lines-between-class-members"}}]},type:"layout",docs:{description:"Require or disallow an empty line between class members",recommended:!1,url:"https://eslint.org/docs/latest/rules/lines-between-class-members"},fixable:"whitespace",schema:[{anyOf:[{type:"object",properties:{enforce:{type:"array",items:{type:"object",properties:{blankLine:{enum:["always","never"]},prev:{enum:["method","field","*"]},next:{enum:["method","field","*"]}},additionalProperties:!1,required:["blankLine","prev","next"]},minItems:1}},additionalProperties:!1,required:["enforce"]},{enum:["always","never"]}]},{type:"object",properties:{exceptAfterSingleLine:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{never:"Unexpected blank line between class members.",always:"Expected blank line between class members."}},create(n){const o=[];o[0]=n.options[0]||"always",o[1]=n.options[1]||{exceptAfterSingleLine:!1};const t=typeof o[0]=="object"?o[0].enforce:[{blankLine:o[0],prev:"*",next:"*"}],u=n.sourceCode;function p(h,s){const l=u.getLastToken(h),g=u.getTokenBefore(l),d=u.getFirstToken(s);return a.isSemicolonToken(l)&&!a.isTokenOnSameLine(g,l)&&a.isTokenOnSameLine(l,d)?{curLast:g,nextFirst:l}:{curLast:l,nextFirst:d}}function c(h,s,l){const g=u.getTokenAfter(h,{includeComments:!0});return g!==s&&g.loc.start.line-h.loc.end.line<=l?c(g,s,l):h}function r(h,s,l){const g=u.getTokenBefore(h,{includeComments:!0});return g!==s&&h.loc.start.line-g.loc.end.line<=l?r(g,s,l):h}function m(h,s){return u.getTokensBetween(h,s,{includeComments:!0}).length!==0}function i(h,s){return e[s].test(h)}function f(h,s){for(let l=t.length-1;l>=0;--l){const g=t[l];if(i(h,g.prev)&&i(s,g.next))return g.blankLine}return null}return{ClassBody(h){const s=h.body;for(let l=0;l<s.length-1;l++){const g=u.getFirstToken(s[l]),{curLast:d,nextFirst:v}=p(s[l],s[l+1]),b=!!a.isTokenOnSameLine(g,d)&&o[1].exceptAfterSingleLine,w=c(d,v,1),C=r(v,d,1),E=C.loc.start.line-w.loc.end.line>1,T=m(w,C),x=c(d,v,0),A=f(s[l],s[l+1]);A==="never"&&E?n.report({node:s[l+1],messageId:"never",fix(k){return T?null:k.replaceTextRange([w.range[1],C.range[0]],`
|
|
79
|
+
`)}}):A==="always"&&!b&&!E&&n.report({node:s[l+1],messageId:"always",fix(k){return T?null:k.insertTextAfter(x,`
|
|
80
|
+
`)}})}}}}},Co}var wo,oy;function DA(){if(oy)return wo;oy=1;const a=Ue(),e=new Set(["Identifier","Super","ThisExpression"]);function n(f,h){return f.type==="Identifier"&&f.name==="undefined"?a.isReferenceToGlobalVariable(h,f):f.type==="UnaryExpression"&&f.operator==="void"&&f.argument.type==="Literal"&&f.argument.value===0}function o(f){return f.type==="Identifier"&&f.name!=="undefined"||f.type==="MemberExpression"}function t(f,h){if(f.type!=="BinaryExpression"||f.operator!=="==")return!1;const s=o(f.left)?"left":"right",l=s==="left"?"right":"left";return o(f[s])&&(a.isNullLiteral(f[l])||n(f[l],h))}function u(f){return f.type==="LogicalExpression"&&f.operator==="||"&&f.left.type==="BinaryExpression"&&f.left.operator==="==="&&f.right.type==="BinaryExpression"&&f.right.operator==="==="}function p(f,h){if(!u(f))return!1;const s=o(f.left.left)?"left":"right",l=s==="left"?"right":"left",g=o(f.right.left)?"left":"right",d=g==="left"?"right":"left";return a.isSameReference(f.left[s],f.right[g])&&(a.isNullLiteral(f.left[l])&&n(f.right[d],h)||n(f.left[l],h)&&a.isNullLiteral(f.right[d]))}function c(f,h){return f.type==="CallExpression"&&f.callee.name==="Boolean"&&f.arguments.length===1&&a.isReferenceToGlobalVariable(h,f.callee)}function r(f,h){const s=f.type==="UnaryExpression"&&f.operator==="!",l=s?f.argument:f;switch(!0){case o(l):return{reference:l,operator:s?"||":"&&"};case(l.type==="UnaryExpression"&&l.operator==="!"&&o(l.argument)):return{reference:l.argument,operator:"&&"};case(c(l,h)&&o(l.arguments[0])):return{reference:l.arguments[0],operator:s?"||":"&&"};case t(f,h):return{reference:o(f.left)?f.left:f.right,operator:"??"};case p(f,h):return{reference:o(f.left.left)?f.left.left:f.left.right,operator:"??"};default:return null}}function m(f){return f.type==="Program"?!1:f.parent.type==="WithStatement"&&f.parent.body===f?!0:m(f.parent)}function i(f,h){let s=h.left;for(;s.type==="LogicalExpression"&&s.operator===h.operator;){if(a.isParenthesised(f,s))return s;s=s.left}return s}return wo={meta:{type:"suggestion",docs:{description:"Require or disallow logical assignment operator shorthand",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/logical-assignment-operators"},schema:{type:"array",oneOf:[{items:[{const:"always"},{type:"object",properties:{enforceForIfStatements:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2},{items:[{const:"never"}],minItems:1,maxItems:1}]},fixable:"code",hasSuggestions:!0,messages:{assignment:"Assignment (=) can be replaced with operator assignment ({{operator}}).",useLogicalOperator:"Convert this assignment to use the operator {{ operator }}.",logical:"Logical expression can be replaced with an assignment ({{ operator }}).",convertLogical:"Replace this logical expression with an assignment with the operator {{ operator }}.",if:"'if' statement can be replaced with a logical operator assignment with operator {{ operator }}.",convertIf:"Replace this 'if' statement with a logical assignment with operator {{ operator }}.",unexpected:"Unexpected logical operator assignment ({{operator}}) shorthand.",separate:"Separate the logical assignment into an assignment with a logical operator."}},create(f){const h=f.options[0]==="never"?"never":"always",s=h==="always"&&f.options.length>1&&f.options[1].enforceForIfStatements,l=f.sourceCode,g=l.getScope(l.ast).isStrict;function d(w){return w.type==="Identifier"&&(g||!m(w))}function v(w){return!g&&m(w)?w.type==="Identifier":w.type==="MemberExpression"&&e.has(w.object.type)&&(!w.computed||w.property.type!=="MemberExpression"&&w.property.type!=="ChainExpression")}function S(w,C,E){return E?{...w,fix:C.fix}:{...w,suggest:[C]}}function b(w){return l.getFirstTokenBetween(w.left,w.right,C=>C.value===w.operator)}return h==="never"?{AssignmentExpression(w){if(!a.isLogicalAssignmentOperator(w.operator))return;const C={messageId:"unexpected",node:w,data:{operator:w.operator}},E={messageId:"separate",*fix(T){if(l.getCommentsInside(w).length>0)return;const x=b(w);yield T.replaceText(x,"=");const A=l.getText(w.left),k=w.operator.slice(0,-1);yield T.insertTextAfter(x,` ${A} ${k}`);const B=a.getPrecedence(w.right)<=a.getPrecedence({type:"LogicalExpression",operator:k}),R=w.operator==="??="&&a.isLogicalExpression(w.right);!a.isParenthesised(l,w.right)&&(B||R)&&(yield T.insertTextBefore(w.right,"("),yield T.insertTextAfter(w.right,")"))}};f.report(S(C,E,d(w.left)))}}:{"AssignmentExpression[operator='='][right.type='LogicalExpression']"(w){const C=i(l,w.right);if(!a.isSameReference(w.left,C))return;const E={messageId:"assignment",node:w,data:{operator:`${w.right.operator}=`}},T={messageId:"useLogicalOperator",data:{operator:`${w.right.operator}=`},*fix(x){if(l.getCommentsInside(w).length>0)return;const A=b(w);yield x.insertTextBefore(A,w.right.operator);const k=b(C.parent),B=l.getTokenAfter(k);yield x.removeRange([C.parent.range[0],B.range[0]])}};f.report(S(E,T,d(w.left)))},'LogicalExpression[right.type="AssignmentExpression"][right.operator="="]'(w){if(o(w.left)&&a.isSameReference(w.left,w.right.left)){const C={messageId:"logical",node:w,data:{operator:`${w.operator}=`}},E={messageId:"convertLogical",data:{operator:`${w.operator}=`},*fix(x){if(l.getCommentsInside(w).length>0)return;const A=a.getPrecedence(w.parent),k=w.parent.type!=="ExpressionStatement"&&(A===-1||a.getPrecedence({type:"AssignmentExpression"})<A);!a.isParenthesised(l,w)&&k&&(yield x.insertTextBefore(w,"("),yield x.insertTextAfter(w,")")),yield x.removeRange([w.range[0],w.right.range[0]]),yield x.removeRange([w.right.range[1],w.range[1]]);const B=b(w.right);yield x.insertTextBefore(B,w.operator)}},T=d(w.left)||v(w.left);f.report(S(C,E,T))}},"IfStatement[alternate=null]"(w){if(!s)return;const C=w.consequent.type==="BlockStatement";if(C&&w.consequent.body.length!==1)return;const E=C?w.consequent.body[0]:w.consequent,T=l.getScope(w),x=r(w.test,T);if(E.type==="ExpressionStatement"&&E.expression.type==="AssignmentExpression"&&E.expression.operator==="="&&x!==null&&a.isSameReference(x.reference,E.expression.left)){const A={messageId:"if",node:w,data:{operator:`${x.operator}=`}},k={messageId:"convertIf",data:{operator:`${x.operator}=`},*fix(R){if(l.getCommentsInside(w).length>0)return;const F=l.getFirstToken(E),P=l.getTokenBefore(w);if(P!==null&&P.value!==";"&&P.value!=="{"&&F.type!=="Identifier"&&F.type!=="Keyword")return;const N=b(E.expression);yield R.insertTextBefore(N,x.operator),yield R.removeRange([w.range[0],E.range[0]]),yield R.removeRange([E.range[1],w.range[1]]);const j=l.getTokenAfter(E.expression);C&&j!==null&&j.value!==";"&&(yield R.insertTextAfter(w,";"))}},B=d(x.reference)||w.test.type!=="LogicalExpression"&&v(x.reference);f.report(S(A,k,B))}}}}},wo}var Ao,ly;function IA(){return ly||(ly=1,Ao={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of classes per file",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-classes-per-file"},schema:[{oneOf:[{type:"integer",minimum:1},{type:"object",properties:{ignoreExpressions:{type:"boolean"},max:{type:"integer",minimum:1}},additionalProperties:!1}]}],messages:{maximumExceeded:"File has too many classes ({{ classCount }}). Maximum allowed is {{ max }}."}},create(a){const[e={}]=a.options,[n,o]=typeof e=="number"?[!1,e||1]:[e.ignoreExpressions,e.max||1];let t=0;return{Program(){t=0},"Program:exit"(u){t>o&&a.report({node:u,messageId:"maximumExceeded",data:{classCount:t,max:o}})},ClassDeclaration(){t++},ClassExpression(){n||t++}}}}),Ao}var To,uy;function PA(){return uy||(uy=1,To={meta:{type:"suggestion",docs:{description:"Enforce a maximum depth that blocks can be nested",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-depth"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{tooDeeply:"Blocks are nested too deeply ({{depth}}). Maximum allowed is {{maxDepth}}."}},create(a){const e=[],n=a.options[0];let o=4;typeof n=="object"&&(Object.hasOwn(n,"maximum")||Object.hasOwn(n,"max"))&&(o=n.maximum||n.max),typeof n=="number"&&(o=n);function t(){e.push(0)}function u(){e.pop()}function p(r){const m=++e[e.length-1];m>o&&a.report({node:r,messageId:"tooDeeply",data:{depth:m,maxDepth:o}})}function c(){e[e.length-1]--}return{Program:t,FunctionDeclaration:t,FunctionExpression:t,ArrowFunctionExpression:t,StaticBlock:t,IfStatement(r){r.parent.type!=="IfStatement"&&p(r)},SwitchStatement:p,TryStatement:p,DoWhileStatement:p,WhileStatement:p,WithStatement:p,ForStatement:p,ForInStatement:p,ForOfStatement:p,"IfStatement:exit":c,"SwitchStatement:exit":c,"TryStatement:exit":c,"DoWhileStatement:exit":c,"WhileStatement:exit":c,"WithStatement:exit":c,"ForStatement:exit":c,"ForInStatement:exit":c,"ForOfStatement:exit":c,"FunctionDeclaration:exit":u,"FunctionExpression:exit":u,"ArrowFunctionExpression:exit":u,"StaticBlock:exit":u,"Program:exit":u}}}),To}var ko,cy;function FA(){if(cy)return ko;cy=1;const a={type:"object",properties:{code:{type:"integer",minimum:0},comments:{type:"integer",minimum:0},tabWidth:{type:"integer",minimum:0},ignorePattern:{type:"string"},ignoreComments:{type:"boolean"},ignoreStrings:{type:"boolean"},ignoreUrls:{type:"boolean"},ignoreTemplateLiterals:{type:"boolean"},ignoreRegExpLiterals:{type:"boolean"},ignoreTrailingComments:{type:"boolean"}},additionalProperties:!1},e={anyOf:[a,{type:"integer",minimum:0}]};return ko={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"max-len",url:"https://eslint.style/rules/max-len"}}]},type:"layout",docs:{description:"Enforce a maximum line length",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-len"},schema:[e,e,a],messages:{max:"This line has a length of {{lineLength}}. Maximum allowed is {{maxLength}}.",maxComment:"This line has a comment length of {{lineLength}}. Maximum allowed is {{maxCommentLength}}."}},create(n){const o=/[^:/?#]:\/\/[^?#]/u,t=n.sourceCode;function u(R,F){let P=0;return R.replace(/\t/gu,(N,j)=>{const V=j+P,O=F?V%F:0,G=F-O;P+=G-1}),Array.from(R).length+P}const p=Object.assign({},n.options.at(-1));typeof n.options[0]=="number"&&(p.code=n.options[0]),typeof n.options[1]=="number"&&(p.tabWidth=n.options[1]);const c=typeof p.code=="number"?p.code:80,r=typeof p.tabWidth=="number"?p.tabWidth:4,m=!!p.ignoreComments,i=!!p.ignoreStrings,f=!!p.ignoreTemplateLiterals,h=!!p.ignoreRegExpLiterals,s=!!p.ignoreTrailingComments||!!p.ignoreComments,l=!!p.ignoreUrls,g=p.comments;let d=p.ignorePattern||null;d&&(d=new RegExp(d,"u"));function v(R,F,P){return P&&P.loc.start.line===F&&F<=P.loc.end.line&&(P.loc.end.line>F||P.loc.end.column===R.length)}function S(R,F,P){const N=P.loc.start,j=P.loc.end,V=!R.slice(0,P.loc.start.column).trim();return P&&(N.line<F||N.line===F&&V)&&(j.line>F||j.line===F&&j.column===R.length)}function b(R){if(!R||!R.parent||R.type!=="JSXEmptyExpression"||R.parent.type!=="JSXExpressionContainer")return!1;const F=R.parent;return F.loc.start.line===F.loc.end.line}function w(R,F){return R.slice(0,F.loc.start.column).replace(/\s+$/u,"")}function C(R,F,P){Array.isArray(R[F])||(R[F]=[]),R[F].push(P)}function E(){return t.ast.tokens.filter(R=>R.type==="String"||R.type==="JSXText"&&t.getNodeByRangeIndex(R.range[0]-1).type==="JSXAttribute")}function T(){return t.ast.tokens.filter(R=>R.type==="Template")}function x(){return t.ast.tokens.filter(R=>R.type==="RegularExpression")}function A(R){const F={};for(let P=0;P<R.length;P++){const N=R[P];for(let j=N.loc.start.line;j<=N.loc.end.line;++j)C(F,j,N)}return F}function k(){const R=[];return t.getAllComments().forEach(F=>{const P=t.getNodeByRangeIndex(F.range[0]);b(P)?R.at(-1)!==P.parent&&R.push(P.parent):R.push(F)}),R}function B(R){const F=t.lines,P=m||g||s?k():[];let N=0;const j=E(),V=A(j),O=T(),G=A(O),L=x(),K=A(L);F.forEach((H,ae)=>{const re=ae+1;let De=!1,Y;if(N<P.length){let oe;do oe=P[++N];while(oe&&oe.loc.start.line<=re);if(oe=P[--N],S(H,re,oe))De=!0,Y=H;else if(s&&v(H,re,oe)){Y=w(H,oe);let ne=N;for(;v(Y,re,P[--ne]);)Y=w(Y,P[ne])}else Y=H}else Y=H;if(d&&d.test(Y)||l&&o.test(Y)||i&&V[re]||f&&G[re]||h&&K[re])return;const I=u(Y,r),W=De&&g;if(De&&m)return;const ue={start:{line:re,column:0},end:{line:re,column:Y.length}};W?I>g&&n.report({node:R,loc:ue,messageId:"maxComment",data:{lineLength:I,maxCommentLength:g}}):I>c&&n.report({node:R,loc:ue,messageId:"max",data:{lineLength:I,maxLength:c}})})}return{Program:B}}},ko}var Do,fy;function RA(){if(fy)return Do;fy=1;const a=Ue();function e(n,o){return[...Array(o-n).keys()].map(t=>t+n)}return Do={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of lines per file",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-lines"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{max:{type:"integer",minimum:0},skipComments:{type:"boolean"},skipBlankLines:{type:"boolean"}},additionalProperties:!1}]}],messages:{exceed:"File has too many lines ({{actual}}). Maximum allowed is {{max}}."}},create(n){const o=n.options[0];let t=300;typeof o=="object"&&Object.hasOwn(o,"max")?t=o.max:typeof o=="number"&&(t=o);const u=o&&o.skipComments,p=o&&o.skipBlankLines,c=n.sourceCode;function r(i){return i&&(i.type==="Block"||i.type==="Line")}function m(i){let f=i.loc.start.line,h=i.loc.end.line,s;s=i;do s=c.getTokenBefore(s,{includeComments:!0});while(r(s));s&&a.isTokenOnSameLine(s,i)&&(f+=1),s=i;do s=c.getTokenAfter(s,{includeComments:!0});while(r(s));return s&&a.isTokenOnSameLine(i,s)&&(h-=1),f<=h?e(f,h+1):[]}return{"Program:exit"(){let i=c.lines.map((f,h)=>({lineNumber:h+1,text:f}));if(i.length>1&&i.at(-1).text===""&&i.pop(),p&&(i=i.filter(f=>f.text.trim()!=="")),u){const f=c.getAllComments(),h=new Set(f.flatMap(m));i=i.filter(s=>!h.has(s.lineNumber))}if(i.length>t){const f={start:{line:i[t].lineNumber,column:0},end:{line:c.lines.length,column:c.lines.at(-1).length}};n.report({loc:f,messageId:"exceed",data:{max:t,actual:i.length}})}}}}},Do}var Io,py;function _A(){if(py)return Io;py=1;const a=Ue(),{upperCaseFirst:e}=Ir(),o={oneOf:[{type:"object",properties:{max:{type:"integer",minimum:0},skipComments:{type:"boolean"},skipBlankLines:{type:"boolean"},IIFEs:{type:"boolean"}},additionalProperties:!1},{type:"integer",minimum:1}]};function t(u){const p=new Map;return u.forEach(c=>{for(let r=c.loc.start.line;r<=c.loc.end.line;r++)p.set(r,c)}),p}return Io={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of lines of code in a function",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-lines-per-function"},schema:[o],messages:{exceed:"{{name}} has too many lines ({{lineCount}}). Maximum allowed is {{maxLines}}."}},create(u){const p=u.sourceCode,c=p.lines,r=u.options[0];let m=50,i=!1,f=!1,h=!1;typeof r=="object"?(m=typeof r.max=="number"?r.max:50,i=!!r.skipComments,f=!!r.skipBlankLines,h=!!r.IIFEs):typeof r=="number"&&(m=r);const s=t(p.getAllComments());function l(S,b,w){const C=w.loc.start,E=w.loc.end,T=C.line===b&&!S.slice(0,C.column).trim(),x=E.line===b&&!S.slice(E.column).trim();return w&&(C.line<b||T)&&(E.line>b||x)}function g(S){return(S.type==="FunctionExpression"||S.type==="ArrowFunctionExpression")&&S.parent&&S.parent.type==="CallExpression"&&S.parent.callee===S}function d(S){return!S.parent||S!==S.parent.value?!1:S.parent.type==="MethodDefinition"?!0:S.parent.type==="Property"?S.parent.method===!0||S.parent.kind==="get"||S.parent.kind==="set":!1}function v(S){const b=d(S)?S.parent:S;if(!h&&g(b))return;let w=0;for(let C=b.loc.start.line-1;C<b.loc.end.line;++C){const E=c[C];i&&s.has(C+1)&&l(E,C+1,s.get(C+1))||f&&E.match(/^\s*$/u)||w++}if(w>m){const C=e(a.getFunctionNameWithKind(S));u.report({node:b,messageId:"exceed",data:{name:C,lineCount:w,maxLines:m}})}}return{FunctionDeclaration:v,FunctionExpression:v,ArrowFunctionExpression:v}}},Io}var Po,my;function BA(){return my||(my=1,Po={meta:{type:"suggestion",docs:{description:"Enforce a maximum depth that callbacks can be nested",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-nested-callbacks"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{exceed:"Too many nested callbacks ({{num}}). Maximum allowed is {{max}}."}},create(a){const e=a.options[0];let n=10;typeof e=="object"&&(Object.hasOwn(e,"maximum")||Object.hasOwn(e,"max"))?n=e.maximum||e.max:typeof e=="number"&&(n=e);const o=[];function t(p){if(p.parent.type==="CallExpression"&&o.push(p),o.length>n){const r={num:o.length,max:n};a.report({node:p,messageId:"exceed",data:r})}}function u(){o.pop()}return{ArrowFunctionExpression:t,"ArrowFunctionExpression:exit":u,FunctionExpression:t,"FunctionExpression:exit":u}}}),Po}var Fo,hy;function LA(){if(hy)return Fo;hy=1;const a=Ue(),{upperCaseFirst:e}=Ir();return Fo={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Enforce a maximum number of parameters in function definitions",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-params"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0},countVoidThis:{type:"boolean",description:"Whether to count a `this` declaration when the type is `void`."}},additionalProperties:!1}]}],messages:{exceed:"{{name}} has too many parameters ({{count}}). Maximum allowed is {{max}}."}},create(n){const o=n.sourceCode,t=n.options[0];let u=3,p=!1;typeof t=="object"&&((Object.hasOwn(t,"maximum")||Object.hasOwn(t,"max"))&&(u=t.maximum||t.max),p=t.countVoidThis),typeof t=="number"&&(u=t);function c(r){const i=r.params.length>0&&r.params[0].type==="Identifier"&&r.params[0].name==="this"&&r.params[0].typeAnnotation?.typeAnnotation.type==="TSVoidKeyword"&&!p?r.params.length-1:r.params.length;i>u&&n.report({loc:a.getFunctionHeadLoc(r,o),node:r,messageId:"exceed",data:{name:e(a.getFunctionNameWithKind(r)),count:i,max:u}})}return{FunctionDeclaration:c,ArrowFunctionExpression:c,FunctionExpression:c,TSDeclareFunction:c,TSFunctionType:c}}},Fo}var Ro,dy;function OA(){if(dy)return Ro;dy=1;const a=Ue(),{upperCaseFirst:e}=Ir();return Ro={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of statements allowed in function blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-statements"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]},{type:"object",properties:{ignoreTopLevelFunctions:{type:"boolean"}},additionalProperties:!1}],messages:{exceed:"{{name}} has too many statements ({{count}}). Maximum allowed is {{max}}."}},create(n){const o=[],t=n.options[0],u=n.options[1]&&n.options[1].ignoreTopLevelFunctions||!1,p=[];let c=10;typeof t=="object"&&(Object.hasOwn(t,"maximum")||Object.hasOwn(t,"max"))?c=t.maximum||t.max:typeof t=="number"&&(c=t);function r(h,s,l){if(s>l){const g=e(a.getFunctionNameWithKind(h));n.report({node:h,messageId:"exceed",data:{name:g,count:s,max:l}})}}function m(){o.push(0)}function i(h){const s=o.pop();h.type!=="StaticBlock"&&(u&&o.length===0?p.push({node:h,count:s}):r(h,s,c))}function f(h){o[o.length-1]+=h.body.length}return{FunctionDeclaration:m,FunctionExpression:m,ArrowFunctionExpression:m,StaticBlock:m,BlockStatement:f,"FunctionDeclaration:exit":i,"FunctionExpression:exit":i,"ArrowFunctionExpression:exit":i,"StaticBlock:exit":i,"Program:exit"(){p.length!==1&&p.forEach(h=>{const s=h.count,l=h.node;r(l,s,c)})}}}},Ro}var _o,gy;function NA(){if(gy)return _o;gy=1;const a=Ue();return _o={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"max-statements-per-line",url:"https://eslint.style/rules/max-statements-per-line"}}]},type:"layout",docs:{description:"Enforce a maximum number of statements allowed per line",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-statements-per-line"},schema:[{type:"object",properties:{max:{type:"integer",minimum:1,default:1}},additionalProperties:!1}],messages:{exceed:"This line has {{numberOfStatementsOnThisLine}} {{statements}}. Maximum allowed is {{maxStatementsPerLine}}."}},create(e){const n=e.sourceCode,o=e.options[0]||{},t=typeof o.max<"u"?o.max:1;let u=0,p=0,c;const r=/^(?:(?:DoWhile|For|ForIn|ForOf|If|Labeled|While)Statement|Export(?:Default|Named)Declaration)$/u;function m(){c&&e.report({node:c,messageId:"exceed",data:{numberOfStatementsOnThisLine:p,maxStatementsPerLine:t,statements:p===1?"statement":"statements"}}),c=null}function i(s){return n.getLastToken(s,a.isNotSemicolonToken)}function f(s){const l=s.loc.start.line;r.test(s.parent.type)&&s.parent.alternate!==s||(l===u?p+=1:(m(),p=1,u=l),p===t+1&&(c=c||s))}function h(s){const l=i(s).loc.end.line;l!==u&&(m(),p=1,u=l)}return{BreakStatement:f,ClassDeclaration:f,ContinueStatement:f,DebuggerStatement:f,DoWhileStatement:f,ExpressionStatement:f,ForInStatement:f,ForOfStatement:f,ForStatement:f,FunctionDeclaration:f,IfStatement:f,ImportDeclaration:f,LabeledStatement:f,ReturnStatement:f,SwitchStatement:f,ThrowStatement:f,TryStatement:f,VariableDeclaration:f,WhileStatement:f,WithStatement:f,ExportNamedDeclaration:f,ExportDefaultDeclaration:f,ExportAllDeclaration:f,"BreakStatement:exit":h,"ClassDeclaration:exit":h,"ContinueStatement:exit":h,"DebuggerStatement:exit":h,"DoWhileStatement:exit":h,"ExpressionStatement:exit":h,"ForInStatement:exit":h,"ForOfStatement:exit":h,"ForStatement:exit":h,"FunctionDeclaration:exit":h,"IfStatement:exit":h,"ImportDeclaration:exit":h,"LabeledStatement:exit":h,"ReturnStatement:exit":h,"SwitchStatement:exit":h,"ThrowStatement:exit":h,"TryStatement:exit":h,"VariableDeclaration:exit":h,"WhileStatement:exit":h,"WithStatement:exit":h,"ExportNamedDeclaration:exit":h,"ExportDefaultDeclaration:exit":h,"ExportAllDeclaration:exit":h,"Program:exit":m}}},_o}var Bo,yy;function MA(){if(yy)return Bo;yy=1;const a=Ue();return Bo={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"9.3.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"multiline-comment-style",url:"https://eslint.style/rules/multiline-comment-style"}}]},type:"suggestion",docs:{description:"Enforce a particular style for multiline comments",recommended:!1,url:"https://eslint.org/docs/latest/rules/multiline-comment-style"},fixable:"whitespace",schema:{anyOf:[{type:"array",items:[{enum:["starred-block","bare-block"]}],additionalItems:!1},{type:"array",items:[{enum:["separate-lines"]},{type:"object",properties:{checkJSDoc:{type:"boolean"}},additionalProperties:!1}],additionalItems:!1}]},messages:{expectedBlock:"Expected a block comment instead of consecutive line comments.",expectedBareBlock:"Expected a block comment without padding stars.",startNewline:"Expected a linebreak after '/*'.",endNewline:"Expected a linebreak before '*/'.",missingStar:"Expected a '*' at the start of this line.",alignment:"Expected this line to be aligned with the start of the comment.",expectedLines:"Expected multiple line comments instead of a block comment."}},create(e){const n=e.sourceCode,o=e.options[0]||"starred-block",u=!!(e.options[1]||{}).checkJSDoc;function p(S){return/^\s*\*/u.test(S)}function c([S]){if(S.type!=="Block")return!1;const b=S.value.split(a.LINEBREAK_MATCHER);return b.length>0&&b.every((w,C)=>(C===0||C===b.length-1?/^\s*$/u:/^\s*\*/u).test(w))}function r([S]){if(S.type!=="Block")return!1;const b=S.value.split(a.LINEBREAK_MATCHER);return/^\*\s*$/u.test(b[0])&&b.slice(1,-1).every(w=>/^\s* /u.test(w))&&/^\s*$/u.test(b.at(-1))}function m(S){const b=S.map(({value:w})=>w).filter(w=>w.trim().length).every(w=>w.startsWith(" "));return S.map(({value:w})=>b?w.replace(/^ /u,""):w)}function i(S){const b=S.value.split(a.LINEBREAK_MATCHER).filter((C,E,T)=>!(E===0||E===T.length-1)).map(C=>C.replace(/^\s*$/u,"")),w=b.map(C=>C.replace(/\s*\*/u,"")).filter(C=>C.trim().length).every(C=>C.startsWith(" "));return b.map(C=>C.replace(w?/\s*\* ?/u:/\s*\*/u,""))}function f(S){const b=S.value.split(a.LINEBREAK_MATCHER).map(E=>E.replace(/^\s*$/u,"")),w=`${n.text.slice(S.range[0]-S.loc.start.column,S.range[0])} `;let C="";for(const[E,T]of b.entries()){if(!T.trim().length||E===0)continue;const[,x]=T.match(/^(\s*\*?\s*)/u);if(x.length<w.length){const A=w.slice(x.length-w.length);A.length>C.length&&(C=A)}}return b.map(E=>{const T=E.match(/^(\s*\*?\s*)(.*)/u),[,x,A]=T;return x.length>w.length?`${x.slice(w.length-(C.length+x.length))}${A}`:x.length<w.length?`${x.slice(w.length)}${A}`:A})}function h(S){const[b]=S;return b.type==="Line"?m(S):c(S)?i(b):f(b)}function s(S){return n.text.slice(S.range[0]-S.loc.start.column,S.range[0])}function l(S,b){const w=s(S);return`/*
|
|
81
|
+
${b.map(C=>`${w} * ${C}`).join(`
|
|
82
|
+
`)}
|
|
83
|
+
${w} */`}function g(S,b){return b.map(w=>`// ${w}`).join(`
|
|
84
|
+
${s(S)}`)}function d(S,b){return`/* ${b.join(`
|
|
85
|
+
${s(S)} `)} */`}const v={"starred-block"(S){const[b]=S,w=h(S);if(!w.some(C=>C.includes("*/")))if(S.length>1)e.report({loc:{start:b.loc.start,end:S.at(-1).loc.end},messageId:"expectedBlock",fix(C){const E=[b.range[0],S.at(-1).range[1]];return w.some(T=>T.startsWith("/"))?null:C.replaceTextRange(E,l(b,w))}});else{const C=b.value.split(a.LINEBREAK_MATCHER),T=`${s(b)} *`;if(!/^\*?\s*$/u.test(C[0])){const x=b.value.startsWith("*")?b.range[0]+1:b.range[0];e.report({loc:{start:b.loc.start,end:{line:b.loc.start.line,column:b.loc.start.column+2}},messageId:"startNewline",fix:A=>A.insertTextAfterRange([x,x+2],`
|
|
86
|
+
${T}`)})}/^\s*$/u.test(C.at(-1))||e.report({loc:{start:{line:b.loc.end.line,column:b.loc.end.column-2},end:b.loc.end},messageId:"endNewline",fix:x=>x.replaceTextRange([b.range[1]-2,b.range[1]],`
|
|
87
|
+
${T}/`)});for(let x=b.loc.start.line+1;x<=b.loc.end.line;x++){const A=n.lines[x-1],k=p(A)?"alignment":"missingStar";A.startsWith(T)||e.report({loc:{start:{line:x,column:0},end:{line:x,column:A.length}},messageId:k,fix(B){const R=n.getIndexFromLoc({line:x,column:0});if(k==="alignment"){const[,j=""]=A.match(/^(\s*\*)/u)||[],V=R+j.length;return B.replaceTextRange([R,V],T)}const[,F=""]=A.match(/^(\s*)/u)||[],P=R+F.length;let N;for(const[j,V]of C.entries()){if(!/\S+/u.test(V))continue;const O=n.lines[b.loc.start.line-1+j],[,G="",L=""]=O.match(/^(\s*(?:\/?\*)?(\s*))/u)||[];N=`${F.slice(G.length)}${L}`,/^\s*\//u.test(A)&&N.length===0&&(N+=" ");break}return B.replaceTextRange([R,P],`${T}${N}`)}})}}},"separate-lines"(S){const[b]=S,w=r(S);if(b.type!=="Block"||!u&&w)return;let C=h(S);w&&(C=C.slice(1,C.length-1));const E=n.getTokenAfter(b,{includeComments:!0});E&&b.loc.end.line===E.loc.start.line||e.report({loc:{start:b.loc.start,end:{line:b.loc.start.line,column:b.loc.start.column+2}},messageId:"expectedLines",fix(T){return T.replaceText(b,g(b,C))}})},"bare-block"(S){if(r(S))return;const[b]=S,w=h(S);b.type==="Line"&&w.length>1&&!w.some(C=>C.includes("*/"))&&e.report({loc:{start:b.loc.start,end:S.at(-1).loc.end},messageId:"expectedBlock",fix(C){return C.replaceTextRange([b.range[0],S.at(-1).range[1]],d(b,w))}}),c(S)&&e.report({loc:{start:b.loc.start,end:{line:b.loc.start.line,column:b.loc.start.column+2}},messageId:"expectedBareBlock",fix(C){return C.replaceText(b,d(b,w))}})}};return{Program(){return n.getAllComments().filter(S=>S.type!=="Shebang").filter(S=>!a.COMMENTS_IGNORE_PATTERN.test(S.value)).filter(S=>{const b=n.getTokenBefore(S,{includeComments:!0});return!b||b.loc.end.line<S.loc.start.line}).reduce((S,b,w,C)=>{const E=n.getTokenBefore(b,{includeComments:!0});return b.type==="Line"&&w&&C[w-1].type==="Line"&&E&&E.loc.end.line===b.loc.start.line-1&&E===C[w-1]?S.at(-1).push(b):S.push([b]),S},[]).filter(S=>!(S.length===1&&S[0].loc.start.line===S[0].loc.end.line)).forEach(v[o])}}}},Bo}var Lo,vy;function jA(){if(vy)return Lo;vy=1;const a=Ue();return Lo={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"multiline-ternary",url:"https://eslint.style/rules/multiline-ternary"}}]},type:"layout",docs:{description:"Enforce newlines between operands of ternary expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/multiline-ternary"},schema:[{enum:["always","always-multiline","never"]}],messages:{expectedTestCons:"Expected newline between test and consequent of ternary expression.",expectedConsAlt:"Expected newline between consequent and alternate of ternary expression.",unexpectedTestCons:"Unexpected newline between test and consequent of ternary expression.",unexpectedConsAlt:"Unexpected newline between consequent and alternate of ternary expression."},fixable:"whitespace"},create(e){const n=e.sourceCode,o=e.options[0],t=o!=="never",u=o==="always-multiline";return{ConditionalExpression(p){const c=n.getTokenAfter(p.test,a.isNotClosingParenToken),r=n.getTokenAfter(p.consequent,a.isNotClosingParenToken),m=n.getFirstToken(p),i=n.getTokenBefore(c),f=n.getTokenAfter(c),h=n.getTokenBefore(r),s=n.getTokenAfter(r),l=a.isTokenOnSameLine(i,f),g=a.isTokenOnSameLine(h,s),d=!!n.getCommentsInside(p).length;if(!t)l||e.report({node:p.test,loc:{start:m.loc.start,end:i.loc.end},messageId:"unexpectedTestCons",fix(v){if(d)return null;const S=[],b=a.isTokenOnSameLine(i,c),w=a.isTokenOnSameLine(c,f);return b||S.push(v.removeRange([i.range[1],c.range[0]])),w||S.push(v.removeRange([c.range[1],f.range[0]])),S}}),g||e.report({node:p.consequent,loc:{start:f.loc.start,end:h.loc.end},messageId:"unexpectedConsAlt",fix(v){if(d)return null;const S=[],b=a.isTokenOnSameLine(h,r),w=a.isTokenOnSameLine(r,s);return b||S.push(v.removeRange([h.range[1],r.range[0]])),w||S.push(v.removeRange([r.range[1],s.range[0]])),S}});else{if(u&&p.loc.start.line===p.loc.end.line)return;l&&e.report({node:p.test,loc:{start:m.loc.start,end:i.loc.end},messageId:"expectedTestCons",fix:v=>d?null:v.replaceTextRange([i.range[1],c.range[0]],`
|
|
88
|
+
`)}),g&&e.report({node:p.consequent,loc:{start:f.loc.start,end:h.loc.end},messageId:"expectedConsAlt",fix:v=>d?null:v.replaceTextRange([h.range[1],r.range[0]],`
|
|
89
|
+
`)})}}}}},Lo}var Oo,Ey;function UA(){if(Ey)return Oo;Ey=1;const a=Ue(),e=["Array","Boolean","Date","Error","Function","Number","Object","RegExp","String","Symbol","BigInt"];function n(t,u){return t[u]=!0,t}function o(t){return Array.from(new Set([...t.capIsNewExceptions,...e])).reduce(n,{})}return Oo={meta:{type:"suggestion",docs:{description:"Require constructor names to begin with a capital letter",recommended:!1,url:"https://eslint.org/docs/latest/rules/new-cap"},schema:[{type:"object",properties:{newIsCap:{type:"boolean"},capIsNew:{type:"boolean"},newIsCapExceptions:{type:"array",items:{type:"string"}},newIsCapExceptionPattern:{type:"string"},capIsNewExceptions:{type:"array",items:{type:"string"}},capIsNewExceptionPattern:{type:"string"},properties:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{capIsNew:!0,capIsNewExceptions:e,newIsCap:!0,newIsCapExceptions:[],properties:!0}],messages:{upper:"A function with a name starting with an uppercase letter should only be used as a constructor.",lower:"A constructor name should not start with a lowercase letter."}},create(t){const[u]=t.options,p=!u.properties,c=u.newIsCapExceptions.reduce(n,{}),r=u.newIsCapExceptionPattern?new RegExp(u.newIsCapExceptionPattern,"u"):null,m=o(u),i=u.capIsNewExceptionPattern?new RegExp(u.capIsNewExceptionPattern,"u"):null,f={},h=t.sourceCode;function s(v){return v.callee.type==="Identifier"?v.callee.name:a.getStaticPropertyName(v.callee)||""}function l(v){const S=v.charAt(0),b=S.toLowerCase(),w=S.toUpperCase();return b===w?"non-alpha":S===b?"lower":"upper"}function g(v,S,b,w){const C=h.getText(S.callee);if(v[b]||v[C]||w&&w.test(C))return!0;const E=a.skipChainExpression(S.callee);return b==="UTC"&&E.type==="MemberExpression"?E.object.type==="Identifier"&&E.object.name==="Date":p&&E.type==="MemberExpression"}function d(v,S){let b=a.skipChainExpression(v.callee);b.type==="MemberExpression"&&(b=b.property),t.report({node:v,loc:b.loc,messageId:S})}return u.newIsCap&&(f.NewExpression=function(v){const S=s(v);S&&(l(S)!=="lower"||g(c,v,S,r)||d(v,"lower"))}),u.capIsNew&&(f.CallExpression=function(v){const S=s(v);S&&(l(S)!=="upper"||g(m,v,S,i)||d(v,"upper"))}),f}},Oo}var No,Sy;function qA(){if(Sy)return No;Sy=1;const a=Ue();return No={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"new-parens",url:"https://eslint.style/rules/new-parens"}}]},type:"layout",docs:{description:"Enforce or disallow parentheses when invoking a constructor with no arguments",recommended:!1,url:"https://eslint.org/docs/latest/rules/new-parens"},fixable:"code",schema:[{enum:["always","never"]}],messages:{missing:"Missing '()' invoking a constructor.",unnecessary:"Unnecessary '()' invoking a constructor with no arguments."}},create(e){const o=e.options[0]!=="never",t=e.sourceCode;return{NewExpression(u){if(u.arguments.length!==0)return;const p=t.getLastToken(u),r=p&&a.isClosingParenToken(p)&&a.isOpeningParenToken(t.getTokenBefore(p))&&u.callee.range[1]<u.range[1];o?r||e.report({node:u,messageId:"missing",fix:m=>m.insertTextAfter(u,"()")}):r&&e.report({node:u,messageId:"unnecessary",fix:m=>[m.remove(t.getTokenBefore(p)),m.remove(p),m.insertTextBefore(u,"("),m.insertTextAfter(u,")")]})}}}},No}var Mo,by;function VA(){if(by)return Mo;by=1;const a=Ue();return Mo={meta:{type:"layout",docs:{description:"Require or disallow an empty line after variable declarations",recommended:!1,url:"https://eslint.org/docs/latest/rules/newline-after-var"},schema:[{enum:["never","always"]}],fixable:"whitespace",messages:{expected:"Expected blank line after variable declarations.",unexpected:"Unexpected blank line after variable declarations."},deprecated:{message:"The rule was replaced with a more general rule.",url:"https://eslint.org/blog/2017/06/eslint-v4.0.0-released/",deprecatedSince:"4.0.0",availableUntil:null,replacedBy:[{message:"The new rule moved to a plugin.",url:"https://eslint.org/docs/latest/rules/padding-line-between-statements#examples",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"padding-line-between-statements",url:"https://eslint.style/rules/padding-line-between-statements"}}]}},create(e){const n=e.sourceCode,o=e.options[0]==="never"?"never":"always",t=n.getAllComments().reduce((s,l)=>(s[l.loc.start.line]=l.loc.end.line,s),{});function u(s){const l=n.getLastToken(s);if(l.type==="Punctuator"&&l.value===";"){const g=n.getTokenBefore(l);if(g.loc.end.line!==l.loc.start.line)return g}return l}function p(s){return s==="var"||s==="let"||s==="const"}function c(s){return s==="ForStatement"||s==="ForInStatement"||s==="ForOfStatement"}function r(s){return s==="ExportNamedDeclaration"||s==="ExportSpecifier"||s==="ExportDefaultDeclaration"||s==="ExportAllDeclaration"}function m(s){const l=n.getTokenAfter(s);return!l||l.type==="Punctuator"&&l.value==="}"}function i(s){const l=t[s];return t[l+1]?i(l+1):l}function f(s,l){return s.loc.start.line>i(l)+1}function h(s){const l=u(s),g=l===n.getLastToken(s)?n.getTokenAfter(s):n.getLastToken(s),d=l.loc.end.line+1;if(!g||c(s.parent.type)||r(s.parent.type)||g.type==="Keyword"&&p(g.value)||m(s))return;const v=g.loc.start.line>d,S=typeof t[d]<"u";o==="never"&&v&&!S&&e.report({node:s,messageId:"unexpected",fix(b){const w=n.getText().slice(l.range[1],g.range[0]).split(a.LINEBREAK_MATCHER);return b.replaceTextRange([l.range[1],g.range[0]],`${w.slice(0,-1).join("")}
|
|
90
|
+
${w.at(-1)}`)}}),o==="always"&&(!v||S&&!f(g,d))&&e.report({node:s,messageId:"expected",fix(b){return(v?i(d):l.loc.end.line)===g.loc.start.line?b.insertTextBefore(g,`
|
|
91
|
+
|
|
92
|
+
`):b.insertTextBeforeRange([g.range[0]-g.loc.start.column,g.range[1]],`
|
|
93
|
+
`)}})}return{VariableDeclaration:h}}},Mo}var jo,xy;function $A(){return xy||(xy=1,jo={meta:{type:"layout",docs:{description:"Require an empty line before `return` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/newline-before-return"},fixable:"whitespace",schema:[],messages:{expected:"Expected newline before return statement."},deprecated:{message:"The rule was replaced with a more general rule.",url:"https://eslint.org/blog/2017/06/eslint-v4.0.0-released/",deprecatedSince:"4.0.0",availableUntil:null,replacedBy:[{message:"The new rule moved to a plugin.",url:"https://eslint.org/docs/latest/rules/padding-line-between-statements#examples",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"padding-line-between-statements",url:"https://eslint.style/rules/padding-line-between-statements"}}]}},create(a){const e=a.sourceCode;function n(r,m){const i=e.getTokenBefore(r);return m.includes(i.value)}function o(r){const m=r.parent.type;return r.parent.body?Array.isArray(r.parent.body)?r.parent.body[0]===r:r.parent.body===r:m==="IfStatement"?n(r,["else",")"]):m==="DoWhileStatement"?n(r,["do"]):m==="SwitchCase"?n(r,[":"]):n(r,[")"])}function t(r,m){const i=e.getCommentsBefore(r);let f=0;return i.length&&i.forEach(h=>{f++,h.type==="Block"&&(f+=h.loc.end.line-h.loc.start.line),h.loc.start.line===m&&f--,h.loc.end.line===r.loc.start.line&&f--}),f}function u(r){const m=e.getTokenBefore(r);let i;return m?i=m.loc.end.line:i=0,i}function p(r){const m=r.loc.start.line,i=u(r),f=t(r,i);return m-i-f>1}function c(r){const m=e.getCommentsBefore(r),i=m.at(-1),f=e.getTokenBefore(r);return m.length===0||i.loc.end.line===f.loc.end.line&&i.loc.end.line!==r.loc.start.line}return{ReturnStatement(r){!o(r)&&!p(r)&&a.report({node:r,messageId:"expected",fix(m){if(c(r)){const i=e.getTokenBefore(r),f=r.loc.start.line===i.loc.end.line?`
|
|
94
|
+
|
|
95
|
+
`:`
|
|
96
|
+
`;return m.insertTextBefore(r,f)}return null}})}}}}),jo}var Uo,Cy;function WA(){if(Cy)return Uo;Cy=1;const a=Ue();return Uo={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"newline-per-chained-call",url:"https://eslint.style/rules/newline-per-chained-call"}}]},type:"layout",docs:{description:"Require a newline after each call in a method chain",recommended:!1,url:"https://eslint.org/docs/latest/rules/newline-per-chained-call"},fixable:"whitespace",schema:[{type:"object",properties:{ignoreChainWithDepth:{type:"integer",minimum:1,maximum:10,default:2}},additionalProperties:!1}],messages:{expected:"Expected line break before `{{callee}}`."}},create(e){const n=e.options[0]||{},o=n.ignoreChainWithDepth||2,t=e.sourceCode;function u(c){return c.computed?c.optional?"?.[":"[":c.optional?"?.":"."}function p(c){const r=u(c),m=t.getText(c.property).split(a.LINEBREAK_MATCHER),i=c.computed&&m.length===1?"]":"";return r+m[0]+i}return{"CallExpression:exit"(c){const r=a.skipChainExpression(c.callee);if(r.type!=="MemberExpression")return;let m=a.skipChainExpression(r.object),i=1;for(;m&&m.callee;)i+=1,m=a.skipChainExpression(a.skipChainExpression(m.callee).object);if(i>o&&a.isTokenOnSameLine(r.object,r.property)){const f=t.getTokenAfter(r.object,a.isNotClosingParenToken);e.report({node:r.property,loc:{start:f.loc.start,end:r.loc.end},messageId:"expected",data:{callee:p(r)},fix(h){return h.insertTextBefore(f,`
|
|
97
|
+
`)}})}}}}},Uo}var qo,wy;function GA(){if(wy)return qo;wy=1;const{getStaticPropertyName:a,getVariableByName:e,skipChainExpression:n}=Ue();function o(c){return/^(alert|confirm|prompt)$/u.test(c)}function t(c,r){const m=c.references.filter(i=>i.identifier.range[0]===r.range[0]&&i.identifier.range[1]===r.range[1]);return m.length===1?m[0]:null}function u(c,r){const m=t(c,r);return m&&m.resolved&&m.resolved.defs.length>0}function p(c,r){return c.type==="global"&&r.type==="ThisExpression"?!0:r.type==="Identifier"&&(r.name==="window"||r.name==="globalThis"&&e(c,"globalThis"))?!u(c,r):!1}return qo={meta:{type:"suggestion",docs:{description:"Disallow the use of `alert`, `confirm`, and `prompt`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-alert"},schema:[],messages:{unexpected:"Unexpected {{name}}."}},create(c){const r=c.sourceCode;return{CallExpression(m){const i=n(m.callee),f=r.getScope(m);if(i.type==="Identifier"){const h=i.name;!u(f,i)&&o(i.name)&&c.report({node:m,messageId:"unexpected",data:{name:h}})}else if(i.type==="MemberExpression"&&p(f,i.object)){const h=a(i);o(h)&&c.report({node:m,messageId:"unexpected",data:{name:h}})}}}}},qo}var Vo,Ay;function zA(){if(Ay)return Vo;Ay=1;const{getVariableByName:a,isClosingParenToken:e,isOpeningParenToken:n,isStartOfExpressionStatement:o,needsPrecedingSemicolon:t}=Ue();return Vo={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",docs:{description:"Disallow `Array` constructors",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-array-constructor"},fixable:"code",hasSuggestions:!0,schema:[],messages:{preferLiteral:"The array literal notation [] is preferable.",useLiteral:"Replace with an array literal.",useLiteralAfterSemicolon:"Replace with an array literal, add preceding semicolon."}},create(u){const p=u.sourceCode;function c(i){const f=p.getFirstToken(i),h=p.getLastToken(i);let s=p.getLastToken(i.callee);for(;s!==h&&!n(s);)s=p.getTokenAfter(s);return p.commentsExistBetween(f,s)}function r(i){const f=p.getLastToken(i);if(!e(f))return"";let h=i.callee;do if(h=p.getTokenAfter(h),!h||h===f)return"";while(!n(h));return p.text.slice(h.range[1],f.range[0])}function m(i){if(i.callee.type!=="Identifier"||i.callee.name!=="Array"||i.typeArguments||i.arguments.length===1&&i.arguments[0].type!=="SpreadElement")return;const f=a(p.getScope(i),"Array");if(f&&f.identifiers.length===0){const h=r(i);let s,l;const g=i.arguments.reduce((v,S)=>S.type!=="SpreadElement"?v+1:v,0),d=i.optional||i.arguments.length>0&&g<2||c(i);o(i)&&t(p,i)?(s=`;[${h}]`,l="useLiteralAfterSemicolon"):(s=`[${h}]`,l="useLiteral"),u.report({node:i,messageId:"preferLiteral",fix(v){return d?null:v.replaceText(i,s)},suggest:[{messageId:l,fix(v){return d?v.replaceText(i,s):null}}]})}}return{CallExpression:m,NewExpression:m}}},Vo}var $o,Ty;function HA(){return Ty||(Ty=1,$o={meta:{type:"problem",docs:{description:"Disallow using an async function as a Promise executor",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-async-promise-executor"},fixable:null,schema:[],messages:{async:"Promise executor functions should not be async."}},create(a){return{"NewExpression[callee.name='Promise'][arguments.0.async=true]"(e){a.report({node:a.sourceCode.getFirstToken(e.arguments[0],n=>n.value==="async"),messageId:"async"})}}}}),$o}var Wo,ky;function KA(){if(ky)return Wo;ky=1;function a(n){const o=n.type;return o==="FunctionDeclaration"||o==="FunctionExpression"||o==="ArrowFunctionExpression"||o==="ForOfStatement"&&n.await===!0}function e(n,o){switch(o.type){case"ForStatement":return n===o.test||n===o.update||n===o.body;case"ForOfStatement":case"ForInStatement":return n===o.body;case"WhileStatement":case"DoWhileStatement":return n===o.test||n===o.body;default:return!1}}return Wo={meta:{type:"problem",docs:{description:"Disallow `await` inside of loops",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-await-in-loop"},schema:[],messages:{unexpectedAwait:"Unexpected `await` inside a loop."}},create(n){function o(t){if(t.type==="ForOfStatement"&&!t.await)return;let u=t,p=u.parent;for(;p&&!a(p);){if(e(u,p)){n.report({node:t,messageId:"unexpectedAwait"});return}u=p,p=p.parent}}return{AwaitExpression:o,ForOfStatement:o}}},Wo}var Go,Dy;function XA(){if(Dy)return Go;Dy=1;const a=["^","|","&","<<",">>",">>>","^=","|=","&=","<<=",">>=",">>>=","~"];return Go={meta:{type:"suggestion",defaultOptions:[{allow:[],int32Hint:!1}],docs:{description:"Disallow bitwise operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-bitwise"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:a},uniqueItems:!0},int32Hint:{type:"boolean"}},additionalProperties:!1}],messages:{unexpected:"Unexpected use of '{{operator}}'."}},create(e){const[{allow:n,int32Hint:o}]=e.options;function t(m){e.report({node:m,messageId:"unexpected",data:{operator:m.operator}})}function u(m){return a.includes(m.operator)}function p(m){return n.includes(m.operator)}function c(m){return o&&m.operator==="|"&&m.right&&m.right.type==="Literal"&&m.right.value===0}function r(m){u(m)&&!p(m)&&!c(m)&&t(m)}return{AssignmentExpression:r,BinaryExpression:r,UnaryExpression:r}}},Go}var zo,Iy;function JA(){return Iy||(Iy=1,zo={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-deprecated-api",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-deprecated-api.md"}}]},type:"problem",docs:{description:"Disallow use of the `Buffer()` constructor",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-buffer-constructor"},schema:[],messages:{deprecated:"{{expr}} is deprecated. Use Buffer.from(), Buffer.alloc(), or Buffer.allocUnsafe() instead."}},create(a){return{"CallExpression[callee.name='Buffer'], NewExpression[callee.name='Buffer']"(e){a.report({node:e,messageId:"deprecated",data:{expr:e.type==="CallExpression"?"Buffer()":"new Buffer()"}})}}}}),zo}var Ho,Py;function YA(){return Py||(Py=1,Ho={meta:{type:"suggestion",docs:{description:"Disallow the use of `arguments.caller` or `arguments.callee`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-caller"},schema:[],messages:{unexpected:"Avoid arguments.{{prop}}."}},create(a){return{MemberExpression(e){const n=e.object.name,o=e.property.name;n==="arguments"&&!e.computed&&o&&o.match(/^calle[er]$/u)&&a.report({node:e,messageId:"unexpected",data:{prop:o}})}}}}),Ho}var Ko,Fy;function QA(){return Fy||(Fy=1,Ko={meta:{type:"suggestion",docs:{description:"Disallow lexical declarations in case clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-case-declarations"},hasSuggestions:!0,schema:[],messages:{addBrackets:"Add {} brackets around the case block.",unexpected:"Unexpected lexical declaration in case block."}},create(a){function e(n){switch(n.type){case"FunctionDeclaration":case"ClassDeclaration":return!0;case"VariableDeclaration":return n.kind!=="var";default:return!1}}return{SwitchCase(n){for(let o=0;o<n.consequent.length;o++){const t=n.consequent[o];e(t)&&a.report({node:t,messageId:"unexpected",suggest:[{messageId:"addBrackets",fix:u=>[u.insertTextBefore(n.consequent[0],"{ "),u.insertTextAfter(n.consequent.at(-1)," }")]}]})}}}}}),Ko}var Xo,Ry;function ZA(){if(Ry)return Xo;Ry=1;const a=Ue();return Xo={meta:{type:"suggestion",docs:{description:"Disallow `catch` clause parameters from shadowing variables in the outer scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-catch-shadow"},deprecated:{message:"This rule was renamed.",url:"https://eslint.org/blog/2018/07/eslint-v5.1.0-released/",deprecatedSince:"5.1.0",availableUntil:null,replacedBy:[{rule:{name:"no-shadow",url:"https://eslint.org/docs/rules/no-shadow"}}]},schema:[],messages:{mutable:"Value of '{{name}}' may be overwritten in IE 8 and earlier."}},create(e){const n=e.sourceCode;function o(t,u){return a.getVariableByName(t,u)!==null}return{"CatchClause[param!=null]"(t){let u=n.getScope(t);u.block===t&&(u=u.upper),o(u,t.param.name)&&e.report({node:t,messageId:"mutable",data:{name:t.param.name}})}}}},Xo}var Jo,_y;function eT(){if(_y)return Jo;_y=1;const a=Ue();return Jo={meta:{type:"problem",docs:{description:"Disallow reassigning class members",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-class-assign"},schema:[],messages:{class:"'{{name}}' is a class."}},create(e){const n=e.sourceCode;function o(u){a.getModifyingReferences(u.references).forEach(p=>{e.report({node:p.identifier,messageId:"class",data:{name:p.identifier.name}})})}function t(u){n.getDeclaredVariables(u).forEach(o)}return{ClassDeclaration:t,ClassExpression:t}}},Jo}var Yo,By;function tT(){return By||(By=1,Yo={meta:{type:"problem",docs:{description:"Disallow comparing against `-0`",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-compare-neg-zero"},fixable:null,schema:[],messages:{unexpected:"Do not use the '{{operator}}' operator to compare against -0."}},create(a){function e(o){return o.type==="UnaryExpression"&&o.operator==="-"&&o.argument.type==="Literal"&&o.argument.value===0}const n=new Set([">",">=","<","<=","==","===","!=","!=="]);return{BinaryExpression(o){n.has(o.operator)&&(e(o.left)||e(o.right))&&a.report({node:o,messageId:"unexpected",data:{operator:o.operator}})}}}}),Yo}var Qo,Ly;function rT(){if(Ly)return Qo;Ly=1;const a=Ue(),e=new Set(["IfStatement","WhileStatement","DoWhileStatement","ForStatement","ConditionalExpression"]),n={DoWhileStatement:"a 'do...while' statement",ForStatement:"a 'for' statement",IfStatement:"an 'if' statement",WhileStatement:"a 'while' statement"};return Qo={meta:{type:"problem",defaultOptions:["except-parens"],docs:{description:"Disallow assignment operators in conditional expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-cond-assign"},schema:[{enum:["except-parens","always"]}],messages:{unexpected:"Unexpected assignment within {{type}}.",missing:"Expected a conditional expression and instead saw an assignment."}},create(o){const[t]=o.options,u=o.sourceCode;function p(f){return f.parent&&e.has(f.parent.type)&&f===f.parent.test}function c(f){let h=f;do if(p(h))return h.parent;while((h=h.parent)&&!a.isFunction(h));return null}function r(f){const h=u.getTokenBefore(f,1),s=u.getTokenAfter(f,1);return a.isParenthesised(u,f)&&h&&a.isOpeningParenToken(h)&&h.range[1]<=f.range[0]&&a.isClosingParenToken(s)&&s.range[0]>=f.range[1]}function m(f){f.test&&f.test.type==="AssignmentExpression"&&(f.type==="ForStatement"?!a.isParenthesised(u,f.test):!r(f.test))&&o.report({node:f.test,messageId:"missing"})}function i(f){const h=c(f);h&&o.report({node:f,messageId:"unexpected",data:{type:n[h.type]||h.type}})}return t==="always"?{AssignmentExpression:i}:{DoWhileStatement:m,ForStatement:m,IfStatement:m,WhileStatement:m,ConditionalExpression:m}}},Qo}var Zo,Oy;function nT(){if(Oy)return Zo;Oy=1;const a=Ue();function e(n){return n&&n.type==="ConditionalExpression"}return Zo={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-confusing-arrow",url:"https://eslint.style/rules/no-confusing-arrow"}}]},type:"suggestion",docs:{description:"Disallow arrow functions where they could be confused with comparisons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-confusing-arrow"},fixable:"code",schema:[{type:"object",properties:{allowParens:{type:"boolean",default:!0},onlyOneSimpleParam:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{confusing:"Arrow function used ambiguously with a conditional expression."}},create(n){const o=n.options[0]||{},t=o.allowParens||o.allowParens===void 0,u=o.onlyOneSimpleParam,p=n.sourceCode;function c(r){const m=r.body;e(m)&&!(t&&a.isParenthesised(p,m))&&!(u&&!(r.params.length===1&&r.params[0].type==="Identifier"))&&n.report({node:r,messageId:"confusing",fix(i){return t&&i.replaceText(r.body,`(${p.getText(r.body)})`)}})}return{ArrowFunctionExpression:c}}},Zo}var el,Ny;function sT(){if(Ny)return el;Ny=1;const a=Ue();return el={meta:{type:"suggestion",defaultOptions:[{}],docs:{description:"Disallow the use of `console`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-console"},schema:[{type:"object",properties:{allow:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},additionalProperties:!1}],hasSuggestions:!0,messages:{unexpected:"Unexpected console statement.",limited:"Unexpected console statement. Only these console methods are allowed: {{ allowed }}.",removeConsole:"Remove the console.{{ propertyName }}().",removeMethodCall:"Remove the console method call."}},create(e){const[{allow:n=[]}]=e.options,o=e.sourceCode;function t(i){const f=i.identifier;return f&&f.name==="console"}function u(i){const f=a.getStaticPropertyName(i);return f&&n.includes(f)}function p(i){const f=i.identifier,h=f.parent;return h.type==="MemberExpression"&&h.object===f&&!u(h)}function c(i){const f=/^[:;{]$/u,h=/^[-[(/+`]/u,s=o.getTokenBefore(i),l=o.getTokenAfter(i);return!!l&&h.test(l.value)&&l.value!=="++"&&l.value!=="--"&&!!s&&!f.test(s.value)}function r(i){return i.parent.type==="CallExpression"&&i.parent.callee===i&&i.parent.parent.type==="ExpressionStatement"&&a.STATEMENT_LIST_PARENTS.has(i.parent.parent.parent.type)&&!c(i.parent.parent)}function m(i){const f=i.identifier.parent,h=[];if(r(f)){const s={fix(l){return l.remove(f.parent.parent)}};f.computed?s.messageId="removeMethodCall":(s.messageId="removeConsole",s.data={propertyName:f.property.name}),h.push(s)}e.report({node:f,loc:f.loc,messageId:n.length?"limited":"unexpected",data:{allowed:n.join(", ")},suggest:h})}return{"Program:exit"(i){const f=o.getScope(i),h=a.getVariableByName(f,"console"),s=h&&h.defs.length>0,l=h?h.references:f.through.filter(t);s||l.filter(p).forEach(m)}}}},el}var tl,My;function aT(){if(My)return tl;My=1;const a=Ue(),e=new Set(["const","using","await using"]);return tl={meta:{type:"problem",docs:{description:"Disallow reassigning `const`, `using`, and `await using` variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-const-assign"},schema:[],messages:{const:"'{{name}}' is constant."}},create(n){const o=n.sourceCode;function t(u){a.getModifyingReferences(u.references).forEach(p=>{n.report({node:p.identifier,messageId:"const",data:{name:p.identifier.name}})})}return{VariableDeclaration(u){e.has(u.kind)&&o.getDeclaredVariables(u).forEach(t)}}}},tl}var rl,jy;function iT(){if(jy)return rl;jy=1;const{isNullLiteral:a,isConstant:e,isReferenceToGlobalVariable:n,isLogicalAssignmentOperator:o,ECMASCRIPT_GLOBALS:t}=Ue(),u=new Set(["+","-","*","/","%","|","^","&","**","<<",">>",">>>"]);function p(s,l){return a(l)||l.type==="Identifier"&&l.name==="undefined"&&n(s,l)||l.type==="UnaryExpression"&&l.operator==="void"}function c(s,l,g){if(g&&p(s,l))return!1;switch(l.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":case"NewExpression":case"Literal":case"TemplateLiteral":case"UpdateExpression":case"BinaryExpression":return!0;case"CallExpression":{if(l.callee.type!=="Identifier")return!1;const d=l.callee.name;return(d==="Boolean"||d==="String"||d==="Number")&&n(s,l.callee)}case"LogicalExpression":return l.operator==="??"&&c(s,l.right,!0);case"AssignmentExpression":return l.operator==="="?c(s,l.right,g):!o(l.operator);case"UnaryExpression":return!0;case"SequenceExpression":{const d=l.expressions.at(-1);return c(s,d,g)}case"Identifier":return l.name==="undefined"&&n(s,l);case"JSXElement":case"JSXFragment":return!1;default:return!1}}function r(s,l){switch(l.type){case"Literal":return typeof l.value=="boolean";case"CallExpression":return l.callee.type==="Identifier"&&l.callee.name==="Boolean"&&n(s,l.callee)&&(l.arguments.length===0||e(s,l.arguments[0],!0));case"UnaryExpression":return l.operator==="!"&&e(s,l.argument,!0);default:return!1}}function m(s,l){switch(l.type){case"ObjectExpression":case"ClassExpression":return!0;case"ArrayExpression":{const g=l.elements.filter(d=>d!==null&&d.type!=="SpreadElement");return l.elements.length===0||g.length>1}case"ArrowFunctionExpression":case"FunctionExpression":return!0;case"UnaryExpression":return l.operator==="void"||l.operator==="typeof"?!0:l.operator==="!"?e(s,l.argument,!0):!1;case"NewExpression":return!1;case"CallExpression":return l.callee.type==="Identifier"&&l.callee.name==="Boolean"&&n(s,l.callee)?l.arguments.length===0||e(s,l.arguments[0],!0):!1;case"Literal":return!0;case"Identifier":return l.name==="undefined"&&n(s,l);case"TemplateLiteral":return l.expressions.length===0;case"AssignmentExpression":return l.operator==="="?m(s,l.right):!1;case"SequenceExpression":{const g=l.expressions.at(-1);return m(s,g)}case"JSXElement":case"JSXFragment":return!1;default:return!1}}function i(s,l){switch(l.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":case"NewExpression":case"TemplateLiteral":case"Literal":case"UpdateExpression":return!0;case"BinaryExpression":return u.has(l.operator);case"UnaryExpression":return l.operator==="delete"?!1:l.operator==="!"?e(s,l.argument,!0):!0;case"SequenceExpression":{const g=l.expressions.at(-1);return i(s,g)}case"Identifier":return l.name==="undefined"&&n(s,l);case"AssignmentExpression":return l.operator==="="?i(s,l.right):!o(l.operator);case"CallExpression":{if(l.callee.type!=="Identifier")return!1;const g=l.callee.name;return(g==="String"||g==="Number")&&n(s,l.callee)?!0:g==="Boolean"&&n(s,l.callee)?l.arguments.length===0||e(s,l.arguments[0],!0):!1}case"JSXElement":case"JSXFragment":return!1;default:return!1}}function f(s,l){switch(l.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":return!0;case"NewExpression":return l.callee.type!=="Identifier"?!1:Object.hasOwn(t,l.callee.name)&&n(s,l.callee);case"Literal":return typeof l.regex=="object";case"SequenceExpression":{const g=l.expressions.at(-1);return f(s,g)}case"AssignmentExpression":return l.operator==="="?f(s,l.right):!1;case"ConditionalExpression":return f(s,l.consequent)&&f(s,l.alternate);case"JSXElement":case"JSXFragment":return!1;default:return!1}}function h(s,l,g,d){if(d==="=="||d==="!="){if(p(s,l)&&c(s,g,!1)||r(s,l)&&m(s,g))return g}else if((d==="==="||d==="!==")&&(p(s,l)&&c(s,g,!1)||r(s,l)&&i(s,g)))return g;return null}return rl={meta:{type:"problem",docs:{description:"Disallow expressions where the operation doesn't affect the value",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-constant-binary-expression"},schema:[],messages:{constantBinaryOperand:"Unexpected constant binary expression. Compares constantly with the {{otherSide}}-hand side of the `{{operator}}`.",constantShortCircuit:"Unexpected constant {{property}} on the left-hand side of a `{{operator}}` expression.",alwaysNew:"Unexpected comparison to newly constructed object. These two values can never be equal.",bothAlwaysNew:"Unexpected comparison of two newly constructed objects. These two values can never be equal."}},create(s){const l=s.sourceCode;return{LogicalExpression(g){const{operator:d,left:v}=g,S=l.getScope(g);(d==="&&"||d==="||")&&e(S,v,!0)?s.report({node:v,messageId:"constantShortCircuit",data:{property:"truthiness",operator:d}}):d==="??"&&c(S,v,!1)&&s.report({node:v,messageId:"constantShortCircuit",data:{property:"nullishness",operator:d}})},BinaryExpression(g){const d=l.getScope(g),{right:v,left:S,operator:b}=g,w=h(d,S,v,b),C=h(d,v,S,b);w?s.report({node:w,messageId:"constantBinaryOperand",data:{operator:b,otherSide:"left"}}):C?s.report({node:C,messageId:"constantBinaryOperand",data:{operator:b,otherSide:"right"}}):b==="==="||b==="!=="?f(d,S)?s.report({node:S,messageId:"alwaysNew"}):f(d,v)&&s.report({node:v,messageId:"alwaysNew"}):(b==="=="||b==="!=")&&f(d,S)&&f(d,v)&&s.report({node:S,messageId:"bothAlwaysNew"})}}}},rl}var nl,Uy;function oT(){if(Uy)return nl;Uy=1;const{isConstant:a}=Ue();return nl={meta:{type:"problem",defaultOptions:[{checkLoops:"allExceptWhileTrue"}],docs:{description:"Disallow constant expressions in conditions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-constant-condition"},schema:[{type:"object",properties:{checkLoops:{enum:["all","allExceptWhileTrue","none",!0,!1]}},additionalProperties:!1}],messages:{unexpected:"Unexpected constant condition."}},create(e){const n=[],o=e.sourceCode;let[{checkLoops:t}]=e.options;t===!0?t="all":t===!1&&(t="none");let u=new Set;function p(h){h.test&&a(o.getScope(h),h.test,!0)&&u.add(h)}function c(h){u.has(h)&&(u.delete(h),e.report({node:h.test,messageId:"unexpected"}))}function r(h){h.test&&a(o.getScope(h),h.test,!0)&&e.report({node:h.test,messageId:"unexpected"})}function m(){n.push(u),u=new Set}function i(){u=n.pop()}function f(h){(t==="all"||t==="allExceptWhileTrue")&&p(h)}return{ConditionalExpression:r,IfStatement:r,WhileStatement(h){h.test.type==="Literal"&&h.test.value===!0&&t==="allExceptWhileTrue"||f(h)},"WhileStatement:exit":c,DoWhileStatement:f,"DoWhileStatement:exit":c,ForStatement:f,"ForStatement > .test":h=>f(h.parent),"ForStatement:exit":c,FunctionDeclaration:m,"FunctionDeclaration:exit":i,FunctionExpression:m,"FunctionExpression:exit":i,YieldExpression:()=>u.clear()}}},nl}var sl,qy;function lT(){return qy||(qy=1,sl={meta:{type:"problem",docs:{description:"Disallow returning value from constructor",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-constructor-return"},schema:[],fixable:null,messages:{unexpected:"Unexpected return statement in constructor."}},create(a){const e=[];return{onCodePathStart(n,o){e.push(o)},onCodePathEnd(){e.pop()},ReturnStatement(n){const o=e.at(-1);o.parent&&o.parent.type==="MethodDefinition"&&o.parent.kind==="constructor"&&n.argument&&a.report({node:n,messageId:"unexpected"})}}}}),sl}var al,Vy;function uT(){return Vy||(Vy=1,al={meta:{type:"suggestion",docs:{description:"Disallow `continue` statements",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-continue"},schema:[],messages:{unexpected:"Unexpected use of continue statement."}},create(a){return{ContinueStatement(e){a.report({node:e,messageId:"unexpected"})}}}}),al}var lr={},$y;function ur(){if($y)return lr;$y=1,Object.defineProperty(lr,"__esModule",{value:!0});var a=Object.freeze({__proto__:null});const e=2025;let n,o;function t(Ge){return Ge<65?!1:Ge<91?!0:Ge<97?!1:Ge<123?!0:p(Ge)}function u(Ge){return Ge<48?!1:Ge<58?!0:Ge<65?!1:Ge<91||Ge===95?!0:Ge<97?!1:Ge<123?!0:p(Ge)||c(Ge)}function p(Ge){return i(Ge,n??(n=r()))}function c(Ge){return i(Ge,o??(o=m()))}function r(){return f("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 6 n 2 5 i 15 1n 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 3 0 3 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 w 1 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 h e i f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 7 1j t e 1 b 17 r z 16 2 b z 3 a 6 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 h c 2u 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 6c 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t h3g 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 1u 3 1 2 0 2 7 m f 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f d a 2 e 2 6 2 1 2 a 2 e 2 6 2 1 4 1f d 8m a l b 7 p 5 2 15 2 8 1y 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 1z 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 13 r a m 6z 15 7 1 h 2 1o s b 0 9 l 17 h 1b k s m d 1g 1m 1 3 0 e 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o k 1 1s 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 v 9 2 0 3 0 2 11 2 0 q 0 2 0 19 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 12 6 56 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 j 20 5k w w 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 94 i g 0 2 c 2 x 3h 0 28 pl 2v 32 i 5f 219 2o g tr i 5 q 32y 6 g6 5a2 t 1cz fs 8 u i 26 i t j 1b h 3 w k 6 i c1 18 5w 1r 3l 22 6 0 1v c 1t 1 2 0 t 4qf 9 yd 16 9 6w8 3 2 6 2 1 2 82 g 0 u 2 3 0 f 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1f9 u 7 5 7a 1p 43 18 b 6 h 0 8y t j 17 dh r 6d t 3 0 ds 6 2 3 2 1 2 e 2 5g 1o 1v 8 0 xh 3 2 q 2 1 2 0 3 0 2 9 2 3 2 0 2 0 7 0 5 0 2 0 2 0 2 2 2 1 2 0 3 0 2 0 2 0 2 0 2 0 2 1 2 0 3 3 2 6 2 3 2 3 2 0 2 9 2 g 6 2 2 4 2 g 3et wyn x 37d 7 65 3 4g1 f 5rk g h9 1wj f1 15v 3t6 6 38f")}function m(){return f("53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 1o 8 17 n 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 3 1 3 2 a 0 b 1 3 9 f 0 3 2 1l 0 2 4 5 1 3 2 4 0 l b 4 0 c 2 1l 0 2 7 2 2 2 2 l 1 3 9 b 5 2 2 1l 0 2 6 3 1 3 2 8 2 b 1 3 9 j 0 1o 4 4 2 2 3 a 0 f 9 h 4 1k 0 2 6 2 2 2 3 8 1 c 1 3 9 i 2 1l 0 2 6 2 2 2 3 8 1 c 1 3 9 4 0 d 3 1k 1 2 6 2 2 2 3 a 0 b 1 3 9 i 2 1z 0 5 5 2 0 2 7 7 9 3 1 1q 0 3 6 d 7 2 9 2g 0 3 8 c 6 2 9 1r 1 7 9 c 0 2 0 2 0 5 1 1e j 2 1 6 a 2 z a 0 2t j 2 9 d 3 5 2 2 2 3 6 4 3 e b 2 e jk 2 a 8 pt 3 t 2 u 1 v 1 1t v a 0 3 9 y 2 2 a 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 f 1e 4 1c g c 9 i 8 d 2 v c 3 9 19 d 1d j 9 9 7 9 3b 2 2 k 5 0 7 0 3 2 5j 1r el 1 1e 1 k 0 3g c 5 0 4 b 2db 2 3y 0 2p v ff 5 2y 1 2p 0 n51 9 1y 0 5 9 x 1 29 1 7l 0 4 0 5 0 o 4 5 0 2c 1 1f h b 9 7 h e a t 7 q c 19 3 1c d g 9 c 0 b 9 1c d d 0 9 1 3 9 y 2 1f 0 2 2 3 1 6 1 2 0 16 4 6 1 6l 7 2 1 3 9 fmt 0 ki f h f 4 1 p 2 5d 9 12 0 12 0 ig 0 6b 0 46 4 86 9 120 2 2 1 6 3 15 2 5 0 4m 1 fy 3 9 9 7 9 w 4 8u 1 28 3 1z a 1e 3 3f 2 1i e w a 3 1 b 3 1a a 8 0 1a 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 3 0 4e b 6 9 7 3 1k 1 2 6 3 1 3 2 a 0 b 1 3 6 4 4 1w 8 2 0 3 0 2 3 2 4 2 0 f 1 2b h a 9 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 7 j 1m e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f 9j 9 1i 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 96 3 a 1 2 0 1d 6 4 4 e a 44m 0 7 e 8uh r 1t3 9 2f 9 13 4 1o 6 q 9 ev 9 d2 0 2 1i 8 3 2a 0 c 1 f58 1 382 9 ef 19 3 m f3 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 2t 0 4h 6 a 9 9x 0 1q d dv d 6t 1 2 9 k6 6 32 6 6 9 3o7 9 gvt3 6n")}function i(Ge,M){let Z=0,me=M.length/2|0,je=0,y=0,D=0;for(;Z<me;)if(je=(Z+me)/2|0,y=M[2*je],D=M[2*je+1],Ge<y)me=je;else if(Ge>D)Z=je+1;else return!0;return!1}function f(Ge){let M=0;return Ge.split(" ").map(Z=>M+=parseInt(Z,36)|0)}class h{constructor(M,Z,me,je,y,D,q,X){this._raw2018=M,this._raw2019=Z,this._raw2020=me,this._raw2021=je,this._raw2022=y,this._raw2023=D,this._raw2024=q,this._raw2025=X}get es2018(){var M;return(M=this._set2018)!==null&&M!==void 0?M:this._set2018=new Set(this._raw2018.split(" "))}get es2019(){var M;return(M=this._set2019)!==null&&M!==void 0?M:this._set2019=new Set(this._raw2019.split(" "))}get es2020(){var M;return(M=this._set2020)!==null&&M!==void 0?M:this._set2020=new Set(this._raw2020.split(" "))}get es2021(){var M;return(M=this._set2021)!==null&&M!==void 0?M:this._set2021=new Set(this._raw2021.split(" "))}get es2022(){var M;return(M=this._set2022)!==null&&M!==void 0?M:this._set2022=new Set(this._raw2022.split(" "))}get es2023(){var M;return(M=this._set2023)!==null&&M!==void 0?M:this._set2023=new Set(this._raw2023.split(" "))}get es2024(){var M;return(M=this._set2024)!==null&&M!==void 0?M:this._set2024=new Set(this._raw2024.split(" "))}get es2025(){var M;return(M=this._set2025)!==null&&M!==void 0?M:this._set2025=new Set(this._raw2025.split(" "))}}const s=new Set(["General_Category","gc"]),l=new Set(["Script","Script_Extensions","sc","scx"]),g=new h("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct","","","","","","",""),d=new h("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy","Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo","Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho","Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi","Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi","Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz","",""),v=new h("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space","Extended_Pictographic","","EBase EComp EMod EPres ExtPict","","","",""),S=new h("","","","","","","Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence","");function b(Ge,M,Z){return s.has(M)?Ge>=2018&&g.es2018.has(Z):l.has(M)?Ge>=2018&&d.es2018.has(Z)||Ge>=2019&&d.es2019.has(Z)||Ge>=2020&&d.es2020.has(Z)||Ge>=2021&&d.es2021.has(Z)||Ge>=2022&&d.es2022.has(Z)||Ge>=2023&&d.es2023.has(Z):!1}function w(Ge,M){return Ge>=2018&&v.es2018.has(M)||Ge>=2019&&v.es2019.has(M)||Ge>=2021&&v.es2021.has(M)}function C(Ge,M){return Ge>=2024&&S.es2024.has(M)}const E=8,T=9,x=10,A=11,k=12,B=13,R=33,F=35,P=36,N=37,j=38,V=40,O=41,G=42,L=43,K=44,H=45,ae=46,re=47,De=48,Y=49,I=55,W=57,ue=58,oe=59,ne=60,he=61,ye=62,ge=63,Ce=64,z=65,Q=66,Re=68,$=70,ie=80,Te=83,Ne=87,Le=90,U=95,Qe=97,ct=98,st=99,Ke=100,Je=102,ht=103,dt=105,ot=107,nt=109,ke=110,Se=112,ve=113,Fe=114,$e=115,ce=116,be=117,ee=118,le=119,Ee=120,Ie=121,_=122,J=91,fe=92,te=93,we=94,Pe=96,ze=123,Ye=124,et=125,pe=126,se=8204,xe=8205,_e=8232,Be=8233,Ze=0,Oe=1114111;function He(Ge){return Ge>=z&&Ge<=Le||Ge>=Qe&&Ge<=_}function tt(Ge){return Ge>=De&&Ge<=W}function Ve(Ge){return Ge>=De&&Ge<=I}function it(Ge){return Ge>=De&&Ge<=W||Ge>=z&&Ge<=$||Ge>=Qe&&Ge<=Je}function pt(Ge){return Ge===x||Ge===B||Ge===_e||Ge===Be}function vt(Ge){return Ge>=Ze&&Ge<=Oe}function ft(Ge){return Ge>=Qe&&Ge<=Je?Ge-Qe+10:Ge>=z&&Ge<=$?Ge-z+10:Ge-De}function gt(Ge){return Ge>=55296&&Ge<=56319}function Ct(Ge){return Ge>=56320&&Ge<=57343}function Et(Ge,M){return(Ge-55296)*1024+(M-56320)+65536}class Tt{constructor(){this.groupName=new Set}clear(){this.groupName.clear()}isEmpty(){return!this.groupName.size}hasInPattern(M){return this.groupName.has(M)}hasInScope(M){return this.hasInPattern(M)}addToScope(M){this.groupName.add(M)}enterDisjunction(){}enterAlternative(){}leaveDisjunction(){}}class _t{constructor(M,Z){this.parent=M,this.base=Z??this}separatedFrom(M){var Z,me;return this.base===M.base&&this!==M||M.parent&&this.separatedFrom(M.parent)?!0:(me=(Z=this.parent)===null||Z===void 0?void 0:Z.separatedFrom(M))!==null&&me!==void 0?me:!1}child(){return new _t(this,null)}sibling(){return new _t(this.parent,this.base)}}class kt{constructor(){this.branchID=new _t(null,null),this.groupNames=new Map}clear(){this.branchID=new _t(null,null),this.groupNames.clear()}isEmpty(){return!this.groupNames.size}enterDisjunction(){this.branchID=this.branchID.child()}enterAlternative(M){M!==0&&(this.branchID=this.branchID.sibling())}leaveDisjunction(){this.branchID=this.branchID.parent}hasInPattern(M){return this.groupNames.has(M)}hasInScope(M){const Z=this.groupNames.get(M);if(!Z)return!1;for(const me of Z)if(!me.separatedFrom(this.branchID))return!0;return!1}addToScope(M){const Z=this.groupNames.get(M);if(Z){Z.push(this.branchID);return}this.groupNames.set(M,[this.branchID])}}const Wt={at(Ge,M,Z){return Z<M?Ge.charCodeAt(Z):-1},width(Ge){return 1}},zt={at(Ge,M,Z){return Z<M?Ge.codePointAt(Z):-1},width(Ge){return Ge>65535?2:1}};class Ot{constructor(){this._impl=Wt,this._s="",this._i=0,this._end=0,this._cp1=-1,this._w1=1,this._cp2=-1,this._w2=1,this._cp3=-1,this._w3=1,this._cp4=-1}get source(){return this._s}get index(){return this._i}get currentCodePoint(){return this._cp1}get nextCodePoint(){return this._cp2}get nextCodePoint2(){return this._cp3}get nextCodePoint3(){return this._cp4}reset(M,Z,me,je){this._impl=je?zt:Wt,this._s=M,this._end=me,this.rewind(Z)}rewind(M){const Z=this._impl;this._i=M,this._cp1=Z.at(this._s,this._end,M),this._w1=Z.width(this._cp1),this._cp2=Z.at(this._s,this._end,M+this._w1),this._w2=Z.width(this._cp2),this._cp3=Z.at(this._s,this._end,M+this._w1+this._w2),this._w3=Z.width(this._cp3),this._cp4=Z.at(this._s,this._end,M+this._w1+this._w2+this._w3)}advance(){if(this._cp1!==-1){const M=this._impl;this._i+=this._w1,this._cp1=this._cp2,this._w1=this._w2,this._cp2=this._cp3,this._w2=M.width(this._cp2),this._cp3=this._cp4,this._w3=M.width(this._cp3),this._cp4=M.at(this._s,this._end,this._i+this._w1+this._w2+this._w3)}}eat(M){return this._cp1===M?(this.advance(),!0):!1}eat2(M,Z){return this._cp1===M&&this._cp2===Z?(this.advance(),this.advance(),!0):!1}eat3(M,Z,me){return this._cp1===M&&this._cp2===Z&&this._cp3===me?(this.advance(),this.advance(),this.advance(),!0):!1}}class $t extends SyntaxError{constructor(M,Z){super(M),this.index=Z}}function ut(Ge,M,Z,me){let je="";if(Ge.kind==="literal"){const y=Ge.source.slice(Ge.start,Ge.end);y&&(je=`: ${y}`)}else if(Ge.kind==="pattern"){const y=Ge.source.slice(Ge.start,Ge.end),D=`${M.unicode?"u":""}${M.unicodeSets?"v":""}`;je=`: /${y}/${D}`}return new $t(`Invalid regular expression${je}: ${me}`,Z)}const Mt=new Set([we,P,fe,ae,G,L,ge,V,O,J,te,ze,et,Ye]),Lt=new Set([j,R,F,P,N,G,L,K,ae,ue,oe,ne,he,ye,ge,Ce,we,Pe,pe]),Er=new Set([V,O,J,te,ze,et,re,H,fe,Ye]),Sr=new Set([j,H,R,F,N,K,ue,oe,ne,he,ye,Ce,Pe,pe]),Qt={global:ht,ignoreCase:dt,multiline:nt,unicode:be,sticky:Ie,dotAll:$e,hasIndices:Ke,unicodeSets:ee},cr=Object.fromEntries(Object.entries(Qt).map(([Ge,M])=>[M,Ge]));function rr(Ge){return Mt.has(Ge)}function fr(Ge){return Lt.has(Ge)}function br(Ge){return Er.has(Ge)}function Zt(Ge){return Sr.has(Ge)}function Gt(Ge){return t(Ge)||Ge===P||Ge===U}function jt(Ge){return u(Ge)||Ge===P||Ge===se||Ge===xe}function Nr(Ge){return He(Ge)||Ge===U}function Mr(Ge){return Nr(Ge)||tt(Ge)}function jr(Ge){return Ge===dt||Ge===nt||Ge===$e}class Fr{constructor(M){this._reader=new Ot,this._unicodeMode=!1,this._unicodeSetsMode=!1,this._nFlag=!1,this._lastIntValue=0,this._lastRange={min:0,max:Number.POSITIVE_INFINITY},this._lastStrValue="",this._lastAssertionIsQuantifiable=!1,this._numCapturingParens=0,this._backreferenceNames=new Set,this._srcCtx=null,this._options=M??{},this._groupSpecifiers=this.ecmaVersion>=2025?new kt:new Tt}validateLiteral(M,Z=0,me=M.length){if(this._srcCtx={source:M,start:Z,end:me,kind:"literal"},this._unicodeSetsMode=this._unicodeMode=this._nFlag=!1,this.reset(M,Z,me),this.onLiteralEnter(Z),this.eat(re)&&this.eatRegExpBody()&&this.eat(re)){const je=this.index,y=M.includes("u",je),D=M.includes("v",je);this.validateFlagsInternal(M,je,me),this.validatePatternInternal(M,Z+1,je-1,{unicode:y,unicodeSets:D})}else if(Z>=me)this.raise("Empty");else{const je=String.fromCodePoint(this.currentCodePoint);this.raise(`Unexpected character '${je}'`)}this.onLiteralLeave(Z,me)}validateFlags(M,Z=0,me=M.length){this._srcCtx={source:M,start:Z,end:me,kind:"flags"},this.validateFlagsInternal(M,Z,me)}validatePattern(M,Z=0,me=M.length,je=void 0){this._srcCtx={source:M,start:Z,end:me,kind:"pattern"},this.validatePatternInternal(M,Z,me,je)}validatePatternInternal(M,Z=0,me=M.length,je=void 0){const y=this._parseFlagsOptionToMode(je,me);this._unicodeMode=y.unicodeMode,this._nFlag=y.nFlag,this._unicodeSetsMode=y.unicodeSetsMode,this.reset(M,Z,me),this.consumePattern(),!this._nFlag&&this.ecmaVersion>=2018&&!this._groupSpecifiers.isEmpty()&&(this._nFlag=!0,this.rewind(Z),this.consumePattern())}validateFlagsInternal(M,Z,me){const je=this.parseFlags(M,Z,me);this.onRegExpFlags(Z,me,je)}_parseFlagsOptionToMode(M,Z){let me=!1,je=!1;M&&this.ecmaVersion>=2015&&(typeof M=="object"?(me=!!M.unicode,this.ecmaVersion>=2024&&(je=!!M.unicodeSets)):me=M),me&&je&&this.raise("Invalid regular expression flags",{index:Z+1,unicode:me,unicodeSets:je});const y=me||je,D=me&&this.ecmaVersion>=2018||je||!!(this._options.strict&&this.ecmaVersion>=2023);return{unicodeMode:y,nFlag:D,unicodeSetsMode:je}}get strict(){return!!this._options.strict||this._unicodeMode}get ecmaVersion(){var M;return(M=this._options.ecmaVersion)!==null&&M!==void 0?M:e}onLiteralEnter(M){this._options.onLiteralEnter&&this._options.onLiteralEnter(M)}onLiteralLeave(M,Z){this._options.onLiteralLeave&&this._options.onLiteralLeave(M,Z)}onRegExpFlags(M,Z,me){this._options.onRegExpFlags&&this._options.onRegExpFlags(M,Z,me),this._options.onFlags&&this._options.onFlags(M,Z,me.global,me.ignoreCase,me.multiline,me.unicode,me.sticky,me.dotAll,me.hasIndices)}onPatternEnter(M){this._options.onPatternEnter&&this._options.onPatternEnter(M)}onPatternLeave(M,Z){this._options.onPatternLeave&&this._options.onPatternLeave(M,Z)}onDisjunctionEnter(M){this._options.onDisjunctionEnter&&this._options.onDisjunctionEnter(M)}onDisjunctionLeave(M,Z){this._options.onDisjunctionLeave&&this._options.onDisjunctionLeave(M,Z)}onAlternativeEnter(M,Z){this._options.onAlternativeEnter&&this._options.onAlternativeEnter(M,Z)}onAlternativeLeave(M,Z,me){this._options.onAlternativeLeave&&this._options.onAlternativeLeave(M,Z,me)}onGroupEnter(M){this._options.onGroupEnter&&this._options.onGroupEnter(M)}onGroupLeave(M,Z){this._options.onGroupLeave&&this._options.onGroupLeave(M,Z)}onModifiersEnter(M){this._options.onModifiersEnter&&this._options.onModifiersEnter(M)}onModifiersLeave(M,Z){this._options.onModifiersLeave&&this._options.onModifiersLeave(M,Z)}onAddModifiers(M,Z,me){this._options.onAddModifiers&&this._options.onAddModifiers(M,Z,me)}onRemoveModifiers(M,Z,me){this._options.onRemoveModifiers&&this._options.onRemoveModifiers(M,Z,me)}onCapturingGroupEnter(M,Z){this._options.onCapturingGroupEnter&&this._options.onCapturingGroupEnter(M,Z)}onCapturingGroupLeave(M,Z,me){this._options.onCapturingGroupLeave&&this._options.onCapturingGroupLeave(M,Z,me)}onQuantifier(M,Z,me,je,y){this._options.onQuantifier&&this._options.onQuantifier(M,Z,me,je,y)}onLookaroundAssertionEnter(M,Z,me){this._options.onLookaroundAssertionEnter&&this._options.onLookaroundAssertionEnter(M,Z,me)}onLookaroundAssertionLeave(M,Z,me,je){this._options.onLookaroundAssertionLeave&&this._options.onLookaroundAssertionLeave(M,Z,me,je)}onEdgeAssertion(M,Z,me){this._options.onEdgeAssertion&&this._options.onEdgeAssertion(M,Z,me)}onWordBoundaryAssertion(M,Z,me,je){this._options.onWordBoundaryAssertion&&this._options.onWordBoundaryAssertion(M,Z,me,je)}onAnyCharacterSet(M,Z,me){this._options.onAnyCharacterSet&&this._options.onAnyCharacterSet(M,Z,me)}onEscapeCharacterSet(M,Z,me,je){this._options.onEscapeCharacterSet&&this._options.onEscapeCharacterSet(M,Z,me,je)}onUnicodePropertyCharacterSet(M,Z,me,je,y,D,q){this._options.onUnicodePropertyCharacterSet&&this._options.onUnicodePropertyCharacterSet(M,Z,me,je,y,D,q)}onCharacter(M,Z,me){this._options.onCharacter&&this._options.onCharacter(M,Z,me)}onBackreference(M,Z,me){this._options.onBackreference&&this._options.onBackreference(M,Z,me)}onCharacterClassEnter(M,Z,me){this._options.onCharacterClassEnter&&this._options.onCharacterClassEnter(M,Z,me)}onCharacterClassLeave(M,Z,me){this._options.onCharacterClassLeave&&this._options.onCharacterClassLeave(M,Z,me)}onCharacterClassRange(M,Z,me,je){this._options.onCharacterClassRange&&this._options.onCharacterClassRange(M,Z,me,je)}onClassIntersection(M,Z){this._options.onClassIntersection&&this._options.onClassIntersection(M,Z)}onClassSubtraction(M,Z){this._options.onClassSubtraction&&this._options.onClassSubtraction(M,Z)}onClassStringDisjunctionEnter(M){this._options.onClassStringDisjunctionEnter&&this._options.onClassStringDisjunctionEnter(M)}onClassStringDisjunctionLeave(M,Z){this._options.onClassStringDisjunctionLeave&&this._options.onClassStringDisjunctionLeave(M,Z)}onStringAlternativeEnter(M,Z){this._options.onStringAlternativeEnter&&this._options.onStringAlternativeEnter(M,Z)}onStringAlternativeLeave(M,Z,me){this._options.onStringAlternativeLeave&&this._options.onStringAlternativeLeave(M,Z,me)}get index(){return this._reader.index}get currentCodePoint(){return this._reader.currentCodePoint}get nextCodePoint(){return this._reader.nextCodePoint}get nextCodePoint2(){return this._reader.nextCodePoint2}get nextCodePoint3(){return this._reader.nextCodePoint3}reset(M,Z,me){this._reader.reset(M,Z,me,this._unicodeMode)}rewind(M){this._reader.rewind(M)}advance(){this._reader.advance()}eat(M){return this._reader.eat(M)}eat2(M,Z){return this._reader.eat2(M,Z)}eat3(M,Z,me){return this._reader.eat3(M,Z,me)}raise(M,Z){var me,je,y;throw ut(this._srcCtx,{unicode:(me=Z?.unicode)!==null&&me!==void 0?me:this._unicodeMode&&!this._unicodeSetsMode,unicodeSets:(je=Z?.unicodeSets)!==null&&je!==void 0?je:this._unicodeSetsMode},(y=Z?.index)!==null&&y!==void 0?y:this.index,M)}eatRegExpBody(){const M=this.index;let Z=!1,me=!1;for(;;){const je=this.currentCodePoint;if(je===-1||pt(je)){const y=Z?"character class":"regular expression";this.raise(`Unterminated ${y}`)}if(me)me=!1;else if(je===fe)me=!0;else if(je===J)Z=!0;else if(je===te)Z=!1;else if(je===re&&!Z||je===G&&this.index===M)break;this.advance()}return this.index!==M}consumePattern(){const M=this.index;this._numCapturingParens=this.countCapturingParens(),this._groupSpecifiers.clear(),this._backreferenceNames.clear(),this.onPatternEnter(M),this.consumeDisjunction();const Z=this.currentCodePoint;if(this.currentCodePoint!==-1){Z===O&&this.raise("Unmatched ')'"),Z===fe&&this.raise("\\ at end of pattern"),(Z===te||Z===et)&&this.raise("Lone quantifier brackets");const me=String.fromCodePoint(Z);this.raise(`Unexpected character '${me}'`)}for(const me of this._backreferenceNames)this._groupSpecifiers.hasInPattern(me)||this.raise("Invalid named capture referenced");this.onPatternLeave(M,this.index)}countCapturingParens(){const M=this.index;let Z=!1,me=!1,je=0,y=0;for(;(y=this.currentCodePoint)!==-1;)me?me=!1:y===fe?me=!0:y===J?Z=!0:y===te?Z=!1:y===V&&!Z&&(this.nextCodePoint!==ge||this.nextCodePoint2===ne&&this.nextCodePoint3!==he&&this.nextCodePoint3!==R)&&(je+=1),this.advance();return this.rewind(M),je}consumeDisjunction(){const M=this.index;let Z=0;this._groupSpecifiers.enterDisjunction(),this.onDisjunctionEnter(M);do this.consumeAlternative(Z++);while(this.eat(Ye));this.consumeQuantifier(!0)&&this.raise("Nothing to repeat"),this.eat(ze)&&this.raise("Lone quantifier brackets"),this.onDisjunctionLeave(M,this.index),this._groupSpecifiers.leaveDisjunction()}consumeAlternative(M){const Z=this.index;for(this._groupSpecifiers.enterAlternative(M),this.onAlternativeEnter(Z,M);this.currentCodePoint!==-1&&this.consumeTerm(););this.onAlternativeLeave(Z,this.index,M)}consumeTerm(){return this._unicodeMode||this.strict?this.consumeAssertion()||this.consumeAtom()&&this.consumeOptionalQuantifier():this.consumeAssertion()&&(!this._lastAssertionIsQuantifiable||this.consumeOptionalQuantifier())||this.consumeExtendedAtom()&&this.consumeOptionalQuantifier()}consumeOptionalQuantifier(){return this.consumeQuantifier(),!0}consumeAssertion(){const M=this.index;if(this._lastAssertionIsQuantifiable=!1,this.eat(we))return this.onEdgeAssertion(M,this.index,"start"),!0;if(this.eat(P))return this.onEdgeAssertion(M,this.index,"end"),!0;if(this.eat2(fe,Q))return this.onWordBoundaryAssertion(M,this.index,"word",!0),!0;if(this.eat2(fe,ct))return this.onWordBoundaryAssertion(M,this.index,"word",!1),!0;if(this.eat2(V,ge)){const Z=this.ecmaVersion>=2018&&this.eat(ne);let me=!1;if(this.eat(he)||(me=this.eat(R))){const je=Z?"lookbehind":"lookahead";return this.onLookaroundAssertionEnter(M,je,me),this.consumeDisjunction(),this.eat(O)||this.raise("Unterminated group"),this._lastAssertionIsQuantifiable=!Z&&!this.strict,this.onLookaroundAssertionLeave(M,this.index,je,me),!0}this.rewind(M)}return!1}consumeQuantifier(M=!1){const Z=this.index;let me=0,je=0,y=!1;if(this.eat(G))me=0,je=Number.POSITIVE_INFINITY;else if(this.eat(L))me=1,je=Number.POSITIVE_INFINITY;else if(this.eat(ge))me=0,je=1;else if(this.eatBracedQuantifier(M))({min:me,max:je}=this._lastRange);else return!1;return y=!this.eat(ge),M||this.onQuantifier(Z,this.index,me,je,y),!0}eatBracedQuantifier(M){const Z=this.index;if(this.eat(ze)){if(this.eatDecimalDigits()){const me=this._lastIntValue;let je=me;if(this.eat(K)&&(je=this.eatDecimalDigits()?this._lastIntValue:Number.POSITIVE_INFINITY),this.eat(et))return!M&&je<me&&this.raise("numbers out of order in {} quantifier"),this._lastRange={min:me,max:je},!0}!M&&(this._unicodeMode||this.strict)&&this.raise("Incomplete quantifier"),this.rewind(Z)}return!1}consumeAtom(){return this.consumePatternCharacter()||this.consumeDot()||this.consumeReverseSolidusAtomEscape()||!!this.consumeCharacterClass()||this.consumeCapturingGroup()||this.consumeUncapturingGroup()}consumeDot(){return this.eat(ae)?(this.onAnyCharacterSet(this.index-1,this.index,"any"),!0):!1}consumeReverseSolidusAtomEscape(){const M=this.index;if(this.eat(fe)){if(this.consumeAtomEscape())return!0;this.rewind(M)}return!1}consumeUncapturingGroup(){const M=this.index;return this.eat2(V,ge)?(this.onGroupEnter(M),this.ecmaVersion>=2025&&this.consumeModifiers(),this.eat(ue)||(this.rewind(M+1),this.raise("Invalid group")),this.consumeDisjunction(),this.eat(O)||this.raise("Unterminated group"),this.onGroupLeave(M,this.index),!0):!1}consumeModifiers(){const M=this.index,Z=this.eatModifiers(),me=this.index,je=this.eat(H);if(!Z&&!je)return!1;this.onModifiersEnter(M);const y=this.parseModifiers(M,me);if(this.onAddModifiers(M,me,y),je){const D=this.index;!this.eatModifiers()&&!Z&&this.currentCodePoint===ue&&this.raise("Invalid empty flags");const q=this.parseModifiers(D,this.index);for(const[X]of Object.entries(q).filter(([,de])=>de))y[X]&&this.raise(`Duplicated flag '${String.fromCodePoint(Qt[X])}'`);this.onRemoveModifiers(D,this.index,q)}return this.onModifiersLeave(M,this.index),!0}consumeCapturingGroup(){const M=this.index;if(this.eat(V)){let Z=null;if(this.ecmaVersion>=2018){if(this.consumeGroupSpecifier())Z=this._lastStrValue;else if(this.currentCodePoint===ge)return this.rewind(M),!1}else if(this.currentCodePoint===ge)return this.rewind(M),!1;return this.onCapturingGroupEnter(M,Z),this.consumeDisjunction(),this.eat(O)||this.raise("Unterminated group"),this.onCapturingGroupLeave(M,this.index,Z),!0}return!1}consumeExtendedAtom(){return this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeReverseSolidusFollowedByC()||!!this.consumeCharacterClass()||this.consumeCapturingGroup()||this.consumeUncapturingGroup()||this.consumeInvalidBracedQuantifier()||this.consumeExtendedPatternCharacter()}consumeReverseSolidusFollowedByC(){const M=this.index;return this.currentCodePoint===fe&&this.nextCodePoint===st?(this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(M,this.index,fe),!0):!1}consumeInvalidBracedQuantifier(){return this.eatBracedQuantifier(!0)&&this.raise("Nothing to repeat"),!1}consumePatternCharacter(){const M=this.index,Z=this.currentCodePoint;return Z!==-1&&!rr(Z)?(this.advance(),this.onCharacter(M,this.index,Z),!0):!1}consumeExtendedPatternCharacter(){const M=this.index,Z=this.currentCodePoint;return Z!==-1&&Z!==we&&Z!==P&&Z!==fe&&Z!==ae&&Z!==G&&Z!==L&&Z!==ge&&Z!==V&&Z!==O&&Z!==J&&Z!==Ye?(this.advance(),this.onCharacter(M,this.index,Z),!0):!1}consumeGroupSpecifier(){const M=this.index;if(this.eat(ge)){if(this.eatGroupName()){if(!this._groupSpecifiers.hasInScope(this._lastStrValue))return this._groupSpecifiers.addToScope(this._lastStrValue),!0;this.raise("Duplicate capture group name")}this.rewind(M)}return!1}consumeAtomEscape(){return this.consumeBackreference()||this.consumeCharacterClassEscape()||this.consumeCharacterEscape()||this._nFlag&&this.consumeKGroupName()?!0:((this.strict||this._unicodeMode)&&this.raise("Invalid escape"),!1)}consumeBackreference(){const M=this.index;if(this.eatDecimalEscape()){const Z=this._lastIntValue;if(Z<=this._numCapturingParens)return this.onBackreference(M-1,this.index,Z),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(M)}return!1}consumeCharacterClassEscape(){var M;const Z=this.index;if(this.eat(Ke))return this._lastIntValue=-1,this.onEscapeCharacterSet(Z-1,this.index,"digit",!1),{};if(this.eat(Re))return this._lastIntValue=-1,this.onEscapeCharacterSet(Z-1,this.index,"digit",!0),{};if(this.eat($e))return this._lastIntValue=-1,this.onEscapeCharacterSet(Z-1,this.index,"space",!1),{};if(this.eat(Te))return this._lastIntValue=-1,this.onEscapeCharacterSet(Z-1,this.index,"space",!0),{};if(this.eat(le))return this._lastIntValue=-1,this.onEscapeCharacterSet(Z-1,this.index,"word",!1),{};if(this.eat(Ne))return this._lastIntValue=-1,this.onEscapeCharacterSet(Z-1,this.index,"word",!0),{};let me=!1;if(this._unicodeMode&&this.ecmaVersion>=2018&&(this.eat(Se)||(me=this.eat(ie)))){this._lastIntValue=-1;let je=null;if(this.eat(ze)&&(je=this.eatUnicodePropertyValueExpression())&&this.eat(et))return me&&je.strings&&this.raise("Invalid property name"),this.onUnicodePropertyCharacterSet(Z-1,this.index,"property",je.key,je.value,me,(M=je.strings)!==null&&M!==void 0?M:!1),{mayContainStrings:je.strings};this.raise("Invalid property name")}return null}consumeCharacterEscape(){const M=this.index;return this.eatControlEscape()||this.eatCControlLetter()||this.eatZero()||this.eatHexEscapeSequence()||this.eatRegExpUnicodeEscapeSequence()||!this.strict&&!this._unicodeMode&&this.eatLegacyOctalEscapeSequence()||this.eatIdentityEscape()?(this.onCharacter(M-1,this.index,this._lastIntValue),!0):!1}consumeKGroupName(){const M=this.index;if(this.eat(ot)){if(this.eatGroupName()){const Z=this._lastStrValue;return this._backreferenceNames.add(Z),this.onBackreference(M-1,this.index,Z),!0}this.raise("Invalid named reference")}return!1}consumeCharacterClass(){const M=this.index;if(this.eat(J)){const Z=this.eat(we);this.onCharacterClassEnter(M,Z,this._unicodeSetsMode);const me=this.consumeClassContents();return this.eat(te)||(this.currentCodePoint===-1&&this.raise("Unterminated character class"),this.raise("Invalid character in character class")),Z&&me.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(M,this.index,Z),me}return null}consumeClassContents(){if(this._unicodeSetsMode)return this.currentCodePoint===te?{}:this.consumeClassSetExpression();const M=this.strict||this._unicodeMode;for(;;){const Z=this.index;if(!this.consumeClassAtom())break;const me=this._lastIntValue;if(!this.eat(H))continue;if(this.onCharacter(this.index-1,this.index,H),!this.consumeClassAtom())break;const je=this._lastIntValue;if(me===-1||je===-1){M&&this.raise("Invalid character class");continue}me>je&&this.raise("Range out of order in character class"),this.onCharacterClassRange(Z,this.index,me,je)}return{}}consumeClassAtom(){const M=this.index,Z=this.currentCodePoint;if(Z!==-1&&Z!==fe&&Z!==te)return this.advance(),this._lastIntValue=Z,this.onCharacter(M,this.index,this._lastIntValue),!0;if(this.eat(fe)){if(this.consumeClassEscape())return!0;if(!this.strict&&this.currentCodePoint===st)return this._lastIntValue=fe,this.onCharacter(M,this.index,this._lastIntValue),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(M)}return!1}consumeClassEscape(){const M=this.index;if(this.eat(ct))return this._lastIntValue=E,this.onCharacter(M-1,this.index,this._lastIntValue),!0;if(this._unicodeMode&&this.eat(H))return this._lastIntValue=H,this.onCharacter(M-1,this.index,this._lastIntValue),!0;let Z=0;return!this.strict&&!this._unicodeMode&&this.currentCodePoint===st&&(tt(Z=this.nextCodePoint)||Z===U)?(this.advance(),this.advance(),this._lastIntValue=Z%32,this.onCharacter(M-1,this.index,this._lastIntValue),!0):!!this.consumeCharacterClassEscape()||this.consumeCharacterEscape()}consumeClassSetExpression(){const M=this.index;let Z=!1,me=null;if(this.consumeClassSetCharacter()){if(this.consumeClassSetRangeFromOperator(M))return this.consumeClassUnionRight({}),{};Z=!1}else if(me=this.consumeClassSetOperand())Z=me.mayContainStrings;else{const je=this.currentCodePoint;je===fe&&(this.advance(),this.raise("Invalid escape")),je===this.nextCodePoint&&fr(je)&&this.raise("Invalid set operation in character class"),this.raise("Invalid character in character class")}if(this.eat2(j,j)){for(;this.currentCodePoint!==j&&(me=this.consumeClassSetOperand());)if(this.onClassIntersection(M,this.index),me.mayContainStrings||(Z=!1),!this.eat2(j,j))return{mayContainStrings:Z};this.raise("Invalid character in character class")}if(this.eat2(H,H)){for(;this.consumeClassSetOperand();)if(this.onClassSubtraction(M,this.index),!this.eat2(H,H))return{mayContainStrings:Z};this.raise("Invalid character in character class")}return this.consumeClassUnionRight({mayContainStrings:Z})}consumeClassUnionRight(M){let Z=M.mayContainStrings;for(;;){const me=this.index;if(this.consumeClassSetCharacter()){this.consumeClassSetRangeFromOperator(me);continue}const je=this.consumeClassSetOperand();if(je){je.mayContainStrings&&(Z=!0);continue}break}return{mayContainStrings:Z}}consumeClassSetRangeFromOperator(M){const Z=this.index,me=this._lastIntValue;if(this.eat(H)){if(this.consumeClassSetCharacter()){const je=this._lastIntValue;return(me===-1||je===-1)&&this.raise("Invalid character class"),me>je&&this.raise("Range out of order in character class"),this.onCharacterClassRange(M,this.index,me,je),!0}this.rewind(Z)}return!1}consumeClassSetOperand(){let M=null;return(M=this.consumeNestedClass())||(M=this.consumeClassStringDisjunction())?M:this.consumeClassSetCharacter()?{}:null}consumeNestedClass(){const M=this.index;if(this.eat(J)){const Z=this.eat(we);this.onCharacterClassEnter(M,Z,!0);const me=this.consumeClassContents();return this.eat(te)||this.raise("Unterminated character class"),Z&&me.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(M,this.index,Z),me}if(this.eat(fe)){const Z=this.consumeCharacterClassEscape();if(Z)return Z;this.rewind(M)}return null}consumeClassStringDisjunction(){const M=this.index;if(this.eat3(fe,ve,ze)){this.onClassStringDisjunctionEnter(M);let Z=0,me=!1;do this.consumeClassString(Z++).mayContainStrings&&(me=!0);while(this.eat(Ye));if(this.eat(et))return this.onClassStringDisjunctionLeave(M,this.index),{mayContainStrings:me};this.raise("Unterminated class string disjunction")}return null}consumeClassString(M){const Z=this.index;let me=0;for(this.onStringAlternativeEnter(Z,M);this.currentCodePoint!==-1&&this.consumeClassSetCharacter();)me++;return this.onStringAlternativeLeave(Z,this.index,M),{mayContainStrings:me!==1}}consumeClassSetCharacter(){const M=this.index,Z=this.currentCodePoint;if((Z!==this.nextCodePoint||!fr(Z))&&Z!==-1&&!br(Z))return this._lastIntValue=Z,this.advance(),this.onCharacter(M,this.index,this._lastIntValue),!0;if(this.eat(fe)){if(this.consumeCharacterEscape())return!0;if(Zt(this.currentCodePoint))return this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(M,this.index,this._lastIntValue),!0;if(this.eat(ct))return this._lastIntValue=E,this.onCharacter(M,this.index,this._lastIntValue),!0;this.rewind(M)}return!1}eatGroupName(){if(this.eat(ne)){if(this.eatRegExpIdentifierName()&&this.eat(ye))return!0;this.raise("Invalid capture group name")}return!1}eatRegExpIdentifierName(){if(this.eatRegExpIdentifierStart()){for(this._lastStrValue=String.fromCodePoint(this._lastIntValue);this.eatRegExpIdentifierPart();)this._lastStrValue+=String.fromCodePoint(this._lastIntValue);return!0}return!1}eatRegExpIdentifierStart(){const M=this.index,Z=!this._unicodeMode&&this.ecmaVersion>=2020;let me=this.currentCodePoint;return this.advance(),me===fe&&this.eatRegExpUnicodeEscapeSequence(Z)?me=this._lastIntValue:Z&>(me)&&Ct(this.currentCodePoint)&&(me=Et(me,this.currentCodePoint),this.advance()),Gt(me)?(this._lastIntValue=me,!0):(this.index!==M&&this.rewind(M),!1)}eatRegExpIdentifierPart(){const M=this.index,Z=!this._unicodeMode&&this.ecmaVersion>=2020;let me=this.currentCodePoint;return this.advance(),me===fe&&this.eatRegExpUnicodeEscapeSequence(Z)?me=this._lastIntValue:Z&>(me)&&Ct(this.currentCodePoint)&&(me=Et(me,this.currentCodePoint),this.advance()),jt(me)?(this._lastIntValue=me,!0):(this.index!==M&&this.rewind(M),!1)}eatCControlLetter(){const M=this.index;if(this.eat(st)){if(this.eatControlLetter())return!0;this.rewind(M)}return!1}eatZero(){return this.currentCodePoint===De&&!tt(this.nextCodePoint)?(this._lastIntValue=0,this.advance(),!0):!1}eatControlEscape(){return this.eat(Je)?(this._lastIntValue=k,!0):this.eat(ke)?(this._lastIntValue=x,!0):this.eat(Fe)?(this._lastIntValue=B,!0):this.eat(ce)?(this._lastIntValue=T,!0):this.eat(ee)?(this._lastIntValue=A,!0):!1}eatControlLetter(){const M=this.currentCodePoint;return He(M)?(this.advance(),this._lastIntValue=M%32,!0):!1}eatRegExpUnicodeEscapeSequence(M=!1){const Z=this.index,me=M||this._unicodeMode;if(this.eat(be)){if(me&&this.eatRegExpUnicodeSurrogatePairEscape()||this.eatFixedHexDigits(4)||me&&this.eatRegExpUnicodeCodePointEscape())return!0;(this.strict||me)&&this.raise("Invalid unicode escape"),this.rewind(Z)}return!1}eatRegExpUnicodeSurrogatePairEscape(){const M=this.index;if(this.eatFixedHexDigits(4)){const Z=this._lastIntValue;if(gt(Z)&&this.eat(fe)&&this.eat(be)&&this.eatFixedHexDigits(4)){const me=this._lastIntValue;if(Ct(me))return this._lastIntValue=Et(Z,me),!0}this.rewind(M)}return!1}eatRegExpUnicodeCodePointEscape(){const M=this.index;return this.eat(ze)&&this.eatHexDigits()&&this.eat(et)&&vt(this._lastIntValue)?!0:(this.rewind(M),!1)}eatIdentityEscape(){const M=this.currentCodePoint;return this.isValidIdentityEscape(M)?(this._lastIntValue=M,this.advance(),!0):!1}isValidIdentityEscape(M){return M===-1?!1:this._unicodeMode?rr(M)||M===re:this.strict?!u(M):this._nFlag?!(M===st||M===ot):M!==st}eatDecimalEscape(){this._lastIntValue=0;let M=this.currentCodePoint;if(M>=Y&&M<=W){do this._lastIntValue=10*this._lastIntValue+(M-De),this.advance();while((M=this.currentCodePoint)>=De&&M<=W);return!0}return!1}eatUnicodePropertyValueExpression(){const M=this.index;if(this.eatUnicodePropertyName()&&this.eat(he)){const Z=this._lastStrValue;if(this.eatUnicodePropertyValue()){const me=this._lastStrValue;if(b(this.ecmaVersion,Z,me))return{key:Z,value:me||null};this.raise("Invalid property name")}}if(this.rewind(M),this.eatLoneUnicodePropertyNameOrValue()){const Z=this._lastStrValue;if(b(this.ecmaVersion,"General_Category",Z))return{key:"General_Category",value:Z||null};if(w(this.ecmaVersion,Z))return{key:Z,value:null};if(this._unicodeSetsMode&&C(this.ecmaVersion,Z))return{key:Z,value:null,strings:!0};this.raise("Invalid property name")}return null}eatUnicodePropertyName(){for(this._lastStrValue="";Nr(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==""}eatUnicodePropertyValue(){for(this._lastStrValue="";Mr(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==""}eatLoneUnicodePropertyNameOrValue(){return this.eatUnicodePropertyValue()}eatHexEscapeSequence(){const M=this.index;if(this.eat(Ee)){if(this.eatFixedHexDigits(2))return!0;(this._unicodeMode||this.strict)&&this.raise("Invalid escape"),this.rewind(M)}return!1}eatDecimalDigits(){const M=this.index;for(this._lastIntValue=0;tt(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+ft(this.currentCodePoint),this.advance();return this.index!==M}eatHexDigits(){const M=this.index;for(this._lastIntValue=0;it(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+ft(this.currentCodePoint),this.advance();return this.index!==M}eatLegacyOctalEscapeSequence(){if(this.eatOctalDigit()){const M=this._lastIntValue;if(this.eatOctalDigit()){const Z=this._lastIntValue;M<=3&&this.eatOctalDigit()?this._lastIntValue=M*64+Z*8+this._lastIntValue:this._lastIntValue=M*8+Z}else this._lastIntValue=M;return!0}return!1}eatOctalDigit(){const M=this.currentCodePoint;return Ve(M)?(this.advance(),this._lastIntValue=M-De,!0):(this._lastIntValue=0,!1)}eatFixedHexDigits(M){const Z=this.index;this._lastIntValue=0;for(let me=0;me<M;++me){const je=this.currentCodePoint;if(!it(je))return this.rewind(Z),!1;this._lastIntValue=16*this._lastIntValue+ft(je),this.advance()}return!0}eatModifiers(){let M=!1;for(;jr(this.currentCodePoint);)this.advance(),M=!0;return M}parseModifiers(M,Z){const{ignoreCase:me,multiline:je,dotAll:y}=this.parseFlags(this._reader.source,M,Z);return{ignoreCase:me,multiline:je,dotAll:y}}parseFlags(M,Z,me){const je={global:!1,ignoreCase:!1,multiline:!1,unicode:!1,sticky:!1,dotAll:!1,hasIndices:!1,unicodeSets:!1},y=new Set;y.add(ht),y.add(dt),y.add(nt),this.ecmaVersion>=2015&&(y.add(be),y.add(Ie),this.ecmaVersion>=2018&&(y.add($e),this.ecmaVersion>=2022&&(y.add(Ke),this.ecmaVersion>=2024&&y.add(ee))));for(let D=Z;D<me;++D){const q=M.charCodeAt(D);if(y.has(q)){const X=cr[q];je[X]&&this.raise(`Duplicated flag '${M[D]}'`,{index:Z}),je[X]=!0}else this.raise(`Invalid flag '${M[D]}'`,{index:Z})}return je}}const an={},on={},dr={};function gr(Ge){return Ge.type==="Character"||Ge.type==="CharacterSet"||Ge.type==="CharacterClass"||Ge.type==="ExpressionCharacterClass"||Ge.type==="ClassStringDisjunction"}class Ur{constructor(M){var Z;this._node=an,this._expressionBufferMap=new Map,this._flags=on,this._backreferences=[],this._capturingGroups=[],this.source="",this.strict=!!M?.strict,this.ecmaVersion=(Z=M?.ecmaVersion)!==null&&Z!==void 0?Z:e}get pattern(){if(this._node.type!=="Pattern")throw new Error("UnknownError");return this._node}get flags(){if(this._flags.type!=="Flags")throw new Error("UnknownError");return this._flags}onRegExpFlags(M,Z,{global:me,ignoreCase:je,multiline:y,unicode:D,sticky:q,dotAll:X,hasIndices:de,unicodeSets:qe}){this._flags={type:"Flags",parent:null,start:M,end:Z,raw:this.source.slice(M,Z),global:me,ignoreCase:je,multiline:y,unicode:D,sticky:q,dotAll:X,hasIndices:de,unicodeSets:qe}}onPatternEnter(M){this._node={type:"Pattern",parent:null,start:M,end:M,raw:"",alternatives:[]},this._backreferences.length=0,this._capturingGroups.length=0}onPatternLeave(M,Z){this._node.end=Z,this._node.raw=this.source.slice(M,Z);for(const me of this._backreferences){const je=me.ref,y=typeof je=="number"?[this._capturingGroups[je-1]]:this._capturingGroups.filter(D=>D.name===je);if(y.length===1){const D=y[0];me.ambiguous=!1,me.resolved=D}else me.ambiguous=!0,me.resolved=y;for(const D of y)D.references.push(me)}}onAlternativeEnter(M){const Z=this._node;if(Z.type!=="Assertion"&&Z.type!=="CapturingGroup"&&Z.type!=="Group"&&Z.type!=="Pattern")throw new Error("UnknownError");this._node={type:"Alternative",parent:Z,start:M,end:M,raw:"",elements:[]},Z.alternatives.push(this._node)}onAlternativeLeave(M,Z){const me=this._node;if(me.type!=="Alternative")throw new Error("UnknownError");me.end=Z,me.raw=this.source.slice(M,Z),this._node=me.parent}onGroupEnter(M){const Z=this._node;if(Z.type!=="Alternative")throw new Error("UnknownError");const me={type:"Group",parent:Z,start:M,end:M,raw:"",modifiers:null,alternatives:[]};this._node=me,Z.elements.push(this._node)}onGroupLeave(M,Z){const me=this._node;if(me.type!=="Group"||me.parent.type!=="Alternative")throw new Error("UnknownError");me.end=Z,me.raw=this.source.slice(M,Z),this._node=me.parent}onModifiersEnter(M){const Z=this._node;if(Z.type!=="Group")throw new Error("UnknownError");this._node={type:"Modifiers",parent:Z,start:M,end:M,raw:"",add:null,remove:null},Z.modifiers=this._node}onModifiersLeave(M,Z){const me=this._node;if(me.type!=="Modifiers"||me.parent.type!=="Group")throw new Error("UnknownError");me.end=Z,me.raw=this.source.slice(M,Z),this._node=me.parent}onAddModifiers(M,Z,{ignoreCase:me,multiline:je,dotAll:y}){const D=this._node;if(D.type!=="Modifiers")throw new Error("UnknownError");D.add={type:"ModifierFlags",parent:D,start:M,end:Z,raw:this.source.slice(M,Z),ignoreCase:me,multiline:je,dotAll:y}}onRemoveModifiers(M,Z,{ignoreCase:me,multiline:je,dotAll:y}){const D=this._node;if(D.type!=="Modifiers")throw new Error("UnknownError");D.remove={type:"ModifierFlags",parent:D,start:M,end:Z,raw:this.source.slice(M,Z),ignoreCase:me,multiline:je,dotAll:y}}onCapturingGroupEnter(M,Z){const me=this._node;if(me.type!=="Alternative")throw new Error("UnknownError");this._node={type:"CapturingGroup",parent:me,start:M,end:M,raw:"",name:Z,alternatives:[],references:[]},me.elements.push(this._node),this._capturingGroups.push(this._node)}onCapturingGroupLeave(M,Z){const me=this._node;if(me.type!=="CapturingGroup"||me.parent.type!=="Alternative")throw new Error("UnknownError");me.end=Z,me.raw=this.source.slice(M,Z),this._node=me.parent}onQuantifier(M,Z,me,je,y){const D=this._node;if(D.type!=="Alternative")throw new Error("UnknownError");const q=D.elements.pop();if(q==null||q.type==="Quantifier"||q.type==="Assertion"&&q.kind!=="lookahead")throw new Error("UnknownError");const X={type:"Quantifier",parent:D,start:q.start,end:Z,raw:this.source.slice(q.start,Z),min:me,max:je,greedy:y,element:q};D.elements.push(X),q.parent=X}onLookaroundAssertionEnter(M,Z,me){const je=this._node;if(je.type!=="Alternative")throw new Error("UnknownError");const y=this._node={type:"Assertion",parent:je,start:M,end:M,raw:"",kind:Z,negate:me,alternatives:[]};je.elements.push(y)}onLookaroundAssertionLeave(M,Z){const me=this._node;if(me.type!=="Assertion"||me.parent.type!=="Alternative")throw new Error("UnknownError");me.end=Z,me.raw=this.source.slice(M,Z),this._node=me.parent}onEdgeAssertion(M,Z,me){const je=this._node;if(je.type!=="Alternative")throw new Error("UnknownError");je.elements.push({type:"Assertion",parent:je,start:M,end:Z,raw:this.source.slice(M,Z),kind:me})}onWordBoundaryAssertion(M,Z,me,je){const y=this._node;if(y.type!=="Alternative")throw new Error("UnknownError");y.elements.push({type:"Assertion",parent:y,start:M,end:Z,raw:this.source.slice(M,Z),kind:me,negate:je})}onAnyCharacterSet(M,Z,me){const je=this._node;if(je.type!=="Alternative")throw new Error("UnknownError");je.elements.push({type:"CharacterSet",parent:je,start:M,end:Z,raw:this.source.slice(M,Z),kind:me})}onEscapeCharacterSet(M,Z,me,je){const y=this._node;if(y.type!=="Alternative"&&y.type!=="CharacterClass")throw new Error("UnknownError");y.elements.push({type:"CharacterSet",parent:y,start:M,end:Z,raw:this.source.slice(M,Z),kind:me,negate:je})}onUnicodePropertyCharacterSet(M,Z,me,je,y,D,q){const X=this._node;if(X.type!=="Alternative"&&X.type!=="CharacterClass")throw new Error("UnknownError");const de={type:"CharacterSet",parent:null,start:M,end:Z,raw:this.source.slice(M,Z),kind:me,strings:null,key:je};if(q){if(X.type==="CharacterClass"&&!X.unicodeSets||D||y!==null)throw new Error("UnknownError");X.elements.push(Object.assign(Object.assign({},de),{parent:X,strings:q,value:y,negate:D}))}else X.elements.push(Object.assign(Object.assign({},de),{parent:X,strings:q,value:y,negate:D}))}onCharacter(M,Z,me){const je=this._node;if(je.type!=="Alternative"&&je.type!=="CharacterClass"&&je.type!=="StringAlternative")throw new Error("UnknownError");je.elements.push({type:"Character",parent:je,start:M,end:Z,raw:this.source.slice(M,Z),value:me})}onBackreference(M,Z,me){const je=this._node;if(je.type!=="Alternative")throw new Error("UnknownError");const y={type:"Backreference",parent:je,start:M,end:Z,raw:this.source.slice(M,Z),ref:me,ambiguous:!1,resolved:dr};je.elements.push(y),this._backreferences.push(y)}onCharacterClassEnter(M,Z,me){const je=this._node,y={type:"CharacterClass",parent:je,start:M,end:M,raw:"",unicodeSets:me,negate:Z,elements:[]};if(je.type==="Alternative"){const D=Object.assign(Object.assign({},y),{parent:je});this._node=D,je.elements.push(D)}else if(je.type==="CharacterClass"&&je.unicodeSets&&me){const D=Object.assign(Object.assign({},y),{parent:je,unicodeSets:me});this._node=D,je.elements.push(D)}else throw new Error("UnknownError")}onCharacterClassLeave(M,Z){const me=this._node;if(me.type!=="CharacterClass"||me.parent.type!=="Alternative"&&me.parent.type!=="CharacterClass")throw new Error("UnknownError");const je=me.parent;me.end=Z,me.raw=this.source.slice(M,Z),this._node=je;const y=this._expressionBufferMap.get(me);if(!y)return;if(me.elements.length>0)throw new Error("UnknownError");this._expressionBufferMap.delete(me);const D={type:"ExpressionCharacterClass",parent:je,start:me.start,end:me.end,raw:me.raw,negate:me.negate,expression:y};if(y.parent=D,me!==je.elements.pop())throw new Error("UnknownError");je.elements.push(D)}onCharacterClassRange(M,Z){const me=this._node;if(me.type!=="CharacterClass")throw new Error("UnknownError");const je=me.elements,y=je.pop();if(!y||y.type!=="Character")throw new Error("UnknownError");if(!me.unicodeSets){const X=je.pop();if(!X||X.type!=="Character"||X.value!==H)throw new Error("UnknownError")}const D=je.pop();if(!D||D.type!=="Character")throw new Error("UnknownError");const q={type:"CharacterClassRange",parent:me,start:M,end:Z,raw:this.source.slice(M,Z),min:D,max:y};D.parent=q,y.parent=q,je.push(q)}onClassIntersection(M,Z){var me;const je=this._node;if(je.type!=="CharacterClass"||!je.unicodeSets)throw new Error("UnknownError");const y=je.elements.pop(),D=(me=this._expressionBufferMap.get(je))!==null&&me!==void 0?me:je.elements.pop();if(!D||!y||D.type==="ClassSubtraction"||D.type!=="ClassIntersection"&&!gr(D)||!gr(y))throw new Error("UnknownError");const q={type:"ClassIntersection",parent:je,start:M,end:Z,raw:this.source.slice(M,Z),left:D,right:y};D.parent=q,y.parent=q,this._expressionBufferMap.set(je,q)}onClassSubtraction(M,Z){var me;const je=this._node;if(je.type!=="CharacterClass"||!je.unicodeSets)throw new Error("UnknownError");const y=je.elements.pop(),D=(me=this._expressionBufferMap.get(je))!==null&&me!==void 0?me:je.elements.pop();if(!D||!y||D.type==="ClassIntersection"||D.type!=="ClassSubtraction"&&!gr(D)||!gr(y))throw new Error("UnknownError");const q={type:"ClassSubtraction",parent:je,start:M,end:Z,raw:this.source.slice(M,Z),left:D,right:y};D.parent=q,y.parent=q,this._expressionBufferMap.set(je,q)}onClassStringDisjunctionEnter(M){const Z=this._node;if(Z.type!=="CharacterClass"||!Z.unicodeSets)throw new Error("UnknownError");this._node={type:"ClassStringDisjunction",parent:Z,start:M,end:M,raw:"",alternatives:[]},Z.elements.push(this._node)}onClassStringDisjunctionLeave(M,Z){const me=this._node;if(me.type!=="ClassStringDisjunction"||me.parent.type!=="CharacterClass")throw new Error("UnknownError");me.end=Z,me.raw=this.source.slice(M,Z),this._node=me.parent}onStringAlternativeEnter(M){const Z=this._node;if(Z.type!=="ClassStringDisjunction")throw new Error("UnknownError");this._node={type:"StringAlternative",parent:Z,start:M,end:M,raw:"",elements:[]},Z.alternatives.push(this._node)}onStringAlternativeLeave(M,Z){const me=this._node;if(me.type!=="StringAlternative")throw new Error("UnknownError");me.end=Z,me.raw=this.source.slice(M,Z),this._node=me.parent}}class Rr{constructor(M){this._state=new Ur(M),this._validator=new Fr(this._state)}parseLiteral(M,Z=0,me=M.length){this._state.source=M,this._validator.validateLiteral(M,Z,me);const je=this._state.pattern,y=this._state.flags,D={type:"RegExpLiteral",parent:null,start:Z,end:me,raw:M,pattern:je,flags:y};return je.parent=D,y.parent=D,D}parseFlags(M,Z=0,me=M.length){return this._state.source=M,this._validator.validateFlags(M,Z,me),this._state.flags}parsePattern(M,Z=0,me=M.length,je=void 0){return this._state.source=M,this._validator.validatePattern(M,Z,me,je),this._state.pattern}}class pr{constructor(M){this._handlers=M}visit(M){switch(M.type){case"Alternative":this.visitAlternative(M);break;case"Assertion":this.visitAssertion(M);break;case"Backreference":this.visitBackreference(M);break;case"CapturingGroup":this.visitCapturingGroup(M);break;case"Character":this.visitCharacter(M);break;case"CharacterClass":this.visitCharacterClass(M);break;case"CharacterClassRange":this.visitCharacterClassRange(M);break;case"CharacterSet":this.visitCharacterSet(M);break;case"ClassIntersection":this.visitClassIntersection(M);break;case"ClassStringDisjunction":this.visitClassStringDisjunction(M);break;case"ClassSubtraction":this.visitClassSubtraction(M);break;case"ExpressionCharacterClass":this.visitExpressionCharacterClass(M);break;case"Flags":this.visitFlags(M);break;case"Group":this.visitGroup(M);break;case"Modifiers":this.visitModifiers(M);break;case"ModifierFlags":this.visitModifierFlags(M);break;case"Pattern":this.visitPattern(M);break;case"Quantifier":this.visitQuantifier(M);break;case"RegExpLiteral":this.visitRegExpLiteral(M);break;case"StringAlternative":this.visitStringAlternative(M);break;default:throw new Error(`Unknown type: ${M.type}`)}}visitAlternative(M){this._handlers.onAlternativeEnter&&this._handlers.onAlternativeEnter(M),M.elements.forEach(this.visit,this),this._handlers.onAlternativeLeave&&this._handlers.onAlternativeLeave(M)}visitAssertion(M){this._handlers.onAssertionEnter&&this._handlers.onAssertionEnter(M),(M.kind==="lookahead"||M.kind==="lookbehind")&&M.alternatives.forEach(this.visit,this),this._handlers.onAssertionLeave&&this._handlers.onAssertionLeave(M)}visitBackreference(M){this._handlers.onBackreferenceEnter&&this._handlers.onBackreferenceEnter(M),this._handlers.onBackreferenceLeave&&this._handlers.onBackreferenceLeave(M)}visitCapturingGroup(M){this._handlers.onCapturingGroupEnter&&this._handlers.onCapturingGroupEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onCapturingGroupLeave&&this._handlers.onCapturingGroupLeave(M)}visitCharacter(M){this._handlers.onCharacterEnter&&this._handlers.onCharacterEnter(M),this._handlers.onCharacterLeave&&this._handlers.onCharacterLeave(M)}visitCharacterClass(M){this._handlers.onCharacterClassEnter&&this._handlers.onCharacterClassEnter(M),M.elements.forEach(this.visit,this),this._handlers.onCharacterClassLeave&&this._handlers.onCharacterClassLeave(M)}visitCharacterClassRange(M){this._handlers.onCharacterClassRangeEnter&&this._handlers.onCharacterClassRangeEnter(M),this.visitCharacter(M.min),this.visitCharacter(M.max),this._handlers.onCharacterClassRangeLeave&&this._handlers.onCharacterClassRangeLeave(M)}visitCharacterSet(M){this._handlers.onCharacterSetEnter&&this._handlers.onCharacterSetEnter(M),this._handlers.onCharacterSetLeave&&this._handlers.onCharacterSetLeave(M)}visitClassIntersection(M){this._handlers.onClassIntersectionEnter&&this._handlers.onClassIntersectionEnter(M),this.visit(M.left),this.visit(M.right),this._handlers.onClassIntersectionLeave&&this._handlers.onClassIntersectionLeave(M)}visitClassStringDisjunction(M){this._handlers.onClassStringDisjunctionEnter&&this._handlers.onClassStringDisjunctionEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onClassStringDisjunctionLeave&&this._handlers.onClassStringDisjunctionLeave(M)}visitClassSubtraction(M){this._handlers.onClassSubtractionEnter&&this._handlers.onClassSubtractionEnter(M),this.visit(M.left),this.visit(M.right),this._handlers.onClassSubtractionLeave&&this._handlers.onClassSubtractionLeave(M)}visitExpressionCharacterClass(M){this._handlers.onExpressionCharacterClassEnter&&this._handlers.onExpressionCharacterClassEnter(M),this.visit(M.expression),this._handlers.onExpressionCharacterClassLeave&&this._handlers.onExpressionCharacterClassLeave(M)}visitFlags(M){this._handlers.onFlagsEnter&&this._handlers.onFlagsEnter(M),this._handlers.onFlagsLeave&&this._handlers.onFlagsLeave(M)}visitGroup(M){this._handlers.onGroupEnter&&this._handlers.onGroupEnter(M),M.modifiers&&this.visit(M.modifiers),M.alternatives.forEach(this.visit,this),this._handlers.onGroupLeave&&this._handlers.onGroupLeave(M)}visitModifiers(M){this._handlers.onModifiersEnter&&this._handlers.onModifiersEnter(M),M.add&&this.visit(M.add),M.remove&&this.visit(M.remove),this._handlers.onModifiersLeave&&this._handlers.onModifiersLeave(M)}visitModifierFlags(M){this._handlers.onModifierFlagsEnter&&this._handlers.onModifierFlagsEnter(M),this._handlers.onModifierFlagsLeave&&this._handlers.onModifierFlagsLeave(M)}visitPattern(M){this._handlers.onPatternEnter&&this._handlers.onPatternEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onPatternLeave&&this._handlers.onPatternLeave(M)}visitQuantifier(M){this._handlers.onQuantifierEnter&&this._handlers.onQuantifierEnter(M),this.visit(M.element),this._handlers.onQuantifierLeave&&this._handlers.onQuantifierLeave(M)}visitRegExpLiteral(M){this._handlers.onRegExpLiteralEnter&&this._handlers.onRegExpLiteralEnter(M),this.visitPattern(M.pattern),this.visitFlags(M.flags),this._handlers.onRegExpLiteralLeave&&this._handlers.onRegExpLiteralLeave(M)}visitStringAlternative(M){this._handlers.onStringAlternativeEnter&&this._handlers.onStringAlternativeEnter(M),M.elements.forEach(this.visit,this),this._handlers.onStringAlternativeLeave&&this._handlers.onStringAlternativeLeave(M)}}function xt(Ge,M){return new Rr(M).parseLiteral(String(Ge))}function ln(Ge,M){new Fr(M).validateLiteral(Ge)}function qr(Ge,M){new pr(M).visit(Ge)}return lr.AST=a,lr.RegExpParser=Rr,lr.RegExpSyntaxError=$t,lr.RegExpValidator=Fr,lr.parseRegExpLiteral=xt,lr.validateRegExpLiteral=ln,lr.visitRegExpAST=qr,lr}var il,Wy;function cT(){if(Wy)return il;Wy=1;const a=ur().RegExpValidator,e=new class{constructor(){this._source="",this._controlChars=[],this._validator=new a(this)}onPatternEnter(){this._controlChars=[]}onCharacter(n,o,t){t>=0&&t<=31&&(this._source.codePointAt(n)===t||this._source.slice(n,o).startsWith("\\x")||this._source.slice(n,o).startsWith("\\u"))&&this._controlChars.push(`\\x${`0${t.toString(16)}`.slice(-2)}`)}collectControlChars(n,o){const t=typeof o=="string"&&o.includes("u"),u=typeof o=="string"&&o.includes("v");this._controlChars=[],this._source=n;try{this._validator.validatePattern(n,void 0,void 0,{unicode:t,unicodeSets:u})}catch{}return this._controlChars}};return il={meta:{type:"problem",docs:{description:"Disallow control characters in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-control-regex"},schema:[],messages:{unexpected:"Unexpected control character(s) in regular expression: {{controlChars}}."}},create(n){function o(t){if(t.regex)return t.regex;if(typeof t.value=="string"&&(t.parent.type==="NewExpression"||t.parent.type==="CallExpression")&&t.parent.callee.type==="Identifier"&&t.parent.callee.name==="RegExp"&&t.parent.arguments[0]===t){const u=t.value,p=t.parent.arguments.length>1&&t.parent.arguments[1].type==="Literal"&&typeof t.parent.arguments[1].value=="string"?t.parent.arguments[1].value:null;return{pattern:u,flags:p}}return null}return{Literal(t){const u=o(t);if(u){const{pattern:p,flags:c}=u,r=e.collectControlChars(p,c);r.length>0&&n.report({node:t,messageId:"unexpected",data:{controlChars:r.join(", ")}})}}}}},il}var ol,Gy;function fT(){return Gy||(Gy=1,ol={meta:{type:"problem",docs:{description:"Disallow the use of `debugger`",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-debugger"},fixable:null,schema:[],messages:{unexpected:"Unexpected 'debugger' statement."}},create(a){return{DebuggerStatement(e){a.report({node:e,messageId:"unexpected"})}}}}),ol}var ll,zy;function pT(){return zy||(zy=1,ll={meta:{type:"suggestion",docs:{description:"Disallow deleting variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-delete-var"},schema:[],messages:{unexpected:"Variables should not be deleted."}},create(a){return{UnaryExpression(e){e.operator==="delete"&&e.argument.type==="Identifier"&&a.report({node:e,messageId:"unexpected"})}}}}),ll}var ul,Hy;function mT(){return Hy||(Hy=1,ul={meta:{type:"suggestion",docs:{description:"Disallow equal signs explicitly at the beginning of regular expressions",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-div-regex"},fixable:"code",schema:[],messages:{unexpected:"A regular expression literal can be confused with '/='."}},create(a){const e=a.sourceCode;return{Literal(n){const o=e.getFirstToken(n);o.type==="RegularExpression"&&o.value[1]==="="&&a.report({node:n,messageId:"unexpected",fix(t){return t.replaceTextRange([o.range[0]+1,o.range[0]+2],"[=]")}})}}}}),ul}var cl,Ky;function hT(){return Ky||(Ky=1,cl={meta:{type:"problem",docs:{description:"Disallow duplicate arguments in `function` definitions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-args"},schema:[],messages:{unexpected:"Duplicate param '{{name}}'."}},create(a){const e=a.sourceCode;function n(t){return t.type==="Parameter"}function o(t){const u=e.getDeclaredVariables(t);for(let p=0;p<u.length;++p){const c=u[p];c.defs.filter(n).length>=2&&a.report({node:t,messageId:"unexpected",data:{name:c.name}})}}return{FunctionDeclaration:o,FunctionExpression:o}}}),cl}var fl,Xy;function dT(){if(Xy)return fl;Xy=1;const a=Ue();return fl={meta:{type:"problem",dialects:["javascript","typescript"],language:"javascript",docs:{description:"Disallow duplicate class members",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-class-members"},schema:[],messages:{unexpected:"Duplicate name '{{name}}'."}},create(e){let n=[];function o(t,u){const p=n.at(-1),c=`$${t}`;return p[c]||(p[c]={nonStatic:{init:!1,get:!1,set:!1},static:{init:!1,get:!1,set:!1}}),p[c][u?"static":"nonStatic"]}return{Program(){n=[]},ClassBody(){n.push(Object.create(null))},"ClassBody:exit"(){n.pop()},"MethodDefinition, PropertyDefinition"(t){if(t.value&&t.value.type==="TSEmptyBodyFunctionExpression")return;const u=a.getStaticPropertyName(t),p=t.type==="MethodDefinition"?t.kind:"field";if(u===null||p==="constructor")return;const c=o(u,t.static);let r;p==="get"?(r=c.init||c.get,c.get=!0):p==="set"?(r=c.init||c.set,c.set=!0):(r=c.init||c.get||c.set,c.init=!0),r&&e.report({node:t,messageId:"unexpected",data:{name:u}})}}}},fl}var pl,Jy;function gT(){if(Jy)return pl;Jy=1;const a=Ue();function e(u,p,c){return p.every(r=>c.some(m=>u(r,m)))}function n(u,p){return p.type==="LogicalExpression"&&p.operator===u?[...n(u,p.left),...n(u,p.right)]:[p]}const o=n.bind(null,"||"),t=n.bind(null,"&&");return pl={meta:{type:"problem",docs:{description:"Disallow duplicate conditions in if-else-if chains",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-else-if"},schema:[],messages:{unexpected:"This branch can never execute. Its condition is a duplicate or covered by previous conditions in the if-else-if chain."}},create(u){const p=u.sourceCode;function c(m,i){return m.type!==i.type?!1:m.type==="LogicalExpression"&&(m.operator==="||"||m.operator==="&&")&&m.operator===i.operator?c(m.left,i.left)&&c(m.right,i.right)||c(m.left,i.right)&&c(m.right,i.left):a.equalTokens(m,i,p)}const r=e.bind(null,c);return{IfStatement(m){const i=m.test,f=i.type==="LogicalExpression"&&i.operator==="&&"?[i,...t(i)]:[i];let h=m,s=f.map(l=>o(l).map(t));for(;h.parent&&h.parent.type==="IfStatement"&&h.parent.alternate===h;){h=h.parent;const l=o(h.test).map(t);if(s=s.map(g=>g.filter(d=>!l.some(v=>r(v,d)))),s.some(g=>g.length===0)){u.report({node:i,messageId:"unexpected"});break}}}}}},pl}var ml,Yy;function yT(){if(Yy)return ml;Yy=1;const a=Ue(),e=/^(?:init|get)$/u,n=/^(?:init|set)$/u;class o{constructor(u,p){this.upper=u,this.node=p,this.properties=new Map}getPropertyInfo(u){const p=a.getStaticPropertyName(u);return this.properties.has(p)||this.properties.set(p,{get:!1,set:!1}),this.properties.get(p)}isPropertyDefined(u){const p=this.getPropertyInfo(u);return e.test(u.kind)&&p.get||n.test(u.kind)&&p.set}defineProperty(u){const p=this.getPropertyInfo(u);e.test(u.kind)&&(p.get=!0),n.test(u.kind)&&(p.set=!0)}}return ml={meta:{type:"problem",docs:{description:"Disallow duplicate keys in object literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-keys"},schema:[],messages:{unexpected:"Duplicate key '{{name}}'."}},create(t){let u=null;return{ObjectExpression(p){u=new o(u,p)},"ObjectExpression:exit"(){u=u.upper},Property(p){const c=a.getStaticPropertyName(p);p.parent.type==="ObjectExpression"&&c!==null&&(c==="__proto__"&&p.kind==="init"&&!p.computed&&!p.shorthand&&!p.method||(u.isPropertyDefined(p)&&t.report({node:u.node,loc:p.key.loc,messageId:"unexpected",data:{name:c}}),u.defineProperty(p)))}}}},ml}var hl,Qy;function vT(){if(Qy)return hl;Qy=1;const a=Ue();return hl={meta:{type:"problem",docs:{description:"Disallow duplicate case labels",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-duplicate-case"},schema:[],messages:{unexpected:"Duplicate case label."}},create(e){const n=e.sourceCode;function o(t,u){return t.type!==u.type?!1:a.equalTokens(t,u,n)}return{SwitchStatement(t){const u=[];for(const p of t.cases)if(p.test){const c=p.test;u.some(r=>o(r,c))?e.report({node:p,messageId:"unexpected"}):u.push(c)}}}}},hl}var dl,Zy;function ET(){if(Zy)return dl;Zy=1;const a=["ImportSpecifier","ExportSpecifier"],e=["ImportNamespaceSpecifier","ExportNamespaceSpecifier"];function n(i,f){return(f==="named"?a:e).includes(i)}function o(i){if(i.specifiers&&i.specifiers.length>0){const f=i.specifiers,h=f.findIndex(({type:l})=>n(l,"named")||n(l,"namespace")),s=h>-1?h:0;return f[s].type}return i.type==="ExportAllDeclaration"?i.exported?"ExportNamespaceSpecifier":"ExportAll":"SideEffectImport"}function t(i,f){const h=o(i),s=o(f);if((i.importKind==="type"||i.exportKind==="type")&&(f.importKind==="type"||f.exportKind==="type")){const l=h==="ImportDefaultSpecifier",g=s==="ImportDefaultSpecifier",d=n(h,"named"),v=n(s,"named");if(l&&v||g&&d)return!1}return!(h==="ExportAll"&&s!=="ExportAll"&&s!=="SideEffectImport"||h!=="ExportAll"&&h!=="SideEffectImport"&&s==="ExportAll"||n(h,"namespace")&&n(s,"named")||n(s,"namespace")&&n(h,"named"))}function u(i,f,h){let s=0;for(;s<f.length;){const l=f[s];if(h){const g=i.importKind==="type"||i.exportKind==="type",d=l.importKind==="type"||l.exportKind==="type";if(g!==d){s++;continue}}if(t(i,l))return!0;s++}return!1}function p(i,f){return i.filter(({declarationType:h})=>h===f).map(({node:h})=>h)}function c(i){return i&&i.source&&i.source.value?i.source.value.trim():""}function r(i,f,h,s,l,g){const d=c(f);if(h.has(d)){const v=h.get(d),S=[],b=p(v,"import");let w;l&&(w=p(v,"export")),s==="import"?(u(f,b,g)&&S.push("import"),l&&u(f,w,g)&&S.push("importAs")):s==="export"&&(u(f,w,g)&&S.push("export"),u(f,b,g)&&S.push("exportAs")),S.forEach(C=>i.report({node:f,messageId:C,data:{module:d}}))}}function m(i,f,h,s,l){return function(g){const d=c(g);if(d){r(i,g,f,h,s,l);const v={node:g,declarationType:h};let S=[v];f.has(d)&&(S=[...f.get(d),v]),f.set(d,S)}}}return dl={meta:{dialects:["javascript","typescript"],language:"javascript",type:"problem",defaultOptions:[{includeExports:!1,allowSeparateTypeImports:!1}],docs:{description:"Disallow duplicate module imports",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-duplicate-imports"},schema:[{type:"object",properties:{includeExports:{type:"boolean"},allowSeparateTypeImports:{type:"boolean"}},additionalProperties:!1}],messages:{import:"'{{module}}' import is duplicated.",importAs:"'{{module}}' import is duplicated as export.",export:"'{{module}}' export is duplicated.",exportAs:"'{{module}}' export is duplicated as import."}},create(i){const[{includeExports:f,allowSeparateTypeImports:h}]=i.options,s=new Map,l={ImportDeclaration:m(i,s,"import",f,h)};return f&&(l.ExportNamedDeclaration=m(i,s,"export",f,h),l.ExportAllDeclaration=m(i,s,"export",f,h)),l}},dl}var gl,ev;function nn(){if(ev)return gl;ev=1;const a=Ue();class e{constructor(o,t){this.fixer=o,this.sourceCode=t,this.retainedRange=null}retainRange(o){return this.retainedRange=o,this}retainEnclosingFunction(o){const t=a.getUpperFunction(o);return this.retainRange(t?t.range:this.sourceCode.ast.range)}retainSurroundingTokens(o){const t=this.sourceCode.getTokenBefore(o)||o,u=this.sourceCode.getTokenAfter(o)||o;return this.retainRange([t.range[0],u.range[1]])}replaceTextRange(o,t){let u;return this.retainedRange?u=[Math.min(this.retainedRange[0],o[0]),Math.max(this.retainedRange[1],o[1])]:u=o,this.fixer.replaceTextRange(u,this.sourceCode.text.slice(u[0],o[0])+t+this.sourceCode.text.slice(o[1],u[1]))}remove(o){return this.replaceTextRange(o.range,"")}}return gl=e,gl}var yl,tv;function ST(){if(tv)return yl;tv=1;const a=Ue(),e=nn();return yl={meta:{type:"suggestion",defaultOptions:[{allowElseIf:!0}],docs:{description:"Disallow `else` blocks after `return` statements in `if` statements",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-else-return"},schema:[{type:"object",properties:{allowElseIf:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{unexpected:"Unnecessary 'else' after 'return'."}},create(n){const[{allowElseIf:o}]=n.options,t=n.sourceCode;function u(d,v){if(d.length===0)return!0;const S=v.variableScope;if(v.variables.filter(({defs:C})=>C.length>0).some(({name:C})=>d.includes(C))||v!==S&&v.upper.type==="catch"&&v.upper.variables.some(({name:C})=>d.includes(C))||v.variables.filter(({defs:C,references:E})=>C.length===0&&E.length>0).some(({name:C})=>d.includes(C))||v.through.some(C=>d.includes(C.identifier.name)))return!1;if(v!==S){const C=v.block.range;if(S.variables.filter(({name:T})=>d.includes(T)).some(T=>T.defs.some(({node:{range:x}})=>C[0]<=x[0]&&x[1]<=C[1])))return!1}return!0}function p(d,v){if(d.type==="FunctionDeclaration")return!1;if(d.type!=="BlockStatement")return!0;const S=v.childScopes.find(({block:w})=>w===d);if(!S)return!0;const b=S.variables.map(({name:w})=>w);return u(b,v)}function c(d){const v=t.getScope(d.parent);n.report({node:d,messageId:"unexpected",fix(S){if(!p(d,v))return null;const b=t.getFirstToken(d),w=t.getTokenBefore(b),C=t.getText(d),E=t.getTokenBefore(w);let T,x;b.type==="Punctuator"&&b.value==="{"?x=t.getTokenAfter(b):x=b;const A=d.parent.consequent.type!=="BlockStatement"&&E.value!==";",k=/^[([/+`-]/u.test(x.value);if(A&&k)return null;const B=t.getLastToken(d),R=t.getTokenBefore(B);if(R.value!==";"){const F=t.getTokenAfter(B),P=F&&/^[([/+`-]/u.test(F.value),N=F&&F.loc.start.line===R.loc.start.line;if(P||N&&F.value!=="}")return null}return b.type==="Punctuator"&&b.value==="{"?T=C.slice(1,-1):T=C,new e(S,t).retainEnclosingFunction(d).replaceTextRange([w.range[0],d.range[1]],T)}})}function r(d){return d.type==="ReturnStatement"}function m(d){if(d.type==="BlockStatement"){const v=d.body,S=v.at(-1);return S&&r(S)}return r(d)}function i(d){return d.alternate&&d.consequent}function f(d){return d.type==="IfStatement"&&i(d)&&m(d.alternate)&&m(d.consequent)}function h(d){return r(d)||f(d)}function s(d){return d.type==="BlockStatement"?d.body.some(h):h(d)}function l(d){const v=d.parent;if(!a.STATEMENT_LIST_PARENTS.has(v.type))return;const S=[];let b;for(let w=d;w.type==="IfStatement";w=w.alternate){if(!w.alternate)return;S.push(w.consequent),b=w.alternate}S.every(s)&&c(b)}function g(d){const v=d.parent;if(!a.STATEMENT_LIST_PARENTS.has(v.type))return;const S=d.alternate;S&&s(d.consequent)&&c(S)}return{"IfStatement:exit":o?l:g}}},yl}var vl,rv;function bT(){if(rv)return vl;rv=1;const a=Ue();return vl={meta:{hasSuggestions:!0,type:"suggestion",defaultOptions:[{allowEmptyCatch:!1}],docs:{description:"Disallow empty block statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty"},schema:[{type:"object",properties:{allowEmptyCatch:{type:"boolean"}},additionalProperties:!1}],messages:{unexpected:"Empty {{type}} statement.",suggestComment:"Add comment inside empty {{type}} statement."}},create(e){const[{allowEmptyCatch:n}]=e.options,o=e.sourceCode;return{BlockStatement(t){t.body.length===0&&(a.isFunction(t.parent)||n&&t.parent.type==="CatchClause"||o.getCommentsInside(t).length>0||e.report({node:t,messageId:"unexpected",data:{type:"block"},suggest:[{messageId:"suggestComment",data:{type:"block"},fix(u){const p=[t.range[0]+1,t.range[1]-1];return u.replaceTextRange(p," /* empty */ ")}}]}))},SwitchStatement(t){(typeof t.cases>"u"||t.cases.length===0)&&e.report({node:t,messageId:"unexpected",data:{type:"switch"}})}}}},vl}var El,nv;function xT(){if(nv)return El;nv=1;const{RegExpParser:a,visitRegExpAST:e}=ur(),n=new a,o=/\[\]/u;return El={meta:{type:"problem",docs:{description:"Disallow empty character classes in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-character-class"},schema:[],messages:{unexpected:"Empty class."}},create(t){return{"Literal[regex]"(u){const{pattern:p,flags:c}=u.regex;if(!o.test(p))return;let r;try{r=n.parsePattern(p,0,p.length,{unicode:c.includes("u"),unicodeSets:c.includes("v")})}catch{return}e(r,{onCharacterClassEnter(m){!m.negate&&m.elements.length===0&&t.report({node:u,messageId:"unexpected"})}})}}}},El}var Sl,sv;function CT(){if(sv)return Sl;sv=1;const a=Ue(),e=Object.freeze(["functions","arrowFunctions","generatorFunctions","methods","generatorMethods","getters","setters","constructors","asyncFunctions","asyncMethods","privateConstructors","protectedConstructors","decoratedFunctions","overrideMethods"]);function n(t){const u=t.parent;let p;if(t.type==="ArrowFunctionExpression")return"arrowFunctions";if(u.type==="Property"){if(u.kind==="get")return"getters";if(u.kind==="set")return"setters";p=u.method?"methods":"functions"}else if(u.type==="MethodDefinition"){if(u.kind==="get")return"getters";if(u.kind==="set")return"setters";if(u.kind==="constructor")return"constructors";p="methods"}else p="functions";let c;if(t.generator)c="generator";else if(t.async)c="async";else return p;return c+p[0].toUpperCase()+p.slice(1)}function o(t){return t.params.some(u=>u.type==="TSParameterProperty")}return Sl={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",defaultOptions:[{allow:[]}],docs:{description:"Disallow empty functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-empty-function"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:e},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"Unexpected empty {{name}}."}},create(t){const[{allow:u}]=t.options,p=t.sourceCode;function c(m){const i=n(m);return!!(u.includes(i)||i==="constructors"&&(m.parent.accessibility==="private"&&u.includes("privateConstructors")||m.parent.accessibility==="protected"&&u.includes("protectedConstructors")||o(m))||/(g|s)etters|methods$/iu.test(i)&&(m.parent.decorators?.length&&u.includes("decoratedFunctions")||m.parent.override&&u.includes("overrideMethods")))}function r(m){const i=a.getFunctionNameWithKind(m),f=p.getTokens(m.body,{includeComments:!0,filter:a.isCommentToken});!c(m)&&m.body.type==="BlockStatement"&&m.body.body.length===0&&f.length===0&&t.report({node:m,loc:m.body.loc,messageId:"unexpected",data:{name:i}})}return{ArrowFunctionExpression:r,FunctionDeclaration:r,FunctionExpression:r}}},Sl}var bl,av;function wT(){if(av)return bl;av=1;const a=Ue();return bl={meta:{type:"problem",defaultOptions:[{allowObjectPatternsAsParameters:!1}],docs:{description:"Disallow empty destructuring patterns",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-pattern"},schema:[{type:"object",properties:{allowObjectPatternsAsParameters:{type:"boolean"}},additionalProperties:!1}],messages:{unexpected:"Unexpected empty {{type}} pattern."}},create(e){const[{allowObjectPatternsAsParameters:n}]=e.options;return{ObjectPattern(o){o.properties.length>0||n&&(a.isFunction(o.parent)||o.parent.type==="AssignmentPattern"&&a.isFunction(o.parent.parent)&&o.parent.right.type==="ObjectExpression"&&o.parent.right.properties.length===0)||e.report({node:o,messageId:"unexpected",data:{type:"object"}})},ArrayPattern(o){o.elements.length===0&&e.report({node:o,messageId:"unexpected",data:{type:"array"}})}}}},bl}var xl,iv;function AT(){return iv||(iv=1,xl={meta:{type:"suggestion",docs:{description:"Disallow empty static blocks",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-static-block"},schema:[],messages:{unexpected:"Unexpected empty static block."}},create(a){const e=a.sourceCode;return{StaticBlock(n){if(n.body.length===0){const o=e.getLastToken(n);e.getCommentsBefore(o).length===0&&a.report({node:n,messageId:"unexpected"})}}}}}),xl}var Cl,ov;function TT(){return ov||(ov=1,Cl={meta:{type:"suggestion",docs:{description:"Disallow `null` comparisons without type-checking operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-eq-null"},schema:[],messages:{unexpected:"Use '===' to compare with null."}},create(a){return{BinaryExpression(e){const n=e.operator==="=="||e.operator==="!=";(e.right.type==="Literal"&&e.right.raw==="null"&&n||e.left.type==="Literal"&&e.left.raw==="null"&&n)&&a.report({node:e,messageId:"unexpected"})}}}}),Cl}var wl,lv;function kT(){if(lv)return wl;lv=1;const a=Ue(),e=Object.freeze(["global","window","globalThis"]);function n(o,t){return a.isSpecificMemberAccess(o,null,t)}return wl={meta:{type:"suggestion",defaultOptions:[{allowIndirect:!1}],docs:{description:"Disallow the use of `eval()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-eval"},schema:[{type:"object",properties:{allowIndirect:{type:"boolean"}},additionalProperties:!1}],messages:{unexpected:"eval can be harmful."}},create(o){const[{allowIndirect:t}]=o.options,u=o.sourceCode;let p=null;function c(h){const s=u.getScope(h).isStrict;p={upper:p,node:h,strict:s,isTopLevelOfScript:!1,defaultThis:!1,initialized:s}}function r(){p=p.upper}function m(h){const s=h.parent,l=h.type==="MemberExpression"?h.property:h,g=s.type==="CallExpression"&&s.callee===h?s:h;o.report({node:g,loc:l.loc,messageId:"unexpected"})}function i(h){for(let s=0;s<e.length;++s){const l=e[s],g=a.getVariableByName(h,l);if(!g)continue;const d=g.references;for(let v=0;v<d.length;++v){let b=d[v].identifier.parent;for(;n(b,l);)b=b.parent;n(b,"eval")&&m(b)}}}function f(h){const s=a.getVariableByName(h,"eval");if(!s)return;const l=s.references;for(let g=0;g<l.length;++g){const v=l[g].identifier;v.name==="eval"&&!a.isCallee(v)&&m(v)}}return t?{"CallExpression:exit"(h){const s=h.callee;!h.optional&&a.isSpecificId(s,"eval")&&m(s)}}:{"CallExpression:exit"(h){const s=h.callee;a.isSpecificId(s,"eval")&&m(s)},Program(h){const s=u.getScope(h),l=o.parserOptions.ecmaFeatures||{},g=s.isStrict||h.sourceType==="module"||l.globalReturn&&s.childScopes[0].isStrict,d=h.sourceType!=="module"&&!l.globalReturn;p={upper:null,node:h,strict:g,isTopLevelOfScript:d,defaultThis:!0,initialized:!0}},"Program:exit"(h){const s=u.getScope(h);r(),f(s),i(s)},FunctionDeclaration:c,"FunctionDeclaration:exit":r,FunctionExpression:c,"FunctionExpression:exit":r,"PropertyDefinition > *.value":c,"PropertyDefinition > *.value:exit":r,StaticBlock:c,"StaticBlock:exit":r,ThisExpression(h){n(h.parent,"eval")&&(p.initialized||(p.initialized=!0,p.defaultThis=a.isDefaultThisBinding(p.node,u)),(p.isTopLevelOfScript||!p.strict&&p.defaultThis)&&m(h.parent))}}}},wl}var Al,uv;function DT(){if(uv)return Al;uv=1;const a=Ue();return Al={meta:{type:"problem",docs:{description:"Disallow reassigning exceptions in `catch` clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-ex-assign"},schema:[],messages:{unexpected:"Do not assign to the exception parameter."}},create(e){const n=e.sourceCode;function o(t){a.getModifyingReferences(t.references).forEach(u=>{e.report({node:u.identifier,messageId:"unexpected"})})}return{CatchClause(t){n.getDeclaredVariables(t).forEach(o)}}}},Al}var Tl,cv;function IT(){if(cv)return Tl;cv=1;const a=Ue();return Tl={meta:{type:"suggestion",defaultOptions:[{exceptions:[]}],docs:{description:"Disallow extending native types",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extend-native"},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"{{builtin}} prototype is read only, properties should not be added."}},create(e){const n=e.sourceCode,o=new Set(e.options[0].exceptions),t=new Set(Object.keys(a.ECMASCRIPT_GLOBALS).filter(i=>i[0].toUpperCase()===i[0]).filter(i=>!o.has(i)));function u(i,f){e.report({node:i,messageId:"unexpected",data:{builtin:f}})}function p(i){return!!(i&&i.parent&&i.parent.type==="MemberExpression"&&i.parent.object===i&&a.getStaticPropertyName(i.parent)==="prototype")}function c(i){return i.parent.type==="MemberExpression"&&i.parent.object===i&&i.parent.parent.type==="AssignmentExpression"&&i.parent.parent.left===i.parent}function r(i){return i.parent.type==="CallExpression"&&i.parent.arguments[0]===i&&a.isSpecificMemberAccess(i.parent.callee,"Object",/^definePropert(?:y|ies)$/u)}function m(i){if(!p(i))return;const f=i.parent.parent.type==="ChainExpression"?i.parent.parent:i.parent;c(f)?u(f.parent.parent,i.name):r(f)&&u(f.parent,i.name)}return{"Program:exit"(i){const f=n.getScope(i);t.forEach(h=>{const s=f.set.get(h);s&&s.references&&s.references.map(l=>l.identifier).forEach(m)})}}}},Tl}var kl,fv;function PT(){if(fv)return kl;fv=1;const a=Ue(),e=new Set(["Literal","Identifier","ThisExpression","FunctionExpression"]);return kl={meta:{type:"suggestion",docs:{description:"Disallow unnecessary calls to `.bind()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extra-bind"},schema:[],fixable:"code",messages:{unexpected:"The function binding is unnecessary."}},create(n){const o=n.sourceCode;let t=null;function u(h){return e.has(h.type)}function p(h){const s=h.parent,l=s.parent.type==="ChainExpression"?s.parent.parent:s.parent;n.report({node:l,messageId:"unexpected",loc:s.property.loc,fix(g){if(!u(l.arguments[0]))return null;const d=[[o.getTokenAfter(s.object,a.isNotClosingParenToken),o.getLastToken(s)],[o.getTokenAfter(s,a.isNotClosingParenToken),o.getLastToken(l)]],v=d[0][0],S=d[1][1];return o.commentsExistBetween(v,S)?null:d.map(([b,w])=>g.removeRange([b.range[0],w.range[1]]))}})}function c(h){if(!a.isSpecificMemberAccess(h.parent,null,"bind"))return!1;const s=h.parent.parent.type==="ChainExpression"?h.parent.parent:h.parent;return s.parent.type==="CallExpression"&&s.parent.callee===s&&s.parent.arguments.length===1&&s.parent.arguments[0].type!=="SpreadElement"}function r(h){t={isBound:c(h),thisFound:!1,upper:t}}function m(h){t.isBound&&!t.thisFound&&p(h),t=t.upper}function i(h){c(h)&&p(h)}function f(){t&&(t.thisFound=!0)}return{"ArrowFunctionExpression:exit":i,FunctionDeclaration:r,"FunctionDeclaration:exit":m,FunctionExpression:r,"FunctionExpression:exit":m,ThisExpression:f}}},kl}var Dl,pv;function FT(){if(pv)return Dl;pv=1;const a=Ue(),e=qt(),n=a.getPrecedence;return Dl={meta:{type:"suggestion",defaultOptions:[{}],docs:{description:"Disallow unnecessary boolean casts",recommended:!0,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-extra-boolean-cast"},schema:[{anyOf:[{type:"object",properties:{enforceForInnerExpressions:{type:"boolean"}},additionalProperties:!1},{type:"object",properties:{enforceForLogicalOperands:{type:"boolean"}},additionalProperties:!1}]}],fixable:"code",messages:{unexpectedCall:"Redundant Boolean call.",unexpectedNegation:"Redundant double negation."}},create(o){const t=o.sourceCode,[{enforceForLogicalOperands:u,enforceForInnerExpressions:p}]=o.options,c=new Set(["IfStatement","DoWhileStatement","WhileStatement","ConditionalExpression","ForStatement"]);function r(l){return(l.type==="CallExpression"||l.type==="NewExpression")&&l.callee.type==="Identifier"&&l.callee.name==="Boolean"}function m(l){return r(l.parent)&&l===l.parent.arguments[0]||c.has(l.parent.type)&&l===l.parent.test||l.parent.type==="UnaryExpression"&&l.parent.operator==="!"}function i(l){return l.parent.type==="ChainExpression"||(u||p)&&l.parent.type==="LogicalExpression"&&(l.parent.operator==="||"||l.parent.operator==="&&"||p&&l.parent.operator==="??"&&l.parent.right===l)||p&&(l.parent.type==="ConditionalExpression"&&(l.parent.consequent===l||l.parent.alternate===l)||l.parent.type==="SequenceExpression"&&l.parent.expressions.at(-1)===l)?i(l.parent):m(l)}function f(l){return!!t.getCommentsInside(l).length}function h(l){return e.isParenthesized(1,l,t)}function s(l,g){if(l.parent.type==="ChainExpression")return s(l.parent,g);if(h(l))return!1;const d=l.parent;switch(d.type){case"CallExpression":case"NewExpression":return g.type==="SequenceExpression";case"IfStatement":case"DoWhileStatement":case"WhileStatement":case"ForStatement":case"SequenceExpression":return!1;case"ConditionalExpression":if(l===d.test)return n(g)<=n(d);if(l===d.consequent||l===d.alternate)return n(g)<n({type:"AssignmentExpression"});throw new Error("Ternary child must be test, consequent, or alternate.");case"UnaryExpression":return n(g)<n(d);case"LogicalExpression":return a.isMixedLogicalAndCoalesceExpressions(g,d)?!0:l===d.left?n(g)<n(d):n(g)<=n(d);default:throw new Error(`Unexpected parent type: ${d.type}`)}}return{UnaryExpression(l){const g=l.parent;l.operator!=="!"||g.type!=="UnaryExpression"||g.operator!=="!"||i(g)&&o.report({node:g,messageId:"unexpectedNegation",fix(d){if(f(g))return null;if(s(g,l.argument))return d.replaceText(g,`(${t.getText(l.argument)})`);let v="";const S=t.getTokenBefore(g),b=t.getFirstToken(l.argument);return S&&S.range[1]===g.range[0]&&!a.canTokensBeAdjacent(S,b)&&(v=" "),d.replaceText(g,v+t.getText(l.argument))}})},CallExpression(l){l.callee.type!=="Identifier"||l.callee.name!=="Boolean"||i(l)&&o.report({node:l,messageId:"unexpectedCall",fix(g){const d=l.parent;if(l.arguments.length===0){if(d.type==="UnaryExpression"&&d.operator==="!"){if(f(d))return null;const v="true";let S="";const b=t.getTokenBefore(d);return b&&b.range[1]===d.range[0]&&!a.canTokensBeAdjacent(b,v)&&(S=" "),g.replaceText(d,S+v)}return f(l)?null:g.replaceText(l,"false")}if(l.arguments.length===1){const v=l.arguments[0];return v.type==="SpreadElement"||f(l)?null:s(l,v)?g.replaceText(l,`(${t.getText(v)})`):g.replaceText(l,t.getText(v))}return null}})}}}},Dl}var Il,mv;function RT(){if(mv)return Il;mv=1;const a=Ue();return Il={meta:{type:"suggestion",docs:{description:"Disallow unnecessary labels",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-extra-label"},schema:[],fixable:"code",messages:{unexpected:"This label '{{name}}' is unnecessary."}},create(e){const n=e.sourceCode;let o=null;function t(m){o={label:m.parent.type==="LabeledStatement"?m.parent.label:null,breakable:!0,upper:o}}function u(){o=o.upper}function p(m){a.isBreakableStatement(m.body)||(o={label:m.label,breakable:!1,upper:o})}function c(m){a.isBreakableStatement(m.body)||(o=o.upper)}function r(m){if(!m.label)return;const i=m.label;for(let f=o;f!==null;f=f.upper)if(f.breakable||f.label&&f.label.name===i.name){f.breakable&&f.label&&f.label.name===i.name&&e.report({node:i,messageId:"unexpected",data:i,fix(h){const s=n.getFirstToken(m);return n.commentsExistBetween(s,i)?null:h.removeRange([s.range[1],i.range[1]])}});return}}return{WhileStatement:t,"WhileStatement:exit":u,DoWhileStatement:t,"DoWhileStatement:exit":u,ForStatement:t,"ForStatement:exit":u,ForInStatement:t,"ForInStatement:exit":u,ForOfStatement:t,"ForOfStatement:exit":u,SwitchStatement:t,"SwitchStatement:exit":u,LabeledStatement:p,"LabeledStatement:exit":c,BreakStatement:r,ContinueStatement:r}}},Il}var Pl,hv;function _T(){if(hv)return Pl;hv=1;const{isParenthesized:a}=qt(),e=Ue();return Pl={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-extra-parens",url:"https://eslint.style/rules/no-extra-parens"}}]},type:"layout",docs:{description:"Disallow unnecessary parentheses",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extra-parens"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["functions"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["all"]},{type:"object",properties:{conditionalAssign:{type:"boolean"},ternaryOperandBinaryExpressions:{type:"boolean"},nestedBinaryExpressions:{type:"boolean"},returnAssign:{type:"boolean"},ignoreJSX:{enum:["none","all","single-line","multi-line"]},enforceForArrowConditionals:{type:"boolean"},enforceForSequenceExpressions:{type:"boolean"},enforceForNewInMemberExpressions:{type:"boolean"},enforceForFunctionPrototypeMethods:{type:"boolean"},allowParensAfterCommentPattern:{type:"string"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{unexpected:"Unnecessary parentheses around expression."}},create(n){const o=n.sourceCode,t=new WeakSet,u=e.getPrecedence,p=n.options[0]!=="functions",c=p&&n.options[1]&&n.options[1].conditionalAssign===!1,r=p&&n.options[1]&&n.options[1].ternaryOperandBinaryExpressions===!1,m=p&&n.options[1]&&n.options[1].nestedBinaryExpressions===!1,i=p&&n.options[1]&&n.options[1].returnAssign===!1,f=p&&n.options[1]&&n.options[1].ignoreJSX,h=p&&n.options[1]&&n.options[1].enforceForArrowConditionals===!1,s=p&&n.options[1]&&n.options[1].enforceForSequenceExpressions===!1,l=p&&n.options[1]&&n.options[1].enforceForNewInMemberExpressions===!1,g=p&&n.options[1]&&n.options[1].enforceForFunctionPrototypeMethods===!1,d=p&&n.options[1]&&n.options[1].allowParensAfterCommentPattern,v=u({type:"AssignmentExpression"}),S=u({type:"UpdateExpression"});let b;function w($){const ie=e.skipChainExpression($);if(ie.type!=="CallExpression")return!1;const Te=e.skipChainExpression(ie.callee);return Te.type==="MemberExpression"&&Te.object.type==="FunctionExpression"&&["call","apply"].includes(e.getStaticPropertyName(Te))}function C($){if($.type==="JSXElement"||$.type==="JSXFragment"){const ie=$.loc.start.line===$.loc.end.line;switch(f){case"all":return!1;case"multi-line":return ie;case"single-line":return!ie}}return $.type==="SequenceExpression"&&s||w($)&&g?!1:p||$.type==="FunctionExpression"||$.type==="ArrowFunctionExpression"}function E($){return a(1,$,o)}function T($){return a(2,$,o)}function x($){return C($)&&E($)}function A($){return C($)&&T($)}function k($,ie){return!!(C($)&&E($)&&(u($)>=ie||T($)))}function B($){return c&&$.test.type==="AssignmentExpression"}function R($){for(let ie=$;ie;ie=ie.parent)if(ie.type==="ReturnStatement"||ie.type==="ArrowFunctionExpression"&&ie.body.type!=="BlockStatement")return!0;return!1}function F($){const ie=o.getLastToken($),Te=o.getTokenBefore(ie);return $.arguments.length>0||e.isOpeningParenToken(Te)&&e.isClosingParenToken(ie)&&$.callee.range[1]<$.range[1]}function P($){return!!($.type==="AssignmentExpression"||$.type==="ConditionalExpression"&&($.consequent.type==="AssignmentExpression"||$.alternate.type==="AssignmentExpression")||$.left&&$.left.type==="AssignmentExpression"||$.right&&$.right.type==="AssignmentExpression")}function N($){return!i||!R($)?!1:$.type==="ReturnStatement"?$.argument&&P($.argument):$.type==="ArrowFunctionExpression"&&$.body.type!=="BlockStatement"?P($.body):P($)}function j($,ie){return $.loc.end.line===ie.loc.start.line?x(ie):A(ie)}function V($){const ie=o.getTokenBefore($),Te=o.getTokenBefore(ie,{includeComments:!0}),Ne=o.getTokenAfter(ie,{includeComments:!0});return Te&&Te.range[1]===ie.range[0]&&ie.range[1]===Ne.range[0]&&!e.canTokensBeAdjacent(Te,Ne)}function O($){const ie=o.getTokensAfter($,{count:2}),Te=ie[0],Ne=ie[1],Le=o.getLastToken($);return Te&&Ne&&!o.isSpaceBetweenTokens(Te,Ne)&&!e.canTokensBeAdjacent(Le,Ne)}function G($){const ie=e.skipChainExpression($);return ie.type==="CallExpression"&&ie.callee.type==="FunctionExpression"}function L($){return $&&($.type==="Identifier"||$.type==="MemberExpression")}function K($){return $.type!=="Literal"||typeof $.value!="string"||T($)?!0:!e.isTopLevelExpressionStatement($.parent)}function H($){const ie=o.getTokenBefore($),Te=o.getTokenAfter($);if(!T($)){if(t.has(o.getFirstToken($))||G($)&&!E($.callee))return;if(d){const Le=o.getCommentsBefore(ie),U=Le.length,Qe=new RegExp(d,"u");if(U>0&&Qe.test(Le[U-1].value))return}}function Ne(){n.report({node:$,loc:ie.loc,messageId:"unexpected",fix:K($)?Le=>{const U=o.text.slice(ie.range[1],Te.range[0]);return Le.replaceTextRange([ie.range[0],Te.range[1]],(V($)?" ":"")+U+(O($)?" ":""))}:null})}if(b){b.reports.push({node:$,finishReport:Ne});return}Ne()}function ae($){k($.argument,u($))&&H($.argument)}function re($){let ie=$.object,Te=$.object.type;for(;Te==="MemberExpression";)ie=ie.object,Te=ie.type;return Te==="CallExpression"}function De($){const ie=$.callee;k(ie,u($))&&(A(ie)||!(G($)||ie.type==="NewExpression"&&!F(ie)&&!($.type==="NewExpression"&&!F($))||$.type==="NewExpression"&&ie.type==="MemberExpression"&&re(ie)||!$.optional&&ie.type==="ChainExpression"))&&H($.callee),$.arguments.filter(Te=>k(Te,v)).forEach(H)}function Y($){const ie=u($),Te=u($.left),Ne=u($.right),Le=$.operator==="**",U=m&&($.left.type==="BinaryExpression"||$.left.type==="LogicalExpression"),Qe=m&&($.right.type==="BinaryExpression"||$.right.type==="LogicalExpression");!U&&x($.left)&&(!(["AwaitExpression","UnaryExpression"].includes($.left.type)&&Le)&&!e.isMixedLogicalAndCoalesceExpressions($.left,$)&&(Te>ie||Te===ie&&!Le)||T($.left))&&H($.left),!Qe&&x($.right)&&(!e.isMixedLogicalAndCoalesceExpressions($.right,$)&&(Ne>ie||Ne===ie&&Le)||T($.right))&&H($.right)}function I($){if(!$.superClass)return;(u($.superClass)>S?x($.superClass):A($.superClass))&&H($.superClass)}function W($){k($.argument,v)&&H($.argument)}function ue($){const ie=E($)?o.getTokenBefore($):o.getFirstToken($),Te=o.getTokenAfter(ie,e.isNotOpeningParenToken),Ne=Te?o.getTokenAfter(Te):null,Le=Te?o.getTokenAfter(Te,e.isNotClosingParenToken):null;e.isOpeningParenToken(ie)&&(e.isOpeningBraceToken(Te)||Te.type==="Keyword"&&(Te.value==="function"||Te.value==="class"||Te.value==="let"&&Le&&(e.isOpeningBracketToken(Le)||Le.type==="Identifier"))||Te&&Te.type==="Identifier"&&Te.value==="async"&&Ne&&Ne.type==="Keyword"&&Ne.value==="function")&&t.add(Te),($.parent.type==="ExportDefaultDeclaration"?k($,v):x($))&&H($)}function oe($,ie){const Te=[$];let Ne=$;for(;Ne!==ie;){if(Ne=Ne.parent,Ne===null)throw new Error("Nodes are not in the ancestor-descendant relationship.");Te.push(Ne)}return Te}function ne($,ie){return oe(ie,$).reverse()}function he($,ie){switch($.type){case"ArrayExpression":case"ArrayPattern":case"BlockStatement":case"ObjectExpression":case"ObjectPattern":case"TemplateLiteral":return!0;case"ArrowFunctionExpression":case"FunctionExpression":return $.params.includes(ie);case"CallExpression":case"NewExpression":return $.arguments.includes(ie);case"MemberExpression":return $.computed&&$.property===ie;case"ConditionalExpression":return $.consequent===ie;default:return!1}}function ye(){b={upper:b,inExpressionNodes:[],reports:[]}}function ge(){const{upper:$,inExpressionNodes:ie,reports:Te}=b;$?($.inExpressionNodes.push(...ie),$.reports.push(...Te)):Te.forEach(({finishReport:Ne})=>Ne()),b=$}function Ce($){return b.reports.some(ie=>ie.node===$)}function z($){b.reports=b.reports.filter(ie=>ie.node!==$)}function Q($){return $.type==="MemberExpression"?$.parent.type==="NewExpression"&&$.parent.callee===$?!0:$.parent.object===$&&Q($.parent):!1}function Re({left:$,operator:ie,right:Te}){if($.type==="Identifier"&&["=","&&=","||=","??="].includes(ie)){const Ne=Te.type;if(Ne==="ArrowFunctionExpression"||(Ne==="FunctionExpression"||Ne==="ClassExpression")&&!Te.id)return!0}return!1}return{ArrayExpression($){$.elements.filter(ie=>ie&&k(ie,v)).forEach(H)},ArrayPattern($){$.elements.filter(ie=>L(ie)&&x(ie)).forEach(H)},ArrowFunctionExpression($){if(!N($)&&!($.body.type==="ConditionalExpression"&&h)&&$.body.type!=="BlockStatement"){const ie=o.getFirstToken($.body,e.isNotOpeningParenToken),Te=o.getTokenBefore(ie);e.isOpeningParenToken(Te)&&e.isOpeningBraceToken(ie)&&t.add(ie),k($.body,v)&&H($.body)}},AssignmentExpression($){L($.left)&&x($.left)&&(!Re($)||T($.left))&&H($.left),!N($)&&k($.right,u($))&&H($.right)},BinaryExpression($){b&&$.operator==="in"&&b.inExpressionNodes.push($),Y($)},CallExpression:De,ConditionalExpression($){if(N($))return;const ie=new Set(["BinaryExpression","LogicalExpression"]);!(r&&ie.has($.test.type))&&!B($)&&k($.test,u({type:"LogicalExpression",operator:"||"}))&&H($.test),!(r&&ie.has($.consequent.type))&&k($.consequent,v)&&H($.consequent),!(r&&ie.has($.alternate.type))&&k($.alternate,v)&&H($.alternate)},DoWhileStatement($){x($.test)&&!B($)&&H($.test)},ExportDefaultDeclaration:$=>ue($.declaration),ExpressionStatement:$=>ue($.expression),ForInStatement($){if($.left.type!=="VariableDeclaration"){const ie=o.getFirstToken($.left,e.isNotOpeningParenToken);ie.value==="let"&&e.isOpeningBracketToken(o.getTokenAfter(ie,e.isNotClosingParenToken))&&t.add(ie)}x($.left)&&H($.left),x($.right)&&H($.right)},ForOfStatement($){if($.left.type!=="VariableDeclaration"){const ie=o.getFirstToken($.left,e.isNotOpeningParenToken);ie.value==="let"&&t.add(ie)}x($.left)&&H($.left),k($.right,v)&&H($.right)},ForStatement($){if($.test&&x($.test)&&!B($)&&H($.test),$.update&&x($.update)&&H($.update),$.init){if($.init.type!=="VariableDeclaration"){const ie=o.getFirstToken($.init,e.isNotOpeningParenToken);ie.value==="let"&&e.isOpeningBracketToken(o.getTokenAfter(ie,e.isNotClosingParenToken))&&t.add(ie)}ye(),x($.init)&&H($.init)}},"ForStatement > *.init:exit"($){b.reports.length&&b.inExpressionNodes.forEach(ie=>{const Te=ne($,ie);let Ne;for(let Le=0;Le<Te.length;Le++){const U=Te[Le];if(Le<Te.length-1){const Qe=Te[Le+1];if(he(U,Qe))return}if(E(U))if(Ce(U)){if(T(U))return;Ne||(Ne=U)}else return}z(Ne)}),ge()},IfStatement($){x($.test)&&!B($)&&H($.test)},ImportExpression($){const{source:ie}=$;ie.type==="SequenceExpression"?A(ie)&&H(ie):x(ie)&&H(ie)},LogicalExpression:Y,MemberExpression($){const Te=Q($)&&re($)?A($.object):x($.object)&&!(w($.parent)&&$.parent.callee===$&&g);Te&&u($.object)>=u($)&&($.computed||!(e.isDecimalInteger($.object)||$.object.type==="Literal"&&$.object.regex))&&H($.object),Te&&$.object.type==="CallExpression"&&H($.object),Te&&!l&&$.object.type==="NewExpression"&&F($.object)&&H($.object),Te&&$.optional&&$.object.type==="ChainExpression"&&H($.object),$.computed&&x($.property)&&H($.property)},"MethodDefinition[computed=true]"($){k($.key,v)&&H($.key)},NewExpression:De,ObjectExpression($){$.properties.filter(ie=>ie.value&&k(ie.value,v)).forEach(ie=>H(ie.value))},ObjectPattern($){$.properties.filter(ie=>{const Te=ie.value;return L(Te)&&x(Te)}).forEach(ie=>H(ie.value))},Property($){if($.computed){const{key:ie}=$;ie&&k(ie,v)&&H(ie)}},PropertyDefinition($){$.computed&&k($.key,v)&&H($.key),$.value&&k($.value,v)&&H($.value)},RestElement($){const ie=$.argument;L(ie)&&x(ie)&&H(ie)},ReturnStatement($){const ie=o.getFirstToken($);N($)||$.argument&&j(ie,$.argument)&&!($.argument.type==="Literal"&&$.argument.regex)&&H($.argument)},SequenceExpression($){const ie=u($);$.expressions.filter(Te=>k(Te,ie)).forEach(H)},SwitchCase($){$.test&&x($.test)&&H($.test)},SwitchStatement($){x($.discriminant)&&H($.discriminant)},ThrowStatement($){const ie=o.getFirstToken($);j(ie,$.argument)&&H($.argument)},UnaryExpression:ae,UpdateExpression($){if($.prefix)ae($);else{const{argument:ie}=$,Te=o.getLastToken($);ie.loc.end.line===Te.loc.start.line?ae($):A(ie)&&H(ie)}},AwaitExpression:ae,VariableDeclarator($){$.init&&k($.init,v)&&!($.init.type==="Literal"&&$.init.regex)&&H($.init)},WhileStatement($){x($.test)&&!B($)&&H($.test)},WithStatement($){x($.object)&&H($.object)},YieldExpression($){if($.argument){const ie=o.getFirstToken($);(u($.argument)>=u($)&&j(ie,$.argument)||A($.argument))&&H($.argument)}},ClassDeclaration:I,ClassExpression:I,SpreadElement:W,SpreadProperty:W,ExperimentalSpreadProperty:W,TemplateLiteral($){$.expressions.filter(ie=>ie&&x(ie)).forEach(H)},AssignmentPattern($){const{left:ie,right:Te}=$;L(ie)&&x(ie)&&H(ie),Te&&k(Te,v)&&H(Te)}}}},Pl}var Fl,dv;function BT(){if(dv)return Fl;dv=1;const a=nn(),e=Ue();return Fl={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-extra-semi",url:"https://eslint.style/rules/no-extra-semi"}}]},type:"suggestion",docs:{description:"Disallow unnecessary semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extra-semi"},fixable:"code",schema:[],messages:{unexpected:"Unnecessary semicolon."}},create(n){const o=n.sourceCode;function t(c){const r=o.getTokenAfter(c);if(!r||r.type!=="String")return!0;const m=o.getNodeByRangeIndex(r.range[0]);return!e.isTopLevelExpressionStatement(m.parent)}function u(c){n.report({node:c,messageId:"unexpected",fix:t(c)?r=>new a(r,n.sourceCode).retainSurroundingTokens(c).remove(c):null})}function p(c){for(let r=c;r.type==="Punctuator"&&!e.isClosingBraceToken(r);r=o.getTokenAfter(r))e.isSemicolonToken(r)&&u(r)}return{EmptyStatement(c){const r=c.parent;["ForStatement","ForInStatement","ForOfStatement","WhileStatement","DoWhileStatement","IfStatement","LabeledStatement","WithStatement"].includes(r.type)||u(c)},ClassBody(c){p(o.getFirstToken(c,1))},"MethodDefinition, PropertyDefinition, StaticBlock"(c){p(o.getTokenAfter(c))}}}},Fl}var Rl,gv;function LT(){if(gv)return Rl;gv=1;const{directivesPattern:a}=Hh(),e=/falls?\s?through/iu;function n(p){for(const c of p)if(c.reachable)return!0;return!1}function o(p,c){return c.test(p)&&!a.test(p.trim())}function t(p,c,r,m){const i=r.sourceCode;if(p.consequent.length===1&&p.consequent[0].type==="BlockStatement"){const h=i.getLastToken(p.consequent[0]),s=i.getCommentsBefore(h).pop();if(s&&o(s.value,m))return s}const f=i.getCommentsBefore(c).pop();return f&&o(f.value,m)?f:null}function u(p,c){return c.loc.start.line>p.loc.end.line+1}return Rl={meta:{type:"problem",defaultOptions:[{allowEmptyCase:!1,reportUnusedFallthroughComment:!1}],docs:{description:"Disallow fallthrough of `case` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-fallthrough"},schema:[{type:"object",properties:{commentPattern:{type:"string"},allowEmptyCase:{type:"boolean"},reportUnusedFallthroughComment:{type:"boolean"}},additionalProperties:!1}],messages:{unusedFallthroughComment:"Found a comment that would permit fallthrough, but case cannot fall through.",case:"Expected a 'break' statement before 'case'.",default:"Expected a 'break' statement before 'default'."}},create(p){const c=[];let r=new Set;const m=p.sourceCode,[{allowEmptyCase:i,commentPattern:f,reportUnusedFallthroughComment:h}]=p.options,s=f?new RegExp(f,"u"):e;let l=null;return{onCodePathStart(){c.push(r),r=new Set},onCodePathEnd(){r=c.pop()},onUnreachableCodePathSegmentStart(g){r.add(g)},onUnreachableCodePathSegmentEnd(g){r.delete(g)},onCodePathSegmentStart(g){r.add(g)},onCodePathSegmentEnd(g){r.delete(g)},SwitchCase(g){if(l&&l.node.parent===g.parent){const d=t(l.node,g,p,s);l.isFallthrough&&!d?p.report({messageId:g.test?"case":"default",node:g}):h&&!l.isSwitchExitReachable&&d&&p.report({messageId:"unusedFallthroughComment",node:d})}l=null},"SwitchCase:exit"(g){const d=m.getTokenAfter(g),v=n(r),S=v&&(g.consequent.length>0||!i&&u(g,d))&&g.parent.cases.at(-1)!==g;l={node:g,isSwitchExitReachable:v,isFallthrough:S}}}}},Rl}var _l,yv;function OT(){if(yv)return _l;yv=1;const a=Ue();return _l={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-floating-decimal",url:"https://eslint.style/rules/no-floating-decimal"}}]},type:"suggestion",docs:{description:"Disallow leading or trailing decimal points in numeric literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-floating-decimal"},schema:[],fixable:"code",messages:{leading:"A leading decimal point can be confused with a dot.",trailing:"A trailing decimal point can be confused with a dot."}},create(e){const n=e.sourceCode;return{Literal(o){typeof o.value=="number"&&(o.raw.startsWith(".")&&e.report({node:o,messageId:"leading",fix(t){const u=n.getTokenBefore(o),p=u&&u.range[1]===o.range[0]&&!a.canTokensBeAdjacent(u,`0${o.raw}`);return t.insertTextBefore(o,p?" 0":"0")}}),o.raw.indexOf(".")===o.raw.length-1&&e.report({node:o,messageId:"trailing",fix:t=>t.insertTextAfter(o,"0")}))}}}},_l}var Bl,vv;function NT(){if(vv)return Bl;vv=1;const a=Ue();return Bl={meta:{type:"problem",docs:{description:"Disallow reassigning `function` declarations",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-func-assign"},schema:[],messages:{isAFunction:"'{{name}}' is a function."}},create(e){const n=e.sourceCode;function o(p){a.getModifyingReferences(p).forEach(c=>{e.report({node:c.identifier,messageId:"isAFunction",data:{name:c.identifier.name}})})}function t(p){p.defs[0].type==="FunctionName"&&o(p.references)}function u(p){n.getDeclaredVariables(p).forEach(t)}return{FunctionDeclaration:u,FunctionExpression:u}}},Bl}var Ll,Ev;function MT(){return Ev||(Ev=1,Ll={meta:{type:"suggestion",defaultOptions:[{exceptions:[]}],docs:{description:"Disallow assignments to native objects or read-only global variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-global-assign"},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{globalShouldNotBeModified:"Read-only global '{{name}}' should not be modified."}},create(a){const e=a.sourceCode,[{exceptions:n}]=a.options;function o(u,p,c){const r=u.identifier;u.init===!1&&u.isWrite()&&(p===0||c[p-1].identifier!==r)&&a.report({node:r,messageId:"globalShouldNotBeModified",data:{name:r.name}})}function t(u){u.writeable===!1&&!n.includes(u.name)&&u.references.forEach(o)}return{Program(u){e.getScope(u).variables.forEach(t)}}}}),Ll}var Ol,Sv;function jT(){if(Sv)return Ol;Sv=1;const a=Ue(),e=/^(?:i|lastI)ndexOf$/u,n=["~","!!","+","- -","-","*"];function o(l){return l.operator==="!"&&l.argument.type==="UnaryExpression"&&l.argument.operator==="!"}function t(l){if(l.operator!=="~")return!1;const g=a.skipChainExpression(l.argument);return g.type==="CallExpression"&&a.isSpecificMemberAccess(g.callee,null,e)}function u(l){return l.operator==="*"&&(l.left.type==="Literal"&&l.left.value===1||l.right.type==="Literal"&&l.right.value===1)}function p(l,g){return l.type==="BinaryExpression"&&l.operator==="*"&&l.right.type==="Literal"&&l.right.value===1&&l.parent.type==="BinaryExpression"&&l.parent.operator==="/"&&l.parent.left===l&&!a.isParenthesised(g,l)}function c(l){return l.type==="Literal"&&typeof l.value=="number"||l.type==="CallExpression"&&(l.callee.name==="Number"||l.callee.name==="parseInt"||l.callee.name==="parseFloat")}function r(l){const g=l.left,d=l.right;return d.type!=="BinaryExpression"&&!c(d)?d:g.type!=="BinaryExpression"&&!c(g)?g:null}function m(l){return a.isStringLiteral(l)||l.type==="CallExpression"&&l.callee.type==="Identifier"&&l.callee.name==="String"}function i(l){return a.isStringLiteral(l)&&(l.value===""||l.type==="TemplateLiteral"&&l.quasis.length===1&&l.quasis[0].value.cooked==="")}function f(l){return l.operator==="+"&&(i(l.left)&&!m(l.right)||i(l.right)&&!m(l.left))}function h(l){return l.operator==="+="&&i(l.right)}function s(l){return i(l.left)?l.right:l.left}return Ol={meta:{hasSuggestions:!0,type:"suggestion",docs:{description:"Disallow shorthand type conversions",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-implicit-coercion"},fixable:"code",schema:[{type:"object",properties:{boolean:{type:"boolean"},number:{type:"boolean"},string:{type:"boolean"},disallowTemplateShorthand:{type:"boolean"},allow:{type:"array",items:{enum:n},uniqueItems:!0}},additionalProperties:!1}],defaultOptions:[{allow:[],boolean:!0,disallowTemplateShorthand:!1,number:!0,string:!0}],messages:{implicitCoercion:"Unexpected implicit coercion encountered. Use `{{recommendation}}` instead.",useRecommendation:"Use `{{recommendation}}` instead."}},create(l){const[g]=l.options,d=l.sourceCode;function v(S,b,w,C){function E(T){const x=d.getTokenBefore(S);return x?.range[1]===S.range[0]&&!a.canTokensBeAdjacent(x,b)?T.replaceText(S,` ${b}`):T.replaceText(S,b)}l.report({node:S,messageId:"implicitCoercion",data:{recommendation:b},fix(T){return C?E(T):null},suggest:[{messageId:"useRecommendation",data:{recommendation:b},fix(T){return C||!w?null:E(T)}}]})}return{UnaryExpression(S){let b;if(b=g.allow.includes("!!"),!b&&g.boolean&&o(S)){const w=`Boolean(${d.getText(S.argument.argument)})`,E=a.getVariableByName(d.getScope(S),"Boolean")?.identifiers.length===0;v(S,w,!0,E)}if(b=g.allow.includes("~"),!b&&g.boolean&&t(S)){const w=S.argument.type==="ChainExpression"?">= 0":"!== -1",C=`${d.getText(S.argument)} ${w}`;v(S,C,!1,!1)}if(b=g.allow.includes("+"),!b&&g.number&&S.operator==="+"&&!c(S.argument)){const w=`Number(${d.getText(S.argument)})`;v(S,w,!0,!1)}if(b=g.allow.includes("- -"),!b&&g.number&&S.operator==="-"&&S.argument.type==="UnaryExpression"&&S.argument.operator==="-"&&!c(S.argument.argument)){const w=`Number(${d.getText(S.argument.argument)})`;v(S,w,!0,!1)}},"BinaryExpression:exit"(S){let b;b=g.allow.includes("*");const w=!b&&g.number&&u(S)&&!p(S,d)&&r(S);if(w){const C=`Number(${d.getText(w)})`;v(S,C,!0,!1)}if(b=g.allow.includes("-"),!b&&g.number&&S.operator==="-"&&S.right.type==="Literal"&&S.right.value===0&&!c(S.left)){const C=`Number(${d.getText(S.left)})`;v(S,C,!0,!1)}if(b=g.allow.includes("+"),!b&&g.string&&f(S)){const C=`String(${d.getText(s(S))})`;v(S,C,!0,!1)}},AssignmentExpression(S){if(!g.allow.includes("+")&&g.string&&h(S)){const w=d.getText(s(S)),C=`${w} = String(${w})`;v(S,C,!0,!1)}},TemplateLiteral(S){if(!g.disallowTemplateShorthand||S.parent.type==="TaggedTemplateExpression"||S.expressions.length!==1||S.quasis[0].value.cooked!==""||S.quasis[1].value.cooked!==""||m(S.expressions[0]))return;const w=`String(${d.getText(S.expressions[0])})`;v(S,w,!0,!1)}}}},Ol}var Nl,bv;function UT(){if(bv)return Nl;bv=1;const a=new Set(["AssignmentExpression","ForInStatement","ForOfStatement"]);return Nl={meta:{type:"suggestion",defaultOptions:[{lexicalBindings:!1}],docs:{description:"Disallow declarations in the global scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-implicit-globals"},schema:[{type:"object",properties:{lexicalBindings:{type:"boolean"}},additionalProperties:!1}],messages:{globalNonLexicalBinding:"Unexpected {{kind}} declaration in the global scope, wrap in an IIFE for a local variable, assign as global property for a global variable.",globalLexicalBinding:"Unexpected {{kind}} declaration in the global scope, wrap in a block or in an IIFE.",globalVariableLeak:"Global variable leak, declare the variable if it is intended to be local.",assignmentToReadonlyGlobal:"Unexpected assignment to read-only global variable.",redeclarationOfReadonlyGlobal:"Unexpected redeclaration of read-only global variable."}},create(e){const[{lexicalBindings:n}]=e.options,o=e.sourceCode;function t(u,p,c){e.report({node:u,messageId:p,data:{kind:c}})}return{Program(u){const p=o.getScope(u);p.variables.forEach(c=>{const r=c.writeable===!1;c.writeable!==!0&&(c.eslintExported||(c.defs.forEach(i=>{const f=i.node;(i.type==="FunctionName"||i.type==="Variable"&&i.parent.kind==="var")&&(r?t(f,"redeclarationOfReadonlyGlobal"):t(f,"globalNonLexicalBinding",i.type==="FunctionName"?"function":`'${i.parent.kind}'`)),n&&(i.type==="ClassName"||i.type==="Variable"&&(i.parent.kind==="let"||i.parent.kind==="const"))&&(r?t(f,"redeclarationOfReadonlyGlobal"):t(f,"globalLexicalBinding",i.type==="ClassName"?"class":`'${i.parent.kind}'`))}),r&&c.defs.length===0&&c.references.forEach(i=>{if(i.isWrite()&&!i.isRead()){let f=i.identifier.parent;for(;f&&!a.has(f.type);)f=f.parent;t(f??i.identifier,"assignmentToReadonlyGlobal")}})))}),p.implicit.variables.forEach(c=>{c.defs.forEach(r=>{t(r.node,"globalVariableLeak")})})}}}},Nl}var Ml,xv;function qT(){if(xv)return Ml;xv=1;const a=Ue(),{getStaticValue:e}=qt();return Ml={meta:{type:"suggestion",docs:{description:"Disallow the use of `eval()`-like methods",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-implied-eval"},schema:[],messages:{impliedEval:"Implied eval. Consider passing a function instead of a string."}},create(n){const o=Object.freeze(["global","window","globalThis"]),t=/^(?:set(?:Interval|Timeout)|execScript)$/u,u=n.sourceCode;function p(m){return m.type==="Literal"&&typeof m.value=="string"||m.type==="TemplateLiteral"?!0:m.type==="BinaryExpression"&&m.operator==="+"?p(m.left)||p(m.right):!1}function c(m){const[i]=m.arguments;if(i){const f=e(i,u.getScope(m));(f&&typeof f.value=="string"||p(i))&&n.report({node:m,messageId:"impliedEval"})}}function r(m){const{references:i,name:f}=m;i.forEach(h=>{let l=h.identifier.parent;for(;a.isSpecificMemberAccess(l,null,f);)l=l.parent;if(a.isSpecificMemberAccess(l,null,t)){const g=l.parent.type==="ChainExpression"?l.parent:l,d=g.parent;d.type==="CallExpression"&&d.callee===g&&c(d)}})}return{CallExpression(m){a.isSpecificId(m.callee,t)&&c(m)},"Program:exit"(m){const i=u.getScope(m);o.map(f=>a.getVariableByName(i,f)).filter(f=>!!f&&f.defs.length===0).forEach(r)}}}},Ml}var jl,Cv;function VT(){if(Cv)return jl;Cv=1;const{findVariable:a}=qt(),e=Ue(),n={Object:/^(?:assign|definePropert(?:y|ies)|freeze|setPrototypeOf)$/u,Reflect:/^(?:(?:define|delete)Property|set(?:PrototypeOf)?)$/u};function o(m){const{parent:i}=m;return i.type==="AssignmentExpression"&&i.left===m||i.type==="ArrayPattern"||i.type==="Property"&&i.value===m&&i.parent.type==="ObjectPattern"||i.type==="RestElement"||i.type==="AssignmentPattern"&&i.left===m}function t(m){const i=m.parent.type==="ChainExpression"?m.parent:m,{parent:f}=i;return f.type==="UpdateExpression"&&f.argument===i||f.type==="UnaryExpression"&&f.operator==="delete"&&f.argument===i}function u(m){const{parent:i}=m;return i.type==="ForInStatement"&&i.left===m||i.type==="ForOfStatement"&&i.left===m}function p(m,i){const{parent:f}=m;if(f.type!=="CallExpression"||f.arguments[0]!==m)return!1;const h=e.skipChainExpression(f.callee);if(!e.isSpecificMemberAccess(h,"Object",n.Object)&&!e.isSpecificMemberAccess(h,"Reflect",n.Reflect))return!1;const s=a(i,h.object);return s!==null&&s.scope.type==="global"}function c(m,i){const{parent:f}=m;return f.type==="MemberExpression"&&f.object===m&&(o(f)||t(f)||u(f))||p(m,i)}function r(m){let i=m.parent;for(;i&&i.type!=="AssignmentExpression"&&i.type!=="UpdateExpression"&&i.type!=="UnaryExpression"&&i.type!=="CallExpression"&&i.type!=="ForInStatement"&&i.type!=="ForOfStatement";)i=i.parent;return i||m}return jl={meta:{type:"problem",docs:{description:"Disallow assigning to imported bindings",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-import-assign"},schema:[],messages:{readonly:"'{{name}}' is read-only.",readonlyMember:"The members of '{{name}}' are read-only."}},create(m){const i=m.sourceCode;return{ImportDeclaration(f){const h=i.getScope(f);for(const s of i.getDeclaredVariables(f)){const l=s.defs.some(d=>d.node.type==="ImportNamespaceSpecifier");let g=null;for(const d of s.references){const v=d.identifier;v!==g&&(g=v,d.isWrite()?m.report({node:r(v),messageId:"readonly",data:{name:v.name}}):l&&c(v,h)&&m.report({node:r(v),messageId:"readonlyMember",data:{name:v.name}}))}}}}}},jl}var Ul,wv;function $T(){if(wv)return Ul;wv=1;const a=Ue();return Ul={meta:{type:"suggestion",defaultOptions:[{}],docs:{description:"Disallow inline comments after code",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-inline-comments"},schema:[{type:"object",properties:{ignorePattern:{type:"string"}},additionalProperties:!1}],messages:{unexpectedInlineComment:"Unexpected comment inline with code."}},create(e){const n=e.sourceCode,[{ignorePattern:o}]=e.options,t=o&&new RegExp(o,"u");function u(p){const c=String(n.lines[p.loc.start.line-1]),r=String(n.lines[p.loc.end.line-1]),m=c.slice(0,p.loc.start.column).trim(),i=r.slice(p.loc.end.column).trim(),f=!m,h=!i;if(!(f&&h)&&!(t&&t.test(p.value))){if((f||m==="{")&&(h||i==="}")){const s=n.getNodeByRangeIndex(p.range[0]);if(s&&s.type==="JSXEmptyExpression")return}a.isDirectiveComment(p)||e.report({node:p,messageId:"unexpectedInlineComment"})}}return{Program(){n.getAllComments().filter(p=>p.type!=="Shebang").forEach(u)}}}},Ul}var ql,Av;function WT(){if(Av)return ql;Av=1;const a=Ue(),e=new Set(["Program","StaticBlock","ExportNamedDeclaration","ExportDefaultDeclaration"]),n=new Set(["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]);function o(t){let{parent:u}=t;for(;u;){if(u.type==="StaticBlock")return"class static block body";if(a.isFunction(u))return"function body";({parent:u}=u)}return"program"}return ql={meta:{type:"problem",defaultOptions:["functions",{blockScopedFunctions:"allow"}],docs:{description:"Disallow variable or `function` declarations in nested blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-inner-declarations"},schema:[{enum:["functions","both"]},{type:"object",properties:{blockScopedFunctions:{enum:["allow","disallow"]}},additionalProperties:!1}],messages:{moveDeclToRoot:"Move {{type}} declaration to {{body}} root."}},create(t){const u=t.options[0]==="both",{blockScopedFunctions:p}=t.options[1],c=t.sourceCode,r=t.languageOptions.ecmaVersion;function m(i){const f=i.parent;f.type==="BlockStatement"&&n.has(f.parent.type)||e.has(f.type)||t.report({node:i,messageId:"moveDeclToRoot",data:{type:i.type==="FunctionDeclaration"?"function":"variable",body:o(i)}})}return{FunctionDeclaration(i){const f=c.getScope(i).upper.isStrict;p==="allow"&&r>=2015&&f||m(i)},VariableDeclaration(i){u&&i.kind==="var"&&m(i)}}}},ql}var Vl,Tv;function GT(){if(Tv)return Vl;Tv=1;const a=ur().RegExpValidator,e=new a,n="dgimsuvy",o=void 0;return Vl={meta:{type:"problem",defaultOptions:[{}],docs:{description:"Disallow invalid regular expression strings in `RegExp` constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-invalid-regexp"},schema:[{type:"object",properties:{allowConstructorFlags:{type:"array",items:{type:"string"}}},additionalProperties:!1}],messages:{regexMessage:"{{message}}."}},create(t){const[{allowConstructorFlags:u}]=t.options;let p=[];if(u){const h=u.join("").replace(new RegExp(`[${n}]`,"gu"),"");h&&(p=[...new Set(h)])}function c(h,s){t.report({node:h,messageId:"regexMessage",data:{message:s}})}function r(h){return h&&h.type==="Literal"&&typeof h.value=="string"}function m(h){return h.arguments.length<2?"":r(h.arguments[1])?h.arguments[1].value:null}function i(h,s){try{return e.validatePattern(h,o,o,s),null}catch(l){return l.message}}function f(h,s,l){const g=[];if(typeof s=="string")for(const d of s)l.includes(d)&&g.push(d);return h&&h.includes("u")&&h.includes("v")?"Regex 'u' and 'v' flags cannot be used together":g.length>0?`Duplicate flags ('${g.join("")}') supplied to RegExp constructor`:s?`Invalid flags supplied to RegExp constructor '${s}'`:null}return{"CallExpression, NewExpression"(h){if(h.callee.type!=="Identifier"||h.callee.name!=="RegExp")return;const s=m(h);let l=s;const g=p.length>0?n.split("").concat(p):n.split("");s&&g.forEach(S=>{l=l.replace(S,"")});let d=f(s,l,g);if(d){c(h,d);return}if(!r(h.arguments[0]))return;const v=h.arguments[0].value;d=s===null?i(v,{unicode:!0,unicodeSets:!1})&&i(v,{unicode:!1,unicodeSets:!0})&&i(v,{unicode:!1,unicodeSets:!1}):i(v,{unicode:s.includes("u"),unicodeSets:s.includes("v")}),d&&c(h,d)}}}},Vl}var $l,kv;function zT(){if(kv)return $l;kv=1;const a=Ue();function e(n,o){return n.origin==="function"&&o.type==="ArrowFunctionExpression"}return $l={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",defaultOptions:[{capIsConstructor:!0}],docs:{description:"Disallow use of `this` in contexts where the value of `this` is `undefined`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-invalid-this"},schema:[{type:"object",properties:{capIsConstructor:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedThis:"Unexpected 'this'."}},create(n){const[{capIsConstructor:o}]=n.options,t=[],u=n.sourceCode;return t.getCurrent=function(){const p=this.at(-1);return p.init||(p.init=!0,p.valid=!a.isDefaultThisBinding(p.node,u,{capIsConstructor:o})),p},{onCodePathStart(p,c){if(!e(p,c)){if(p.origin==="program"){const r=u.getScope(c),m=n.languageOptions.parserOptions.ecmaFeatures||{};t.push({init:!0,node:c,valid:!(c.sourceType==="module"||m.globalReturn&&r.childScopes[0].isStrict)});return}t.push({init:!u.getScope(c).isStrict,node:c,valid:!0})}},onCodePathEnd(p,c){e(p,c)||t.pop()},"AccessorProperty > *.value"(p){t.push({init:!0,node:p,valid:!0})},"AccessorProperty:exit"(){t.pop()},ThisExpression(p){if(p.parent.type==="AccessorProperty"&&p.parent.value===p)return;const c=t.getCurrent();c&&!c.valid&&n.report({node:p,messageId:"unexpectedThis"})}}}},$l}var Wl,Dv;function HT(){if(Dv)return Wl;Dv=1;const a=Ue(),e=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000\u2028\u2029]/u,n=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000]+/gmu,o=/[\u2028\u2029]/gmu,t=a.createGlobalLinebreakMatcher();return Wl={meta:{type:"problem",defaultOptions:[{skipComments:!1,skipJSXText:!1,skipRegExps:!1,skipStrings:!0,skipTemplates:!1}],docs:{description:"Disallow irregular whitespace",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-irregular-whitespace"},schema:[{type:"object",properties:{skipComments:{type:"boolean"},skipStrings:{type:"boolean"},skipTemplates:{type:"boolean"},skipRegExps:{type:"boolean"},skipJSXText:{type:"boolean"}},additionalProperties:!1}],messages:{noIrregularWhitespace:"Irregular whitespace not allowed."}},create(u){const[{skipComments:p,skipStrings:c,skipRegExps:r,skipTemplates:m,skipJSXText:i}]=u.options,f=u.sourceCode,h=f.getAllComments();let s=[];function l(T){const x=T.loc.start,A=T.loc.end;s=s.filter(({loc:{start:k}})=>k.line<x.line||k.line===x.line&&k.column<x.column||k.line===A.line&&k.column>=A.column||k.line>A.line)}function g(T){const x=c&&typeof T.value=="string",A=r&&!!T.regex;(x||A)&&e.test(T.raw)&&l(T)}function d(T){typeof T.value.raw=="string"&&e.test(T.value.raw)&&l(T)}function v(T){e.test(T.value)&&l(T)}function S(T){e.test(T.raw)&&l(T)}function b(T){f.lines.forEach((A,k)=>{const B=k+1;let R;for(;(R=n.exec(A))!==null;)s.push({node:T,messageId:"noIrregularWhitespace",loc:{start:{line:B,column:R.index},end:{line:B,column:R.index+R[0].length}}})})}function w(T){const x=f.getText(),A=f.lines,k=x.match(t);let B=-1,R;for(;(R=o.exec(x))!==null;){const F=k.indexOf(R[0],B+1)||0;s.push({node:T,messageId:"noIrregularWhitespace",loc:{start:{line:F+1,column:A[F].length},end:{line:F+2,column:0}}}),B=F}}function C(){}const E={};return e.test(f.getText())?(E.Program=function(T){b(T),w(T)},E.Literal=g,E.TemplateElement=m?d:C,E.JSXText=i?S:C,E["Program:exit"]=function(){p&&h.forEach(v),s.forEach(T=>u.report(T))}):E.Program=C,E}},Wl}var Gl,Iv;function KT(){if(Iv)return Gl;Iv=1;const{getStaticPropertyName:a}=Ue();return Gl={meta:{type:"suggestion",docs:{description:"Disallow the use of the `__iterator__` property",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-iterator"},schema:[],messages:{noIterator:"Reserved name '__iterator__'."}},create(e){return{MemberExpression(n){a(n)==="__iterator__"&&e.report({node:n,messageId:"noIterator"})}}}},Gl}var zl,Pv;function XT(){if(Pv)return zl;Pv=1;const a=Ue();return zl={meta:{type:"suggestion",docs:{description:"Disallow labels that share a name with a variable",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-label-var"},schema:[],messages:{identifierClashWithLabel:"Found identifier with same name as label."}},create(e){const n=e.sourceCode;function o(t,u){return a.getVariableByName(t,u)!==null}return{LabeledStatement(t){const u=n.getScope(t);o(u,t.label.name)&&e.report({node:t,messageId:"identifierClashWithLabel"})}}}},zl}var Hl,Fv;function JT(){if(Fv)return Hl;Fv=1;const a=Ue();return Hl={meta:{type:"suggestion",defaultOptions:[{allowLoop:!1,allowSwitch:!1}],docs:{description:"Disallow labeled statements",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-labels"},schema:[{type:"object",properties:{allowLoop:{type:"boolean"},allowSwitch:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedLabel:"Unexpected labeled statement.",unexpectedLabelInBreak:"Unexpected label in break statement.",unexpectedLabelInContinue:"Unexpected label in continue statement."}},create(e){const[{allowLoop:n,allowSwitch:o}]=e.options;let t=null;function u(r){return a.isLoop(r)?"loop":r.type==="SwitchStatement"?"switch":"other"}function p(r){switch(r){case"loop":return n;case"switch":return o;default:return!1}}function c(r){let m=t;for(;m;){if(m.label===r)return m.kind;m=m.upper}return"other"}return{LabeledStatement(r){t={label:r.label.name,kind:u(r.body),upper:t}},"LabeledStatement:exit"(r){p(t.kind)||e.report({node:r,messageId:"unexpectedLabel"}),t=t.upper},BreakStatement(r){r.label&&!p(c(r.label.name))&&e.report({node:r,messageId:"unexpectedLabelInBreak"})},ContinueStatement(r){r.label&&!p(c(r.label.name))&&e.report({node:r,messageId:"unexpectedLabelInContinue"})}}}},Hl}var Kl,Rv;function YT(){return Rv||(Rv=1,Kl={meta:{type:"suggestion",docs:{description:"Disallow unnecessary nested blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-lone-blocks"},schema:[],messages:{redundantBlock:"Block is redundant.",redundantNestedBlock:"Nested block is redundant."}},create(a){const e=[];let n;const o=a.sourceCode;function t(c){const r=c.parent.type==="BlockStatement"||c.parent.type==="StaticBlock"?"redundantNestedBlock":"redundantBlock";a.report({node:c,messageId:r})}function u(c){return c.parent.type==="BlockStatement"||c.parent.type==="StaticBlock"||c.parent.type==="Program"||c.parent.type==="SwitchCase"&&!(c.parent.consequent[0]===c&&c.parent.consequent.length===1)}function p(c){if(e.length===0)return;const r=c.parent;e.at(-1)===r&&e.pop()}return n={BlockStatement(c){u(c)&&t(c)}},a.languageOptions.ecmaVersion>=2015&&(n={BlockStatement(c){u(c)&&e.push(c)},"BlockStatement:exit"(c){e.length>0&&e.at(-1)===c?(e.pop(),t(c)):(c.parent.type==="BlockStatement"||c.parent.type==="StaticBlock")&&c.parent.body.length===1&&t(c)}},n.VariableDeclaration=function(c){c.kind!=="var"&&p(c)},n.FunctionDeclaration=function(c){o.getScope(c).isStrict&&p(c)},n.ClassDeclaration=p),n}}),Kl}var Xl,_v;function QT(){if(_v)return Xl;_v=1;const a=Ue();return Xl={meta:{type:"suggestion",docs:{description:"Disallow `if` statements as the only statement in `else` blocks",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-lonely-if"},schema:[],fixable:"code",messages:{unexpectedLonelyIf:"Unexpected if as the only statement in an else block."}},create(e){const n=e.sourceCode;return{IfStatement(o){const t=o.parent,u=t.parent;t&&t.type==="BlockStatement"&&t.body.length===1&&!a.areBracesNecessary(t,n)&&u&&u.type==="IfStatement"&&t===u.alternate&&e.report({node:o,messageId:"unexpectedLonelyIf",fix(p){const c=n.getFirstToken(t),r=n.getLastToken(t),m=n.getTokenBefore(c),i=n.getTokenAfter(r),f=n.getLastToken(o.consequent),h=n.getText();return h.slice(c.range[1],o.range[0]).trim()||h.slice(o.range[1],r.range[0]).trim()||o.consequent.type!=="BlockStatement"&&f.value!==";"&&i&&(o.consequent.loc.end.line===i.loc.start.line||/^[([/+`-]/u.test(i.value)||f.value==="++"||f.value==="--")?null:p.replaceTextRange([c.range[0],r.range[1]],(m.range[1]===c.range[0]?" ":"")+n.getText(o))}})}}}},Xl}var Jl,Bv;function ZT(){if(Bv)return Jl;Bv=1;const a=new Set(["const","using","await using"]);function e(n){return(n.type==="FunctionExpression"||n.type==="ArrowFunctionExpression")&&n.parent&&n.parent.type==="CallExpression"&&n.parent.callee===n}return Jl={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Disallow function declarations that contain unsafe references inside loop statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-loop-func"},schema:[],messages:{unsafeRefs:"Function declared in a loop contains unsafe references to variable(s) {{ varNames }}."}},create(n){const o=new Set,t=n.sourceCode;function u(m){for(let i=m;i.parent;i=i.parent){const f=i.parent;switch(f.type){case"WhileStatement":case"DoWhileStatement":return f;case"ForStatement":if(f.init!==i)return f;break;case"ForInStatement":case"ForOfStatement":if(f.right!==i)return f;break;case"ArrowFunctionExpression":case"FunctionExpression":case"FunctionDeclaration":if(o.has(f))break;return null}}return null}function p(m,i){const f=i?i.range[1]:0;let h=m,s=m;for(;s&&s.range[0]>=f;)h=s,s=u(s);return h}function c(m,i){const f=i.resolved,h=f&&f.defs[0],s=h&&h.parent,l=s&&s.type==="VariableDeclaration"?s.kind:"";if(a.has(l)||l==="let"&&s.range[0]>m.range[0]&&s.range[1]<m.range[1])return!0;const g=p(m,l==="let"?s:null).range[0];function d(v){const S=v.identifier;return!v.isWrite()||f.scope.variableScope===v.from.variableScope&&S.range[0]<g}return!!f&&f.references.every(d)}function r(m){const i=u(m);if(!i)return;const f=t.getScope(m).through;if(!(m.async||m.generator)&&e(m)&&!(m.type==="FunctionExpression"&&m.id?f.some(g=>g.identifier.name===m.id.name):!1)){o.add(m);return}const h=[...new Set(f.filter(s=>s.resolved&&!c(i,s)).map(s=>s.identifier.name))];h.length>0&&n.report({node:m,messageId:"unsafeRefs",data:{varNames:`'${h.join("', '")}'`}})}return{ArrowFunctionExpression:r,FunctionExpression:r,FunctionDeclaration:r}}},Jl}var Yl,Lv;function ek(){return Lv||(Lv=1,Yl={meta:{type:"problem",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Disallow literal numbers that lose precision",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-loss-of-precision"},schema:[],messages:{noLossOfPrecision:"This number literal will lose precision at runtime."}},create(a){function e(s){return typeof s.value=="number"}function n(s){return s.raw.replace(/_/gu,"")}function o(s){return["0x","0X","0b","0B","0o","0O"].every(g=>!s.raw.startsWith(g))&&!/^0[0-7]+$/u.test(s.raw)}function t(s){const l=n(s).toUpperCase();let g;return l.startsWith("0B")?g=2:l.startsWith("0X")?g=16:g=8,!l.endsWith(s.value.toString(g).toUpperCase())}function u(s){return`${s[0]}.${s.slice(1)}`}function p(s){for(let l=0;l<s.length;l++)if(s[l]!=="0")return s.slice(l);return s}function c(s){for(let l=s.length-1;l>=0;l--)if(s[l]!=="0")return s.slice(0,l+1);return s}function r(s){const l=c(p(s));return{magnitude:s.startsWith("0")?s.length-2:s.length-1,coefficient:u(l)}}function m(s){const l=p(s);if(l.startsWith(".")){const g=l.slice(1),d=p(g);return{magnitude:d.length-g.length-1,coefficient:u(d)}}return{magnitude:l.indexOf(".")-1,coefficient:u(l.replace(".",""))}}function i(s){const l=s.replace("E","e").split("e"),g=l[0],d=s.includes(".")?m(g):r(g),v=d.coefficient,S=l.length>1?parseInt(l[1],10)+d.magnitude:d.magnitude;return`${v}e${S}`}function f(s){const l=i(n(s)),g=l.split("e")[0].replace(".","").length;if(g>100)return!0;const d=s.value.toPrecision(g),v=i(d);return l!==v}function h(s){return o(s)?f(s):t(s)}return{Literal(s){s.value&&e(s)&&h(s)&&a.report({messageId:"noLossOfPrecision",node:s})}}}}),Yl}var Ql,Ov;function tk(){if(Ov)return Ql;Ov=1;const a=Ue(),e=2**32-1;function n(c){return typeof c=="string"?BigInt(c.slice(0,-1)):c}function o(c){return c.parent.type==="TSEnumMember"}function t(c){let r=c.parent;for(;r.parent.type==="TSUnionType";)r=r.parent;return r.parent.type==="TSTypeAliasDeclaration"}function u(c){return!!(c.parent?.type==="PropertyDefinition"&&c.parent.readonly)}function p(c){let r=c.parent;for(;r.parent.type==="TSUnionType"||r.parent.type==="TSIntersectionType";)r=r.parent;return r.parent.type==="TSIndexedAccessType"}return Ql={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Disallow magic numbers",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-magic-numbers"},schema:[{type:"object",properties:{detectObjects:{type:"boolean",default:!1},enforceConst:{type:"boolean",default:!1},ignore:{type:"array",items:{anyOf:[{type:"number"},{type:"string",pattern:"^[+-]?(?:0|[1-9][0-9]*)n$"}]},uniqueItems:!0},ignoreArrayIndexes:{type:"boolean",default:!1},ignoreDefaultValues:{type:"boolean",default:!1},ignoreClassFieldInitialValues:{type:"boolean",default:!1},ignoreEnums:{type:"boolean",default:!1},ignoreNumericLiteralTypes:{type:"boolean",default:!1},ignoreReadonlyClassProperties:{type:"boolean",default:!1},ignoreTypeIndexes:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{useConst:"Number constants declarations must use 'const'.",noMagic:"No magic number: {{raw}}."}},create(c){const r=c.options[0]||{},m=!!r.detectObjects,i=!!r.enforceConst,f=new Set((r.ignore||[]).map(n)),h=!!r.ignoreArrayIndexes,s=!!r.ignoreDefaultValues,l=!!r.ignoreClassFieldInitialValues,g=!!r.ignoreEnums,d=!!r.ignoreNumericLiteralTypes,v=!!r.ignoreReadonlyClassProperties,S=!!r.ignoreTypeIndexes,b=m?[]:["ObjectExpression","Property","AssignmentExpression"];function w(k){return f.has(k)}function C(k){const B=k.parent;return B.type==="AssignmentPattern"&&B.right===k}function E(k){const B=k.parent;return B.type==="PropertyDefinition"&&B.value===k}function T(k){const B=k.parent;return B.type==="CallExpression"&&k===B.arguments[1]&&(a.isSpecificId(B.callee,"parseInt")||a.isSpecificMemberAccess(B.callee,"Number","parseInt"))}function x(k){return k.parent.type.indexOf("JSX")===0}function A(k,B){const R=k.parent;return R.type==="MemberExpression"&&R.property===k&&(Number.isInteger(B)||typeof B=="bigint")&&B>=0&&B<e}return{Literal(k){if(!a.isNumericLiteral(k))return;let B,R,F;k.parent.type==="UnaryExpression"&&["-","+"].includes(k.parent.operator)?(B=k.parent,R=k.parent.operator==="-"?-k.value:k.value,F=`${k.parent.operator}${k.raw}`):(B=k,R=k.value,F=k.raw);const P=B.parent;w(R)||s&&C(B)||l&&E(B)||g&&o(B)||d&&t(B)||S&&p(B)||v&&u(B)||T(B)||x(B)||h&&A(B,R)||(P.type==="VariableDeclarator"?i&&P.parent.kind!=="const"&&c.report({node:B,messageId:"useConst"}):(!b.includes(P.type)||P.type==="AssignmentExpression"&&P.left.type==="Identifier")&&c.report({node:B,messageId:"noMagic",data:{raw:F}}))}}}},Ql}var Zl,Nv;function rk(){return Nv||(Nv=1,Zl=function(e){return/^[\p{Mc}\p{Me}\p{Mn}]$/u.test(String.fromCodePoint(e))}),Zl}var eu,Mv;function nk(){return Mv||(Mv=1,eu=function(e){return e>=127995&&e<=127999}),eu}var tu,jv;function sk(){return jv||(jv=1,tu=function(e){return e>=127462&&e<=127487}),tu}var ru,Uv;function ak(){return Uv||(Uv=1,ru=function(e,n){return e>=55296&&e<56320&&n>=56320&&n<57344}),ru}var nu,qv;function ik(){if(qv)return nu;qv=1;const a=rk(),e=nk(),n=sk(),o=ak();return nu={isCombiningCharacter:a,isEmojiModifier:e,isRegionalIndicatorSymbol:n,isSurrogatePair:o},nu}var su,Vv;function au(){if(Vv)return su;Vv=1;const{RegExpValidator:a}=ur(),e=2025;function n(o,t,u="u"){if(u==="u"&&o<=5||u==="v"&&o<=2023)return!1;const p=new a({ecmaVersion:Math.min(o,e)});try{p.validatePattern(t,void 0,void 0,u==="u"?{unicode:!0}:{unicodeSets:!0})}catch{return!1}return!0}return su={isValidWithUnicodeFlag:n,REGEXPP_LATEST_ECMA_VERSION:e},su}var iu,$v;function ok(){if($v)return iu;$v=1;class a{constructor(f,h){this.start=f,this.source=h}get end(){return this.start+this.length}get length(){return this.source.length}}class e{constructor(f){this.source=f,this.pos=0}advance(f){this.pos+=f}read(f=0,h=1){const s=f+this.pos;return this.source.slice(s,s+h)}}const n={__proto__:null,b:"\b",f:"\f",n:`
|
|
98
|
+
`,r:"\r",t:" ",v:"\v"};function o(i,f){const h=i.read(0,f),s=parseInt(h,16);return i.advance(f),String.fromCharCode(s)}function t(i){const f=/\{(?<hexDigits>[\dA-Fa-f]+)\}/uy;f.lastIndex=i.pos;const h=f.exec(i.source);if(h){const s=parseInt(h.groups.hexDigits,16);return i.pos=f.lastIndex,String.fromCodePoint(s)}return o(i,4)}function u(i,f){const[h]=i.read(-1,f).match(/^[0-7]+/u);i.advance(h.length-1);const s=parseInt(h,8);return String.fromCharCode(s)}function p(i){const f=i.read(1);i.advance(2);const h=n[f];if(h)return h;switch(f){case"x":return o(i,2);case"u":return t(i);case"\r":i.read()===`
|
|
99
|
+
`&&i.advance(1);case`
|
|
100
|
+
`:case"\u2028":case"\u2029":return"";case"0":case"1":case"2":case"3":return u(i,3);case"4":case"5":case"6":case"7":return u(i,2);default:return f}}function*c(i){const f=i.pos,h=p(i),s=i.pos,l=i.source.slice(f,s);switch(h.length){case 0:break;case 1:yield new a(f,l);break;default:yield new a(f,l),yield new a(f,l);break}}function r(i){const f=new e(i),h=f.read();f.advance(1);const s=[];for(;;){const l=f.read();if(l===h)break;l==="\\"?s.push(...c(f)):(s.push(new a(f.pos,l)),f.advance(1))}return s}function m(i){const f=new e(i);f.advance(1);const h=[];for(;;){const s=f.read();if(s==="`"||s==="$"&&f.read(1)==="{")break;if(s==="\\")h.push(...c(f));else{let l;s==="\r"&&f.read(1)===`
|
|
101
|
+
`?l=`\r
|
|
102
|
+
`:l=s,h.push(new a(f.pos,l)),f.advance(l.length)}}return h}return iu={parseStringLiteral:r,parseTemplateToken:m},iu}var ou,Wv;function lk(){if(Wv)return ou;Wv=1;const{CALL:a,CONSTRUCT:e,ReferenceTracker:n,getStaticValue:o,getStringIfConstant:t}=qt(),{RegExpParser:u,visitRegExpAST:p}=ur(),{isCombiningCharacter:c,isEmojiModifier:r,isRegionalIndicatorSymbol:m,isSurrogatePair:i}=ik(),f=Ue(),{isValidWithUnicodeFlag:h}=au(),{parseStringLiteral:s,parseTemplateToken:l}=ok();function*g(E){let T=[];for(const x of E)switch(x.type){case"Character":T.push(x);break;case"CharacterClassRange":T.push(x.min),yield T,T=[x.max];break;case"CharacterSet":case"CharacterClass":case"ClassStringDisjunction":case"ExpressionCharacterClass":T.length>0&&(yield T,T=[]);break}T.length>0&&(yield T)}function d(E){return/^\\u\{[\da-f]+\}$/iu.test(E.raw)}const v={*surrogatePairWithoutUFlag(E){for(const[T,x]of E.entries()){const A=E[T-1];A&&x&&i(A.value,x.value)&&!d(A)&&!d(x)&&(yield[A,x])}},*surrogatePair(E){for(const[T,x]of E.entries()){const A=E[T-1];A&&x&&i(A.value,x.value)&&(d(A)||d(x))&&(yield[A,x])}},*combiningClass(E,T){for(const[x,A]of E.entries()){const k=T[x-1];k&&A&&c(A.value)&&!c(k.value)&&(yield[k,A])}},*emojiModifier(E){for(const[T,x]of E.entries()){const A=E[T-1];A&&x&&r(x.value)&&!r(A.value)&&(yield[A,x])}},*regionalIndicatorSymbol(E){for(const[T,x]of E.entries()){const A=E[T-1];A&&x&&m(x.value)&&m(A.value)&&(yield[A,x])}},*zwj(E){let T=null;for(const[x,A]of E.entries()){const k=E[x-1],B=E[x+1];k&&A&&B&&A.value===8205&&k.value!==8205&&B.value!==8205&&(T?T.at(-1)===k?T.push(A,B):(yield T,T=E.slice(x-1,x+2)):T=E.slice(x-1,x+2))}T&&(yield T)}},S=Object.keys(v);function b(E,T){if(!E)return null;if(E.type==="Literal"&&E.regex)return{regex:E.regex};const x=o(E,T);return x?.value instanceof RegExp?null:x}function w(E,T){return T.startsWith("\\")?new RegExp("(?<=^\\\\+).$","su").exec(T)?.[0]!==String.fromCodePoint(E.value):!1}function C(E,T,x){const A=E.start,k=E.end-1,B=x[A].start,R=x[k].end,F=T.slice(B,R);return w(E,F)}return ou={meta:{type:"problem",docs:{description:"Disallow characters which are made with multiple code points in character class syntax",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-misleading-character-class"},hasSuggestions:!0,schema:[{type:"object",properties:{allowEscape:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{surrogatePairWithoutUFlag:"Unexpected surrogate pair in character class. Use 'u' flag.",surrogatePair:"Unexpected surrogate pair in character class.",combiningClass:"Unexpected combined character in character class.",emojiModifier:"Unexpected modified Emoji in character class.",regionalIndicatorSymbol:"Unexpected national flag in character class.",zwj:"Unexpected joined character sequence in character class.",suggestUnicodeFlag:"Add unicode 'u' flag to regex."}},create(E){const T=E.options[0]?.allowEscape,x=E.sourceCode,A=new u,k=new Set;function B(R,F,P,N){let j;try{j=A.parsePattern(F,0,F.length,{unicode:P.includes("u"),unicodeSets:P.includes("v")})}catch{return}let V=null;function O(K){if(R.type==="Literal"&&R.regex)return w(K,K.raw);if(R.type==="Literal"&&typeof R.value=="string"){const H=R.raw;return V??=s(H),C(K,H,V)}if(f.isStaticTemplateLiteral(R)){const H=x.getText(R);return V??=l(H),C(K,H,V)}return!1}const G=new Map;p(j,{onCharacterClassEnter(K){for(const H of g(K.elements)){let ae;T?ae=H.map(re=>O(re)?null:re):ae=H;for(const re of S){const De=v[re](ae,H);G.has(re)?G.get(re).push(...De):G.set(re,[...De])}}}});function L(K){return!f.isStaticTemplateLiteral(R)&&R.type!=="Literal"?K.length?[R.loc]:[]:K.map(H=>{const ae=H[0].start,re=H.at(-1).end-1;let De,Y;if(R.type==="TemplateLiteral"){const I=x.getText(R),W=R.range[0];V??=l(I),De=W+V[ae].start,Y=W+V[re].end}else if(typeof R.value=="string"){const I=R.raw,W=R.range[0];V??=s(I),De=W+V[ae].start,Y=W+V[re].end}else{const I=R.range[0]+1;De=I+ae,Y=I+re+1}return{start:x.getLocFromIndex(De),end:x.getLocFromIndex(Y)}})}for(const[K,H]of G){let ae;K==="surrogatePairWithoutUFlag"&&(ae=[{messageId:"suggestUnicodeFlag",fix:N}]);const re=L(H);for(const De of re)E.report({node:R,loc:De,messageId:K,suggest:ae})}}return{"Literal[regex]"(R){k.has(R)||B(R,R.regex.pattern,R.regex.flags,F=>h(E.languageOptions.ecmaVersion,R.regex.pattern)?F.insertTextAfter(R,"u"):null)},Program(R){const F=x.getScope(R),P=new n(F);for(const{node:N}of P.iterateGlobalReferences({RegExp:{[a]:!0,[e]:!0}})){let j,V;const[O,G]=N.arguments,L=b(O,F);if(L){if(G)L.regex?(j=L.regex.pattern,k.add(O)):j=String(L.value),V=t(G,F);else{if(L.regex)continue;j=String(L.value),V=""}typeof V=="string"&&B(O,j,V,K=>{if(!h(E.languageOptions.ecmaVersion,j))return null;if(N.arguments.length===1){const H=x.getLastToken(N,{skip:1});return K.insertTextAfter(H,f.isCommaToken(H)?' "u",':', "u"')}if(G.type==="Literal"&&typeof G.value=="string"||G.type==="TemplateLiteral"){const H=[G.range[0],G.range[1]-1];return K.insertTextAfterRange(H,"u")}return null})}}}}}},ou}var lu,Gv;function uk(){if(Gv)return lu;Gv=1;const a=Ue(),e=["+","-","*","/","%","**"],n=["&","|","^","~","<<",">>",">>>"],o=["==","!=","===","!==",">",">=","<","<="],t=["&&","||"],u=["in","instanceof"],p=["?:"],c=["??"],r=[].concat(e,n,o,t,u,p,c),m=[e,n,o,t,u],i=/^(?:Binary|Logical|Conditional)Expression$/u;function f(l={}){const d=l.groups&&l.groups.length>0?l.groups:m,v=l.allowSamePrecedence!==!1;return{groups:d,allowSamePrecedence:v}}function h(l,g,d){return l.some(v=>v.includes(g)&&v.includes(d))}function s(l){return l.type==="ConditionalExpression"?l.test:l.left}return lu={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-mixed-operators",url:"https://eslint.style/rules/no-mixed-operators"}}]},type:"suggestion",docs:{description:"Disallow mixed binary operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-mixed-operators"},schema:[{type:"object",properties:{groups:{type:"array",items:{type:"array",items:{enum:r},minItems:2,uniqueItems:!0},uniqueItems:!0},allowSamePrecedence:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedMixedOperator:"Unexpected mix of '{{leftOperator}}' and '{{rightOperator}}'. Use parentheses to clarify the intended order of operations."}},create(l){const g=l.sourceCode,d=f(l.options[0]);function v(E){const T=E,x=E.parent;return!h(d.groups,T.operator,x.type==="ConditionalExpression"?"?:":x.operator)||d.allowSamePrecedence&&a.getPrecedence(T)===a.getPrecedence(x)}function S(E){return E.operator!==E.parent.operator&&!a.isParenthesised(g,E)}function b(E){return g.getTokenAfter(s(E),a.isNotClosingParenToken)}function w(E){const T=E.parent,x=s(T)===E?E:T,A=s(T)!==E?E:T,k={leftOperator:x.operator||"?:",rightOperator:A.operator||"?:"};l.report({node:x,loc:b(x).loc,messageId:"unexpectedMixedOperator",data:k}),l.report({node:A,loc:b(A).loc,messageId:"unexpectedMixedOperator",data:k})}function C(E){i.test(E.parent.type)&&S(E)&&!v(E)&&w(E)}return{BinaryExpression:C,LogicalExpression:C}}},lu}var uu,zv;function ck(){return zv||(zv=1,uu={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-mixed-requires",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-mixed-requires.md"}}]},type:"suggestion",docs:{description:"Disallow `require` calls to be mixed with regular variable declarations",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-mixed-requires"},schema:[{oneOf:[{type:"boolean"},{type:"object",properties:{grouping:{type:"boolean"},allowCall:{type:"boolean"}},additionalProperties:!1}]}],messages:{noMixRequire:"Do not mix 'require' and other declarations.",noMixCoreModuleFileComputed:"Do not mix core, module, file and computed requires."}},create(a){const e=a.options[0];let n=!1,o=!1;typeof e=="object"?(n=e.grouping,o=e.allowCall):n=!!e;function t(){return["assert","buffer","child_process","cluster","crypto","dgram","dns","domain","events","fs","http","https","net","os","path","punycode","querystring","readline","repl","smalloc","stream","string_decoder","tls","tty","url","util","v8","vm","zlib"]}const u=t(),p="require",c="uninitialized",r="other",m="core",i="file",f="module",h="computed";function s(v){return v?v.type==="CallExpression"&&v.callee.type==="Identifier"&&v.callee.name==="require"?p:o&&v.type==="CallExpression"&&v.callee.type==="CallExpression"?s(v.callee):v.type==="MemberExpression"?s(v.object):r:c}function l(v){if(v.type==="MemberExpression")return l(v.object);if(v.arguments.length===0)return h;const S=v.arguments[0];return S.type!=="Literal"||typeof S.value!="string"?h:u.includes(S.value)?m:/^\.{0,2}\//u.test(S.value)?i:f}function g(v){const S={};return v.forEach(b=>{const w=s(b.init);S[w]=!0}),!!(S[p]&&(S[c]||S[r]))}function d(v){const S={};return v.forEach(b=>{s(b.init)===p&&(S[l(b.init)]=!0)}),Object.keys(S).length<=1}return{VariableDeclaration(v){g(v.declarations)?a.report({node:v,messageId:"noMixRequire"}):n&&!d(v.declarations)&&a.report({node:v,messageId:"noMixCoreModuleFileComputed"})}}}}),uu}var cu,Hv;function fk(){return Hv||(Hv=1,cu={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-mixed-spaces-and-tabs",url:"https://eslint.style/rules/no-mixed-spaces-and-tabs"}}]},type:"layout",docs:{description:"Disallow mixed spaces and tabs for indentation",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-mixed-spaces-and-tabs"},schema:[{enum:["smart-tabs",!0,!1]}],messages:{mixedSpacesAndTabs:"Mixed spaces and tabs."}},create(a){const e=a.sourceCode;let n;switch(a.options[0]){case!0:case"smart-tabs":n=!0;break;default:n=!1}return{"Program:exit"(o){const t=e.lines,u=e.getAllComments(),p=new Set;u.forEach(r=>{for(let m=r.loc.start.line+1;m<=r.loc.end.line;m++)p.add(m)});let c=/^(?=( +|\t+))\1(?:\t| )/u;n&&(c=/^(?=(\t*))\1(?=( +))\2\t/u),t.forEach((r,m)=>{const i=c.exec(r);if(i){const f=m+1,h={start:{line:f,column:i[0].length-2},end:{line:f,column:i[0].length}};if(!p.has(f)){const s=e.getNodeByRangeIndex(e.getIndexFromLoc(h.start));s&&["Literal","TemplateElement"].includes(s.type)||a.report({node:o,loc:h,messageId:"mixedSpacesAndTabs"})}}})}}}}),cu}var fu,Kv;function pk(){return Kv||(Kv=1,fu={meta:{type:"suggestion",defaultOptions:[{ignoreNonDeclaration:!1}],docs:{description:"Disallow use of chained assignment expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multi-assign"},schema:[{type:"object",properties:{ignoreNonDeclaration:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedChain:"Unexpected chained assignment."}},create(a){const[{ignoreNonDeclaration:e}]=a.options,n=["VariableDeclarator > AssignmentExpression.init","PropertyDefinition > AssignmentExpression.value"];return e||n.push("AssignmentExpression > AssignmentExpression.right"),{[n](o){a.report({node:o,messageId:"unexpectedChain"})}}}}),fu}var pu,Xv;function mk(){if(Xv)return pu;Xv=1;const a=Ue();return pu={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-multi-spaces",url:"https://eslint.style/rules/no-multi-spaces"}}]},type:"layout",docs:{description:"Disallow multiple spaces",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multi-spaces"},fixable:"whitespace",schema:[{type:"object",properties:{exceptions:{type:"object",patternProperties:{"^([A-Z][a-z]*)+$":{type:"boolean"}},additionalProperties:!1},ignoreEOLComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{multipleSpaces:"Multiple spaces found before '{{displayValue}}'."}},create(e){const n=e.sourceCode,o=e.options[0]||{},t=o.ignoreEOLComments,u=Object.assign({Property:!0},o.exceptions),p=Object.keys(u).some(r=>u[r]);function c(r){const m=r.value.split(`
|
|
103
|
+
`),i=m[0],f=`${i.slice(0,12)}...`;return m.length===1&&i.length<=12?i:f}return{Program(){n.tokensAndComments.forEach((r,m,i)=>{if(m===i.length-1)return;const f=i[m+1];if(!n.text.slice(r.range[1],f.range[0]).includes(" ")||r.loc.end.line<f.loc.start.line||t&&a.isCommentToken(f)&&(m===i.length-2||f.loc.end.line<i[m+2].loc.start.line))return;if(p){const s=n.getNodeByRangeIndex(f.range[0]-1);if(s&&u[s.type])return}let h;f.type==="Block"?h=`/*${c(f)}*/`:f.type==="Line"?h=`//${c(f)}`:h=f.value,e.report({node:f,loc:{start:r.loc.end,end:f.loc.start},messageId:"multipleSpaces",data:{displayValue:h},fix:s=>s.replaceTextRange([r.range[1],f.range[0]]," ")})})}}}},pu}var mu,Jv;function hk(){if(Jv)return mu;Jv=1;const a=Ue();return mu={meta:{type:"suggestion",docs:{description:"Disallow multiline strings",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-multi-str"},schema:[],messages:{multilineString:"Multiline support is limited to browsers supporting ES5 only."}},create(e){function n(o){return o.type.indexOf("JSX")===0}return{Literal(o){a.LINEBREAK_MATCHER.test(o.raw)&&!n(o.parent)&&e.report({node:o,messageId:"multilineString"})}}}},mu}var hu,Yv;function dk(){return Yv||(Yv=1,hu={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-multiple-empty-lines",url:"https://eslint.style/rules/no-multiple-empty-lines"}}]},type:"layout",docs:{description:"Disallow multiple empty lines",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multiple-empty-lines"},fixable:"whitespace",schema:[{type:"object",properties:{max:{type:"integer",minimum:0},maxEOF:{type:"integer",minimum:0},maxBOF:{type:"integer",minimum:0}},required:["max"],additionalProperties:!1}],messages:{blankBeginningOfFile:"Too many blank lines at the beginning of file. Max of {{max}} allowed.",blankEndOfFile:"Too many blank lines at the end of file. Max of {{max}} allowed.",consecutiveBlank:"More than {{max}} blank {{pluralizedLines}} not allowed."}},create(a){let e=2,n=e,o=e;a.options.length&&(e=a.options[0].max,n=typeof a.options[0].maxEOF<"u"?a.options[0].maxEOF:e,o=typeof a.options[0].maxBOF<"u"?a.options[0].maxBOF:e);const t=a.sourceCode,u=t.lines.at(-1)===""?t.lines.slice(0,-1):t.lines,p=new Set;return{TemplateLiteral(c){c.quasis.forEach(r=>{for(let m=r.loc.start.line;m<r.loc.end.line;m++)p.add(m)})},"Program:exit"(c){return u.reduce((r,m,i)=>((m.trim()||p.has(i+1))&&r.push(i+1),r),[]).concat(u.length+1).reduce((r,m)=>{let i,f;return r===0?(i="blankBeginningOfFile",f=o):m===u.length+1?(i="blankEndOfFile",f=n):(i="consecutiveBlank",f=e),m-r-1>f&&a.report({node:c,loc:{start:{line:r+f+1,column:0},end:{line:m,column:0}},messageId:i,data:{max:f,pluralizedLines:f===1?"line":"lines"},fix(h){const s=t.getIndexFromLoc({line:r+1,column:0}),l=m-f,g=l<=u.length?t.getIndexFromLoc({line:l,column:0}):t.text.length;return h.removeRange([s,g])}}),m},0)}}}}),hu}var du,Qv;function gk(){return Qv||(Qv=1,du={meta:{type:"suggestion",docs:{description:"Disallow assignments to native objects or read-only global variables",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-native-reassign"},deprecated:{message:"Renamed rule.",url:"https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules",deprecatedSince:"3.3.0",availableUntil:null,replacedBy:[{rule:{name:"no-global-assign",url:"https://eslint.org/docs/rules/no-global-assign"}}]},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{nativeReassign:"Read-only global '{{name}}' should not be modified."}},create(a){const e=a.options[0],n=e&&e.exceptions||[],o=a.sourceCode;function t(p,c,r){const m=p.identifier;p.init===!1&&p.isWrite()&&(c===0||r[c-1].identifier!==m)&&a.report({node:m,messageId:"nativeReassign",data:m})}function u(p){p.writeable===!1&&!n.includes(p.name)&&p.references.forEach(t)}return{Program(p){o.getScope(p).variables.forEach(u)}}}}),du}var gu,Zv;function yk(){return Zv||(Zv=1,gu={meta:{type:"suggestion",docs:{description:"Disallow negated conditions",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-negated-condition"},schema:[],messages:{unexpectedNegated:"Unexpected negated condition."}},create(a){function e(u){return u.alternate&&u.alternate.type!=="IfStatement"}function n(u){return u.type==="UnaryExpression"&&u.operator==="!"}function o(u){return u.type==="BinaryExpression"&&(u.operator==="!="||u.operator==="!==")}function t(u){return n(u.test)||o(u.test)}return{IfStatement(u){e(u)&&t(u)&&a.report({node:u,messageId:"unexpectedNegated"})},ConditionalExpression(u){t(u)&&a.report({node:u,messageId:"unexpectedNegated"})}}}}),gu}var yu,eE;function vk(){return eE||(eE=1,yu={meta:{type:"problem",docs:{description:"Disallow negating the left operand in `in` expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-negated-in-lhs"},deprecated:{message:"Renamed rule.",url:"https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules",deprecatedSince:"3.3.0",availableUntil:null,replacedBy:[{rule:{name:"no-unsafe-negation",url:"https://eslint.org/docs/rules/no-unsafe-negation"}}]},schema:[],messages:{negatedLHS:"The 'in' expression's left operand is negated."}},create(a){return{BinaryExpression(e){e.operator==="in"&&e.left.type==="UnaryExpression"&&e.left.operator==="!"&&a.report({node:e,messageId:"negatedLHS"})}}}}),yu}var vu,tE;function Ek(){return tE||(tE=1,vu={meta:{type:"suggestion",docs:{description:"Disallow nested ternary expressions",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-nested-ternary"},schema:[],messages:{noNestedTernary:"Do not nest ternary expressions."}},create(a){return{ConditionalExpression(e){(e.alternate.type==="ConditionalExpression"||e.consequent.type==="ConditionalExpression")&&a.report({node:e,messageId:"noNestedTernary"})}}}}),vu}var Eu,rE;function Sk(){return rE||(rE=1,Eu={meta:{type:"suggestion",docs:{description:"Disallow `new` operators outside of assignments or comparisons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new"},schema:[],messages:{noNewStatement:"Do not use 'new' for side effects."}},create(a){return{"ExpressionStatement > NewExpression"(e){a.report({node:e.parent,messageId:"noNewStatement"})}}}}),Eu}var Su,nE;function bk(){if(nE)return Su;nE=1;const a=Ue(),e=new Set(["apply","bind","call"]);return Su={meta:{type:"suggestion",docs:{description:"Disallow `new` operators with the `Function` object",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-func"},schema:[],messages:{noFunctionConstructor:"The Function constructor is eval."}},create(n){const o=n.sourceCode;return{"Program:exit"(t){const p=o.getScope(t).set.get("Function");p&&p.defs.length===0&&p.references.forEach(c=>{const r=c.identifier,{parent:m}=r;let i;if(m){if(r===m.callee&&(m.type==="NewExpression"||m.type==="CallExpression"))i=m;else if(m.type==="MemberExpression"&&r===m.object&&e.has(a.getStaticPropertyName(m))){const f=m.parent.type==="ChainExpression"?m.parent:m;f.parent.type==="CallExpression"&&f.parent.callee===f&&(i=f.parent)}}i&&n.report({node:i,messageId:"noFunctionConstructor"})})}}}},Su}var bu,sE;function xk(){if(sE)return bu;sE=1;const a=["Symbol","BigInt"];return bu={meta:{type:"problem",docs:{description:"Disallow `new` operators with global non-constructor functions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-new-native-nonconstructor"},schema:[],messages:{noNewNonconstructor:"`{{name}}` cannot be called as a constructor."}},create(e){const n=e.sourceCode;return{"Program:exit"(o){const t=n.getScope(o);for(const u of a){const p=t.set.get(u);p&&p.defs.length===0&&p.references.forEach(c=>{const r=c.identifier,m=r.parent;m&&m.type==="NewExpression"&&m.callee===r&&e.report({node:r,messageId:"noNewNonconstructor",data:{name:u}})})}}}}},bu}var xu,aE;function Ck(){if(aE)return xu;aE=1;const a=Ue();return xu={meta:{type:"suggestion",docs:{description:"Disallow `Object` constructors",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-object"},deprecated:{message:"The new rule flags more situations where object literal syntax can be used, and it does not report a problem when the `Object` constructor is invoked with an argument.",url:"https://eslint.org/blog/2023/09/eslint-v8.50.0-released/",deprecatedSince:"8.50.0",availableUntil:null,replacedBy:[{rule:{name:"no-object-constructor",url:"https://eslint.org/docs/rules/no-object-constructor"}}]},schema:[],messages:{preferLiteral:"The object literal notation {} is preferable."}},create(e){const n=e.sourceCode;return{NewExpression(o){const t=a.getVariableByName(n.getScope(o),o.callee.name);t&&t.identifiers.length>0||o.callee.name==="Object"&&e.report({node:o,messageId:"preferLiteral"})}}}},xu}var Cu,iE;function wk(){return iE||(iE=1,Cu={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-new-require",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-new-require.md"}}]},type:"suggestion",docs:{description:"Disallow `new` operators with calls to `require`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-require"},schema:[],messages:{noNewRequire:"Unexpected use of new with require."}},create(a){return{NewExpression(e){e.callee.type==="Identifier"&&e.callee.name==="require"&&a.report({node:e,messageId:"noNewRequire"})}}}}),Cu}var wu,oE;function Ak(){return oE||(oE=1,wu={meta:{type:"problem",docs:{description:"Disallow `new` operators with the `Symbol` object",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-symbol"},deprecated:{message:"The rule was replaced with a more general rule.",url:"https://eslint.org/docs/latest/use/migrate-to-9.0.0#eslint-recommended",deprecatedSince:"9.0.0",availableUntil:null,replacedBy:[{rule:{name:"no-new-native-nonconstructor",url:"https://eslint.org/docs/latest/rules/no-new-native-nonconstructor"}}]},schema:[],messages:{noNewSymbol:"`Symbol` cannot be called as a constructor."}},create(a){const e=a.sourceCode;return{"Program:exit"(n){const t=e.getScope(n).set.get("Symbol");t&&t.defs.length===0&&t.references.forEach(u=>{const p=u.identifier,c=p.parent;c&&c.type==="NewExpression"&&c.callee===p&&a.report({node:p,messageId:"noNewSymbol"})})}}}}),wu}var Au,lE;function Tk(){if(lE)return Au;lE=1;const{getVariableByName:a}=Ue();return Au={meta:{type:"suggestion",docs:{description:"Disallow `new` operators with the `String`, `Number`, and `Boolean` objects",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-wrappers"},schema:[],messages:{noConstructor:"Do not use {{fn}} as a constructor."}},create(e){const{sourceCode:n}=e;return{NewExpression(o){const t=["String","Number","Boolean"],{name:u}=o.callee;if(t.includes(u)){const p=a(n.getScope(o),u);p&&p.identifiers.length===0&&e.report({node:o,messageId:"noConstructor",data:{fn:u}})}}}}},Au}var Tu,uE;function kk(){if(uE)return Tu;uE=1;const a=/\\[89]/u;function e(n){return`\\u${n.charCodeAt(0).toString(16).padStart(4,"0")}`}return Tu={meta:{type:"suggestion",docs:{description:"Disallow `\\8` and `\\9` escape sequences in string literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-nonoctal-decimal-escape"},hasSuggestions:!0,schema:[],messages:{decimalEscape:"Don't use '{{decimalEscape}}' escape sequence.",refactor:"Replace '{{original}}' with '{{replacement}}'. This maintains the current functionality.",escapeBackslash:"Replace '{{original}}' with '{{replacement}}' to include the actual backslash character."}},create(n){const o=n.sourceCode;function t(u,p,c){return{messageId:u,data:{original:o.getText().slice(...p),replacement:c},fix(r){return r.replaceTextRange(p,c)}}}return{Literal(u){if(typeof u.value!="string"||!a.test(u.raw))return;const p=/(?:[^\\]|(?<previousEscape>\\.))*?(?<decimalEscape>\\[89])/suy;let c;for(;c=p.exec(u.raw);){const{previousEscape:r,decimalEscape:m}=c.groups,i=u.range[0]+c.index+c[0].length,f=i-m.length,h=[f,i],s=[];r==="\\0"?s.push(t("refactor",[f-r.length,i],`${e("\0")}${m[1]}`),t("refactor",h,e(m[1]))):s.push(t("refactor",h,m[1])),s.push(t("escapeBackslash",h,`\\${m}`)),n.report({node:u,loc:{start:o.getLocFromIndex(f),end:o.getLocFromIndex(i)},messageId:"decimalEscape",data:{decimalEscape:m},suggest:s})}}}}},Tu}var ku,cE;function Dk(){if(cE)return ku;cE=1;const{CALL:a,CONSTRUCT:e,ReferenceTracker:n}=qt(),o=Ue().getStaticPropertyName,t=["Atomics","JSON","Math","Reflect","Intl"];function u(p){return p.type==="ChainExpression"?u(p.expression):p.type==="MemberExpression"?o(p):p.name}return ku={meta:{type:"problem",docs:{description:"Disallow calling global object properties as functions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-obj-calls"},schema:[],messages:{unexpectedCall:"'{{name}}' is not a function.",unexpectedRefCall:"'{{name}}' is reference to '{{ref}}', which is not a function."}},create(p){const c=p.sourceCode;return{Program(r){const m=c.getScope(r),i=new n(m),f={};for(const h of t)f[h]={[a]:!0,[e]:!0};for(const{node:h,path:s}of i.iterateGlobalReferences(f)){const l=u(h.callee),g=s[0],d=l===g?"unexpectedCall":"unexpectedRefCall";p.report({node:h,messageId:d,data:{name:l,ref:g}})}}}}},ku}var Du,fE;function Ik(){if(fE)return Du;fE=1;const{getVariableByName:a,isArrowToken:e,isStartOfExpressionStatement:n,needsPrecedingSemicolon:o}=Ue();return Du={meta:{type:"suggestion",docs:{description:"Disallow calls to the `Object` constructor without an argument",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-object-constructor"},hasSuggestions:!0,schema:[],messages:{preferLiteral:"The object literal notation {} is preferable.",useLiteral:"Replace with '{{replacement}}'.",useLiteralAfterSemicolon:"Replace with '{{replacement}}', add preceding semicolon."}},create(t){const u=t.sourceCode;function p(r){if(n(r))return!0;const m=u.getTokenBefore(r);return!!(m&&e(m))}function c(r){if(r.callee.type!=="Identifier"||r.callee.name!=="Object"||r.arguments.length)return;const m=a(u.getScope(r),"Object");if(m&&m.identifiers.length===0){let i,f,h="useLiteral";p(r)?(i="({})",o(u,r)?(f=";({})",h="useLiteralAfterSemicolon"):f="({})"):i=f="{}",t.report({node:r,messageId:"preferLiteral",suggest:[{messageId:h,data:{replacement:i},fix:s=>s.replaceText(r,f)}]})}}return{CallExpression:c,NewExpression:c}}},Du}var Iu,pE;function Pk(){return pE||(pE=1,Iu={meta:{type:"suggestion",docs:{description:"Disallow octal literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-octal"},schema:[],messages:{noOctal:"Octal literals should not be used."}},create(a){return{Literal(e){typeof e.value=="number"&&/^0[0-9]/u.test(e.raw)&&a.report({node:e,messageId:"noOctal"})}}}}),Iu}var Pu,mE;function Fk(){return mE||(mE=1,Pu={meta:{type:"suggestion",docs:{description:"Disallow octal escape sequences in string literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-octal-escape"},schema:[],messages:{octalEscapeSequence:"Don't use octal: '\\{{sequence}}'. Use '\\u....' instead."}},create(a){return{Literal(e){if(typeof e.value!="string")return;const n=e.raw.match(/^(?:[^\\]|\\.)*?\\([0-3][0-7]{1,2}|[4-7][0-7]|0(?=[89])|[1-7])/su);n&&a.report({node:e,messageId:"octalEscapeSequence",data:{sequence:n[1]}})}}}}),Pu}var Fu,hE;function Rk(){if(hE)return Fu;hE=1;const a=/(?:Statement|Declaration|Function(?:Expression)?|Program)$/u;return Fu={meta:{type:"suggestion",docs:{description:"Disallow reassigning function parameters",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-param-reassign"},schema:[{oneOf:[{type:"object",properties:{props:{enum:[!1]}},additionalProperties:!1},{type:"object",properties:{props:{enum:[!0]},ignorePropertyModificationsFor:{type:"array",items:{type:"string"},uniqueItems:!0},ignorePropertyModificationsForRegex:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}]}],messages:{assignmentToFunctionParam:"Assignment to function parameter '{{name}}'.",assignmentToFunctionParamProp:"Assignment to property of function parameter '{{name}}'."}},create(e){const n=e.options[0]&&e.options[0].props,o=e.options[0]&&e.options[0].ignorePropertyModificationsFor||[],t=e.options[0]&&e.options[0].ignorePropertyModificationsForRegex||[],u=e.sourceCode;function p(f){let h=f.identifier,s=h.parent;for(;s&&(!a.test(s.type)||s.type==="ForInStatement"||s.type==="ForOfStatement");){switch(s.type){case"AssignmentExpression":return s.left===h;case"UpdateExpression":return!0;case"UnaryExpression":if(s.operator==="delete")return!0;break;case"ForInStatement":case"ForOfStatement":return s.left===h;case"CallExpression":if(s.callee!==h)return!1;break;case"MemberExpression":if(s.property===h)return!1;break;case"Property":if(s.key===h)return!1;break;case"ConditionalExpression":if(s.test===h)return!1;break}h=s,s=h.parent}return!1}function c(f){return o.includes(f)||t.some(h=>new RegExp(h,"u").test(f))}function r(f,h,s){const l=f.identifier;l&&!f.init&&(h===0||s[h-1].identifier!==l)&&(f.isWrite()?e.report({node:l,messageId:"assignmentToFunctionParam",data:{name:l.name}}):n&&p(f)&&!c(l.name)&&e.report({node:l,messageId:"assignmentToFunctionParamProp",data:{name:l.name}}))}function m(f){f.defs[0].type==="Parameter"&&f.references.forEach(r)}function i(f){u.getDeclaredVariables(f).forEach(m)}return{"FunctionDeclaration:exit":i,"FunctionExpression:exit":i,"ArrowFunctionExpression:exit":i}}},Fu}var Ru,dE;function _k(){return dE||(dE=1,Ru={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-path-concat",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-path-concat.md"}}]},type:"suggestion",docs:{description:"Disallow string concatenation with `__dirname` and `__filename`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-path-concat"},schema:[],messages:{usePathFunctions:"Use path.join() or path.resolve() instead of + to create paths."}},create(a){const e=/^__(?:dir|file)name$/u;return{BinaryExpression(n){const o=n.left,t=n.right;n.operator==="+"&&(o.type==="Identifier"&&e.test(o.name)||t.type==="Identifier"&&e.test(t.name))&&a.report({node:n,messageId:"usePathFunctions"})}}}}),Ru}var _u,gE;function Bk(){if(gE)return _u;gE=1;function a(n){const o=n.parent;return o.type==="ForStatement"&&o.update===n}function e(n){const o=n.parent;return o.type==="SequenceExpression"?e(o):a(n)}return _u={meta:{type:"suggestion",defaultOptions:[{allowForLoopAfterthoughts:!1}],docs:{description:"Disallow the unary operators `++` and `--`",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-plusplus"},schema:[{type:"object",properties:{allowForLoopAfterthoughts:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedUnaryOp:"Unary operator '{{operator}}' used."}},create(n){const[{allowForLoopAfterthoughts:o}]=n.options;return{UpdateExpression(t){o&&e(t)||n.report({node:t,messageId:"unexpectedUnaryOp",data:{operator:t.operator}})}}}},_u}var Bu,yE;function Lk(){return yE||(yE=1,Bu={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-process-env",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-process-env.md"}}]},type:"suggestion",docs:{description:"Disallow the use of `process.env`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-process-env"},schema:[],messages:{unexpectedProcessEnv:"Unexpected use of process.env."}},create(a){return{MemberExpression(e){const n=e.object.name,o=e.property.name;n==="process"&&!e.computed&&o&&o==="env"&&a.report({node:e,messageId:"unexpectedProcessEnv"})}}}}),Bu}var Lu,vE;function Ok(){return vE||(vE=1,Lu={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-process-exit",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-process-exit.md"}}]},type:"suggestion",docs:{description:"Disallow the use of `process.exit()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-process-exit"},schema:[],messages:{noProcessExit:"Don't use process.exit(); throw an error instead."}},create(a){return{"CallExpression > MemberExpression.callee[object.name = 'process'][property.name = 'exit']"(e){a.report({node:e.parent,messageId:"noProcessExit"})}}}}),Lu}var Ou,EE;function Nk(){if(EE)return Ou;EE=1;const a=Ue(),e=new Set(["ArrowFunctionExpression","FunctionExpression"]);function n(p,c){const r=p.parent;return r.type==="NewExpression"&&r.arguments[0]===p&&r.callee.type==="Identifier"&&r.callee.name==="Promise"&&c.isGlobalReference(r.callee)}function o(p){return p.type==="UnaryExpression"&&p.operator==="void"}function t(p,c,r){const m=a.getPrecedence(c)<a.getPrecedence({type:"UnaryExpression",operator:"void"})&&!a.isParenthesised(p,c),i=p.getTokenBefore(c,c.parent.type==="ArrowFunctionExpression"?a.isArrowToken:s=>s.type==="Keyword"&&s.value==="return"),f=p.getTokenAfter(i),h=i.value==="return"&&i.range[1]===f.range[0];return[r.insertTextBefore(f,`${h?" ":""}void ${m?"(":""}`),r.insertTextAfter(c,m?")":"")]}function u(p,c,r){const m=p.getTokenBefore(c.body,a.isArrowToken),i=p.getTokenAfter(m),f=p.getLastToken(c);return[r.insertTextBefore(i,"{"),r.insertTextAfter(f,"}")]}return Ou={meta:{type:"problem",defaultOptions:[{allowVoid:!1}],docs:{description:"Disallow returning values from Promise executor functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-promise-executor-return"},hasSuggestions:!0,schema:[{type:"object",properties:{allowVoid:{type:"boolean"}},additionalProperties:!1}],messages:{returnsValue:"Return values from promise executor functions cannot be read.",prependVoid:"Prepend `void` to the expression.",wrapBraces:"Wrap the expression in `{}`."}},create(p){let c=null;const r=p.sourceCode,[{allowVoid:m}]=p.options;return{onCodePathStart(i,f){if(c={upper:c,shouldCheck:e.has(f.type)&&n(f,r)},c.shouldCheck&&f.type==="ArrowFunctionExpression"&&f.expression&&!(m&&o(f.body))){const h=[];m&&h.push({messageId:"prependVoid",fix(s){return t(r,f.body,s)}}),f.body.type==="FunctionExpression"&&!f.body.id||h.push({messageId:"wrapBraces",fix(s){return u(r,f,s)}}),p.report({node:f.body,messageId:"returnsValue",suggest:h})}},onCodePathEnd(){c=c.upper},ReturnStatement(i){if(c.shouldCheck&&i.argument){if(!m){p.report({node:i,messageId:"returnsValue"});return}o(i.argument)||p.report({node:i,messageId:"returnsValue",suggest:[{messageId:"prependVoid",fix(f){return t(r,i.argument,f)}}]})}}}}},Ou}var Nu,SE;function Mk(){if(SE)return Nu;SE=1;const{getStaticPropertyName:a}=Ue();return Nu={meta:{type:"suggestion",docs:{description:"Disallow the use of the `__proto__` property",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-proto"},schema:[],messages:{unexpectedProto:"The '__proto__' property is deprecated."}},create(e){return{MemberExpression(n){a(n)==="__proto__"&&e.report({node:n,messageId:"unexpectedProto"})}}}},Nu}var Mu,bE;function jk(){if(bE)return Mu;bE=1;const a=Ue();function e(n){let o;if(n.type==="MemberExpression")o=n.object;else if(n.type==="CallExpression")o=n.callee;else return!1;return n.optional?!0:e(o)}return Mu={meta:{type:"problem",docs:{description:"Disallow calling some `Object.prototype` methods directly on objects",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-prototype-builtins"},hasSuggestions:!0,schema:[],messages:{prototypeBuildIn:"Do not access Object.prototype method '{{prop}}' from target object.",callObjectPrototype:"Call Object.prototype.{{prop}} explicitly."}},create(n){const o=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable"]);function t(u){const p=a.skipChainExpression(u.callee);if(p.type!=="MemberExpression")return;const c=a.getStaticPropertyName(p);c!==null&&o.has(c)&&n.report({messageId:"prototypeBuildIn",loc:p.property.loc,data:{prop:c},node:u,suggest:[{messageId:"callObjectPrototype",data:{prop:c},fix(r){const m=n.sourceCode;if(e(u)||u.callee.type==="ChainExpression")return null;const i=a.getVariableByName(m.getScope(u),"Object");if(!i||i.scope.type!=="global"||i.defs.length>0)return null;let f=m.getText(p.object);a.getPrecedence(p.object)<=a.getPrecedence({type:"SequenceExpression"})&&(f=`(${f})`);const h=m.getTokenAfter(u.callee,a.isOpeningParenToken),l=u.arguments.length===0?"":", ";return[r.replaceText(p,`Object.prototype.${c}.call`),r.insertTextAfter(h,f+l)]}}]})}return{CallExpression:t}}},Mu}var ju,xE;function Uk(){if(xE)return ju;xE=1;const a=Ue();return ju={meta:{type:"suggestion",defaultOptions:[{builtinGlobals:!0}],docs:{description:"Disallow variable redeclaration",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-redeclare"},messages:{redeclared:"'{{id}}' is already defined.",redeclaredAsBuiltin:"'{{id}}' is already defined as a built-in global variable.",redeclaredBySyntax:"'{{id}}' is already defined by a variable declaration."},schema:[{type:"object",properties:{builtinGlobals:{type:"boolean"}},additionalProperties:!1}]},create(e){const[{builtinGlobals:n}]=e.options,o=e.sourceCode;function*t(c){n&&(c.eslintImplicitGlobalSetting==="readonly"||c.eslintImplicitGlobalSetting==="writable")&&(yield{type:"builtin"});for(const r of c.identifiers)yield{type:"syntax",node:r,loc:r.loc};if(c.eslintExplicitGlobalComments)for(const r of c.eslintExplicitGlobalComments)yield{type:"comment",node:r,loc:a.getNameLocationInGlobalDirectiveComment(o,r,c.name)}}function u(c){for(const r of c.variables){const[m,...i]=t(r);if(i.length===0)continue;const f=m.type==="builtin"?"redeclaredAsBuiltin":"redeclaredBySyntax",h={id:r.name};for(const{type:s,node:l,loc:g}of i){const d=s===m.type?"redeclared":f;e.report({node:l,loc:g,messageId:d,data:h})}}}function p(c){const r=o.getScope(c);r.block===c&&u(r)}return{Program(c){const r=o.getScope(c);u(r),r.type==="global"&&r.childScopes[0]&&r.block===r.childScopes[0].block&&u(r.childScopes[0])},FunctionDeclaration:p,FunctionExpression:p,ArrowFunctionExpression:p,StaticBlock:p,BlockStatement:p,ForStatement:p,ForInStatement:p,ForOfStatement:p,SwitchStatement:p}}},ju}var Uu,CE;function qk(){if(CE)return Uu;CE=1;const a=Ue(),e=ur(),n=new e.RegExpParser,o=/ {2}/u;function t(u){return u&&u.type==="Literal"&&typeof u.value=="string"}return Uu={meta:{type:"suggestion",docs:{description:"Disallow multiple spaces in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-regex-spaces"},schema:[],fixable:"code",messages:{multipleSpaces:"Spaces are hard to count. Use {{{length}}}."}},create(u){const p=u.sourceCode;function c(i,f,h,s,l){if(!o.test(h))return;const g=[];let d;try{d=n.parsePattern(f,0,f.length,{unicode:l.includes("u"),unicodeSets:l.includes("v")})}catch{return}e.visitRegExpAST(d,{onCharacterClassEnter(b){g.push(b)}});const v=/( {2,})(?: [+*{?]|[^+*{?]|$)/gu;let S;for(;S=v.exec(f);){const{1:{length:b},index:w}=S;if(g.every(({start:C,end:E})=>w<C||E<=w)){u.report({node:i,messageId:"multipleSpaces",data:{length:b},fix(C){return f!==h?null:C.replaceTextRange([s+w,s+w+b],` {${b}}`)}});return}}}function r(i){if(i.regex){const f=i.regex.pattern,h=i.raw.slice(1,i.raw.lastIndexOf("/")),s=i.range[0]+1,l=i.regex.flags;c(i,f,h,s,l)}}function m(i){const f=p.getScope(i),h=a.getVariableByName(f,"RegExp"),s=h&&h.defs.length>0,l=i.arguments[0];if(i.callee.type==="Identifier"&&i.callee.name==="RegExp"&&t(l)&&!s){const g=l.value,d=l.raw.slice(1,-1),v=l.range[0]+1;let S;if(i.arguments.length<2)S="";else{const b=i.arguments[1];if(t(b))S=b.value;else return}c(i,g,d,v,S)}}return{Literal:r,CallExpression:m,NewExpression:m}}},Uu}var qu,wE;function Vk(){if(wE)return qu;wE=1;const a=Ue();return qu={meta:{type:"suggestion",docs:{description:"Disallow specified names in exports",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-exports"},schema:[{anyOf:[{type:"object",properties:{restrictedNamedExports:{type:"array",items:{type:"string"},uniqueItems:!0},restrictedNamedExportsPattern:{type:"string"}},additionalProperties:!1},{type:"object",properties:{restrictedNamedExports:{type:"array",items:{type:"string",pattern:"^(?!default$)"},uniqueItems:!0},restrictedNamedExportsPattern:{type:"string"},restrictDefaultExports:{type:"object",properties:{direct:{type:"boolean"},named:{type:"boolean"},defaultFrom:{type:"boolean"},namedFrom:{type:"boolean"},namespaceFrom:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1}]}],messages:{restrictedNamed:"'{{name}}' is restricted from being used as an exported name.",restrictedDefault:"Exporting 'default' is restricted."}},create(e){const n=new Set(e.options[0]&&e.options[0].restrictedNamedExports),o=e.options[0]&&e.options[0].restrictedNamedExportsPattern,t=e.options[0]&&e.options[0].restrictDefaultExports,u=e.sourceCode;function p(c){const r=a.getModuleExportName(c);let m=!1;if(o&&r!=="default"&&(m=new RegExp(o,"u").test(r)),m||n.has(r)){e.report({node:c,messageId:"restrictedNamed",data:{name:r}});return}if(r==="default")if(c.parent.type==="ExportAllDeclaration")t&&t.namespaceFrom&&e.report({node:c,messageId:"restrictedDefault"});else{const i=!!c.parent.parent.source,f=a.getModuleExportName(c.parent.local);if(!i&&t&&t.named){e.report({node:c,messageId:"restrictedDefault"});return}i&&t&&(f==="default"&&t.defaultFrom||f!=="default"&&t.namedFrom)&&e.report({node:c,messageId:"restrictedDefault"})}}return{ExportAllDeclaration(c){c.exported&&p(c.exported)},ExportDefaultDeclaration(c){t&&t.direct&&e.report({node:c,messageId:"restrictedDefault"})},ExportNamedDeclaration(c){const r=c.declaration;r?r.type==="FunctionDeclaration"||r.type==="ClassDeclaration"?p(r.id):r.type==="VariableDeclaration"&&u.getDeclaredVariables(r).map(m=>m.defs.find(i=>i.parent===r)).map(m=>m.name).forEach(p):c.specifiers.map(m=>m.exported).forEach(p)}}}},qu}var Vu,AE;function $k(){if(AE)return Vu;AE=1;const a=new Set(["TSTypeReference","TSInterfaceHeritage","TSClassImplements","TSTypeQuery","TSQualifiedName"]);return Vu={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",docs:{description:"Disallow specified global variables",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-globals"},schema:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string"}},required:["name"],additionalProperties:!1}]},uniqueItems:!0,minItems:0},messages:{defaultMessage:"Unexpected use of '{{name}}'.",customMessage:"Unexpected use of '{{name}}'. {{customMessage}}"}},create(e){const n=e.sourceCode;if(e.options.length===0)return{};const o=e.options.reduce((c,r)=>(typeof r=="string"?c[r]=null:c[r.name]=r.message,c),{});function t(c){const r=c.identifier.name,m=o[r],i=m?"customMessage":"defaultMessage";e.report({node:c.identifier,messageId:i,data:{name:r,customMessage:m}})}function u(c){return Object.hasOwn(o,c)}function p(c){const r=c.identifier.parent;return a.has(r.type)}return{Program(c){const r=n.getScope(c);r.variables.forEach(m=>{!m.defs.length&&u(m.name)&&m.references.forEach(i=>{p(i)||t(i)})}),r.through.forEach(m=>{u(m.identifier.name)&&!p(m)&&t(m)})}}}},Vu}var $u,TE;function kE(){if(TE)return $u;TE=1;function a(j){return Array.isArray(j)?j:[j]}const e="",n=" ",o="\\",t=/^\s+$/,u=/(?:[^\\]|^)\\$/,p=/^\\!/,c=/^\\#/,r=/\r?\n/g,m=/^\.*\/|^\.+$/,i="/";let f="node-ignore";typeof Symbol<"u"&&(f=Symbol.for("node-ignore"));const h=f,s=(j,V,O)=>Object.defineProperty(j,V,{value:O}),l=/([0-z])-([0-z])/g,g=()=>!1,d=j=>j.replace(l,(V,O,G)=>O.charCodeAt(0)<=G.charCodeAt(0)?V:e),v=j=>{const{length:V}=j;return j.slice(0,V-V%2)},S=[[/^\uFEFF/,()=>e],[/((?:\\\\)*?)(\\?\s+)$/,(j,V,O)=>V+(O.indexOf("\\")===0?n:e)],[/(\\+?)\s/g,(j,V)=>{const{length:O}=V;return V.slice(0,O-O%2)+n}],[/[\\$.|*+(){^]/g,j=>`\\${j}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(j,V,O)=>V+6<O.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(j,V,O)=>{const G=O.replace(/\\\*/g,"[^\\/]*");return V+G}],[/\\\\\\(?=[$.|*+(){^])/g,()=>o],[/\\\\/g,()=>o],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(j,V,O,G,L)=>V===o?`\\[${O}${v(G)}${L}`:L==="]"&&G.length%2===0?`[${d(O)}${G}]`:"[]"],[/(?:[^*])$/,j=>/\/$/.test(j)?`${j}$`:`${j}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(j,V)=>`${V?`${V}[^/]+`:"[^/]*"}(?=$|\\/$)`]],b=Object.create(null),w=(j,V)=>{let O=b[j];return O||(O=S.reduce((G,[L,K])=>G.replace(L,K.bind(j)),j),b[j]=O),V?new RegExp(O,"i"):new RegExp(O)},C=j=>typeof j=="string",E=j=>j&&C(j)&&!t.test(j)&&!u.test(j)&&j.indexOf("#")!==0,T=j=>j.split(r);class x{constructor(V,O,G,L){this.origin=V,this.pattern=O,this.negative=G,this.regex=L}}const A=(j,V)=>{const O=j;let G=!1;j.indexOf("!")===0&&(G=!0,j=j.substr(1)),j=j.replace(p,"!").replace(c,"#");const L=w(j,V);return new x(O,j,G,L)},k=(j,V)=>{throw new V(j)},B=(j,V,O)=>C(j)?j?B.isNotRelative(j)?O(`path should be a \`path.relative()\`d string, but got "${V}"`,RangeError):!0:O("path must not be empty",TypeError):O(`path must be a string, but got \`${V}\``,TypeError),R=j=>m.test(j);B.isNotRelative=R,B.convert=j=>j;class F{constructor({ignorecase:V=!0,ignoreCase:O=V,allowRelativePaths:G=!1}={}){s(this,h,!0),this._rules=[],this._ignoreCase=O,this._allowRelativePaths=G,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(V){if(V&&V[h]){this._rules=this._rules.concat(V._rules),this._added=!0;return}if(E(V)){const O=A(V,this._ignoreCase);this._added=!0,this._rules.push(O)}}add(V){return this._added=!1,a(C(V)?T(V):V).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(V){return this.add(V)}_testOne(V,O){let G=!1,L=!1;return this._rules.forEach(K=>{const{negative:H}=K;if(L===H&&G!==L||H&&!G&&!L&&!O)return;K.regex.test(V)&&(G=!H,L=H)}),{ignored:G,unignored:L}}_test(V,O,G,L){const K=V&&B.convert(V);return B(K,V,this._allowRelativePaths?g:k),this._t(K,O,G,L)}_t(V,O,G,L){if(V in O)return O[V];if(L||(L=V.split(i)),L.pop(),!L.length)return O[V]=this._testOne(V,G);const K=this._t(L.join(i)+i,O,G,L);return O[V]=K.ignored?K:this._testOne(V,G)}ignores(V){return this._test(V,this._ignoreCache,!1).ignored}createFilter(){return V=>!this.ignores(V)}filter(V){return a(V).filter(this.createFilter())}test(V){return this._test(V,this._testCache,!0)}}const P=j=>new F(j),N=j=>B(j&&B.convert(j),j,g);if(P.isPathValid=N,P.default=P,$u=P,typeof Bt<"u"&&(Bt.env&&Bt.env.IGNORE_TEST_WIN32||Bt.platform==="win32")){const j=O=>/^\\\\\?\\/.test(O)||/["<>|\u0000-\u001F]+/u.test(O)?O:O.replace(/\\/g,"/");B.convert=j;const V=/^[a-z]:\//i;B.isNotRelative=O=>V.test(O)||R(O)}return $u}var Wu,DE;function Wk(){if(DE)return Wu;DE=1;const a=Ue(),e=kE(),n={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1},importNames:{type:"array",items:{type:"string"}},allowImportNames:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["name"],not:{required:["importNames","allowImportNames"]}}]},uniqueItems:!0};return Wu={meta:{type:"suggestion",docs:{description:"Disallow specified modules when loaded by `import`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-imports"},messages:{path:"'{{importSource}}' import is restricted from being used.",pathWithCustomMessage:"'{{importSource}}' import is restricted from being used. {{customMessage}}",patterns:"'{{importSource}}' import is restricted from being used by a pattern.",patternWithCustomMessage:"'{{importSource}}' import is restricted from being used by a pattern. {{customMessage}}",patternAndImportName:"'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern.",patternAndImportNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern. {{customMessage}}",patternAndEverything:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted from being used by a pattern.",patternAndEverythingWithRegexImportName:"* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used.",patternAndEverythingWithCustomMessage:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted from being used by a pattern. {{customMessage}}",patternAndEverythingWithRegexImportNameAndCustomMessage:"* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used. {{customMessage}}",everything:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted.",everythingWithCustomMessage:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted. {{customMessage}}",importName:"'{{importName}}' import from '{{importSource}}' is restricted.",importNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted. {{customMessage}}",allowedImportName:"'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed.",allowedImportNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed. {{customMessage}}",everythingWithAllowImportNames:"* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed.",everythingWithAllowImportNamesAndCustomMessage:"* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed. {{customMessage}}",allowedImportNamePattern:"'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'.",allowedImportNamePatternWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'. {{customMessage}}",everythingWithAllowedImportNamePattern:"* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed.",everythingWithAllowedImportNamePatternWithCustomMessage:"* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed. {{customMessage}}"},schema:{anyOf:[n,{type:"array",items:[{type:"object",properties:{paths:n,patterns:{anyOf:[{type:"array",items:{type:"string"},uniqueItems:!0},{type:"array",items:{type:"object",properties:{importNames:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},allowImportNames:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},group:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},regex:{type:"string"},importNamePattern:{type:"string"},allowImportNamePattern:{type:"string"},message:{type:"string",minLength:1},caseSensitive:{type:"boolean"}},additionalProperties:!1,not:{anyOf:[{required:["importNames","allowImportNames"]},{required:["importNamePattern","allowImportNamePattern"]},{required:["importNames","allowImportNamePattern"]},{required:["importNamePattern","allowImportNames"]},{required:["allowImportNames","allowImportNamePattern"]}]},oneOf:[{required:["group"]},{required:["regex"]}]},uniqueItems:!0}]}},additionalProperties:!1}],additionalItems:!1}]}},create(t){const u=t.sourceCode,p=Array.isArray(t.options)?t.options:[],c=typeof p[0]=="object"&&(Object.hasOwn(p[0],"paths")||Object.hasOwn(p[0],"patterns")),r=(c?p[0].paths:t.options)||[],m=r.reduce((d,v)=>{const S=typeof v=="string"?v:v.name;return d[S]||(d[S]=[]),typeof v=="string"?d[S].push({}):d[S].push({message:v.message,importNames:v.importNames,allowImportNames:v.allowImportNames}),d},Object.create(null));let i=(c?p[0].patterns:[])||[];i.length>0&&typeof i[0]=="string"&&(i=[{group:i}]);const f=i.map(({group:d,regex:v,message:S,caseSensitive:b,importNames:w,importNamePattern:C,allowImportNames:E,allowImportNamePattern:T})=>({...d?{matcher:e({allowRelativePaths:!0,ignorecase:!b}).add(d)}:{},...typeof v=="string"?{regexMatcher:new RegExp(v,b?"u":"iu")}:{},customMessage:S,importNames:w,importNamePattern:C,allowImportNames:E,allowImportNamePattern:T}));if(Object.keys(r).length===0&&f.length===0)return{};function h(d,v,S){Object.hasOwn(m,d)&&m[d].forEach(b=>{const w=b.message,C=b.importNames,E=b.allowImportNames;if(!C&&!E){t.report({node:S,messageId:w?"pathWithCustomMessage":"path",data:{importSource:d,customMessage:w}});return}v.forEach((T,x)=>{if(x==="*"){const[A]=T;C?t.report({node:S,messageId:w?"everythingWithCustomMessage":"everything",loc:A.loc,data:{importSource:d,importNames:C,customMessage:w}}):E&&t.report({node:S,messageId:w?"everythingWithAllowImportNamesAndCustomMessage":"everythingWithAllowImportNames",loc:A.loc,data:{importSource:d,allowedImportNames:E,customMessage:w}});return}C&&C.includes(x)&&T.forEach(A=>{t.report({node:S,messageId:w?"importNameWithCustomMessage":"importName",loc:A.loc,data:{importSource:d,customMessage:w,importName:x}})}),E&&!E.includes(x)&&T.forEach(A=>{t.report({node:S,loc:A.loc,messageId:w?"allowedImportNameWithCustomMessage":"allowedImportName",data:{importSource:d,customMessage:w,importName:x,allowedImportNames:E}})})})})}function s(d,v,S){const b=d.source.value.trim(),w=v.customMessage,C=v.importNames,E=v.importNamePattern?new RegExp(v.importNamePattern,"u"):null,T=v.allowImportNames,x=v.allowImportNamePattern?new RegExp(v.allowImportNamePattern,"u"):null;if(!C&&!T&&!E&&!x){t.report({node:d,messageId:w?"patternWithCustomMessage":"patterns",data:{importSource:b,customMessage:w}});return}S.forEach((A,k)=>{if(k==="*"){const[B]=A;C?t.report({node:d,messageId:w?"patternAndEverythingWithCustomMessage":"patternAndEverything",loc:B.loc,data:{importSource:b,importNames:C,customMessage:w}}):T?t.report({node:d,messageId:w?"everythingWithAllowImportNamesAndCustomMessage":"everythingWithAllowImportNames",loc:B.loc,data:{importSource:b,allowedImportNames:T,customMessage:w}}):x?t.report({node:d,messageId:w?"everythingWithAllowedImportNamePatternWithCustomMessage":"everythingWithAllowedImportNamePattern",loc:B.loc,data:{importSource:b,allowedImportNamePattern:x,customMessage:w}}):t.report({node:d,messageId:w?"patternAndEverythingWithRegexImportNameAndCustomMessage":"patternAndEverythingWithRegexImportName",loc:B.loc,data:{importSource:b,importNames:E,customMessage:w}});return}(C&&C.includes(k)||E&&E.test(k))&&A.forEach(B=>{t.report({node:d,messageId:w?"patternAndImportNameWithCustomMessage":"patternAndImportName",loc:B.loc,data:{importSource:b,customMessage:w,importName:k}})}),T&&!T.includes(k)?A.forEach(B=>{t.report({node:d,messageId:w?"allowedImportNameWithCustomMessage":"allowedImportName",loc:B.loc,data:{importSource:b,customMessage:w,importName:k,allowedImportNames:T}})}):x&&!x.test(k)&&A.forEach(B=>{t.report({node:d,messageId:w?"allowedImportNamePatternWithCustomMessage":"allowedImportNamePattern",loc:B.loc,data:{importSource:b,customMessage:w,importName:k,allowedImportNamePattern:x}})})})}function l(d,v){return v.regexMatcher?v.regexMatcher.test(d):v.matcher.ignores(d)}function g(d){const v=d.source.value.trim(),S=new Map;if(d.type==="ExportAllDeclaration"){const b=u.getFirstToken(d,1);S.set("*",[{loc:b.loc}])}else if(d.specifiers)for(const b of d.specifiers){let w;const C={loc:b.loc};b.type==="ImportDefaultSpecifier"?w="default":b.type==="ImportNamespaceSpecifier"?w="*":b.imported?w=a.getModuleExportName(b.imported):b.local&&(w=a.getModuleExportName(b.local)),typeof w=="string"&&(S.has(w)?S.get(w).push(C):S.set(w,[C]))}h(v,S,d),f.forEach(b=>{l(v,b)&&s(d,b,S)})}return{ImportDeclaration:g,ExportNamedDeclaration(d){d.source&&g(d)},ExportAllDeclaration:g}}},Wu}var Gu,IE;function Gk(){if(IE)return Gu;IE=1;const a=Ue(),e=kE(),n={type:"array",items:{type:"string"},uniqueItems:!0},o={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1}},additionalProperties:!1,required:["name"]}]},uniqueItems:!0};return Gu={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-restricted-require",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-restricted-require.md"}}]},type:"suggestion",docs:{description:"Disallow specified modules when loaded by `require`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-modules"},schema:{anyOf:[o,{type:"array",items:{type:"object",properties:{paths:o,patterns:n},additionalProperties:!1},additionalItems:!1}]},messages:{defaultMessage:"'{{name}}' module is restricted from being used.",customMessage:"'{{name}}' module is restricted from being used. {{customMessage}}",patternMessage:"'{{name}}' module is restricted from being used by a pattern."}},create(t){const u=Array.isArray(t.options)?t.options:[],p=typeof u[0]=="object"&&(Object.hasOwn(u[0],"paths")||Object.hasOwn(u[0],"patterns")),c=(p?u[0].paths:t.options)||[],r=(p?u[0].patterns:[])||[],m=c.reduce((d,v)=>(typeof v=="string"?d[v]=null:d[v.name]=v.message,d),{});if(Object.keys(c).length===0&&r.length===0)return{};const i=e({allowRelativePaths:!0}).add(r);function f(d){return d&&d.type==="Literal"&&typeof d.value=="string"}function h(d){return d.callee.type==="Identifier"&&d.callee.name==="require"}function s(d){return f(d)?d.value.trim():a.isStaticTemplateLiteral(d)?d.quasis[0].value.cooked.trim():null}function l(d,v){const S=m[v],b=S?"customMessage":"defaultMessage";t.report({node:d,messageId:b,data:{name:v,customMessage:S}})}function g(d){return Object.hasOwn(m,d)}return{CallExpression(d){if(h(d)&&d.arguments.length){const v=s(d.arguments[0]);v&&(g(v)&&l(d,v),r.length>0&&i.ignores(v)&&t.report({node:d,messageId:"patternMessage",data:{name:v}}))}}}}},Gu}var zu,PE;function zk(){if(PE)return zu;PE=1;const a=Ue();return zu={meta:{type:"suggestion",docs:{description:"Disallow certain properties on certain objects",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-properties"},schema:{type:"array",items:{type:"object",properties:{object:{type:"string"},property:{type:"string"},allowObjects:{type:"array",items:{type:"string"},uniqueItems:!0},allowProperties:{type:"array",items:{type:"string"},uniqueItems:!0},message:{type:"string"}},anyOf:[{required:["object"]},{required:["property"]}],not:{anyOf:[{required:["allowObjects","object"]},{required:["allowProperties","property"]}]},additionalProperties:!1},uniqueItems:!0},messages:{restrictedObjectProperty:"'{{objectName}}.{{propertyName}}' is restricted from being used.{{allowedPropertiesMessage}}{{message}}",restrictedProperty:"'{{propertyName}}' is restricted from being used.{{allowedObjectsMessage}}{{message}}"}},create(e){const n=e.options;if(n.length===0)return{};const o=new Map,t=new Map,u=new Map;n.forEach(r=>{const m=r.object,i=r.property;typeof m>"u"?u.set(i,{allowObjects:r.allowObjects,message:r.message}):typeof i>"u"?t.set(m,{allowProperties:r.allowProperties,message:r.message}):(o.has(m)||o.set(m,new Map),o.get(m).set(i,{message:r.message}))});function p(r,m){return m?m.includes(r):!1}function c(r,m,i){if(i===null)return;const f=o.get(m),h=f?f.get(i):t.get(m),s=u.get(i);if(h&&!p(i,h.allowProperties)){const l=h.message?` ${h.message}`:"",g=h.allowProperties?` Only these properties are allowed: ${h.allowProperties.join(", ")}.`:"";e.report({node:r,messageId:"restrictedObjectProperty",data:{objectName:m,propertyName:i,message:l,allowedPropertiesMessage:g}})}else if(s&&!p(m,s.allowObjects)){const l=s.message?` ${s.message}`:"",g=s.allowObjects?` Property '${i}' is only allowed on these objects: ${s.allowObjects.join(", ")}.`:"";e.report({node:r,messageId:"restrictedProperty",data:{propertyName:i,message:l,allowedObjectsMessage:g}})}}return{MemberExpression(r){c(r,r.object&&r.object.name,a.getStaticPropertyName(r))},ObjectPattern(r){let m=null;r.parent.type==="VariableDeclarator"?r.parent.init&&r.parent.init.type==="Identifier"&&(m=r.parent.init.name):(r.parent.type==="AssignmentExpression"||r.parent.type==="AssignmentPattern")&&r.parent.right.type==="Identifier"&&(m=r.parent.right.name),r.properties.forEach(i=>{c(r,m,a.getStaticPropertyName(i))})}}}},zu}var Hu,FE;function Hk(){return FE||(FE=1,Hu={meta:{type:"suggestion",docs:{description:"Disallow specified syntax",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-syntax"},schema:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{selector:{type:"string"},message:{type:"string"}},required:["selector"],additionalProperties:!1}]},uniqueItems:!0,minItems:0},messages:{restrictedSyntax:"{{message}}"}},create(a){return a.options.reduce((e,n)=>{const o=typeof n=="string",t=!o&&!!n.message,u=o?n:n.selector,p=t?n.message:`Using '${u}' is not allowed.`;return Object.assign(e,{[u](c){a.report({node:c,messageId:"restrictedSyntax",data:{message:p}})}})},{})}}),Hu}var Ku,RE;function Kk(){if(RE)return Ku;RE=1;const a=Ue(),e=/^(?:[a-zA-Z]+?Statement|ArrowFunctionExpression|FunctionExpression|ClassExpression)$/u;return Ku={meta:{type:"suggestion",defaultOptions:["except-parens"],docs:{description:"Disallow assignment operators in `return` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-return-assign"},schema:[{enum:["except-parens","always"]}],messages:{returnAssignment:"Return statement should not contain assignment.",arrowAssignment:"Arrow function should not return assignment."}},create(n){const o=n.options[0]!=="except-parens",t=n.sourceCode;return{AssignmentExpression(u){if(!o&&a.isParenthesised(t,u))return;let p=u,c=p.parent;for(;c&&!e.test(c.type);)p=c,c=c.parent;c&&c.type==="ReturnStatement"?n.report({node:c,messageId:"returnAssignment"}):c&&c.type==="ArrowFunctionExpression"&&c.body===p&&n.report({node:c,messageId:"arrowAssignment"})}}}},Ku}var Xu,_E;function Xk(){if(_E)return Xu;_E=1;const a=Ue();return Xu={meta:{hasSuggestions:!0,type:"suggestion",docs:{description:"Disallow unnecessary `return await`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-return-await"},fixable:null,deprecated:{message:"The original assumption of the rule no longer holds true because of engine optimization.",deprecatedSince:"8.46.0",availableUntil:null,replacedBy:[]},schema:[],messages:{removeAwait:"Remove redundant `await`.",redundantUseOfAwait:"Redundant use of `await` on a return value."}},create(e){function n(u){e.report({node:e.sourceCode.getFirstToken(u),loc:u.loc,messageId:"redundantUseOfAwait",suggest:[{messageId:"removeAwait",fix(p){const c=e.sourceCode,[r,m]=c.getFirstTokens(u,2);if(!(r.loc.start.line===m.loc.start.line))return null;const[f,h]=r.range,l=c.text[h]===" "?1:0,g=[f,h+l];return p.removeRange(g)}}]})}function o(u){let p=u;for(;!a.isFunction(p)&&p.type!=="Program";){if(p.parent.type==="TryStatement"&&(p===p.parent.block||p===p.parent.handler&&p.parent.finalizer))return!0;p=p.parent}return!1}function t(u){return u.parent.type==="ArrowFunctionExpression"?!0:u.parent.type==="ReturnStatement"?!o(u.parent):u.parent.type==="ConditionalExpression"&&(u===u.parent.consequent||u===u.parent.alternate)||u.parent.type==="LogicalExpression"&&u===u.parent.right||u.parent.type==="SequenceExpression"&&u===u.parent.expressions.at(-1)?t(u.parent):!1}return{AwaitExpression(u){t(u)&&!o(u)&&n(u)}}}},Xu}var Ju,BE;function Jk(){if(BE)return Ju;BE=1;const a=Ue();return Ju={meta:{type:"suggestion",docs:{description:"Disallow `javascript:` URLs",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-script-url"},schema:[],messages:{unexpectedScriptURL:"Script URL is a form of eval."}},create(e){function n(o){const t=a.getStaticStringValue(o);typeof t=="string"&&t.toLowerCase().indexOf("javascript:")===0&&e.report({node:o,messageId:"unexpectedScriptURL"})}return{Literal(o){o.value&&typeof o.value=="string"&&n(o)},TemplateLiteral(o){o.parent&&o.parent.type==="TaggedTemplateExpression"||n(o)}}}},Ju}var Yu,LE;function Yk(){if(LE)return Yu;LE=1;const a=Ue(),e=/\s+/gu;function n(o,t,u,p){if(!(!o||!t))if(o.type==="Identifier"&&t.type==="Identifier"&&o.name===t.name)p(t);else if(o.type==="ArrayPattern"&&t.type==="ArrayExpression"){const c=Math.min(o.elements.length,t.elements.length);for(let r=0;r<c;++r){const m=o.elements[r],i=t.elements[r];if(m&&m.type==="RestElement"&&r<t.elements.length-1||(n(m,i,u,p),i&&i.type==="SpreadElement"))break}}else if(o.type==="RestElement"&&t.type==="SpreadElement")n(o.argument,t.argument,u,p);else if(o.type==="ObjectPattern"&&t.type==="ObjectExpression"&&t.properties.length>=1){let c=0;for(let r=t.properties.length-1;r>=0;--r){const m=t.properties[r].type;if(m==="SpreadElement"||m==="ExperimentalSpreadProperty"){c=r+1;break}}for(let r=0;r<o.properties.length;++r)for(let m=c;m<t.properties.length;++m)n(o.properties[r],t.properties[m],u,p)}else if(o.type==="Property"&&t.type==="Property"&&t.kind==="init"&&!t.method){const c=a.getStaticPropertyName(o);c!==null&&c===a.getStaticPropertyName(t)&&n(o.value,t.value,u,p)}else u&&a.skipChainExpression(o).type==="MemberExpression"&&a.skipChainExpression(t).type==="MemberExpression"&&a.isSameReference(o,t)&&p(t)}return Yu={meta:{type:"problem",defaultOptions:[{props:!0}],docs:{description:"Disallow assignments where both sides are exactly the same",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-self-assign"},schema:[{type:"object",properties:{props:{type:"boolean"}},additionalProperties:!1}],messages:{selfAssignment:"'{{name}}' is assigned to itself."}},create(o){const t=o.sourceCode,[{props:u}]=o.options;function p(c){o.report({node:c,messageId:"selfAssignment",data:{name:t.getText(c).replace(e,"")}})}return{AssignmentExpression(c){["=","&&=","||=","??="].includes(c.operator)&&n(c.left,c.right,u,p)}}}},Yu}var Qu,OE;function Qk(){return OE||(OE=1,Qu={meta:{type:"problem",docs:{description:"Disallow comparisons where both sides are exactly the same",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-self-compare"},schema:[],messages:{comparingToSelf:"Comparing to itself is potentially pointless."}},create(a){const e=a.sourceCode;function n(o,t){const u=e.getTokens(o),p=e.getTokens(t);return u.length===p.length&&u.every((c,r)=>c.type===p[r].type&&c.value===p[r].value)}return{BinaryExpression(o){new Set(["===","==","!==","!=",">","<",">=","<="]).has(o.operator)&&n(o.left,o.right)&&a.report({node:o,messageId:"comparingToSelf"})}}}}),Qu}var Zu,NE;function Zk(){if(NE)return Zu;NE=1;const a=Ue();return Zu={meta:{type:"suggestion",docs:{description:"Disallow comma operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-sequences"},schema:[{type:"object",properties:{allowInParentheses:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{allowInParentheses:!0}],messages:{unexpectedCommaExpression:"Unexpected use of comma operator."}},create(e){const[{allowInParentheses:n}]=e.options,o=e.sourceCode,t={DoWhileStatement:"test",IfStatement:"test",SwitchStatement:"discriminant",WhileStatement:"test",WithStatement:"object",ArrowFunctionExpression:"body"};function u(r){return r.parent&&t[r.parent.type]&&r===r.parent[t[r.parent.type]]}function p(r){return a.isParenthesised(o,r)}function c(r){const m=o.getTokenBefore(r,1),i=o.getTokenAfter(r,1);return p(r)&&m&&i&&a.isOpeningParenToken(m)&&m.range[1]<=r.range[0]&&a.isClosingParenToken(i)&&i.range[0]>=r.range[1]}return{SequenceExpression(r){if(r.parent.type==="ForStatement"&&(r===r.parent.init||r===r.parent.update))return;if(n){if(u(r)){if(c(r))return}else if(p(r))return}const m=o.getTokenAfter(r.expressions[0],a.isCommaToken);e.report({node:r,loc:m.loc,messageId:"unexpectedCommaExpression"})}}}},Zu}var ec,ME;function eD(){if(ME)return ec;ME=1;const a=Ue();function e(t,u,p,c,r){const m=t.parent;return m.type==="CallExpression"&&m.arguments[r]===t&&a.isSpecificMemberAccess(m.callee,p,c)&&u.isGlobalReference(a.skipChainExpression(m.callee).object)}function n(t,u){if(e(t,u,"Object","defineProperty",2)||e(t,u,"Reflect","defineProperty",2))return!0;const p=t.parent;if(p.type==="Property"&&p.value===t){const c=p.parent;if(c.type==="ObjectExpression"&&(e(c,u,"Object","create",1)||e(c,u,"Object","defineProperties",1)))return!0}return!1}function o(t,u){const p=t.parent;return!!((p.type==="Property"||p.type==="MethodDefinition")&&p.kind==="set"&&p.value===t||p.type==="Property"&&p.value===t&&a.getStaticPropertyName(p)==="set"&&p.parent.type==="ObjectExpression"&&n(p.parent,u))}return ec={meta:{type:"problem",docs:{description:"Disallow returning values from setters",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-setter-return"},schema:[],messages:{returnsValue:"Setter cannot return a value."}},create(t){let u=null;const p=t.sourceCode;function c(i){u={upper:u,isSetter:o(i,p)}}function r(){u=u.upper}function m(i){t.report({node:i,messageId:"returnsValue"})}return{FunctionDeclaration:c,FunctionExpression:c,ArrowFunctionExpression(i){c(i),u.isSetter&&i.expression&&m(i.body)},"FunctionDeclaration:exit":r,"FunctionExpression:exit":r,"ArrowFunctionExpression:exit":r,ReturnStatement(i){u&&u.isSetter&&i.argument&&m(i)}}}},ec}var tc,jE;function tD(){if(jE)return tc;jE=1;const a=Ue(),e=new Set(["ArrowFunctionExpression","FunctionExpression"]),n=new Set(["CallExpression"]),o=/^For(?:In|Of)Statement$/u,t=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u,u=new Set(["TSInterfaceDeclaration","TSTypeAliasDeclaration"]),p=new Set(["TSCallSignatureDeclaration","TSFunctionType","TSMethodSignature","TSEmptyBodyFunctionExpression","TSDeclareFunction","TSConstructSignatureDeclaration","TSConstructorType"]);return tc={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",defaultOptions:[{allow:[],builtinGlobals:!1,hoist:"functions",ignoreOnInitialization:!1,ignoreTypeValueShadow:!0,ignoreFunctionTypeParameterNameValueShadow:!0}],docs:{description:"Disallow variable declarations from shadowing variables declared in the outer scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-shadow"},schema:[{type:"object",properties:{builtinGlobals:{type:"boolean"},hoist:{enum:["all","functions","never","types","functions-and-types"]},allow:{type:"array",items:{type:"string"}},ignoreOnInitialization:{type:"boolean"},ignoreTypeValueShadow:{type:"boolean"},ignoreFunctionTypeParameterNameValueShadow:{type:"boolean"}},additionalProperties:!1}],messages:{noShadow:"'{{name}}' is already declared in the upper scope on line {{shadowedLine}} column {{shadowedColumn}}.",noShadowGlobal:"'{{name}}' is already a global variable."}},create(c){const[{builtinGlobals:r,hoist:m,allow:i,ignoreOnInitialization:f,ignoreTypeValueShadow:h,ignoreFunctionTypeParameterNameValueShadow:s}]=c.options,l=c.sourceCode;function g(G){return G.block.kind==="global"||!!G.upper&&g(G.upper)}function d(G){return G.name==="this"}function v(G,L){if(h!==!0||!("isValueVariable"in G))return!1;const K=L.defs[0],H=K&&K.parent?.type==="ImportDeclaration"&&(K.parent.importKind==="type"||K.parent.specifiers.some(re=>re.importKind==="type")),ae=!K||(H?!1:L.isValueVariable);return G.isValueVariable!==ae}function S(G){return s!==!0?!1:G.defs.some(L=>p.has(L.node.type))}function b(G){const K=G.identifiers[0].parent.parent;return K.type!=="TSTypeParameterDeclaration"?!1:K.parent.parent.static}function w(G){return b(G)}function C(G,L){return G&&G.range[0]<=L&&L<=G.range[1]}function E(G,L){let K=G;for(;K&&!L(K);)K=K.parent;return K}function T(G){const L=G.upper;return L&&L.type==="function-expression-name"?L.upper:L}function x(G,L){const K=L.defs[0];if(!K)return!1;const{variableScope:H}=G.scope;if(!(e.has(H.block.type)&&T(H)===L.scope))return!1;const ae=H.block,{parent:re}=ae,De=E(re,W=>n.has(W.type));if(!De)return!1;let Y=K.name;const I=De.range[1];for(;Y;){if(Y.type==="VariableDeclarator"){if(C(Y.init,I)||o.test(Y.parent.parent.type)&&C(Y.parent.parent.right,I))return!0;break}else if(Y.type==="AssignmentPattern"){if(C(Y.right,I))return!0}else if(t.test(Y.type))break;Y=Y.parent}return!1}function A(G){return i.includes(G.name)}function k(G){const L=G.scope.block;return L.type==="ClassDeclaration"&&L.id===G.identifiers[0]}function B(G,L){const K=L.scope,H=L.defs[0],ae=H&&H.parent&&H.parent.range,re=G.scope,De=G.defs[0],Y=De&&De.name.range;return ae&&Y&&ae[0]<Y[0]&&Y[1]<ae[1]&&(De.type==="FunctionName"&&De.node.type==="FunctionExpression"||De.node.type==="ClassExpression")&&K===re.upper}function R(G){const L=G.defs[0];return L&&L.name.range}function F(G){const L=G.identifiers[0];let K;return L?K={global:!1,line:L.loc.start.line,column:L.loc.start.column+1}:K={global:!0},K}function P(G,L){const K=L.defs[0],H=R(G),ae=R(L);return!ae||H[1]>=ae[0]?!1:m==="types"?!u.has(K.node.type):m==="functions-and-types"?K.node.type!=="FunctionDeclaration"&&!u.has(K.node.type):H&&ae&&H[1]<ae[0]&&(m!=="functions"||!K||K.node.type!=="FunctionDeclaration")}function N(G){const L=c.filename;return!L.endsWith(".d.ts")&&!L.endsWith(".d.cts")&&!L.endsWith(".d.mts")?!1:G.defs.some(K=>K.type==="Variable"&&K.parent.declare||K.type==="ClassName"&&K.node.declare||K.type==="TSEnumName"&&K.node.declare||K.type==="TSModuleName"&&K.node.declare)}function j(G){const L=G.scope.block;return L.type==="TSEnumDeclaration"&&L.id===G.identifiers[0]}function V(G,L,K){const H=K.defs[0];if(!H||!H.parent||!(H.parent.type==="ImportDeclaration"&&(H.parent.importKind==="type"||H.parent.specifiers?.some(I=>I.type==="ImportSpecifier"&&I.importKind==="type"&&I.local.name===K.name))))return!1;const re=E(L.identifiers[0]?.parent,I=>I.type==="TSModuleDeclaration");if(!re)return!1;const De=H.parent.source.value,Y=re.id.type==="Literal"?re.id.value:re.id.name;return De===Y}function O(G){if(g(G))return;const L=G.variables;for(let K=0;K<L.length;++K){const H=L[K];if(H.identifiers.length===0||k(H)||j(H)||A(H)||N(H)||d(H))continue;const ae=a.getVariableByName(G.upper,H.name);if(ae&&(ae.identifiers.length>0||r&&"writeable"in ae)&&!B(H,ae)&&!(f&&x(H,ae))&&!(m!=="all"&&P(H,ae))&&!v(H,ae)&&!S(H)&&!w(H)&&!V(G,H,ae)){const re=F(ae),De=re.global?"noShadowGlobal":"noShadow",Y={name:H.name};re.global||(Y.shadowedLine=re.line,Y.shadowedColumn=re.column),c.report({node:H.identifiers[0],messageId:De,data:Y})}}}return{"Program:exit"(G){const K=l.getScope(G).childScopes.slice();for(;K.length;){const H=K.pop();K.push(...H.childScopes),O(H)}}}}},tc}var rc,UE;function rD(){if(UE)return rc;UE=1;function a(e){return e.name==="undefined"&&e.references.every(n=>!n.isWrite())&&e.defs.every(n=>n.node.type==="VariableDeclarator"&&n.node.init===null)}return rc={meta:{type:"suggestion",defaultOptions:[{reportGlobalThis:!1}],docs:{description:"Disallow identifiers from shadowing restricted names",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-shadow-restricted-names"},schema:[{type:"object",properties:{reportGlobalThis:{type:"boolean"}},additionalProperties:!1}],messages:{shadowingRestrictedName:"Shadowing of global property '{{name}}'."}},create(e){const[{reportGlobalThis:n}]=e.options,o=new Set(["undefined","NaN","Infinity","arguments","eval"]);n&&o.add("globalThis");const t=e.sourceCode,u=new Set;return{"VariableDeclaration, :function, CatchClause, ImportDeclaration, ClassDeclaration, ClassExpression"(p){for(const c of t.getDeclaredVariables(p))if(c.defs.length>0&&o.has(c.name)&&!a(c))for(const r of c.defs){const m=r.name;u.has(m)||(u.add(m),e.report({node:m,messageId:"shadowingRestrictedName",data:{name:c.name}}))}}}}},rc}var nc,qE;function nD(){return qE||(qE=1,nc={meta:{type:"layout",docs:{description:"Disallow spacing between function identifiers and their applications (deprecated)",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-spaced-func"},deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules",deprecatedSince:"3.3.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"function-call-spacing",url:"https://eslint.style/rules/function-call-spacing"}}]},fixable:"whitespace",schema:[],messages:{noSpacedFunction:"Unexpected space between function name and paren."}},create(a){const e=a.sourceCode;function n(o){const t=e.getLastToken(o.callee);let u=t,p=e.getTokenAfter(t);for(;p&&p.range[1]<o.range[1]&&p.value!=="(";)u=p,p=e.getTokenAfter(p);p&&p.range[1]<o.range[1]&&e.isSpaceBetweenTokens(u,p)&&a.report({node:o,loc:t.loc.start,messageId:"noSpacedFunction",fix(c){return c.removeRange([u.range[1],p.range[0]])}})}return{CallExpression:n,NewExpression:n}}}),nc}var sc,VE;function sD(){if(VE)return sc;VE=1;const a=Ue();return sc={meta:{type:"problem",docs:{description:"Disallow sparse arrays",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-sparse-arrays"},schema:[],messages:{unexpectedSparseArray:"Unexpected comma in middle of array."}},create(e){return{ArrayExpression(n){if(!n.elements.includes(null))return;const{sourceCode:o}=e;let t;for(const[u,p]of n.elements.entries()){if(u===n.elements.length-1&&p)return;t=o.getTokenAfter(p??t??o.getFirstToken(n),a.isCommaToken),!p&&e.report({node:n,loc:t.loc,messageId:"unexpectedSparseArray"})}}}}},sc}var ac,$E;function aD(){return $E||($E=1,ac={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-sync",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-sync.md"}}]},type:"suggestion",docs:{description:"Disallow synchronous methods",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-sync"},schema:[{type:"object",properties:{allowAtRootLevel:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{noSync:"Unexpected sync method: '{{propertyName}}'."}},create(a){return{[a.options[0]&&a.options[0].allowAtRootLevel?":function MemberExpression[property.name=/.*Sync$/]":"MemberExpression[property.name=/.*Sync$/]"](n){a.report({node:n,messageId:"noSync",data:{propertyName:n.property.name}})}}}}),ac}var ic,WE;function iD(){if(WE)return ic;WE=1;const a=/\t+/gu,e=/\S/u;return ic={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-tabs",url:"https://eslint.style/rules/no-tabs"}}]},type:"layout",docs:{description:"Disallow all tabs",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-tabs"},schema:[{type:"object",properties:{allowIndentationTabs:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedTab:"Unexpected tab character."}},create(n){const o=n.sourceCode,t=n.options&&n.options[0]&&n.options[0].allowIndentationTabs;return{Program(u){o.getLines().forEach((p,c)=>{let r;for(;(r=a.exec(p))!==null;)t&&!e.test(p.slice(0,r.index))||n.report({node:u,loc:{start:{line:c+1,column:r.index},end:{line:c+1,column:r.index+r[0].length}},messageId:"unexpectedTab"})})}}}},ic}var oc,GE;function oD(){return GE||(GE=1,oc={meta:{type:"problem",docs:{description:"Disallow template literal placeholder syntax in regular strings",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-template-curly-in-string"},schema:[],messages:{unexpectedTemplateExpression:"Unexpected template string expression."}},create(a){const e=/\$\{[^}]+\}/u;return{Literal(n){typeof n.value=="string"&&e.test(n.value)&&a.report({node:n,messageId:"unexpectedTemplateExpression"})}}}}),oc}var lc,zE;function lD(){return zE||(zE=1,lc={meta:{type:"suggestion",docs:{description:"Disallow ternary operators",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-ternary"},schema:[],messages:{noTernaryOperator:"Ternary operator used."}},create(a){return{ConditionalExpression(e){a.report({node:e,messageId:"noTernaryOperator"})}}}}),lc}var uc,HE;function uD(){if(HE)return uc;HE=1;const a=Ue();function e(o){return o.type==="FunctionExpression"&&o.parent.type==="MethodDefinition"&&o.parent.kind==="constructor"}class n{superCalled=!1;invalidNodes=[]}return uc={meta:{type:"problem",docs:{description:"Disallow `this`/`super` before calling `super()` in constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-this-before-super"},schema:[],messages:{noBeforeSuper:"'{{kind}}' is not allowed before 'super()'."}},create(o){let t=null,u=Object.create(null);function p(h){return!h.reachable||u[h.id]?.superCalled}function c(){return!!(t&&t.isConstructor&&t.hasExtends)}function r(h){for(const s of h)if(!p(s))return!1;return!0}function m(){return c()&&!r(t.currentSegments)}function i(h){const s=t.currentSegments;for(const l of s)l.reachable&&u[l.id].invalidNodes.push(h)}function f(){const h=t.currentSegments;for(const s of h)s.reachable&&(u[s.id].superCalled=!0)}return{onCodePathStart(h,s){if(e(s)){const l=s.parent.parent.parent;t={upper:t,isConstructor:!0,hasExtends:!!(l.superClass&&!a.isNullOrUndefined(l.superClass)),codePath:h,currentSegments:new Set}}else t={upper:t,isConstructor:!1,hasExtends:!1,codePath:h,currentSegments:new Set}},onCodePathEnd(h){const s=t.hasExtends;if(t=t.upper,!s)return;const l=new Set;h.traverseSegments((g,d)=>{const v=u[g.id],S=v.invalidNodes.filter(b=>!l.has(b));for(const b of S)l.add(b),o.report({messageId:"noBeforeSuper",node:b,data:{kind:b.type==="Super"?"super":"this"}});v.superCalled&&d.skip()})},onCodePathSegmentStart(h){t.currentSegments.add(h),c()&&(u[h.id]={superCalled:h.prevSegments.length>0&&h.prevSegments.every(p),invalidNodes:[]})},onUnreachableCodePathSegmentStart(h){t.currentSegments.add(h)},onUnreachableCodePathSegmentEnd(h){t.currentSegments.delete(h)},onCodePathSegmentEnd(h){t.currentSegments.delete(h)},onCodePathSegmentLoop(h,s){c()&&t.codePath.traverseSegments({first:s,last:h},(l,g)=>{const d=u[l.id]??new n;d.superCalled?g.skip():l.prevSegments.length>0&&l.prevSegments.every(p)&&(d.superCalled=!0),u[l.id]=d})},ThisExpression(h){m()&&i(h)},Super(h){!a.isCallee(h)&&m()&&i(h)},"CallExpression:exit"(h){h.callee.type==="Super"&&m()&&f()},"Program:exit"(){u=Object.create(null)}}}},uc}var cc,KE;function cD(){if(KE)return cc;KE=1;const a=Ue();return cc={meta:{type:"suggestion",docs:{description:"Disallow throwing literals as exceptions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-throw-literal"},schema:[],messages:{object:"Expected an error object to be thrown.",undef:"Do not throw undefined."}},create(e){return{ThrowStatement(n){a.couldBeError(n.argument)?n.argument.type==="Identifier"&&n.argument.name==="undefined"&&e.report({node:n,messageId:"undef"}):e.report({node:n,messageId:"object"})}}}},cc}var fc,XE;function fD(){if(XE)return fc;XE=1;const a=Ue();return fc={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-trailing-spaces",url:"https://eslint.style/rules/no-trailing-spaces"}}]},type:"layout",docs:{description:"Disallow trailing whitespace at the end of lines",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-trailing-spaces"},fixable:"whitespace",schema:[{type:"object",properties:{skipBlankLines:{type:"boolean",default:!1},ignoreComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{trailingSpace:"Trailing spaces not allowed."}},create(e){const n=e.sourceCode,o="[ - ]",t=`^${o}*$`,u=`${o}+$`,p=e.options[0]||{},c=p.skipBlankLines||!1,r=p.ignoreComments||!1;function m(f,h,s){e.report({node:f,loc:h,messageId:"trailingSpace",fix(l){return l.removeRange(s)}})}function i(f){const h=new Set;return f.forEach(s=>{const l=s.type==="Block"?s.loc.end.line-1:s.loc.end.line;for(let g=s.loc.start.line;g<=l;g++)h.add(g)}),h}return{Program:function(h){const s=new RegExp(u,"u"),l=new RegExp(t,"u"),g=n.lines,d=n.getText().match(a.createGlobalLinebreakMatcher()),v=n.getAllComments(),S=i(v);let b=0;for(let w=0,C=g.length;w<C;w++){const E=w+1,T=d&&d[w]?d[w].length:1,x=g[w].length+T,A=s.exec(g[w]);if(A){const k={start:{line:E,column:A.index},end:{line:E,column:x-T}},B=b+k.start.column,R=b+k.end.column,F=n.getNodeByRangeIndex(B);if(F&&F.type==="TemplateElement"&&B>F.parent.range[0]&&R<F.parent.range[1]){b+=x;continue}if(c&&l.test(g[w])){b+=x;continue}const P=[B,R];(!r||!S.has(E))&&m(h,k,P)}b+=x}}}}},fc}var pc,JE;function pD(){return JE||(JE=1,pc={meta:{type:"problem",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Disallow `let` or `var` variables that are read but never assigned",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unassigned-vars"},schema:[],messages:{unassigned:"'{{name}}' is always 'undefined' because it's never assigned."}},create(a){const e=a.sourceCode;let n=!1;return{"TSModuleDeclaration[declare=true]"(){n=!0},"TSModuleDeclaration[declare=true]:exit"(){n=!1},VariableDeclarator(o){const t=o.parent;if(o.init||o.id.type!=="Identifier"||t.kind==="const"||t.declare||n)return;const[p]=e.getDeclaredVariables(o);if(!p)return;let c=!1;for(const r of p.references){if(r.isWrite())return;r.isRead()&&(c=!0)}c&&a.report({node:o,messageId:"unassigned",data:{name:o.id.name}})}}}}),pc}var mc,YE;function mD(){if(YE)return mc;YE=1;function a(e){const n=e.parent;return n.type==="UnaryExpression"&&n.operator==="typeof"}return mc={meta:{type:"problem",defaultOptions:[{typeof:!1}],docs:{description:"Disallow the use of undeclared variables unless mentioned in `/*global */` comments",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-undef"},schema:[{type:"object",properties:{typeof:{type:"boolean"}},additionalProperties:!1}],messages:{undef:"'{{name}}' is not defined."}},create(e){const[{typeof:n}]=e.options,o=e.sourceCode;return{"Program:exit"(t){o.getScope(t).through.forEach(p=>{const c=p.identifier;!n&&a(c)||e.report({node:c,messageId:"undef",data:c})})}}}},mc}var hc,QE;function hD(){if(QE)return hc;QE=1;const a=Ue(),e=new Set(["const","using","await using"]);return hc={meta:{type:"suggestion",docs:{description:"Disallow initializing variables to `undefined`",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-undef-init"},schema:[],fixable:"code",messages:{unnecessaryUndefinedInit:"It's not necessary to initialize '{{name}}' to undefined."}},create(n){const o=n.sourceCode;return{VariableDeclarator(t){const u=o.getText(t.id),p=t.init&&t.init.name,c=o.getScope(t),r=a.getVariableByName(c,"undefined"),m=r&&r.defs.length>0,i=o.getLastToken(t);p==="undefined"&&!e.has(t.parent.kind)&&!m&&n.report({node:t,messageId:"unnecessaryUndefinedInit",data:{name:u},fix(f){return t.parent.kind==="var"||t.id.type==="ArrayPattern"||t.id.type==="ObjectPattern"||o.commentsExistBetween(t.id,i)?null:f.removeRange([t.id.range[1],t.range[1]])}})}}}},hc}var dc,ZE;function dD(){return ZE||(ZE=1,dc={meta:{type:"suggestion",docs:{description:"Disallow the use of `undefined` as an identifier",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-undefined"},schema:[],messages:{unexpectedUndefined:"Unexpected use of undefined."}},create(a){const e=a.sourceCode;function n(t){a.report({node:t,messageId:"unexpectedUndefined"})}function o(t){const u=t.set.get("undefined");if(!u)return;const p=u.references,c=u.defs;p.filter(r=>!r.init).forEach(r=>n(r.identifier)),c.forEach(r=>n(r.name))}return{"Program:exit"(t){const p=[e.getScope(t)];for(;p.length;){const c=p.pop();p.push(...c.childScopes),o(c)}}}}}),dc}var gc,eS;function gD(){return eS||(eS=1,gc={meta:{type:"suggestion",defaultOptions:[{allow:[],allowAfterSuper:!1,allowAfterThis:!1,allowAfterThisConstructor:!1,allowFunctionParams:!0,allowInArrayDestructuring:!0,allowInObjectDestructuring:!0,enforceInClassFields:!1,enforceInMethodNames:!1}],docs:{description:"Disallow dangling underscores in identifiers",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-underscore-dangle"},schema:[{type:"object",properties:{allow:{type:"array",items:{type:"string"}},allowAfterThis:{type:"boolean"},allowAfterSuper:{type:"boolean"},allowAfterThisConstructor:{type:"boolean"},enforceInMethodNames:{type:"boolean"},allowFunctionParams:{type:"boolean"},enforceInClassFields:{type:"boolean"},allowInArrayDestructuring:{type:"boolean"},allowInObjectDestructuring:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedUnderscore:"Unexpected dangling '_' in '{{identifier}}'."}},create(a){const[{allow:e,allowAfterSuper:n,allowAfterThis:o,allowAfterThisConstructor:t,allowFunctionParams:u,allowInArrayDestructuring:p,allowInObjectDestructuring:c,enforceInClassFields:r,enforceInMethodNames:m}]=a.options,i=a.sourceCode;function f(E){return e.includes(E)}function h(E){const T=E.length;return E!=="_"&&(E[0]==="_"||E[T-1]==="_")}function s(E){return E==="__proto__"}function l(E){return E==="_"}function g(E){return E.object.type==="MemberExpression"&&E.object.property.name==="constructor"&&E.object.object.type==="ThisExpression"}function d(E){u||E.params.forEach(T=>{const{type:x}=T;let A;if(x==="RestElement"?A=T.argument:x==="AssignmentPattern"?A=T.left:A=T,A.type==="Identifier"){const k=A.name;h(k)&&!f(k)&&a.report({node:T,messageId:"unexpectedUnderscore",data:{identifier:k}})}})}function v(E){if(E.type==="FunctionDeclaration"&&E.id){const T=E.id.name;typeof T<"u"&&h(T)&&!f(T)&&a.report({node:E,messageId:"unexpectedUnderscore",data:{identifier:T}})}d(E)}function S(E){i.getDeclaredVariables(E).forEach(T=>{const A=T.defs.find(R=>R.node===E).name,k=A.name;let B=A.parent;for(;!["VariableDeclarator","ArrayPattern","ObjectPattern"].includes(B.type);)B=B.parent;h(k)&&!l(k)&&!f(k)&&!(p&&B.type==="ArrayPattern")&&!(c&&B.type==="ObjectPattern")&&a.report({node:E,messageId:"unexpectedUnderscore",data:{identifier:k}})})}function b(E){const T=E.property.name,x=E.object.type==="ThisExpression",A=E.object.type==="Super",k=g(E);typeof T<"u"&&h(T)&&!(x&&o)&&!(A&&n)&&!(k&&t)&&!s(T)&&!f(T)&&a.report({node:E,messageId:"unexpectedUnderscore",data:{identifier:T}})}function w(E){const T=E.key.name,x=E.type==="MethodDefinition"||E.type==="Property"&&E.method;typeof T<"u"&&m&&x&&h(T)&&!f(T)&&a.report({node:E,messageId:"unexpectedUnderscore",data:{identifier:E.key.type==="PrivateIdentifier"?`#${T}`:T}})}function C(E){const T=E.key.name;typeof T<"u"&&h(T)&&r&&!f(T)&&a.report({node:E,messageId:"unexpectedUnderscore",data:{identifier:E.key.type==="PrivateIdentifier"?`#${T}`:T}})}return{FunctionDeclaration:v,VariableDeclarator:S,MemberExpression:b,MethodDefinition:w,PropertyDefinition:C,Property:w,FunctionExpression:v,ArrowFunctionExpression:v}}}),gc}var yc,tS;function yD(){if(tS)return yc;tS=1;const a=Ue();return yc={meta:{type:"problem",docs:{description:"Disallow confusing multiline expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unexpected-multiline"},schema:[],messages:{function:"Unexpected newline between function and ( of function call.",property:"Unexpected newline between object and [ of property access.",taggedTemplate:"Unexpected newline between template tag and template literal.",division:"Unexpected newline between numerator and division operator."}},create(e){const n=/^[gimsuy]+$/u,o=e.sourceCode;function t(u,p){const c=o.getTokenAfter(u,a.isNotClosingParenToken),r=o.getTokenBefore(c);c.loc.start.line!==r.loc.end.line&&e.report({node:u,loc:c.loc,messageId:p})}return{MemberExpression(u){!u.computed||u.optional||t(u.object,"property")},TaggedTemplateExpression(u){const{quasi:p}=u;o.getTokenBefore(p).loc.end.line!==p.loc.start.line&&e.report({node:u,loc:{start:p.loc.start,end:{line:p.loc.start.line,column:p.loc.start.column+1}},messageId:"taggedTemplate"})},CallExpression(u){u.arguments.length===0||u.optional||t(u.callee,"function")},"BinaryExpression[operator='/'] > BinaryExpression[operator='/'].left"(u){const p=o.getTokenAfter(u,r=>r.value==="/"),c=o.getTokenAfter(p);c.type==="Identifier"&&n.test(c.value)&&p.range[1]===c.range[0]&&t(u.left,"division")}}}},yc}var vc,rS;function vD(){if(rS)return vc;rS=1;const a=ra(),e=Ue(),n=/(?:(?:Call|Class|Function|Member|New|Yield)Expression|Statement|Declaration)$/u,o=/^(?:DoWhile|For|While)Statement$/u,t=/^(?:BinaryExpression|ConditionalExpression)$/u,u=/^(?:ArrowFunction|Class|Function)Expression$/u,p=/^(?:Call|Member|New|TaggedTemplate|Yield)Expression$/u;function c(l){if(l.init){const g=l.resolved&&l.resolved.defs[0];if(!g||g.type!=="Variable"||g.parent.kind!=="var")return!1}return l.isWrite()}function r(l){return!l.modified}function m(l){return!(l.modified||l.group)}function i(l,g){const d=l.range,v=g.identifier.range;return d[0]<=v[0]&&v[1]<=d[1]}const f={WhileStatement:i,DoWhileStatement:i,ForStatement(l,g){return i(l,g)&&!(l.init&&i(l.init,g))}};function h(l){let g=l.identifier;for(;g;){if(g.type==="FunctionDeclaration")return g.id?g:null;g=g.parent}return null}function s(l,g){for(let d=0;d<l.length;++d){const v=l[d];for(let S=0;!v.modified&&S<g.length;++S){const b=g[S];let w,C;const E=v.isInLoop(b)||!!((w=h(b))&&(C=e.getVariableByName(b.from.upper,w.id.name))&&C.references.some(v.isInLoop));v.modified=E}}}return vc={meta:{type:"problem",docs:{description:"Disallow unmodified loop conditions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unmodified-loop-condition"},schema:[],messages:{loopConditionNotModified:"'{{name}}' is not modified in this loop."}},create(l){const g=l.sourceCode;let d=null;function v(T){const x=T.reference.identifier;l.report({node:x,messageId:"loopConditionNotModified",data:x})}function S(T){for(let x=0;x<T.length;++x){const A=T[x];if(A.group){let k=d.get(A.group);k||(k=[],d.set(A.group,k)),k.push(A)}}}function b(T){T.every(r)&&T.forEach(v)}function w(T){let x=!1;return a.traverse(T,{visitorKeys:g.visitorKeys,enter(A){p.test(A.type)?(x=!0,this.break()):u.test(A.type)&&this.skip()}}),x}function C(T){if(T.init)return null;let x=null,A=T.identifier,k=A.parent;for(;k;){if(n.test(k.type)){if(o.test(k.type)&&k.test===A)return{reference:T,group:x,isInLoop:f[k.type].bind(null,k),modified:!1};break}if(t.test(k.type)){if(w(k))break;x=k}A=k,k=k.parent}return null}function E(T){const x=T.references.map(C).filter(Boolean);if(x.length===0)return;S(x);const A=T.references.filter(c);A.length>0&&s(x,A),x.filter(m).forEach(v)}return{"Program:exit"(T){const x=[g.getScope(T)];d=new Map;let A;for(;A=x.pop();)x.push(...A.childScopes),A.variables.forEach(E);d.forEach(b),d=null}}}},vc}var Ec,nS;function ED(){if(nS)return Ec;nS=1;const a=Ue(),e=new Set(["==","===","!=","!==",">",">=","<","<=","in","instanceof"]),n={"==":"!=","!=":"==","===":"!==","!==":"==="},o=a.getPrecedence({type:"LogicalExpression",operator:"||"});return Ec={meta:{type:"suggestion",defaultOptions:[{defaultAssignment:!0}],docs:{description:"Disallow ternary operators when simpler alternatives exist",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-unneeded-ternary"},schema:[{type:"object",properties:{defaultAssignment:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{unnecessaryConditionalExpression:"Unnecessary use of boolean literals in conditional expression.",unnecessaryConditionalAssignment:"Unnecessary use of conditional expression for default assignment."}},create(t){const[{defaultAssignment:u}]=t.options,p=t.sourceCode;function c(f){return f.type==="Literal"&&typeof f.value=="boolean"}function r(f){if(f.type==="BinaryExpression"&&Object.hasOwn(n,f.operator)){const h=p.getFirstTokenBetween(f.left,f.right,l=>l.value===f.operator),s=p.getText();return s.slice(f.range[0],h.range[0])+n[f.operator]+s.slice(h.range[1],f.range[1])}return a.getPrecedence(f)<a.getPrecedence({type:"UnaryExpression"})?`!(${a.getParenthesisedText(p,f)})`:`!${a.getParenthesisedText(p,f)}`}function m(f){return f.type==="BinaryExpression"&&e.has(f.operator)||f.type==="UnaryExpression"&&f.operator==="!"}function i(f){return f.test.type==="Identifier"&&f.consequent.type==="Identifier"&&f.test.name===f.consequent.name}return{ConditionalExpression(f){c(f.alternate)&&c(f.consequent)?t.report({node:f,messageId:"unnecessaryConditionalExpression",fix(h){return f.consequent.value===f.alternate.value?f.test.type==="Identifier"?h.replaceText(f,f.consequent.value.toString()):null:f.alternate.value?h.replaceText(f,r(f.test)):h.replaceText(f,m(f.test)?a.getParenthesisedText(p,f.test):`!${r(f.test)}`)}}):!u&&i(f)&&t.report({node:f,messageId:"unnecessaryConditionalAssignment",fix(h){const l=(a.getPrecedence(f.alternate)<o||a.isCoalesceExpression(f.alternate))&&!a.isParenthesised(p,f.alternate)?`(${p.getText(f.alternate)})`:a.getParenthesisedText(p,f.alternate),g=a.getParenthesisedText(p,f.test);return h.replaceText(f,`${g} || ${l}`)}})}}}},Ec}var Sc,sS;function SD(){if(sS)return Sc;sS=1;function a(o){return!!o.init}function e(o){for(const t of o)if(t.reachable)return!1;return!0}class n{constructor(t){this.sourceCode=t,this.startNode=null,this.endNode=null}get location(){return{start:this.startNode.loc.start,end:this.endNode.loc.end}}get isEmpty(){return!(this.startNode&&this.endNode)}contains(t){return t.range[0]>=this.startNode.range[0]&&t.range[1]<=this.endNode.range[1]}isConsecutive(t){return this.contains(this.sourceCode.getTokenBefore(t))}merge(t){this.endNode=t}reset(t){this.startNode=this.endNode=t}}return Sc={meta:{type:"problem",docs:{description:"Disallow unreachable code after `return`, `throw`, `continue`, and `break` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unreachable"},schema:[],messages:{unreachableCode:"Unreachable code."}},create(o){let t=null;const u=new n(o.sourceCode),p=[];let c=new Set;function r(m){let i=null;if(m&&(m.type==="PropertyDefinition"||e(c))){if(u.isEmpty){u.reset(m);return}if(u.contains(m))return;if(u.isConsecutive(m)){u.merge(m);return}i=m}u.isEmpty||o.report({messageId:"unreachableCode",loc:u.location,node:u.startNode}),u.reset(i)}return{onCodePathStart(){p.push(c),c=new Set},onCodePathEnd(){c=p.pop()},onUnreachableCodePathSegmentStart(m){c.add(m)},onUnreachableCodePathSegmentEnd(m){c.delete(m)},onCodePathSegmentEnd(m){c.delete(m)},onCodePathSegmentStart(m){c.add(m)},BlockStatement:r,BreakStatement:r,ClassDeclaration:r,ContinueStatement:r,DebuggerStatement:r,DoWhileStatement:r,ExpressionStatement:r,ForInStatement:r,ForOfStatement:r,ForStatement:r,IfStatement:r,ImportDeclaration:r,LabeledStatement:r,ReturnStatement:r,SwitchStatement:r,ThrowStatement:r,TryStatement:r,VariableDeclaration(m){(m.kind!=="var"||m.declarations.some(a))&&r(m)},WhileStatement:r,WithStatement:r,ExportNamedDeclaration:r,ExportDefaultDeclaration:r,ExportAllDeclaration:r,"Program:exit"(){r()},"MethodDefinition[kind='constructor']"(){t={upper:t,hasSuperCall:!1}},"MethodDefinition[kind='constructor']:exit"(m){const{hasSuperCall:i}=t;if(t=t.upper,!m.value.body)return;const f=m.parent.parent;if(f.superClass&&!i)for(const h of f.body.body)h.type==="PropertyDefinition"&&!h.static&&r(h)},"CallExpression > Super.callee"(){t&&(t.hasSuperCall=!0)}}}},Sc}var bc,aS;function bD(){if(aS)return bc;aS=1;const a=["WhileStatement","DoWhileStatement","ForStatement","ForInStatement","ForOfStatement"];function e(t){for(const u of t)if(u.reachable)return!0;return!1}function n(t){const u=t.parent;if(u)switch(u.type){case"WhileStatement":return t===u.test;case"DoWhileStatement":return t===u.body;case"ForStatement":return t===(u.update||u.test||u.body);case"ForInStatement":case"ForOfStatement":return t===u.left}return!1}function o(t,u){return t.filter(p=>!u.includes(p))}return bc={meta:{type:"problem",defaultOptions:[{ignore:[]}],docs:{description:"Disallow loops with a body that allows only one iteration",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unreachable-loop"},schema:[{type:"object",properties:{ignore:{type:"array",items:{enum:a},uniqueItems:!0}},additionalProperties:!1}],messages:{invalid:"Invalid loop. Its body allows only one iteration."}},create(t){const[{ignore:u}]=t.options,p=o(a,u),c=p.join(","),r=new Map,m=new Set,i=[];let f=new Set;return{onCodePathStart(){i.push(f),f=new Set},onCodePathEnd(){f=i.pop()},onUnreachableCodePathSegmentStart(h){f.add(h)},onUnreachableCodePathSegmentEnd(h){f.delete(h)},onCodePathSegmentEnd(h){f.delete(h)},onCodePathSegmentStart(h,s){if(f.add(h),n(s)){const l=s.parent;r.set(h,l)}},onCodePathSegmentLoop(h,s,l){const g=r.get(s);(l===g||l.type==="ContinueStatement")&&m.delete(g)},[c](h){e(f)&&m.add(h)},"Program:exit"(){m.forEach(h=>t.report({node:h,messageId:"invalid"}))}}}},bc}var xc,iS;function xD(){if(iS)return xc;iS=1;const a=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression)$/u,e=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement|SwitchStatement)$/u,n=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement)$/u;return xc={meta:{type:"problem",docs:{description:"Disallow control flow statements in `finally` blocks",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unsafe-finally"},schema:[],messages:{unsafeUsage:"Unsafe usage of {{nodeType}}."}},create(o){function t(c){return c.parent.type==="TryStatement"&&c.parent.finalizer===c}function u(c,r){let m=!1,i;c.type==="BreakStatement"&&!c.label?i=e:c.type==="ContinueStatement"?i=n:i=a;for(let f=c;f&&!i.test(f.type);f=f.parent)if(f.parent.label&&r&&f.parent.label.name===r.name&&(m=!0),t(f))return!(r&&m);return!1}function p(c){u(c,c.label)&&o.report({messageId:"unsafeUsage",data:{nodeType:c.type},node:c,line:c.loc.line,column:c.loc.column})}return{ReturnStatement:p,ThrowStatement:p,BreakStatement:p,ContinueStatement:p}}},xc}var Cc,oS;function CD(){if(oS)return Cc;oS=1;const a=Ue();function e(t){return t==="in"||t==="instanceof"}function n(t){return t==="<"||t===">"||t===">="||t==="<="}function o(t){return t.type==="UnaryExpression"&&t.operator==="!"}return Cc={meta:{type:"problem",defaultOptions:[{enforceForOrderingRelations:!1}],docs:{description:"Disallow negating the left operand of relational operators",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unsafe-negation"},hasSuggestions:!0,schema:[{type:"object",properties:{enforceForOrderingRelations:{type:"boolean"}},additionalProperties:!1}],fixable:null,messages:{unexpected:"Unexpected negating the left operand of '{{operator}}' operator.",suggestNegatedExpression:"Negate '{{operator}}' expression instead of its left operand. This changes the current behavior.",suggestParenthesisedNegation:"Wrap negation in '()' to make the intention explicit. This preserves the current behavior."}},create(t){const u=t.sourceCode,[{enforceForOrderingRelations:p}]=t.options;return{BinaryExpression(c){const r=c.operator,m=p&&n(r);(e(r)||m)&&o(c.left)&&!a.isParenthesised(u,c.left)&&t.report({node:c,loc:c.left.loc,messageId:"unexpected",data:{operator:r},suggest:[{messageId:"suggestNegatedExpression",data:{operator:r},fix(i){const h=[u.getFirstToken(c.left).range[1],c.range[1]],s=u.text.slice(h[0],h[1]);return i.replaceTextRange(h,`(${s})`)}},{messageId:"suggestParenthesisedNegation",fix(i){return i.replaceText(c.left,`(${u.getText(c.left)})`)}}]})}}}},Cc}var wc,lS;function wD(){if(lS)return wc;lS=1;const a=new Set(["+","-","/","*","%","**"]),e=new Set(["+=","-=","/=","*=","%=","**="]),n=new Set(["in","instanceof"]);function o(t){return t.type==="ObjectPattern"||t.type==="ArrayPattern"}return wc={meta:{type:"problem",defaultOptions:[{disallowArithmeticOperators:!1}],docs:{description:"Disallow use of optional chaining in contexts where the `undefined` value is not allowed",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unsafe-optional-chaining"},schema:[{type:"object",properties:{disallowArithmeticOperators:{type:"boolean"}},additionalProperties:!1}],fixable:null,messages:{unsafeOptionalChain:"Unsafe usage of optional chaining. If it short-circuits with 'undefined' the evaluation will throw TypeError.",unsafeArithmetic:"Unsafe arithmetic operation on optional chaining. It can result in NaN."}},create(t){const[{disallowArithmeticOperators:u}]=t.options;function p(f){t.report({messageId:"unsafeOptionalChain",node:f})}function c(f){t.report({messageId:"unsafeArithmetic",node:f})}function r(f,h){if(f)switch(f.type){case"LogicalExpression":f.operator==="||"||f.operator==="??"?r(f.right,h):f.operator==="&&"&&(r(f.left,h),r(f.right,h));break;case"SequenceExpression":r(f.expressions.at(-1),h);break;case"ConditionalExpression":r(f.consequent,h),r(f.alternate,h);break;case"AwaitExpression":r(f.argument,h);break;case"ChainExpression":h(f);break}}function m(f){r(f,p)}function i(f){r(f,c)}return{"AssignmentExpression, AssignmentPattern"(f){o(f.left)&&m(f.right)},"ClassDeclaration, ClassExpression"(f){m(f.superClass)},CallExpression(f){f.optional||m(f.callee)},NewExpression(f){m(f.callee)},VariableDeclarator(f){o(f.id)&&m(f.init)},MemberExpression(f){f.optional||m(f.object)},TaggedTemplateExpression(f){m(f.tag)},ForOfStatement(f){m(f.right)},SpreadElement(f){f.parent&&f.parent.type!=="ObjectExpression"&&m(f.argument)},BinaryExpression(f){n.has(f.operator)&&m(f.right),u&&a.has(f.operator)&&(i(f.right),i(f.left))},WithStatement(f){m(f.object)},UnaryExpression(f){u&&a.has(f.operator)&&i(f.argument)},AssignmentExpression(f){u&&e.has(f.operator)&&i(f.right)}}}},wc}var Ac,uS;function AD(){if(uS)return Ac;uS=1;const a=Ue();function e(){return!0}function n(){return!1}return Ac={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",docs:{description:"Disallow unused expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unused-expressions"},schema:[{type:"object",properties:{allowShortCircuit:{type:"boolean"},allowTernary:{type:"boolean"},allowTaggedTemplates:{type:"boolean"},enforceForJSX:{type:"boolean"},ignoreDirectives:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{allowShortCircuit:!1,allowTernary:!1,allowTaggedTemplates:!1,enforceForJSX:!1,ignoreDirectives:!1}],messages:{unusedExpression:"Expected an assignment or function call and instead saw an expression."}},create(o){const[{allowShortCircuit:t,allowTernary:u,allowTaggedTemplates:p,enforceForJSX:c,ignoreDirectives:r}]=o.options;function m(l){return l.type==="ExpressionStatement"&&l.expression.type==="Literal"&&typeof l.expression.value=="string"}function i(l,g){for(let d=0;d<g.length;++d)if(!l(g[d]))return g.slice(0,d);return g.slice()}function f(l){return i(m,l.body)}function h(l){return a.isTopLevelExpressionStatement(l)&&f(l.parent).includes(l)}const s=Object.assign(Object.create(null),{isDisallowed(l){return(s[l.type]||n)(l)},ArrayExpression:e,ArrowFunctionExpression:e,BinaryExpression:e,ChainExpression(l){return s.isDisallowed(l.expression)},ClassExpression:e,ConditionalExpression(l){return u?s.isDisallowed(l.consequent)||s.isDisallowed(l.alternate):!0},FunctionExpression:e,Identifier:e,JSXElement(){return c},JSXFragment(){return c},Literal:e,LogicalExpression(l){return t?s.isDisallowed(l.right):!0},MemberExpression:e,MetaProperty:e,ObjectExpression:e,SequenceExpression:e,TaggedTemplateExpression(){return!p},TemplateLiteral:e,ThisExpression:e,UnaryExpression(l){return l.operator!=="void"&&l.operator!=="delete"},TSAsExpression(l){return s.isDisallowed(l.expression)},TSTypeAssertion(l){return s.isDisallowed(l.expression)},TSNonNullExpression(l){return s.isDisallowed(l.expression)},TSInstantiationExpression(l){return s.isDisallowed(l.expression)}});return{ExpressionStatement(l){s.isDisallowed(l.expression)&&!a.isDirective(l)&&!(r&&h(l))&&o.report({node:l,messageId:"unusedExpression"})}}}},Ac}var Tc,cS;function TD(){if(cS)return Tc;cS=1;const a=Ue();return Tc={meta:{type:"suggestion",docs:{description:"Disallow unused labels",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unused-labels"},schema:[],fixable:"code",messages:{unused:"'{{name}}:' is defined but never used."}},create(e){const n=e.sourceCode;let o=null;function t(r){o={label:r.label.name,used:!1,upper:o}}function u(r){if(n.getTokenAfter(r.label,{includeComments:!0})!==n.getTokenBefore(r.body,{includeComments:!0}))return!1;let m=r.parent;for(;m.type==="LabeledStatement";)m=m.parent;if(m.type==="Program"||m.type==="BlockStatement"&&a.isFunction(m.parent)){const{body:i}=r;if(i.type==="ExpressionStatement"&&(i.expression.type==="Literal"&&typeof i.expression.value=="string"||a.isStaticTemplateLiteral(i.expression)))return!1}return!0}function p(r){o.used||e.report({node:r.label,messageId:"unused",data:r.label,fix:u(r)?m=>m.removeRange([r.range[0],r.body.range[0]]):null}),o=o.upper}function c(r){if(!r.label)return;const m=r.label.name;let i=o;for(;i;){if(i.label===m){i.used=!0;break}i=i.upper}}return{LabeledStatement:t,"LabeledStatement:exit":p,BreakStatement:c,ContinueStatement:c}}},Tc}var kc,fS;function kD(){return fS||(fS=1,kc={meta:{type:"problem",docs:{description:"Disallow unused private class members",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unused-private-class-members"},schema:[],messages:{unusedPrivateClassMember:"'{{classMemberName}}' is defined but never used."}},create(a){const e=[];function n(o){const t=o.parent.parent,u=t.type==="AssignmentExpression";return!u&&t.type!=="ForInStatement"&&t.type!=="ForOfStatement"&&t.type!=="AssignmentPattern"||t.left!==o.parent?!1:u&&t.operator!=="="?t.parent.type==="ExpressionStatement":!0}return{ClassBody(o){const t=new Map;e.unshift(t);for(const u of o.body)(u.type==="PropertyDefinition"||u.type==="MethodDefinition")&&u.key.type==="PrivateIdentifier"&&t.set(u.key.name,{declaredNode:u,isAccessor:u.type==="MethodDefinition"&&(u.kind==="set"||u.kind==="get")})},PrivateIdentifier(o){const t=e.find(r=>r.has(o.name));if(!t)return;const u=t.get(o.name);if(u.isUsed||o.parent.type==="PropertyDefinition"||o.parent.type==="MethodDefinition")return;if(u.isAccessor){u.isUsed=!0;return}if(n(o))return;const p=o.parent.parent.type,c=o.parent.parent.parent.type;p==="UpdateExpression"&&c==="ExpressionStatement"||p==="Property"&&c==="ObjectPattern"&&o.parent.parent.value===o.parent||p!=="RestElement"&&p!=="ArrayPattern"&&(u.isUsed=!0)},"ClassBody:exit"(){const o=e.shift();for(const[t,{declaredNode:u,isUsed:p}]of o.entries())p||a.report({node:u,loc:u.key.loc,messageId:"unusedPrivateClassMember",data:{classMemberName:`#${t}`}})}}}}),kc}var Dc,pS;function DD(){if(pS)return Dc;pS=1;const a=Ue();return Dc={meta:{type:"problem",docs:{description:"Disallow unused variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unused-vars"},hasSuggestions:!0,schema:[{oneOf:[{enum:["all","local"]},{type:"object",properties:{vars:{enum:["all","local"]},varsIgnorePattern:{type:"string"},args:{enum:["all","after-used","none"]},ignoreRestSiblings:{type:"boolean"},argsIgnorePattern:{type:"string"},caughtErrors:{enum:["all","none"]},caughtErrorsIgnorePattern:{type:"string"},destructuredArrayIgnorePattern:{type:"string"},ignoreClassWithStaticInitBlock:{type:"boolean"},reportUsedIgnorePattern:{type:"boolean"}},additionalProperties:!1}]}],messages:{unusedVar:"'{{varName}}' is {{action}} but never used{{additional}}.",usedIgnoredVar:"'{{varName}}' is marked as ignored but is used{{additional}}.",removeVar:"Remove unused variable '{{varName}}'."}},create(e){const n=e.sourceCode,o=/^(?:RestElement|(?:Experimental)?RestProperty)$/u,t={vars:"all",args:"after-used",ignoreRestSiblings:!1,caughtErrors:"all",ignoreClassWithStaticInitBlock:!1,reportUsedIgnorePattern:!1},u=e.options[0];u&&(typeof u=="string"?t.vars=u:(t.vars=u.vars||t.vars,t.args=u.args||t.args,t.ignoreRestSiblings=u.ignoreRestSiblings||t.ignoreRestSiblings,t.caughtErrors=u.caughtErrors||t.caughtErrors,t.ignoreClassWithStaticInitBlock=u.ignoreClassWithStaticInitBlock||t.ignoreClassWithStaticInitBlock,t.reportUsedIgnorePattern=u.reportUsedIgnorePattern||t.reportUsedIgnorePattern,u.varsIgnorePattern&&(t.varsIgnorePattern=new RegExp(u.varsIgnorePattern,"u")),u.argsIgnorePattern&&(t.argsIgnorePattern=new RegExp(u.argsIgnorePattern,"u")),u.caughtErrorsIgnorePattern&&(t.caughtErrorsIgnorePattern=new RegExp(u.caughtErrorsIgnorePattern,"u")),u.destructuredArrayIgnorePattern&&(t.destructuredArrayIgnorePattern=new RegExp(u.destructuredArrayIgnorePattern,"u"))));function p(F){if(t.destructuredArrayIgnorePattern&&F.name.parent.type==="ArrayPattern")return"array-destructure";switch(F.type){case"CatchClause":return"catch-clause";case"Parameter":return"parameter";default:return"variable"}}function c(F){let P,N;switch(F){case"array-destructure":P=t.destructuredArrayIgnorePattern,N="elements of array destructuring";break;case"catch-clause":P=t.caughtErrorsIgnorePattern,N="caught errors";break;case"parameter":P=t.argsIgnorePattern,N="args";break;case"variable":P=t.varsIgnorePattern,N="vars";break;default:throw new Error(`Unexpected variable type: ${F}`)}return P&&(P=P.toString()),[N,P]}function r(F){const P=F.defs&&F.defs[0];let N="";if(P){const[j,V]=c(p(P));V&&j&&(N=`. Allowed unused ${j} must match ${V}`)}return{varName:F.name,action:"defined",additional:N}}function m(F){const P=F.defs&&F.defs[0];let N="";if(P){const[j,V]=c(p(P));V&&j&&(N=`. Allowed unused ${j} must match ${V}`)}return{varName:F.name,action:"assigned a value",additional:N}}function i(F,P){const[N,j]=c(P);let V="";return j&&N&&(V=`. Used ${N} must not match ${j}`),{varName:F.name,additional:V}}const f=/(?:Statement|Declaration)$/u;function h(F){const P=F.defs[0];if(P){let N=P.node;if(N.type==="VariableDeclarator")N=N.parent;else if(P.type==="Parameter")return!1;return N.parent.type.indexOf("Export")===0}return!1}function s(F){return F.type==="Property"&&F.parent.type==="ObjectPattern"&&o.test(F.parent.properties.at(-1).type)}function l(F){if(t.ignoreRestSiblings){const P=F.defs.some(j=>s(j.name.parent)),N=F.references.some(j=>s(j.identifier.parent));return P||N}return!1}function g(F){return F.isRead()}function d(F,P){let N=F.from;for(;N;){if(P.includes(N.block))return!0;N=N.upper}return!1}function v(F){const P=[];return F.defs.forEach(N=>{const{type:j,node:V}=N;j==="FunctionName"&&P.push(V),j==="Variable"&&V.init&&(V.init.type==="FunctionExpression"||V.init.type==="ArrowFunctionExpression")&&P.push(V.init)}),P}function S(F,P){return F.range[0]>=P.range[0]&&F.range[1]<=P.range[1]}function b(F){const P=F.parent;return P.type==="ExpressionStatement"?!0:P.type==="SequenceExpression"?P.expressions.at(-1)===F?b(P):!0:!1}function w(F,P){const N=F.identifier,j=N.parent,V=F.from.variableScope,O=F.resolved.scope.variableScope,G=V!==O||a.isInLoop(N);return P&&S(N,P)?P:j.type==="AssignmentExpression"&&b(j)&&N===j.left&&!G?j.right:null}function C(F,P){let N=F,j=F.parent;for(;j&&S(j,P);){switch(j.type){case"SequenceExpression":if(j.expressions.at(-1)!==N)return!1;break;case"CallExpression":case"NewExpression":return j.callee!==N;case"AssignmentExpression":case"TaggedTemplateExpression":case"YieldExpression":return!0;default:if(f.test(j.type))return!0}N=j,j=j.parent}return!1}function E(F,P){const N=a.getUpperFunction(F);return N&&S(N,P)&&C(N,P)}function T(F,P){const N=F.identifier,j=N.parent;return F.isRead()&&(j.type==="AssignmentExpression"&&j.left===N&&b(j)&&!a.isLogicalAssignmentOperator(j.operator)||j.type==="UpdateExpression"&&b(j)||P&&S(N,P)&&!E(N,P))}function x(F){let P=F.identifier.parent;return P.type==="VariableDeclarator"&&(P=P.parent.parent),P.type!=="ForInStatement"&&P.type!=="ForOfStatement"||(P.body.type==="BlockStatement"?P=P.body.body[0]:P=P.body,!P)?!1:P.type==="ReturnStatement"}function A(F){if(F.eslintUsed)return!0;const P=v(F),N=P.length>0;let j=null;return F.references.some(V=>{if(x(V))return!0;const O=T(V,j);return j=w(V,j),g(V)&&!O&&!(N&&d(V,P))})}function k(F){const P=F.defs[0],N=n.getDeclaredVariables(P.node);return!N.slice(N.indexOf(F)+1).some(V=>V.references.length>0||V.eslintUsed)}function B(F,P){const N=F.variables,j=F.childScopes;let V,O;if(F.type!=="global"||t.vars==="all")for(V=0,O=N.length;V<O;++V){const G=N[V];if(F.type==="class"&&F.block.id===G.identifiers[0]||F.functionExpressionScope||!t.reportUsedIgnorePattern&&G.eslintUsed||F.type==="function"&&G.name==="arguments"&&G.identifiers.length===0)continue;const L=G.defs[0];if(L){const K=L.type,H=G.references.some(ae=>ae.identifier.parent.type==="ArrayPattern");if((L.name.parent.type==="ArrayPattern"||H)&&t.destructuredArrayIgnorePattern&&t.destructuredArrayIgnorePattern.test(L.name.name)){t.reportUsedIgnorePattern&&A(G)&&e.report({node:L.name,messageId:"usedIgnoredVar",data:i(G,"array-destructure")});continue}if(K==="ClassName"){const ae=L.node.body.body.some(re=>re.type==="StaticBlock");if(t.ignoreClassWithStaticInitBlock&&ae)continue}if(K==="CatchClause"){if(t.caughtErrors==="none")continue;if(t.caughtErrorsIgnorePattern&&t.caughtErrorsIgnorePattern.test(L.name.name)){t.reportUsedIgnorePattern&&A(G)&&e.report({node:L.name,messageId:"usedIgnoredVar",data:i(G,"catch-clause")});continue}}else if(K==="Parameter"){if((L.node.parent.type==="Property"||L.node.parent.type==="MethodDefinition")&&L.node.parent.kind==="set"||t.args==="none")continue;if(t.argsIgnorePattern&&t.argsIgnorePattern.test(L.name.name)){t.reportUsedIgnorePattern&&A(G)&&e.report({node:L.name,messageId:"usedIgnoredVar",data:i(G,"parameter")});continue}if(t.args==="after-used"&&a.isFunction(L.name.parent)&&!k(G))continue}else if(t.varsIgnorePattern&&t.varsIgnorePattern.test(L.name.name)){t.reportUsedIgnorePattern&&A(G)&&e.report({node:L.name,messageId:"usedIgnoredVar",data:i(G,"variable")});continue}}!A(G)&&!h(G)&&!l(G)&&P.push(G)}for(V=0,O=j.length;V<O;++V)B(j[V],P);return P}function R(F,P){const N=P.identifiers[0],j=N.parent,V=j.type,O=n.getTokenBefore(N),G=n.getTokenAfter(N),L=a.isFunction,K=a.isLoop,H=P.references.filter(z=>z.isWrite());function ae(z,Q){return n.getTokenBefore(z,Q).range[0]}function re(z,Q){return n.getTokenAfter(z,Q).range[1]}function De(z){return n.getTokenBefore(z).value}function Y(z){return n.getTokenAfter(z).value}function I(z){return z.elements.filter(Q=>Q!==null).length===1}function W(z,Q){return z.specifiers.some(Re=>Re.type===Q)}function ue(z,Q){return z.type==="String"||Q&&!a.isSemicolonToken(Q)&&!a.isOpeningBraceToken(Q)}function oe(z){const Q=z.parent;return L(Q)?Q.params.length===1?F.removeRange(z.range):De(z)==="("&&Y(z)===","?F.removeRange([z.range[0],re(z)]):F.removeRange([ae(z),z.range[1]]):null}function ne(z){const Q=z.parent;if(Q.type==="VariableDeclarator"){if(K(Q.parent.parent))return null;if(Q.parent.declarations.length===1){const Re=n.getTokenAfter(Q.parent),$=n.getTokenBefore(Q.parent);return Re&&ue(Re,$)?null:F.removeRange(Q.parent.range)}return De(Q)===","?F.removeRange([ae(Q),Q.range[1]]):F.removeRange([Q.range[0],re(Q)])}return De(z)===":"&&Q.parent.type==="ObjectPattern"?ge(z):oe(z)}function he(z){const Q=z.parent;return Q.parent.parent.parent.type==="ObjectPattern"&&Q.parent.properties.length===1?he(Q.parent):Q.parent.type==="ObjectPattern"?Q.parent.properties.length===1?ne(Q.parent):De(Q)==="{"?F.removeRange([Q.range[0],re(Q)]):F.removeRange([ae(Q),Q.range[1]]):null}function ye(z){const Q=z.parent;return Q.parent.type==="ArrayPattern"&&I(Q)?ye(Q):I(Q)?De(Q)===":"?ne(Q):Q.parent.type==="RestElement"?Ce(Q.parent):ne(Q):De(z)===","&&Y(z)==="]"?F.removeRange([ae(z),z.range[1]]):F.removeRange(z.range)}function ge(z){const Q=z.parent.parent;return Q.parent.type==="ArrayPattern"&&Q.properties.length===1?ye(Q):he(z)}function Ce(z){const Q=z.parent;return L(Q)?Q.params.length===1?F.removeRange(z.range):F.removeRange([ae(z),z.range[1]]):Q.type==="ArrayPattern"?I(Q)?Q.parent.type==="ArrayPattern"?ye(Q):ne(Q):F.removeRange([ae(z),z.range[1]]):null}if(H.some(z=>z.identifier.range[0]!==N.range[0]))return null;if(V==="VariableDeclarator"){if(j.parent.declarations.length===1){if(K(j.parent.parent)&&j.parent.parent.body!==j.parent)return null;if(j.parent.parent.type==="IfStatement"||K(j.parent.parent)||j.parent.parent.type==="WithStatement"&&j.parent.parent.body===j.parent)return F.replaceText(j.parent,";");const z=n.getTokenAfter(j.parent),Q=n.getTokenBefore(j.parent);return z&&ue(z,Q)?null:F.removeRange(j.parent.range)}return O.value===","?F.removeRange([O.range[0],j.range[1]]):F.removeRange([j.range[0],re(j)])}if(j.parent.type==="ObjectPattern"){if(j.parent.properties.length===1)return j.parent.parent.type==="RestElement"?Ce(j.parent.parent):j.parent.parent.type==="ArrayPattern"?ye(j.parent):ne(j.parent);if(O.value===":")return De(j)==="{"&&Y(j)===","?F.removeRange([j.range[0],re(j)]):F.removeRange([ae(j),N.range[1]])}if(V==="ArrayPattern"){if(I(j))return j.parent.type==="RestElement"?Ce(j.parent):j.parent.type==="ArrayPattern"?ye(j):ne(j);if(O.value===","&&G.value===",")return F.removeRange(N.range)}if(V==="RestElement"){if(j.parent.type==="ArrayPattern")return I(j.parent)?j.parent.parent.type==="ArrayPattern"?ye(j.parent):ne(j.parent):F.removeRange([ae(N,1),N.range[1]]);if(j.parent.type==="ObjectPattern")return j.parent.properties.length===1?ne(j.parent):F.removeRange([ae(N,1),N.range[1]]);if(L(j.parent))return j.parent.params.length===1?F.removeRange(j.range):F.removeRange([ae(j),j.range[1]])}if(V==="AssignmentPattern"){if(j.parent.type==="ArrayPattern")return ye(j);if(j.parent.parent.type==="ObjectPattern")return j.parent.parent.properties.length===1?j.parent.parent.parent.type==="ArrayPattern"?ye(j.parent.parent):ne(j.parent.parent):De(j.parent)==="{"&&Y(j.parent)===","?F.removeRange([j.parent.range[0],re(j.parent)]):F.removeRange([ae(j.parent),j.parent.range[1]]);if(L(j.parent))return oe(j)}if(V==="FunctionDeclaration"&&j.id===N)return F.removeRange(j.range);if(V==="ImportDefaultSpecifier")return!W(j.parent,"ImportSpecifier")&&!W(j.parent,"ImportNamespaceSpecifier")?F.removeRange([j.range[0],j.parent.source.range[0]]):F.removeRange([N.range[0],G.range[1]]);if(V==="ImportSpecifier")return j.parent.specifiers.filter(z=>z.type==="ImportSpecifier").length===1?W(j.parent,"ImportDefaultSpecifier")?F.removeRange([ae(j,1),G.range[1]]):F.removeRange(j.parent.range):De(j)==="{"?F.removeRange([j.range[0],re(j)]):F.removeRange([ae(j),j.range[1]]);if(V==="ImportNamespaceSpecifier")return W(j.parent,"ImportDefaultSpecifier")?F.removeRange([ae(j),j.range[1]]):F.removeRange([j.range[0],j.parent.source.range[0]]);if(V==="CatchClause")return null;if(V==="ClassDeclaration")return F.removeRange(j.range);if(O?.value===",")return F.removeRange([O.range[0],N.range[1]]);if(G.value===","){if(O.value==="(")return F.removeRange([N.range[0],G.range[1]]);if(O.value==="{")return F.removeRange([N.range[0],G.range[1]])}return V==="ArrowFunctionExpression"&&j.params.length===1&&G?.value!==")"?F.replaceText(N,"()"):F.removeRange(N.range)}return{"Program:exit"(F){const P=B(n.getScope(F),[]);for(let N=0,j=P.length;N<j;++N){const V=P[N];if(V.defs.length>0){const O=V.references.filter(L=>L.isWrite()&&L.from.variableScope===V.scope.variableScope);let G;O.length>0&&(G=O.at(-1)),e.report({node:G?G.identifier:V.identifiers[0],messageId:"unusedVar",data:V.references.some(L=>L.isWrite())?m(V):r(V),suggest:[{messageId:"removeVar",data:{varName:V.name},fix(L){return R(L,V)}}]})}else if(V.eslintExplicitGlobalComments){const O=V.eslintExplicitGlobalComments[0];e.report({node:F,loc:a.getNameLocationInGlobalDirectiveComment(n,O,V.name),messageId:"unusedVar",data:r(V)})}}}}}},Dc}var Ic,mS;function ID(){if(mS)return Ic;mS=1;const a=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u,e=/^For(?:In|Of)Statement$/u;function n(i){return typeof i=="object"&&i!==null?i:{functions:typeof i=="string"?i!=="nofunc":!0,classes:!0,variables:!0,allowNamedExports:!1,enums:!0,typedefs:!0,ignoreTypeReferences:!0}}function o(i,f){return i&&i.range[0]<=f&&f<=i.range[1]}function t(i,f){return i.body.some(h=>h.type==="StaticBlock"&&o(h,f)||h.type==="PropertyDefinition"&&h.static&&h.value&&o(h.value,f))}function u(i){return i.type==="class-static-block"?!0:i.type==="class-field-initializer"?i.block.parent.static:!1}function p(i){const f=i.resolved;let h=i.from;for(;f.scope.variableScope!==h.variableScope;)if(u(h.variableScope))h=h.variableScope.upper;else return!0;return!1}function c(i){if(p(i))return!1;const f=i.identifier.range[1],h=i.resolved.defs[0];if(h.type==="ClassName"){const l=h.node;return o(l,f)&&!t(l.body,f)}let s=h.name.parent;for(;s;){if(s.type==="VariableDeclarator"){if(o(s.init,f)||e.test(s.parent.parent.type)&&o(s.parent.parent.right,f))return!0;break}else if(s.type==="AssignmentPattern"){if(o(s.right,f))return!0}else if(a.test(s.type))break;s=s.parent}return!1}function r(i){switch(i.type){case"TSTypeQuery":return!0;case"TSQualifiedName":case"Identifier":return r(i.parent);default:return!1}}function m(i,f){if(i.defs[0].type!=="ClassName"||!i.defs[0].node.decorators||i.defs[0].node.decorators.length===0)return!1;for(const h of i.defs[0].node.decorators)if(f.identifier.range[0]>=h.range[0]&&f.identifier.range[1]<=h.range[1])return!0;return!1}return Ic={meta:{dialects:["javascript","typescript"],language:"javascript",type:"problem",docs:{description:"Disallow the use of variables before they are defined",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-use-before-define"},schema:[{oneOf:[{enum:["nofunc"]},{type:"object",properties:{functions:{type:"boolean"},classes:{type:"boolean"},variables:{type:"boolean"},allowNamedExports:{type:"boolean"},enums:{type:"boolean"},typedefs:{type:"boolean"},ignoreTypeReferences:{type:"boolean"}},additionalProperties:!1}]}],defaultOptions:[{classes:!0,functions:!0,variables:!0,allowNamedExports:!1,enums:!0,typedefs:!0,ignoreTypeReferences:!0}],messages:{usedBeforeDefined:"'{{name}}' was used before it was defined."}},create(i){const f=n(i.options[0]),h=i.sourceCode;function s(g){if(g.init)return!1;const{identifier:d}=g;if(f.allowNamedExports&&d.parent.type==="ExportSpecifier"&&d.parent.local===d)return!1;const v=g.resolved;if(!v||v.defs.length===0)return!1;const S=v.defs[0].type;if(!f.functions&&S==="FunctionName"||(!f.variables&&S==="Variable"||!f.classes&&S==="ClassName")&&p(g)||!f.enums&&S==="TSEnumName"||!f.typedefs&&S==="Type"||f.ignoreTypeReferences&&(r(d)||d.parent.type==="TSTypeReference"))return!1;if(d.parent.type==="TSQualifiedName"){let b=d.parent;for(;b.type==="TSQualifiedName";)b=b.left;return b===d}return!m(v,g)}function l(g){g.references.filter(s).forEach(d=>{const S=d.resolved.defs[0].name;(d.identifier.range[1]<S.range[1]||c(d)&&d.identifier.parent.type!=="TSTypeReference")&&i.report({node:d.identifier,messageId:"usedBeforeDefined",data:d.identifier})}),g.childScopes.forEach(l)}return{Program(g){l(h.getScope(g))}}}},Ic}var Pc,hS;function PD(){if(hS)return Pc;hS=1;const{findVariable:a}=qt();function*e(t){switch(t.type){case"Identifier":yield t;return;case"ObjectPattern":for(const u of t.properties)yield*e(u.type==="Property"?u.value:u);return;case"ArrayPattern":for(const u of t.elements)u&&(yield*e(u));return;case"RestElement":yield*e(t.argument);return;case"AssignmentPattern":yield*e(t.left)}}function n(t,u){return!(u.range[0]<t.identifier.range[1]||t.expression&&t.expression.range[0]<=u.range[0]&&u.range[1]<=t.expression.range[1])}function o(t,u){return t.expression?t.identifier.range[1]<=u.range[0]&&u.range[1]<=t.expression.range[0]:!1}return Pc={meta:{type:"problem",docs:{description:"Disallow variable assignments when the value is not used",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-assignment"},schema:[],messages:{unnecessaryAssignment:"This assigned value is not used in subsequent statements."}},create(t){const u=t.sourceCode;let p=null;const c=new Set;function r(i){let f=i;for(;f;){if(c.has(f))return f;f=f.upper}return null}function m(i){function f(s,l){const g=i.segments[s.id];return g.first&&g.last&&g.first.range[0]<=l.range[0]&&l.range[1]<=g.last.range[1]}function h(s,l){if(i.tryStatementBlocks.some(w=>w.range[0]<=s.identifier.range[0]&&s.identifier.range[1]<=w.range[1]))return;const d={results:[],subsequentSegments:new Set,queueSegments:s.segments.flatMap(w=>w.nextSegments)};function*v(){for(yield*d.results;d.queueSegments.length>0;){const w=d.queueSegments.shift();if(d.subsequentSegments.has(w))continue;d.subsequentSegments.add(w);const C=l.find(T=>T.segments.includes(w)&&!o(T,s.identifier));C||d.queueSegments.push(...w.nextSegments);const E={segment:w,assignment:C};d.results.push(E),yield E}}if(s.variable.references.some(w=>w.identifier.type!=="Identifier"))return;const S=s.variable.references.filter(w=>w.isRead());if(!S.length)return;const b=l.find(w=>w===s||w.segments.length&&w.segments.every(C=>!s.segments.includes(C))?!1:!!(n(s,w.identifier)||w.expression&&w.expression.range[0]<=s.identifier.range[0]&&s.identifier.range[1]<=w.expression.range[1]));for(const w of S){if(i.scope!==r(w.from))return;if(n(s,w.identifier)&&(o(s,w.identifier)||s.segments.some(C=>f(C,w.identifier)))){if(b&&n(b,w.identifier))continue;return}if(!b){for(const C of v())if(f(C.segment,w.identifier)){if(C.assignment&&n(C.assignment,w.identifier))continue;return}}}t.report({node:s.identifier,messageId:"unnecessaryAssignment"})}for(const s of i.assignments.values()){s.sort((l,g)=>l.identifier.range[0]-g.identifier.range[0]);for(const l of s)h(l,s)}}return{onCodePathStart(i,f){const h=u.getScope(f);p={upper:p,codePath:i,scope:h,segments:Object.create(null),currentSegments:new Set,assignments:new Map,tryStatementBlocks:[]},c.add(p.scope)},onCodePathEnd(){m(p),p=p.upper},onCodePathSegmentStart(i){const f={segment:i,first:null,last:null};p.segments[i.id]=f,p.currentSegments.add(i)},onCodePathSegmentEnd(i){p.currentSegments.delete(i)},TryStatement(i){p.tryStatementBlocks.push(i.block)},Identifier(i){for(const f of p.currentSegments){const h=p.segments[f.id];h.first||(h.first=i),h.last=i}},":matches(VariableDeclarator[init!=null], AssignmentExpression, UpdateExpression):exit"(i){if(p.currentSegments.size===0)return;const f=p.assignments;let h,s=null;i.type==="VariableDeclarator"?(h=i.id,s=i.init):i.type==="AssignmentExpression"?(h=i.left,s=i.right):h=i.argument;for(const l of e(h)){const g=u.getScope(l),d=a(g,l);if(!d||d.scope.type==="global"&&d.defs.length===0||p.scope!==r(d.scope)||d.eslintUsed||d.scope.type==="module"&&(d.defs.some(S=>S.type==="Variable"&&S.parent.parent.type==="ExportNamedDeclaration"||S.type==="FunctionName"&&(S.node.parent.type==="ExportNamedDeclaration"||S.node.parent.type==="ExportDefaultDeclaration")||S.type==="ClassName"&&(S.node.parent.type==="ExportNamedDeclaration"||S.node.parent.type==="ExportDefaultDeclaration"))||d.references.some(S=>S.identifier.parent.type==="ExportSpecifier")))continue;let v=f.get(d);v||(v=[],f.set(d,v)),v.push({variable:d,identifier:l,node:i,expression:s,segments:[...p.currentSegments]})}}}}},Pc}var Fc,dS;function FD(){if(dS)return Fc;dS=1;const{CALL:a,CONSTRUCT:e,ReferenceTracker:n,getStringIfConstant:o}=qt(),{RegExpParser:t,visitRegExpAST:u}=ur(),p=new t;function c(i){const f=[];let h=i;do f.push(h),h=h.parent;while(h);return f}function r(i){return i.type==="Assertion"&&(i.kind==="lookahead"||i.kind==="lookbehind")}function m(i){return r(i)&&i.negate}return Fc={meta:{type:"problem",docs:{description:"Disallow useless backreferences in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-backreference"},schema:[],messages:{nested:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} from within that group.",forward:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which appears later in the pattern.",backward:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which appears before in the same lookbehind.",disjunctive:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which is in another alternative.",intoNegativeLookaround:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which is in a negative lookaround."}},create(i){const f=i.sourceCode;function h(s,l,g){let d;try{d=p.parsePattern(l,0,l.length,{unicode:g.includes("u"),unicodeSets:g.includes("v")})}catch{return}u(d,{onBackreferenceEnter(v){const S=[v.resolved].flat(),b=c(v),w=S.map(B=>{const R=c(B);if(b.includes(B))return{messageId:"nested",group:B};let F=b.length-1,P=R.length-1;do F--,P--;while(b[F]===R[P]);const N=P+1,j=R.slice(0,N),V=R.slice(N),O=V.find(r),G=O&&O.kind==="lookbehind";return j.at(-1).type==="Alternative"?{messageId:"disjunctive",group:B}:!G&&v.end<=B.start?{messageId:"forward",group:B}:G&&B.end<=v.start?{messageId:"backward",group:B}:j.some(m)?{messageId:"intoNegativeLookaround",group:B}:null});if(w.length===0||w.some(B=>!B))return;let C;const E=w.filter(B=>B.messageId!=="disjunctive");E.length?C=E:C=w;const[{messageId:T,group:x},...A]=C;let k="";A.length===1?k=" and another group":A.length>1&&(k=` and other ${A.length} groups`),i.report({node:s,messageId:T,data:{bref:v.raw,group:x.raw,otherGroups:k}})}})}return{"Literal[regex]"(s){const{pattern:l,flags:g}=s.regex;h(s,l,g)},Program(s){const l=f.getScope(s),g=new n(l),d={RegExp:{[a]:!0,[e]:!0}};for(const{node:v}of g.iterateGlobalReferences(d)){const[S,b]=v.arguments,w=o(S,l),C=o(b,l);typeof w=="string"&&h(v,w,C||"")}}}}},Fc}var Rc,gS;function RD(){if(gS)return Rc;gS=1;const a=Ue();function e(o){const t=a.skipChainExpression(o.callee);return t.type==="MemberExpression"&&t.property.type==="Identifier"&&t.computed===!1&&(t.property.name==="call"&&o.arguments.length>=1||t.property.name==="apply"&&o.arguments.length===2&&o.arguments[1].type==="ArrayExpression")}function n(o,t,u){return o?a.equalTokens(o,t,u):a.isNullOrUndefined(t)}return Rc={meta:{type:"suggestion",docs:{description:"Disallow unnecessary calls to `.call()` and `.apply()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-call"},schema:[],messages:{unnecessaryCall:"Unnecessary '.{{name}}()'."}},create(o){const t=o.sourceCode;return{CallExpression(u){if(!e(u))return;const p=a.skipChainExpression(u.callee),c=a.skipChainExpression(p.object),r=c.type==="MemberExpression"?c.object:null,m=u.arguments[0];n(r,m,t)&&o.report({node:u,messageId:"unnecessaryCall",data:{name:p.property.name}})}}}},Rc}var _c,yS;function _D(){return yS||(yS=1,_c={meta:{type:"suggestion",docs:{description:"Disallow unnecessary `catch` clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-catch"},schema:[],messages:{unnecessaryCatchClause:"Unnecessary catch clause.",unnecessaryCatch:"Unnecessary try/catch wrapper."}},create(a){return{CatchClause(e){e.param&&e.param.type==="Identifier"&&e.body.body.length&&e.body.body[0].type==="ThrowStatement"&&e.body.body[0].argument.type==="Identifier"&&e.body.body[0].argument.name===e.param.name&&(e.parent.finalizer?a.report({node:e,messageId:"unnecessaryCatchClause"}):a.report({node:e.parent,messageId:"unnecessaryCatch"}))}}}}),_c}var Bc,vS;function BD(){if(vS)return Bc;vS=1;const a=Ue();function e(n){if(!n.computed)return!1;const{key:o}=n;if(o.type!=="Literal")return!1;const{value:t}=o;if(typeof t!="number"&&typeof t!="string")return!1;switch(n.type){case"Property":return n.parent.type==="ObjectExpression"?t!=="__proto__":!0;case"PropertyDefinition":return n.static?t!=="constructor"&&t!=="prototype":t!=="constructor";case"MethodDefinition":return n.static?t!=="prototype":t!=="constructor";default:throw new Error(`Unexpected node type: ${n.type}`)}}return Bc={meta:{type:"suggestion",defaultOptions:[{enforceForClassMembers:!0}],docs:{description:"Disallow unnecessary computed property keys in objects and classes",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-useless-computed-key"},schema:[{type:"object",properties:{enforceForClassMembers:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{unnecessarilyComputedProperty:"Unnecessarily computed property [{{property}}] found."}},create(n){const o=n.sourceCode,[{enforceForClassMembers:t}]=n.options;function u(c){if(e(c)){const{key:r}=c;n.report({node:c,messageId:"unnecessarilyComputedProperty",data:{property:o.getText(r)},fix(m){const i=o.getTokenBefore(r,a.isOpeningBracketToken),f=o.getTokenAfter(r,a.isClosingBracketToken);if(o.commentsExistBetween(i,f))return null;const h=o.getTokenBefore(i),l=(h.range[1]===i.range[0]&&!a.canTokensBeAdjacent(h,o.getFirstToken(r))?" ":"")+r.raw;return m.replaceTextRange([i.range[0],f.range[1]],l)}})}}function p(){}return{Property:u,MethodDefinition:t?u:p,PropertyDefinition:t?u:p}}},Bc}var Lc,ES;function LD(){if(ES)return Lc;ES=1;const a=Ue();function e(u){return u.type==="BinaryExpression"&&u.operator==="+"}function n(u){return u.value==="+"&&u.type==="Punctuator"}function o(u){let p=u.left;for(;e(p);)p=p.right;return p}function t(u){let p=u.right;for(;e(p);)p=p.left;return p}return Lc={meta:{type:"suggestion",docs:{description:"Disallow unnecessary concatenation of literals or template literals",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-useless-concat"},schema:[],messages:{unexpectedConcat:"Unexpected string concatenation of literals."}},create(u){const p=u.sourceCode;return{BinaryExpression(c){if(c.operator!=="+")return;const r=o(c),m=t(c);if(a.isStringLiteral(r)&&a.isStringLiteral(m)&&a.isTokenOnSameLine(r,m)){const i=p.getFirstTokenBetween(r,m,n);u.report({node:c,loc:i.loc,messageId:"unexpectedConcat"})}}}}},Lc}var Oc,SS;function OD(){if(SS)return Oc;SS=1;const a=Ue();function e(f){return f.value.params.some(h=>h.decorators?.length||h.type==="TSParameterProperty")}function n(f){switch(f.accessibility){case"protected":case"private":return!0;case"public":return!!f.parent.parent.superClass;default:return!1}}function o(f){return f.length===1&&f[0].type==="ExpressionStatement"&&f[0].expression.type==="CallExpression"&&f[0].expression.callee.type==="Super"}function t(f){return f.type==="Identifier"||f.type==="RestElement"}function u(f){return f.length===1&&f[0].type==="SpreadElement"&&f[0].argument.type==="Identifier"&&f[0].argument.name==="arguments"}function p(f,h){return f.type==="Identifier"&&h.type==="Identifier"&&f.name===h.name}function c(f,h){return f.type==="RestElement"&&h.type==="SpreadElement"&&p(f.argument,h.argument)}function r(f,h){return p(f,h)||c(f,h)}function m(f,h){if(f.length!==h.length)return!1;for(let s=0;s<f.length;++s)if(!r(f[s],h[s]))return!1;return!0}function i(f,h){return o(f)&&h.every(t)&&(u(f[0].expression.arguments)||m(h,f[0].expression.arguments))}return Oc={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",docs:{description:"Disallow unnecessary constructors",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-constructor"},hasSuggestions:!0,schema:[],messages:{noUselessConstructor:"Useless constructor.",removeConstructor:"Remove the constructor."}},create(f){function h(s){if(s.kind!=="constructor"||s.value.type!=="FunctionExpression"||e(s)||n(s)||!s.value.body)return;const l=s.value.body.body,g=s.value.params;(s.parent.parent.superClass?i(l,g):l.length===0)&&f.report({node:s,messageId:"noUselessConstructor",suggest:[{messageId:"removeConstructor",*fix(v){const S=f.sourceCode.getTokenAfter(s),b=S.type==="Punctuator"&&S.value==="["&&a.needsPrecedingSemicolon(f.sourceCode,s);yield v.replaceText(s,b?";":"")}}]})}return{MethodDefinition:h}}},Oc}var Nc,bS;function ND(){if(bS)return Nc;bS=1;const a=Ue(),{RegExpParser:e,visitRegExpAST:n}=ur();function o(m,i){return new Set(function*(){yield*m,yield*i}())}const t=o(new Set("\\nrvtbfux"),a.LINEBREAKS),u=new Set("\\bcdDfnpPrsStvwWxu0123456789]"),p=o(u,new Set("^/.$*+?[{}|()Bk")),c=o(u,new Set("q/[{}|()-")),r=new Set("!#$%&*+,.:;<=>?@^`~");return Nc={meta:{type:"suggestion",defaultOptions:[{allowRegexCharacters:[]}],docs:{description:"Disallow unnecessary escape characters",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-escape"},hasSuggestions:!0,messages:{unnecessaryEscape:"Unnecessary escape character: \\{{character}}.",removeEscape:"Remove the `\\`. This maintains the current functionality.",removeEscapeDoNotKeepSemantics:"Remove the `\\` if it was inserted by mistake.",escapeBackslash:"Replace the `\\` with `\\\\` to include the actual backslash character."},schema:[{type:"object",properties:{allowRegexCharacters:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}]},create(m){const i=m.sourceCode,[{allowRegexCharacters:f}]=m.options,h=new e;function s(v,S,b,w){const C=v.range[0]+S,E=[C,C+1],T=i.getLocFromIndex(C);m.report({node:v,loc:{start:T,end:{line:T.line,column:T.column+1}},messageId:"unnecessaryEscape",data:{character:b},suggest:[{messageId:a.isDirective(v.parent)?"removeEscapeDoNotKeepSemantics":"removeEscape",fix(x){return x.removeRange(E)}},...w?[]:[{messageId:"escapeBackslash",fix(x){return x.insertTextBeforeRange(E,"\\")}}]]})}function l(v,S){const b=v.type==="TemplateElement",w=S[0][1];let C=!t.has(w),E;b?(E=w==="`",w==="$"?C=S.input[S.index+2]!=="{":w==="{"&&(C=S.input[S.index-1]!=="$")):E=w===v.raw[0],C&&!E&&s(v,S.index,S[0].slice(1))}function g(v){const{pattern:S,flags:b}=v.regex;let w;const C=b.includes("u"),E=b.includes("v");try{w=h.parsePattern(S,0,S.length,{unicode:C,unicodeSets:E})}catch{return}const T=[];n(w,{onCharacterClassEnter:x=>T.unshift(x),onCharacterClassLeave:()=>T.shift(),onExpressionCharacterClassEnter:x=>T.unshift(x),onExpressionCharacterClassLeave:()=>T.shift(),onCharacterEnter(x){if(!x.raw.startsWith("\\"))return;const A=x.raw.slice(1);if(A!==String.fromCodePoint(x.value)||f.includes(A))return;let k;if(T.length?k=E?c:u:k=p,k.has(A))return;const B=x.start+1;let R=!1;if(T.length){const F=T[0];if(A==="^"&&F.start+1===x.start)return;if(E){if(r.has(A)&&(S[x.end]===A||S[x.start-1]===A&&(A!=="^"||!F.negate||F.start+1<x.start-1)))return;(x.parent.type==="ClassIntersection"||x.parent.type==="ClassSubtraction")&&(R=!0)}else if(A==="-"&&F.start+1!==x.start&&x.end!==F.end-1)return}s(v,B,A,R)}})}function d(v){const S=v.type==="TemplateElement";if(!(S&&v.parent&&v.parent.parent&&v.parent.parent.type==="TaggedTemplateExpression"&&v.parent===v.parent.parent.quasi))if(typeof v.value=="string"||S){if(v.parent.type==="JSXAttribute"||v.parent.type==="JSXElement"||v.parent.type==="JSXFragment")return;const b=S?i.getText(v):v.raw,w=/\\[^\d]/gu;let C;for(;C=w.exec(b);)l(v,C)}else v.regex&&g(v)}return{Literal:d,TemplateElement:d}}},Nc}var Mc,xS;function MD(){if(xS)return Mc;xS=1;const a=Ue();return Mc={meta:{type:"suggestion",defaultOptions:[{ignoreDestructuring:!1,ignoreImport:!1,ignoreExport:!1}],docs:{description:"Disallow renaming import, export, and destructured assignments to the same name",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-rename"},fixable:"code",schema:[{type:"object",properties:{ignoreDestructuring:{type:"boolean"},ignoreImport:{type:"boolean"},ignoreExport:{type:"boolean"}},additionalProperties:!1}],messages:{unnecessarilyRenamed:"{{type}} {{name}} unnecessarily renamed."}},create(e){const n=e.sourceCode,[{ignoreDestructuring:o,ignoreImport:t,ignoreExport:u}]=e.options;function p(i,f,h){const s=f.type==="Identifier"?f.name:f.value;return e.report({node:i,messageId:"unnecessarilyRenamed",data:{name:s,type:h},fix(l){const g=i.type==="Property"?i.value:i.local;return n.getCommentsInside(i).length>n.getCommentsInside(g).length||g.type==="AssignmentPattern"&&a.isParenthesised(n,g.left)?null:l.replaceText(i,n.getText(g))}})}function c(i){if(!o)for(const f of i.properties){if(f.type!=="Property"||f.shorthand||f.computed)continue;const h=f.key.type==="Identifier"&&f.key.name||f.key.type==="Literal"&&f.key.value,s=f.value.type==="AssignmentPattern"?f.value.left.name:f.value.name;h===s&&p(f,f.key,"Destructuring assignment")}}function r(i){t||i.imported.range[0]!==i.local.range[0]&&a.getModuleExportName(i.imported)===i.local.name&&p(i,i.imported,"Import")}function m(i){u||i.local.range[0]!==i.exported.range[0]&&a.getModuleExportName(i.local)===a.getModuleExportName(i.exported)&&p(i,i.local,"Export")}return{ObjectPattern:c,ImportSpecifier:r,ExportSpecifier:m}}},Mc}var jc,CS;function jD(){if(CS)return jc;CS=1;const a=Ue(),e=nn();function n(p,c){const r=p.indexOf(c);r!==-1&&p.splice(r,1)}function o(p){return a.STATEMENT_LIST_PARENTS.has(p.parent.type)}function t(p){for(let c=p;c&&c.parent&&!a.isFunction(c);c=c.parent)if(c.parent.type==="TryStatement"&&c.parent.finalizer===c)return!0;return!1}function u(p){for(const c of p)if(c.reachable)return!0;return!1}return jc={meta:{type:"suggestion",docs:{description:"Disallow redundant return statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-return"},fixable:"code",schema:[],messages:{unnecessaryReturn:"Unnecessary return statement."}},create(p){const c=new WeakMap,r=p.sourceCode;let m=null;function i(l){const g=c.get(l);return!g||g.returned}function f(l,g,d){const v=d||new WeakSet;for(const S of g){if(!S.reachable){v.has(S)||(v.add(S),f(l,S.allPrevSegments.filter(i),v));continue}c.has(S)&&l.push(...c.get(S).uselessReturns)}return l}function h(l,g){if(!l.reachable){g.add(l),l.allPrevSegments.filter(i).filter(v=>!g.has(v)).forEach(v=>h(v,g));return}const d=c.get(l);d&&(d.uselessReturns=d.uselessReturns.filter(v=>{if(m.traversedTryBlockStatements&&m.traversedTryBlockStatements.length>0){const S=v.range[0],b=v.range[1];if(m.traversedTryBlockStatements.some(C=>{const E=C.range[0],T=C.range[1];return S>=E&&b<=T}))return!0}return n(m.uselessReturns,v),!1}))}function s(){m.currentSegments.forEach(l=>h(l,new Set))}return{onCodePathStart(l){m={upper:m,uselessReturns:[],traversedTryBlockStatements:[],codePath:l,currentSegments:new Set}},onCodePathEnd(){for(const l of m.uselessReturns)p.report({node:l,loc:l.loc,messageId:"unnecessaryReturn",fix(g){return o(l)&&!r.getCommentsInside(l).length?new e(g,r).retainEnclosingFunction(l).remove(l):null}});m=m.upper},onCodePathSegmentStart(l){m.currentSegments.add(l);const g={uselessReturns:f([],l.allPrevSegments),returned:!1};c.set(l,g)},onUnreachableCodePathSegmentStart(l){m.currentSegments.add(l)},onUnreachableCodePathSegmentEnd(l){m.currentSegments.delete(l)},onCodePathSegmentEnd(l){m.currentSegments.delete(l)},ReturnStatement(l){if(l.argument&&s(),!(l.argument||a.isInLoop(l)||t(l)||!u(m.currentSegments))){for(const g of m.currentSegments){const d=c.get(g);d&&(d.uselessReturns.push(l),d.returned=!0)}m.uselessReturns.push(l)}},"TryStatement > BlockStatement.block:exit"(l){m.traversedTryBlockStatements.push(l)},"TryStatement:exit"(){m.traversedTryBlockStatements.pop()},ClassDeclaration:s,ContinueStatement:s,DebuggerStatement:s,DoWhileStatement:s,EmptyStatement:s,ExpressionStatement:s,ForInStatement:s,ForOfStatement:s,ForStatement:s,IfStatement:s,ImportDeclaration:s,LabeledStatement:s,SwitchStatement:s,ThrowStatement:s,TryStatement:s,VariableDeclaration:s,WhileStatement:s,WithStatement:s,ExportNamedDeclaration:s,ExportDefaultDeclaration:s,ExportAllDeclaration:s}}},jc}var Uc,wS;function UD(){if(wS)return Uc;wS=1;const a=Ue();function e(h){return!!h.scope&&h.scope.type==="global"}function n(h){let s=h;for(;s.type!=="function"&&s.type!=="global";)s=s.upper;return s}function o(h){const s=n(h.scope);return h.references.some(l=>n(l.from)!==s)}function t(h){return(h.parent.type==="ForOfStatement"||h.parent.type==="ForInStatement")&&h===h.parent.left}function u(h){return h.declarations.every(s=>s.init!==null)}const p=/^(?:Program|BlockStatement|SwitchStatement|ForStatement|ForInStatement|ForOfStatement)$/u;function c(h){for(let s=h;s;s=s.parent)if(p.test(s.type))return s;return null}function r(h){return h.defs.length>=2}function m(h){function s(l){const g=h.range,d=l.identifier.range;return d[0]<g[0]||d[1]>g[1]}return function(l){return l.references.some(s)}}function i(h){const s=h.range[0],l=h.range[1];return g=>{const d=g.defs[0].name,v=d.range[0],S=d.parent.type==="AssignmentPattern"?d.parent.right:null,b=S&&S.range[0],w=S&&S.range[1];return g.references.some(C=>{const E=C.identifier.range[0],T=C.identifier.range[1];return!C.init&&(E<v||S!==null&&E>=b&&T<=w||!a.isFunction(h)&&E>=s&&T<=l)})}}function f(h){return h.name==="let"}return Uc={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Require `let` or `const` instead of `var`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-var"},schema:[],fixable:"code",messages:{unexpectedVar:"Unexpected var, use let or const instead."}},create(h){const s=h.sourceCode;function l(v){return v.init?s.getDeclaredVariables(v).some(i(v.init)):!1}function g(v){const S=s.getDeclaredVariables(v),b=c(v);return!(v.parent.type==="SwitchCase"||v.declarations.some(l)||S.some(e)||S.some(r)||S.some(m(b))||S.some(f)||a.isInLoop(v)&&(S.some(o)||!t(v)&&!u(v))||!t(v)&&!(v.parent.type==="ForStatement"&&v.parent.init===v)&&!a.STATEMENT_LIST_PARENTS.has(v.parent.type))}function d(v){h.report({node:v,messageId:"unexpectedVar",fix(S){const b=s.getFirstToken(v,{filter:w=>w.value==="var"});return g(v)?S.replaceText(b,"let"):null}})}return{"VariableDeclaration:exit"(v){v.kind==="var"&&(v.parent.type==="TSModuleBlock"&&v.parent.parent.type==="TSModuleDeclaration"&&v.parent.parent.global||d(v))}}}},Uc}var qc,AS;function qD(){return AS||(AS=1,qc={meta:{type:"suggestion",defaultOptions:[{allowAsStatement:!1}],docs:{description:"Disallow `void` operators",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-void"},messages:{noVoid:"Expected 'undefined' and instead saw 'void'."},schema:[{type:"object",properties:{allowAsStatement:{type:"boolean"}},additionalProperties:!1}]},create(a){const[{allowAsStatement:e}]=a.options;return{'UnaryExpression[operator="void"]'(n){e&&n.parent&&n.parent.type==="ExpressionStatement"||a.report({node:n,messageId:"noVoid"})}}}}),qc}var Vc,TS;function VD(){if(TS)return Vc;TS=1;const a=Rn(),e=Ue(),n=40;return Vc={meta:{type:"suggestion",defaultOptions:[{location:"start",terms:["todo","fixme","xxx"]}],docs:{description:"Disallow specified warning terms in comments",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-warning-comments"},schema:[{type:"object",properties:{terms:{type:"array",items:{type:"string"}},location:{enum:["start","anywhere"]},decoration:{type:"array",items:{type:"string",pattern:"^\\S$"},minItems:1,uniqueItems:!0}},additionalProperties:!1}],messages:{unexpectedComment:"Unexpected '{{matchedTerm}}' comment: '{{comment}}'."}},create(o){const t=o.sourceCode,[{decoration:u,location:p,terms:c}]=o.options,r=a(u?u.join(""):""),m=/\bno-warning-comments\b/u;function i(l){const g=a(l),d="\\b";let v="";p==="start"?v=`^[\\s${r}]*`:/^\w/u.test(l)&&(v=d);const S=/\w$/u.test(l)?d:"",b="iu";return new RegExp(`${v}${g}${S}`,b)}const f=c.map(i);function h(l){const g=[];return f.forEach((d,v)=>{d.test(l)&&g.push(c[v])}),g}function s(l){const g=l.value;if(e.isDirectiveComment(l)&&m.test(g))return;h(g).forEach(v=>{let S="",b=!1;for(const w of g.trim().split(/\s+/u)){const C=S?`${S} ${w}`:w;if(C.length<=n)S=C;else{b=!0;break}}o.report({node:l,messageId:"unexpectedComment",data:{matchedTerm:v,comment:`${S}${b?"...":""}`}})})}return{Program(){t.getAllComments().filter(g=>g.type!=="Shebang").forEach(s)}}}},Vc}var $c,kS;function $D(){if(kS)return $c;kS=1;const a=Ue();return $c={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-whitespace-before-property",url:"https://eslint.style/rules/no-whitespace-before-property"}}]},type:"layout",docs:{description:"Disallow whitespace before properties",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-whitespace-before-property"},fixable:"whitespace",schema:[],messages:{unexpectedWhitespace:"Unexpected whitespace before property {{propName}}."}},create(e){const n=e.sourceCode;function o(t,u,p){e.report({node:t,messageId:"unexpectedWhitespace",data:{propName:n.getText(t.property)},fix(c){let r="";return!t.computed&&!t.optional&&a.isDecimalInteger(t.object)||n.commentsExistBetween(u,p)?null:(t.optional?r="?.":t.computed||(r="."),c.replaceTextRange([u.range[1],p.range[0]],r))}})}return{MemberExpression(t){let u,p;a.isTokenOnSameLine(t.object,t.property)&&(t.computed?(u=n.getTokenBefore(t.property,a.isOpeningBracketToken),p=n.getTokenBefore(u,t.optional?1:0)):(u=n.getFirstToken(t.property),p=n.getTokenBefore(u,1)),n.isSpaceBetweenTokens(p,u)&&o(t,p,u))}}}},$c}var Wc,DS;function WD(){return DS||(DS=1,Wc={meta:{type:"suggestion",docs:{description:"Disallow `with` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-with"},schema:[],messages:{unexpectedWith:"Unexpected use of 'with' statement."}},create(a){return{WithStatement(e){a.report({node:e,messageId:"unexpectedWith"})}}}}),Wc}var Gc,IS;function GD(){if(IS)return Gc;IS=1;const a={enum:["beside","below","any"]};return Gc={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"nonblock-statement-body-position",url:"https://eslint.style/rules/nonblock-statement-body-position"}}]},type:"layout",docs:{description:"Enforce the location of single-line statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/nonblock-statement-body-position"},fixable:"whitespace",schema:[a,{properties:{overrides:{properties:{if:a,else:a,while:a,do:a,for:a},additionalProperties:!1}},additionalProperties:!1}],messages:{expectNoLinebreak:"Expected no linebreak before this statement.",expectLinebreak:"Expected a linebreak before this statement."}},create(e){const n=e.sourceCode;function o(u){return e.options[1]&&e.options[1].overrides&&e.options[1].overrides[u]||e.options[0]||"beside"}function t(u,p){const c=o(p);if(u.type==="BlockStatement"||c==="any")return;const r=n.getTokenBefore(u);r.loc.end.line===u.loc.start.line&&c==="below"?e.report({node:u,messageId:"expectLinebreak",fix:m=>m.insertTextBefore(u,`
|
|
104
|
+
`)}):r.loc.end.line!==u.loc.start.line&&c==="beside"&&e.report({node:u,messageId:"expectNoLinebreak",fix(m){return n.getText().slice(r.range[1],u.range[0]).trim()?null:m.replaceTextRange([r.range[1],u.range[0]]," ")}})}return{IfStatement(u){t(u.consequent,"if"),u.alternate&&u.alternate.type!=="IfStatement"&&t(u.alternate,"else")},WhileStatement:u=>t(u.body,"while"),DoWhileStatement:u=>t(u.body,"do"),ForStatement:u=>t(u.body,"for"),ForInStatement:u=>t(u.body,"for"),ForOfStatement:u=>t(u.body,"for")}}},Gc}var zc,PS;function zD(){if(PS)return zc;PS=1;const a=Ue(),e={oneOf:[{enum:["always","never"]},{type:"object",properties:{multiline:{type:"boolean"},minProperties:{type:"integer",minimum:0},consistent:{type:"boolean"}},additionalProperties:!1,minProperties:1}]};function n(c){let r=!1,m=Number.POSITIVE_INFINITY,i=!1;return c?c==="always"?m=0:c==="never"?m=Number.POSITIVE_INFINITY:(r=!!c.multiline,m=c.minProperties||Number.POSITIVE_INFINITY,i=!!c.consistent):i=!0,{multiline:r,minProperties:m,consistent:i}}function o(c){return typeof c=="object"&&c!==null}function t(c){return o(c)||typeof c=="string"}function u(c){if(o(c)&&Object.values(c).some(t))return{ObjectExpression:n(c.ObjectExpression),ObjectPattern:n(c.ObjectPattern),ImportDeclaration:n(c.ImportDeclaration),ExportNamedDeclaration:n(c.ExportDeclaration)};const r=n(c);return{ObjectExpression:r,ObjectPattern:r,ImportDeclaration:r,ExportNamedDeclaration:r}}function p(c,r,m,i){let f;return c.type==="ObjectExpression"||c.type==="ObjectPattern"?f=c.properties:f=c.specifiers.filter(h=>h.type==="ImportSpecifier"||h.type==="ExportSpecifier"),f.length>=r.minProperties||r.multiline&&f.length>0&&m.loc.start.line!==i.loc.end.line}return zc={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"object-curly-newline",url:"https://eslint.style/rules/object-curly-newline"}}]},type:"layout",docs:{description:"Enforce consistent line breaks after opening and before closing braces",recommended:!1,url:"https://eslint.org/docs/latest/rules/object-curly-newline"},fixable:"whitespace",schema:[{oneOf:[e,{type:"object",properties:{ObjectExpression:e,ObjectPattern:e,ImportDeclaration:e,ExportDeclaration:e},additionalProperties:!1,minProperties:1}]}],messages:{unexpectedLinebreakBeforeClosingBrace:"Unexpected line break before this closing brace.",unexpectedLinebreakAfterOpeningBrace:"Unexpected line break after this opening brace.",expectedLinebreakBeforeClosingBrace:"Expected a line break before this closing brace.",expectedLinebreakAfterOpeningBrace:"Expected a line break after this opening brace."}},create(c){const r=c.sourceCode,m=u(c.options[0]);function i(f){const h=m[f.type];if(f.type==="ImportDeclaration"&&!f.specifiers.some(w=>w.type==="ImportSpecifier")||f.type==="ExportNamedDeclaration"&&!f.specifiers.some(w=>w.type==="ExportSpecifier"))return;const s=r.getFirstToken(f,w=>w.value==="{");let l;f.typeAnnotation?l=r.getTokenBefore(f.typeAnnotation):l=r.getLastToken(f,w=>w.value==="}");let g=r.getTokenAfter(s,{includeComments:!0}),d=r.getTokenBefore(l,{includeComments:!0});const v=p(f,h,g,d),S=a.isCommentToken(g),b=a.isCommentToken(d);if(g=r.getTokenAfter(s),d=r.getTokenBefore(l),v)a.isTokenOnSameLine(s,g)&&c.report({messageId:"expectedLinebreakAfterOpeningBrace",node:f,loc:s.loc,fix(w){return S?null:w.insertTextAfter(s,`
|
|
105
|
+
`)}}),a.isTokenOnSameLine(d,l)&&c.report({messageId:"expectedLinebreakBeforeClosingBrace",node:f,loc:l.loc,fix(w){return b?null:w.insertTextBefore(l,`
|
|
106
|
+
`)}});else{const w=h.consistent,C=!a.isTokenOnSameLine(s,g),E=!a.isTokenOnSameLine(d,l);(!w&&C||w&&C&&!E)&&c.report({messageId:"unexpectedLinebreakAfterOpeningBrace",node:f,loc:s.loc,fix(T){return S?null:T.removeRange([s.range[1],g.range[0]])}}),(!w&&E||w&&!C&&E)&&c.report({messageId:"unexpectedLinebreakBeforeClosingBrace",node:f,loc:l.loc,fix(T){return b?null:T.removeRange([d.range[1],l.range[0]])}})}}return{ObjectExpression:i,ObjectPattern:i,ImportDeclaration:i,ExportNamedDeclaration:i}}},zc}var Hc,FS;function HD(){if(FS)return Hc;FS=1;const a=Ue();return Hc={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"object-curly-spacing",url:"https://eslint.style/rules/object-curly-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing inside braces",recommended:!1,url:"https://eslint.org/docs/latest/rules/object-curly-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{arraysInObjects:{type:"boolean"},objectsInObjects:{type:"boolean"}},additionalProperties:!1}],messages:{requireSpaceBefore:"A space is required before '{{token}}'.",requireSpaceAfter:"A space is required after '{{token}}'.",unexpectedSpaceBefore:"There should be no space before '{{token}}'.",unexpectedSpaceAfter:"There should be no space after '{{token}}'."}},create(e){const n=e.options[0]==="always",o=e.sourceCode;function t(g){return e.options[1]?e.options[1][g]===!n:!1}const u={spaced:n,arraysInObjectsException:t("arraysInObjects"),objectsInObjectsException:t("objectsInObjects")};function p(g,d){const v=e.sourceCode.getTokenAfter(d,{includeComments:!0});e.report({node:g,loc:{start:d.loc.end,end:v.loc.start},messageId:"unexpectedSpaceAfter",data:{token:d.value},fix(S){return S.removeRange([d.range[1],v.range[0]])}})}function c(g,d){const v=e.sourceCode.getTokenBefore(d,{includeComments:!0});e.report({node:g,loc:{start:v.loc.end,end:d.loc.start},messageId:"unexpectedSpaceBefore",data:{token:d.value},fix(S){return S.removeRange([v.range[1],d.range[0]])}})}function r(g,d){e.report({node:g,loc:d.loc,messageId:"requireSpaceAfter",data:{token:d.value},fix(v){return v.insertTextAfter(d," ")}})}function m(g,d){e.report({node:g,loc:d.loc,messageId:"requireSpaceBefore",data:{token:d.value},fix(v){return v.insertTextBefore(d," ")}})}function i(g,d,v,S,b){if(a.isTokenOnSameLine(d,v)){const w=o.isSpaceBetweenTokens(d,v);u.spaced&&!w&&r(g,d),!u.spaced&&w&&v.type!=="Line"&&p(g,d)}if(a.isTokenOnSameLine(S,b)){const C=(u.arraysInObjectsException&&a.isClosingBracketToken(S)||u.objectsInObjectsException&&a.isClosingBraceToken(S))&&o.getNodeByRangeIndex(S.range[0]).type,E=u.arraysInObjectsException&&C==="ArrayExpression"||u.objectsInObjectsException&&(C==="ObjectExpression"||C==="ObjectPattern")?!u.spaced:u.spaced,T=o.isSpaceBetweenTokens(S,b);E&&!T&&m(g,b),!E&&T&&c(g,b)}}function f(g){const d=g.properties.at(-1);return o.getTokenAfter(d,a.isClosingBraceToken)}function h(g){if(g.properties.length===0)return;const d=o.getFirstToken(g),v=f(g),S=o.getTokenAfter(d,{includeComments:!0}),b=o.getTokenBefore(v,{includeComments:!0});i(g,d,S,b,v)}function s(g){if(g.specifiers.length===0)return;let d=g.specifiers[0];const v=g.specifiers.at(-1);if(v.type!=="ImportSpecifier")return;d.type!=="ImportSpecifier"&&(d=g.specifiers[1]);const S=o.getTokenBefore(d),b=o.getTokenAfter(v,a.isNotCommaToken),w=o.getTokenAfter(S,{includeComments:!0}),C=o.getTokenBefore(b,{includeComments:!0});i(g,S,w,C,b)}function l(g){if(g.specifiers.length===0)return;const d=g.specifiers[0],v=g.specifiers.at(-1),S=o.getTokenBefore(d),b=o.getTokenAfter(v,a.isNotCommaToken),w=o.getTokenAfter(S,{includeComments:!0}),C=o.getTokenBefore(b,{includeComments:!0});i(g,S,w,C,b)}return{ObjectPattern:h,ObjectExpression:h,ImportDeclaration:s,ExportNamedDeclaration:l}}},Hc}var Kc,RS;function KD(){return RS||(RS=1,Kc={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"object-property-newline",url:"https://eslint.style/rules/object-property-newline"}}]},type:"layout",docs:{description:"Enforce placing object properties on separate lines",recommended:!1,url:"https://eslint.org/docs/latest/rules/object-property-newline"},schema:[{type:"object",properties:{allowAllPropertiesOnSameLine:{type:"boolean",default:!1},allowMultiplePropertiesPerLine:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"whitespace",messages:{propertiesOnNewlineAll:"Object properties must go on a new line if they aren't all on the same line.",propertiesOnNewline:"Object properties must go on a new line."}},create(a){const e=a.options[0]&&(a.options[0].allowAllPropertiesOnSameLine||a.options[0].allowMultiplePropertiesPerLine),n=e?"propertiesOnNewlineAll":"propertiesOnNewline",o=a.sourceCode;return{ObjectExpression(t){if(e&&t.properties.length>1){const u=o.getFirstToken(t.properties[0]),p=o.getLastToken(t.properties.at(-1));if(u.loc.end.line===p.loc.start.line)return}for(let u=1;u<t.properties.length;u++){const p=o.getLastToken(t.properties[u-1]),c=o.getFirstToken(t.properties[u]);p.loc.end.line===c.loc.start.line&&a.report({node:t,loc:c.loc,messageId:n,fix(r){const i=[o.getTokenBefore(c).range[1],c.range[0]];return o.text.slice(i[0],i[1]).trim()?null:r.replaceTextRange(i,`
|
|
107
|
+
`)}})}}}}}),Kc}var Xc,_S;function XD(){if(_S)return Xc;_S=1;const a={always:"always",never:"never",methods:"methods",properties:"properties",consistent:"consistent",consistentAsNeeded:"consistent-as-needed"},e=Ue();return Xc={meta:{type:"suggestion",docs:{description:"Require or disallow method and property shorthand syntax for object literals",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/object-shorthand"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["always","methods","properties","never","consistent","consistent-as-needed"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always","methods","properties"]},{type:"object",properties:{avoidQuotes:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2},{type:"array",items:[{enum:["always","methods"]},{type:"object",properties:{ignoreConstructors:{type:"boolean"},methodsIgnorePattern:{type:"string"},avoidQuotes:{type:"boolean"},avoidExplicitReturnArrows:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{expectedAllPropertiesShorthanded:"Expected shorthand for all properties.",expectedLiteralMethodLongform:"Expected longform method syntax for string literal keys.",expectedPropertyShorthand:"Expected property shorthand.",expectedPropertyLongform:"Expected longform property syntax.",expectedMethodShorthand:"Expected method shorthand.",expectedMethodLongform:"Expected longform method syntax.",unexpectedMix:"Unexpected mix of shorthand and non-shorthand properties."}},create(n){const o=n.options[0]||a.always,t=o===a.methods||o===a.always,u=o===a.properties||o===a.always,p=o===a.never,c=o===a.consistent,r=o===a.consistentAsNeeded,m=n.options[1]||{},i=m.ignoreConstructors,f=m.methodsIgnorePattern?new RegExp(m.methodsIgnorePattern,"u"):null,h=m.avoidQuotes,s=!!m.avoidExplicitReturnArrows,l=n.sourceCode,g=/[^_$0-9]/u;function d(P){const N=g.exec(P);if(!N)return!1;const j=P.charAt(N.index);return j===j.toUpperCase()}function v(P){return P.kind!=="set"&&P.kind!=="get"&&P.type!=="SpreadElement"&&P.type!=="SpreadProperty"&&P.type!=="ExperimentalSpreadProperty"}function S(P){return P.type==="Literal"&&typeof P.value=="string"}function b(P){return P.shorthand||P.method}function w(P){const N=P.value;return N.type==="FunctionExpression"?!N.id:N.type==="Identifier"?e.getStaticPropertyName(P)===N.name:!1}function C(P,N){const j=P.properties.filter(v);if(j.length>0){const V=j.filter(b);V.length!==j.length&&(V.length>0?n.report({node:P,messageId:"unexpectedMix"}):N&&j.every(w)&&n.report({node:P,messageId:"expectedAllPropertiesShorthanded"}))}}function E(P,N){const j=N.computed?l.getFirstToken(N,e.isOpeningBracketToken):l.getFirstToken(N.key),V=N.computed?l.getFirstTokenBetween(N.key,N.value,e.isClosingBracketToken):l.getLastToken(N.key),O=l.text.slice(j.range[0],V.range[1]);let G="";if(l.commentsExistBetween(V,N.value))return null;N.value.async&&(G+="async "),N.value.generator&&(G+="*");const L=[j.range[0],N.range[1]],K=G+O;if(N.value.type==="FunctionExpression"){const oe=l.getTokens(N.value).find(he=>he.type==="Keyword"&&he.value==="function"),ne=N.value.generator?l.getTokenAfter(oe):oe;return P.replaceTextRange(L,K+l.text.slice(ne.range[1],N.value.range[1]))}const H=l.getTokenBefore(N.value.body,e.isArrowToken),ae=l.text.slice(H.range[1],N.value.range[1]),De=l.getFirstToken(N.value,{skip:N.value.async?1:0}).range[0],Y=l.getTokenBefore(H).range[1],I=N.value.params.length===1&&N.value.params[0].range[0]===De,W=l.text.slice(De,Y),ue=I?`(${W})`:W;return P.replaceTextRange(L,K+ue+ae)}function T(P,N){const j=N.computed?l.getTokens(N).find(L=>L.value==="["):l.getFirstToken(N.key),V=N.computed?l.getTokensBetween(N.key,N.value).find(L=>L.value==="]"):l.getLastToken(N.key),O=l.text.slice(j.range[0],V.range[1]);let G="function";return N.value.async&&(G=`async ${G}`),N.value.generator&&(G=`${G}*`),P.replaceTextRange([N.range[0],V.range[1]],`${O}: ${G}`)}const x=[],A=new WeakSet,k=new WeakSet;function B(P){x.unshift(new Set),l.getScope(P).variables.filter(N=>N.name==="arguments").forEach(N=>{N.references.map(j=>j.identifier).forEach(j=>k.add(j))})}function R(){x.shift()}function F(){x[0].forEach(P=>A.add(P))}return{Program:B,FunctionDeclaration:B,FunctionExpression:B,"Program:exit":R,"FunctionDeclaration:exit":R,"FunctionExpression:exit":R,ArrowFunctionExpression(P){x[0].add(P)},"ArrowFunctionExpression:exit"(P){x[0].delete(P)},ThisExpression:F,Super:F,MetaProperty(P){P.meta.name==="new"&&P.property.name==="target"&&F()},Identifier(P){k.has(P)&&F()},ObjectExpression(P){c?C(P,!1):r&&C(P,!0)},"Property:exit"(P){const N=P.method||P.shorthand;if(P.parent.type!=="ObjectPattern"&&!(P.kind==="get"||P.kind==="set")&&!(P.computed&&P.value.type!=="FunctionExpression"&&P.value.type!=="ArrowFunctionExpression")){if(N)if(P.method&&(p||h&&S(P.key))){const j=p?"expectedMethodLongform":"expectedLiteralMethodLongform";n.report({node:P,messageId:j,fix:V=>T(V,P)})}else p&&n.report({node:P,messageId:"expectedPropertyLongform",fix:j=>j.insertTextAfter(P.key,`: ${P.key.name}`)});else if(t&&!P.value.id&&(P.value.type==="FunctionExpression"||P.value.type==="ArrowFunctionExpression")){if(i&&P.key.type==="Identifier"&&d(P.key.name))return;if(f){const j=e.getStaticPropertyName(P);if(j!==null&&f.test(j))return}if(h&&S(P.key))return;(P.value.type==="FunctionExpression"||P.value.type==="ArrowFunctionExpression"&&P.value.body.type==="BlockStatement"&&s&&!A.has(P.value))&&n.report({node:P,messageId:"expectedMethodShorthand",fix:j=>E(j,P)})}else if(P.value.type==="Identifier"&&P.key.name===P.value.name&&u)n.report({node:P,messageId:"expectedPropertyShorthand",fix(j){return l.getCommentsInside(P).length>0?null:j.replaceText(P,P.value.name)}});else if(P.value.type==="Identifier"&&P.key.type==="Literal"&&P.key.value===P.value.name&&u){if(h)return;n.report({node:P,messageId:"expectedPropertyShorthand",fix(j){return l.getCommentsInside(P).length>0?null:j.replaceText(P,P.value.name)}})}}}}}},Xc}var Jc,BS;function JD(){if(BS)return Jc;BS=1;const a=Ue();function e(n){return a.STATEMENT_LIST_PARENTS.has(n.parent.type)}return Jc={meta:{type:"suggestion",docs:{description:"Enforce variables to be declared either together or separately in functions",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/one-var"},fixable:"code",schema:[{oneOf:[{enum:["always","never","consecutive"]},{type:"object",properties:{separateRequires:{type:"boolean"},var:{enum:["always","never","consecutive"]},let:{enum:["always","never","consecutive"]},const:{enum:["always","never","consecutive"]}},additionalProperties:!1},{type:"object",properties:{initialized:{enum:["always","never","consecutive"]},uninitialized:{enum:["always","never","consecutive"]}},additionalProperties:!1}]}],messages:{combineUninitialized:"Combine this with the previous '{{type}}' statement with uninitialized variables.",combineInitialized:"Combine this with the previous '{{type}}' statement with initialized variables.",splitUninitialized:"Split uninitialized '{{type}}' declarations into multiple statements.",splitInitialized:"Split initialized '{{type}}' declarations into multiple statements.",splitRequires:"Split requires to be separated into a single block.",combine:"Combine this with the previous '{{type}}' statement.",split:"Split '{{type}}' declarations into multiple statements."}},create(n){const o="always",t="never",u="consecutive",p=n.options[0]||o,c={};typeof p=="string"?(c.var={uninitialized:p,initialized:p},c.let={uninitialized:p,initialized:p},c.const={uninitialized:p,initialized:p}):typeof p=="object"&&(c.separateRequires=!!p.separateRequires,c.var={uninitialized:p.var,initialized:p.var},c.let={uninitialized:p.let,initialized:p.let},c.const={uninitialized:p.const,initialized:p.const},Object.hasOwn(p,"uninitialized")&&(c.var.uninitialized=p.uninitialized,c.let.uninitialized=p.uninitialized,c.const.uninitialized=p.uninitialized),Object.hasOwn(p,"initialized")&&(c.var.initialized=p.initialized,c.let.initialized=p.initialized,c.const.initialized=p.initialized));const r=n.sourceCode,m=[],i=[];function f(){i.push({let:{initialized:!1,uninitialized:!1},const:{initialized:!1,uninitialized:!1}})}function h(){m.push({initialized:!1,uninitialized:!1}),f()}function s(){i.pop()}function l(){m.pop(),s()}function g(T){return T.init&&T.init.type==="CallExpression"&&T.init.callee.name==="require"}function d(T,x,A){for(let k=0;k<x.length;k++)x[k].init===null?c[T]&&c[T].uninitialized===o&&(A.uninitialized=!0):c[T]&&c[T].initialized===o&&(c.separateRequires&&g(x[k])?A.required=!0:A.initialized=!0)}function v(T){let x;return T==="var"?x=m.at(-1):T==="let"?x=i.at(-1).let:T==="const"&&(x=i.at(-1).const),x}function S(T){const x={uninitialized:0,initialized:0};for(let A=0;A<T.length;A++)T[A].init===null?x.uninitialized++:x.initialized++;return x}function b(T,x){const A=S(x),k=c[T]||{},B=v(T),R=x.some(g);return k.uninitialized===o&&k.initialized===o&&(B.uninitialized||B.initialized)&&!R||A.uninitialized>0&&k.uninitialized===o&&B.uninitialized||A.initialized>0&&k.initialized===o&&B.initialized&&!R||B.required&&R?!1:(d(T,x,B),!0)}function w(T){const x=T[0],A=Array.isArray(x.parent.parent.body)?x.parent.parent.body:[],k=A.findIndex(R=>R.range[0]===x.parent.range[0]),B=A[k-1];return R=>{const F=r.getTokenBefore(x),P=r.getTokenBefore(F),N=[];return B&&B.kind===r.getText(F)&&(P.value===";"?N.push(R.replaceText(P,",")):N.push(R.insertTextAfter(P,",")),N.push(R.replaceText(F,""))),N}}function C(T){const{parent:x}=T;return e(x.type==="ExportNamedDeclaration"?x:T)?A=>T.declarations.map(k=>{const B=r.getTokenAfter(k);if(B===null)return null;const R=r.getTokenAfter(B,{includeComments:!0});if(B.value!==",")return null;const F=T.parent.type==="ExportNamedDeclaration"?"export ":"";if(R.range[0]===B.range[1])return A.replaceText(B,`; ${F}${T.kind} `);if(R.loc.start.line>B.loc.end.line||R.type==="Line"||R.type==="Block"){let P=R;for(;P.type==="Line"||P.type==="Block";)P=r.getTokenAfter(P,{includeComments:!0});return A.replaceTextRange([B.range[0],P.range[0]],`;${r.text.slice(B.range[1],P.range[0])}${F}${T.kind} `)}return A.replaceText(B,`; ${F}${T.kind}`)}).filter(k=>k):null}function E(T){const x=T.parent,A=T.kind;if(!c[A])return;const k=T.declarations,B=S(k),R=k.some(g)&&!k.every(g);c[A].initialized===o&&c.separateRequires&&R&&n.report({node:T,messageId:"splitRequires"});const F=x.body&&x.body.length>0&&x.body.indexOf(T)||0;if(F>0){const P=x.body[F-1],N=P.type==="VariableDeclaration",j=k.concat(P.declarations||[]);if(N&&P.kind===A&&!(j.some(g)&&!j.every(g))){const V=S(P.declarations);c[A].initialized===u&&c[A].uninitialized===u?n.report({node:T,messageId:"combine",data:{type:A},fix:w(k)}):c[A].initialized===u&&B.initialized>0&&V.initialized>0?n.report({node:T,messageId:"combineInitialized",data:{type:A},fix:w(k)}):c[A].uninitialized===u&&B.uninitialized>0&&V.uninitialized>0&&n.report({node:T,messageId:"combineUninitialized",data:{type:A},fix:w(k)})}}if(!b(A,k)){if(c[A].initialized===o&&c[A].uninitialized===o)n.report({node:T,messageId:"combine",data:{type:A},fix:w(k)});else if(c[A].initialized===o&&B.initialized>0&&n.report({node:T,messageId:"combineInitialized",data:{type:A},fix:w(k)}),c[A].uninitialized===o&&B.uninitialized>0){if(T.parent.left===T&&(T.parent.type==="ForInStatement"||T.parent.type==="ForOfStatement"))return;n.report({node:T,messageId:"combineUninitialized",data:{type:A},fix:w(k)})}}(x.type!=="ForStatement"||x.init!==T)&&B.uninitialized+B.initialized>1&&(c[A].initialized===t&&c[A].uninitialized===t?n.report({node:T,messageId:"split",data:{type:A},fix:C(T)}):c[A].initialized===t&&B.initialized>0?n.report({node:T,messageId:"splitInitialized",data:{type:A},fix:C(T)}):c[A].uninitialized===t&&B.uninitialized>0&&n.report({node:T,messageId:"splitUninitialized",data:{type:A},fix:C(T)}))}return{Program:h,FunctionDeclaration:h,FunctionExpression:h,ArrowFunctionExpression:h,StaticBlock:h,BlockStatement:f,ForStatement:f,ForInStatement:f,ForOfStatement:f,SwitchStatement:f,VariableDeclaration:E,"ForStatement:exit":s,"ForOfStatement:exit":s,"ForInStatement:exit":s,"SwitchStatement:exit":s,"BlockStatement:exit":s,"Program:exit":l,"FunctionDeclaration:exit":l,"FunctionExpression:exit":l,"ArrowFunctionExpression:exit":l,"StaticBlock:exit":l}}},Jc}var Yc,LS;function YD(){return LS||(LS=1,Yc={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"one-var-declaration-per-line",url:"https://eslint.style/rules/one-var-declaration-per-line"}}]},type:"suggestion",docs:{description:"Require or disallow newlines around variable declarations",recommended:!1,url:"https://eslint.org/docs/latest/rules/one-var-declaration-per-line"},schema:[{enum:["always","initializations"]}],fixable:"whitespace",messages:{expectVarOnNewline:"Expected variable declaration to be on a new line."}},create(a){const e=a.options[0]==="always";function n(t){return t==="ForStatement"||t==="ForInStatement"||t==="ForOfStatement"}function o(t){if(n(t.parent.type))return;const u=t.declarations;let p;u.forEach(c=>{p&&p.loc.end.line===c.loc.start.line&&(e||p.init||c.init)&&a.report({node:t,messageId:"expectVarOnNewline",loc:c.loc,fix:r=>r.insertTextBefore(c,`
|
|
108
|
+
`)}),p=c})}return{VariableDeclaration:o}}}),Yc}var Qc,OS;function QD(){if(OS)return Qc;OS=1;const a=Ue();function e(t){return["*","&","^","|"].includes(t)}function n(t){return["+","-","/","%","<<",">>",">>>","**"].includes(t)}function o(t){return t.type==="Identifier"||t.type==="MemberExpression"&&(t.object.type==="Identifier"||t.object.type==="ThisExpression")&&(!t.computed||t.property.type==="Literal")}return Qc={meta:{type:"suggestion",defaultOptions:["always"],docs:{description:"Require or disallow assignment operator shorthand where possible",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/operator-assignment"},schema:[{enum:["always","never"]}],fixable:"code",messages:{replaced:"Assignment (=) can be replaced with operator assignment ({{operator}}).",unexpected:"Unexpected operator assignment ({{operator}}) shorthand."}},create(t){const u=t.options[0]==="never",p=t.sourceCode;function c(i){return p.getFirstTokenBetween(i.left,i.right,f=>f.value===i.operator)}function r(i){if(i.operator!=="="||i.right.type!=="BinaryExpression")return;const f=i.left,h=i.right,s=h.operator;if(e(s)||n(s)){const l=`${s}=`;a.isSameReference(f,h.left,!0)?t.report({node:i,messageId:"replaced",data:{operator:l},fix(g){if(o(f)&&o(h.left)){const d=c(i),v=c(h),S=p.getText().slice(i.range[0],d.range[0]),b=p.getText().slice(v.range[1],i.right.range[1]);return p.commentsExistBetween(d,v)?null:g.replaceText(i,`${S}${l}${b}`)}return null}}):a.isSameReference(f,h.right,!0)&&e(s)&&t.report({node:i,messageId:"replaced",data:{operator:l}})}}function m(i){i.operator!=="="&&!a.isLogicalAssignmentOperator(i.operator)&&t.report({node:i,messageId:"unexpected",data:{operator:i.operator},fix(f){if(o(i.left)){const h=p.getFirstToken(i),s=c(i),l=p.getText().slice(i.range[0],s.range[0]),g=i.operator.slice(0,-1);let d;if(p.commentsExistBetween(h,s))return null;if(a.getPrecedence(i.right)<=a.getPrecedence({type:"BinaryExpression",operator:g})&&!a.isParenthesised(p,i.right))d=`${p.text.slice(s.range[1],i.right.range[0])}(${p.getText(i.right)})`;else{const v=p.getTokenAfter(s,{includeComments:!0});let S="";s.range[1]===v.range[0]&&!a.canTokensBeAdjacent({type:"Punctuator",value:g},v)&&(S=" "),d=`${S}${p.text.slice(s.range[1],i.range[1])}`}return f.replaceText(i,`${l}= ${l}${g}${d}`)}return null}})}return{AssignmentExpression:u?m:r}}},Qc}var Zc,NS;function ZD(){if(NS)return Zc;NS=1;const a=Ue();return Zc={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"operator-linebreak",url:"https://eslint.style/rules/operator-linebreak"}}]},type:"layout",docs:{description:"Enforce consistent linebreak style for operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/operator-linebreak"},schema:[{enum:["after","before","none",null]},{type:"object",properties:{overrides:{type:"object",additionalProperties:{enum:["after","before","none","ignore"]}}},additionalProperties:!1}],fixable:"code",messages:{operatorAtBeginning:"'{{operator}}' should be placed at the beginning of the line.",operatorAtEnd:"'{{operator}}' should be placed at the end of the line.",badLinebreak:"Bad line breaking before and after '{{operator}}'.",noLinebreak:"There should be no line break before or after '{{operator}}'."}},create(e){const n=!e.options[0],o=e.options[0]||"after",t=e.options[1]||{},u=t.overrides?Object.assign({},t.overrides):{};n&&!u["?"]&&(u["?"]="before"),n&&!u[":"]&&(u[":"]="before");const p=e.sourceCode;function c(i,f){return h=>{const s=p.getTokenBefore(i),l=p.getTokenAfter(i),g=p.text.slice(s.range[1],i.range[0]),d=p.text.slice(i.range[1],l.range[0]),v=!a.isTokenOnSameLine(s,i),S=!a.isTokenOnSameLine(i,l);let b,w;if(v!==S&&f!=="none"){if(p.getTokenBefore(i,{includeComments:!0})!==s&&p.getTokenAfter(i,{includeComments:!0})!==l)return null;b=d,w=g}else{const C=a.createGlobalLinebreakMatcher();if(b=f==="before"||g.trim()?g:g.replace(C,""),w=f==="after"||d.trim()?d:d.replace(C,""),b===g&&w===d)return null}return w===""&&l.type==="Punctuator"&&"+-".includes(i.value)&&l.value===i.value&&(w+=" "),h.replaceTextRange([s.range[1],l.range[0]],b+i.value+w)}}function r(i,f,h){const s=p.getTokenBefore(f,b=>b.value===h),l=p.getTokenBefore(s),g=p.getTokenAfter(s),d=u[h],v=d||o,S=c(s,v);a.isTokenOnSameLine(l,s)&&a.isTokenOnSameLine(s,g)||(d!=="ignore"&&!a.isTokenOnSameLine(l,s)&&!a.isTokenOnSameLine(s,g)?e.report({node:i,loc:s.loc,messageId:"badLinebreak",data:{operator:h},fix:S}):v==="before"&&a.isTokenOnSameLine(l,s)?e.report({node:i,loc:s.loc,messageId:"operatorAtBeginning",data:{operator:h},fix:S}):v==="after"&&a.isTokenOnSameLine(s,g)?e.report({node:i,loc:s.loc,messageId:"operatorAtEnd",data:{operator:h},fix:S}):v==="none"&&e.report({node:i,loc:s.loc,messageId:"noLinebreak",data:{operator:h},fix:S}))}function m(i){r(i,i.right,i.operator)}return{BinaryExpression:m,LogicalExpression:m,AssignmentExpression:m,VariableDeclarator(i){i.init&&r(i,i.init,"=")},PropertyDefinition(i){i.value&&r(i,i.value,"=")},ConditionalExpression(i){r(i,i.consequent,"?"),r(i,i.alternate,":")}}}},Zc}var ef,MS;function eI(){if(MS)return ef;MS=1;const a=Ue();return ef={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"padded-blocks",url:"https://eslint.style/rules/padded-blocks"}}]},type:"layout",docs:{description:"Require or disallow padding within blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/padded-blocks"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{blocks:{enum:["always","never"]},switches:{enum:["always","never"]},classes:{enum:["always","never"]}},additionalProperties:!1,minProperties:1}]},{type:"object",properties:{allowSingleLineBlocks:{type:"boolean"}},additionalProperties:!1}],messages:{alwaysPadBlock:"Block must be padded by blank lines.",neverPadBlock:"Block must not be padded by blank lines."}},create(e){const n={},o=e.options[0]||"always",t=e.options[1]||{};if(typeof o=="string"){const l=o==="always";n.blocks=l,n.switches=l,n.classes=l}else Object.hasOwn(o,"blocks")&&(n.blocks=o.blocks==="always"),Object.hasOwn(o,"switches")&&(n.switches=o.switches==="always"),Object.hasOwn(o,"classes")&&(n.classes=o.classes==="always");Object.hasOwn(t,"allowSingleLineBlocks")&&(n.allowSingleLineBlocks=t.allowSingleLineBlocks===!0);const u=e.sourceCode;function p(l){return l.type==="SwitchStatement"?u.getTokenBefore(l.cases[0]):l.type==="StaticBlock"?u.getFirstToken(l,{skip:1}):u.getFirstToken(l)}function c(l){return l.type==="Line"||l.type==="Block"}function r(l,g){return g.loc.start.line-l.loc.end.line>=2}function m(l){let g,d=l;do g=d,d=u.getTokenAfter(d,{includeComments:!0});while(c(d)&&d.loc.start.line===g.loc.end.line);return d}function i(l){let g=l,d;do d=g,g=u.getTokenBefore(g,{includeComments:!0});while(c(g)&&g.loc.end.line===d.loc.start.line);return g}function f(l){switch(l.type){case"BlockStatement":case"StaticBlock":return n.blocks;case"SwitchStatement":return n.switches;case"ClassBody":return n.classes;default:throw new Error("unreachable")}}function h(l){const g=p(l),d=m(g),v=u.getTokenBefore(d,{includeComments:!0}),S=u.getLastToken(l),b=i(S),w=u.getTokenAfter(b,{includeComments:!0}),C=r(v,d),E=r(b,w);n.allowSingleLineBlocks&&a.isTokenOnSameLine(v,w)||(f(l)?(C||e.report({node:l,loc:{start:v.loc.start,end:d.loc.start},fix(T){return T.insertTextAfter(v,`
|
|
109
|
+
`)},messageId:"alwaysPadBlock"}),E||e.report({node:l,loc:{end:w.loc.start,start:b.loc.end},fix(T){return T.insertTextBefore(w,`
|
|
110
|
+
`)},messageId:"alwaysPadBlock"})):(C&&e.report({node:l,loc:{start:v.loc.start,end:d.loc.start},fix(T){return T.replaceTextRange([v.range[1],d.range[0]-d.loc.start.column],`
|
|
111
|
+
`)},messageId:"neverPadBlock"}),E&&e.report({node:l,loc:{end:w.loc.start,start:b.loc.end},messageId:"neverPadBlock",fix(T){return T.replaceTextRange([b.range[1],w.range[0]-w.loc.start.column],`
|
|
112
|
+
`)}})))}const s={};return Object.hasOwn(n,"switches")&&(s.SwitchStatement=function(l){l.cases.length!==0&&h(l)}),Object.hasOwn(n,"blocks")&&(s.BlockStatement=function(l){l.body.length!==0&&h(l)},s.StaticBlock=s.BlockStatement),Object.hasOwn(n,"classes")&&(s.ClassBody=function(l){l.body.length!==0&&h(l)}),s}},ef}var tf,jS;function tI(){if(jS)return tf;jS=1;const a=Ue(),e=`[${Array.from(a.LINEBREAKS).join("")}]`,n=new RegExp(String.raw`^(\s*?${e})\s*${e}(\s*;?)$`,"u"),o=/^(?:module\s*\.\s*)?exports(?:\s*\.|\s*\[|$)/u,t=/^require\(/u;function u(S){return{test:(b,w)=>w.getFirstToken(b).value===S}}function p(S){return{test:(b,w)=>b.loc.start.line===b.loc.end.line&&w.getFirstToken(b).value===S}}function c(S){return{test:(b,w)=>b.loc.start.line!==b.loc.end.line&&w.getFirstToken(b).value===S}}function r(S){return{test:b=>b.type===S}}function m(S){if(S.type==="ExpressionStatement"){let b=a.skipChainExpression(S.expression);return b.type==="UnaryExpression"&&(b=a.skipChainExpression(b.argument)),b.type==="CallExpression"&&a.isFunction(b.callee)}return!1}function i(S,b){if(b.type==="DoWhileStatement"&&b.body.type==="BlockStatement"||m(b))return!0;const w=S.getLastToken(b,a.isNotSemicolonToken),C=w&&a.isClosingBraceToken(w)?S.getNodeByRangeIndex(w.range[0]):null;return!!C&&(C.type==="BlockStatement"||C.type==="SwitchStatement")}function f(S,b){const w=S.getLastToken(b),C=S.getTokenBefore(w),E=S.getTokenAfter(w);return!!(C&&E&&C.range[0]>=b.range[0]&&a.isSemicolonToken(w)&&w.loc.start.line!==C.loc.end.line&&w.loc.end.line===E.loc.start.line)?C:w}function h(S,b,w){return b+w}function s(){}function l(S,b,w,C){C.length!==0&&S.report({node:w,messageId:"unexpectedBlankLine",fix(E){if(C.length>=2)return null;const T=C[0][0],x=C[0][1],A=T.range[1],k=x.range[0],B=S.sourceCode.text.slice(A,k).replace(n,h);return E.replaceTextRange([A,k],B)}})}function g(S,b,w,C){C.length>0||S.report({node:w,messageId:"expectedBlankLine",fix(E){const T=S.sourceCode;let x=f(T,b);const A=T.getFirstTokenBetween(x,w,{includeComments:!0,filter(B){return a.isTokenOnSameLine(x,B)?(x=B,!1):!0}})||w,k=a.isTokenOnSameLine(x,A)?`
|
|
113
|
+
|
|
114
|
+
`:`
|
|
115
|
+
`;return E.insertTextAfter(x,k)}})}const d={any:{verify:s},never:{verify:l},always:{verify:g}},v={"*":{test:()=>!0},"block-like":{test:(S,b)=>i(b,S)},"cjs-export":{test:(S,b)=>S.type==="ExpressionStatement"&&S.expression.type==="AssignmentExpression"&&o.test(b.getText(S.expression.left))},"cjs-import":{test:(S,b)=>S.type==="VariableDeclaration"&&S.declarations.length>0&&!!S.declarations[0].init&&t.test(b.getText(S.declarations[0].init))},directive:{test:a.isDirective},expression:{test:S=>S.type==="ExpressionStatement"&&!a.isDirective(S)},iife:{test:m},"multiline-block-like":{test:(S,b)=>S.loc.start.line!==S.loc.end.line&&i(b,S)},"multiline-expression":{test:S=>S.loc.start.line!==S.loc.end.line&&S.type==="ExpressionStatement"&&!a.isDirective(S)},"multiline-const":c("const"),"multiline-let":c("let"),"multiline-var":c("var"),"singleline-const":p("const"),"singleline-let":p("let"),"singleline-var":p("var"),block:r("BlockStatement"),empty:r("EmptyStatement"),function:r("FunctionDeclaration"),break:u("break"),case:u("case"),class:u("class"),const:u("const"),continue:u("continue"),debugger:u("debugger"),default:u("default"),do:u("do"),export:u("export"),for:u("for"),if:u("if"),import:u("import"),let:u("let"),return:u("return"),switch:u("switch"),throw:u("throw"),try:u("try"),var:u("var"),while:u("while"),with:u("with")};return tf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"padding-line-between-statements",url:"https://eslint.style/rules/padding-line-between-statements"}}]},type:"layout",docs:{description:"Require or disallow padding lines between statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/padding-line-between-statements"},fixable:"whitespace",schema:{definitions:{paddingType:{enum:Object.keys(d)},statementType:{anyOf:[{enum:Object.keys(v)},{type:"array",items:{enum:Object.keys(v)},minItems:1,uniqueItems:!0}]}},type:"array",items:{type:"object",properties:{blankLine:{$ref:"#/definitions/paddingType"},prev:{$ref:"#/definitions/statementType"},next:{$ref:"#/definitions/statementType"}},additionalProperties:!1,required:["blankLine","prev","next"]}},messages:{unexpectedBlankLine:"Unexpected blank line before this statement.",expectedBlankLine:"Expected blank line before this statement."}},create(S){const b=S.sourceCode,w=S.options||[];let C=null;function E(){C={upper:C,prevNode:null}}function T(){C=C.upper}function x(F,P){let N=F;for(;N.type==="LabeledStatement";)N=N.body;return Array.isArray(P)?P.some(x.bind(null,N)):v[P].test(N,b)}function A(F,P){for(let N=w.length-1;N>=0;--N){const j=w[N];if(x(F,j.prev)&&x(P,j.next))return d[j.blankLine]}return d.any}function k(F,P){const N=[];let j=f(b,F);if(P.loc.start.line-j.loc.end.line>=2)do{const V=b.getTokenAfter(j,{includeComments:!0});V.loc.start.line-j.loc.end.line>=2&&N.push([j,V]),j=V}while(j.range[0]<P.range[0]);return N}function B(F){const P=F.parent.type;if(!(a.STATEMENT_LIST_PARENTS.has(P)||P==="SwitchStatement"))return;const j=C.prevNode;if(j){const V=A(j,F),O=k(j,F);V.verify(S,j,F,O)}C.prevNode=F}function R(F){B(F),E()}return{Program:E,BlockStatement:E,SwitchStatement:E,StaticBlock:E,"Program:exit":T,"BlockStatement:exit":T,"SwitchStatement:exit":T,"StaticBlock:exit":T,":statement":B,SwitchCase:R,"SwitchCase:exit":T}}},tf}var rf,US;function rI(){if(US)return rf;US=1;const a=Ue();function e(p){return p&&p.defs[0].type==="FunctionName"}function n(p,c,r){return p.meta.name===c&&p.property.name===r}function o(p){const c=p.variables;for(let r=0;r<c.length;++r){const m=c[r];if(m.name==="arguments")return m.identifiers.length===0?m:null}return null}function t(p){const c={isCallback:!1,isLexicalThis:!1};let r=p,m=p.parent,i=!1;for(;r;){switch(m.type){case"LogicalExpression":case"ChainExpression":case"ConditionalExpression":break;case"MemberExpression":if(m.object===r&&!m.property.computed&&m.property.type==="Identifier"&&m.property.name==="bind"){const f=m.parent.type==="ChainExpression"?m.parent:m;if(a.isCallee(f))i||(i=!0,c.isLexicalThis=f.parent.arguments.length===1&&f.parent.arguments[0].type==="ThisExpression"),m=f.parent;else return c}else return c;break;case"CallExpression":case"NewExpression":return m.callee!==r&&(c.isCallback=!0),c;default:return c}r=m,m=m.parent}throw new Error("unreachable")}function u(p){return p.every(c=>c.type==="Identifier")&&p.length!==new Set(p.map(c=>c.name)).size}return rf={meta:{type:"suggestion",dialects:["javascript","typescript"],language:"javascript",defaultOptions:[{allowNamedFunctions:!1,allowUnboundThis:!0}],docs:{description:"Require using arrow functions for callbacks",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-arrow-callback"},schema:[{type:"object",properties:{allowNamedFunctions:{type:"boolean"},allowUnboundThis:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{preferArrowCallback:"Unexpected function expression."}},create(p){const[{allowNamedFunctions:c,allowUnboundThis:r}]=p.options,m=p.sourceCode;let i=[];function f(){i.push({this:!1,super:!1,meta:!1})}function h(){return i.pop()}return{Program(){i=[]},ThisExpression(){const s=i.at(-1);s&&(s.this=!0)},Super(){const s=i.at(-1);s&&(s.super=!0)},MetaProperty(s){const l=i.at(-1);l&&n(s,"new","target")&&(l.meta=!0)},FunctionDeclaration:f,"FunctionDeclaration:exit":h,FunctionExpression:f,"FunctionExpression:exit"(s){const l=h();if(c&&s.id&&s.id.name||s.generator)return;const g=m.getDeclaredVariables(s)[0];if(e(g)&&g.references.length>0)return;const d=o(m.getScope(s));if(d&&d.references.length>0)return;const v=t(s);v.isCallback&&(!r||!l.this||v.isLexicalThis)&&!l.super&&!l.meta&&p.report({node:s,messageId:"preferArrowCallback",*fix(S){if(!v.isLexicalThis&&l.this||u(s.params)||s.params.length&&s.params[0].name==="this")return;if(v.isLexicalThis){const T=s.parent;if(T.type!=="MemberExpression")return;const x=T.parent,A=m.getTokenAfter(T.object,a.isNotClosingParenToken),k=m.getLastToken(x);if(a.isParenthesised(m,T)||m.commentsExistBetween(A,k))return;yield S.removeRange([A.range[0],k.range[1]])}const b=m.getFirstToken(s,s.async?1:0),w=m.getTokenAfter(b,a.isOpeningParenToken),C=m.getTokenBefore(s.body);m.commentsExistBetween(b,w)?(yield S.remove(b),s.id&&(yield S.remove(s.id))):yield S.removeRange([b.range[0],w.range[0]]),yield S.insertTextAfter(C," =>");let E=v.isLexicalThis?s.parent.parent:s;E.type==="ChainExpression"&&(E=E.parent),E.parent.type!=="CallExpression"&&E.parent.type!=="ConditionalExpression"&&!a.isParenthesised(m,E)&&!a.isParenthesised(m,s)&&(yield S.insertTextBefore(E,"("),yield S.insertTextAfter(E,")"))}})}}}},rf}var nf,qS;function nI(){if(qS)return nf;qS=1;const a=nn(),e=Ue(),n=/^(?:.+?Pattern|RestElement|SpreadProperty|ExperimentalRestProperty|Property)$/u,o=/^(?:Program|BlockStatement|StaticBlock|SwitchCase)$/u,t=/^(?:VariableDeclarator|AssignmentExpression)$/u;function u(s){return s.parent.type==="ForStatement"&&s.parent.init===s}function p(s){let l=s.parent;for(;n.test(l.type);)l=l.parent;return l.type==="VariableDeclarator"||l.type==="AssignmentExpression"&&l.parent.type==="ExpressionStatement"&&o.test(l.parent.parent.type)}function c(s,l){if(l.through.some(d=>d.resolved&&d.resolved.name===s))return!0;const g=e.getVariableByName(l,s);return g!==null?g.defs.some(d=>d.type==="Parameter"):!1}function r(s){if(!s.isWrite())return null;let l=s.identifier.parent;for(;n.test(l.type);)l=l.parent;return t.test(l.type)?l:null}function m(s){switch(s.type){case"ObjectPattern":return s.properties.some(l=>l?m(l.argument||l.value):!1);case"ArrayPattern":return s.elements.some(l=>l?m(l):!1);case"AssignmentPattern":return m(s.left);case"MemberExpression":return!0}return!1}function i(s,l){if(s.eslintUsed&&s.scope.type==="global")return null;let g=null,d=!1;const v=s.references;for(let b=0;b<v.length;++b){const w=v[b];if(w.isWrite()){if(g!==null&&g.identifier!==w.identifier)return null;const E=r(w);if(E!==null&&E.left!==void 0){const T=E.left;let x=!1,A=!1;if(T.type==="ObjectPattern"?(x=T.properties.filter(B=>B.value).map(B=>B.value.name).some(B=>c(B,s.scope)),A=m(T)):T.type==="ArrayPattern"&&(x=T.elements.map(B=>B&&B.name).some(B=>c(B,s.scope)),A=m(T)),x||A)return null}g=w}else if(w.isRead()&&g===null){if(l)return null;d=!0}}return g!==null&&g.from===s.scope&&p(g.identifier)?d?s.defs[0].name:g.identifier:null}function f(s,l){const g=new Map;for(let d=0;d<s.length;++d){const v=s[d],S=v.references,b=i(v,l);let w=null;for(let C=0;C<S.length;++C){const E=S[C],T=E.identifier;if(T===w)continue;w=T;const x=r(E);x&&(g.has(x)?g.get(x).push(b):g.set(x,[b]))}}return g}function h(s,l,g){return!s||g(s)?null:s.type===l?s:h(s.parent,l,g)}return nf={meta:{type:"suggestion",defaultOptions:[{destructuring:"any",ignoreReadBeforeAssign:!1}],docs:{description:"Require `const` declarations for variables that are never reassigned after declared",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-const"},fixable:"code",schema:[{type:"object",properties:{destructuring:{enum:["any","all"]},ignoreReadBeforeAssign:{type:"boolean"}},additionalProperties:!1}],messages:{useConst:"'{{name}}' is never reassigned. Use 'const' instead."}},create(s){const[{destructuring:l,ignoreReadBeforeAssign:g}]=s.options,d=l!=="all",v=s.sourceCode,S=[];let b=0,w=null,C="";function E(T){const x=T.filter(Boolean);if(T.length&&(d||x.length===T.length)){const A=h(T[0],"VariableDeclaration",R=>R.type.endsWith("Statement")),k=A===null;if(!k&&A.declarations.length>0){const R=A.declarations[0];if(R.init){const F=R.init.parent;F.type==="VariableDeclarator"&&(F.id.name!==C&&(C=F.id.name,b=0),F.id.type==="ObjectPattern"&&F.init.name!==C&&(C=F.init.name,b=0),F.id!==w&&(w=F.id,b=0))}}let B=A&&(A.parent.type==="ForInStatement"||A.parent.type==="ForOfStatement"||A.declarations.every(R=>R.init))&&x.length===T.length;if(!k&&A.declarations&&A.declarations.length!==1&&A&&A.declarations&&A.declarations.length>=1){b+=x.length;let R=0;A.declarations.forEach(F=>{F.id.type==="ObjectPattern"?R+=F.id.properties.length:F.id.type==="ArrayPattern"?R+=F.id.elements.length:R+=1}),B=B&&b===R}x.forEach(R=>{s.report({node:R,messageId:"useConst",data:R,fix:B?F=>{const P=v.getFirstToken(A,N=>N.value===A.kind);return new a(F,v).retainRange(A.range).replaceTextRange(P.range,"const")}:null})})}}return{"Program:exit"(){f(S,g).forEach(E)},VariableDeclaration(T){T.kind==="let"&&!u(T)&&S.push(...v.getDeclaredVariables(T))}}}},nf}var sf,VS;function sI(){if(VS)return sf;VS=1;const a=Ue(),e=a.getPrecedence({type:"AssignmentExpression"});return sf={meta:{type:"suggestion",docs:{description:"Require destructuring from arrays and/or objects",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-destructuring"},fixable:"code",schema:[{oneOf:[{type:"object",properties:{VariableDeclarator:{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1},AssignmentExpression:{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1}]},{type:"object",properties:{enforceForRenamedProperties:{type:"boolean"}},additionalProperties:!1}],messages:{preferDestructuring:"Use {{type}} destructuring."}},create(n){const o=n.options[0],t=n.options[1]&&n.options[1].enforceForRenamedProperties;let u={VariableDeclarator:{array:!0,object:!0},AssignmentExpression:{array:!0,object:!0}};o&&(u=typeof o.array<"u"||typeof o.object<"u"?{VariableDeclarator:o,AssignmentExpression:o}:o);function p(l,g){return u&&u[l]&&u[l][g]}function c(l){return Number.isInteger(l.property.value)}function r(l,g,d){n.report({node:l,messageId:"preferDestructuring",data:{type:g},fix:d})}function m(l){return l.type==="VariableDeclarator"&&l.id.type==="Identifier"&&l.init.type==="MemberExpression"&&!l.init.computed&&l.init.property.type==="Identifier"&&l.id.name===l.init.property.name}function i(l,g){const d=g.init,v=n.sourceCode;if(v.getCommentsInside(g).length>v.getCommentsInside(d.object).length)return null;let S=v.getText(d.object);return a.getPrecedence(d.object)<e&&(S=`(${S})`),l.replaceText(g,`{${d.property.name}} = ${S}`)}function f(l,g,d){if(g.type!=="MemberExpression"||g.object.type==="Super"||g.property.type==="PrivateIdentifier")return;if(c(g)){p(d.type,"array")&&r(d,"array",null);return}const v=m(d)?S=>i(S,d):null;if(p(d.type,"object")&&t){r(d,"object",v);return}if(p(d.type,"object")){const S=g.property;(S.type==="Literal"&&l.name===S.value||S.type==="Identifier"&&l.name===S.name&&!g.computed)&&r(d,"object",v)}}function h(l){l.init&&l.init.type==="MemberExpression"&&f(l.id,l.init,l)}function s(l){l.operator==="="&&f(l.left,l.right,l)}return{VariableDeclarator:h,AssignmentExpression:s}}},sf}var af,$S;function aI(){if($S)return af;$S=1;const a=Ue(),{CALL:e,ReferenceTracker:n}=qt(),o=a.getPrecedence({type:"BinaryExpression",operator:"**"});function t(r){return a.getPrecedence(r)<=o||r.type==="AwaitExpression"||r.type==="UnaryExpression"}function u(r){return a.getPrecedence(r)<o}function p(r,m){const i=r.parent.type==="ChainExpression"?r.parent.parent:r.parent,f=a.getPrecedence(i);return(i.type==="ClassDeclaration"||i.type.endsWith("Expression")&&(f===-1||f>=o)&&!(i.type==="BinaryExpression"&&i.operator==="**"&&i.right===r)&&!((i.type==="CallExpression"||i.type==="NewExpression")&&i.arguments.includes(r))&&!(i.type==="MemberExpression"&&i.computed&&i.property===r)&&i.type!=="ArrayExpression")&&!a.isParenthesised(m,r)}function c(r,m){return m?`(${r})`:r}return af={meta:{type:"suggestion",docs:{description:"Disallow the use of `Math.pow` in favor of the `**` operator",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-exponentiation-operator"},schema:[],fixable:"code",messages:{useExponentiation:"Use the '**' operator instead of 'Math.pow'."}},create(r){const m=r.sourceCode;function i(f){r.report({node:f,messageId:"useExponentiation",fix(h){if(f.arguments.length!==2||f.arguments.some(A=>A.type==="SpreadElement")||m.getCommentsInside(f).length>0)return null;const s=f.arguments[0],l=f.arguments[1],g=m.getText(s),d=m.getText(l),v=t(s),S=u(l),b=p(f,m);let w="",C="";if(!b){if(!v){const A=m.getFirstToken(s),k=m.getTokenBefore(f);k&&k.range[1]===f.range[0]&&!a.canTokensBeAdjacent(k,A)&&(w=" ")}if(!S){const A=m.getLastToken(l),k=m.getTokenAfter(f);k&&f.range[1]===k.range[0]&&!a.canTokensBeAdjacent(A,k)&&(C=" ")}}const E=c(g,v),T=c(d,S),x=c(`${E}**${T}`,b);return h.replaceText(f,`${w}${x}${C}`)}})}return{Program(f){const h=m.getScope(f),s=new n(h),l={Math:{pow:{[e]:!0}}};for(const{node:g}of s.iterateGlobalReferences(l))i(g)}}}},af}var of,WS;function iI(){if(WS)return of;WS=1;const{CALL:a,CONSTRUCT:e,ReferenceTracker:n,getStringIfConstant:o}=qt(),t=ur(),u=new t.RegExpParser;function p(c,r,m,i){switch(i.type){case"Literal":if(typeof i.value=="string"&&m.includes("\\"))return null;break;case"TemplateLiteral":if(i.expressions.length||m.slice(1,-1)!==r)return null;break;default:return null}const f=i.range[0]+c+2;return[{fix(h){const l=(r.match(/temp\d+/gu)||[]).reduce((g,d)=>Math.max(g,Number(d.slice(4))),0);return h.insertTextBeforeRange([f,f],`?<temp${l+1}>`)},messageId:"addGroupName"},{fix(h){return h.insertTextBeforeRange([f,f],"?:")},messageId:"addNonCapture"}]}return of={meta:{type:"suggestion",docs:{description:"Enforce using named capture group in regular expression",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-named-capture-group"},hasSuggestions:!0,schema:[],messages:{addGroupName:"Add name to capture group.",addNonCapture:"Convert group to non-capturing.",required:"Capture group '{{group}}' should be converted to a named or non-capturing group."}},create(c){const r=c.sourceCode;function m(i,f,h,s){let l;try{l=u.parsePattern(i,0,i.length,{unicode:!!(s&&s.includes("u")),unicodeSets:!!(s&&s.includes("v"))})}catch{return}t.visitRegExpAST(l,{onCapturingGroupEnter(g){if(!g.name){const d=r.getText(h),v=p(g.start,i,d,h);c.report({node:f,messageId:"required",data:{group:g.raw},suggest:v})}}})}return{Literal(i){i.regex&&m(i.regex.pattern,i,i,i.regex.flags)},Program(i){const f=r.getScope(i),h=new n(f),s={RegExp:{[a]:!0,[e]:!0}};for(const{node:l}of h.iterateGlobalReferences(s)){const g=o(l.arguments[0]),d=o(l.arguments[1]);g&&m(g,l,l.arguments[0],d)}}}}},of}var lf,GS;function oI(){if(GS)return lf;GS=1;const a=Ue(),e=new Map([[2,{system:"binary",literalPrefix:"0b"}],[8,{system:"octal",literalPrefix:"0o"}],[16,{system:"hexadecimal",literalPrefix:"0x"}]]);function n(o){return a.isSpecificId(o,"parseInt")||a.isSpecificMemberAccess(o,"Number","parseInt")}return lf={meta:{type:"suggestion",docs:{description:"Disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-numeric-literals"},schema:[],messages:{useLiteral:"Use {{system}} literals instead of {{functionName}}()."},fixable:"code"},create(o){const t=o.sourceCode;return{"CallExpression[arguments.length=2]"(u){const[p,c]=u.arguments,r=a.getStaticStringValue(p),m=c.value;if(r!==null&&a.isStringLiteral(p)&&c.type==="Literal"&&typeof m=="number"&&e.has(m)&&n(u.callee)){const{system:i,literalPrefix:f}=e.get(m);o.report({node:u,messageId:"useLiteral",data:{system:i,functionName:t.getText(u.callee)},fix(h){if(t.getCommentsInside(u).length)return null;const s=`${f}${r}`;if(+s!==parseInt(r,m))return null;const l=t.getTokenBefore(u),g=t.getTokenAfter(u);let d="",v="";return l&&l.range[1]===u.range[0]&&!a.canTokensBeAdjacent(l,s)&&(d=" "),g&&u.range[1]===g.range[0]&&!a.canTokensBeAdjacent(s,g)&&(v=" "),h.replaceText(u,`${d}${s}${v}`)}})}}}}},lf}var uf,zS;function lI(){if(zS)return uf;zS=1;const a=Ue();function e(n){if(n.object.type==="ObjectExpression"&&n.object.properties.length===0)return!0;const o=n.object.type==="MemberExpression"&&a.getStaticPropertyName(n.object)==="prototype"?n.object.object:n.object;return o.type==="Identifier"&&o.name==="Object"}return uf={meta:{type:"suggestion",docs:{description:"Disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-object-has-own"},schema:[],messages:{useHasOwn:"Use 'Object.hasOwn()' instead of 'Object.prototype.hasOwnProperty.call()'."},fixable:"code"},create(n){const o=n.sourceCode;return{CallExpression(t){if(!(t.callee.type==="MemberExpression"&&t.callee.object.type==="MemberExpression"))return;const u=a.getStaticPropertyName(t.callee),p=a.getStaticPropertyName(t.callee.object),c=e(t.callee.object),r=o.getScope(t),m=a.getVariableByName(r,"Object");u==="call"&&p==="hasOwnProperty"&&c&&m&&m.scope.type==="global"&&n.report({node:t,messageId:"useHasOwn",fix(i){if(o.getCommentsInside(t.callee).length>0)return null;const f=o.getTokenBefore(t.callee,{includeComments:!0});return f&&f.range[1]===t.callee.range[0]&&!a.canTokensBeAdjacent(f,"Object.hasOwn")?i.replaceText(t.callee," Object.hasOwn"):i.replaceText(t.callee,"Object.hasOwn")}})}}}},uf}var cf,HS;function uI(){if(HS)return cf;HS=1;const{CALL:a,ReferenceTracker:e}=qt(),{isCommaToken:n,isOpeningParenToken:o,isClosingParenToken:t,isParenthesised:u}=Ue(),p=/\s/u;function c(v){return v.arguments.some(S=>S.type==="SpreadElement")}function r(v){return v.type==="Property"&&(v.kind==="get"||v.kind==="set")}function m(v){return v.properties.some(r)}function i(v){return v.arguments.filter(S=>S.type==="ObjectExpression").some(m)}function f(v,S){const b=v.parent;switch(b.type){case"VariableDeclarator":case"ArrayExpression":case"ReturnStatement":case"CallExpression":case"Property":return!1;case"AssignmentExpression":return b.left===v&&!u(S,v);default:return!u(S,v)}}function h(v,S){switch(v.type){case"AssignmentExpression":case"ArrowFunctionExpression":case"ConditionalExpression":return!u(S,v);default:return!1}}function s(v,S,b){const w=[b.getFirstToken(v),b.getLastToken(v)];let C=b.getTokenBefore(v),E=b.getTokenAfter(v);for(;C&&E&&C.range[0]>S.range[0]&&o(C)&&t(E);)w.push(C,E),C=b.getTokenBefore(C),E=b.getTokenAfter(E);return w.sort((T,x)=>T.range[0]-x.range[0])}function l(v,S){const b=S.text;let w=v.range[0];{const C=S.getTokenBefore(v,{includeComments:!0});if(C&&C.type==="Line")return w}for(;p.test(b[w-1]||"");)w-=1;return w}function g(v,S){const b=S.text;let w=v.range[1];for(;p.test(b[w]||"");)w+=1;return w}function d(v,S){return function*(b){const w=S.getTokenAfter(v.callee,o),C=S.getLastToken(v);yield b.removeRange([v.range[0],w.range[0]]),f(v,S)?(yield b.replaceText(w,"({"),yield b.replaceText(C,"})")):(yield b.replaceText(w,"{"),yield b.replaceText(C,"}"));for(const E of v.arguments){const T=s(E,w,S),x=T.shift(),A=T.pop();if(E.type==="ObjectExpression"){const k=S.getLastToken(E,1),B=S.getTokenAfter(A);for(const P of T)yield b.remove(P);const R=[x.range[0],g(x,S)],F=[Math.max(l(A,S),R[1]),A.range[1]];yield b.removeRange(R),yield b.removeRange(F),(E.properties.length===0||n(k))&&n(B)&&(yield b.remove(B))}else h(E,S)?(yield b.insertTextBefore(x,"...("),yield b.insertTextAfter(A,")")):yield b.insertTextBefore(x,"...")}}}return cf={meta:{type:"suggestion",docs:{description:"Disallow using `Object.assign` with an object literal as the first argument and prefer the use of object spread instead",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-object-spread"},schema:[],fixable:"code",messages:{useSpreadMessage:"Use an object spread instead of `Object.assign` eg: `{ ...foo }`.",useLiteralMessage:"Use an object literal instead of `Object.assign`. eg: `{ foo: bar }`."}},create(v){const S=v.sourceCode;return{Program(b){const w=S.getScope(b),C=new e(w),E={Object:{assign:{[a]:!0}}};for(const{node:T}of C.iterateGlobalReferences(E))if(T.arguments.length>=1&&T.arguments[0].type==="ObjectExpression"&&!c(T)&&!(T.arguments.length>1&&i(T))){const x=T.arguments.length===1?"useLiteralMessage":"useSpreadMessage",A=d(T,S);v.report({node:T,messageId:x,fix:A})}}}}},cf}var ff,KS;function cI(){if(KS)return ff;KS=1;const a=Ue();return ff={meta:{type:"suggestion",defaultOptions:[{allowEmptyReject:!1}],docs:{description:"Require using Error objects as Promise rejection reasons",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-promise-reject-errors"},fixable:null,schema:[{type:"object",properties:{allowEmptyReject:{type:"boolean"}},additionalProperties:!1}],messages:{rejectAnError:"Expected the Promise rejection reason to be an Error."}},create(e){const[{allowEmptyReject:n}]=e.options,o=e.sourceCode;function t(p){!p.arguments.length&&n||(!p.arguments.length||!a.couldBeError(p.arguments[0])||p.arguments[0].type==="Identifier"&&p.arguments[0].name==="undefined")&&e.report({node:p,messageId:"rejectAnError"})}function u(p){return a.isSpecificMemberAccess(p.callee,"Promise","reject")}return{CallExpression(p){u(p)&&t(p)},"NewExpression:exit"(p){p.callee.type==="Identifier"&&p.callee.name==="Promise"&&p.arguments.length&&a.isFunction(p.arguments[0])&&p.arguments[0].params.length>1&&p.arguments[0].params[1].type==="Identifier"&&o.getDeclaredVariables(p.arguments[0]).find(c=>c.name===p.arguments[0].params[1].name).references.filter(c=>c.isRead()).filter(c=>c.identifier.parent.type==="CallExpression"&&c.identifier===c.identifier.parent.callee).forEach(c=>t(c.identifier.parent))}}}},ff}var pf,XS;function fI(){return XS||(XS=1,pf={meta:{type:"suggestion",docs:{description:"Require `Reflect` methods where applicable",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-reflect"},deprecated:{message:"The original intention of this rule was misguided.",deprecatedSince:"3.9.0",availableUntil:null,replacedBy:[]},schema:[{type:"object",properties:{exceptions:{type:"array",items:{enum:["apply","call","delete","defineProperty","getOwnPropertyDescriptor","getPrototypeOf","setPrototypeOf","isExtensible","getOwnPropertyNames","preventExtensions"]},uniqueItems:!0}},additionalProperties:!1}],messages:{preferReflect:"Avoid using {{existing}}, instead use {{substitute}}."}},create(a){const e={apply:"Function.prototype.apply",call:"Function.prototype.call",defineProperty:"Object.defineProperty",getOwnPropertyDescriptor:"Object.getOwnPropertyDescriptor",getPrototypeOf:"Object.getPrototypeOf",setPrototypeOf:"Object.setPrototypeOf",isExtensible:"Object.isExtensible",getOwnPropertyNames:"Object.getOwnPropertyNames",preventExtensions:"Object.preventExtensions"},n={apply:"Reflect.apply",call:"Reflect.apply",defineProperty:"Reflect.defineProperty",getOwnPropertyDescriptor:"Reflect.getOwnPropertyDescriptor",getPrototypeOf:"Reflect.getPrototypeOf",setPrototypeOf:"Reflect.setPrototypeOf",isExtensible:"Reflect.isExtensible",getOwnPropertyNames:"Reflect.getOwnPropertyNames",preventExtensions:"Reflect.preventExtensions"},o=(a.options[0]||{}).exceptions||[];function t(u,p,c){a.report({node:u,messageId:"preferReflect",data:{existing:p,substitute:c}})}return{CallExpression(u){const p=(u.callee.property||{}).name,c=(u.callee.object||{}).name==="Reflect",r=Object.hasOwn(n,p),m=o.includes(p);r&&!c&&!m&&t(u,e[p],n[p])},UnaryExpression(u){const p=u.operator==="delete",c=u.argument.type==="Identifier",r=o.includes("delete");p&&!c&&!r&&t(u,"the delete keyword","Reflect.deleteProperty")}}}}),pf}var mf,JS;function pI(){if(JS)return mf;JS=1;const a=Ue(),{CALL:e,CONSTRUCT:n,ReferenceTracker:o}=qt(),{RegExpValidator:t,visitRegExpAST:u,RegExpParser:p}=ur(),{canTokensBeAdjacent:c}=Ue(),{REGEXPP_LATEST_ECMA_VERSION:r}=au();function m(h){return h.type==="Literal"&&typeof h.value=="string"}function i(h){return h.type==="Literal"&&Object.hasOwn(h,"regex")}const f=new Set(["(",";","[",",","=","+","*","-","?","~","%","**","!","typeof","instanceof","&&","||","??","return","...","delete","void","in","<",">","<=",">=","==","===","!=","!==","<<",">>",">>>","&","|","^",":","{","=>","*=","<<=",">>=",">>>=","^=","|=","&=","??=","||=","&&=","**=","+=","-=","/=","%=","/","do","break","continue","debugger","case","throw"]);return mf={meta:{type:"suggestion",defaultOptions:[{disallowRedundantWrapping:!1}],docs:{description:"Disallow use of the `RegExp` constructor in favor of regular expression literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-regex-literals"},hasSuggestions:!0,schema:[{type:"object",properties:{disallowRedundantWrapping:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedRegExp:"Use a regular expression literal instead of the 'RegExp' constructor.",replaceWithLiteral:"Replace with an equivalent regular expression literal.",replaceWithLiteralAndFlags:"Replace with an equivalent regular expression literal with flags '{{ flags }}'.",replaceWithIntendedLiteralAndFlags:"Replace with a regular expression literal with flags '{{ flags }}'.",unexpectedRedundantRegExp:"Regular expression literal is unnecessarily wrapped within a 'RegExp' constructor.",unexpectedRedundantRegExpWithFlags:"Use regular expression literal with flags instead of the 'RegExp' constructor."}},create(h){const[{disallowRedundantWrapping:s}]=h.options,l=h.sourceCode;function g(R){return R.type==="TaggedTemplateExpression"&&a.isSpecificMemberAccess(R.tag,"String","raw")&&l.isGlobalReference(a.skipChainExpression(R.tag).object)&&a.isStaticTemplateLiteral(R.quasi)}function d(R){return m(R)?R.value:a.isStaticTemplateLiteral(R)?R.quasis[0].value.cooked:g(R)?R.quasi.quasis[0].value.raw:null}function v(R){return m(R)||a.isStaticTemplateLiteral(R)||g(R)}function S(R){const F=R.arguments;return!!((F.length===1||F.length===2)&&F.every(v))}function b(R){const F=R.arguments;return!!(F.length===1&&i(F[0])||F.length===2&&i(F[0])&&v(F[1]))}function w(R){return R<=5?5:Math.min(R,r)}const C=w(h.languageOptions.ecmaVersion);function E(R){switch(R){case`
|
|
116
|
+
`:case`\\
|
|
117
|
+
`:return"\\n";case"\r":case"\\\r":return"\\r";case" ":case"\\ ":return"\\t";case"\v":case"\\\v":return"\\v";case"\f":case"\\\f":return"\\f";case"/":return"\\/";default:return null}}function T(R,F){const P=new t({ecmaVersion:C});try{return P.validatePattern(R,0,R.length,{unicode:F?F.includes("u"):!1,unicodeSets:F?F.includes("v"):!1}),F&&P.validateFlags(F),!0}catch{return!1}}function x(R,F){return[...R].sort().join("")===[...F].sort().join("")}function A(R,F){return[...new Set([...R,...F])].join("")}function k(R,F,P){const N=l.getTokenBefore(R);return l.getCommentsInside(R).length===0&&(!N||f.has(N.value))&&T(F,P)}function B(R,F){const P=l.getTokenBefore(R),N=l.getTokenAfter(R);return(P&&!c(P,F)&&P.range[1]===R.range[0]?" ":"")+F+(N&&!c(F,N)&&R.range[1]===N.range[0]?" ":"")}return{Program(R){const F=l.getScope(R),P=new o(F),N={RegExp:{[e]:!0,[n]:!0}};for(const{node:j}of P.iterateGlobalReferences(N))if(s&&b(j)){const V=j.arguments[0];if(j.arguments.length===2){const O=[],G=d(j.arguments[1])||"";k(j,V.regex.pattern,G)&&O.push({messageId:"replaceWithLiteralAndFlags",pattern:V.regex.pattern,flags:G});const L=V.regex.flags||"",K=A(L,G);!x(K,G)&&k(j,V.regex.pattern,K)&&O.push({messageId:"replaceWithIntendedLiteralAndFlags",pattern:V.regex.pattern,flags:K}),h.report({node:j,messageId:"unexpectedRedundantRegExpWithFlags",suggest:O.map(({flags:H,pattern:ae,messageId:re})=>({messageId:re,data:{flags:H},fix(De){return De.replaceText(j,B(j,`/${ae}/${H}`))}}))})}else{const O=[];k(j,V.regex.pattern,V.regex.flags)&&O.push(l.getText(V)),h.report({node:j,messageId:"unexpectedRedundantRegExp",suggest:O.map(G=>({messageId:"replaceWithLiteral",fix(L){return L.replaceText(j,B(j,G))}}))})}}else if(S(j)){let V=d(j.arguments[0]),O=!1,G;if(j.arguments[1]&&(G=d(j.arguments[1])),k(j,V,G)||(O=!0),/^[-a-zA-Z0-9\\[\](){} \t\r\n\v\f!@#$%^&*+^_=/~`.><?,'"|:;]*$/u.test(V)||(O=!0),V&&!O){let K=0;const H=new p({ecmaVersion:C}).parsePattern(V,0,V.length,{unicode:G?G.includes("u"):!1,unicodeSets:G?G.includes("v"):!1});u(H,{onCharacterEnter(ae){const re=E(ae.raw);re&&(V=V.slice(0,ae.start+K)+re+V.slice(ae.end+K),ae.raw.length===1&&(K+=1))}})}const L=`/${V||"(?:)"}/${G||""}`;h.report({node:j,messageId:"unexpectedRegExp",suggest:O?[]:[{messageId:"replaceWithLiteral",fix(K){return K.replaceText(j,B(j,L))}}]})}}}}},mf}var hf,YS;function mI(){if(YS)return hf;YS=1;function a(n){const o=n.variables;for(let t=0;t<o.length;++t){const u=o[t];if(u.name==="arguments")return u.identifiers.length===0?u:null}return null}function e(n){const o=n.identifier,t=o.parent;return!(t.type==="MemberExpression"&&t.object===o&&!t.computed)}return hf={meta:{type:"suggestion",docs:{description:"Require rest parameters instead of `arguments`",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-rest-params"},schema:[],messages:{preferRestParams:"Use the rest parameters instead of 'arguments'."}},create(n){const o=n.sourceCode;function t(p){n.report({node:p.identifier,loc:p.identifier.loc,messageId:"preferRestParams"})}function u(p){const c=a(o.getScope(p));c&&c.references.filter(e).forEach(t)}return{"FunctionDeclaration:exit":u,"FunctionExpression:exit":u}}},hf}var df,QS;function hI(){if(QS)return df;QS=1;const a=Ue();function e(o){return a.isSpecificMemberAccess(o.callee,null,"apply")&&o.arguments.length===2&&o.arguments[1].type!=="ArrayExpression"&&o.arguments[1].type!=="SpreadElement"}function n(o,t,u){return o?a.equalTokens(o,t,u):a.isNullOrUndefined(t)}return df={meta:{type:"suggestion",docs:{description:"Require spread operators instead of `.apply()`",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-spread"},schema:[],fixable:null,messages:{preferSpread:"Use the spread operator instead of '.apply()'."}},create(o){const t=o.sourceCode;return{CallExpression(u){if(!e(u))return;const p=a.skipChainExpression(a.skipChainExpression(u.callee).object),c=p.type==="MemberExpression"?p.object:null,r=u.arguments[0];n(c,r,t)&&o.report({node:u,messageId:"preferSpread"})}}}},df}var gf,ZS;function dI(){if(ZS)return gf;ZS=1;const a=Ue();function e(r){return r.type==="BinaryExpression"&&r.operator==="+"}function n(r){let m=r;for(;e(m.parent);)m=m.parent;return m}function o(r){return e(r)?o(r.left)||o(r.right):r.type==="Literal"&&typeof r.value=="string"?a.hasOctalOrNonOctalDecimalEscapeSequence(r.raw):!1}function t(r){return e(r)?t(r.right)||t(r.left):a.isStringLiteral(r)}function u(r){return e(r)?u(r.right)||u(r.left):!a.isStringLiteral(r)}function p(r){return r.type==="BinaryExpression"?p(r.left):r.type==="TemplateLiteral"?r.expressions.length&&r.quasis.length&&r.quasis[0].range[0]===r.quasis[0].range[1]:r.type!=="Literal"||typeof r.value!="string"}function c(r){return r.type==="BinaryExpression"?p(r.right):r.type==="TemplateLiteral"?r.expressions.length&&r.quasis.length&&r.quasis.at(-1).range[0]===r.quasis.at(-1).range[1]:r.type!=="Literal"||typeof r.value!="string"}return gf={meta:{type:"suggestion",docs:{description:"Require template literals instead of string concatenation",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-template"},schema:[],fixable:"code",messages:{unexpectedStringConcatenation:"Unexpected string concatenation."}},create(r){const m=r.sourceCode;let i=Object.create(null);function f(g,d){const v=[g].concat(m.getTokensBetween(g,d)).concat(d),S=m.getText();return v.slice(0,-1).reduce((b,w,C)=>b+S.slice(w.range[1],v[C+1].range[0]),"")}function h(g,d,v){if(g.type==="Literal"&&typeof g.value=="string")return`\`${g.raw.slice(1,-1).replace(/\\*(\$\{|`)/gu,S=>S.lastIndexOf("\\")%2?`\\${S}`:S).replace(new RegExp(`\\\\${g.raw[0]}`,"gu"),g.raw[0])}\``;if(g.type==="TemplateLiteral")return m.getText(g);if(e(g)&&t(g)){const S=m.getFirstTokenBetween(g.left,g.right,T=>T.value==="+"),b=f(g.left,S),w=f(S,g.right),C=c(g.left),E=p(g.right);return C?h(g.left,d,b+w).slice(0,-1)+h(g.right,null,v).slice(1):E?h(g.left,d,null).slice(0,-1)+h(g.right,b+w,v).slice(1):`${h(g.left,d,null)}${b}+${w}${h(g.right,v,null)}`}return`\`\${${d||""}${m.getText(g)}${v||""}}\``}function s(g,d){const v=n(d.parent);return o(v)?null:g.replaceText(v,h(v,null,null))}function l(g){if(!a.isStringLiteral(g)||!e(g.parent))return;const d=n(g.parent);i[d.range[0]]||(i[d.range[0]]=!0,u(d)&&r.report({node:d,messageId:"unexpectedStringConcatenation",fix:v=>s(v,g)}))}return{Program(){i=Object.create(null)},Literal:l,TemplateLiteral:l}}},gf}var yf,eb;function gI(){if(eb)return yf;eb=1;const a=hn(),e=Ue(),n=Wi();return yf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"quote-props",url:"https://eslint.style/rules/quote-props"}}]},type:"suggestion",docs:{description:"Require quotes around object literal property names",recommended:!1,url:"https://eslint.org/docs/latest/rules/quote-props"},schema:{anyOf:[{type:"array",items:[{enum:["always","as-needed","consistent","consistent-as-needed"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always","as-needed","consistent","consistent-as-needed"]},{type:"object",properties:{keywords:{type:"boolean"},unnecessary:{type:"boolean"},numbers:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},fixable:"code",messages:{requireQuotesDueToReservedWord:"Properties should be quoted as '{{property}}' is a reserved word.",inconsistentlyQuotedProperty:"Inconsistently quoted property '{{key}}' found.",unnecessarilyQuotedProperty:"Unnecessarily quoted property '{{property}}' found.",unquotedReservedProperty:"Unquoted reserved word '{{property}}' used as key.",unquotedNumericProperty:"Unquoted number literal '{{property}}' used as key.",unquotedPropertyFound:"Unquoted property '{{property}}' found.",redundantQuoting:"Properties shouldn't be quoted as all quotes are redundant."}},create(o){const t=o.options[0],u=o.options[1]&&o.options[1].keywords,p=!o.options[1]||o.options[1].unnecessary!==!1,c=o.options[1]&&o.options[1].numbers,r=o.sourceCode;function m(d){return n.includes(d)}function i(d,v,S){return v.length===1&&v[0].start===0&&v[0].end===d.length&&(["Identifier","Keyword","Null","Boolean"].includes(v[0].type)||v[0].type==="Numeric"&&!S&&String(+v[0].value)===v[0].value)}function f(d){return d.type==="Identifier"?d.name:d.value}function h(d){return d.type==="Literal"&&typeof d.value=="string"?r.getText(d):`"${d.type==="Identifier"?d.name:d.value}"`}function s(d){const v=d.key;if(!(d.method||d.computed||d.shorthand))if(v.type==="Literal"&&typeof v.value=="string"){let S;try{S=a.tokenize(v.value)}catch{return}if(S.length!==1||m(S[0].value)&&u)return;p&&i(v.value,S,c)&&o.report({node:d,messageId:"unnecessarilyQuotedProperty",data:{property:v.value},fix:w=>w.replaceText(v,f(v))})}else u&&v.type==="Identifier"&&m(v.name)?o.report({node:d,messageId:"unquotedReservedProperty",data:{property:v.name},fix:S=>S.replaceText(v,h(v))}):c&&v.type==="Literal"&&e.isNumericLiteral(v)&&o.report({node:d,messageId:"unquotedNumericProperty",data:{property:v.value},fix:S=>S.replaceText(v,h(v))})}function l(d){const v=d.key;!d.method&&!d.computed&&!d.shorthand&&!(v.type==="Literal"&&typeof v.value=="string")&&o.report({node:d,messageId:"unquotedPropertyFound",data:{property:v.name||v.value},fix:S=>S.replaceText(v,h(v))})}function g(d,v){const S=[],b=[];let w=null,C=!1;d.properties.forEach(E=>{const T=E.key;if(!(!T||E.method||E.computed||E.shorthand))if(T.type==="Literal"&&typeof T.value=="string"){if(S.push(E),v){let x;try{x=a.tokenize(T.value)}catch{C=!0;return}C=C||!i(T.value,x)||u&&m(x[0].value)}}else u&&v&&T.type==="Identifier"&&m(T.name)?(b.push(E),C=!0,w=T.name):b.push(E)}),v&&S.length&&!C?S.forEach(E=>{o.report({node:E,messageId:"redundantQuoting",fix:T=>T.replaceText(E.key,f(E.key))})}):b.length&&w?b.forEach(E=>{o.report({node:E,messageId:"requireQuotesDueToReservedWord",data:{property:w},fix:T=>T.replaceText(E.key,h(E.key))})}):S.length&&b.length&&b.forEach(E=>{o.report({node:E,messageId:"inconsistentlyQuotedProperty",data:{key:E.key.name||E.key.value},fix:T=>T.replaceText(E.key,h(E.key))})})}return{Property(d){(t==="always"||!t)&&l(d),t==="as-needed"&&s(d)},ObjectExpression(d){t==="consistent"&&g(d,!1),t==="consistent-as-needed"&&g(d,!0)}}}},yf}var vf,tb;function yI(){if(tb)return vf;tb=1;const a=Ue(),e={double:{quote:'"',alternateQuote:"'",description:"doublequote"},single:{quote:"'",alternateQuote:'"',description:"singlequote"},backtick:{quote:"`",alternateQuote:'"',description:"backtick"}},n=new RegExp(String.raw`(^|[^\\])(\\\\)*[${Array.from(a.LINEBREAKS).join("")}]`,"u");e.double.convert=e.single.convert=e.backtick.convert=function(t){const u=this.quote,p=t[0];return u===p?t:u+t.slice(1,-1).replace(/\\(\$\{|\r\n?|\n|.)|["'`]|\$\{|(\r\n?|\n)/gu,(c,r,m)=>r===p||p==="`"&&r==="${"?r:c===u||u==="`"&&c==="${"?`\\${c}`:m&&p==="`"?"\\n":c)+u};const o="avoid-escape";return vf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"quotes",url:"https://eslint.style/rules/quotes"}}]},type:"layout",docs:{description:"Enforce the consistent use of either backticks, double, or single quotes",recommended:!1,url:"https://eslint.org/docs/latest/rules/quotes"},fixable:"code",schema:[{enum:["single","double","backtick"]},{anyOf:[{enum:["avoid-escape"]},{type:"object",properties:{avoidEscape:{type:"boolean"},allowTemplateLiterals:{type:"boolean"}},additionalProperties:!1}]}],messages:{wrongQuotes:"Strings must use {{description}}."}},create(t){const u=t.options[0],p=e[u||"double"],c=t.options[1],r=c&&c.allowTemplateLiterals===!0,m=t.sourceCode;let i=c&&c.avoidEscape===!0;c===o&&(i=!0);function f(d){return d.parent.type==="JSXAttribute"||d.parent.type==="JSXElement"||d.parent.type==="JSXFragment"}function h(d){return d.type==="ExpressionStatement"&&d.expression.type==="Literal"&&typeof d.expression.value=="string"&&!a.isParenthesised(m,d.expression)}function s(d){if(!a.isTopLevelExpressionStatement(d.parent))return!1;const v=d.parent.parent;for(let S=0;S<v.body.length;++S){const b=v.body[S];if(b===d.parent)return!0;if(!h(b))break}return!1}function l(d){const v=d.parent;switch(v.type){case"ExpressionStatement":return!a.isParenthesised(m,d)&&s(d);case"Property":case"PropertyDefinition":case"MethodDefinition":return v.key===d&&!v.computed;case"ImportDeclaration":case"ExportNamedDeclaration":return v.source===d;case"ExportAllDeclaration":return v.exported===d||v.source===d;case"ImportSpecifier":return v.imported===d;case"ExportSpecifier":return v.local===d||v.exported===d;default:return!1}}function g(d){return!!(d.parent.type==="TaggedTemplateExpression"&&d===d.parent.quasi||d.expressions.length>0||d.quasis.length>=1&&n.test(d.quasis[0].value.raw))}return{Literal(d){const v=d.value,S=d.raw;if(p&&typeof v=="string"){let b=u==="backtick"&&l(d)||f(d)||a.isSurroundedBy(S,p.quote);!b&&i&&(b=a.isSurroundedBy(S,p.alternateQuote)&&S.includes(p.quote)),b||t.report({node:d,messageId:"wrongQuotes",data:{description:p.description},fix(w){return u==="backtick"&&a.hasOctalOrNonOctalDecimalEscapeSequence(S)?null:w.replaceText(d,p.convert(d.raw))}})}},TemplateLiteral(d){r||u==="backtick"||g(d)||t.report({node:d,messageId:"wrongQuotes",data:{description:p.description},fix(v){return a.isTopLevelExpressionStatement(d.parent)&&!a.isParenthesised(m,d)?null:v.replaceText(d,p.convert(m.getText(d)))}})}}}},vf}var Ef,rb;function vI(){if(rb)return Ef;rb=1;const a=Ue(),e="always",n="as-needed",o=new Set(Array.from({length:35},(r,m)=>m+2));function t(r){return r.defs.length>=1}function u(r){return r.type==="MemberExpression"&&!r.computed&&r.property.type==="Identifier"&&r.property.name==="parseInt"}function p(r){return!(r.type==="Literal"&&!o.has(r.value)||r.type==="Identifier"&&r.name==="undefined")}function c(r){return r.type==="Literal"&&r.value===10}return Ef={meta:{type:"suggestion",defaultOptions:[e],docs:{description:"Enforce the consistent use of the radix argument when using `parseInt()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/radix"},hasSuggestions:!0,schema:[{enum:["always","as-needed"]}],messages:{missingParameters:"Missing parameters.",redundantRadix:"Redundant radix parameter.",missingRadix:"Missing radix parameter.",invalidRadix:"Invalid radix parameter, must be an integer between 2 and 36.",addRadixParameter10:"Add radix parameter `10` for parsing decimal numbers."}},create(r){const[m]=r.options,i=r.sourceCode;function f(h){const s=h.arguments;switch(s.length){case 0:r.report({node:h,messageId:"missingParameters"});break;case 1:m===e&&r.report({node:h,messageId:"missingRadix",suggest:[{messageId:"addRadixParameter10",fix(l){const g=i.getTokens(h),d=g.at(-1),v=g.at(-2),S=v.type==="Punctuator"&&v.value===",";return l.insertTextBefore(d,S?" 10,":", 10")}}]});break;default:m===n&&c(s[1])?r.report({node:h,messageId:"redundantRadix"}):p(s[1])||r.report({node:h,messageId:"invalidRadix"});break}}return{"Program:exit"(h){const s=i.getScope(h);let l;l=a.getVariableByName(s,"parseInt"),l&&!t(l)&&l.references.forEach(g=>{const d=g.identifier;a.isCallee(d)&&f(d.parent)}),l=a.getVariableByName(s,"Number"),l&&!t(l)&&l.references.forEach(g=>{const d=g.identifier.parent,v=d.parent.type==="ChainExpression"?d.parent:d;u(d)&&a.isCallee(v)&&f(v.parent)})}}}},Ef}var Sf,nb;function EI(){if(nb)return Sf;nb=1;function a(t,u=new Map){for(const p of t.references)p.resolved!==null&&u.set(p.identifier,p);for(const p of t.childScopes)p.type!=="function"&&a(p,u);return u}function e(t){if(t.writeExpr)return t.writeExpr;let u=t.identifier;for(;u;){const p=u.parent.type;if(p==="AssignmentExpression"&&u.parent.left===u)return u.parent.right;if(p==="MemberExpression"&&u.parent.object===u){u=u.parent;continue}break}return null}function n(t,u){if(!t||u&&t.defs.some(c=>c.type==="Parameter"))return!1;const p=t.scope.variableScope;return t.references.every(c=>c.from.variableScope===p)}class o{constructor(){this.info=new WeakMap}initialize(u){const p=new Set,c=new Set;for(const r of u.prevSegments){const m=this.info.get(r);m&&(m.outdatedReadVariables.forEach(Set.prototype.add,p),m.freshReadVariables.forEach(Set.prototype.add,c))}this.info.set(u,{outdatedReadVariables:p,freshReadVariables:c})}markAsRead(u,p){for(const c of u){const r=this.info.get(c);r&&(r.freshReadVariables.add(p),r.outdatedReadVariables.delete(p))}}makeOutdated(u){for(const p of u){const c=this.info.get(p);c&&(c.freshReadVariables.forEach(Set.prototype.add,c.outdatedReadVariables),c.freshReadVariables.clear())}}isOutdated(u,p){for(const c of u){const r=this.info.get(c);if(r&&r.outdatedReadVariables.has(p))return!0}return!1}}return Sf={meta:{type:"problem",defaultOptions:[{allowProperties:!1}],docs:{description:"Disallow assignments that can lead to race conditions due to usage of `await` or `yield`",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-atomic-updates"},fixable:null,schema:[{type:"object",properties:{allowProperties:{type:"boolean"}},additionalProperties:!1}],messages:{nonAtomicUpdate:"Possible race condition: `{{value}}` might be reassigned based on an outdated value of `{{value}}`.",nonAtomicObjectUpdate:"Possible race condition: `{{value}}` might be assigned based on an outdated state of `{{object}}`."}},create(t){const[{allowProperties:u}]=t.options,p=t.sourceCode,c=new Map,r=new o;let m=null;return{onCodePathStart(i,f){const h=p.getScope(f),s=h.type==="function"&&(h.block.async||h.block.generator);m={upper:m,codePath:i,referenceMap:s?a(h):null,currentSegments:new Set}},onCodePathEnd(){m=m.upper},onCodePathSegmentStart(i){r.initialize(i),m.currentSegments.add(i)},onUnreachableCodePathSegmentStart(i){m.currentSegments.add(i)},onUnreachableCodePathSegmentEnd(i){m.currentSegments.delete(i)},onCodePathSegmentEnd(i){m.currentSegments.delete(i)},Identifier(i){const{referenceMap:f}=m,h=f&&f.get(i);if(!h)return;const s=h.resolved,l=e(h),g=h.identifier.parent.type==="MemberExpression";if(h.isRead()&&!(l&&l.parent.operator==="=")&&r.markAsRead(m.currentSegments,s),l&&l.parent.right===l&&!n(s,g)){let d=c.get(l);d||(d=[],c.set(l,d)),d.push(h)}},":expression:exit"(i){if(!m.referenceMap)return;(i.type==="AwaitExpression"||i.type==="YieldExpression")&&r.makeOutdated(m.currentSegments);const f=c.get(i);if(f){c.delete(i);for(const h of f){const s=h.resolved;r.isOutdated(m.currentSegments,s)&&(i.parent.left===h.identifier?t.report({node:i.parent,messageId:"nonAtomicUpdate",data:{value:s.name}}):u||t.report({node:i.parent,messageId:"nonAtomicObjectUpdate",data:{value:p.getText(i.parent.left),object:s.name}}))}}}}}},Sf}var bf,sb;function SI(){if(sb)return bf;sb=1;const a=Ue();function e(n){return n[0].toUpperCase()+n.slice(1)}return bf={meta:{type:"suggestion",docs:{description:"Disallow async functions which have no `await` expression",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-await"},schema:[],messages:{missingAwait:"{{name}} has no 'await' expression.",removeAsync:"Remove 'async'."},hasSuggestions:!0},create(n){const o=n.sourceCode;let t=null;function u(){t={upper:t,hasAwait:!1}}function p(c){if(!c.generator&&c.async&&!t.hasAwait&&!a.isEmptyFunction(c)){const r=c.parent.type==="MethodDefinition"&&c.parent.value===c||c.parent.type==="Property"&&c.parent.method&&c.parent.value===c?c.parent:c,m=o.getFirstToken(r,s=>s.value==="async"),i=[m.range[0],o.getTokenAfter(m,{includeComments:!0}).range[0]],f=o.getTokenAfter(m),h=f.type==="Punctuator"&&(f.value==="["||f.value==="(")&&(r.type==="MethodDefinition"||a.isStartOfExpressionStatement(r))&&a.needsPrecedingSemicolon(o,r);n.report({node:c,loc:a.getFunctionHeadLoc(c,o),messageId:"missingAwait",data:{name:e(a.getFunctionNameWithKind(c))},suggest:[{messageId:"removeAsync",fix:s=>s.replaceTextRange(i,h?";":"")}]})}t=t.upper}return{FunctionDeclaration:u,FunctionExpression:u,ArrowFunctionExpression:u,"FunctionDeclaration:exit":p,"FunctionExpression:exit":p,"ArrowFunctionExpression:exit":p,AwaitExpression(){t&&(t.hasAwait=!0)},ForOfStatement(c){t&&c.await&&(t.hasAwait=!0)}}}},bf}var xf,ab;function bI(){if(ab)return xf;ab=1;const{CALL:a,CONSTRUCT:e,ReferenceTracker:n,getStringIfConstant:o}=qt(),t=Ue(),{isValidWithUnicodeFlag:u}=au();function p(c,r){let m;return c==="v"?m=!r.includes("v"):c==="u"?m=!r.includes("u"):m=!r.includes("u")&&!r.includes("v"),m}return xf={meta:{type:"suggestion",docs:{description:"Enforce the use of `u` or `v` flag on regular expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-unicode-regexp"},hasSuggestions:!0,messages:{addUFlag:"Add the 'u' flag.",addVFlag:"Add the 'v' flag.",requireUFlag:"Use the 'u' flag.",requireVFlag:"Use the 'v' flag."},schema:[{type:"object",properties:{requireFlag:{enum:["u","v"]}},additionalProperties:!1}]},create(c){const r=c.sourceCode,{requireFlag:m}=c.options[0]??{};return{"Literal[regex]"(i){const f=i.regex.flags||"";p(m,f)&&c.report({messageId:m==="v"?"requireVFlag":"requireUFlag",node:i,suggest:u(c.languageOptions.ecmaVersion,i.regex.pattern,m)?[{fix(s){const l=m??"u",g=r.getText(i),d=g.lastIndexOf("/");if(m){const v=m==="u"?"v":"u";if(g.includes(v,d))return s.replaceText(i,g.slice(0,d)+g.slice(d).replace(v,m))}return s.insertTextAfter(i,l)},messageId:m==="v"?"addVFlag":"addUFlag"}]:null})},Program(i){const f=r.getScope(i),h=new n(f),s={RegExp:{[a]:!0,[e]:!0}};for(const{node:l}of h.iterateGlobalReferences(s)){const[g,d]=l.arguments;if(g&&g.type==="SpreadElement")continue;const v=o(g,f),S=o(d,f);let b=!d;typeof S=="string"&&(b=p(m,S)),b&&c.report({messageId:m==="v"?"requireVFlag":"requireUFlag",node:l,suggest:typeof v=="string"&&u(c.languageOptions.ecmaVersion,v,m)?[{fix(w){const C=m??"u";if(d){if(d.type==="Literal"&&typeof d.value=="string"||d.type==="TemplateLiteral"){const T=r.getText(d),x=m==="u"?"v":"u";return S.includes(x)?d.type==="Literal"&&d.raw.includes("\\")||d.type==="TemplateLiteral"&&(d.expressions.length||d.quasis.some(({value:{raw:A}})=>A.includes("\\")))?null:w.replaceText(d,T.replace(x,C)):w.replaceText(d,[T.slice(0,T.length-1),T.slice(T.length-1)].join(C))}return null}const E=r.getLastToken(l,{skip:1});return w.insertTextAfter(E,t.isCommaToken(E)?` "${C}",`:`, "${C}"`)},messageId:m==="v"?"addVFlag":"addUFlag"}]:null})}}}}},xf}var Cf,ib;function xI(){return ib||(ib=1,Cf={meta:{type:"suggestion",docs:{description:"Require generator functions to contain `yield`",recommended:!0,url:"https://eslint.org/docs/latest/rules/require-yield"},schema:[],messages:{missingYield:"This generator function does not have 'yield'."}},create(a){const e=[];function n(t){t.generator&&e.push(0)}function o(t){if(!t.generator)return;e.pop()===0&&t.body.body.length>0&&a.report({node:t,messageId:"missingYield"})}return{FunctionDeclaration:n,"FunctionDeclaration:exit":o,FunctionExpression:n,"FunctionExpression:exit":o,YieldExpression(){e.length>0&&(e[e.length-1]+=1)}}}}),Cf}var wf,ob;function CI(){return ob||(ob=1,wf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"rest-spread-spacing",url:"https://eslint.style/rules/rest-spread-spacing"}}]},type:"layout",docs:{description:"Enforce spacing between rest and spread operators and their expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/rest-spread-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{unexpectedWhitespace:"Unexpected whitespace after {{type}} operator.",expectedWhitespace:"Expected whitespace after {{type}} operator."}},create(a){const e=a.sourceCode,n=a.options[0]==="always";function o(t){const u=e.getFirstToken(t),p=e.getTokenAfter(u),c=e.isSpaceBetweenTokens(u,p);let r;switch(t.type){case"SpreadElement":r="spread",t.parent.type==="ObjectExpression"&&(r+=" property");break;case"RestElement":r="rest",t.parent.type==="ObjectPattern"&&(r+=" property");break;case"ExperimentalSpreadProperty":r="spread property";break;case"ExperimentalRestProperty":r="rest property";break;default:return}n&&!c?a.report({node:t,loc:u.loc,messageId:"expectedWhitespace",data:{type:r},fix(m){return m.replaceTextRange([u.range[1],p.range[0]]," ")}}):!n&&c&&a.report({node:t,loc:{start:u.loc.end,end:p.loc.start},messageId:"unexpectedWhitespace",data:{type:r},fix(m){return m.removeRange([u.range[1],p.range[0]])}})}return{SpreadElement:o,RestElement:o,ExperimentalSpreadProperty:o,ExperimentalRestProperty:o}}}),wf}var Af,lb;function wI(){if(lb)return Af;lb=1;const a=nn(),e=Ue();return Af={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"semi",url:"https://eslint.style/rules/semi"}}]},type:"layout",docs:{description:"Require or disallow semicolons instead of ASI",recommended:!1,url:"https://eslint.org/docs/latest/rules/semi"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["never"]},{type:"object",properties:{beforeStatementContinuationChars:{enum:["always","any","never"]}},additionalProperties:!1}],minItems:0,maxItems:2},{type:"array",items:[{enum:["always"]},{type:"object",properties:{omitLastInOneLineBlock:{type:"boolean"},omitLastInOneLineClassBody:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{missingSemi:"Missing semicolon.",extraSemi:"Extra semicolon."}},create(n){const o=/^[-[(/+`]/u,t=new Set(["get","set","static"]),u=new Set(["*","in","instanceof"]),p=n.options[1],c=n.options[0]==="never",r=!!(p&&p.omitLastInOneLineBlock),m=!!(p&&p.omitLastInOneLineClassBody),i=p&&p.beforeStatementContinuationChars||"any",f=n.sourceCode;function h(x,A){const k=f.getLastToken(x);let B,R,F;A?(B="extraSemi",F=k.loc,R=function(P){return new a(P,f).retainSurroundingTokens(k).remove(k)}):(B="missingSemi",F={start:k.loc.end,end:e.getNextLocation(f,k.loc.end)},R=function(P){return P.insertTextAfter(k,";")}),n.report({node:x,loc:F,messageId:B,fix:R})}function s(x){const A=f.getTokenAfter(x);return!A||e.isClosingBraceToken(A)||e.isSemicolonToken(A)}function l(x){if(!e.isClosingBraceToken(x))return!1;const A=f.getNodeByRangeIndex(x.range[0]);return A.type==="BlockStatement"&&A.parent.type==="ArrowFunctionExpression"}function g(x){if(x.type!=="PropertyDefinition")return!1;if(!x.computed&&x.key.type==="Identifier"&&t.has(x.key.name)&&!(x.static&&x.key.name==="static")&&!x.value)return!0;const k=f.getTokenAfter(x);return u.has(k.value)}function d(x){const A=f.getLastToken(x,1),k=f.getTokenAfter(x);return!!k&&e.isTokenOnSameLine(A,k)}function v(x){const A=x.type;return A==="DoWhileStatement"||A==="BreakStatement"||A==="ContinueStatement"||A==="DebuggerStatement"||A==="ImportDeclaration"||A==="ExportAllDeclaration"?!1:A==="ReturnStatement"?!!x.argument:A==="ExportNamedDeclaration"?!!x.declaration:!l(f.getLastToken(x,1))}function S(x){return!!x&&o.test(x.value)&&x.value!=="++"&&x.value!=="--"}function b(x){return s(f.getLastToken(x))?!0:g(x)||d(x)?!1:x.type!=="PropertyDefinition"&&i==="never"&&!v(x)||!S(f.getTokenAfter(x))}function w(x){const A=x.parent,k=f.getTokenAfter(x);return!k||k.value!=="}"?!1:A.type==="BlockStatement"?A.loc.start.line===A.loc.end.line:A.type==="StaticBlock"?f.getFirstToken(A,{skip:1}).loc.start.line===A.loc.end.line:!1}function C(x){const A=x.parent,k=f.getTokenAfter(x);return!k||k.value!=="}"?!1:A.type==="ClassBody"?A.loc.start.line===A.loc.end.line:!1}function E(x){const A=e.isSemicolonToken(f.getLastToken(x));if(c)A&&b(x)?h(x,!0):!A&&i==="always"&&x.type!=="PropertyDefinition"&&S(f.getTokenAfter(x))&&h(x);else{const k=r&&w(x),B=m&&C(x),R=k||B;A&&R?h(x,!0):!A&&!R&&h(x)}}function T(x){const A=x.parent;(A.type!=="ForStatement"||A.init!==x)&&(!/^For(?:In|Of)Statement/u.test(A.type)||A.left!==x)&&E(x)}return{VariableDeclaration:T,ExpressionStatement:E,ReturnStatement:E,ThrowStatement:E,DoWhileStatement:E,DebuggerStatement:E,BreakStatement:E,ContinueStatement:E,ImportDeclaration:E,ExportAllDeclaration:E,ExportNamedDeclaration(x){x.declaration||E(x)},ExportDefaultDeclaration(x){/(?:Class|Function)Declaration/u.test(x.declaration.type)||E(x)},PropertyDefinition:E}}},Af}var Tf,ub;function AI(){if(ub)return Tf;ub=1;const a=Ue();return Tf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"semi-spacing",url:"https://eslint.style/rules/semi-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing before and after semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/semi-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedWhitespaceBefore:"Unexpected whitespace before semicolon.",unexpectedWhitespaceAfter:"Unexpected whitespace after semicolon.",missingWhitespaceBefore:"Missing whitespace before semicolon.",missingWhitespaceAfter:"Missing whitespace after semicolon."}},create(e){const n=e.options[0],o=e.sourceCode;let t=!1,u=!0;typeof n=="object"&&(t=n.before,u=n.after);function p(s){const l=o.getTokenBefore(s);return l&&a.isTokenOnSameLine(l,s)&&o.isSpaceBetweenTokens(l,s)}function c(s){const l=o.getTokenAfter(s);return l&&a.isTokenOnSameLine(s,l)&&o.isSpaceBetweenTokens(s,l)}function r(s){const l=o.getTokenAfter(s);return!(l&&a.isTokenOnSameLine(s,l))}function m(s){const l=o.getTokenBefore(s);return!(l&&a.isTokenOnSameLine(s,l))}function i(s){const l=o.getTokenAfter(s);return l&&a.isClosingBraceToken(l)||a.isClosingParenToken(l)}function f(s,l){if(a.isSemicolonToken(s)){if(p(s)){if(!t){const g=o.getTokenBefore(s),d={start:g.loc.end,end:s.loc.start};e.report({node:l,loc:d,messageId:"unexpectedWhitespaceBefore",fix(v){return v.removeRange([g.range[1],s.range[0]])}})}}else if(t){const g=s.loc;e.report({node:l,loc:g,messageId:"missingWhitespaceBefore",fix(d){return d.insertTextBefore(s," ")}})}if(!m(s)&&!r(s)&&!i(s)){if(c(s)){if(!u){const g=o.getTokenAfter(s),d={start:s.loc.end,end:g.loc.start};e.report({node:l,loc:d,messageId:"unexpectedWhitespaceAfter",fix(v){return v.removeRange([s.range[1],g.range[0]])}})}}else if(u){const g=s.loc;e.report({node:l,loc:g,messageId:"missingWhitespaceAfter",fix(d){return d.insertTextAfter(s," ")}})}}}}function h(s){const l=o.getLastToken(s);f(l,s)}return{VariableDeclaration:h,ExpressionStatement:h,BreakStatement:h,ContinueStatement:h,DebuggerStatement:h,DoWhileStatement:h,ReturnStatement:h,ThrowStatement:h,ImportDeclaration:h,ExportNamedDeclaration:h,ExportAllDeclaration:h,ExportDefaultDeclaration:h,ForStatement(s){s.init&&f(o.getTokenAfter(s.init),s),s.test&&f(o.getTokenAfter(s.test),s)},PropertyDefinition:h}}},Tf}var kf,cb;function TI(){if(cb)return kf;cb=1;const a=Ue(),e=["BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ImportDeclaration","ReturnStatement","ThrowStatement","VariableDeclaration","PropertyDefinition"].join(",");function n(t){const u=t.type;return u==="BlockStatement"||u==="StaticBlock"||u==="Program"||u==="ClassBody"?t.body:u==="SwitchCase"?t.consequent:null}function o(t){const u=t.parent.type;if(u==="IfStatement"&&t.parent.consequent===t&&t.parent.alternate||u==="DoWhileStatement")return!0;const p=n(t.parent);return p!==null&&p.at(-1)===t}return kf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"semi-style",url:"https://eslint.style/rules/semi-style"}}]},type:"layout",docs:{description:"Enforce location of semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/semi-style"},schema:[{enum:["last","first"]}],fixable:"whitespace",messages:{expectedSemiColon:"Expected this semicolon to be at {{pos}}."}},create(t){const u=t.sourceCode,p=t.options[0]||"last";function c(r,m){const i=u.getTokenBefore(r),f=u.getTokenAfter(r),h=!i||a.isTokenOnSameLine(i,r),s=!f||a.isTokenOnSameLine(r,f);(m==="last"&&!h||m==="first"&&!s)&&t.report({loc:r.loc,messageId:"expectedSemiColon",data:{pos:m==="last"?"the end of the previous line":"the beginning of the next line"},fix(l){if(i&&f&&u.commentsExistBetween(i,f))return null;const g=i?i.range[1]:r.range[0],d=f?f.range[0]:r.range[1],v=m==="last"?`;
|
|
118
|
+
`:`
|
|
119
|
+
;`;return l.replaceTextRange([g,d],v)}})}return{[e](r){if(p==="first"&&o(r))return;const m=u.getLastToken(r);a.isSemicolonToken(m)&&c(m,p)},ForStatement(r){const m=r.init&&u.getTokenAfter(r.init,a.isSemicolonToken),i=r.test&&u.getTokenAfter(r.test,a.isSemicolonToken);m&&c(m,"last"),i&&c(i,"last")}}}},kf}var Df,fb;function kI(){return fb||(fb=1,Df={meta:{type:"suggestion",defaultOptions:[{allowSeparatedGroups:!1,ignoreCase:!1,ignoreDeclarationSort:!1,ignoreMemberSort:!1,memberSyntaxSortOrder:["none","all","multiple","single"]}],docs:{description:"Enforce sorted `import` declarations within modules",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/sort-imports"},schema:[{type:"object",properties:{ignoreCase:{type:"boolean"},memberSyntaxSortOrder:{type:"array",items:{enum:["none","all","multiple","single"]},uniqueItems:!0,minItems:4,maxItems:4},ignoreDeclarationSort:{type:"boolean"},ignoreMemberSort:{type:"boolean"},allowSeparatedGroups:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{sortImportsAlphabetically:"Imports should be sorted alphabetically.",sortMembersAlphabetically:"Member '{{memberName}}' of the import declaration should be sorted alphabetically.",unexpectedSyntaxOrder:"Expected '{{syntaxA}}' syntax before '{{syntaxB}}' syntax."}},create(a){const[{ignoreCase:e,ignoreDeclarationSort:n,ignoreMemberSort:o,memberSyntaxSortOrder:t,allowSeparatedGroups:u}]=a.options,p=a.sourceCode;let c=null;function r(h){return h.specifiers.length===0?"none":h.specifiers[0].type==="ImportNamespaceSpecifier"?"all":h.specifiers.length===1?"single":"multiple"}function m(h){return t.indexOf(r(h))}function i(h){return h.specifiers[0]?h.specifiers[0].local.name:null}function f(h,s){return Math.max(s.loc.start.line-h.loc.end.line-1,0)}return{ImportDeclaration(h){if(!n){if(c&&u&&f(c,h)>0&&(c=null),c){const s=m(h),l=m(c);let g=i(h),d=i(c);e&&(d=d&&d.toLowerCase(),g=g&&g.toLowerCase()),s!==l?s<l&&a.report({node:h,messageId:"unexpectedSyntaxOrder",data:{syntaxA:t[s],syntaxB:t[l]}}):d&&g&&g<d&&a.report({node:h,messageId:"sortImportsAlphabetically"})}c=h}if(!o){const s=h.specifiers.filter(d=>d.type==="ImportSpecifier"),l=e?d=>d.local.name.toLowerCase():d=>d.local.name,g=s.map(l).findIndex((d,v,S)=>S[v-1]>d);g!==-1&&a.report({node:s[g],messageId:"sortMembersAlphabetically",data:{memberName:s[g].local.name},fix(d){return s.some(v=>p.getCommentsBefore(v).length||p.getCommentsAfter(v).length)?null:d.replaceTextRange([s[0].range[0],s.at(-1).range[1]],s.slice().sort((v,S)=>{const b=l(v),w=l(S);return b>w?1:-1}).reduce((v,S,b)=>{const w=b===s.length-1?"":p.getText().slice(s[b].range[1],s[b+1].range[0]);return v+p.getText(S)+w},""))}})}}}}}),Df}var If={exports:{}},pb;function DI(){if(pb)return If.exports;pb=1;/*
|
|
120
|
+
* @version 1.4.0
|
|
121
|
+
* @date 2015-10-26
|
|
122
|
+
* @stability 3 - Stable
|
|
123
|
+
* @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
|
|
124
|
+
* @license MIT License
|
|
125
|
+
*/var a=function(e,n){var o,t,u=1,p=0,c=0,r=String.alphabet;function m(i,f,h){if(h){for(o=f;h=m(i,o),h<76&&h>65;)++o;return+i.slice(f-1,o)}return h=r&&r.indexOf(i.charAt(f)),h>-1?h+76:(h=i.charCodeAt(f)||0,h<45||h>127?h:h<46?65:h<48?h-1:h<58?h+18:h<65?h-11:h<91?h+11:h<97?h-37:h<123?h+5:h-63)}if((e+="")!=(n+="")){for(;u;)if(t=m(e,p++),u=m(n,c++),t<76&&u<76&&t>66&&u>66&&(t=m(e,p,p),u=m(n,c,p=o),c=o),t!=u)return t<u?-1:1}return 0};try{If.exports=a}catch{String.naturalCompare=a}return If.exports}var Pf,mb;function II(){if(mb)return Pf;mb=1;const a=Ue(),e=DI();function n(t){const u=a.getStaticPropertyName(t);return u!==null?u:t.key.name||null}const o={asc(t,u){return t<=u},ascI(t,u){return t.toLowerCase()<=u.toLowerCase()},ascN(t,u){return e(t,u)<=0},ascIN(t,u){return e(t.toLowerCase(),u.toLowerCase())<=0},desc(t,u){return o.asc(u,t)},descI(t,u){return o.ascI(u,t)},descN(t,u){return o.ascN(u,t)},descIN(t,u){return o.ascIN(u,t)}};return Pf={meta:{type:"suggestion",defaultOptions:["asc",{allowLineSeparatedGroups:!1,caseSensitive:!0,ignoreComputedKeys:!1,minKeys:2,natural:!1}],docs:{description:"Require object keys to be sorted",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/sort-keys"},schema:[{enum:["asc","desc"]},{type:"object",properties:{caseSensitive:{type:"boolean"},natural:{type:"boolean"},minKeys:{type:"integer",minimum:2},allowLineSeparatedGroups:{type:"boolean"},ignoreComputedKeys:{type:"boolean"}},additionalProperties:!1}],messages:{sortKeys:"Expected object keys to be in {{natural}}{{insensitive}}{{order}}ending order. '{{thisName}}' should be before '{{prevName}}'."}},create(t){const[u,{caseSensitive:p,natural:c,minKeys:r,allowLineSeparatedGroups:m,ignoreComputedKeys:i}]=t.options,f=!p,h=o[u+(f?"I":"")+(c?"N":"")];let s=null;const l=t.sourceCode;return{ObjectExpression(g){s={upper:s,prevNode:null,prevBlankLine:!1,prevName:null,numKeys:g.properties.length}},"ObjectExpression:exit"(){s=s.upper},SpreadElement(g){g.parent.type==="ObjectExpression"&&(s.prevName=null)},Property(g){if(g.parent.type==="ObjectPattern")return;if(i&&g.computed){s.prevName=null;return}const d=s.prevName,v=s.numKeys,S=n(g),b=s.prevNode&&l.getTokensBetween(s.prevNode,g,{includeComments:!0});let w=s.prevBlankLine;if(b&&(b.forEach((C,E)=>{const T=b[E-1];T&&C.loc.start.line-T.loc.end.line>1&&(w=!0)}),!w&&g.loc.start.line-b.at(-1).loc.end.line>1&&(w=!0),!w&&b[0].loc.start.line-s.prevNode.loc.end.line>1&&(w=!0)),s.prevNode=g,S!==null&&(s.prevName=S),m&&w){s.prevBlankLine=S===null;return}d===null||S===null||v<r||h(d,S)||t.report({node:g,loc:g.key.loc,messageId:"sortKeys",data:{thisName:S,prevName:d,order:u,insensitive:f?"insensitive ":"",natural:c?"natural ":""}})}}}},Pf}var Ff,hb;function PI(){return hb||(hb=1,Ff={meta:{type:"suggestion",defaultOptions:[{ignoreCase:!1}],docs:{description:"Require variables within the same declaration block to be sorted",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/sort-vars"},schema:[{type:"object",properties:{ignoreCase:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{sortVars:"Variables within the same declaration block should be sorted alphabetically."}},create(a){const[{ignoreCase:e}]=a.options,n=a.sourceCode;return{VariableDeclaration(o){const t=o.declarations.filter(r=>r.id.type==="Identifier"),u=e?r=>r.id.name.toLowerCase():r=>r.id.name,p=t.some(r=>r.init!==null&&r.init.type!=="Literal");let c=!1;t.slice(1).reduce((r,m)=>{const i=u(r);return u(m)<i?(a.report({node:m,messageId:"sortVars",fix(h){return p||c?null:h.replaceTextRange([t[0].range[0],t.at(-1).range[1]],t.slice().sort((s,l)=>{const g=u(s),d=u(l);return g>d?1:-1}).reduce((s,l,g)=>{const d=g===t.length-1?"":n.getText().slice(t[g].range[1],t[g+1].range[0]);return s+n.getText(l)+d},""))}}),c=!0,r):m},t[0])}}}}),Ff}var Rf,db;function FI(){if(db)return Rf;db=1;const a=Ue();function e(n){const o=n.parent;return n.type==="BlockStatement"&&a.isFunction(o)&&o.body===n}return Rf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"space-before-blocks",url:"https://eslint.style/rules/space-before-blocks"}}]},type:"layout",docs:{description:"Enforce consistent spacing before blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-before-blocks"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{keywords:{enum:["always","never","off"]},functions:{enum:["always","never","off"]},classes:{enum:["always","never","off"]}},additionalProperties:!1}]}],messages:{unexpectedSpace:"Unexpected space before opening brace.",missingSpace:"Missing space before opening brace."}},create(n){const o=n.options[0],t=n.sourceCode;let u=!0,p=!0,c=!0,r=!1,m=!1,i=!1;typeof o=="object"?(u=o.functions==="always",p=o.keywords==="always",c=o.classes==="always",r=o.functions==="never",m=o.keywords==="never",i=o.classes==="never"):o==="never"&&(u=!1,p=!1,c=!1,r=!0,m=!0,i=!0);function f(l,g){return a.isArrowToken(l)||a.isKeywordToken(l)&&!e(g)||a.isColonToken(l)&&g.parent&&g.parent.type==="SwitchCase"&&l===a.getSwitchCaseColonToken(g.parent,t)}function h(l){const g=t.getTokenBefore(l);if(g&&!f(g,l)&&a.isTokenOnSameLine(g,l)){const d=t.isSpaceBetweenTokens(g,l);let v,S;e(l)?(v=u,S=r):l.type==="ClassBody"?(v=c,S=i):(v=p,S=m),v&&!d?n.report({node:l,messageId:"missingSpace",fix(b){return b.insertTextBefore(l," ")}}):S&&d&&n.report({node:l,messageId:"unexpectedSpace",fix(b){return b.removeRange([g.range[1],l.range[0]])}})}}function s(l){const g=l.cases;let d;g.length>0?d=t.getTokenBefore(g[0]):d=t.getLastToken(l,1),h(d)}return{BlockStatement:h,ClassBody:h,SwitchStatement:s}}},Rf}var _f,gb;function RI(){if(gb)return _f;gb=1;const a=Ue();return _f={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"space-before-function-paren",url:"https://eslint.style/rules/space-before-function-paren"}}]},type:"layout",docs:{description:"Enforce consistent spacing before `function` definition opening parenthesis",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-before-function-paren"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{anonymous:{enum:["always","never","ignore"]},named:{enum:["always","never","ignore"]},asyncArrow:{enum:["always","never","ignore"]}},additionalProperties:!1}]}],messages:{unexpectedSpace:"Unexpected space before function parentheses.",missingSpace:"Missing space before function parentheses."}},create(e){const n=e.sourceCode,o=typeof e.options[0]=="string"?e.options[0]:"always",t=typeof e.options[0]=="object"?e.options[0]:{};function u(r){if(r.id)return!0;const m=r.parent;return m.type==="MethodDefinition"||m.type==="Property"&&(m.kind==="get"||m.kind==="set"||m.method)}function p(r){if(r.type==="ArrowFunctionExpression"){if(r.async&&a.isOpeningParenToken(n.getFirstToken(r,{skip:1})))return t.asyncArrow||o}else{if(u(r))return t.named||o;if(!r.generator)return t.anonymous||o}return"ignore"}function c(r){const m=p(r);if(m==="ignore")return;const i=n.getFirstToken(r,a.isOpeningParenToken),f=n.getTokenBefore(i),h=n.isSpaceBetweenTokens(f,i);h&&m==="never"?e.report({node:r,loc:{start:f.loc.end,end:i.loc.start},messageId:"unexpectedSpace",fix(s){const l=n.getCommentsBefore(i);return l.some(g=>g.type==="Line")?null:s.replaceTextRange([f.range[1],i.range[0]],l.reduce((g,d)=>g+n.getText(d),""))}}):!h&&m==="always"&&e.report({node:r,loc:i.loc,messageId:"missingSpace",fix:s=>s.insertTextAfter(f," ")})}return{ArrowFunctionExpression:c,FunctionDeclaration:c,FunctionExpression:c}}},_f}var Bf,yb;function _I(){if(yb)return Bf;yb=1;const a=Ue();return Bf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"space-in-parens",url:"https://eslint.style/rules/space-in-parens"}}]},type:"layout",docs:{description:"Enforce consistent spacing inside parentheses",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-in-parens"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptions:{type:"array",items:{enum:["{}","[]","()","empty"]},uniqueItems:!0}},additionalProperties:!1}],messages:{missingOpeningSpace:"There must be a space after this paren.",missingClosingSpace:"There must be a space before this paren.",rejectedOpeningSpace:"There should be no space after this paren.",rejectedClosingSpace:"There should be no space before this paren."}},create(e){const n=e.options[0]==="always",o=e.options[1]&&e.options[1].exceptions||[],t={};let u;o.length&&(t.braceException=o.includes("{}"),t.bracketException=o.includes("[]"),t.parenException=o.includes("()"),t.empty=o.includes("empty"));function p(){const l=[],g=[];return t.braceException&&(l.push("{"),g.push("}")),t.bracketException&&(l.push("["),g.push("]")),t.parenException&&(l.push("("),g.push(")")),t.empty&&(l.push(")"),g.push("(")),{openers:l,closers:g}}const c=e.sourceCode;function r(l){return u.openers.includes(l.value)}function m(l){return u.closers.includes(l.value)}function i(l,g){return c.isSpaceBetweenTokens(l,g)||!t.empty&&a.isClosingParenToken(g)?!1:n?!r(g):r(g)}function f(l,g){return!a.isTokenOnSameLine(l,g)||g.type==="Line"||!c.isSpaceBetweenTokens(l,g)?!1:n?r(g):!r(g)}function h(l,g){return c.isSpaceBetweenTokens(l,g)||!t.empty&&a.isOpeningParenToken(l)?!1:n?!m(l):m(l)}function s(l,g){return!a.isTokenOnSameLine(l,g)||!c.isSpaceBetweenTokens(l,g)?!1:n?m(l):!m(l)}return{Program:function(g){u=p();const d=c.tokensAndComments;d.forEach((v,S)=>{const b=d[S-1],w=d[S+1];!a.isOpeningParenToken(v)&&!a.isClosingParenToken(v)||(v.value==="("&&i(v,w)&&e.report({node:g,loc:v.loc,messageId:"missingOpeningSpace",fix(C){return C.insertTextAfter(v," ")}}),v.value==="("&&f(v,w)&&e.report({node:g,loc:{start:v.loc.end,end:w.loc.start},messageId:"rejectedOpeningSpace",fix(C){return C.removeRange([v.range[1],w.range[0]])}}),v.value===")"&&h(b,v)&&e.report({node:g,loc:v.loc,messageId:"missingClosingSpace",fix(C){return C.insertTextBefore(v," ")}}),v.value===")"&&s(b,v)&&e.report({node:g,loc:{start:b.loc.end,end:v.loc.start},messageId:"rejectedClosingSpace",fix(C){return C.removeRange([b.range[1],v.range[0]])}}))})}}}},Bf}var Lf,vb;function BI(){if(vb)return Lf;vb=1;const{isEqToken:a}=Ue();return Lf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"space-infix-ops",url:"https://eslint.style/rules/space-infix-ops"}}]},type:"layout",docs:{description:"Require spacing around infix operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-infix-ops"},fixable:"whitespace",schema:[{type:"object",properties:{int32Hint:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{missingSpace:"Operator '{{operator}}' must be spaced."}},create(e){const n=e.options[0]?e.options[0].int32Hint===!0:!1,o=e.sourceCode;function t(m,i,f){const h=o.getFirstTokenBetween(m,i,g=>g.value===f),s=o.getTokenBefore(h),l=o.getTokenAfter(h);return!o.isSpaceBetweenTokens(s,h)||!o.isSpaceBetweenTokens(h,l)?h:null}function u(m,i){e.report({node:m,loc:i.loc,messageId:"missingSpace",data:{operator:i.value},fix(f){const h=o.getTokenBefore(i),s=o.getTokenAfter(i);let l="";return i.range[0]-h.range[1]===0&&(l=" "),l+=i.value,s.range[0]-i.range[1]===0&&(l+=" "),f.replaceText(i,l)}})}function p(m){const i=m.left.typeAnnotation?m.left.typeAnnotation:m.left,f=m.right,h=m.operator||"=",s=t(i,f,h);s&&(n&&o.getText(m).endsWith("|0")||u(m,s))}function c(m){const i=t(m.test,m.consequent,"?"),f=t(m.consequent,m.alternate,":");i&&u(m,i),f&&u(m,f)}function r(m){const i=m.id.typeAnnotation?m.id.typeAnnotation:m.id,f=m.init;if(f){const h=t(i,f,"=");h&&u(m,h)}}return{AssignmentExpression:p,AssignmentPattern:p,BinaryExpression:p,LogicalExpression:p,ConditionalExpression:c,VariableDeclarator:r,PropertyDefinition(m){if(!m.value)return;const i=o.getTokenBefore(m.value,a),f=o.getTokenBefore(i),h=o.getTokenAfter(i);(!o.isSpaceBetweenTokens(f,i)||!o.isSpaceBetweenTokens(i,h))&&u(m,i)}}}},Lf}var Of,Eb;function LI(){if(Eb)return Of;Eb=1;const a=Ue();return Of={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"space-unary-ops",url:"https://eslint.style/rules/space-unary-ops"}}]},type:"layout",docs:{description:"Enforce consistent spacing before or after unary operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-unary-ops"},fixable:"whitespace",schema:[{type:"object",properties:{words:{type:"boolean",default:!0},nonwords:{type:"boolean",default:!1},overrides:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],messages:{unexpectedBefore:"Unexpected space before unary operator '{{operator}}'.",unexpectedAfter:"Unexpected space after unary operator '{{operator}}'.",unexpectedAfterWord:"Unexpected space after unary word operator '{{word}}'.",wordOperator:"Unary word operator '{{word}}' must be followed by whitespace.",operator:"Unary operator '{{operator}}' must be followed by whitespace.",beforeUnaryExpressions:"Space is required before unary expressions '{{token}}'."}},create(e){const n=e.options[0]||{words:!0,nonwords:!1},o=e.sourceCode;function t(g){return g&&g.type==="UnaryExpression"&&g.argument.operator==="!"&&g.argument&&g.argument.type==="UnaryExpression"&&g.argument.operator==="!"}function u(g){return n.overrides&&Object.hasOwn(n.overrides,g)}function p(g){return n.overrides[g]}function c(g,d,v,S){v.range[0]===d.range[1]&&e.report({node:g,messageId:"wordOperator",data:{word:S},fix(b){return b.insertTextAfter(d," ")}})}function r(g,d,v,S){a.canTokensBeAdjacent(d,v)&&v.range[0]>d.range[1]&&e.report({node:g,messageId:"unexpectedAfterWord",data:{word:S},fix(b){return b.removeRange([d.range[1],v.range[0]])}})}function m(g,d,v,S){u(S)?p(S)?c(g,d,v,S):r(g,d,v,S):n.words?c(g,d,v,S):r(g,d,v,S)}function i(g){const d=o.getFirstTokens(g,3),v="yield";!g.argument||g.delegate||m(g,d[0],d[1],v)}function f(g){const d=o.getFirstTokens(g,3);m(g,d[0],d[1],"await")}function h(g,d,v){if(g.prefix){if(t(g))return;d.range[1]===v.range[0]&&e.report({node:g,messageId:"operator",data:{operator:d.value},fix(S){return S.insertTextAfter(d," ")}})}else d.range[1]===v.range[0]&&e.report({node:g,messageId:"beforeUnaryExpressions",data:{token:v.value},fix(S){return S.insertTextBefore(v," ")}})}function s(g,d,v){g.prefix?v.range[0]>d.range[1]&&e.report({node:g,messageId:"unexpectedAfter",data:{operator:d.value},fix(S){return a.canTokensBeAdjacent(d,v)?S.removeRange([d.range[1],v.range[0]]):null}}):v.range[0]>d.range[1]&&e.report({node:g,messageId:"unexpectedBefore",data:{operator:v.value},fix(S){return S.removeRange([d.range[1],v.range[0]])}})}function l(g){const d=g.type==="UpdateExpression"&&!g.prefix?o.getLastTokens(g,2):o.getFirstTokens(g,2),v=d[0],S=d[1];if((g.type==="NewExpression"||g.prefix)&&v.type==="Keyword"){m(g,v,S,v.value);return}const b=g.prefix?d[0].value:d[1].value;u(b)?p(b)?h(g,v,S):s(g,v,S):n.nonwords?h(g,v,S):s(g,v,S)}return{UnaryExpression:l,UpdateExpression:l,NewExpression:l,YieldExpression:i,AwaitExpression:f}}},Of}var Nf,Sb;function OI(){if(Sb)return Nf;Sb=1;const a=Rn(),e=Ue();function n(r){return`(?:${a(r)})`}function o(r){return`${n(r)}+`}function t(r){return r.includes("*")?r:r.concat("*")}function u(r){let m="";return r.length===0?m+="\\s":(m+="(?:\\s|",r.length===1?m+=o(r[0]):(m+="(?:",m+=r.map(o).join("|"),m+=")"),m+=`(?:$|[${Array.from(e.LINEBREAKS).join("")}]))`),m}function p(r,m){let i="^";return r.length===1?i+=n(r[0]):(i+="(?:",i+=r.map(n).join("|"),i+=")"),i+="?",i+=u(m),new RegExp(i,"u")}function c(r){const m=`^(${r.map(n).join("|")})?[ ]+`;return new RegExp(m,"u")}return Nf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"spaced-comment",url:"https://eslint.style/rules/spaced-comment"}}]},type:"suggestion",docs:{description:"Enforce consistent spacing after the `//` or `/*` in a comment",recommended:!1,url:"https://eslint.org/docs/latest/rules/spaced-comment"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}},line:{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}}},additionalProperties:!1},block:{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}},balanced:{type:"boolean",default:!1}},additionalProperties:!1}},additionalProperties:!1}],messages:{unexpectedSpaceAfterMarker:"Unexpected space or tab after marker ({{refChar}}) in comment.",expectedExceptionAfter:"Expected exception block, space or tab after '{{refChar}}' in comment.",unexpectedSpaceBefore:"Unexpected space or tab before '*/' in comment.",unexpectedSpaceAfter:"Unexpected space or tab after '{{refChar}}' in comment.",expectedSpaceBefore:"Expected space or tab before '*/' in comment.",expectedSpaceAfter:"Expected space or tab after '{{refChar}}' in comment."}},create(r){const m=r.sourceCode,i=r.options[0]!=="never",f=r.options[1]||{},h=f.block&&f.block.balanced,s=["block","line"].reduce((v,S)=>{const b=t(f[S]&&f[S].markers||f.markers||[]),w=f[S]&&f[S].exceptions||f.exceptions||[],C="[ ]+$";return v[S]={beginRegex:i?p(b,w):c(b),endRegex:h&&i?new RegExp(`${u(w)}$`,"u"):new RegExp(C,"u"),hasExceptions:w.length>0,captureMarker:new RegExp(`^(${b.map(n).join("|")})`,"u"),markers:new Set(b)},v},{});function l(v,S,b,w){const C=v.type.toLowerCase(),E=C==="block"?"/*":"//";r.report({node:v,fix(T){const x=v.range[0];let A=x+2;return i?(b&&(A+=b[0].length),T.insertTextAfterRange([x,A]," ")):(A+=b[0].length,T.replaceTextRange([x,A],E+(b[1]?b[1]:"")))},messageId:S,data:{refChar:w}})}function g(v,S,b){r.report({node:v,fix(w){if(i)return w.insertTextAfterRange([v.range[0],v.range[1]-2]," ");const C=v.range[1]-2,E=C-b[0].length;return w.replaceTextRange([E,C],"")},messageId:S})}function d(v){const S=v.type.toLowerCase(),b=s[S],w=S==="block"?"/*":"//";if(v.value.length===0||b.markers.has(v.value))return;const C=b.beginRegex.exec(v.value),E=b.endRegex.exec(v.value);if(i){if(!C){const T=b.captureMarker.exec(v.value),x=T?w+T[0]:w;b.hasExceptions?l(v,"expectedExceptionAfter",T,x):l(v,"expectedSpaceAfter",T,x)}h&&S==="block"&&!E&&g(v,"expectedSpaceBefore")}else C&&(C[1]?l(v,"unexpectedSpaceAfterMarker",C,C[1]):l(v,"unexpectedSpaceAfter",C,w)),h&&S==="block"&&E&&g(v,"unexpectedSpaceBefore",E)}return{Program(){m.getAllComments().filter(S=>S.type!=="Shebang").forEach(d)}}}},Nf}var Mf,bb;function NI(){if(bb)return Mf;bb=1;const a=Ue();function e(t){const u=[];for(let p=0;p<t.length;p++){const c=t[p];if(c.type==="ExpressionStatement"&&c.expression.type==="Literal"&&c.expression.value==="use strict")u[p]=c;else break}return u}function n(t){return t.type==="Identifier"}function o(t){return t.every(n)}return Mf={meta:{type:"suggestion",defaultOptions:["safe"],docs:{description:"Require or disallow strict mode directives",recommended:!1,url:"https://eslint.org/docs/latest/rules/strict"},schema:[{enum:["never","global","function","safe"]}],fixable:"code",messages:{function:"Use the function form of 'use strict'.",global:"Use the global form of 'use strict'.",multiple:"Multiple 'use strict' directives.",never:"Strict mode is not permitted.",unnecessary:"Unnecessary 'use strict' directive.",module:"'use strict' is unnecessary inside of modules.",implied:"'use strict' is unnecessary when implied strict mode is enabled.",unnecessaryInClasses:"'use strict' is unnecessary inside of classes.",nonSimpleParameterList:"'use strict' directive inside a function with non-simple parameter list throws a syntax error since ES2016.",wrap:"Wrap {{name}} in a function with 'use strict' directive."}},create(t){const u=t.parserOptions.ecmaFeatures||{},p=[],c=[];let[r]=t.options;u.impliedStrict?r="implied":r==="safe"&&(r=u.globalReturn||t.languageOptions.sourceType==="commonjs"?"global":"function");function m(S){return S==="multiple"||S==="unnecessary"||S==="module"||S==="implied"||S==="unnecessaryInClasses"}function i(S){return b=>b.remove(S)}function f(S,b,w,C,E){S.slice(b,w).forEach(T=>{t.report({node:T,messageId:C,fix:E?i(T):null})})}function h(S,b,w){f(S,0,S.length,b,w)}function s(S,b,w){f(S,1,S.length,b,w)}function l(S,b){const w=c.length>0,C=p.length===0&&c.length===0,E=p.length>0&&p.at(-1),T=b.length>0;T?(o(S.params)?E?t.report({node:b[0],messageId:"unnecessary",fix:i(b[0])}):w&&t.report({node:b[0],messageId:"unnecessaryInClasses",fix:i(b[0])}):t.report({node:b[0],messageId:"nonSimpleParameterList"}),s(b,"multiple",!0)):C&&(o(S.params)?t.report({node:S,messageId:"function"}):t.report({node:S,messageId:"wrap",data:{name:a.getFunctionNameWithKind(S)}})),p.push(E||T)}function g(){p.pop()}function d(S){const b=S.body.type==="BlockStatement",w=b?e(S.body.body):[];r==="function"?l(S,w):w.length>0&&(o(S.params)?h(w,r,m(r)):(t.report({node:w[0],messageId:"nonSimpleParameterList"}),s(w,"multiple",!0)))}const v={Program(S){const b=e(S.body);S.sourceType==="module"&&(r="module"),r==="global"?(S.body.length>0&&b.length===0&&t.report({node:S,messageId:"global"}),s(b,"multiple",!0)):h(b,r,m(r))},FunctionDeclaration:d,FunctionExpression:d,ArrowFunctionExpression:d};return r==="function"&&Object.assign(v,{ClassBody(){c.push(!0)},"ClassBody:exit"(){c.pop()},"FunctionDeclaration:exit":g,"FunctionExpression:exit":g,"ArrowFunctionExpression:exit":g}),v}},Mf}var jf,xb;function MI(){if(xb)return jf;xb=1;const a=Ue();return jf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"switch-colon-spacing",url:"https://eslint.style/rules/switch-colon-spacing"}}]},type:"layout",docs:{description:"Enforce spacing around colons of switch statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/switch-colon-spacing"},schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"whitespace",messages:{expectedBefore:"Expected space(s) before this colon.",expectedAfter:"Expected space(s) after this colon.",unexpectedBefore:"Unexpected space(s) before this colon.",unexpectedAfter:"Unexpected space(s) after this colon."}},create(e){const n=e.sourceCode,o=e.options[0]||{},t=o.before===!0,u=o.after!==!1;function p(m,i,f){return a.isClosingBraceToken(i)||!a.isTokenOnSameLine(m,i)||n.isSpaceBetweenTokens(m,i)===f}function c(m,i){return n.getFirstTokenBetween(m,i,{includeComments:!0,filter:a.isCommentToken})!==null}function r(m,i,f,h){return c(i,f)?null:h?m.insertTextAfter(i," "):m.removeRange([i.range[1],f.range[0]])}return{SwitchCase(m){const i=a.getSwitchCaseColonToken(m,n),f=n.getTokenBefore(i),h=n.getTokenAfter(i);p(f,i,t)||e.report({node:m,loc:i.loc,messageId:t?"expectedBefore":"unexpectedBefore",fix:s=>r(s,f,i,t)}),p(i,h,u)||e.report({node:m,loc:i.loc,messageId:u?"expectedAfter":"unexpectedAfter",fix:s=>r(s,i,h,u)})}}}},jf}var Uf,Cb;function jI(){if(Cb)return Uf;Cb=1;const a=Ue();return Uf={meta:{type:"suggestion",docs:{description:"Require symbol descriptions",recommended:!1,url:"https://eslint.org/docs/latest/rules/symbol-description"},fixable:null,schema:[],messages:{expected:"Expected Symbol to have a description."}},create(e){const n=e.sourceCode;function o(t){t.arguments.length===0&&e.report({node:t,messageId:"expected"})}return{"Program:exit"(t){const u=n.getScope(t),p=a.getVariableByName(u,"Symbol");p&&p.defs.length===0&&p.references.forEach(c=>{const r=c.identifier;a.isCallee(r)&&o(r.parent)})}}}},Uf}var qf,wb;function UI(){if(wb)return qf;wb=1;const a=Ue();return qf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"template-curly-spacing",url:"https://eslint.style/rules/template-curly-spacing"}}]},type:"layout",docs:{description:"Require or disallow spacing around embedded expressions of template strings",recommended:!1,url:"https://eslint.org/docs/latest/rules/template-curly-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{expectedBefore:"Expected space(s) before '}'.",expectedAfter:"Expected space(s) after '${'.",unexpectedBefore:"Unexpected space(s) before '}'.",unexpectedAfter:"Unexpected space(s) after '${'."}},create(e){const n=e.sourceCode,o=e.options[0]==="always";function t(p){if(!p.value.startsWith("}"))return;const c=n.getTokenBefore(p,{includeComments:!0}),r=n.isSpaceBetween(c,p);a.isTokenOnSameLine(c,p)&&(o&&!r&&e.report({loc:{start:p.loc.start,end:{line:p.loc.start.line,column:p.loc.start.column+1}},messageId:"expectedBefore",fix:m=>m.insertTextBefore(p," ")}),!o&&r&&e.report({loc:{start:c.loc.end,end:p.loc.start},messageId:"unexpectedBefore",fix:m=>m.removeRange([c.range[1],p.range[0]])}))}function u(p){if(!p.value.endsWith("${"))return;const c=n.getTokenAfter(p,{includeComments:!0}),r=n.isSpaceBetween(p,c);a.isTokenOnSameLine(p,c)&&(o&&!r&&e.report({loc:{start:{line:p.loc.end.line,column:p.loc.end.column-2},end:p.loc.end},messageId:"expectedAfter",fix:m=>m.insertTextAfter(p," ")}),!o&&r&&e.report({loc:{start:p.loc.end,end:c.loc.start},messageId:"unexpectedAfter",fix:m=>m.removeRange([p.range[1],c.range[0]])}))}return{TemplateElement(p){const c=n.getFirstToken(p);t(c),u(c)}}}},qf}var Vf,Ab;function qI(){return Ab||(Ab=1,Vf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"template-tag-spacing",url:"https://eslint.style/rules/template-tag-spacing"}}]},type:"layout",docs:{description:"Require or disallow spacing between template tags and their literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/template-tag-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{unexpected:"Unexpected space between template tag and template literal.",missing:"Missing space between template tag and template literal."}},create(a){const e=a.options[0]!=="always",n=a.sourceCode;function o(t){const u=n.getTokenBefore(t.quasi),p=n.getFirstToken(t.quasi),c=n.isSpaceBetweenTokens(u,p);e&&c?a.report({node:t,loc:{start:u.loc.end,end:p.loc.start},messageId:"unexpected",fix(r){const m=n.getCommentsBefore(t.quasi);return m.some(i=>i.type==="Line")?null:r.replaceTextRange([u.range[1],p.range[0]],m.reduce((i,f)=>i+n.getText(f),""))}}):!e&&!c&&a.report({node:t,loc:{start:t.loc.start,end:p.loc.start},messageId:"missing",fix(r){return r.insertTextAfter(u," ")}})}return{TaggedTemplateExpression:o}}}),Vf}var $f,Tb;function VI(){return Tb||(Tb=1,$f={meta:{type:"layout",defaultOptions:["never"],docs:{description:"Require or disallow Unicode byte order mark (BOM)",recommended:!1,url:"https://eslint.org/docs/latest/rules/unicode-bom"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{expected:"Expected Unicode BOM (Byte Order Mark).",unexpected:"Unexpected Unicode BOM (Byte Order Mark)."}},create(a){return{Program:function(n){const o=a.sourceCode,t={column:0,line:1},[u]=a.options;!o.hasBOM&&u==="always"?a.report({node:n,loc:t,messageId:"expected",fix(p){return p.insertTextBeforeRange([0,1],"\uFEFF")}}):o.hasBOM&&u==="never"&&a.report({node:n,loc:t,messageId:"unexpected",fix(p){return p.removeRange([-1,0])}})}}}}),$f}var Wf,kb;function $I(){if(kb)return Wf;kb=1;const a=Ue();function e(n){if(!n)return!1;const o=n.type==="SequenceExpression"?n.expressions.at(-1):n;return a.isSpecificId(o,"NaN")||a.isSpecificMemberAccess(o,"Number","NaN")}return Wf={meta:{hasSuggestions:!0,type:"problem",docs:{description:"Require calls to `isNaN()` when checking for `NaN`",recommended:!0,url:"https://eslint.org/docs/latest/rules/use-isnan"},schema:[{type:"object",properties:{enforceForSwitchCase:{type:"boolean"},enforceForIndexOf:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{enforceForIndexOf:!1,enforceForSwitchCase:!0}],messages:{comparisonWithNaN:"Use the isNaN function to compare with NaN.",switchNaN:"'switch(NaN)' can never match a case clause. Use Number.isNaN instead of the switch.",caseNaN:"'case NaN' can never match. Use Number.isNaN before the switch.",indexOfNaN:"Array prototype method '{{ methodName }}' cannot find NaN.",replaceWithIsNaN:"Replace with Number.isNaN.",replaceWithCastingAndIsNaN:"Replace with Number.isNaN and cast to a Number.",replaceWithFindIndex:"Replace with Array.prototype.{{ methodName }}."}},create(n){const[{enforceForIndexOf:o,enforceForSwitchCase:t}]=n.options,u=n.sourceCode,p=new Set(["==","===","!=","!=="]),c=new Set(["==","!="]);function r(s,l){return g=>{const d=e(s.left)?s.right:s.left,v=d.type==="SequenceExpression",b=s.operator[0]==="!"?"!":"";let w=u.getText(d);v&&(w=`(${w})`);const C=l(w);return g.replaceText(s,`${b}${C}`)}}function m(s){if(/^(?:[<>]|[!=]=)=?$/u.test(s.operator)&&(e(s.left)||e(s.right))){const l=[],d=(e(s.left)?s.left:s.right).type==="SequenceExpression",v=p.has(s.operator)&&!d,S=c.has(s.operator);v&&(l.push({messageId:"replaceWithIsNaN",fix:r(s,b=>`Number.isNaN(${b})`)}),S&&l.push({messageId:"replaceWithCastingAndIsNaN",fix:r(s,b=>`Number.isNaN(Number(${b}))`)})),n.report({node:s,messageId:"comparisonWithNaN",suggest:l})}}function i(s){e(s.discriminant)&&n.report({node:s,messageId:"switchNaN"});for(const l of s.cases)e(l.test)&&n.report({node:l,messageId:"caseNaN"})}function f(s){const l=a.skipChainExpression(s.callee);if(l.type==="MemberExpression"){const g=a.getStaticPropertyName(l);if((g==="indexOf"||g==="lastIndexOf")&&s.arguments.length<=2&&e(s.arguments[0])){const d=s.arguments[0].type!=="SequenceExpression"&&!s.arguments[1],v=[];if(d){const S=l.computed,b=g==="indexOf"?"findIndex":"findLastIndex",w=S?`"${b}"`:b;v.push({messageId:"replaceWithFindIndex",data:{methodName:b},fix:C=>[C.replaceText(l.property,w),C.replaceText(s.arguments[0],"Number.isNaN")]})}n.report({node:s,messageId:"indexOfNaN",data:{methodName:g},suggest:v})}}}const h={BinaryExpression:m};return t&&(h.SwitchStatement=i),o&&(h.CallExpression=f),h}},Wf}var Gf,Db;function WI(){if(Db)return Gf;Db=1;const a=Ue();return Gf={meta:{type:"problem",defaultOptions:[{requireStringLiterals:!1}],docs:{description:"Enforce comparing `typeof` expressions against valid strings",recommended:!0,url:"https://eslint.org/docs/latest/rules/valid-typeof"},hasSuggestions:!0,schema:[{type:"object",properties:{requireStringLiterals:{type:"boolean"}},additionalProperties:!1}],messages:{invalidValue:"Invalid typeof comparison value.",notString:"Typeof comparisons should be to string literals.",suggestString:'Use `"{{type}}"` instead of `{{type}}`.'}},create(e){const n=new Set(["symbol","undefined","object","boolean","number","string","function","bigint"]),o=new Set(["==","===","!=","!=="]),t=e.sourceCode,[{requireStringLiterals:u}]=e.options;let p;function c(m){const i=p.set.get(m.name);return i&&i.defs.length===0&&i.references.some(f=>f.identifier===m)}function r(m){return m.type==="UnaryExpression"&&m.operator==="typeof"}return{Program(m){p=t.getScope(m)},UnaryExpression(m){if(r(m)){const{parent:i}=m;if(i.type==="BinaryExpression"&&o.has(i.operator)){const f=i.left===m?i.right:i.left;if(f.type==="Literal"||a.isStaticTemplateLiteral(f)){const h=f.type==="Literal"?f.value:f.quasis[0].value.cooked;n.has(h)||e.report({node:f,messageId:"invalidValue"})}else f.type==="Identifier"&&f.name==="undefined"&&c(f)?e.report({node:f,messageId:u?"notString":"invalidValue",suggest:[{messageId:"suggestString",data:{type:"undefined"},fix(h){return h.replaceText(f,'"undefined"')}}]}):u&&!r(f)&&e.report({node:f,messageId:"notString"})}}}}}},Gf}var zf,Ib;function GI(){return Ib||(Ib=1,zf={meta:{type:"suggestion",docs:{description:"Require `var` declarations be placed at the top of their containing scope",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/vars-on-top"},schema:[],messages:{top:"All 'var' declarations must be at the top of the function scope."}},create(a){function e(c){return c.type==="ExpressionStatement"&&c.expression.type==="Literal"&&typeof c.expression.value=="string"}function n(c){return c.type==="ImportDeclaration"||c.type==="ImportSpecifier"||c.type==="ImportDefaultSpecifier"||c.type==="ImportNamespaceSpecifier"}function o(c){return c.type==="VariableDeclaration"||c.type==="ExportNamedDeclaration"&&c.declaration&&c.declaration.type==="VariableDeclaration"}function t(c,r){const m=r.length;let i=0;if(c.parent.type!=="StaticBlock")for(;i<m&&!(!e(r[i])&&!n(r[i]));++i);for(;i<m;++i){if(!o(r[i]))return!1;if(r[i]===c)return!0}return!1}function u(c,r){t(c,r.body)||a.report({node:c,messageId:"top"})}function p(c){const{parent:r}=c;r.type==="BlockStatement"&&/Function/u.test(r.parent.type)&&t(c,r.body)||r.type==="StaticBlock"&&t(c,r.body)||a.report({node:c,messageId:"top"})}return{"VariableDeclaration[kind='var']"(c){c.parent.type==="ExportNamedDeclaration"?u(c.parent,c.parent.parent):c.parent.type==="Program"?u(c,c.parent):p(c)}}}}),zf}var Hf,Pb;function zI(){if(Pb)return Hf;Pb=1;const a=Ue(),e=qt();function n(o){const t=o.parent.type==="ChainExpression"?o.parent:o;return t.parent.type==="NewExpression"&&t.parent.callee===t}return Hf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"wrap-iife",url:"https://eslint.style/rules/wrap-iife"}}]},type:"layout",docs:{description:"Require parentheses around immediate `function` invocations",recommended:!1,url:"https://eslint.org/docs/latest/rules/wrap-iife"},schema:[{enum:["outside","inside","any"]},{type:"object",properties:{functionPrototypeMethods:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{wrapInvocation:"Wrap an immediate function invocation in parentheses.",wrapExpression:"Wrap only the function expression in parens.",moveInvocation:"Move the invocation into the parens that contain the function."}},create(o){const t=o.options[0]||"outside",u=o.options[1]&&o.options[1].functionPrototypeMethods,p=o.sourceCode;function c(i){return a.isParenthesised(p,i)}function r(i){return e.isParenthesized(1,i,p)}function m(i){const f=a.skipChainExpression(i.callee);return f.type==="FunctionExpression"?f:u&&f.type==="MemberExpression"&&f.object.type==="FunctionExpression"&&(a.getStaticPropertyName(f)==="call"||a.getStaticPropertyName(f)==="apply")?f.object:null}return{CallExpression(i){const f=m(i);if(!f)return;const h=c(i),s=c(f);!h&&!s?o.report({node:i,messageId:"wrapInvocation",fix(l){const g=t==="inside"?f:i;return l.replaceText(g,`(${p.getText(g)})`)}}):t==="inside"&&!s?o.report({node:i,messageId:"wrapExpression",fix(l){if(r(i)&&!n(i)){const g=p.getTokenAfter(i);return l.replaceTextRange([f.range[1],g.range[1]],`)${p.getText().slice(f.range[1],g.range[0])}`)}return l.replaceText(f,`(${p.getText(f)})`)}}):t==="outside"&&!h&&o.report({node:i,messageId:"moveInvocation",fix(l){const g=p.getTokenAfter(f);return l.replaceTextRange([g.range[0],i.range[1]],`${p.getText().slice(g.range[1],i.range[1])})`)}})}}}},Hf}var Kf,Fb;function HI(){return Fb||(Fb=1,Kf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"wrap-regex",url:"https://eslint.style/rules/wrap-regex"}}]},type:"layout",docs:{description:"Require parenthesis around regex literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/wrap-regex"},schema:[],fixable:"code",messages:{requireParens:"Wrap the regexp literal in parens to disambiguate the slash."}},create(a){const e=a.sourceCode;return{Literal(n){if(e.getFirstToken(n).type==="RegularExpression"){const u=e.getTokenBefore(n),p=e.getTokenAfter(n),{parent:c}=n;c.type==="MemberExpression"&&c.object===n&&!(u&&u.value==="("&&p&&p.value===")")&&a.report({node:n,messageId:"requireParens",fix:r=>r.replaceText(n,`(${e.getText(n)})`)})}}}}}),Kf}var Xf,Rb;function KI(){return Rb||(Rb=1,Xf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"yield-star-spacing",url:"https://eslint.style/rules/yield-star-spacing"}}]},type:"layout",docs:{description:"Require or disallow spacing around the `*` in `yield*` expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/yield-star-spacing"},fixable:"whitespace",schema:[{oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}]}],messages:{missingBefore:"Missing space before *.",missingAfter:"Missing space after *.",unexpectedBefore:"Unexpected space before *.",unexpectedAfter:"Unexpected space after *."}},create(a){const e=a.sourceCode,n=function(u){return!u||typeof u=="string"?{before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}}[u||"after"]:u}(a.options[0]);function o(u,p,c){if(e.isSpaceBetweenTokens(p,c)!==n[u]){const r=p.value==="*",m=n[u],i=r?p:c;let f;m?f=u==="before"?"missingBefore":"missingAfter":f=u==="before"?"unexpectedBefore":"unexpectedAfter",a.report({node:i,messageId:f,fix(h){return m?r?h.insertTextAfter(i," "):h.insertTextBefore(i," "):h.removeRange([p.range[1],c.range[0]])}})}}function t(u){if(!u.delegate)return;const p=e.getFirstTokens(u,3),c=p[0],r=p[1],m=p[2];o("before",c,r),o("after",r,m)}return{YieldExpression:t}}}),Xf}var Jf,_b;function XI(){if(_b)return Jf;_b=1;const a=Ue();function e(c){return/^(==|===|!=|!==|<|>|<=|>=)$/u.test(c)}function n(c){return/^(==|===)$/u.test(c)}function o(c){return["<","<="].includes(c)}function t(c){return c.type==="UnaryExpression"&&c.operator==="-"&&c.prefix&&a.isNumericLiteral(c.argument)}function u(c){return t(c)||a.isStaticTemplateLiteral(c)}function p(c){return c.type==="Literal"?c:t(c)?{type:"Literal",value:-c.argument.value,raw:`-${c.argument.value}`}:a.isStaticTemplateLiteral(c)?{type:"Literal",value:c.quasis[0].value.cooked,raw:c.quasis[0].value.raw}:null}return Jf={meta:{type:"suggestion",defaultOptions:["never",{exceptRange:!1,onlyEquality:!1}],docs:{description:'Require or disallow "Yoda" conditions',recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/yoda"},schema:[{enum:["always","never"]},{type:"object",properties:{exceptRange:{type:"boolean"},onlyEquality:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{expected:"Expected literal to be on the {{expectedSide}} side of {{operator}}."}},create(c){const[r,{exceptRange:m,onlyEquality:i}]=c.options,f=r==="always",h=c.sourceCode;function s(d){const v=d.left,S=d.right;function b(){if(d.operator==="&&"&&a.isSameReference(v.right,S.left)){const E=p(v.left),T=p(S.right);if(E===null&&T===null)return!1;if(T===null||E===null||E.value<=T.value)return!0}return!1}function w(){if(d.operator==="||"&&a.isSameReference(v.left,S.right)){const E=p(v.right),T=p(S.left);if(E===null&&T===null)return!1;if(T===null||E===null||E.value<=T.value)return!0}return!1}function C(){return a.isParenthesised(h,d)}return d.type==="LogicalExpression"&&v.type==="BinaryExpression"&&S.type==="BinaryExpression"&&o(v.operator)&&o(S.operator)&&(b()||w())&&C()}const l={"===":"===","!==":"!==","==":"==","!=":"!=","<":">",">":"<","<=":">=",">=":"<="};function g(d){const v=h.getFirstTokenBetween(d.left,d.right,F=>F.value===d.operator),S=h.getTokenBefore(v),b=h.getTokenAfter(v),w=h.getText(),C=w.slice(d.range[0],S.range[1]),E=w.slice(S.range[1],v.range[0]),T=w.slice(v.range[1],b.range[0]),x=w.slice(b.range[0],d.range[1]),A=h.getTokenBefore(d),k=h.getTokenAfter(d);let B="",R="";return A&&A.range[1]===d.range[0]&&!a.canTokensBeAdjacent(A,b)&&(B=" "),k&&d.range[1]===k.range[0]&&!a.canTokensBeAdjacent(S,k)&&(R=" "),B+x+E+l[v.value]+T+C+R}return{BinaryExpression(d){const v=f?d.left:d.right,S=f?d.right:d.left;(S.type==="Literal"||u(S))&&!(v.type==="Literal"||u(v))&&!(!n(d.operator)&&i)&&e(d.operator)&&!(m&&s(d.parent))&&c.report({node:d,messageId:"expected",data:{operator:d.operator,expectedSide:f?"left":"right"},fix:b=>b.replaceText(d,g(d))})}}}},Jf}var Yf,Bb;function Lb(){if(Bb)return Yf;Bb=1;const{LazyLoadingRuleMap:a}=Ew();return Yf=new a(Object.entries({"accessor-pairs":()=>xw(),"array-bracket-newline":()=>Cw(),"array-bracket-spacing":()=>ww(),"array-callback-return":()=>Aw(),"array-element-newline":()=>Tw(),"arrow-body-style":()=>kw(),"arrow-parens":()=>Dw(),"arrow-spacing":()=>Iw(),"block-scoped-var":()=>Pw(),"block-spacing":()=>Fw(),"brace-style":()=>Rw(),"callback-return":()=>_w(),camelcase:()=>Bw(),"capitalized-comments":()=>Lw(),"class-methods-use-this":()=>Ow(),"comma-dangle":()=>Nw(),"comma-spacing":()=>Mw(),"comma-style":()=>jw(),complexity:()=>Uw(),"computed-property-spacing":()=>qw(),"consistent-return":()=>Vw(),"consistent-this":()=>$w(),"constructor-super":()=>Ww(),curly:()=>Gw(),"default-case":()=>zw(),"default-case-last":()=>Hw(),"default-param-last":()=>Kw(),"dot-location":()=>Xw(),"dot-notation":()=>Jw(),"eol-last":()=>Yw(),eqeqeq:()=>Qw(),"for-direction":()=>Zw(),"func-call-spacing":()=>eA(),"func-name-matching":()=>tA(),"func-names":()=>rA(),"func-style":()=>nA(),"function-call-argument-newline":()=>sA(),"function-paren-newline":()=>aA(),"generator-star-spacing":()=>iA(),"getter-return":()=>oA(),"global-require":()=>lA(),"grouped-accessor-pairs":()=>uA(),"guard-for-in":()=>cA(),"handle-callback-err":()=>fA(),"id-blacklist":()=>pA(),"id-denylist":()=>mA(),"id-length":()=>hA(),"id-match":()=>dA(),"implicit-arrow-linebreak":()=>gA(),indent:()=>yA(),"indent-legacy":()=>vA(),"init-declarations":()=>EA(),"jsx-quotes":()=>SA(),"key-spacing":()=>bA(),"keyword-spacing":()=>xA(),"line-comment-position":()=>CA(),"linebreak-style":()=>wA(),"lines-around-comment":()=>AA(),"lines-around-directive":()=>TA(),"lines-between-class-members":()=>kA(),"logical-assignment-operators":()=>DA(),"max-classes-per-file":()=>IA(),"max-depth":()=>PA(),"max-len":()=>FA(),"max-lines":()=>RA(),"max-lines-per-function":()=>_A(),"max-nested-callbacks":()=>BA(),"max-params":()=>LA(),"max-statements":()=>OA(),"max-statements-per-line":()=>NA(),"multiline-comment-style":()=>MA(),"multiline-ternary":()=>jA(),"new-cap":()=>UA(),"new-parens":()=>qA(),"newline-after-var":()=>VA(),"newline-before-return":()=>$A(),"newline-per-chained-call":()=>WA(),"no-alert":()=>GA(),"no-array-constructor":()=>zA(),"no-async-promise-executor":()=>HA(),"no-await-in-loop":()=>KA(),"no-bitwise":()=>XA(),"no-buffer-constructor":()=>JA(),"no-caller":()=>YA(),"no-case-declarations":()=>QA(),"no-catch-shadow":()=>ZA(),"no-class-assign":()=>eT(),"no-compare-neg-zero":()=>tT(),"no-cond-assign":()=>rT(),"no-confusing-arrow":()=>nT(),"no-console":()=>sT(),"no-const-assign":()=>aT(),"no-constant-binary-expression":()=>iT(),"no-constant-condition":()=>oT(),"no-constructor-return":()=>lT(),"no-continue":()=>uT(),"no-control-regex":()=>cT(),"no-debugger":()=>fT(),"no-delete-var":()=>pT(),"no-div-regex":()=>mT(),"no-dupe-args":()=>hT(),"no-dupe-class-members":()=>dT(),"no-dupe-else-if":()=>gT(),"no-dupe-keys":()=>yT(),"no-duplicate-case":()=>vT(),"no-duplicate-imports":()=>ET(),"no-else-return":()=>ST(),"no-empty":()=>bT(),"no-empty-character-class":()=>xT(),"no-empty-function":()=>CT(),"no-empty-pattern":()=>wT(),"no-empty-static-block":()=>AT(),"no-eq-null":()=>TT(),"no-eval":()=>kT(),"no-ex-assign":()=>DT(),"no-extend-native":()=>IT(),"no-extra-bind":()=>PT(),"no-extra-boolean-cast":()=>FT(),"no-extra-label":()=>RT(),"no-extra-parens":()=>_T(),"no-extra-semi":()=>BT(),"no-fallthrough":()=>LT(),"no-floating-decimal":()=>OT(),"no-func-assign":()=>NT(),"no-global-assign":()=>MT(),"no-implicit-coercion":()=>jT(),"no-implicit-globals":()=>UT(),"no-implied-eval":()=>qT(),"no-import-assign":()=>VT(),"no-inline-comments":()=>$T(),"no-inner-declarations":()=>WT(),"no-invalid-regexp":()=>GT(),"no-invalid-this":()=>zT(),"no-irregular-whitespace":()=>HT(),"no-iterator":()=>KT(),"no-label-var":()=>XT(),"no-labels":()=>JT(),"no-lone-blocks":()=>YT(),"no-lonely-if":()=>QT(),"no-loop-func":()=>ZT(),"no-loss-of-precision":()=>ek(),"no-magic-numbers":()=>tk(),"no-misleading-character-class":()=>lk(),"no-mixed-operators":()=>uk(),"no-mixed-requires":()=>ck(),"no-mixed-spaces-and-tabs":()=>fk(),"no-multi-assign":()=>pk(),"no-multi-spaces":()=>mk(),"no-multi-str":()=>hk(),"no-multiple-empty-lines":()=>dk(),"no-native-reassign":()=>gk(),"no-negated-condition":()=>yk(),"no-negated-in-lhs":()=>vk(),"no-nested-ternary":()=>Ek(),"no-new":()=>Sk(),"no-new-func":()=>bk(),"no-new-native-nonconstructor":()=>xk(),"no-new-object":()=>Ck(),"no-new-require":()=>wk(),"no-new-symbol":()=>Ak(),"no-new-wrappers":()=>Tk(),"no-nonoctal-decimal-escape":()=>kk(),"no-obj-calls":()=>Dk(),"no-object-constructor":()=>Ik(),"no-octal":()=>Pk(),"no-octal-escape":()=>Fk(),"no-param-reassign":()=>Rk(),"no-path-concat":()=>_k(),"no-plusplus":()=>Bk(),"no-process-env":()=>Lk(),"no-process-exit":()=>Ok(),"no-promise-executor-return":()=>Nk(),"no-proto":()=>Mk(),"no-prototype-builtins":()=>jk(),"no-redeclare":()=>Uk(),"no-regex-spaces":()=>qk(),"no-restricted-exports":()=>Vk(),"no-restricted-globals":()=>$k(),"no-restricted-imports":()=>Wk(),"no-restricted-modules":()=>Gk(),"no-restricted-properties":()=>zk(),"no-restricted-syntax":()=>Hk(),"no-return-assign":()=>Kk(),"no-return-await":()=>Xk(),"no-script-url":()=>Jk(),"no-self-assign":()=>Yk(),"no-self-compare":()=>Qk(),"no-sequences":()=>Zk(),"no-setter-return":()=>eD(),"no-shadow":()=>tD(),"no-shadow-restricted-names":()=>rD(),"no-spaced-func":()=>nD(),"no-sparse-arrays":()=>sD(),"no-sync":()=>aD(),"no-tabs":()=>iD(),"no-template-curly-in-string":()=>oD(),"no-ternary":()=>lD(),"no-this-before-super":()=>uD(),"no-throw-literal":()=>cD(),"no-trailing-spaces":()=>fD(),"no-unassigned-vars":()=>pD(),"no-undef":()=>mD(),"no-undef-init":()=>hD(),"no-undefined":()=>dD(),"no-underscore-dangle":()=>gD(),"no-unexpected-multiline":()=>yD(),"no-unmodified-loop-condition":()=>vD(),"no-unneeded-ternary":()=>ED(),"no-unreachable":()=>SD(),"no-unreachable-loop":()=>bD(),"no-unsafe-finally":()=>xD(),"no-unsafe-negation":()=>CD(),"no-unsafe-optional-chaining":()=>wD(),"no-unused-expressions":()=>AD(),"no-unused-labels":()=>TD(),"no-unused-private-class-members":()=>kD(),"no-unused-vars":()=>DD(),"no-use-before-define":()=>ID(),"no-useless-assignment":()=>PD(),"no-useless-backreference":()=>FD(),"no-useless-call":()=>RD(),"no-useless-catch":()=>_D(),"no-useless-computed-key":()=>BD(),"no-useless-concat":()=>LD(),"no-useless-constructor":()=>OD(),"no-useless-escape":()=>ND(),"no-useless-rename":()=>MD(),"no-useless-return":()=>jD(),"no-var":()=>UD(),"no-void":()=>qD(),"no-warning-comments":()=>VD(),"no-whitespace-before-property":()=>$D(),"no-with":()=>WD(),"nonblock-statement-body-position":()=>GD(),"object-curly-newline":()=>zD(),"object-curly-spacing":()=>HD(),"object-property-newline":()=>KD(),"object-shorthand":()=>XD(),"one-var":()=>JD(),"one-var-declaration-per-line":()=>YD(),"operator-assignment":()=>QD(),"operator-linebreak":()=>ZD(),"padded-blocks":()=>eI(),"padding-line-between-statements":()=>tI(),"prefer-arrow-callback":()=>rI(),"prefer-const":()=>nI(),"prefer-destructuring":()=>sI(),"prefer-exponentiation-operator":()=>aI(),"prefer-named-capture-group":()=>iI(),"prefer-numeric-literals":()=>oI(),"prefer-object-has-own":()=>lI(),"prefer-object-spread":()=>uI(),"prefer-promise-reject-errors":()=>cI(),"prefer-reflect":()=>fI(),"prefer-regex-literals":()=>pI(),"prefer-rest-params":()=>mI(),"prefer-spread":()=>hI(),"prefer-template":()=>dI(),"quote-props":()=>gI(),quotes:()=>yI(),radix:()=>vI(),"require-atomic-updates":()=>EI(),"require-await":()=>SI(),"require-unicode-regexp":()=>bI(),"require-yield":()=>xI(),"rest-spread-spacing":()=>CI(),semi:()=>wI(),"semi-spacing":()=>AI(),"semi-style":()=>TI(),"sort-imports":()=>kI(),"sort-keys":()=>II(),"sort-vars":()=>PI(),"space-before-blocks":()=>FI(),"space-before-function-paren":()=>RI(),"space-in-parens":()=>_I(),"space-infix-ops":()=>BI(),"space-unary-ops":()=>LI(),"spaced-comment":()=>OI(),strict:()=>NI(),"switch-colon-spacing":()=>MI(),"symbol-description":()=>jI(),"template-curly-spacing":()=>UI(),"template-tag-spacing":()=>qI(),"unicode-bom":()=>VI(),"use-isnan":()=>$I(),"valid-typeof":()=>WI(),"vars-on-top":()=>GI(),"wrap-iife":()=>zI(),"wrap-regex":()=>HI(),"yield-star-spacing":()=>KI(),yoda:()=>XI()})),Yf}var Qf,Ob;function JI(){if(Ob)return Qf;Ob=1;const a=Lb();class e{constructor(){this._rules=Object.create(null)}define(o,t){this._rules[o]=t}get(o){return typeof this._rules[o]=="string"&&this.define(o,vw(this._rules[o])),this._rules[o]?this._rules[o]:a.has(o)?a.get(o):null}*[Symbol.iterator](){yield*a;for(const o of Object.keys(this._rules))yield[o,this.get(o)]}}return Qf=e,Qf}var Zf,Nb;function YI(){if(Nb)return Zf;Nb=1;const a=kr()("eslint:source-code-fixer"),e="\uFEFF";function n(u,p){return u.fix.range[0]-p.fix.range[0]||u.fix.range[1]-p.fix.range[1]}function o(u,p){return u.line-p.line||u.column-p.column}function t(){Object.freeze(this)}return t.applyFixes=function(u,p,c){if(a("Applying fixes"),c===!1)return a("shouldFix parameter was false, not attempting fixes"),{fixed:!1,messages:p,output:u};const r=[],m=[],i=u.startsWith(e)?e:"",f=i?u.slice(1):u;let h=Number.NEGATIVE_INFINITY,s=i;function l(g){const d=g.fix,v=d.range[0],S=d.range[1];return h>=v||v>S?(r.push(g),!1):((v<0&&S>=0||v===0&&d.text.startsWith(e))&&(s=""),s+=f.slice(Math.max(0,h),Math.max(0,v)),s+=d.text,h=S,!0)}if(p.forEach(g=>{Object.hasOwn(g,"fix")&&g.fix?m.push(g):r.push(g)}),m.length){a("Found fixes to apply");let g=!1;for(const d of m.sort(n))typeof c!="function"||c(d)?(l(d),g=!0):r.push(d);return s+=f.slice(Math.max(0,h)),{fixed:g,messages:r.sort(o),output:s}}return a("No fixes to apply"),{fixed:!1,messages:p,output:i+f}},Zf=t,Zf}var ep,Mb;function QI(){if(Mb)return ep;Mb=1;const a=Object.freeze([]);class e{#e=new Map;add(o,t){this.#e.has(o)?this.#e.get(o).push(t):this.#e.set(o,[t])}get(o){return this.#e.has(o)?this.#e.get(o):a}forEachName(o){this.#e.forEach((t,u)=>{o(u)})}callSync(o,...t){this.#e.has(o)&&this.#e.get(o).forEach(u=>u(...t))}}return ep={SourceCodeVisitor:e},ep}var tp,jb;function Ub(){if(jb)return tp;jb=1;function a(){return Bt.hrtime()}function e(n){const o=Bt.hrtime(n);return o[0]*1e3+o[1]/1e6}return tp={startTime:a,endTime:e},tp}var rp,qb;function ZI(){if(qb)return rp;qb=1;const{startTime:a,endTime:e}=Ub(),n=!!Bt.env.TIMING;function o(){if(typeof Bt.env.TIMING!="string")return 10;if(Bt.env.TIMING.toLowerCase()==="all")return Number.POSITIVE_INFINITY;const u=Number.parseInt(Bt.env.TIMING,10);return u>10?u:10}return rp=function(){const t=Object.create(null);function u(p,c,r){return function(...m){const i=a(),f=c(...m),h=e(i);return n&&(typeof t[p]>"u"&&(t[p]=0),t[p]+=h),r?{result:f,tdiff:h}:f}}return{time:u,enabled:n,getListSize:o}}(),rp}var np={},_n={},sp,Vb;function eP(){if(Vb)return sp;Vb=1;const a=new Set([!0,"true","writable","writeable",!1,"false","readonly","readable",null,"off"]);function e(m){return typeof m=="object"&&m!==null}function n(m){return e(m)&&!Array.isArray(m)}function o(m){return typeof m>"u"}function t(m){if(o(m))throw new TypeError('Key "ecmaVersion": Expected an "ecmaVersion" property.');if(typeof m!="number"&&m!=="latest")throw new TypeError('Key "ecmaVersion": Expected a number or "latest".')}function u(m){if(typeof m!="string"||!/^(?:script|module|commonjs)$/u.test(m))throw new TypeError('Key "sourceType": Expected "script", "module", or "commonjs".')}function p(m){if(!n(m))throw new TypeError('Key "globals": Expected an object.');for(const i of Object.keys(m))if(i!=="__proto__"){if(i!==i.trim())throw new TypeError(`Key "globals": Global "${i}" has leading or trailing whitespace.`);if(!a.has(m[i]))throw new TypeError(`Key "globals": Key "${i}": Expected "readonly", "writable", or "off".`)}}function c(m){if(!m||typeof m!="object"||typeof m.parse!="function"&&typeof m.parseForESLint!="function")throw new TypeError('Key "parser": Expected object with parse() or parseForESLint() method.')}function r(m){if(!n(m))throw new TypeError("Expected an object.");const{ecmaVersion:i,sourceType:f,globals:h,parser:s,parserOptions:l,...g}=m;if("ecmaVersion"in m&&t(i),"sourceType"in m&&u(f),"globals"in m&&p(h),"parser"in m&&c(s),"parserOptions"in m&&!n(l))throw new TypeError('Key "parserOptions": Expected an object.');const d=Object.keys(g);if(d.length>0)throw new TypeError(`Unexpected key "${d[0]}" found.`)}return sp={validateLanguageOptions:r},sp}var ap,$b;function Wb(){if($b)return ap;$b=1;const{SourceCode:a}=bd(),e=kr(),n=Fn(),o=hn(),t=qn(),u=Wr(),{validateLanguageOptions:p}=eP(),{LATEST_ECMA_VERSION:c}=mi(),r=e("eslint:languages:js"),m=5,i=Symbol.for("eslint.RuleTester.parser");function f(l,g,d){const S=g.parserOptions.ecmaFeatures||{},b=g.ecmaVersion||m;return t.analyze(l,{ignoreEval:!0,nodejsScope:S.globalReturn,impliedStrict:S.impliedStrict,ecmaVersion:typeof b=="number"?b:6,sourceType:g.sourceType||"script",childVisitorKeys:d||u.KEYS,fallback:u.getKeys})}function h(l){return l===o||l[i]===o}function s(l){switch(l){case 3:return 3;case 5:case void 0:return 5;default:if(typeof l=="number")return l>=2015?l:l+2009}return c}return ap={fileType:"text",lineStart:1,columnStart:0,nodeTypeKey:"type",visitorKeys:u.KEYS,defaultLanguageOptions:{sourceType:"module",ecmaVersion:"latest",parser:o,parserOptions:{}},validateLanguageOptions:p,normalizeLanguageOptions(l){if(l.ecmaVersion=s(l.ecmaVersion),h(l.parser)){const g=l.parserOptions;l.sourceType&&(g.sourceType=l.sourceType,g.sourceType==="module"&&g.ecmaFeatures&&g.ecmaFeatures.globalReturn&&(g.ecmaFeatures.globalReturn=!1))}return l},matchesSelectorClass(l,g,d){switch(l.toLowerCase()){case"statement":if(g.type.slice(-9)==="Statement")return!0;case"declaration":return g.type.slice(-11)==="Declaration";case"pattern":if(g.type.slice(-7)==="Pattern")return!0;case"expression":return g.type.slice(-10)==="Expression"||g.type.slice(-7)==="Literal"||g.type==="Identifier"&&(d.length===0||d[0].type!=="MetaProperty")||g.type==="MetaProperty";case"function":return g.type==="FunctionDeclaration"||g.type==="FunctionExpression"||g.type==="ArrowFunctionExpression";default:throw new Error(`Unknown class name: ${l}`)}},parse(l,{languageOptions:g}){const{body:d,path:v}=l,S=d.replace(n.shebangPattern,(T,x)=>`//${x}`),{ecmaVersion:b,sourceType:w,parser:C}=g,E=Object.assign({ecmaVersion:b,sourceType:w},g.parserOptions,{loc:!0,range:!0,raw:!0,tokens:!0,comment:!0,eslintVisitorKeys:!0,eslintScopeManager:!0,filePath:v});try{r("Parsing:",v);const T=typeof C.parseForESLint=="function"?C.parseForESLint(S,E):{ast:C.parse(S,E)};r("Parsing successful:",v);const{ast:x,services:A={},visitorKeys:k=u.KEYS,scopeManager:B}=T;return{ok:!0,ast:x,parserServices:A,visitorKeys:k,scopeManager:B}}catch(T){const x=T.message.replace(/^line \d+:/iu,"").trim();return r(`%s
|
|
126
|
+
%s`,x,T.stack),{ok:!1,errors:[{message:x,line:T.lineNumber,column:T.column}]}}},createSourceCode(l,g,{languageOptions:d}){const{body:v,path:S,bom:b}=l,{ast:w,parserServices:C,visitorKeys:E}=g;r("Scope analysis:",S);const T=g.scopeManager||f(w,d,E);return r("Scope analysis successful:",S),new a({text:v,ast:w,hasBOM:b,parserServices:C,scopeManager:T,visitorKeys:E})}},ap}var Gb;function tP(){if(Gb)return _n;Gb=1;const a=Lb(),e=[{files:["**/*.js","**/*.mjs"]},{files:["**/*.cjs"],languageOptions:{sourceType:"commonjs",ecmaVersion:"latest"}}];return _n.defaultConfig=Object.freeze([{plugins:{"@":{languages:{js:Wb()},rules:new Proxy({},{get(n,o){return a.get(o)},has(n,o){return a.has(o)}})}},language:"@/js",linterOptions:{reportUnusedDisableDirectives:1}},{ignores:["**/node_modules/",".git/"]},...e]),_n.defaultRuleTesterConfig=Object.freeze([{files:["**"]},...e]),_n}var zb;function rP(){if(zb)return np;zb=1;const{ConfigArray:a,ConfigArraySymbol:e}=Od(),{flatConfigSchema:n}=Ka(),{defaultConfig:o}=tP(),{Config:t}=ri(),u=new Set(["name","basePath"]);function p(f,h,s){let l="user-defined",g=f.index;return f.index<s?l="base":f.index<h+s?(l="original",g=f.index-s):g=f.index-h-s,new TypeError(`${f.message.slice(0,-1)} at ${l} index ${g}.`,{cause:f})}const c=Symbol("originalBaseConfig"),r=Symbol("originalLength"),m=Symbol("baseLength");class i extends a{constructor(h,{basePath:s,shouldIgnore:l=!0,baseConfig:g=o}={}){super(h,{basePath:s,schema:n}),this[r]=this.length,g[Symbol.iterator]?this.unshift(...g):this.unshift(g),this[m]=this.length-this[r],this[c]=g,Object.defineProperty(this,c,{writable:!1}),this.shouldIgnore=l,Object.defineProperty(this,"shouldIgnore",{writable:!1})}normalize(h){return super.normalize(h).catch(s=>{throw s.name==="ConfigError"?p(s,this[r],this[m]):s})}normalizeSync(h){try{return super.normalizeSync(h)}catch(s){throw s.name==="ConfigError"?p(s,this[r],this[m]):s}}[e.preprocessConfig](h){if(!this.shouldIgnore&&!this[c].includes(h)&&h.ignores&&Object.keys(h).filter(s=>!u.has(s)).length===1){const{ignores:s,...l}=h;return l}return h}[e.finalizeConfig](h){return new t(h)}}return np.FlatConfigArray=i,np}var ip,Hb;function nP(){if(Hb)return ip;Hb=1;const a=new Map([["test_only","Used only for testing."],["test_only_2","Used only for testing."],["v10_config_lookup_from_file","Look up `eslint.config.js` from the file being linted."],["unstable_native_nodejs_ts_config","Use native Node.js to load TypeScript configuration."]]),e=new Map([["test_only_replaced",{description:"Used only for testing flags that have been replaced by other flags.",replacedBy:"test_only"}],["test_only_enabled_by_default",{description:"Used only for testing flags whose features have been enabled by default.",replacedBy:null}],["test_only_abandoned",{description:"Used only for testing flags whose features have been abandoned."}],["unstable_ts_config",{description:"Enable TypeScript configuration files.",replacedBy:null}],["unstable_config_lookup_from_file",{description:"Look up `eslint.config.js` from the file being linted.",replacedBy:"v10_config_lookup_from_file"}]]);function n({replacedBy:o}){return typeof o>"u"?"This feature has been abandoned.":typeof o=="string"?`This flag has been renamed '${o}' to reflect its stabilization. Please use '${o}' instead.`:"This feature is now enabled by default."}return ip={activeFlags:a,inactiveFlags:e,getInactivityReasonMessage:n},ip}var op,Kb;function Xb(){if(Kb)return op;Kb=1;function a(o){return typeof o=="string"?o.charCodeAt(0)===65279:o[0]===239&&o[1]===187&&o[2]===191}function e(o){return a(o)?typeof o=="string"?o.slice(1):o.slice(3):o}class n{path;physicalPath;body;rawBody;bom;constructor(t,u,{physicalPath:p}={}){this.path=t,this.physicalPath=p??t,this.bom=a(u),this.body=e(u),this.rawBody=u}}return op={VFile:n},op}var lp,Jb;function sP(){if(Jb)return lp;Jb=1;class a{parseSync(n,o){const{language:t,languageOptions:u}=o,p=t.parse(n,{languageOptions:u});if(typeof p.then=="function")throw new Error("Unsupported: Language parser returned a promise.");return p.ok?{ok:!0,sourceCode:t.createSourceCode(n,p,{languageOptions:u})}:{ok:!1,errors:p.errors.map(c=>({ruleId:null,nodeType:null,fatal:!0,severity:2,message:`Parsing error: ${c.message}`,line:c.line,column:c.column}))}}}return lp={ParserService:a},lp}var up={},Yb;function aP(){if(Yb)return up;Yb=1;class a{cwd;filename;physicalFilename;sourceCode;parserOptions;parserPath;languageOptions;settings;constructor({cwd:n,filename:o,physicalFilename:t,sourceCode:u,parserOptions:p,parserPath:c,languageOptions:r,settings:m}){this.cwd=n,this.filename=o,this.physicalFilename=t,this.sourceCode=u,this.parserOptions=p,this.parserPath=c,this.languageOptions=r,this.settings=m,Object.freeze(this)}getCwd(){return this.cwd}getFilename(){return this.filename}getPhysicalFilename(){return this.physicalFilename}getSourceCode(){return this.sourceCode}extend(n){return Object.freeze(Object.assign(Object.create(this),n))}}return up.FileContext=a,up}var cp,Qb;function iP(){if(Qb)return cp;Qb=1;const a=pn,{VFile:e}=Xb();class n{preprocessSync(t,u){const{processor:p}=u;let c;try{c=p.preprocess(t.rawBody,t.path)}catch(r){return{ok:!1,errors:[{ruleId:null,fatal:!0,severity:2,message:`Preprocessing error: ${r.message.replace(/^line \d+:/iu,"").trim()}`,line:r.lineNumber,column:r.column,nodeType:null}]}}if(typeof c.then=="function")throw new Error("Unsupported: Preprocessor returned a promise.");return{ok:!0,files:c.map((r,m)=>{if(typeof r=="string")return r;const i=a.join(t.path,`${m}_${r.filename}`);return new e(i,r.text,{physicalPath:t.physicalPath})})}}postprocessSync(t,u,p){const{processor:c}=p;return c.postprocess(u,t.path)}}return cp={ProcessorService:n},cp}var fp,Zb;function oP(){if(Zb)return fp;Zb=1;function a(e,n){if(e===n)return!1;if(typeof e!=typeof n||Array.isArray(e)!==Array.isArray(n))return!0;if(Array.isArray(e))return e.length!==n.length||e.some((o,t)=>a(o,n[t]));if(typeof e=="object"){if(e===null||n===null)return!0;const o=Object.keys(e),t=Object.keys(n);return o.length!==t.length||o.some(u=>!Object.hasOwn(n,u)||a(e[u],n[u]))}return!0}return fp={containsDifferentProperty:a},fp}var pp,e0;function lP(){if(e0)return pp;e0=1;class a{constructor({emitWarning:n=globalThis.process?.emitWarning??(()=>{})}={}){this.emitWarning=n}emitCircularFixesWarning(n){this.emitWarning(`Circular fixes detected while fixing ${n}. It is likely that you have conflicting rules in your configuration.`,"ESLintCircularFixesWarning")}emitEmptyConfigWarning(n){this.emitWarning(`Running ESLint with an empty config (from ${n}). Please double-check that this is what you want. If you want to run ESLint with an empty config, export [{}] to remove this warning.`,"ESLintEmptyConfigWarning")}emitESLintIgnoreWarning(){this.emitWarning('The ".eslintignore" file is no longer supported. Switch to using the "ignores" property in "eslint.config.js": https://eslint.org/docs/latest/use/configure/migration-guide#ignoring-files',"ESLintIgnoreWarning")}emitESLintRCWarning(){this.emitWarning("You are using an eslintrc configuration file, which is deprecated and support will be removed in v10.0.0. Please migrate to an eslint.config.js file. See https://eslint.org/docs/latest/use/configure/migration-guide for details. An eslintrc configuration file is used because you have the ESLINT_USE_FLAT_CONFIG environment variable set to false. If you want to use an eslint.config.js file, remove the environment variable. If you want to find the location of the eslintrc configuration file, use the --debug flag.","ESLintRCWarning")}emitInactiveFlagWarning(n,o){this.emitWarning(o,`ESLintInactiveFlag_${n}`)}}return pp={WarningService:a},pp}function sn(a){return(sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(a)}function mp(a,e){return function(n){if(Array.isArray(n))return n}(a)||function(n,o){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var u,p,c,r,m=[],i=!0,f=!1;try{if(c=(t=t.call(n)).next,o!==0)for(;!(i=(u=c.call(t)).done)&&(m.push(u.value),m.length!==o);i=!0);}catch(h){f=!0,p=h}finally{try{if(!i&&t.return!=null&&(r=t.return(),Object(r)!==r))return}finally{if(f)throw p}}return m}}(a,e)||t0(a,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
127
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function uP(a){return function(e){if(Array.isArray(e))return hp(e)}(a)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(a)||t0(a)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
128
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function t0(a,e){if(a){if(typeof a=="string")return hp(a,e);var n=Object.prototype.toString.call(a).slice(8,-1);return n==="Object"&&a.constructor&&(n=a.constructor.name),n==="Map"||n==="Set"?Array.from(a):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hp(a,e):void 0}}function hp(a,e){(e==null||e>a.length)&&(e=a.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=a[n];return o}function r0(a,e){return a(e={exports:{}},e.exports),e.exports}var Bn=r0(function(a,e){(function n(o){var t,u,p,c,r,m;function i(b){var w,C,E={};for(w in b)b.hasOwnProperty(w)&&(C=b[w],E[w]=typeof C=="object"&&C!==null?i(C):C);return E}function f(b,w){this.parent=b,this.key=w}function h(b,w,C,E){this.node=b,this.path=w,this.wrap=C,this.ref=E}function s(){}function l(b){return b!=null&&typeof b=="object"&&typeof b.type=="string"}function g(b,w){return(b===t.ObjectExpression||b===t.ObjectPattern)&&w==="properties"}function d(b,w){for(var C=b.length-1;C>=0;--C)if(b[C].node===w)return!0;return!1}function v(b,w){return new s().traverse(b,w)}function S(b,w){var C;return C=function(E,T){var x,A,k,B;for(A=E.length,k=0;A;)T(E[B=k+(x=A>>>1)])?A=x:(k=B+1,A-=x+1);return k}(w,function(E){return E.range[0]>b.range[0]}),b.extendedRange=[b.range[0],b.range[1]],C!==w.length&&(b.extendedRange[1]=w[C].range[0]),(C-=1)>=0&&(b.extendedRange[0]=w[C].range[1]),b}return t={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"},p={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},u={Break:c={},Skip:r={},Remove:m={}},f.prototype.replace=function(b){this.parent[this.key]=b},f.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},s.prototype.path=function(){var b,w,C,E,T;function x(A,k){if(Array.isArray(k))for(C=0,E=k.length;C<E;++C)A.push(k[C]);else A.push(k)}if(!this.__current.path)return null;for(T=[],b=2,w=this.__leavelist.length;b<w;++b)x(T,this.__leavelist[b].path);return x(T,this.__current.path),T},s.prototype.type=function(){return this.current().type||this.__current.wrap},s.prototype.parents=function(){var b,w,C;for(C=[],b=1,w=this.__leavelist.length;b<w;++b)C.push(this.__leavelist[b].node);return C},s.prototype.current=function(){return this.__current.node},s.prototype.__execute=function(b,w){var C,E;return E=void 0,C=this.__current,this.__current=w,this.__state=null,b&&(E=b.call(this,w.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=C,E},s.prototype.notify=function(b){this.__state=b},s.prototype.skip=function(){this.notify(r)},s.prototype.break=function(){this.notify(c)},s.prototype.remove=function(){this.notify(m)},s.prototype.__initialize=function(b,w){this.visitor=w,this.root=b,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,w.fallback==="iteration"?this.__fallback=Object.keys:typeof w.fallback=="function"&&(this.__fallback=w.fallback),this.__keys=p,w.keys&&(this.__keys=Object.assign(Object.create(this.__keys),w.keys))},s.prototype.traverse=function(b,w){var C,E,T,x,A,k,B,R,F,P,N,j;for(this.__initialize(b,w),j={},C=this.__worklist,E=this.__leavelist,C.push(new h(b,null,null,null)),E.push(new h(null,null,null,null));C.length;)if((T=C.pop())!==j){if(T.node){if(k=this.__execute(w.enter,T),this.__state===c||k===c)return;if(C.push(j),E.push(T),this.__state===r||k===r)continue;if(A=(x=T.node).type||T.wrap,!(P=this.__keys[A])){if(!this.__fallback)throw new Error("Unknown node type "+A+".");P=this.__fallback(x)}for(R=P.length;(R-=1)>=0;)if(N=x[B=P[R]]){if(Array.isArray(N)){for(F=N.length;(F-=1)>=0;)if(N[F]&&!d(E,N[F])){if(g(A,P[R]))T=new h(N[F],[B,F],"Property",null);else{if(!l(N[F]))continue;T=new h(N[F],[B,F],null,null)}C.push(T)}}else if(l(N)){if(d(E,N))continue;C.push(new h(N,B,null,null))}}}}else if(T=E.pop(),k=this.__execute(w.leave,T),this.__state===c||k===c)return},s.prototype.replace=function(b,w){var C,E,T,x,A,k,B,R,F,P,N,j,V;function O(G){var L,K,H,ae;if(G.ref.remove()){for(K=G.ref.key,ae=G.ref.parent,L=C.length;L--;)if((H=C[L]).ref&&H.ref.parent===ae){if(H.ref.key<K)break;--H.ref.key}}}for(this.__initialize(b,w),N={},C=this.__worklist,E=this.__leavelist,k=new h(b,null,null,new f(j={root:b},"root")),C.push(k),E.push(k);C.length;)if((k=C.pop())!==N){if((A=this.__execute(w.enter,k))!==void 0&&A!==c&&A!==r&&A!==m&&(k.ref.replace(A),k.node=A),this.__state!==m&&A!==m||(O(k),k.node=null),this.__state===c||A===c)return j.root;if((T=k.node)&&(C.push(N),E.push(k),this.__state!==r&&A!==r)){if(x=T.type||k.wrap,!(F=this.__keys[x])){if(!this.__fallback)throw new Error("Unknown node type "+x+".");F=this.__fallback(T)}for(B=F.length;(B-=1)>=0;)if(P=T[V=F[B]])if(Array.isArray(P)){for(R=P.length;(R-=1)>=0;)if(P[R]){if(g(x,F[B]))k=new h(P[R],[V,R],"Property",new f(P,R));else{if(!l(P[R]))continue;k=new h(P[R],[V,R],null,new f(P,R))}C.push(k)}}else l(P)&&C.push(new h(P,V,null,new f(T,V)))}}else if(k=E.pop(),(A=this.__execute(w.leave,k))!==void 0&&A!==c&&A!==r&&A!==m&&k.ref.replace(A),this.__state!==m&&A!==m||O(k),this.__state===c||A===c)return j.root;return j.root},o.Syntax=t,o.traverse=v,o.replace=function(b,w){return new s().replace(b,w)},o.attachComments=function(b,w,C){var E,T,x,A,k=[];if(!b.range)throw new Error("attachComments needs range information");if(!C.length){if(w.length){for(x=0,T=w.length;x<T;x+=1)(E=i(w[x])).extendedRange=[0,b.range[0]],k.push(E);b.leadingComments=k}return b}for(x=0,T=w.length;x<T;x+=1)k.push(S(i(w[x]),C));return A=0,v(b,{enter:function(B){for(var R;A<k.length&&!((R=k[A]).extendedRange[1]>B.range[0]);)R.extendedRange[1]===B.range[0]?(B.leadingComments||(B.leadingComments=[]),B.leadingComments.push(R),k.splice(A,1)):A+=1;return A===k.length?u.Break:k[A].extendedRange[0]>B.range[1]?u.Skip:void 0}}),A=0,v(b,{leave:function(B){for(var R;A<k.length&&(R=k[A],!(B.range[1]<R.extendedRange[0]));)B.range[1]===R.extendedRange[0]?(B.trailingComments||(B.trailingComments=[]),B.trailingComments.push(R),k.splice(A,1)):A+=1;return A===k.length?u.Break:k[A].extendedRange[0]>B.range[1]?u.Skip:void 0}}),b},o.VisitorKeys=p,o.VisitorOption=u,o.Controller=s,o.cloneEnvironment=function(){return n({})},o})(e)}),cP=r0(function(a){a.exports&&(a.exports=function(){function e(n,o,t,u){this.message=n,this.expected=o,this.found=t,this.location=u,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e)}return function(n,o){function t(){this.constructor=n}t.prototype=o.prototype,n.prototype=new t}(e,Error),e.buildMessage=function(n,o){var t={literal:function(r){return'"'+p(r.text)+'"'},class:function(r){var m,i="";for(m=0;m<r.parts.length;m++)i+=r.parts[m]instanceof Array?c(r.parts[m][0])+"-"+c(r.parts[m][1]):c(r.parts[m]);return"["+(r.inverted?"^":"")+i+"]"},any:function(r){return"any character"},end:function(r){return"end of input"},other:function(r){return r.description}};function u(r){return r.charCodeAt(0).toString(16).toUpperCase()}function p(r){return r.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(m){return"\\x0"+u(m)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(m){return"\\x"+u(m)})}function c(r){return r.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(m){return"\\x0"+u(m)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(m){return"\\x"+u(m)})}return"Expected "+function(r){var m,i,f,h=new Array(r.length);for(m=0;m<r.length;m++)h[m]=(f=r[m],t[f.type](f));if(h.sort(),h.length>0){for(m=1,i=1;m<h.length;m++)h[m-1]!==h[m]&&(h[i]=h[m],i++);h.length=i}switch(h.length){case 1:return h[0];case 2:return h[0]+" or "+h[1];default:return h.slice(0,-1).join(", ")+", or "+h[h.length-1]}}(n)+" but "+function(r){return r?'"'+p(r)+'"':"end of input"}(o)+" found."},{SyntaxError:e,parse:function(n,o){o=o!==void 0?o:{};var t,u,p,c,r={},m={start:ke},i=ke,f=Je(" ",!1),h=/^[^ [\],():#!=><~+.]/,s=ht([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),l=Je(">",!1),g=Je("~",!1),d=Je("+",!1),v=Je(",",!1),S=Je("!",!1),b=Je("*",!1),w=Je("#",!1),C=Je("[",!1),E=Je("]",!1),T=/^[><!]/,x=ht([">","<","!"],!1,!1),A=Je("=",!1),k=function(_){return(_||"")+"="},B=/^[><]/,R=ht([">","<"],!1,!1),F=Je(".",!1),P=function(_,J,fe){return{type:"attribute",name:_,operator:J,value:fe}},N=Je('"',!1),j=/^[^\\"]/,V=ht(["\\",'"'],!0,!1),O=Je("\\",!1),G={type:"any"},L=function(_,J){return _+J},K=function(_){return{type:"literal",value:(J=_.join(""),J.replace(/\\(.)/g,function(fe,te){switch(te){case"b":return"\b";case"f":return"\f";case"n":return`
|
|
129
|
+
`;case"r":return"\r";case"t":return" ";case"v":return"\v";default:return te}}))};var J},H=Je("'",!1),ae=/^[^\\']/,re=ht(["\\","'"],!0,!1),De=/^[0-9]/,Y=ht([["0","9"]],!1,!1),I=Je("type(",!1),W=/^[^ )]/,ue=ht([" ",")"],!0,!1),oe=Je(")",!1),ne=/^[imsu]/,he=ht(["i","m","s","u"],!1,!1),ye=Je("/",!1),ge=/^[^\/]/,Ce=ht(["/"],!0,!1),z=Je(":not(",!1),Q=Je(":matches(",!1),Re=Je(":has(",!1),$=Je(":first-child",!1),ie=Je(":last-child",!1),Te=Je(":nth-child(",!1),Ne=Je(":nth-last-child(",!1),Le=Je(":",!1),U=0,Qe=[{line:1,column:1}],ct=0,st=[],Ke={};if("startRule"in o){if(!(o.startRule in m))throw new Error(`Can't start parsing from rule "`+o.startRule+'".');i=m[o.startRule]}function Je(_,J){return{type:"literal",text:_,ignoreCase:J}}function ht(_,J,fe){return{type:"class",parts:_,inverted:J,ignoreCase:fe}}function dt(_){var J,fe=Qe[_];if(fe)return fe;for(J=_-1;!Qe[J];)J--;for(fe={line:(fe=Qe[J]).line,column:fe.column};J<_;)n.charCodeAt(J)===10?(fe.line++,fe.column=1):fe.column++,J++;return Qe[_]=fe,fe}function ot(_,J){var fe=dt(_),te=dt(J);return{start:{offset:_,line:fe.line,column:fe.column},end:{offset:J,line:te.line,column:te.column}}}function nt(_){U<ct||(U>ct&&(ct=U,st=[]),st.push(_))}function ke(){var _,J,fe,te,we=30*U+0,Pe=Ke[we];return Pe?(U=Pe.nextPos,Pe.result):(_=U,(J=Se())!==r&&(fe=$e())!==r&&Se()!==r?_=J=(te=fe).length===1?te[0]:{type:"matches",selectors:te}:(U=_,_=r),_===r&&(_=U,(J=Se())!==r&&(J=void 0),_=J),Ke[we]={nextPos:U,result:_},_)}function Se(){var _,J,fe=30*U+1,te=Ke[fe];if(te)return U=te.nextPos,te.result;for(_=[],n.charCodeAt(U)===32?(J=" ",U++):(J=r,nt(f));J!==r;)_.push(J),n.charCodeAt(U)===32?(J=" ",U++):(J=r,nt(f));return Ke[fe]={nextPos:U,result:_},_}function ve(){var _,J,fe,te=30*U+2,we=Ke[te];if(we)return U=we.nextPos,we.result;if(J=[],h.test(n.charAt(U))?(fe=n.charAt(U),U++):(fe=r,nt(s)),fe!==r)for(;fe!==r;)J.push(fe),h.test(n.charAt(U))?(fe=n.charAt(U),U++):(fe=r,nt(s));else J=r;return J!==r&&(J=J.join("")),_=J,Ke[te]={nextPos:U,result:_},_}function Fe(){var _,J,fe,te=30*U+3,we=Ke[te];return we?(U=we.nextPos,we.result):(_=U,(J=Se())!==r?(n.charCodeAt(U)===62?(fe=">",U++):(fe=r,nt(l)),fe!==r&&Se()!==r?_=J="child":(U=_,_=r)):(U=_,_=r),_===r&&(_=U,(J=Se())!==r?(n.charCodeAt(U)===126?(fe="~",U++):(fe=r,nt(g)),fe!==r&&Se()!==r?_=J="sibling":(U=_,_=r)):(U=_,_=r),_===r&&(_=U,(J=Se())!==r?(n.charCodeAt(U)===43?(fe="+",U++):(fe=r,nt(d)),fe!==r&&Se()!==r?_=J="adjacent":(U=_,_=r)):(U=_,_=r),_===r&&(_=U,n.charCodeAt(U)===32?(J=" ",U++):(J=r,nt(f)),J!==r&&(fe=Se())!==r?_=J="descendant":(U=_,_=r)))),Ke[te]={nextPos:U,result:_},_)}function $e(){var _,J,fe,te,we,Pe,ze,Ye,et=30*U+4,pe=Ke[et];if(pe)return U=pe.nextPos,pe.result;if(_=U,(J=ce())!==r){for(fe=[],te=U,(we=Se())!==r?(n.charCodeAt(U)===44?(Pe=",",U++):(Pe=r,nt(v)),Pe!==r&&(ze=Se())!==r&&(Ye=ce())!==r?te=we=[we,Pe,ze,Ye]:(U=te,te=r)):(U=te,te=r);te!==r;)fe.push(te),te=U,(we=Se())!==r?(n.charCodeAt(U)===44?(Pe=",",U++):(Pe=r,nt(v)),Pe!==r&&(ze=Se())!==r&&(Ye=ce())!==r?te=we=[we,Pe,ze,Ye]:(U=te,te=r)):(U=te,te=r);fe!==r?_=J=[J].concat(fe.map(function(se){return se[3]})):(U=_,_=r)}else U=_,_=r;return Ke[et]={nextPos:U,result:_},_}function ce(){var _,J,fe,te,we,Pe,ze,Ye=30*U+5,et=Ke[Ye];if(et)return U=et.nextPos,et.result;if(_=U,(J=be())!==r){for(fe=[],te=U,(we=Fe())!==r&&(Pe=be())!==r?te=we=[we,Pe]:(U=te,te=r);te!==r;)fe.push(te),te=U,(we=Fe())!==r&&(Pe=be())!==r?te=we=[we,Pe]:(U=te,te=r);fe!==r?(ze=J,_=J=fe.reduce(function(pe,se){return{type:se[0],left:pe,right:se[1]}},ze)):(U=_,_=r)}else U=_,_=r;return Ke[Ye]={nextPos:U,result:_},_}function be(){var _,J,fe,te,we,Pe,ze,Ye=30*U+6,et=Ke[Ye];if(et)return U=et.nextPos,et.result;if(_=U,n.charCodeAt(U)===33?(J="!",U++):(J=r,nt(S)),J===r&&(J=null),J!==r){if(fe=[],(te=ee())!==r)for(;te!==r;)fe.push(te),te=ee();else fe=r;fe!==r?(we=J,ze=(Pe=fe).length===1?Pe[0]:{type:"compound",selectors:Pe},we&&(ze.subject=!0),_=J=ze):(U=_,_=r)}else U=_,_=r;return Ke[Ye]={nextPos:U,result:_},_}function ee(){var _,J=30*U+7,fe=Ke[J];return fe?(U=fe.nextPos,fe.result):((_=function(){var te,we,Pe=30*U+8,ze=Ke[Pe];return ze?(U=ze.nextPos,ze.result):(n.charCodeAt(U)===42?(we="*",U++):(we=r,nt(b)),we!==r&&(we={type:"wildcard",value:we}),te=we,Ke[Pe]={nextPos:U,result:te},te)}())===r&&(_=function(){var te,we,Pe,ze=30*U+9,Ye=Ke[ze];return Ye?(U=Ye.nextPos,Ye.result):(te=U,n.charCodeAt(U)===35?(we="#",U++):(we=r,nt(w)),we===r&&(we=null),we!==r&&(Pe=ve())!==r?te=we={type:"identifier",value:Pe}:(U=te,te=r),Ke[ze]={nextPos:U,result:te},te)}())===r&&(_=function(){var te,we,Pe,ze,Ye=30*U+10,et=Ke[Ye];return et?(U=et.nextPos,et.result):(te=U,n.charCodeAt(U)===91?(we="[",U++):(we=r,nt(C)),we!==r&&Se()!==r&&(Pe=function(){var pe,se,xe,_e,Be=30*U+14,Ze=Ke[Be];return Ze?(U=Ze.nextPos,Ze.result):(pe=U,(se=le())!==r&&Se()!==r&&(xe=function(){var Oe,He,tt,Ve=30*U+12,it=Ke[Ve];return it?(U=it.nextPos,it.result):(Oe=U,n.charCodeAt(U)===33?(He="!",U++):(He=r,nt(S)),He===r&&(He=null),He!==r?(n.charCodeAt(U)===61?(tt="=",U++):(tt=r,nt(A)),tt!==r?(He=k(He),Oe=He):(U=Oe,Oe=r)):(U=Oe,Oe=r),Ke[Ve]={nextPos:U,result:Oe},Oe)}())!==r&&Se()!==r?((_e=function(){var Oe,He,tt,Ve,it,pt=30*U+18,vt=Ke[pt];if(vt)return U=vt.nextPos,vt.result;if(Oe=U,n.substr(U,5)==="type("?(He="type(",U+=5):(He=r,nt(I)),He!==r)if(Se()!==r){if(tt=[],W.test(n.charAt(U))?(Ve=n.charAt(U),U++):(Ve=r,nt(ue)),Ve!==r)for(;Ve!==r;)tt.push(Ve),W.test(n.charAt(U))?(Ve=n.charAt(U),U++):(Ve=r,nt(ue));else tt=r;tt!==r&&(Ve=Se())!==r?(n.charCodeAt(U)===41?(it=")",U++):(it=r,nt(oe)),it!==r?(He={type:"type",value:tt.join("")},Oe=He):(U=Oe,Oe=r)):(U=Oe,Oe=r)}else U=Oe,Oe=r;else U=Oe,Oe=r;return Ke[pt]={nextPos:U,result:Oe},Oe}())===r&&(_e=function(){var Oe,He,tt,Ve,it,pt,vt=30*U+20,ft=Ke[vt];if(ft)return U=ft.nextPos,ft.result;if(Oe=U,n.charCodeAt(U)===47?(He="/",U++):(He=r,nt(ye)),He!==r){if(tt=[],ge.test(n.charAt(U))?(Ve=n.charAt(U),U++):(Ve=r,nt(Ce)),Ve!==r)for(;Ve!==r;)tt.push(Ve),ge.test(n.charAt(U))?(Ve=n.charAt(U),U++):(Ve=r,nt(Ce));else tt=r;tt!==r?(n.charCodeAt(U)===47?(Ve="/",U++):(Ve=r,nt(ye)),Ve!==r?((it=function(){var gt,Ct,Et=30*U+19,Tt=Ke[Et];if(Tt)return U=Tt.nextPos,Tt.result;if(gt=[],ne.test(n.charAt(U))?(Ct=n.charAt(U),U++):(Ct=r,nt(he)),Ct!==r)for(;Ct!==r;)gt.push(Ct),ne.test(n.charAt(U))?(Ct=n.charAt(U),U++):(Ct=r,nt(he));else gt=r;return Ke[Et]={nextPos:U,result:gt},gt}())===r&&(it=null),it!==r?(pt=it,He={type:"regexp",value:new RegExp(tt.join(""),pt?pt.join(""):"")},Oe=He):(U=Oe,Oe=r)):(U=Oe,Oe=r)):(U=Oe,Oe=r)}else U=Oe,Oe=r;return Ke[vt]={nextPos:U,result:Oe},Oe}()),_e!==r?(se=P(se,xe,_e),pe=se):(U=pe,pe=r)):(U=pe,pe=r),pe===r&&(pe=U,(se=le())!==r&&Se()!==r&&(xe=function(){var Oe,He,tt,Ve=30*U+11,it=Ke[Ve];return it?(U=it.nextPos,it.result):(Oe=U,T.test(n.charAt(U))?(He=n.charAt(U),U++):(He=r,nt(x)),He===r&&(He=null),He!==r?(n.charCodeAt(U)===61?(tt="=",U++):(tt=r,nt(A)),tt!==r?(He=k(He),Oe=He):(U=Oe,Oe=r)):(U=Oe,Oe=r),Oe===r&&(B.test(n.charAt(U))?(Oe=n.charAt(U),U++):(Oe=r,nt(R))),Ke[Ve]={nextPos:U,result:Oe},Oe)}())!==r&&Se()!==r?((_e=function(){var Oe,He,tt,Ve,it,pt,vt=30*U+15,ft=Ke[vt];if(ft)return U=ft.nextPos,ft.result;if(Oe=U,n.charCodeAt(U)===34?(He='"',U++):(He=r,nt(N)),He!==r){for(tt=[],j.test(n.charAt(U))?(Ve=n.charAt(U),U++):(Ve=r,nt(V)),Ve===r&&(Ve=U,n.charCodeAt(U)===92?(it="\\",U++):(it=r,nt(O)),it!==r?(n.length>U?(pt=n.charAt(U),U++):(pt=r,nt(G)),pt!==r?(it=L(it,pt),Ve=it):(U=Ve,Ve=r)):(U=Ve,Ve=r));Ve!==r;)tt.push(Ve),j.test(n.charAt(U))?(Ve=n.charAt(U),U++):(Ve=r,nt(V)),Ve===r&&(Ve=U,n.charCodeAt(U)===92?(it="\\",U++):(it=r,nt(O)),it!==r?(n.length>U?(pt=n.charAt(U),U++):(pt=r,nt(G)),pt!==r?(it=L(it,pt),Ve=it):(U=Ve,Ve=r)):(U=Ve,Ve=r));tt!==r?(n.charCodeAt(U)===34?(Ve='"',U++):(Ve=r,nt(N)),Ve!==r?(He=K(tt),Oe=He):(U=Oe,Oe=r)):(U=Oe,Oe=r)}else U=Oe,Oe=r;if(Oe===r)if(Oe=U,n.charCodeAt(U)===39?(He="'",U++):(He=r,nt(H)),He!==r){for(tt=[],ae.test(n.charAt(U))?(Ve=n.charAt(U),U++):(Ve=r,nt(re)),Ve===r&&(Ve=U,n.charCodeAt(U)===92?(it="\\",U++):(it=r,nt(O)),it!==r?(n.length>U?(pt=n.charAt(U),U++):(pt=r,nt(G)),pt!==r?(it=L(it,pt),Ve=it):(U=Ve,Ve=r)):(U=Ve,Ve=r));Ve!==r;)tt.push(Ve),ae.test(n.charAt(U))?(Ve=n.charAt(U),U++):(Ve=r,nt(re)),Ve===r&&(Ve=U,n.charCodeAt(U)===92?(it="\\",U++):(it=r,nt(O)),it!==r?(n.length>U?(pt=n.charAt(U),U++):(pt=r,nt(G)),pt!==r?(it=L(it,pt),Ve=it):(U=Ve,Ve=r)):(U=Ve,Ve=r));tt!==r?(n.charCodeAt(U)===39?(Ve="'",U++):(Ve=r,nt(H)),Ve!==r?(He=K(tt),Oe=He):(U=Oe,Oe=r)):(U=Oe,Oe=r)}else U=Oe,Oe=r;return Ke[vt]={nextPos:U,result:Oe},Oe}())===r&&(_e=function(){var Oe,He,tt,Ve,it,pt,vt,ft=30*U+16,gt=Ke[ft];if(gt)return U=gt.nextPos,gt.result;for(Oe=U,He=U,tt=[],De.test(n.charAt(U))?(Ve=n.charAt(U),U++):(Ve=r,nt(Y));Ve!==r;)tt.push(Ve),De.test(n.charAt(U))?(Ve=n.charAt(U),U++):(Ve=r,nt(Y));if(tt!==r?(n.charCodeAt(U)===46?(Ve=".",U++):(Ve=r,nt(F)),Ve!==r?He=tt=[tt,Ve]:(U=He,He=r)):(U=He,He=r),He===r&&(He=null),He!==r){if(tt=[],De.test(n.charAt(U))?(Ve=n.charAt(U),U++):(Ve=r,nt(Y)),Ve!==r)for(;Ve!==r;)tt.push(Ve),De.test(n.charAt(U))?(Ve=n.charAt(U),U++):(Ve=r,nt(Y));else tt=r;tt!==r?(pt=tt,vt=(it=He)?[].concat.apply([],it).join(""):"",He={type:"literal",value:parseFloat(vt+pt.join(""))},Oe=He):(U=Oe,Oe=r)}else U=Oe,Oe=r;return Ke[ft]={nextPos:U,result:Oe},Oe}())===r&&(_e=function(){var Oe,He,tt=30*U+17,Ve=Ke[tt];return Ve?(U=Ve.nextPos,Ve.result):((He=ve())!==r&&(He={type:"literal",value:He}),Oe=He,Ke[tt]={nextPos:U,result:Oe},Oe)}()),_e!==r?(se=P(se,xe,_e),pe=se):(U=pe,pe=r)):(U=pe,pe=r),pe===r&&(pe=U,(se=le())!==r&&(se={type:"attribute",name:se}),pe=se)),Ke[Be]={nextPos:U,result:pe},pe)}())!==r&&Se()!==r?(n.charCodeAt(U)===93?(ze="]",U++):(ze=r,nt(E)),ze!==r?te=we=Pe:(U=te,te=r)):(U=te,te=r),Ke[Ye]={nextPos:U,result:te},te)}())===r&&(_=function(){var te,we,Pe,ze,Ye,et,pe,se,xe=30*U+21,_e=Ke[xe];if(_e)return U=_e.nextPos,_e.result;if(te=U,n.charCodeAt(U)===46?(we=".",U++):(we=r,nt(F)),we!==r)if((Pe=ve())!==r){for(ze=[],Ye=U,n.charCodeAt(U)===46?(et=".",U++):(et=r,nt(F)),et!==r&&(pe=ve())!==r?Ye=et=[et,pe]:(U=Ye,Ye=r);Ye!==r;)ze.push(Ye),Ye=U,n.charCodeAt(U)===46?(et=".",U++):(et=r,nt(F)),et!==r&&(pe=ve())!==r?Ye=et=[et,pe]:(U=Ye,Ye=r);ze!==r?(se=Pe,we={type:"field",name:ze.reduce(function(Be,Ze){return Be+Ze[0]+Ze[1]},se)},te=we):(U=te,te=r)}else U=te,te=r;else U=te,te=r;return Ke[xe]={nextPos:U,result:te},te}())===r&&(_=function(){var te,we,Pe,ze,Ye=30*U+22,et=Ke[Ye];return et?(U=et.nextPos,et.result):(te=U,n.substr(U,5)===":not("?(we=":not(",U+=5):(we=r,nt(z)),we!==r&&Se()!==r&&(Pe=$e())!==r&&Se()!==r?(n.charCodeAt(U)===41?(ze=")",U++):(ze=r,nt(oe)),ze!==r?te=we={type:"not",selectors:Pe}:(U=te,te=r)):(U=te,te=r),Ke[Ye]={nextPos:U,result:te},te)}())===r&&(_=function(){var te,we,Pe,ze,Ye=30*U+23,et=Ke[Ye];return et?(U=et.nextPos,et.result):(te=U,n.substr(U,9)===":matches("?(we=":matches(",U+=9):(we=r,nt(Q)),we!==r&&Se()!==r&&(Pe=$e())!==r&&Se()!==r?(n.charCodeAt(U)===41?(ze=")",U++):(ze=r,nt(oe)),ze!==r?te=we={type:"matches",selectors:Pe}:(U=te,te=r)):(U=te,te=r),Ke[Ye]={nextPos:U,result:te},te)}())===r&&(_=function(){var te,we,Pe,ze,Ye=30*U+24,et=Ke[Ye];return et?(U=et.nextPos,et.result):(te=U,n.substr(U,5)===":has("?(we=":has(",U+=5):(we=r,nt(Re)),we!==r&&Se()!==r&&(Pe=$e())!==r&&Se()!==r?(n.charCodeAt(U)===41?(ze=")",U++):(ze=r,nt(oe)),ze!==r?te=we={type:"has",selectors:Pe}:(U=te,te=r)):(U=te,te=r),Ke[Ye]={nextPos:U,result:te},te)}())===r&&(_=function(){var te,we,Pe=30*U+25,ze=Ke[Pe];return ze?(U=ze.nextPos,ze.result):(n.substr(U,12)===":first-child"?(we=":first-child",U+=12):(we=r,nt($)),we!==r&&(we=Ee(1)),te=we,Ke[Pe]={nextPos:U,result:te},te)}())===r&&(_=function(){var te,we,Pe=30*U+26,ze=Ke[Pe];return ze?(U=ze.nextPos,ze.result):(n.substr(U,11)===":last-child"?(we=":last-child",U+=11):(we=r,nt(ie)),we!==r&&(we=Ie(1)),te=we,Ke[Pe]={nextPos:U,result:te},te)}())===r&&(_=function(){var te,we,Pe,ze,Ye,et=30*U+27,pe=Ke[et];if(pe)return U=pe.nextPos,pe.result;if(te=U,n.substr(U,11)===":nth-child("?(we=":nth-child(",U+=11):(we=r,nt(Te)),we!==r)if(Se()!==r){if(Pe=[],De.test(n.charAt(U))?(ze=n.charAt(U),U++):(ze=r,nt(Y)),ze!==r)for(;ze!==r;)Pe.push(ze),De.test(n.charAt(U))?(ze=n.charAt(U),U++):(ze=r,nt(Y));else Pe=r;Pe!==r&&(ze=Se())!==r?(n.charCodeAt(U)===41?(Ye=")",U++):(Ye=r,nt(oe)),Ye!==r?(we=Ee(parseInt(Pe.join(""),10)),te=we):(U=te,te=r)):(U=te,te=r)}else U=te,te=r;else U=te,te=r;return Ke[et]={nextPos:U,result:te},te}())===r&&(_=function(){var te,we,Pe,ze,Ye,et=30*U+28,pe=Ke[et];if(pe)return U=pe.nextPos,pe.result;if(te=U,n.substr(U,16)===":nth-last-child("?(we=":nth-last-child(",U+=16):(we=r,nt(Ne)),we!==r)if(Se()!==r){if(Pe=[],De.test(n.charAt(U))?(ze=n.charAt(U),U++):(ze=r,nt(Y)),ze!==r)for(;ze!==r;)Pe.push(ze),De.test(n.charAt(U))?(ze=n.charAt(U),U++):(ze=r,nt(Y));else Pe=r;Pe!==r&&(ze=Se())!==r?(n.charCodeAt(U)===41?(Ye=")",U++):(Ye=r,nt(oe)),Ye!==r?(we=Ie(parseInt(Pe.join(""),10)),te=we):(U=te,te=r)):(U=te,te=r)}else U=te,te=r;else U=te,te=r;return Ke[et]={nextPos:U,result:te},te}())===r&&(_=function(){var te,we,Pe,ze=30*U+29,Ye=Ke[ze];return Ye?(U=Ye.nextPos,Ye.result):(te=U,n.charCodeAt(U)===58?(we=":",U++):(we=r,nt(Le)),we!==r&&(Pe=ve())!==r?te=we={type:"class",name:Pe}:(U=te,te=r),Ke[ze]={nextPos:U,result:te},te)}()),Ke[J]={nextPos:U,result:_},_)}function le(){var _,J,fe,te,we,Pe,ze,Ye,et=30*U+13,pe=Ke[et];if(pe)return U=pe.nextPos,pe.result;if(_=U,(J=ve())!==r){for(fe=[],te=U,n.charCodeAt(U)===46?(we=".",U++):(we=r,nt(F)),we!==r&&(Pe=ve())!==r?te=we=[we,Pe]:(U=te,te=r);te!==r;)fe.push(te),te=U,n.charCodeAt(U)===46?(we=".",U++):(we=r,nt(F)),we!==r&&(Pe=ve())!==r?te=we=[we,Pe]:(U=te,te=r);fe!==r?(ze=J,Ye=fe,_=J=[].concat.apply([ze],Ye).join("")):(U=_,_=r)}else U=_,_=r;return Ke[et]={nextPos:U,result:_},_}function Ee(_){return{type:"nth-child",index:{type:"literal",value:_}}}function Ie(_){return{type:"nth-last-child",index:{type:"literal",value:_}}}if((t=i())!==r&&U===n.length)return t;throw t!==r&&U<n.length&&nt({type:"end"}),u=st,p=ct<n.length?n.charAt(ct):null,c=ct<n.length?ot(ct,ct+1):ot(ct,ct),new e(e.buildMessage(u,p),u,p,c)}}}())});function tr(a,e){for(var n=0;n<e.length;++n){if(a==null)return a;a=a[e[n]]}return a}var dp=typeof WeakMap=="function"?new WeakMap:null;function Vt(a){if(a==null)return function(){return!0};if(dp!=null){var e=dp.get(a);return e!=null||(e=n0(a),dp.set(a,e)),e}return n0(a)}function n0(a){switch(a.type){case"wildcard":return function(){return!0};case"identifier":var e=a.value.toLowerCase();return function(E,T,x){var A=x&&x.nodeTypeKey||"type";return e===E[A].toLowerCase()};case"field":var n=a.name.split(".");return function(E,T){return function x(A,k,B,R){for(var F=k,P=R;P<B.length;++P){if(F==null)return!1;var N=F[B[P]];if(Array.isArray(N)){for(var j=0;j<N.length;++j)if(x(A,N[j],B,P+1))return!0;return!1}F=N}return A===F}(E,T[n.length-1],n,0)};case"matches":var o=a.selectors.map(Vt);return function(E,T,x){for(var A=0;A<o.length;++A)if(o[A](E,T,x))return!0;return!1};case"compound":var t=a.selectors.map(Vt);return function(E,T,x){for(var A=0;A<t.length;++A)if(!t[A](E,T,x))return!1;return!0};case"not":var u=a.selectors.map(Vt);return function(E,T,x){for(var A=0;A<u.length;++A)if(u[A](E,T,x))return!1;return!0};case"has":var p=a.selectors.map(Vt);return function(E,T,x){var A=!1,k=[];return Bn.traverse(E,{enter:function(B,R){R!=null&&k.unshift(R);for(var F=0;F<p.length;++F)if(p[F](B,k,x))return A=!0,void this.break()},leave:function(){k.shift()},keys:x&&x.visitorKeys,fallback:x&&x.fallback||"iteration"}),A};case"child":var c=Vt(a.left),r=Vt(a.right);return function(E,T,x){return!!(T.length>0&&r(E,T,x))&&c(T[0],T.slice(1),x)};case"descendant":var m=Vt(a.left),i=Vt(a.right);return function(E,T,x){if(i(E,T,x)){for(var A=0,k=T.length;A<k;++A)if(m(T[A],T.slice(A+1),x))return!0}return!1};case"attribute":var f=a.name.split(".");switch(a.operator){case void 0:return function(E){return tr(E,f)!=null};case"=":switch(a.value.type){case"regexp":return function(E){var T=tr(E,f);return typeof T=="string"&&a.value.value.test(T)};case"literal":var h="".concat(a.value.value);return function(E){return h==="".concat(tr(E,f))};case"type":return function(E){return a.value.value===sn(tr(E,f))}}throw new Error("Unknown selector value type: ".concat(a.value.type));case"!=":switch(a.value.type){case"regexp":return function(E){return!a.value.value.test(tr(E,f))};case"literal":var s="".concat(a.value.value);return function(E){return s!=="".concat(tr(E,f))};case"type":return function(E){return a.value.value!==sn(tr(E,f))}}throw new Error("Unknown selector value type: ".concat(a.value.type));case"<=":return function(E){return tr(E,f)<=a.value.value};case"<":return function(E){return tr(E,f)<a.value.value};case">":return function(E){return tr(E,f)>a.value.value};case">=":return function(E){return tr(E,f)>=a.value.value}}throw new Error("Unknown operator: ".concat(a.operator));case"sibling":var l=Vt(a.left),g=Vt(a.right);return function(E,T,x){return g(E,T,x)&&s0(E,l,T,"LEFT_SIDE",x)||a.left.subject&&l(E,T,x)&&s0(E,g,T,"RIGHT_SIDE",x)};case"adjacent":var d=Vt(a.left),v=Vt(a.right);return function(E,T,x){return v(E,T,x)&&a0(E,d,T,"LEFT_SIDE",x)||a.right.subject&&d(E,T,x)&&a0(E,v,T,"RIGHT_SIDE",x)};case"nth-child":var S=a.index.value,b=Vt(a.right);return function(E,T,x){return b(E,T,x)&&i0(E,T,S,x)};case"nth-last-child":var w=-a.index.value,C=Vt(a.right);return function(E,T,x){return C(E,T,x)&&i0(E,T,w,x)};case"class":return function(E,T,x){if(x&&x.matchClass)return x.matchClass(a.name,E,T);if(x&&x.nodeTypeKey)return!1;switch(a.name.toLowerCase()){case"statement":if(E.type.slice(-9)==="Statement")return!0;case"declaration":return E.type.slice(-11)==="Declaration";case"pattern":if(E.type.slice(-7)==="Pattern")return!0;case"expression":return E.type.slice(-10)==="Expression"||E.type.slice(-7)==="Literal"||E.type==="Identifier"&&(T.length===0||T[0].type!=="MetaProperty")||E.type==="MetaProperty";case"function":return E.type==="FunctionDeclaration"||E.type==="FunctionExpression"||E.type==="ArrowFunctionExpression"}throw new Error("Unknown class name: ".concat(a.name))}}throw new Error("Unknown selector type: ".concat(a.type))}function gp(a,e){var n=e&&e.nodeTypeKey||"type",o=a[n];return e&&e.visitorKeys&&e.visitorKeys[o]?e.visitorKeys[o]:Bn.VisitorKeys[o]?Bn.VisitorKeys[o]:e&&typeof e.fallback=="function"?e.fallback(a):Object.keys(a).filter(function(t){return t!==n})}function yp(a,e){var n=e&&e.nodeTypeKey||"type";return a!==null&&sn(a)==="object"&&typeof a[n]=="string"}function s0(a,e,n,o,t){var u=mp(n,1)[0];if(!u)return!1;for(var p=gp(u,t),c=0;c<p.length;++c){var r=u[p[c]];if(Array.isArray(r)){var m=r.indexOf(a);if(m<0)continue;var i=void 0,f=void 0;o==="LEFT_SIDE"?(i=0,f=m):(i=m+1,f=r.length);for(var h=i;h<f;++h)if(yp(r[h],t)&&e(r[h],n,t))return!0}}return!1}function a0(a,e,n,o,t){var u=mp(n,1)[0];if(!u)return!1;for(var p=gp(u,t),c=0;c<p.length;++c){var r=u[p[c]];if(Array.isArray(r)){var m=r.indexOf(a);if(m<0)continue;if(o==="LEFT_SIDE"&&m>0&&yp(r[m-1],t)&&e(r[m-1],n,t)||o==="RIGHT_SIDE"&&m<r.length-1&&yp(r[m+1],t)&&e(r[m+1],n,t))return!0}}return!1}function i0(a,e,n,o){if(n===0)return!1;var t=mp(e,1)[0];if(!t)return!1;for(var u=gp(t,o),p=0;p<u.length;++p){var c=t[u[p]];if(Array.isArray(c)){var r=n<0?c.length+n:n-1;if(r>=0&&r<c.length&&c[r]===a)return!0}}return!1}function o0(a,e,n,o){if(e){var t=[],u=Vt(e),p=function c(r,m){if(r==null||sn(r)!="object")return[];m==null&&(m=r);for(var i=r.subject?[m]:[],f=Object.keys(r),h=0;h<f.length;++h){var s=f[h],l=r[s];i.push.apply(i,uP(c(l,s==="left"?l:m)))}return i}(e).map(Vt);Bn.traverse(a,{enter:function(c,r){if(r!=null&&t.unshift(r),u(c,t,o))if(p.length)for(var m=0,i=p.length;m<i;++m){p[m](c,t,o)&&n(c,r,t);for(var f=0,h=t.length;f<h;++f){var s=t.slice(f+1);p[m](t[f],s,o)&&n(t[f],r,s)}}else n(c,r,t)},leave:function(){t.shift()},keys:o&&o.visitorKeys,fallback:o&&o.fallback||"iteration"})}}function l0(a,e,n){var o=[];return o0(a,e,function(t){o.push(t)},n),o}function u0(a){return cP.parse(a)}function Pr(a,e,n){return l0(a,u0(e),n)}Pr.parse=u0,Pr.match=l0,Pr.traverse=o0,Pr.matches=function(a,e,n,o){return!e||!!a&&(n||(n=[]),Vt(e)(a,n,o))},Pr.query=Pr;var vp,c0;function fP(){if(c0)return vp;c0=1;const a=Pr;class e{source;isExit;root;nodeTypes;attributeCount;identifierCount;constructor(f,h,s,l,g,d){this.source=f,this.isExit=h,this.root=s,this.nodeTypes=l,this.attributeCount=g,this.identifierCount=d}compare(f){return this.attributeCount-f.attributeCount||this.identifierCount-f.identifierCount||(this.source<=f.source?-1:1)}}const n=new Map;function o(...i){return[...new Set(i.flat())]}function t(...i){if(i.length===0)return[];let f=[...new Set(i[0])];for(const h of i.slice(1))f=f.filter(s=>h.includes(s));return f}function u(i){let f=0,h=0;function s(g){switch(g.type){case"identifier":return h++,[g.value];case"not":return g.selectors.map(s),null;case"matches":{const d=g.selectors.map(s);return d.every(Boolean)?o(...d):null}case"compound":{const d=g.selectors.map(s).filter(v=>v);return d.length?t(...d):null}case"attribute":case"field":case"nth-child":case"nth-last-child":return f++,null;case"child":case"descendant":case"sibling":case"adjacent":return s(g.left),s(g.right);case"class":return g.name==="function"?["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]:null;default:return null}}return{nodeTypes:s(i),attributeCount:f,identifierCount:h}}function p(i){return i==="*"?{type:"wildcard",value:"*"}:/^[a-z]+$/iu.test(i)?{type:"identifier",value:i}:null}function c(i){try{return a.parse(i)}catch(f){throw f.location&&f.location.start&&typeof f.location.start.offset=="number"?new SyntaxError(`Syntax error in selector "${i}" at position ${f.location.start.offset}: ${f.message}`):f}}function r(i){if(n.has(i))return n.get(i);const f=i.replace(/:exit$/u,""),h=p(f)??c(f),{nodeTypes:s,attributeCount:l,identifierCount:g}=u(h),d=new e(i,i.endsWith(":exit"),h,s,l,g);return n.set(i,d),d}function m(i,f,h,s){return a.matches(i,f,h,s)}return vp={parse:r,matches:m,ESQueryParsedSelector:e},vp}var Ep,f0;function pP(){if(f0)return Ep;f0=1;const{parse:a,matches:e}=fP(),n=Wr(),o=1,t=2;function u(r,m){return r.compare(m)}class p{constructor(m,i){this.visitor=m,this.esqueryOptions=i,this.enterSelectorsByNodeType=new Map,this.exitSelectorsByNodeType=new Map,this.anyTypeEnterSelectors=[],this.anyTypeExitSelectors=[],m.forEachName(f=>{const h=a(f);if(h.nodeTypes){const l=h.isExit?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType;h.nodeTypes.forEach(g=>{l.has(g)||l.set(g,[]),l.get(g).push(h)});return}(h.isExit?this.anyTypeExitSelectors:this.anyTypeEnterSelectors).push(h)}),this.anyTypeEnterSelectors.sort(u),this.anyTypeExitSelectors.sort(u),this.enterSelectorsByNodeType.forEach(f=>f.sort(u)),this.exitSelectorsByNodeType.forEach(f=>f.sort(u))}matches(m,i,f){return e(m,f.root,i,this.esqueryOptions)}calculateSelectors(m,i,f){const h=this.esqueryOptions?.nodeTypeKey||"type",s=[],l=(f?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType).get(m[h])||[],g=f?this.anyTypeExitSelectors:this.anyTypeEnterSelectors;let d=0,v=0;for(;d<l.length||v<g.length;){const S=d<l.length,b=v<g.length,w=g[v],C=l[d],E=b&&S&&w.compare(C)<0;!S||E?(v++,this.matches(m,i,w)&&s.push(w.source)):(d++,this.matches(m,i,C)&&s.push(C.source))}return s}}class c{#e;static instances=new WeakMap;constructor(m){this.#e=m}static getInstance(m){return this.instances.has(m)||this.instances.set(m,new this(m)),this.instances.get(m)}traverseSync(m,i,{steps:f}={}){const h=new p(i,{visitorKeys:m.visitorKeys??this.#e.visitorKeys,fallback:n.getKeys,matchClass:this.#e.matchesSelectorClass??(()=>!1),nodeTypeKey:this.#e.nodeTypeKey}),s=[];for(const l of f??m.traverse())switch(l.kind){case o:{try{l.phase===1?(h.calculateSelectors(l.target,s,!1).forEach(g=>{i.callSync(g,l.target)}),s.unshift(l.target)):(s.shift(),h.calculateSelectors(l.target,s,!0).forEach(g=>{i.callSync(g,l.target)}))}catch(g){throw g.currentNode=l.target,g}break}case t:{i.callSync(l.target,...l.args);break}default:throw new Error(`Invalid traversal step found: "${l.kind}".`)}}}return Ep={SourceCodeTraverser:c},Ep}var Sp,p0;function mP(){if(p0)return Sp;p0=1;const a=pn,e=qn(),n=Wr(),o=hn(),t=ex(),u=rx,{Legacy:{ConfigOps:p,ConfigValidator:c,environments:r}}=x1(),m=ra(),{SourceCode:i}=bd(),f=hw(),{ConfigCommentParser:h}=vd(),s=yw(),l=JI(),g=YI(),{SourceCodeVisitor:d}=QI(),v=ZI(),S=Md,{FlatConfigArray:b}=rP(),{startTime:w,endTime:C}=Ub(),{assertIsRuleSeverity:E}=Ka(),{normalizeSeverityToString:T,normalizeSeverityToNumber:x}=Td(),{deepMergeArrays:A}=wd(),k=Wb(),{activeFlags:B,inactiveFlags:R,getInactivityReasonMessage:F}=nP(),P=kr()("eslint:linter"),N=10,j="espree",V=5,O=new h,G={start:{line:1,column:0},end:{line:1,column:1}},L=Symbol.for("eslint.RuleTester.parser"),{LATEST_ECMA_VERSION:K}=mi(),{VFile:H}=Xb(),{ParserService:ae}=sP(),{FileContext:re}=aP(),{ProcessorService:De}=iP(),{containsDifferentProperty:Y}=oP(),{Config:I}=ri(),{WarningService:W}=lP(),{SourceCodeTraverser:ue}=pP();function oe(ee){return ee===o||ee[L]===o}function ne(ee,le,{exportedVariables:Ee,enabledGlobals:Ie}){for(const _ of new Set([...Object.keys(le),...Object.keys(Ie)])){const J=le[_]===void 0?void 0:p.normalizeConfigGlobal(le[_]),te=Ie[_]&&Ie[_].value||J,we=Ie[_]&&Ie[_].comments;if(te==="off")continue;let Pe=ee.set.get(_);Pe||(Pe=new e.Variable(_,ee),ee.variables.push(Pe),ee.set.set(_,Pe)),Pe.eslintImplicitGlobalSetting=J,Pe.eslintExplicitGlobal=we!==void 0,Pe.eslintExplicitGlobalComments=we,Pe.writeable=te==="writable"}Object.keys(Ee).forEach(_=>{const J=ee.set.get(_);J&&(J.eslintUsed=!0,J.eslintExported=!0)}),ee.through=ee.through.filter(_=>{const J=_.identifier.name,fe=ee.set.get(J);return fe?(_.resolved=fe,fe.references.push(_),!1):!0})}function he(ee){return Object.hasOwn(S.rules,ee)?`Rule '${ee}' was removed and replaced by: ${S.rules[ee].join(", ")}`:`Definition for rule '${ee}' was not found.`}function ye({line:ee,column:le,endLine:Ee,endColumn:Ie},_){const J=_.columnStart===1?0:1,fe=_.lineStart===1?0:1,te=Ee===void 0?Ee:Ee+fe,we=Ie===void 0?Ie:Ie+J;return{line:ee+fe,column:le+J,endLine:te,endColumn:we}}function ge(ee){const{ruleId:le=null,loc:Ee=G,message:Ie=he(ee.ruleId),severity:_=2,language:J={columnStart:0,lineStart:1}}=ee;return{ruleId:le,message:Ie,...ye({line:Ee.start.line,column:Ee.start.column,endLine:Ee.end.line,endColumn:Ee.end.column},J),severity:_,nodeType:null}}function Ce(ee){return Array.isArray(ee)?ee:[ee]}function z(ee,le,Ee,Ie,_,J,fe){const te=ee.rules?.[Ie],we=te?Ce(te):["off"],Pe=T(we[0]),ze=T(_[0]);if(!(Pe===ze))return;const et=te?`is already configured to '${Pe}'`:"is not enabled so can't be turned off";let pe;we.length===1&&_.length===1||Pe==="off"?pe=`Unused inline config ('${Ie}' ${et}).`:Y(_.slice(1),we.slice(1))||(pe=J.length===1?`Unused inline config ('${Ie}' ${et}).`:`Unused inline config ('${Ie}' ${et} with the same options).`),pe&&Ee.push(ge({ruleId:null,message:pe,loc:le,language:ee.language,severity:x(fe)}))}function Q({type:ee,value:le,justification:Ee,node:Ie},_,J,fe){const te=Object.keys(O.parseListConfig(le)),we=te.length?te:[null],Pe={directives:[],directiveProblems:[]},ze={node:Ie,value:le,ruleIds:te};for(const Ye of we){const et=fe.getLoc(Ie);if(Ye===null||_(Ye))if(ee==="disable-next-line"){const{line:pe,column:se}=ye(et.end,J);Pe.directives.push({parentDirective:ze,type:ee,line:pe,column:se,ruleId:Ye,justification:Ee})}else{const{line:pe,column:se}=ye(et.start,J);Pe.directives.push({parentDirective:ze,type:ee,line:pe,column:se,ruleId:Ye,justification:Ee})}else Pe.directiveProblems.push(ge({ruleId:Ye,loc:et,language:J}))}return Pe}function Re(ee,le,Ee,Ie){const _={},J=Object.create(null),fe={},te=[],we=[],Pe=new c({builtInRules:l});return ee.getInlineConfigNodes().filter(ze=>ze.type!=="Shebang").forEach(ze=>{const Ye=O.parseDirective(ze.value);if(!Ye)return;const{label:et,value:pe,justification:se}=Ye,xe=/^eslint-disable-(next-)?line$/u.test(et);if(ze.type==="Line"&&!xe)return;const _e=ee.getLoc(ze);if(Ee){const Be=ze.type==="Block"?`/*${et}*/`:`//${et}`;te.push(ge({ruleId:null,message:`'${Be}' has no effect because you have 'noInlineConfig' setting in ${Ee}.`,loc:_e,severity:1}));return}if(et==="eslint-disable-line"&&_e.start.line!==_e.end.line){const Be=`${et} comment should not span multiple lines.`;te.push(ge({ruleId:null,message:Be,loc:_e}));return}switch(et){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{const Be=et.slice(7),{directives:Ze,directiveProblems:Oe}=Q({type:Be,value:pe,justification:se,node:ze},le,k,ee);we.push(...Ze),te.push(...Oe);break}case"exported":Object.assign(fe,O.parseListConfig(pe));break;case"globals":case"global":for(const[Be,Ze]of Object.entries(O.parseStringConfig(pe))){let Oe;try{Oe=p.normalizeConfigGlobal(Ze)}catch(He){te.push(ge({ruleId:null,loc:_e,message:He.message}));continue}J[Be]?(J[Be].comments.push(ze),J[Be].value=Oe):J[Be]={comments:[ze],value:Oe}}break;case"eslint":{const Be=O.parseJSONLikeConfig(pe);if(Be.ok)Object.keys(Be.config).forEach(Ze=>{const Oe=le(Ze),He=Be.config[Ze];if(!Oe){te.push(ge({ruleId:Ze,loc:_e}));return}if(Object.hasOwn(_,Ze)){te.push(ge({message:`Rule "${Ze}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:_e}));return}let tt=Ce(He);tt.length===1&&Ie.rules&&Object.hasOwn(Ie.rules,Ze)&&(tt=[tt[0],...Ce(Ie.rules[Ze]).slice(1)]);try{Pe.validateRuleOptions(Oe,Ze,tt)}catch(Ve){if(Ve.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA")throw Ve;te.push(ge({ruleId:Ze,message:Ve.message,loc:_e}));return}_[Ze]=tt});else{const Ze=ge({ruleId:null,loc:_e,message:Be.error.message});Ze.fatal=!0,te.push(Ze)}break}}}),{configuredRules:_,enabledGlobals:J,exportedVariables:fe,problems:te,disableDirectives:we}}function $(ee,le,Ee){const Ie=[],_=[];if(ee.getDisableDirectives){const{directives:J,problems:fe}=ee.getDisableDirectives();_.push(...fe.map(te=>ge({...te,language:Ee}))),J.forEach(te=>{const{directives:we,directiveProblems:Pe}=Q(te,le,Ee,ee);Ie.push(...we),_.push(...Pe)})}return{problems:_,disableDirectives:Ie}}function ie(ee,le){return oe(ee)&&le==="latest"?o.latestEcmaVersion:le>=2015?le-2009:le}function Te(ee){switch(ee){case 3:return 3;case 5:case void 0:return 5;default:if(typeof ee=="number")return ee>=2015?ee:ee+2009}return K}const Ne=/\/\*\s*eslint-env\s(.+?)(?:\*\/|$)/gsu;function Le(ee){let le,Ee;for(Ne.lastIndex=0;(le=Ne.exec(ee))!==null;)le[0].endsWith("*/")&&(Ee=Object.assign(Ee||{},O.parseListConfig(O.parseDirective(le[0].slice(2,-2)).value)));return Ee}function U(ee){const le=ee.split(a.sep),Ee=le.lastIndexOf("<text>");return Ee===-1?ee:le.slice(Ee).join(a.sep)}function Qe(ee,le){const Ee=le.linterOptions||le,Ie=Ee.noInlineConfig===!0,_=ee.allowInlineConfig===!1,J=le.configNameOfNoInlineConfig?` (${le.configNameOfNoInlineConfig})`:"";let fe=ee.reportUnusedDisableDirectives;typeof fe=="boolean"&&(fe=fe?"error":"off"),typeof fe!="string"&&(typeof Ee.reportUnusedDisableDirectives=="boolean"?fe=Ee.reportUnusedDisableDirectives?"warn":"off":fe=Ee.reportUnusedDisableDirectives===void 0?"off":T(Ee.reportUnusedDisableDirectives));const te=Ee.reportUnusedInlineConfigs===void 0?"off":T(Ee.reportUnusedInlineConfigs);let we=ee.ruleFilter;return typeof we!="function"&&(we=()=>!0),{filename:U(ee.filename||"<input>"),allowInlineConfig:!_,warnInlineConfig:Ie&&!_?`your config${J}`:null,reportUnusedDisableDirectives:fe,reportUnusedInlineConfigs:te,disableFixes:!!ee.disableFixes,stats:ee.stats,ruleFilter:we}}function ct(ee,le,Ee){const Ie=Ee.filter(fe=>fe.parserOptions).reduce((fe,te)=>t(fe,te.parserOptions),{}),_=t(Ie,le||{});return _.sourceType==="module"&&(_.ecmaFeatures=Object.assign({},_.ecmaFeatures,{globalReturn:!1})),_.ecmaVersion=ie(ee,_.ecmaVersion),_}function st({globals:ee,parser:le,parserOptions:Ee}){const{ecmaVersion:Ie,sourceType:_}=Ee;return{globals:ee,ecmaVersion:Te(Ie),sourceType:_,parser:le,parserOptions:Ee}}function Ke(ee,le){return Object.assign(Object.create(null),...le.filter(Ee=>Ee.globals).map(Ee=>Ee.globals),ee)}function Je(ee,le,Ee){const{type:Ie,key:_}=le;Ee.times||(Ee.times={passes:[{}]});const J=Ee.fixPasses;J>Ee.times.passes.length-1&&Ee.times.passes.push({}),_?(Ee.times.passes[J][Ie]??={},Ee.times.passes[J][Ie][_]??={total:0},Ee.times.passes[J][Ie][_].total+=ee):(Ee.times.passes[J][Ie]??={total:0},Ee.times.passes[J][Ie].total+=ee)}function ht(ee,le){return Array.isArray(ee)?A(le,ee.slice(1)):le??[]}function dt(ee,le,Ee){const _=le.parserOptions.ecmaFeatures||{},J=le.ecmaVersion||V;return e.analyze(ee,{ignoreEval:!0,nodejsScope:_.globalReturn,impliedStrict:_.impliedStrict,ecmaVersion:typeof J=="number"?J:6,sourceType:le.sourceType||"script",childVisitorKeys:n.KEYS,fallback:m.getKeys})}function ot(ee,le){if(!ee||typeof ee!="object"||typeof ee.create!="function")throw new TypeError(`Error while loading rule '${le.id}': Rule must be an object with a \`create\` method`);try{return ee.create(le)}catch(Ee){throw Ee.message=`Error while loading rule '${le.id}': ${Ee.message}`,Ee}}function nt(ee,le,Ee,Ie,_,J,fe,te,we,Pe,ze,Ye,et,pe,se){const xe=new d,_e=new re({cwd:ze,filename:te,physicalFilename:Ye||te,sourceCode:ee,parserOptions:{...J.parserOptions},parserPath:Ie,languageOptions:J,settings:fe}),Be=[],Ze=ee.traverse();return Object.keys(le).forEach(He=>{const tt=I.getRuleNumericSeverity(le[He]);if(tt===0||et&&!et({ruleId:He,severity:tt}))return;const Ve=Ee(He);if(!Ve){Be.push(ge({ruleId:He,language:_}));return}const it=Ve.meta&&Ve.meta.messages;let pt=null;const vt=_e.extend({id:He,options:ht(le[He],we?Ve.meta?.defaultOptions:void 0),report(...Et){pt===null&&(pt=s({ruleId:He,severity:tt,sourceCode:ee,messageIds:it,disableFixes:Pe,language:_}));const Tt=pt(...Et);if(Tt.fix&&!(Ve.meta&&Ve.meta.fixable))throw new Error('Fixable rules must set the `meta.fixable` property to "code" or "whitespace".');if(Tt.suggestions&&!(Ve.meta&&Ve.meta.hasSuggestions===!0))throw Ve.meta&&Ve.meta.docs&&typeof Ve.meta.docs.suggestion<"u"?new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`. `meta.docs.suggestion` is ignored by ESLint."):new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`.");Be.push(Tt)}}),ft=v.enabled||pe?v.time(He,ot,pe)(Ve,vt):ot(Ve,vt),gt=pe?ft.result:ft;pe&&Je(ft.tdiff,{type:"rules",key:He},se);function Ct(Et){return function(..._t){try{const kt=Et(..._t),Wt=pe?kt.result:kt;return pe&&Je(kt.tdiff,{type:"rules",key:He},se),Wt}catch(kt){throw kt.ruleId=He,kt}}}if(typeof gt>"u"||gt===null)throw new Error(`The create() function for rule '${He}' did not return an object.`);Object.keys(gt).forEach(Et=>{const Tt=v.enabled||pe?v.time(He,gt[Et],pe):gt[Et];xe.add(Et,Ct(Tt))})}),ue.getInstance(_).traverseSync(ee,xe,{steps:Ze}),Be}function ke(ee){if(typeof ee=="object"){const{hasBOM:le,text:Ee}=ee;return(le?"\uFEFF":"")+Ee}return String(ee)}function Se(ee,le){return ee.lastConfigArray&&ee.lastConfigArray.pluginEnvironments.get(le)||r.get(le)||null}function ve(ee,le){return ee.lastConfigArray&&ee.lastConfigArray.pluginRules.get(le)||ee.ruleMap.get(le)}function Fe(ee){if(ee)return ee;if(typeof Bt=="object")return Bt.cwd()}const $e=new WeakMap;function ce(ee){const{configType:le}=$e.get(ee);if(le==="flat")throw new Error("This method cannot be used with flat config. Add your entries directly into the config array.")}class be{constructor({cwd:le,configType:Ee="flat",flags:Ie=[],warningService:_=new W}={}){const J=[];Ie.forEach(fe=>{if(R.has(fe)){const te=R.get(fe),we=F(te),Pe=`The flag '${fe}' is inactive: ${we}`;if(typeof te.replacedBy>"u")throw new Error(Pe);typeof te.replacedBy=="string"&&J.push(te.replacedBy),_.emitInactiveFlagWarning(fe,Pe);return}if(!B.has(fe))throw new Error(`Unknown flag '${fe}'.`);J.push(fe)}),$e.set(this,{cwd:Fe(le),flags:J,lastConfigArray:null,lastSourceCode:null,lastSuppressedMessages:[],configType:Ee,parserMap:new Map([["espree",o]]),ruleMap:new l,warningService:_}),this.version=u.version}static get version(){return u.version}hasFlag(le){return $e.get(this).flags.includes(le)}#e(le,Ee,Ie){const _=$e.get(this),J=Ee||{},fe=Qe(Ie,J);let te=j,we=o;if(typeof J.parser=="object"&&J.parser!==null)te=J.parser.filePath,we=J.parser.definition;else if(typeof J.parser=="string"){if(!_.parserMap.has(J.parser))return[{ruleId:null,fatal:!0,severity:2,message:`Configured parser '${J.parser}' was not found.`,line:0,column:0,nodeType:null}];te=J.parser,we=_.parserMap.get(J.parser)}const Pe=fe.allowInlineConfig&&!fe.warnInlineConfig?Le(le.body):{},ze=Object.assign({builtin:!0},J.env,Pe),Ye=Object.keys(ze).filter(He=>ze[He]).map(He=>Se(_,He)).filter(He=>He),et=ct(we,J.parserOptions||{},Ye),pe=Ke(J.globals||{},Ye),se=J.settings||{},xe=st({globals:J.globals,parser:we,parserOptions:et});if(_.lastSourceCode)_.lastSourceCode.scopeManager||(_.lastSourceCode=new i({text:_.lastSourceCode.text,ast:_.lastSourceCode.ast,hasBOM:_.lastSourceCode.hasBOM,parserServices:_.lastSourceCode.parserServices,visitorKeys:_.lastSourceCode.visitorKeys,scopeManager:dt(_.lastSourceCode.ast,xe)}));else{let He;fe.stats&&(He=w());const Ve=new ae().parseSync(le,{language:k,languageOptions:xe});if(fe.stats){const it=C(He);Je(it,{type:"parse"},_)}if(!Ve.ok)return Ve.errors;_.lastSourceCode=Ve.sourceCode}const _e=_.lastSourceCode,Be=fe.allowInlineConfig?Re(_e,He=>ve(_,He),fe.warnInlineConfig,J):{configuredRules:{},enabledGlobals:{},exportedVariables:{},problems:[],disableDirectives:[]};ne(_e.scopeManager.scopes[0],pe,{exportedVariables:Be.exportedVariables,enabledGlobals:Be.enabledGlobals});const Ze=Object.assign({},J.rules,Be.configuredRules);let Oe;try{Oe=nt(_e,Ze,He=>ve(_,He),te,k,xe,se,fe.filename,!0,fe.disableFixes,_.cwd,Ie.physicalFilename,null,fe.stats,_)}catch(He){if(He.message+=`
|
|
130
|
+
Occurred while linting ${fe.filename}`,P("An error occurred while traversing"),P("Filename:",fe.filename),He.currentNode){const{line:tt}=_e.getLoc(He.currentNode).start;P("Line:",tt),He.message+=`:${tt}`}throw P("Parser Options:",et),P("Parser Path:",te),P("Settings:",se),He.ruleId&&(He.message+=`
|
|
131
|
+
Rule: "${He.ruleId}"`),He}return f({language:k,sourceCode:_e,directives:Be.disableDirectives,disableFixes:fe.disableFixes,problems:Oe.concat(Be.problems).sort((He,tt)=>He.line-tt.line||He.column-tt.column),reportUnusedDisableDirectives:fe.reportUnusedDisableDirectives})}_verifyWithoutProcessors(le,Ee,Ie){const _=$e.get(this),J=U(Ie.filename||"<input>");let fe;typeof le=="string"?(_.lastSourceCode=null,fe=le):(_.lastSourceCode=le,fe=le.text);const te=new H(J,fe,{physicalPath:Ie.physicalFilename});return this.#e(te,Ee,Ie)}verify(le,Ee,Ie){P("Verify");const{configType:_,cwd:J}=$e.get(this),fe=typeof Ie=="string"?{filename:Ie}:Ie||{},te=Ee??{};if(_!=="eslintrc"){let we=te;return(!Array.isArray(te)||typeof te.getConfig!="function")&&(we=new b(te,{basePath:J}),we.normalizeSync()),this._distinguishSuppressedMessages(this._verifyWithFlatConfigArray(le,we,fe,!0))}return typeof te.extractConfig=="function"?this._distinguishSuppressedMessages(this._verifyWithConfigArray(le,te,fe)):fe.preprocess||fe.postprocess?this._distinguishSuppressedMessages(this._verifyWithProcessor(le,te,fe)):this._distinguishSuppressedMessages(this._verifyWithoutProcessors(le,te,fe))}_verifyWithFlatConfigArrayAndProcessor(le,Ee,Ie,_){const J=$e.get(this),fe=Ie.filename||"<input>",te=U(fe),we=Ie.physicalFilename||te,Pe=ke(le),ze=new H(te,Pe,{physicalPath:we}),Ye=Ie.preprocess||(Oe=>[Oe]),et=Ie.postprocess||(Oe=>Oe.flat()),pe=new De,se=pe.preprocessSync(ze,{processor:{preprocess:Ye,postprocess:et}});if(!se.ok)return se.errors;const xe=Ie.filterCodeBlock||(Oe=>Oe.endsWith(".js")),_e=a.extname(fe),{files:Be}=se,Ze=Be.map(Oe=>(P("A code block was found: %o",Oe.path||"(unnamed)"),typeof Oe=="string"?this._verifyWithFlatConfigArrayAndWithoutProcessors(Oe,Ee,Ie):xe(Oe.path,Oe.body)?_&&(Pe!==Oe.rawBody||a.extname(Oe.path)!==_e)?(P("Resolving configuration again because the file content or extension was changed."),this._verifyWithFlatConfigArray(Oe.rawBody,_,{...Ie,filename:Oe.path,physicalFilename:Oe.physicalPath})):(J.lastSourceCode=null,this.#t(Oe,Ee,{...Ie,filename:Oe.path,physicalFilename:Oe.physicalPath})):(P("This code block was skipped."),[])));return pe.postprocessSync(ze,Ze,{processor:{preprocess:Ye,postprocess:et}})}#t(le,Ee,Ie){const _=$e.get(this),J=Ee||{},{settings:fe={},languageOptions:te}=J,we=Qe(Ie,J);if(_.lastSourceCode)_.lastSourceCode.scopeManager===null&&(_.lastSourceCode=new i({text:_.lastSourceCode.text,ast:_.lastSourceCode.ast,hasBOM:_.lastSourceCode.hasBOM,parserServices:_.lastSourceCode.parserServices,visitorKeys:_.lastSourceCode.visitorKeys,scopeManager:dt(_.lastSourceCode.ast,te)}));else{let xe;we.stats&&(xe=w());const Be=new ae().parseSync(le,J);if(we.stats){const Ze=C(xe);Je(Ze,{type:"parse"},_)}if(!Be.ok)return Be.errors;_.lastSourceCode=Be.sourceCode}const Pe=_.lastSourceCode;Pe.applyLanguageOptions?.(te);const ze={rules:{}},Ye=[];if(we.allowInlineConfig)if(we.warnInlineConfig)Pe.getInlineConfigNodes&&Pe.getInlineConfigNodes().forEach(xe=>{const _e=Pe.getLoc(xe),Be=Pe.getRange(xe);Ye.push(ge({ruleId:null,message:`'${Pe.text.slice(Be[0],Be[1])}' has no effect because you have 'noInlineConfig' setting in ${we.warnInlineConfig}.`,loc:_e,severity:1,language:J.language}))});else{const xe=Pe.applyInlineConfig?.();if(xe){Ye.push(...xe.problems.map(_e=>ge({..._e,language:J.language})).map(_e=>(_e.fatal=!0,_e)));for(const{config:_e,loc:Be}of xe.configs)Object.keys(_e.rules).forEach(Ze=>{const Oe=J.getRuleDefinition(Ze),He=_e.rules[Ze];if(!Oe){Ye.push(ge({ruleId:Ze,loc:Be,language:J.language}));return}if(Object.hasOwn(ze.rules,Ze)){Ye.push(ge({message:`Rule "${Ze}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:Be,language:J.language}));return}try{const tt=Ce(He);let Ve=tt;E(Ze,Ve[0]);let it=!0;if(Ve.length===1&&J.rules&&Object.hasOwn(J.rules,Ze))Ve=[Ve[0],...J.rules[Ze].slice(1)],J.rules[Ze][0]>0&&(it=!1);else{const pt=Ve.slice(1),vt=A(Oe.meta?.defaultOptions,pt);vt.length&&(Ve=[Ve[0],...vt])}we.reportUnusedInlineConfigs!=="off"&&z(J,Be,Ye,Ze,Ve,tt,we.reportUnusedInlineConfigs),it&&J.validateRulesConfig({[Ze]:Ve}),ze.rules[Ze]=Ve}catch(tt){if(tt.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA")throw tt;let Ve=tt.message.slice(tt.message.startsWith('Key "rules":')?tt.message.indexOf(":",12)+1:tt.message.indexOf(":")+1).trim();tt.messageTemplate&&(Ve+=` You passed "${He}".`),Ye.push(ge({ruleId:Ze,message:`Inline configuration for rule "${Ze}" is invalid:
|
|
132
|
+
${Ve}
|
|
133
|
+
`,loc:Be,language:J.language}))}})}}const et=we.allowInlineConfig&&!we.warnInlineConfig?$(Pe,xe=>J.getRuleDefinition(xe),J.language):{problems:[],disableDirectives:[]},pe=Object.assign({},J.rules,ze.rules);let se;Pe.finalize?.();try{se=nt(Pe,pe,xe=>J.getRuleDefinition(xe),void 0,J.language,te,fe,we.filename,!1,we.disableFixes,_.cwd,Ie.physicalFilename,we.ruleFilter,we.stats,_)}catch(xe){if(xe.message+=`
|
|
134
|
+
Occurred while linting ${we.filename}`,P("An error occurred while traversing"),P("Filename:",we.filename),xe.currentNode){const{line:_e}=Pe.getLoc(xe.currentNode).start;P("Line:",_e),xe.message+=`:${_e}`}throw P("Parser Options:",te.parserOptions),P("Settings:",fe),xe.ruleId&&(xe.message+=`
|
|
135
|
+
Rule: "${xe.ruleId}"`),xe}return f({language:J.language,sourceCode:Pe,directives:et.disableDirectives,disableFixes:we.disableFixes,problems:se.concat(et.problems).concat(Ye).sort((xe,_e)=>xe.line-_e.line||xe.column-_e.column),reportUnusedDisableDirectives:we.reportUnusedDisableDirectives,ruleFilter:we.ruleFilter,configuredRules:pe})}_verifyWithFlatConfigArrayAndWithoutProcessors(le,Ee,Ie){const _=$e.get(this),J=U(Ie.filename||"<input>");let fe;typeof le=="string"?(_.lastSourceCode=null,fe=le):(_.lastSourceCode=le,fe=le.text);const te=new H(J,fe,{physicalPath:Ie.physicalFilename});return this.#t(te,Ee,Ie)}_verifyWithConfigArray(le,Ee,Ie){P("With ConfigArray: %s",Ie.filename),$e.get(this).lastConfigArray=Ee;const _=Ee.extractConfig(Ie.filename),J=_.processor&&Ee.pluginProcessors.get(_.processor);if(J){P("Apply the processor: %o",_.processor);const{preprocess:fe,postprocess:te,supportsAutofix:we}=J,Pe=Ie.disableFixes||!we;return this._verifyWithProcessor(le,_,{...Ie,disableFixes:Pe,postprocess:te,preprocess:fe},Ee)}return this._verifyWithoutProcessors(le,_,Ie)}_verifyWithFlatConfigArray(le,Ee,Ie,_=!1){P("With flat config: %s",Ie.filename);const J=Ie.filename||"__placeholder__.js";$e.get(this).lastConfigArray=Ee;const fe=Ee.getConfig(J);if(!fe)return[{ruleId:null,severity:1,message:`No matching configuration found for ${J}.`,line:0,column:0,nodeType:null}];if(fe.processor){P("Apply the processor: %o",fe.processor);const{preprocess:te,postprocess:we,supportsAutofix:Pe}=fe.processor,ze=Ie.disableFixes||!Pe;return this._verifyWithFlatConfigArrayAndProcessor(le,fe,{...Ie,filename:J,disableFixes:ze,postprocess:we,preprocess:te},Ee)}return _&&(Ie.preprocess||Ie.postprocess)?this._verifyWithFlatConfigArrayAndProcessor(le,fe,Ie):this._verifyWithFlatConfigArrayAndWithoutProcessors(le,fe,Ie)}_verifyWithProcessor(le,Ee,Ie,_){const J=$e.get(this),fe=Ie.filename||"<input>",te=U(fe),we=Ie.physicalFilename||te,Pe=ke(le),ze=new H(te,Pe,{physicalPath:we}),Ye=Ie.preprocess||(Oe=>[Oe]),et=Ie.postprocess||(Oe=>Oe.flat()),pe=new De,se=pe.preprocessSync(ze,{processor:{preprocess:Ye,postprocess:et}});if(!se.ok)return se.errors;const xe=Ie.filterCodeBlock||(Oe=>Oe.endsWith(".js")),_e=a.extname(fe),{files:Be}=se,Ze=Be.map(Oe=>(P("A code block was found: %o",Oe.path??"(unnamed)"),typeof Oe=="string"?this._verifyWithoutProcessors(Oe,Ee,Ie):xe(Oe.path,Oe.body)?_&&(Pe!==Oe.rawBody||a.extname(Oe.path)!==_e)?(P("Resolving configuration again because the file content or extension was changed."),this._verifyWithConfigArray(Oe.rawBody,_,{...Ie,filename:Oe.path,physicalFilename:Oe.physicalPath})):(J.lastSourceCode=null,this.#e(Oe,Ee,{...Ie,filename:Oe.path,physicalFilename:Oe.physicalPath})):(P("This code block was skipped."),[])));return pe.postprocessSync(ze,Ze,{processor:{preprocess:Ye,postprocess:et}})}_distinguishSuppressedMessages(le){const Ee=[],Ie=[],_=$e.get(this);for(const J of le)J.suppressions?Ie.push(J):Ee.push(J);return _.lastSuppressedMessages=Ie,Ee}getSourceCode(){return $e.get(this).lastSourceCode}getTimes(){return $e.get(this).times??{passes:[]}}getFixPassCount(){return $e.get(this).fixPasses??0}getSuppressedMessages(){return $e.get(this).lastSuppressedMessages}defineRule(le,Ee){ce(this),$e.get(this).ruleMap.define(le,Ee)}defineRules(le){ce(this),Object.getOwnPropertyNames(le).forEach(Ee=>{this.defineRule(Ee,le[Ee])})}getRules(){ce(this);const{lastConfigArray:le,ruleMap:Ee}=$e.get(this);return new Map(function*(){yield*Ee,le&&(yield*le.pluginRules)}())}defineParser(le,Ee){ce(this),$e.get(this).parserMap.set(le,Ee)}verifyAndFix(le,Ee,Ie){let _,J,fe=!1,te=0,we=le,Pe,ze;const Ye=Ie&&Ie.filename||`${le.slice(0,10)}...`,et=Ie&&typeof Ie.fix<"u"?Ie.fix:!0,pe=Ie?.stats,se=$e.get(this);pe&&(delete se.times,se.fixPasses=0);do{te++;let xe;pe&&(xe=w()),P(`Linting code for ${Ye} (pass ${te})`),_=this.verify(we,Ee,Ie),P(`Generating fixed text for ${Ye} (pass ${te})`);let _e;if(pe&&(_e=w()),J=g.applyFixes(we,_,et),pe)if(J.fixed){const Be=C(_e);Je(Be,{type:"fix"},se),se.fixPasses++}else Je(0,{type:"fix"},se);if(_.length===1&&_[0].fatal)break;if(fe=fe||J.fixed,Pe=ze,ze=we,we=J.output,pe){xe=C(xe);const Be=se.times.passes.length-1;se.times.passes[Be].total=xe}if(te>1&&we.length===Pe.length&&we===Pe){P(`Circular fixes detected after pass ${te}. Exiting fix loop.`),se.warningService.emitCircularFixesWarning(Ie?.filename??"text");break}}while(J.fixed&&te<N);if(J.fixed){let xe;pe&&(xe=w()),J.messages=this.verify(we,Ee,Ie),pe&&(Je(0,{type:"fix"},se),se.times.passes.at(-1).total=C(xe))}return J.fixed=fe,J.output=we,J}}return Sp={Linter:be,getLinterInternalSlots(ee){return $e.get(ee)}},Sp}function hP(){return mP().Linter}var dP=hP();function gP(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var yP={amd:{define:!1,require:!1},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},atomtest:{advanceClock:!1,atom:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},browser:JSON.parse('{"AbortController":false,"AbortSignal":false,"AbsoluteOrientationSensor":false,"AbstractRange":false,"Accelerometer":false,"addEventListener":false,"ai":false,"AI":false,"AICreateMonitor":false,"AITextSession":false,"alert":false,"AnalyserNode":false,"Animation":false,"AnimationEffect":false,"AnimationEvent":false,"AnimationPlaybackEvent":false,"AnimationTimeline":false,"AsyncDisposableStack":false,"atob":false,"Attr":false,"Audio":false,"AudioBuffer":false,"AudioBufferSourceNode":false,"AudioContext":false,"AudioData":false,"AudioDecoder":false,"AudioDestinationNode":false,"AudioEncoder":false,"AudioListener":false,"AudioNode":false,"AudioParam":false,"AudioParamMap":false,"AudioProcessingEvent":false,"AudioScheduledSourceNode":false,"AudioSinkInfo":false,"AudioWorklet":false,"AudioWorkletGlobalScope":false,"AudioWorkletNode":false,"AudioWorkletProcessor":false,"AuthenticatorAssertionResponse":false,"AuthenticatorAttestationResponse":false,"AuthenticatorResponse":false,"BackgroundFetchManager":false,"BackgroundFetchRecord":false,"BackgroundFetchRegistration":false,"BarcodeDetector":false,"BarProp":false,"BaseAudioContext":false,"BatteryManager":false,"BeforeUnloadEvent":false,"BiquadFilterNode":false,"Blob":false,"BlobEvent":false,"Bluetooth":false,"BluetoothCharacteristicProperties":false,"BluetoothDevice":false,"BluetoothRemoteGATTCharacteristic":false,"BluetoothRemoteGATTDescriptor":false,"BluetoothRemoteGATTServer":false,"BluetoothRemoteGATTService":false,"BluetoothUUID":false,"blur":false,"BroadcastChannel":false,"BrowserCaptureMediaStreamTrack":false,"btoa":false,"ByteLengthQueuingStrategy":false,"Cache":false,"caches":false,"CacheStorage":false,"cancelAnimationFrame":false,"cancelIdleCallback":false,"CanvasCaptureMediaStream":false,"CanvasCaptureMediaStreamTrack":false,"CanvasGradient":false,"CanvasPattern":false,"CanvasRenderingContext2D":false,"CaptureController":false,"CaretPosition":false,"CDATASection":false,"ChannelMergerNode":false,"ChannelSplitterNode":false,"ChapterInformation":false,"CharacterBoundsUpdateEvent":false,"CharacterData":false,"clearInterval":false,"clearTimeout":false,"clientInformation":false,"Clipboard":false,"ClipboardChangeEvent":false,"ClipboardEvent":false,"ClipboardItem":false,"close":false,"closed":false,"CloseEvent":false,"CloseWatcher":false,"CommandEvent":false,"Comment":false,"CompositionEvent":false,"CompressionStream":false,"confirm":false,"console":false,"ConstantSourceNode":false,"ContentVisibilityAutoStateChangeEvent":false,"ConvolverNode":false,"CookieChangeEvent":false,"CookieDeprecationLabel":false,"cookieStore":false,"CookieStore":false,"CookieStoreManager":false,"CountQueuingStrategy":false,"createImageBitmap":false,"CreateMonitor":false,"Credential":false,"credentialless":false,"CredentialsContainer":false,"CropTarget":false,"crossOriginIsolated":false,"crypto":false,"Crypto":false,"CryptoKey":false,"CSPViolationReportBody":false,"CSS":false,"CSSAnimation":false,"CSSConditionRule":false,"CSSContainerRule":false,"CSSCounterStyleRule":false,"CSSFontFaceRule":false,"CSSFontFeatureValuesRule":false,"CSSFontPaletteValuesRule":false,"CSSGroupingRule":false,"CSSImageValue":false,"CSSImportRule":false,"CSSKeyframeRule":false,"CSSKeyframesRule":false,"CSSKeywordValue":false,"CSSLayerBlockRule":false,"CSSLayerStatementRule":false,"CSSMarginRule":false,"CSSMathClamp":false,"CSSMathInvert":false,"CSSMathMax":false,"CSSMathMin":false,"CSSMathNegate":false,"CSSMathProduct":false,"CSSMathSum":false,"CSSMathValue":false,"CSSMatrixComponent":false,"CSSMediaRule":false,"CSSNamespaceRule":false,"CSSNestedDeclarations":false,"CSSNumericArray":false,"CSSNumericValue":false,"CSSPageDescriptors":false,"CSSPageRule":false,"CSSPerspective":false,"CSSPositionTryDescriptors":false,"CSSPositionTryRule":false,"CSSPositionValue":false,"CSSPropertyRule":false,"CSSRotate":false,"CSSRule":false,"CSSRuleList":false,"CSSScale":false,"CSSScopeRule":false,"CSSSkew":false,"CSSSkewX":false,"CSSSkewY":false,"CSSStartingStyleRule":false,"CSSStyleDeclaration":false,"CSSStyleRule":false,"CSSStyleSheet":false,"CSSStyleValue":false,"CSSSupportsRule":false,"CSSTransformComponent":false,"CSSTransformValue":false,"CSSTransition":false,"CSSTranslate":false,"CSSUnitValue":false,"CSSUnparsedValue":false,"CSSVariableReferenceValue":false,"CSSViewTransitionRule":false,"currentFrame":false,"currentTime":false,"CustomElementRegistry":false,"customElements":false,"CustomEvent":false,"CustomStateSet":false,"DataTransfer":false,"DataTransferItem":false,"DataTransferItemList":false,"DecompressionStream":false,"DelayNode":false,"DelegatedInkTrailPresenter":false,"DeviceMotionEvent":false,"DeviceMotionEventAcceleration":false,"DeviceMotionEventRotationRate":false,"DeviceOrientationEvent":false,"devicePixelRatio":false,"DevicePosture":false,"dispatchEvent":false,"DisposableStack":false,"document":false,"Document":false,"DocumentFragment":false,"documentPictureInPicture":false,"DocumentPictureInPicture":false,"DocumentPictureInPictureEvent":false,"DocumentTimeline":false,"DocumentType":false,"DOMError":false,"DOMException":false,"DOMImplementation":false,"DOMMatrix":false,"DOMMatrixReadOnly":false,"DOMParser":false,"DOMPoint":false,"DOMPointReadOnly":false,"DOMQuad":false,"DOMRect":false,"DOMRectList":false,"DOMRectReadOnly":false,"DOMStringList":false,"DOMStringMap":false,"DOMTokenList":false,"DragEvent":false,"DynamicsCompressorNode":false,"EditContext":false,"Element":false,"ElementInternals":false,"EncodedAudioChunk":false,"EncodedVideoChunk":false,"ErrorEvent":false,"event":false,"Event":false,"EventCounts":false,"EventSource":false,"EventTarget":false,"external":false,"External":false,"EyeDropper":false,"FeaturePolicy":false,"FederatedCredential":false,"fence":false,"Fence":false,"FencedFrameConfig":false,"fetch":false,"fetchLater":false,"FetchLaterResult":false,"File":false,"FileList":false,"FileReader":false,"FileSystem":false,"FileSystemDirectoryEntry":false,"FileSystemDirectoryHandle":false,"FileSystemDirectoryReader":false,"FileSystemEntry":false,"FileSystemFileEntry":false,"FileSystemFileHandle":false,"FileSystemHandle":false,"FileSystemObserver":false,"FileSystemWritableFileStream":false,"find":false,"focus":false,"FocusEvent":false,"FontData":false,"FontFace":false,"FontFaceSet":false,"FontFaceSetLoadEvent":false,"FormData":false,"FormDataEvent":false,"FragmentDirective":false,"frameElement":false,"frames":false,"GainNode":false,"Gamepad":false,"GamepadAxisMoveEvent":false,"GamepadButton":false,"GamepadButtonEvent":false,"GamepadEvent":false,"GamepadHapticActuator":false,"GamepadPose":false,"Geolocation":false,"GeolocationCoordinates":false,"GeolocationPosition":false,"GeolocationPositionError":false,"getComputedStyle":false,"getScreenDetails":false,"getSelection":false,"GPU":false,"GPUAdapter":false,"GPUAdapterInfo":false,"GPUBindGroup":false,"GPUBindGroupLayout":false,"GPUBuffer":false,"GPUBufferUsage":false,"GPUCanvasContext":false,"GPUColorWrite":false,"GPUCommandBuffer":false,"GPUCommandEncoder":false,"GPUCompilationInfo":false,"GPUCompilationMessage":false,"GPUComputePassEncoder":false,"GPUComputePipeline":false,"GPUDevice":false,"GPUDeviceLostInfo":false,"GPUError":false,"GPUExternalTexture":false,"GPUInternalError":false,"GPUMapMode":false,"GPUOutOfMemoryError":false,"GPUPipelineError":false,"GPUPipelineLayout":false,"GPUQuerySet":false,"GPUQueue":false,"GPURenderBundle":false,"GPURenderBundleEncoder":false,"GPURenderPassEncoder":false,"GPURenderPipeline":false,"GPUSampler":false,"GPUShaderModule":false,"GPUShaderStage":false,"GPUSupportedFeatures":false,"GPUSupportedLimits":false,"GPUTexture":false,"GPUTextureUsage":false,"GPUTextureView":false,"GPUUncapturedErrorEvent":false,"GPUValidationError":false,"GravitySensor":false,"Gyroscope":false,"HashChangeEvent":false,"Headers":false,"HID":false,"HIDConnectionEvent":false,"HIDDevice":false,"HIDInputReportEvent":false,"Highlight":false,"HighlightRegistry":false,"history":false,"History":false,"HTMLAllCollection":false,"HTMLAnchorElement":false,"HTMLAreaElement":false,"HTMLAudioElement":false,"HTMLBaseElement":false,"HTMLBodyElement":false,"HTMLBRElement":false,"HTMLButtonElement":false,"HTMLCanvasElement":false,"HTMLCollection":false,"HTMLDataElement":false,"HTMLDataListElement":false,"HTMLDetailsElement":false,"HTMLDialogElement":false,"HTMLDirectoryElement":false,"HTMLDivElement":false,"HTMLDListElement":false,"HTMLDocument":false,"HTMLElement":false,"HTMLEmbedElement":false,"HTMLFencedFrameElement":false,"HTMLFieldSetElement":false,"HTMLFontElement":false,"HTMLFormControlsCollection":false,"HTMLFormElement":false,"HTMLFrameElement":false,"HTMLFrameSetElement":false,"HTMLHeadElement":false,"HTMLHeadingElement":false,"HTMLHRElement":false,"HTMLHtmlElement":false,"HTMLIFrameElement":false,"HTMLImageElement":false,"HTMLInputElement":false,"HTMLLabelElement":false,"HTMLLegendElement":false,"HTMLLIElement":false,"HTMLLinkElement":false,"HTMLMapElement":false,"HTMLMarqueeElement":false,"HTMLMediaElement":false,"HTMLMenuElement":false,"HTMLMetaElement":false,"HTMLMeterElement":false,"HTMLModElement":false,"HTMLObjectElement":false,"HTMLOListElement":false,"HTMLOptGroupElement":false,"HTMLOptionElement":false,"HTMLOptionsCollection":false,"HTMLOutputElement":false,"HTMLParagraphElement":false,"HTMLParamElement":false,"HTMLPictureElement":false,"HTMLPreElement":false,"HTMLProgressElement":false,"HTMLQuoteElement":false,"HTMLScriptElement":false,"HTMLSelectedContentElement":false,"HTMLSelectElement":false,"HTMLSlotElement":false,"HTMLSourceElement":false,"HTMLSpanElement":false,"HTMLStyleElement":false,"HTMLTableCaptionElement":false,"HTMLTableCellElement":false,"HTMLTableColElement":false,"HTMLTableElement":false,"HTMLTableRowElement":false,"HTMLTableSectionElement":false,"HTMLTemplateElement":false,"HTMLTextAreaElement":false,"HTMLTimeElement":false,"HTMLTitleElement":false,"HTMLTrackElement":false,"HTMLUListElement":false,"HTMLUnknownElement":false,"HTMLVideoElement":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"IdentityCredential":false,"IdentityCredentialError":false,"IdentityProvider":false,"IdleDeadline":false,"IdleDetector":false,"IIRFilterNode":false,"Image":false,"ImageBitmap":false,"ImageBitmapRenderingContext":false,"ImageCapture":false,"ImageData":false,"ImageDecoder":false,"ImageTrack":false,"ImageTrackList":false,"indexedDB":false,"Ink":false,"innerHeight":false,"innerWidth":false,"InputDeviceCapabilities":false,"InputDeviceInfo":false,"InputEvent":false,"IntegrityViolationReportBody":false,"IntersectionObserver":false,"IntersectionObserverEntry":false,"isSecureContext":false,"Keyboard":false,"KeyboardEvent":false,"KeyboardLayoutMap":false,"KeyframeEffect":false,"LanguageDetector":false,"LargestContentfulPaint":false,"LaunchParams":false,"launchQueue":false,"LaunchQueue":false,"LayoutShift":false,"LayoutShiftAttribution":false,"length":false,"LinearAccelerationSensor":false,"localStorage":false,"location":true,"Location":false,"locationbar":false,"Lock":false,"LockManager":false,"matchMedia":false,"MathMLElement":false,"MediaCapabilities":false,"MediaCapabilitiesInfo":false,"MediaDeviceInfo":false,"MediaDevices":false,"MediaElementAudioSourceNode":false,"MediaEncryptedEvent":false,"MediaError":false,"MediaKeyError":false,"MediaKeyMessageEvent":false,"MediaKeys":false,"MediaKeySession":false,"MediaKeyStatusMap":false,"MediaKeySystemAccess":false,"MediaList":false,"MediaMetadata":false,"MediaQueryList":false,"MediaQueryListEvent":false,"MediaRecorder":false,"MediaRecorderErrorEvent":false,"MediaSession":false,"MediaSource":false,"MediaSourceHandle":false,"MediaStream":false,"MediaStreamAudioDestinationNode":false,"MediaStreamAudioSourceNode":false,"MediaStreamEvent":false,"MediaStreamTrack":false,"MediaStreamTrackAudioSourceNode":false,"MediaStreamTrackAudioStats":false,"MediaStreamTrackEvent":false,"MediaStreamTrackGenerator":false,"MediaStreamTrackProcessor":false,"MediaStreamTrackVideoStats":false,"menubar":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"MIDIAccess":false,"MIDIConnectionEvent":false,"MIDIInput":false,"MIDIInputMap":false,"MIDIMessageEvent":false,"MIDIOutput":false,"MIDIOutputMap":false,"MIDIPort":false,"MimeType":false,"MimeTypeArray":false,"model":false,"ModelGenericSession":false,"ModelManager":false,"MouseEvent":false,"moveBy":false,"moveTo":false,"MutationEvent":false,"MutationObserver":false,"MutationRecord":false,"name":false,"NamedNodeMap":false,"NavigateEvent":false,"navigation":false,"Navigation":false,"NavigationActivation":false,"NavigationCurrentEntryChangeEvent":false,"NavigationDestination":false,"NavigationHistoryEntry":false,"NavigationPreloadManager":false,"NavigationTransition":false,"navigator":false,"Navigator":false,"NavigatorLogin":false,"NavigatorManagedData":false,"NavigatorUAData":false,"NetworkInformation":false,"Node":false,"NodeFilter":false,"NodeIterator":false,"NodeList":false,"Notification":false,"NotifyPaintEvent":false,"NotRestoredReasonDetails":false,"NotRestoredReasons":false,"Observable":false,"OfflineAudioCompletionEvent":false,"OfflineAudioContext":false,"offscreenBuffering":false,"OffscreenCanvas":false,"OffscreenCanvasRenderingContext2D":false,"onabort":true,"onafterprint":true,"onanimationcancel":true,"onanimationend":true,"onanimationiteration":true,"onanimationstart":true,"onappinstalled":true,"onauxclick":true,"onbeforeinput":true,"onbeforeinstallprompt":true,"onbeforematch":true,"onbeforeprint":true,"onbeforetoggle":true,"onbeforeunload":true,"onbeforexrselect":true,"onblur":true,"oncancel":true,"oncanplay":true,"oncanplaythrough":true,"onchange":true,"onclick":true,"onclose":true,"oncommand":true,"oncontentvisibilityautostatechange":true,"oncontextlost":true,"oncontextmenu":true,"oncontextrestored":true,"oncopy":true,"oncuechange":true,"oncut":true,"ondblclick":true,"ondevicemotion":true,"ondeviceorientation":true,"ondeviceorientationabsolute":true,"ondrag":true,"ondragend":true,"ondragenter":true,"ondragleave":true,"ondragover":true,"ondragstart":true,"ondrop":true,"ondurationchange":true,"onemptied":true,"onended":true,"onerror":true,"onfocus":true,"onformdata":true,"ongamepadconnected":true,"ongamepaddisconnected":true,"ongotpointercapture":true,"onhashchange":true,"oninput":true,"oninvalid":true,"onkeydown":true,"onkeypress":true,"onkeyup":true,"onlanguagechange":true,"onload":true,"onloadeddata":true,"onloadedmetadata":true,"onloadstart":true,"onlostpointercapture":true,"onmessage":true,"onmessageerror":true,"onmousedown":true,"onmouseenter":true,"onmouseleave":true,"onmousemove":true,"onmouseout":true,"onmouseover":true,"onmouseup":true,"onmousewheel":true,"onoffline":true,"ononline":true,"onpagehide":true,"onpagereveal":true,"onpageshow":true,"onpageswap":true,"onpaste":true,"onpause":true,"onplay":true,"onplaying":true,"onpointercancel":true,"onpointerdown":true,"onpointerenter":true,"onpointerleave":true,"onpointermove":true,"onpointerout":true,"onpointerover":true,"onpointerrawupdate":true,"onpointerup":true,"onpopstate":true,"onprogress":true,"onratechange":true,"onrejectionhandled":true,"onreset":true,"onresize":true,"onscroll":true,"onscrollend":true,"onscrollsnapchange":true,"onscrollsnapchanging":true,"onsearch":true,"onsecuritypolicyviolation":true,"onseeked":true,"onseeking":true,"onselect":true,"onselectionchange":true,"onselectstart":true,"onslotchange":true,"onstalled":true,"onstorage":true,"onsubmit":true,"onsuspend":true,"ontimeupdate":true,"ontoggle":true,"ontransitioncancel":true,"ontransitionend":true,"ontransitionrun":true,"ontransitionstart":true,"onunhandledrejection":true,"onunload":true,"onvolumechange":true,"onwaiting":true,"onwheel":true,"open":false,"opener":false,"Option":false,"OrientationSensor":false,"origin":false,"originAgentCluster":false,"OscillatorNode":false,"OTPCredential":false,"outerHeight":false,"outerWidth":false,"OverconstrainedError":false,"PageRevealEvent":false,"PageSwapEvent":false,"PageTransitionEvent":false,"pageXOffset":false,"pageYOffset":false,"PannerNode":false,"parent":false,"PasswordCredential":false,"Path2D":false,"PaymentAddress":false,"PaymentManager":false,"PaymentMethodChangeEvent":false,"PaymentRequest":false,"PaymentRequestUpdateEvent":false,"PaymentResponse":false,"performance":false,"Performance":false,"PerformanceElementTiming":false,"PerformanceEntry":false,"PerformanceEventTiming":false,"PerformanceLongAnimationFrameTiming":false,"PerformanceLongTaskTiming":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceNavigationTiming":false,"PerformanceObserver":false,"PerformanceObserverEntryList":false,"PerformancePaintTiming":false,"PerformanceResourceTiming":false,"PerformanceScriptTiming":false,"PerformanceServerTiming":false,"PerformanceTiming":false,"PeriodicSyncManager":false,"PeriodicWave":false,"Permissions":false,"PermissionStatus":false,"PERSISTENT":false,"personalbar":false,"PictureInPictureEvent":false,"PictureInPictureWindow":false,"Plugin":false,"PluginArray":false,"PointerEvent":false,"PopStateEvent":false,"postMessage":false,"Presentation":false,"PresentationAvailability":false,"PresentationConnection":false,"PresentationConnectionAvailableEvent":false,"PresentationConnectionCloseEvent":false,"PresentationConnectionList":false,"PresentationReceiver":false,"PresentationRequest":false,"PressureObserver":false,"PressureRecord":false,"print":false,"ProcessingInstruction":false,"Profiler":false,"ProgressEvent":false,"PromiseRejectionEvent":false,"prompt":false,"ProtectedAudience":false,"PublicKeyCredential":false,"PushManager":false,"PushSubscription":false,"PushSubscriptionOptions":false,"queryLocalFonts":false,"queueMicrotask":false,"QuotaExceededError":false,"RadioNodeList":false,"Range":false,"ReadableByteStreamController":false,"ReadableStream":false,"ReadableStreamBYOBReader":false,"ReadableStreamBYOBRequest":false,"ReadableStreamDefaultController":false,"ReadableStreamDefaultReader":false,"registerProcessor":false,"RelativeOrientationSensor":false,"RemotePlayback":false,"removeEventListener":false,"ReportBody":false,"reportError":false,"ReportingObserver":false,"Request":false,"requestAnimationFrame":false,"requestIdleCallback":false,"resizeBy":false,"ResizeObserver":false,"ResizeObserverEntry":false,"ResizeObserverSize":false,"resizeTo":false,"Response":false,"RestrictionTarget":false,"RTCCertificate":false,"RTCDataChannel":false,"RTCDataChannelEvent":false,"RTCDtlsTransport":false,"RTCDTMFSender":false,"RTCDTMFToneChangeEvent":false,"RTCEncodedAudioFrame":false,"RTCEncodedVideoFrame":false,"RTCError":false,"RTCErrorEvent":false,"RTCIceCandidate":false,"RTCIceTransport":false,"RTCPeerConnection":false,"RTCPeerConnectionIceErrorEvent":false,"RTCPeerConnectionIceEvent":false,"RTCRtpReceiver":false,"RTCRtpScriptTransform":false,"RTCRtpSender":false,"RTCRtpTransceiver":false,"RTCSctpTransport":false,"RTCSessionDescription":false,"RTCStatsReport":false,"RTCTrackEvent":false,"sampleRate":false,"scheduler":false,"Scheduler":false,"Scheduling":false,"screen":false,"Screen":false,"ScreenDetailed":false,"ScreenDetails":false,"screenLeft":false,"ScreenOrientation":false,"screenTop":false,"screenX":false,"screenY":false,"ScriptProcessorNode":false,"scroll":false,"scrollbars":false,"scrollBy":false,"ScrollTimeline":false,"scrollTo":false,"scrollX":false,"scrollY":false,"SecurityPolicyViolationEvent":false,"Selection":false,"self":false,"Sensor":false,"SensorErrorEvent":false,"Serial":false,"SerialPort":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerRegistration":false,"sessionStorage":false,"setInterval":false,"setTimeout":false,"ShadowRoot":false,"sharedStorage":false,"SharedStorage":false,"SharedStorageAppendMethod":false,"SharedStorageClearMethod":false,"SharedStorageDeleteMethod":false,"SharedStorageModifierMethod":false,"SharedStorageSetMethod":false,"SharedStorageWorklet":false,"SharedWorker":false,"showDirectoryPicker":false,"showOpenFilePicker":false,"showSaveFilePicker":false,"SnapEvent":false,"SourceBuffer":false,"SourceBufferList":false,"speechSynthesis":false,"SpeechSynthesis":false,"SpeechSynthesisErrorEvent":false,"SpeechSynthesisEvent":false,"SpeechSynthesisUtterance":false,"SpeechSynthesisVoice":false,"StaticRange":false,"status":false,"statusbar":false,"StereoPannerNode":false,"stop":false,"Storage":false,"StorageBucket":false,"StorageBucketManager":false,"StorageEvent":false,"StorageManager":false,"structuredClone":false,"styleMedia":false,"StylePropertyMap":false,"StylePropertyMapReadOnly":false,"StyleSheet":false,"StyleSheetList":false,"SubmitEvent":false,"Subscriber":false,"SubtleCrypto":false,"Summarizer":false,"SuppressedError":false,"SVGAElement":false,"SVGAngle":false,"SVGAnimatedAngle":false,"SVGAnimatedBoolean":false,"SVGAnimatedEnumeration":false,"SVGAnimatedInteger":false,"SVGAnimatedLength":false,"SVGAnimatedLengthList":false,"SVGAnimatedNumber":false,"SVGAnimatedNumberList":false,"SVGAnimatedPreserveAspectRatio":false,"SVGAnimatedRect":false,"SVGAnimatedString":false,"SVGAnimatedTransformList":false,"SVGAnimateElement":false,"SVGAnimateMotionElement":false,"SVGAnimateTransformElement":false,"SVGAnimationElement":false,"SVGCircleElement":false,"SVGClipPathElement":false,"SVGComponentTransferFunctionElement":false,"SVGDefsElement":false,"SVGDescElement":false,"SVGElement":false,"SVGEllipseElement":false,"SVGFEBlendElement":false,"SVGFEColorMatrixElement":false,"SVGFEComponentTransferElement":false,"SVGFECompositeElement":false,"SVGFEConvolveMatrixElement":false,"SVGFEDiffuseLightingElement":false,"SVGFEDisplacementMapElement":false,"SVGFEDistantLightElement":false,"SVGFEDropShadowElement":false,"SVGFEFloodElement":false,"SVGFEFuncAElement":false,"SVGFEFuncBElement":false,"SVGFEFuncGElement":false,"SVGFEFuncRElement":false,"SVGFEGaussianBlurElement":false,"SVGFEImageElement":false,"SVGFEMergeElement":false,"SVGFEMergeNodeElement":false,"SVGFEMorphologyElement":false,"SVGFEOffsetElement":false,"SVGFEPointLightElement":false,"SVGFESpecularLightingElement":false,"SVGFESpotLightElement":false,"SVGFETileElement":false,"SVGFETurbulenceElement":false,"SVGFilterElement":false,"SVGForeignObjectElement":false,"SVGGElement":false,"SVGGeometryElement":false,"SVGGradientElement":false,"SVGGraphicsElement":false,"SVGImageElement":false,"SVGLength":false,"SVGLengthList":false,"SVGLinearGradientElement":false,"SVGLineElement":false,"SVGMarkerElement":false,"SVGMaskElement":false,"SVGMatrix":false,"SVGMetadataElement":false,"SVGMPathElement":false,"SVGNumber":false,"SVGNumberList":false,"SVGPathElement":false,"SVGPatternElement":false,"SVGPoint":false,"SVGPointList":false,"SVGPolygonElement":false,"SVGPolylineElement":false,"SVGPreserveAspectRatio":false,"SVGRadialGradientElement":false,"SVGRect":false,"SVGRectElement":false,"SVGScriptElement":false,"SVGSetElement":false,"SVGStopElement":false,"SVGStringList":false,"SVGStyleElement":false,"SVGSVGElement":false,"SVGSwitchElement":false,"SVGSymbolElement":false,"SVGTextContentElement":false,"SVGTextElement":false,"SVGTextPathElement":false,"SVGTextPositioningElement":false,"SVGTitleElement":false,"SVGTransform":false,"SVGTransformList":false,"SVGTSpanElement":false,"SVGUnitTypes":false,"SVGUseElement":false,"SVGViewElement":false,"SyncManager":false,"TaskAttributionTiming":false,"TaskController":false,"TaskPriorityChangeEvent":false,"TaskSignal":false,"TEMPORARY":false,"Text":false,"TextDecoder":false,"TextDecoderStream":false,"TextEncoder":false,"TextEncoderStream":false,"TextEvent":false,"TextFormat":false,"TextFormatUpdateEvent":false,"TextMetrics":false,"TextTrack":false,"TextTrackCue":false,"TextTrackCueList":false,"TextTrackList":false,"TextUpdateEvent":false,"TimeEvent":false,"TimeRanges":false,"ToggleEvent":false,"toolbar":false,"top":false,"Touch":false,"TouchEvent":false,"TouchList":false,"TrackEvent":false,"TransformStream":false,"TransformStreamDefaultController":false,"TransitionEvent":false,"Translator":false,"TreeWalker":false,"TrustedHTML":false,"TrustedScript":false,"TrustedScriptURL":false,"TrustedTypePolicy":false,"TrustedTypePolicyFactory":false,"trustedTypes":false,"UIEvent":false,"URL":false,"URLPattern":false,"URLSearchParams":false,"USB":false,"USBAlternateInterface":false,"USBConfiguration":false,"USBConnectionEvent":false,"USBDevice":false,"USBEndpoint":false,"USBInterface":false,"USBInTransferResult":false,"USBIsochronousInTransferPacket":false,"USBIsochronousInTransferResult":false,"USBIsochronousOutTransferPacket":false,"USBIsochronousOutTransferResult":false,"USBOutTransferResult":false,"UserActivation":false,"ValidityState":false,"VideoColorSpace":false,"VideoDecoder":false,"VideoEncoder":false,"VideoFrame":false,"VideoPlaybackQuality":false,"viewport":false,"Viewport":false,"ViewTimeline":false,"ViewTransition":false,"ViewTransitionTypeSet":false,"VirtualKeyboard":false,"VirtualKeyboardGeometryChangeEvent":false,"VisibilityStateEntry":false,"visualViewport":false,"VisualViewport":false,"VTTCue":false,"VTTRegion":false,"WakeLock":false,"WakeLockSentinel":false,"WaveShaperNode":false,"WebAssembly":false,"WebGL2RenderingContext":false,"WebGLActiveInfo":false,"WebGLBuffer":false,"WebGLContextEvent":false,"WebGLFramebuffer":false,"WebGLObject":false,"WebGLProgram":false,"WebGLQuery":false,"WebGLRenderbuffer":false,"WebGLRenderingContext":false,"WebGLSampler":false,"WebGLShader":false,"WebGLShaderPrecisionFormat":false,"WebGLSync":false,"WebGLTexture":false,"WebGLTransformFeedback":false,"WebGLUniformLocation":false,"WebGLVertexArrayObject":false,"WebSocket":false,"WebSocketError":false,"WebSocketStream":false,"WebTransport":false,"WebTransportBidirectionalStream":false,"WebTransportDatagramDuplexStream":false,"WebTransportError":false,"WebTransportReceiveStream":false,"WebTransportSendStream":false,"WGSLLanguageFeatures":false,"WheelEvent":false,"when":false,"window":false,"Window":false,"WindowControlsOverlay":false,"WindowControlsOverlayGeometryChangeEvent":false,"Worker":false,"Worklet":false,"WorkletGlobalScope":false,"WritableStream":false,"WritableStreamDefaultController":false,"WritableStreamDefaultWriter":false,"XMLDocument":false,"XMLHttpRequest":false,"XMLHttpRequestEventTarget":false,"XMLHttpRequestUpload":false,"XMLSerializer":false,"XPathEvaluator":false,"XPathExpression":false,"XPathResult":false,"XRAnchor":false,"XRAnchorSet":false,"XRBoundedReferenceSpace":false,"XRCamera":false,"XRCPUDepthInformation":false,"XRDepthInformation":false,"XRDOMOverlayState":false,"XRFrame":false,"XRHand":false,"XRHitTestResult":false,"XRHitTestSource":false,"XRInputSource":false,"XRInputSourceArray":false,"XRInputSourceEvent":false,"XRInputSourcesChangeEvent":false,"XRJointPose":false,"XRJointSpace":false,"XRLayer":false,"XRLightEstimate":false,"XRLightProbe":false,"XRPose":false,"XRRay":false,"XRReferenceSpace":false,"XRReferenceSpaceEvent":false,"XRRenderState":false,"XRRigidTransform":false,"XRSession":false,"XRSessionEvent":false,"XRSpace":false,"XRSystem":false,"XRTransientInputHitTestResult":false,"XRTransientInputHitTestSource":false,"XRView":false,"XRViewerPose":false,"XRViewport":false,"XRWebGLBinding":false,"XRWebGLDepthInformation":false,"XRWebGLLayer":false,"XSLTProcessor":false}'),builtin:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float16Array:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,Iterator:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},chai:{assert:!0,expect:!0,should:!0},commonjs:{exports:!0,global:!1,module:!1,require:!1},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},devtools:{$:!1,$_:!1,$$:!1,$0:!1,$1:!1,$2:!1,$3:!1,$4:!1,$x:!1,chrome:!1,clear:!1,copy:!1,debug:!1,dir:!1,dirxml:!1,getEventListeners:!1,inspect:!1,keys:!1,monitor:!1,monitorEvents:!1,profile:!1,profileEnd:!1,queryObjects:!1,table:!1,undebug:!1,unmonitor:!1,unmonitorEvents:!1,values:!1},embertest:{andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findAll:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1,wait:!1},es2015:{Array:!1,ArrayBuffer:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2016:{Array:!1,ArrayBuffer:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2017:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2018:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2019:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2020:{Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2021:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es2022:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es2023:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es2024:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es2025:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float16Array:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,Iterator:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es2026:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float16Array:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,Iterator:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es3:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,Infinity:!1,isFinite:!1,isNaN:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1},es5:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,Infinity:!1,isFinite:!1,isNaN:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1},greasemonkey:{cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addElement:!1,GM_addStyle:!1,GM_addValueChangeListener:!1,GM_deleteValue:!1,GM_deleteValues:!1,GM_download:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getTab:!1,GM_getTabs:!1,GM_getValue:!1,GM_getValues:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_notification:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_removeValueChangeListener:!1,GM_saveTab:!1,GM_setClipboard:!1,GM_setValue:!1,GM_setValues:!1,GM_unregisterMenuCommand:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,expectAsync:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnAllFunctions:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fit:!1,it:!1,jest:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},jquery:{$:!1,jQuery:!1},meteor:{$:!1,Accounts:!1,AccountsClient:!1,AccountsCommon:!1,AccountsServer:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPRateLimiter:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},mocha:{after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},mongo:{_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},nashorn:{__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,java:!1,Java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},node:{__dirname:!1,__filename:!1,AbortController:!1,AbortSignal:!1,AsyncDisposableStack:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DisposableStack:!1,DOMException:!1,Event:!1,EventTarget:!1,exports:!0,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,module:!1,navigator:!1,Navigator:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,require:!1,Response:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,SuppressedError:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},nodeBuiltin:{AbortController:!1,AbortSignal:!1,AsyncDisposableStack:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DisposableStack:!1,DOMException:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,navigator:!1,Navigator:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,Response:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,SuppressedError:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},prototypejs:{$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},protractor:{$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},qunit:{asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},rhino:{defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},serviceworker:{AbortController:!1,AbortPaymentEvent:!1,AbortSignal:!1,addEventListener:!1,ai:!1,AI:!1,AICreateMonitor:!1,AsyncDisposableStack:!1,atob:!1,BackgroundFetchEvent:!1,BackgroundFetchManager:!1,BackgroundFetchRecord:!1,BackgroundFetchRegistration:!1,BackgroundFetchUpdateUIEvent:!1,BarcodeDetector:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,CanMakePaymentEvent:!1,CanvasGradient:!1,CanvasPattern:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,CloseEvent:!1,CompressionStream:!1,console:!1,cookieStore:!1,CookieStore:!1,CookieStoreManager:!1,CountQueuingStrategy:!1,createImageBitmap:!1,CreateMonitor:!1,CropTarget:!1,crossOriginIsolated:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSSSkewX:!1,CSSSkewY:!1,CustomEvent:!1,DecompressionStream:!1,dispatchEvent:!1,DisposableStack:!1,DOMException:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,ErrorEvent:!1,Event:!1,EventSource:!1,EventTarget:!1,ExtendableCookieChangeEvent:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,File:!1,FileList:!1,FileReader:!1,FileSystemDirectoryHandle:!1,FileSystemFileHandle:!1,FileSystemHandle:!1,FileSystemWritableFileStream:!1,FontFace:!1,fonts:!1,FormData:!1,GPU:!1,GPUAdapter:!1,GPUAdapterInfo:!1,GPUBindGroup:!1,GPUBindGroupLayout:!1,GPUBuffer:!1,GPUBufferUsage:!1,GPUCanvasContext:!1,GPUColorWrite:!1,GPUCommandBuffer:!1,GPUCommandEncoder:!1,GPUCompilationInfo:!1,GPUCompilationMessage:!1,GPUComputePassEncoder:!1,GPUComputePipeline:!1,GPUDevice:!1,GPUDeviceLostInfo:!1,GPUError:!1,GPUExternalTexture:!1,GPUInternalError:!1,GPUMapMode:!1,GPUOutOfMemoryError:!1,GPUPipelineError:!1,GPUPipelineLayout:!1,GPUQuerySet:!1,GPUQueue:!1,GPURenderBundle:!1,GPURenderBundleEncoder:!1,GPURenderPassEncoder:!1,GPURenderPipeline:!1,GPUSampler:!1,GPUShaderModule:!1,GPUShaderStage:!1,GPUSupportedFeatures:!1,GPUSupportedLimits:!1,GPUTexture:!1,GPUTextureUsage:!1,GPUTextureView:!1,GPUUncapturedErrorEvent:!1,GPUValidationError:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageData:!1,importScripts:!1,indexedDB:!1,InstallEvent:!1,isSecureContext:!1,LanguageDetector:!1,location:!1,Lock:!1,LockManager:!1,MediaCapabilities:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,NavigationPreloadManager:!1,navigator:!1,NavigatorUAData:!1,NetworkInformation:!1,Notification:!1,NotificationEvent:!1,Observable:!1,OffscreenCanvas:!1,OffscreenCanvasRenderingContext2D:!1,onabortpayment:!0,onactivate:!0,onbackgroundfetchabort:!0,onbackgroundfetchclick:!0,onbackgroundfetchfail:!0,onbackgroundfetchsuccess:!0,oncanmakepayment:!0,oncookiechange:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onpaymentrequest:!0,onperiodicsync:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,origin:!1,Path2D:!1,PaymentRequestEvent:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceServerTiming:!1,PeriodicSyncEvent:!1,PeriodicSyncManager:!1,Permissions:!1,PermissionStatus:!1,PromiseRejectionEvent:!1,PushEvent:!1,PushManager:!1,PushMessageData:!1,PushSubscription:!1,PushSubscriptionChangeEvent:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,QuotaExceededError:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,registration:!1,removeEventListener:!1,ReportBody:!1,reportError:!1,ReportingObserver:!1,Request:!1,Response:!1,RestrictionTarget:!1,scheduler:!1,Scheduler:!1,SecurityPolicyViolationEvent:!1,self:!1,serviceWorker:!1,ServiceWorker:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,StorageBucket:!1,StorageBucketManager:!1,StorageManager:!1,structuredClone:!1,Subscriber:!1,SubtleCrypto:!1,SuppressedError:!1,SyncEvent:!1,SyncManager:!1,TaskController:!1,TaskPriorityChangeEvent:!1,TaskSignal:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TextMetrics:!1,TransformStream:!1,TransformStreamDefaultController:!1,TrustedHTML:!1,TrustedScript:!1,TrustedScriptURL:!1,TrustedTypePolicy:!1,TrustedTypePolicyFactory:!1,trustedTypes:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,UserActivation:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLObject:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WebSocketError:!1,WebSocketStream:!1,WebTransport:!1,WebTransportBidirectionalStream:!1,WebTransportDatagramDuplexStream:!1,WebTransportError:!1,WGSLLanguageFeatures:!1,when:!1,WindowClient:!1,WorkerGlobalScope:!1,WorkerLocation:!1,WorkerNavigator:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},"shared-node-browser":{AbortController:!1,AbortSignal:!1,AsyncDisposableStack:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,clearInterval:!1,clearTimeout:!1,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DisposableStack:!1,DOMException:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,Headers:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,navigator:!1,Navigator:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,Response:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,SuppressedError:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},shelljs:{cat:!1,cd:!1,chmod:!1,cmd:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,errorCode:!1,exec:!1,exit:!1,find:!1,grep:!1,head:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,ShellString:!1,sort:!1,tail:!1,tempdir:!1,test:!1,touch:!1,uniq:!1,which:!1},vitest:{afterAll:!1,afterEach:!1,assert:!1,assertType:!1,beforeAll:!1,beforeEach:!1,chai:!1,describe:!1,expect:!1,expectTypeOf:!1,it:!1,onTestFailed:!1,onTestFinished:!1,suite:!1,test:!1,vi:!1,vitest:!1},webextensions:{browser:!1,chrome:!1,opr:!1},worker:{AbortController:!1,AbortSignal:!1,addEventListener:!1,ai:!1,AI:!1,AICreateMonitor:!1,AsyncDisposableStack:!1,atob:!1,AudioData:!1,AudioDecoder:!1,AudioEncoder:!1,BackgroundFetchManager:!1,BackgroundFetchRecord:!1,BackgroundFetchRegistration:!1,BarcodeDetector:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,CanvasGradient:!1,CanvasPattern:!1,clearInterval:!1,clearTimeout:!1,close:!1,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,createImageBitmap:!1,CreateMonitor:!1,CropTarget:!1,crossOriginIsolated:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSSSkewX:!1,CSSSkewY:!1,CustomEvent:!1,DecompressionStream:!1,DedicatedWorkerGlobalScope:!1,dispatchEvent:!1,DisposableStack:!1,DOMException:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,EncodedAudioChunk:!1,EncodedVideoChunk:!1,ErrorEvent:!1,Event:!1,EventSource:!1,EventTarget:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,FileReaderSync:!1,FileSystemDirectoryHandle:!1,FileSystemFileHandle:!1,FileSystemHandle:!1,FileSystemObserver:!1,FileSystemSyncAccessHandle:!1,FileSystemWritableFileStream:!1,FontFace:!1,fonts:!1,FormData:!1,GPU:!1,GPUAdapter:!1,GPUAdapterInfo:!1,GPUBindGroup:!1,GPUBindGroupLayout:!1,GPUBuffer:!1,GPUBufferUsage:!1,GPUCanvasContext:!1,GPUColorWrite:!1,GPUCommandBuffer:!1,GPUCommandEncoder:!1,GPUCompilationInfo:!1,GPUCompilationMessage:!1,GPUComputePassEncoder:!1,GPUComputePipeline:!1,GPUDevice:!1,GPUDeviceLostInfo:!1,GPUError:!1,GPUExternalTexture:!1,GPUInternalError:!1,GPUMapMode:!1,GPUOutOfMemoryError:!1,GPUPipelineError:!1,GPUPipelineLayout:!1,GPUQuerySet:!1,GPUQueue:!1,GPURenderBundle:!1,GPURenderBundleEncoder:!1,GPURenderPassEncoder:!1,GPURenderPipeline:!1,GPUSampler:!1,GPUShaderModule:!1,GPUShaderStage:!1,GPUSupportedFeatures:!1,GPUSupportedLimits:!1,GPUTexture:!1,GPUTextureUsage:!1,GPUTextureView:!1,GPUUncapturedErrorEvent:!1,GPUValidationError:!1,Headers:!1,HID:!1,HIDConnectionEvent:!1,HIDDevice:!1,HIDInputReportEvent:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDetector:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageData:!1,ImageDecoder:!1,ImageTrack:!1,ImageTrackList:!1,importScripts:!1,indexedDB:!1,isSecureContext:!1,LanguageDetector:!1,location:!1,Lock:!1,LockManager:!1,MediaCapabilities:!1,MediaSource:!1,MediaSourceHandle:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,name:!1,NavigationPreloadManager:!1,navigator:!1,NavigatorUAData:!1,NetworkInformation:!1,Notification:!1,Observable:!1,OffscreenCanvas:!1,OffscreenCanvasRenderingContext2D:!1,onerror:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onrejectionhandled:!0,onunhandledrejection:!0,origin:!1,Path2D:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceServerTiming:!1,PeriodicSyncManager:!1,Permissions:!1,PermissionStatus:!1,PERSISTENT:!1,postMessage:!1,PressureObserver:!1,PressureRecord:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,QuotaExceededError:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,removeEventListener:!1,ReportBody:!1,reportError:!1,ReportingObserver:!1,Request:!1,requestAnimationFrame:!1,Response:!1,RestrictionTarget:!1,RTCDataChannel:!1,RTCEncodedAudioFrame:!1,RTCEncodedVideoFrame:!1,scheduler:!1,Scheduler:!1,SecurityPolicyViolationEvent:!1,self:!1,Serial:!1,SerialPort:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,SourceBuffer:!1,SourceBufferList:!1,StorageBucket:!1,StorageBucketManager:!1,StorageManager:!1,structuredClone:!1,Subscriber:!1,SubtleCrypto:!1,SuppressedError:!1,SyncManager:!1,TaskController:!1,TaskPriorityChangeEvent:!1,TaskSignal:!1,TEMPORARY:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TextMetrics:!1,TransformStream:!1,TransformStreamDefaultController:!1,TrustedHTML:!1,TrustedScript:!1,TrustedScriptURL:!1,TrustedTypePolicy:!1,TrustedTypePolicyFactory:!1,trustedTypes:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,USB:!1,USBAlternateInterface:!1,USBConfiguration:!1,USBConnectionEvent:!1,USBDevice:!1,USBEndpoint:!1,USBInterface:!1,USBInTransferResult:!1,USBIsochronousInTransferPacket:!1,USBIsochronousInTransferResult:!1,USBIsochronousOutTransferPacket:!1,USBIsochronousOutTransferResult:!1,USBOutTransferResult:!1,UserActivation:!1,VideoColorSpace:!1,VideoDecoder:!1,VideoEncoder:!1,VideoFrame:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLObject:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,webkitRequestFileSystem:!1,webkitRequestFileSystemSync:!1,webkitResolveLocalFileSystemSyncURL:!1,webkitResolveLocalFileSystemURL:!1,WebSocket:!1,WebSocketError:!1,WebSocketStream:!1,WebTransport:!1,WebTransportBidirectionalStream:!1,WebTransportDatagramDuplexStream:!1,WebTransportError:!1,WGSLLanguageFeatures:!1,when:!1,Worker:!1,WorkerGlobalScope:!1,WorkerLocation:!1,WorkerNavigator:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1},wsh:{ActiveXObject:!1,CollectGarbage:!1,Debug:!1,Enumerator:!1,GetObject:!1,RuntimeObject:!1,ScriptEngine:!1,ScriptEngineBuildVersion:!1,ScriptEngineMajorVersion:!1,ScriptEngineMinorVersion:!1,VBArray:!1,WScript:!1,WSH:!1},yui:{YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1}},bp,m0;function vP(){return m0||(m0=1,bp=yP),bp}var EP=vP(),h0=gP(EP);const SP=new dP,bP={languageOptions:{globals:{...h0.browser,...h0.es2021},parserOptions:{ecmaVersion:2022,sourceType:"module",ecmaFeatures:{jsx:!0}}},rules:{"no-unused-vars":["warn",{argsIgnorePattern:"^_"}],"no-undef":"error",semi:"off"}};function d0(a,e,n){let o=0;for(let t=0;t<e-1;t++)o+=(a[t]?a[t].length:0)+1;return o+n-1}self.onmessage=a=>{const{code:e,requestId:n,fileName:o}=a.data;if(typeof e!="string"){self.postMessage({diagnostics:[],requestId:n,error:"Invalid code received"});return}if(!o){self.postMessage({diagnostics:[],requestId:n});return}const t=/\.js$/i.test(o),u=/\.jsx$/i.test(o);if(!t&&(!u||!0)){self.postMessage({diagnostics:[],requestId:n});return}try{const p=SP.verify(e,bP),c=e.split(`
|
|
136
|
+
`),r=p.map(m=>{const i=d0(c,m.line,m.column),f=m.endLine&&m.endColumn?d0(c,m.endLine,m.endColumn):i+(m.fix?.range[1]-m.fix?.range[0]||1);return{from:i,to:f,severity:m.severity===2?"error":m.severity===1?"warning":"info",message:m.message,source:m.ruleId?`eslint(${m.ruleId})`:"eslint"}});self.postMessage({diagnostics:r,requestId:n})}catch(p){console.error("Error linting in ESLint worker:",p),self.postMessage({error:p.message,diagnostics:[],requestId:n})}}})();
|