@sarj/eslint-plugin 19.0.0 → 19.0.1
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 +2 -0
- package/dist/effects.js +2 -0
- package/dist/jsdoc-js.js +66 -0
- package/dist/node-test.js +8 -0
- package/dist/playwright.js +5 -0
- package/dist/query.js +5 -0
- package/dist/react-correctness.js +124 -0
- package/dist/react-js.js +9 -0
- package/dist/regexp.js +38 -0
- package/dist/security.js +8 -0
- package/dist/testing-library.js +12 -0
- package/dist/unicorn-js.js +2230 -0
- package/package.json +46 -18
package/dist/jsdoc-js.js
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {createRequire as sarjCreateRequire} from "node:module";const require=sarjCreateRequire(import.meta.url);
|
|
2
|
+
var Pc=Object.create;var $n=Object.defineProperty;var Bc=Object.getOwnPropertyDescriptor;var Ic=Object.getOwnPropertyNames;var Nc=Object.getPrototypeOf,Rc=Object.prototype.hasOwnProperty;var rn=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(i){throw t=0,i}},Lc=(e,t)=>{for(var i in t)$n(e,i,{get:t[i],enumerable:!0})},Oc=(e,t,i,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Ic(t))!Rc.call(e,s)&&s!==i&&$n(e,s,{get:()=>t[s],enumerable:!(n=Bc(t,s))||n.enumerable});return e};var Wn=(e,t,i)=>(i=e!=null?Pc(Nc(e)):{},Oc(t||!e||!e.__esModule?$n(i,"default",{value:e,enumerable:!0}):i,e));var Ds=rn((bs,Es)=>{(function(e,t){typeof bs=="object"&&typeof Es<"u"?Es.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self).esquery=t()})(bs,(function(){"use strict";function e(F,L){(L==null||L>F.length)&&(L=F.length);for(var S=0,U=Array(L);S<L;S++)U[S]=F[S];return U}function t(F,L){return(function(S){if(Array.isArray(S))return S})(F)||(function(S,U){var K=S==null?null:typeof Symbol<"u"&&S[Symbol.iterator]||S["@@iterator"];if(K!=null){var k,R,V,l,O=[],ne=!0,H=!1;try{if(V=(K=K.call(S)).next,U===0){if(Object(K)!==K)return;ne=!1}else for(;!(ne=(k=V.call(K)).done)&&(O.push(k.value),O.length!==U);ne=!0);}catch(Z){H=!0,R=Z}finally{try{if(!ne&&K.return!=null&&(l=K.return(),Object(l)!==l))return}finally{if(H)throw R}}return O}})(F,L)||s(F,L)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function i(F){return(function(L){if(Array.isArray(L))return e(L)})(F)||(function(L){if(typeof Symbol<"u"&&L[Symbol.iterator]!=null||L["@@iterator"]!=null)return Array.from(L)})(F)||s(F)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function n(F){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L})(F)}function s(F,L){if(F){if(typeof F=="string")return e(F,L);var S={}.toString.call(F).slice(8,-1);return S==="Object"&&F.constructor&&(S=F.constructor.name),S==="Map"||S==="Set"?Array.from(F):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?e(F,L):void 0}}typeof globalThis<"u"||typeof window<"u"||(typeof global<"u"?global:typeof self<"u");function o(F,L){return F(L={exports:{}},L.exports),L.exports}var u=o((function(F,L){(function S(U){var K,k,R,V,l,O;function ne(se){var de,ye,Se={};for(de in se)se.hasOwnProperty(de)&&(ye=se[de],Se[de]=typeof ye=="object"&&ye!==null?ne(ye):ye);return Se}function H(se,de){this.parent=se,this.key=de}function Z(se,de,ye,Se){this.node=se,this.path=de,this.wrap=ye,this.ref=Se}function ce(){}function we(se){return se!=null&&typeof se=="object"&&typeof se.type=="string"}function Pe(se,de){return(se===K.ObjectExpression||se===K.ObjectPattern)&&de==="properties"}function Oe(se,de){for(var ye=se.length-1;ye>=0;--ye)if(se[ye].node===de)return!0;return!1}function Je(se,de){return new ce().traverse(se,de)}function st(se,de){var ye;return ye=(function(Se,q){var ae,Q,te,ke;for(Q=Se.length,te=0;Q;)q(Se[ke=te+(ae=Q>>>1)])?Q=ae:(te=ke+1,Q-=ae+1);return te})(de,(function(Se){return Se.range[0]>se.range[0]})),se.extendedRange=[se.range[0],se.range[1]],ye!==de.length&&(se.extendedRange[1]=de[ye].range[0]),(ye-=1)>=0&&(se.extendedRange[0]=de[ye].range[1]),se}return K={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"},R={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"]},k={Break:V={},Skip:l={},Remove:O={}},H.prototype.replace=function(se){this.parent[this.key]=se},H.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},ce.prototype.path=function(){var se,de,ye,Se,q;function ae(Q,te){if(Array.isArray(te))for(ye=0,Se=te.length;ye<Se;++ye)Q.push(te[ye]);else Q.push(te)}if(!this.__current.path)return null;for(q=[],se=2,de=this.__leavelist.length;se<de;++se)ae(q,this.__leavelist[se].path);return ae(q,this.__current.path),q},ce.prototype.type=function(){return this.current().type||this.__current.wrap},ce.prototype.parents=function(){var se,de,ye;for(ye=[],se=1,de=this.__leavelist.length;se<de;++se)ye.push(this.__leavelist[se].node);return ye},ce.prototype.current=function(){return this.__current.node},ce.prototype.__execute=function(se,de){var ye,Se;return Se=void 0,ye=this.__current,this.__current=de,this.__state=null,se&&(Se=se.call(this,de.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=ye,Se},ce.prototype.notify=function(se){this.__state=se},ce.prototype.skip=function(){this.notify(l)},ce.prototype.break=function(){this.notify(V)},ce.prototype.remove=function(){this.notify(O)},ce.prototype.__initialize=function(se,de){this.visitor=de,this.root=se,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,de.fallback==="iteration"?this.__fallback=Object.keys:typeof de.fallback=="function"&&(this.__fallback=de.fallback),this.__keys=R,de.keys&&(this.__keys=Object.assign(Object.create(this.__keys),de.keys))},ce.prototype.traverse=function(se,de){var ye,Se,q,ae,Q,te,ke,Be,Qe,Fe,We,ht;for(this.__initialize(se,de),ht={},ye=this.__worklist,Se=this.__leavelist,ye.push(new Z(se,null,null,null)),Se.push(new Z(null,null,null,null));ye.length;)if((q=ye.pop())!==ht){if(q.node){if(te=this.__execute(de.enter,q),this.__state===V||te===V)return;if(ye.push(ht),Se.push(q),this.__state===l||te===l)continue;if(Q=(ae=q.node).type||q.wrap,!(Fe=this.__keys[Q])){if(!this.__fallback)throw new Error("Unknown node type "+Q+".");Fe=this.__fallback(ae)}for(Be=Fe.length;(Be-=1)>=0;)if(We=ae[ke=Fe[Be]]){if(Array.isArray(We)){for(Qe=We.length;(Qe-=1)>=0;)if(We[Qe]&&!Oe(Se,We[Qe])){if(Pe(Q,Fe[Be]))q=new Z(We[Qe],[ke,Qe],"Property",null);else{if(!we(We[Qe]))continue;q=new Z(We[Qe],[ke,Qe],null,null)}ye.push(q)}}else if(we(We)){if(Oe(Se,We))continue;ye.push(new Z(We,ke,null,null))}}}}else if(q=Se.pop(),te=this.__execute(de.leave,q),this.__state===V||te===V)return},ce.prototype.replace=function(se,de){var ye,Se,q,ae,Q,te,ke,Be,Qe,Fe,We,ht,mt;function lr(Bt){var Vt,yt,sr,Cr;if(Bt.ref.remove()){for(yt=Bt.ref.key,Cr=Bt.ref.parent,Vt=ye.length;Vt--;)if((sr=ye[Vt]).ref&&sr.ref.parent===Cr){if(sr.ref.key<yt)break;--sr.ref.key}}}for(this.__initialize(se,de),We={},ye=this.__worklist,Se=this.__leavelist,te=new Z(se,null,null,new H(ht={root:se},"root")),ye.push(te),Se.push(te);ye.length;)if((te=ye.pop())!==We){if((Q=this.__execute(de.enter,te))!==void 0&&Q!==V&&Q!==l&&Q!==O&&(te.ref.replace(Q),te.node=Q),this.__state!==O&&Q!==O||(lr(te),te.node=null),this.__state===V||Q===V)return ht.root;if((q=te.node)&&(ye.push(We),Se.push(te),this.__state!==l&&Q!==l)){if(ae=q.type||te.wrap,!(Qe=this.__keys[ae])){if(!this.__fallback)throw new Error("Unknown node type "+ae+".");Qe=this.__fallback(q)}for(ke=Qe.length;(ke-=1)>=0;)if(Fe=q[mt=Qe[ke]])if(Array.isArray(Fe)){for(Be=Fe.length;(Be-=1)>=0;)if(Fe[Be]){if(Pe(ae,Qe[ke]))te=new Z(Fe[Be],[mt,Be],"Property",new H(Fe,Be));else{if(!we(Fe[Be]))continue;te=new Z(Fe[Be],[mt,Be],null,new H(Fe,Be))}ye.push(te)}}else we(Fe)&&ye.push(new Z(Fe,mt,null,new H(q,mt)))}}else if(te=Se.pop(),(Q=this.__execute(de.leave,te))!==void 0&&Q!==V&&Q!==l&&Q!==O&&te.ref.replace(Q),this.__state!==O&&Q!==O||lr(te),this.__state===V||Q===V)return ht.root;return ht.root},U.Syntax=K,U.traverse=Je,U.replace=function(se,de){return new ce().replace(se,de)},U.attachComments=function(se,de,ye){var Se,q,ae,Q,te=[];if(!se.range)throw new Error("attachComments needs range information");if(!ye.length){if(de.length){for(ae=0,q=de.length;ae<q;ae+=1)(Se=ne(de[ae])).extendedRange=[0,se.range[0]],te.push(Se);se.leadingComments=te}return se}for(ae=0,q=de.length;ae<q;ae+=1)te.push(st(ne(de[ae]),ye));return Q=0,Je(se,{enter:function(ke){for(var Be;Q<te.length&&!((Be=te[Q]).extendedRange[1]>ke.range[0]);)Be.extendedRange[1]===ke.range[0]?(ke.leadingComments||(ke.leadingComments=[]),ke.leadingComments.push(Be),te.splice(Q,1)):Q+=1;return Q===te.length?k.Break:te[Q].extendedRange[0]>ke.range[1]?k.Skip:void 0}}),Q=0,Je(se,{leave:function(ke){for(var Be;Q<te.length&&(Be=te[Q],!(ke.range[1]<Be.extendedRange[0]));)ke.range[1]===Be.extendedRange[0]?(ke.trailingComments||(ke.trailingComments=[]),ke.trailingComments.push(Be),te.splice(Q,1)):Q+=1;return Q===te.length?k.Break:te[Q].extendedRange[0]>ke.range[1]?k.Skip:void 0}}),se},U.VisitorKeys=R,U.VisitorOption=k,U.Controller=ce,U.cloneEnvironment=function(){return S({})},U})(L)})),c=o((function(F){F.exports&&(F.exports=(function(){function L(S,U,K,k){this.message=S,this.expected=U,this.found=K,this.location=k,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,L)}return(function(S,U){function K(){this.constructor=S}K.prototype=U.prototype,S.prototype=new K})(L,Error),L.buildMessage=function(S,U){var K={literal:function(l){return'"'+R(l.text)+'"'},class:function(l){var O,ne="";for(O=0;O<l.parts.length;O++)ne+=l.parts[O]instanceof Array?V(l.parts[O][0])+"-"+V(l.parts[O][1]):V(l.parts[O]);return"["+(l.inverted?"^":"")+ne+"]"},any:function(l){return"any character"},end:function(l){return"end of input"},other:function(l){return l.description}};function k(l){return l.charCodeAt(0).toString(16).toUpperCase()}function R(l){return l.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(O){return"\\x0"+k(O)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(O){return"\\x"+k(O)}))}function V(l){return l.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(O){return"\\x0"+k(O)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(O){return"\\x"+k(O)}))}return"Expected "+(function(l){var O,ne,H,Z=new Array(l.length);for(O=0;O<l.length;O++)Z[O]=(H=l[O],K[H.type](H));if(Z.sort(),Z.length>0){for(O=1,ne=1;O<Z.length;O++)Z[O-1]!==Z[O]&&(Z[ne]=Z[O],ne++);Z.length=ne}switch(Z.length){case 1:return Z[0];case 2:return Z[0]+" or "+Z[1];default:return Z.slice(0,-1).join(", ")+", or "+Z[Z.length-1]}})(S)+" but "+(function(l){return l?'"'+R(l)+'"':"end of input"})(U)+" found."},{SyntaxError:L,parse:function(S,U){U=U!==void 0?U:{};var K,k,R,V,l={},O={start:gi},ne=gi,H=Ge(" ",!1),Z=/^[^ [\],():#!=><~+.]/,ce=Mt([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),we=Ge(">",!1),Pe=Ge("~",!1),Oe=Ge("+",!1),Je=Ge(",",!1),st=function(B,$){return[B].concat($.map((function(X){return X[3]})))},se=Ge("!",!1),de=Ge("*",!1),ye=Ge("#",!1),Se=Ge("[",!1),q=Ge("]",!1),ae=/^[><!]/,Q=Mt([">","<","!"],!1,!1),te=Ge("=",!1),ke=function(B){return(B||"")+"="},Be=/^[><]/,Qe=Mt([">","<"],!1,!1),Fe=Ge(".",!1),We=function(B,$,X){return{type:"attribute",name:B,operator:$,value:X}},ht=Ge('"',!1),mt=/^[^\\"]/,lr=Mt(["\\",'"'],!0,!1),Bt=Ge("\\",!1),Vt={type:"any"},yt=function(B,$){return B+$},sr=function(B){return{type:"literal",value:($=B.join(""),$.replace(/\\(.)/g,(function(X,E){switch(E){case"b":return"\b";case"f":return"\f";case"n":return`
|
|
5
|
+
`;case"r":return"\r";case"t":return" ";case"v":return"\v";default:return E}})))};var $},Cr=Ge("'",!1),hi=/^[^\\']/,Xe=Mt(["\\","'"],!0,!1),ut=/^[0-9]/,Ye=Mt([["0","9"]],!1,!1),Un=Ge("type(",!1),zi=/^[^ )]/,Pr=Mt([" ",")"],!0,!1),ue=Ge(")",!1),$r=/^[imsu]/,Hi=Mt(["i","m","s","u"],!1,!1),Qi=Ge("/",!1),Ar=/^[^\]\\]/,Wr=Mt(["]","\\"],!0,!1),fi=/^[^\/\\[]/,Xi=Mt(["/","\\","["],!0,!1),Gr=Ge(":not(",!1),It=Ge(":matches(",!1),Tt=function(B){return{type:"matches",selectors:B}},ze=Ge(":is(",!1),br=Ge(":has(",!1),ve=Ge(":first-child",!1),Yi=Ge(":last-child",!1),di=Ge(":nth-child(",!1),qn=Ge(":nth-last-child(",!1),Kr=Ge(":",!1),f=0,zr=[{line:1,column:1}],bt=0,pr=[],oe={};if("startRule"in U){if(!(U.startRule in O))throw new Error(`Can't start parsing from rule "`+U.startRule+'".');ne=O[U.startRule]}function Ge(B,$){return{type:"literal",text:B,ignoreCase:$}}function Mt(B,$,X){return{type:"class",parts:B,inverted:$,ignoreCase:X}}function mi(B){var $,X=zr[B];if(X)return X;for($=B-1;!zr[$];)$--;for(X={line:(X=zr[$]).line,column:X.column};$<B;)S.charCodeAt($)===10?(X.line++,X.column=1):X.column++,$++;return zr[B]=X,X}function yi(B,$){var X=mi(B),E=mi($);return{start:{offset:B,line:X.line,column:X.column},end:{offset:$,line:E.line,column:E.column}}}function ee(B){f<bt||(f>bt&&(bt=f,pr=[]),pr.push(B))}function gi(){var B,$,X,E,M=36*f+0,Y=oe[M];return Y?(f=Y.nextPos,Y.result):(B=f,($=_e())!==l&&(X=Hr())!==l&&_e()!==l?B=$=(E=X).length===1?E[0]:{type:"matches",selectors:E}:(f=B,B=l),B===l&&(B=f,($=_e())!==l&&($=void 0),B=$),oe[M]={nextPos:f,result:B},B)}function _e(){var B,$,X=36*f+1,E=oe[X];if(E)return f=E.nextPos,E.result;for(B=[],S.charCodeAt(f)===32?($=" ",f++):($=l,ee(H));$!==l;)B.push($),S.charCodeAt(f)===32?($=" ",f++):($=l,ee(H));return oe[X]={nextPos:f,result:B},B}function Zt(){var B,$,X,E=36*f+2,M=oe[E];if(M)return f=M.nextPos,M.result;if($=[],Z.test(S.charAt(f))?(X=S.charAt(f),f++):(X=l,ee(ce)),X!==l)for(;X!==l;)$.push(X),Z.test(S.charAt(f))?(X=S.charAt(f),f++):(X=l,ee(ce));else $=l;return $!==l&&($=$.join("")),B=$,oe[E]={nextPos:f,result:B},B}function xi(){var B,$,X,E=36*f+3,M=oe[E];return M?(f=M.nextPos,M.result):(B=f,($=_e())!==l?(S.charCodeAt(f)===62?(X=">",f++):(X=l,ee(we)),X!==l&&_e()!==l?B=$="child":(f=B,B=l)):(f=B,B=l),B===l&&(B=f,($=_e())!==l?(S.charCodeAt(f)===126?(X="~",f++):(X=l,ee(Pe)),X!==l&&_e()!==l?B=$="sibling":(f=B,B=l)):(f=B,B=l),B===l&&(B=f,($=_e())!==l?(S.charCodeAt(f)===43?(X="+",f++):(X=l,ee(Oe)),X!==l&&_e()!==l?B=$="adjacent":(f=B,B=l)):(f=B,B=l),B===l&&(B=f,S.charCodeAt(f)===32?($=" ",f++):($=l,ee(H)),$!==l&&(X=_e())!==l?B=$="descendant":(f=B,B=l)))),oe[E]={nextPos:f,result:B},B)}function Hr(){var B,$,X,E,M,Y,re,me,ge=36*f+5,xe=oe[ge];if(xe)return f=xe.nextPos,xe.result;if(B=f,($=Br())!==l){for(X=[],E=f,(M=_e())!==l?(S.charCodeAt(f)===44?(Y=",",f++):(Y=l,ee(Je)),Y!==l&&(re=_e())!==l&&(me=Br())!==l?E=M=[M,Y,re,me]:(f=E,E=l)):(f=E,E=l);E!==l;)X.push(E),E=f,(M=_e())!==l?(S.charCodeAt(f)===44?(Y=",",f++):(Y=l,ee(Je)),Y!==l&&(re=_e())!==l&&(me=Br())!==l?E=M=[M,Y,re,me]:(f=E,E=l)):(f=E,E=l);X!==l?B=$=st($,X):(f=B,B=l)}else f=B,B=l;return oe[ge]={nextPos:f,result:B},B}function Qr(){var B,$,X,E,M,Y=36*f+6,re=oe[Y];return re?(f=re.nextPos,re.result):(B=f,($=xi())===l&&($=null),$!==l&&(X=Br())!==l?(M=X,B=$=(E=$)?{type:E,left:{type:"exactNode"},right:M}:M):(f=B,B=l),oe[Y]={nextPos:f,result:B},B)}function Br(){var B,$,X,E,M,Y,re,me=36*f+7,ge=oe[me];if(ge)return f=ge.nextPos,ge.result;if(B=f,($=Xr())!==l){for(X=[],E=f,(M=xi())!==l&&(Y=Xr())!==l?E=M=[M,Y]:(f=E,E=l);E!==l;)X.push(E),E=f,(M=xi())!==l&&(Y=Xr())!==l?E=M=[M,Y]:(f=E,E=l);X!==l?(re=$,B=$=X.reduce((function(xe,tt){return{type:tt[0],left:xe,right:tt[1]}}),re)):(f=B,B=l)}else f=B,B=l;return oe[me]={nextPos:f,result:B},B}function Xr(){var B,$,X,E,M,Y,re,me=36*f+8,ge=oe[me];if(ge)return f=ge.nextPos,ge.result;if(B=f,S.charCodeAt(f)===33?($="!",f++):($=l,ee(se)),$===l&&($=null),$!==l){if(X=[],(E=vi())!==l)for(;E!==l;)X.push(E),E=vi();else X=l;X!==l?(M=$,re=(Y=X).length===1?Y[0]:{type:"compound",selectors:Y},M&&(re.subject=!0),B=$=re):(f=B,B=l)}else f=B,B=l;return oe[me]={nextPos:f,result:B},B}function vi(){var B,$=36*f+9,X=oe[$];return X?(f=X.nextPos,X.result):((B=(function(){var E,M,Y=36*f+10,re=oe[Y];return re?(f=re.nextPos,re.result):(S.charCodeAt(f)===42?(M="*",f++):(M=l,ee(de)),M!==l&&(M={type:"wildcard",value:M}),E=M,oe[Y]={nextPos:f,result:E},E)})())===l&&(B=(function(){var E,M,Y,re=36*f+11,me=oe[re];return me?(f=me.nextPos,me.result):(E=f,S.charCodeAt(f)===35?(M="#",f++):(M=l,ee(ye)),M===l&&(M=null),M!==l&&(Y=Zt())!==l?E=M={type:"identifier",value:Y}:(f=E,E=l),oe[re]={nextPos:f,result:E},E)})())===l&&(B=(function(){var E,M,Y,re,me=36*f+12,ge=oe[me];return ge?(f=ge.nextPos,ge.result):(E=f,S.charCodeAt(f)===91?(M="[",f++):(M=l,ee(Se)),M!==l&&_e()!==l&&(Y=(function(){var xe,tt,Ft,qe,Nt=36*f+16,Ze=oe[Nt];return Ze?(f=Ze.nextPos,Ze.result):(xe=f,(tt=Yr())!==l&&_e()!==l&&(Ft=(function(){var z,le,Ce,G=36*f+14,be=oe[G];return be?(f=be.nextPos,be.result):(z=f,S.charCodeAt(f)===33?(le="!",f++):(le=l,ee(se)),le===l&&(le=null),le!==l?(S.charCodeAt(f)===61?(Ce="=",f++):(Ce=l,ee(te)),Ce!==l?(le=ke(le),z=le):(f=z,z=l)):(f=z,z=l),oe[G]={nextPos:f,result:z},z)})())!==l&&_e()!==l?((qe=(function(){var z,le,Ce,G,be,Ke=36*f+20,Rt=oe[Ke];if(Rt)return f=Rt.nextPos,Rt.result;if(z=f,S.substr(f,5)==="type("?(le="type(",f+=5):(le=l,ee(Un)),le!==l)if(_e()!==l){if(Ce=[],zi.test(S.charAt(f))?(G=S.charAt(f),f++):(G=l,ee(Pr)),G!==l)for(;G!==l;)Ce.push(G),zi.test(S.charAt(f))?(G=S.charAt(f),f++):(G=l,ee(Pr));else Ce=l;Ce!==l&&(G=_e())!==l?(S.charCodeAt(f)===41?(be=")",f++):(be=l,ee(ue)),be!==l?(le={type:"type",value:Ce.join("")},z=le):(f=z,z=l)):(f=z,z=l)}else f=z,z=l;else f=z,z=l;return oe[Ke]={nextPos:f,result:z},z})())===l&&(qe=(function(){var z,le,Ce,G,be,Ke,Rt=36*f+22,kt=oe[Rt];if(kt)return f=kt.nextPos,kt.result;if(z=f,S.charCodeAt(f)===47?(le="/",f++):(le=l,ee(Qi)),le!==l){if(Ce=[],(G=Ci())===l&&(G=Zr())===l&&(G=Zi()),G!==l)for(;G!==l;)Ce.push(G),(G=Ci())===l&&(G=Zr())===l&&(G=Zi());else Ce=l;Ce!==l?(S.charCodeAt(f)===47?(G="/",f++):(G=l,ee(Qi)),G!==l?((be=(function(){var qt,ar,bi=36*f+21,Er=oe[bi];if(Er)return f=Er.nextPos,Er.result;if(qt=[],$r.test(S.charAt(f))?(ar=S.charAt(f),f++):(ar=l,ee(Hi)),ar!==l)for(;ar!==l;)qt.push(ar),$r.test(S.charAt(f))?(ar=S.charAt(f),f++):(ar=l,ee(Hi));else qt=l;return oe[bi]={nextPos:f,result:qt},qt})())===l&&(be=null),be!==l?(Ke=be,le={type:"regexp",value:new RegExp(Ce.join(""),Ke?Ke.join(""):"")},z=le):(f=z,z=l)):(f=z,z=l)):(f=z,z=l)}else f=z,z=l;return oe[Rt]={nextPos:f,result:z},z})()),qe!==l?(tt=We(tt,Ft,qe),xe=tt):(f=xe,xe=l)):(f=xe,xe=l),xe===l&&(xe=f,(tt=Yr())!==l&&_e()!==l&&(Ft=(function(){var z,le,Ce,G=36*f+13,be=oe[G];return be?(f=be.nextPos,be.result):(z=f,ae.test(S.charAt(f))?(le=S.charAt(f),f++):(le=l,ee(Q)),le===l&&(le=null),le!==l?(S.charCodeAt(f)===61?(Ce="=",f++):(Ce=l,ee(te)),Ce!==l?(le=ke(le),z=le):(f=z,z=l)):(f=z,z=l),z===l&&(Be.test(S.charAt(f))?(z=S.charAt(f),f++):(z=l,ee(Qe))),oe[G]={nextPos:f,result:z},z)})())!==l&&_e()!==l?((qe=(function(){var z,le,Ce,G,be,Ke,Rt=36*f+17,kt=oe[Rt];if(kt)return f=kt.nextPos,kt.result;if(z=f,S.charCodeAt(f)===34?(le='"',f++):(le=l,ee(ht)),le!==l){for(Ce=[],mt.test(S.charAt(f))?(G=S.charAt(f),f++):(G=l,ee(lr)),G===l&&(G=f,S.charCodeAt(f)===92?(be="\\",f++):(be=l,ee(Bt)),be!==l?(S.length>f?(Ke=S.charAt(f),f++):(Ke=l,ee(Vt)),Ke!==l?(be=yt(be,Ke),G=be):(f=G,G=l)):(f=G,G=l));G!==l;)Ce.push(G),mt.test(S.charAt(f))?(G=S.charAt(f),f++):(G=l,ee(lr)),G===l&&(G=f,S.charCodeAt(f)===92?(be="\\",f++):(be=l,ee(Bt)),be!==l?(S.length>f?(Ke=S.charAt(f),f++):(Ke=l,ee(Vt)),Ke!==l?(be=yt(be,Ke),G=be):(f=G,G=l)):(f=G,G=l));Ce!==l?(S.charCodeAt(f)===34?(G='"',f++):(G=l,ee(ht)),G!==l?(le=sr(Ce),z=le):(f=z,z=l)):(f=z,z=l)}else f=z,z=l;if(z===l)if(z=f,S.charCodeAt(f)===39?(le="'",f++):(le=l,ee(Cr)),le!==l){for(Ce=[],hi.test(S.charAt(f))?(G=S.charAt(f),f++):(G=l,ee(Xe)),G===l&&(G=f,S.charCodeAt(f)===92?(be="\\",f++):(be=l,ee(Bt)),be!==l?(S.length>f?(Ke=S.charAt(f),f++):(Ke=l,ee(Vt)),Ke!==l?(be=yt(be,Ke),G=be):(f=G,G=l)):(f=G,G=l));G!==l;)Ce.push(G),hi.test(S.charAt(f))?(G=S.charAt(f),f++):(G=l,ee(Xe)),G===l&&(G=f,S.charCodeAt(f)===92?(be="\\",f++):(be=l,ee(Bt)),be!==l?(S.length>f?(Ke=S.charAt(f),f++):(Ke=l,ee(Vt)),Ke!==l?(be=yt(be,Ke),G=be):(f=G,G=l)):(f=G,G=l));Ce!==l?(S.charCodeAt(f)===39?(G="'",f++):(G=l,ee(Cr)),G!==l?(le=sr(Ce),z=le):(f=z,z=l)):(f=z,z=l)}else f=z,z=l;return oe[Rt]={nextPos:f,result:z},z})())===l&&(qe=(function(){var z,le,Ce,G,be,Ke,Rt,kt=36*f+18,qt=oe[kt];if(qt)return f=qt.nextPos,qt.result;for(z=f,le=f,Ce=[],ut.test(S.charAt(f))?(G=S.charAt(f),f++):(G=l,ee(Ye));G!==l;)Ce.push(G),ut.test(S.charAt(f))?(G=S.charAt(f),f++):(G=l,ee(Ye));if(Ce!==l?(S.charCodeAt(f)===46?(G=".",f++):(G=l,ee(Fe)),G!==l?le=Ce=[Ce,G]:(f=le,le=l)):(f=le,le=l),le===l&&(le=null),le!==l){if(Ce=[],ut.test(S.charAt(f))?(G=S.charAt(f),f++):(G=l,ee(Ye)),G!==l)for(;G!==l;)Ce.push(G),ut.test(S.charAt(f))?(G=S.charAt(f),f++):(G=l,ee(Ye));else Ce=l;Ce!==l?(Ke=Ce,Rt=(be=le)?[].concat.apply([],be).join(""):"",le={type:"literal",value:parseFloat(Rt+Ke.join(""))},z=le):(f=z,z=l)}else f=z,z=l;return oe[kt]={nextPos:f,result:z},z})())===l&&(qe=(function(){var z,le,Ce=36*f+19,G=oe[Ce];return G?(f=G.nextPos,G.result):((le=Zt())!==l&&(le={type:"literal",value:le}),z=le,oe[Ce]={nextPos:f,result:z},z)})()),qe!==l?(tt=We(tt,Ft,qe),xe=tt):(f=xe,xe=l)):(f=xe,xe=l),xe===l&&(xe=f,(tt=Yr())!==l&&(tt={type:"attribute",name:tt}),xe=tt)),oe[Nt]={nextPos:f,result:xe},xe)})())!==l&&_e()!==l?(S.charCodeAt(f)===93?(re="]",f++):(re=l,ee(q)),re!==l?E=M=Y:(f=E,E=l)):(f=E,E=l),oe[me]={nextPos:f,result:E},E)})())===l&&(B=(function(){var E,M,Y,re,me,ge,xe,tt,Ft=36*f+26,qe=oe[Ft];if(qe)return f=qe.nextPos,qe.result;if(E=f,S.charCodeAt(f)===46?(M=".",f++):(M=l,ee(Fe)),M!==l)if((Y=Zt())!==l){for(re=[],me=f,S.charCodeAt(f)===46?(ge=".",f++):(ge=l,ee(Fe)),ge!==l&&(xe=Zt())!==l?me=ge=[ge,xe]:(f=me,me=l);me!==l;)re.push(me),me=f,S.charCodeAt(f)===46?(ge=".",f++):(ge=l,ee(Fe)),ge!==l&&(xe=Zt())!==l?me=ge=[ge,xe]:(f=me,me=l);re!==l?(tt=Y,M={type:"field",name:re.reduce((function(Nt,Ze){return Nt+Ze[0]+Ze[1]}),tt)},E=M):(f=E,E=l)}else f=E,E=l;else f=E,E=l;return oe[Ft]={nextPos:f,result:E},E})())===l&&(B=(function(){var E,M,Y,re,me=36*f+27,ge=oe[me];return ge?(f=ge.nextPos,ge.result):(E=f,S.substr(f,5)===":not("?(M=":not(",f+=5):(M=l,ee(Gr)),M!==l&&_e()!==l&&(Y=Hr())!==l&&_e()!==l?(S.charCodeAt(f)===41?(re=")",f++):(re=l,ee(ue)),re!==l?E=M={type:"not",selectors:Y}:(f=E,E=l)):(f=E,E=l),oe[me]={nextPos:f,result:E},E)})())===l&&(B=(function(){var E,M,Y,re,me=36*f+28,ge=oe[me];return ge?(f=ge.nextPos,ge.result):(E=f,S.substr(f,9)===":matches("?(M=":matches(",f+=9):(M=l,ee(It)),M!==l&&_e()!==l&&(Y=Hr())!==l&&_e()!==l?(S.charCodeAt(f)===41?(re=")",f++):(re=l,ee(ue)),re!==l?(M=Tt(Y),E=M):(f=E,E=l)):(f=E,E=l),oe[me]={nextPos:f,result:E},E)})())===l&&(B=(function(){var E,M,Y,re,me=36*f+29,ge=oe[me];return ge?(f=ge.nextPos,ge.result):(E=f,S.substr(f,4)===":is("?(M=":is(",f+=4):(M=l,ee(ze)),M!==l&&_e()!==l&&(Y=Hr())!==l&&_e()!==l?(S.charCodeAt(f)===41?(re=")",f++):(re=l,ee(ue)),re!==l?(M=Tt(Y),E=M):(f=E,E=l)):(f=E,E=l),oe[me]={nextPos:f,result:E},E)})())===l&&(B=(function(){var E,M,Y,re,me=36*f+30,ge=oe[me];return ge?(f=ge.nextPos,ge.result):(E=f,S.substr(f,5)===":has("?(M=":has(",f+=5):(M=l,ee(br)),M!==l&&_e()!==l&&(Y=(function(){var xe,tt,Ft,qe,Nt,Ze,z,le,Ce=36*f+4,G=oe[Ce];if(G)return f=G.nextPos,G.result;if(xe=f,(tt=Qr())!==l){for(Ft=[],qe=f,(Nt=_e())!==l?(S.charCodeAt(f)===44?(Ze=",",f++):(Ze=l,ee(Je)),Ze!==l&&(z=_e())!==l&&(le=Qr())!==l?qe=Nt=[Nt,Ze,z,le]:(f=qe,qe=l)):(f=qe,qe=l);qe!==l;)Ft.push(qe),qe=f,(Nt=_e())!==l?(S.charCodeAt(f)===44?(Ze=",",f++):(Ze=l,ee(Je)),Ze!==l&&(z=_e())!==l&&(le=Qr())!==l?qe=Nt=[Nt,Ze,z,le]:(f=qe,qe=l)):(f=qe,qe=l);Ft!==l?xe=tt=st(tt,Ft):(f=xe,xe=l)}else f=xe,xe=l;return oe[Ce]={nextPos:f,result:xe},xe})())!==l&&_e()!==l?(S.charCodeAt(f)===41?(re=")",f++):(re=l,ee(ue)),re!==l?E=M={type:"has",selectors:Y}:(f=E,E=l)):(f=E,E=l),oe[me]={nextPos:f,result:E},E)})())===l&&(B=(function(){var E,M,Y=36*f+31,re=oe[Y];return re?(f=re.nextPos,re.result):(S.substr(f,12)===":first-child"?(M=":first-child",f+=12):(M=l,ee(ve)),M!==l&&(M=Ai(1)),E=M,oe[Y]={nextPos:f,result:E},E)})())===l&&(B=(function(){var E,M,Y=36*f+32,re=oe[Y];return re?(f=re.nextPos,re.result):(S.substr(f,11)===":last-child"?(M=":last-child",f+=11):(M=l,ee(Yi)),M!==l&&(M=en(1)),E=M,oe[Y]={nextPos:f,result:E},E)})())===l&&(B=(function(){var E,M,Y,re,me,ge=36*f+33,xe=oe[ge];if(xe)return f=xe.nextPos,xe.result;if(E=f,S.substr(f,11)===":nth-child("?(M=":nth-child(",f+=11):(M=l,ee(di)),M!==l)if(_e()!==l){if(Y=[],ut.test(S.charAt(f))?(re=S.charAt(f),f++):(re=l,ee(Ye)),re!==l)for(;re!==l;)Y.push(re),ut.test(S.charAt(f))?(re=S.charAt(f),f++):(re=l,ee(Ye));else Y=l;Y!==l&&(re=_e())!==l?(S.charCodeAt(f)===41?(me=")",f++):(me=l,ee(ue)),me!==l?(M=Ai(parseInt(Y.join(""),10)),E=M):(f=E,E=l)):(f=E,E=l)}else f=E,E=l;else f=E,E=l;return oe[ge]={nextPos:f,result:E},E})())===l&&(B=(function(){var E,M,Y,re,me,ge=36*f+34,xe=oe[ge];if(xe)return f=xe.nextPos,xe.result;if(E=f,S.substr(f,16)===":nth-last-child("?(M=":nth-last-child(",f+=16):(M=l,ee(qn)),M!==l)if(_e()!==l){if(Y=[],ut.test(S.charAt(f))?(re=S.charAt(f),f++):(re=l,ee(Ye)),re!==l)for(;re!==l;)Y.push(re),ut.test(S.charAt(f))?(re=S.charAt(f),f++):(re=l,ee(Ye));else Y=l;Y!==l&&(re=_e())!==l?(S.charCodeAt(f)===41?(me=")",f++):(me=l,ee(ue)),me!==l?(M=en(parseInt(Y.join(""),10)),E=M):(f=E,E=l)):(f=E,E=l)}else f=E,E=l;else f=E,E=l;return oe[ge]={nextPos:f,result:E},E})())===l&&(B=(function(){var E,M,Y,re=36*f+35,me=oe[re];return me?(f=me.nextPos,me.result):(E=f,S.charCodeAt(f)===58?(M=":",f++):(M=l,ee(Kr)),M!==l&&(Y=Zt())!==l?E=M={type:"class",name:Y}:(f=E,E=l),oe[re]={nextPos:f,result:E},E)})()),oe[$]={nextPos:f,result:B},B)}function Yr(){var B,$,X,E,M,Y,re,me,ge=36*f+15,xe=oe[ge];if(xe)return f=xe.nextPos,xe.result;if(B=f,($=Zt())!==l){for(X=[],E=f,S.charCodeAt(f)===46?(M=".",f++):(M=l,ee(Fe)),M!==l&&(Y=Zt())!==l?E=M=[M,Y]:(f=E,E=l);E!==l;)X.push(E),E=f,S.charCodeAt(f)===46?(M=".",f++):(M=l,ee(Fe)),M!==l&&(Y=Zt())!==l?E=M=[M,Y]:(f=E,E=l);X!==l?(re=$,me=X,B=$=[].concat.apply([re],me).join("")):(f=B,B=l)}else f=B,B=l;return oe[ge]={nextPos:f,result:B},B}function Ci(){var B,$,X,E,M=36*f+23,Y=oe[M];if(Y)return f=Y.nextPos,Y.result;if(B=f,S.charCodeAt(f)===91?($="[",f++):($=l,ee(Se)),$!==l){if(X=[],Ar.test(S.charAt(f))?(E=S.charAt(f),f++):(E=l,ee(Wr)),E===l&&(E=Zr()),E!==l)for(;E!==l;)X.push(E),Ar.test(S.charAt(f))?(E=S.charAt(f),f++):(E=l,ee(Wr)),E===l&&(E=Zr());else X=l;X!==l?(S.charCodeAt(f)===93?(E="]",f++):(E=l,ee(q)),E!==l?B=$="["+X.join("")+"]":(f=B,B=l)):(f=B,B=l)}else f=B,B=l;return oe[M]={nextPos:f,result:B},B}function Zr(){var B,$,X,E=36*f+24,M=oe[E];return M?(f=M.nextPos,M.result):(B=f,S.charCodeAt(f)===92?($="\\",f++):($=l,ee(Bt)),$!==l?(S.length>f?(X=S.charAt(f),f++):(X=l,ee(Vt)),X!==l?B=$="\\"+X:(f=B,B=l)):(f=B,B=l),oe[E]={nextPos:f,result:B},B)}function Zi(){var B,$,X,E=36*f+25,M=oe[E];if(M)return f=M.nextPos,M.result;if($=[],fi.test(S.charAt(f))?(X=S.charAt(f),f++):(X=l,ee(Xi)),X!==l)for(;X!==l;)$.push(X),fi.test(S.charAt(f))?(X=S.charAt(f),f++):(X=l,ee(Xi));else $=l;return $!==l&&($=$.join("")),B=$,oe[E]={nextPos:f,result:B},B}function Ai(B){return{type:"nth-child",index:{type:"literal",value:B}}}function en(B){return{type:"nth-last-child",index:{type:"literal",value:B}}}if((K=ne())!==l&&f===S.length)return K;throw K!==l&&f<S.length&&ee({type:"end"}),k=pr,R=bt<S.length?S.charAt(bt):null,V=bt<S.length?yi(bt,bt+1):yi(bt,bt),new L(L.buildMessage(k,R),k,R,V)}}})())}));function h(F,L){for(var S=0;S<L.length;++S){if(F==null)return F;F=F[L[S]]}return F}var g=typeof WeakMap=="function"?new WeakMap:null;function y(F){if(F==null)return function(){return!0};if(g!=null){var L=g.get(F);return L!=null||(L=A(F),g.set(F,L)),L}return A(F)}function A(F){switch(F.type){case"wildcard":return function(){return!0};case"identifier":var L=F.value.toLowerCase();return function(q,ae,Q){var te=Q&&Q.nodeTypeKey||"type";return L===q[te].toLowerCase()};case"exactNode":return function(q,ae){return ae.length===0};case"field":var S=F.name.split(".");return function(q,ae){return(function Q(te,ke,Be,Qe){for(var Fe=ke,We=Qe;We<Be.length;++We){if(Fe==null)return!1;var ht=Fe[Be[We]];if(Array.isArray(ht)){for(var mt=0;mt<ht.length;++mt)if(Q(te,ht[mt],Be,We+1))return!0;return!1}Fe=ht}return te===Fe})(q,ae[S.length-1],S,0)};case"matches":var U=F.selectors.map(y);return function(q,ae,Q){for(var te=0;te<U.length;++te)if(U[te](q,ae,Q))return!0;return!1};case"compound":var K=F.selectors.map(y);return function(q,ae,Q){for(var te=0;te<K.length;++te)if(!K[te](q,ae,Q))return!1;return!0};case"not":var k=F.selectors.map(y);return function(q,ae,Q){for(var te=0;te<k.length;++te)if(k[te](q,ae,Q))return!1;return!0};case"has":var R=F.selectors.map(y);return function(q,ae,Q){var te=!1,ke=[];return u.traverse(q,{enter:function(Be,Qe){Qe!=null&&ke.unshift(Qe);for(var Fe=0;Fe<R.length;++Fe)if(R[Fe](Be,ke,Q))return te=!0,void this.break()},leave:function(){ke.shift()},keys:Q&&Q.visitorKeys,fallback:Q&&Q.fallback||"iteration"}),te};case"child":var V=y(F.left),l=y(F.right);return function(q,ae,Q){return!!(ae.length>0&&l(q,ae,Q))&&V(ae[0],ae.slice(1),Q)};case"descendant":var O=y(F.left),ne=y(F.right);return function(q,ae,Q){if(ne(q,ae,Q)){for(var te=0,ke=ae.length;te<ke;++te)if(O(ae[te],ae.slice(te+1),Q))return!0}return!1};case"attribute":var H=F.name.split(".");switch(F.operator){case void 0:return function(q){return h(q,H)!=null};case"=":switch(F.value.type){case"regexp":return function(q){var ae=h(q,H);return typeof ae=="string"&&F.value.value.test(ae)};case"literal":var Z="".concat(F.value.value);return function(q){return Z==="".concat(h(q,H))};case"type":return function(q){return F.value.value===n(h(q,H))}}throw new Error("Unknown selector value type: ".concat(F.value.type));case"!=":switch(F.value.type){case"regexp":return function(q){return!F.value.value.test(h(q,H))};case"literal":var ce="".concat(F.value.value);return function(q){return ce!=="".concat(h(q,H))};case"type":return function(q){return F.value.value!==n(h(q,H))}}throw new Error("Unknown selector value type: ".concat(F.value.type));case"<=":return function(q){return h(q,H)<=F.value.value};case"<":return function(q){return h(q,H)<F.value.value};case">":return function(q){return h(q,H)>F.value.value};case">=":return function(q){return h(q,H)>=F.value.value}}throw new Error("Unknown operator: ".concat(F.operator));case"sibling":var we=y(F.left),Pe=y(F.right);return function(q,ae,Q){return Pe(q,ae,Q)&&D(q,we,ae,"LEFT_SIDE",Q)||F.left.subject&&we(q,ae,Q)&&D(q,Pe,ae,"RIGHT_SIDE",Q)};case"adjacent":var Oe=y(F.left),Je=y(F.right);return function(q,ae,Q){return Je(q,ae,Q)&&T(q,Oe,ae,"LEFT_SIDE",Q)||F.right.subject&&Oe(q,ae,Q)&&T(q,Je,ae,"RIGHT_SIDE",Q)};case"nth-child":var st=F.index.value,se=y(F.right);return function(q,ae,Q){return se(q,ae,Q)&&J(q,ae,st,Q)};case"nth-last-child":var de=-F.index.value,ye=y(F.right);return function(q,ae,Q){return ye(q,ae,Q)&&J(q,ae,de,Q)};case"class":var Se=F.name.toLowerCase();return function(q,ae,Q){if(Q&&Q.matchClass)return Q.matchClass(F.name,q,ae);if(Q&&Q.nodeTypeKey)return!1;switch(Se){case"statement":if(q.type.slice(-9)==="Statement")return!0;case"declaration":return q.type.slice(-11)==="Declaration";case"pattern":if(q.type.slice(-7)==="Pattern")return!0;case"expression":return q.type.slice(-10)==="Expression"||q.type.slice(-7)==="Literal"||q.type==="Identifier"&&(ae.length===0||ae[0].type!=="MetaProperty")||q.type==="MetaProperty";case"function":return q.type==="FunctionDeclaration"||q.type==="FunctionExpression"||q.type==="ArrowFunctionExpression"}throw new Error("Unknown class name: ".concat(F.name))}}throw new Error("Unknown selector type: ".concat(F.type))}function v(F,L){var S=L&&L.nodeTypeKey||"type",U=F[S];return L&&L.visitorKeys&&L.visitorKeys[U]?L.visitorKeys[U]:u.VisitorKeys[U]?u.VisitorKeys[U]:L&&typeof L.fallback=="function"?L.fallback(F):Object.keys(F).filter((function(K){return K!==S}))}function b(F,L){var S=L&&L.nodeTypeKey||"type";return F!==null&&n(F)==="object"&&typeof F[S]=="string"}function D(F,L,S,U,K){var k=t(S,1)[0];if(!k)return!1;for(var R=v(k,K),V=0;V<R.length;++V){var l=k[R[V]];if(Array.isArray(l)){var O=l.indexOf(F);if(O<0)continue;var ne=void 0,H=void 0;U==="LEFT_SIDE"?(ne=0,H=O):(ne=O+1,H=l.length);for(var Z=ne;Z<H;++Z)if(b(l[Z],K)&&L(l[Z],S,K))return!0}}return!1}function T(F,L,S,U,K){var k=t(S,1)[0];if(!k)return!1;for(var R=v(k,K),V=0;V<R.length;++V){var l=k[R[V]];if(Array.isArray(l)){var O=l.indexOf(F);if(O<0)continue;if(U==="LEFT_SIDE"&&O>0&&b(l[O-1],K)&&L(l[O-1],S,K)||U==="RIGHT_SIDE"&&O<l.length-1&&b(l[O+1],K)&&L(l[O+1],S,K))return!0}}return!1}function J(F,L,S,U){if(S===0)return!1;var K=t(L,1)[0];if(!K)return!1;for(var k=v(K,U),R=0;R<k.length;++R){var V=K[k[R]];if(Array.isArray(V)){var l=S<0?V.length+S:S-1;if(l>=0&&l<V.length&&V[l]===F)return!0}}return!1}function w(F,L,S,U){if(L){var K=[],k=y(L),R=(function V(l,O){if(l==null||n(l)!="object")return[];O==null&&(O=l);for(var ne=l.subject?[O]:[],H=Object.keys(l),Z=0;Z<H.length;++Z){var ce=H[Z],we=l[ce];ne.push.apply(ne,i(V(we,ce==="left"?we:O)))}return ne})(L).map(y);u.traverse(F,{enter:function(V,l){if(l!=null&&K.unshift(l),k(V,K,U))if(R.length)for(var O=0,ne=R.length;O<ne;++O){R[O](V,K,U)&&S(V,l,K);for(var H=0,Z=K.length;H<Z;++H){var ce=K.slice(H+1);R[O](K[H],ce,U)&&S(K[H],l,ce)}}else S(V,l,K)},leave:function(){K.shift()},keys:U&&U.visitorKeys,fallback:U&&U.fallback||"iteration"})}}function _(F,L,S){var U=[];return w(F,L,(function(K){U.push(K)}),S),U}function N(F){return c.parse(F)}function d(F,L,S){return _(F,N(L),S)}return d.parse=N,d.match=_,d.traverse=w,d.matches=function(F,L,S,U){return!L||!!F&&(S||(S=[]),y(L)(F,S,U))},d.query=d,d}))});var Zu=rn((ud,Yu)=>{Yu.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}});var Hs=rn((Pn,ec)=>{(function(e,t){typeof Pn=="object"&&typeof ec<"u"?t(Pn):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.acorn={}))})(Pn,(function(e){"use strict";var t=[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,31,4,33,15,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,199,7,137,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,55,9,7,0,259,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,481,1,61,4,4,5,9,7,3,6,31,3,149,2,12,2,9,1,3,0,33,1,1357,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,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],i=[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,13,65,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,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,5,18,21,18,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,18,0,182,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,24,43,22,0,239,18,16,0,2,12,2,33,125,0,80,921,103,111,6,206,13,310,2314,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,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7386,37,33,96,114,14,913,15,50,7710,3,2,6,2,1,2,296,10,0,30,2,3,0,15,4,8,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,340,2,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,129,15,6,55,50,49,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,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,4382,2,5773,3,7472,16,621,2467,541,1507,4938,6,8489,39815,11327],n="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7-\u05C9\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B53-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1AF0\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",s="\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\u0558\u0559\u0560-\u0588\u058B\u058C\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u208F-\u209F\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DD\uA7E2\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB6C\uAB6D\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",o={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"},u="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",c={5:u,"5module":u+" export import",6:u+" const class extends export import super"},h=/^in(stanceof)?$/,g=new RegExp("["+s+"]"),y=new RegExp("["+s+n+"]");function A(r,a){for(var p=65536,m=0;m<a.length;m+=2){if(p+=a[m],p>r)return!1;if(p+=a[m+1],p>=r)return!0}return!1}function v(r,a){return r<65?r===36:r<91?!0:r<97?r===95:r<123?!0:r<=65535?r>=170&&g.test(String.fromCharCode(r)):a===!1?!1:A(r,i)}function b(r,a){return r<48?r===36:r<58?!0:r<65?!1:r<91?!0:r<97?r===95:r<123?!0:r<=65535?r>=170&&y.test(String.fromCharCode(r)):a===!1?!1:A(r,i)||A(r,t)}var D=function(a,p){p===void 0&&(p={}),this.label=a,this.keyword=p.keyword,this.beforeExpr=!!p.beforeExpr,this.startsExpr=!!p.startsExpr,this.isLoop=!!p.isLoop,this.isAssign=!!p.isAssign,this.prefix=!!p.prefix,this.postfix=!!p.postfix,this.binop=p.binop||null,this.updateContext=null};function T(r,a){return new D(r,{beforeExpr:!0,binop:a})}var J={beforeExpr:!0},w={startsExpr:!0},_={};function N(r,a){return a===void 0&&(a={}),a.keyword=r,_[r]=new D(r,a)}var d={num:new D("num",w),regexp:new D("regexp",w),string:new D("string",w),name:new D("name",w),privateId:new D("privateId",w),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(",",J),semi:new D(";",J),colon:new D(":",J),dot:new D("."),question:new D("?",J),questionDot:new D("?."),arrow:new D("=>",J),template:new D("template"),invalidTemplate:new D("invalidTemplate"),ellipsis:new D("...",J),backQuote:new D("`",w),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:T("||",1),logicalAND:T("&&",2),bitwiseOR:T("|",3),bitwiseXOR:T("^",4),bitwiseAND:T("&",5),equality:T("==/!=/===/!==",6),relational:T("</>/<=/>=",7),bitShift:T("<</>>/>>>",8),plusMin:new D("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:T("%",10),star:T("*",10),slash:T("/",10),starstar:new D("**",{beforeExpr:!0}),coalesce:T("??",1),_break:N("break"),_case:N("case",J),_catch:N("catch"),_continue:N("continue"),_debugger:N("debugger"),_default:N("default",J),_do:N("do",{isLoop:!0,beforeExpr:!0}),_else:N("else",J),_finally:N("finally"),_for:N("for",{isLoop:!0}),_function:N("function",w),_if:N("if"),_return:N("return",J),_switch:N("switch"),_throw:N("throw",J),_try:N("try"),_var:N("var"),_const:N("const"),_while:N("while",{isLoop:!0}),_with:N("with"),_new:N("new",{beforeExpr:!0,startsExpr:!0}),_this:N("this",w),_super:N("super",w),_class:N("class",w),_extends:N("extends",J),_export:N("export"),_import:N("import",w),_null:N("null",w),_true:N("true",w),_false:N("false",w),_in:N("in",{beforeExpr:!0,binop:7}),_instanceof:N("instanceof",{beforeExpr:!0,binop:7}),_typeof:N("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:N("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:N("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},F=/\r\n?|\n|\u2028|\u2029/,L=new RegExp(F.source,"g");function S(r){return r===10||r===13||r===8232||r===8233}function U(r,a,p){p===void 0&&(p=r.length);for(var m=a;m<p;m++){var C=r.charCodeAt(m);if(S(C))return m<p-1&&C===13&&r.charCodeAt(m+1)===10?m+2:m+1}return-1}var K=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,k=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,R=Object.prototype,V=R.hasOwnProperty,l=R.toString,O=Object.hasOwn||(function(r,a){return V.call(r,a)}),ne=Array.isArray||(function(r){return l.call(r)==="[object Array]"}),H=Object.create(null);function Z(r){return H[r]||(H[r]=new RegExp("^(?:"+r.replace(/ /g,"|")+")$"))}function ce(r){return r<=65535?String.fromCharCode(r):(r-=65536,String.fromCharCode((r>>10)+55296,(r&1023)+56320))}var we=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Pe=function(a,p){this.line=a,this.column=p};Pe.prototype.offset=function(a){return new Pe(this.line,this.column+a)};var Oe=function(a,p,m){this.start=p,this.end=m,a.sourceFile!==null&&(this.source=a.sourceFile)};function Je(r,a){for(var p=1,m=0;;){var C=U(r,m,a);if(C<0)return new Pe(p,a-m);++p,m=C}}var st={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,startLocation:null,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},se=!1;function de(r){var a={};for(var p in st)a[p]=r&&O(r,p)?r[p]:st[p];if(a.ecmaVersion==="latest"?a.ecmaVersion=1e8:a.ecmaVersion==null?(!se&&typeof console=="object"&&console.warn&&(se=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
6
|
+
Defaulting to 2020, but this will stop working in the future.`)),a.ecmaVersion=11):a.ecmaVersion>=2015&&(a.ecmaVersion-=2009),a.allowReserved==null&&(a.allowReserved=a.ecmaVersion<5),(!r||r.allowHashBang==null)&&(a.allowHashBang=a.ecmaVersion>=14),ne(a.onToken)){var m=a.onToken;a.onToken=function(C){return m.push(C)}}if(ne(a.onComment)&&(a.onComment=ye(a,a.onComment)),a.sourceType==="commonjs"&&a.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return a}function ye(r,a){return function(p,m,C,P,I,W){var ie={type:p?"Block":"Line",value:m,start:C,end:P};r.locations&&(ie.loc=new Oe(this,I,W)),r.ranges&&(ie.range=[C,P]),a.push(ie)}}var Se=1,q=2,ae=4,Q=8,te=16,ke=32,Be=64,Qe=128,Fe=256,We=512,ht=1024,mt=Se|q|Fe;function lr(r,a){return q|(r?ae:0)|(a?Q:0)}var Bt=0,Vt=1,yt=2,sr=3,Cr=4,hi=5,Xe=function(a,p,m){this.options=a=de(a),this.sourceFile=a.sourceFile,this.keywords=Z(c[a.ecmaVersion>=6?6:a.sourceType==="module"?"5module":5]);var C="";a.allowReserved!==!0&&(C=o[a.ecmaVersion>=6?6:a.ecmaVersion===5?5:3],a.sourceType==="module"&&(C+=" await")),this.reservedWords=Z(C);var P=(C?C+" ":"")+o.strict;this.reservedWordsStrict=Z(P),this.reservedWordsStrictBind=Z(P+" "+o.strictBind),this.input=String(p),this.containsEsc=!1,this.pos=m||0,this.curLine=1,a.startLocation?(this.lineStart=this.pos-a.startLocation.column,this.curLine=a.startLocation.line):m?(this.lineStart=this.input.lastIndexOf(`
|
|
7
|
+
`,m-1)+1,this.options.locations&&(this.curLine=this.input.slice(0,this.lineStart).split(F).length)):this.lineStart=0,this.type=d.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=a.sourceType==="module",this.strict=this.inModule||a.strict===!0||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&&a.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?q:Se),this.regexpState=null,this.privateNameStack=[]},ut={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};Xe.prototype.parse=function(){var a=this,p=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return a.parseTopLevel(p)})},ut.inFunction.get=function(){return(this.currentVarScope().flags&q)>0},ut.inGenerator.get=function(){return(this.currentVarScope().flags&Q)>0},ut.inAsync.get=function(){return(this.currentVarScope().flags&ae)>0},ut.canAwait.get=function(){for(var r=this.scopeStack.length-1;r>=0;r--){var a=this.scopeStack[r],p=a.flags;if(p&(Fe|We))return!1;if(p&q)return(p&ae)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},ut.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&Se)},ut.allowSuper.get=function(){var r=this.currentThisScope(),a=r.flags;return(a&Be)>0||this.options.allowSuperOutsideMethod},ut.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Qe)>0},ut.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},ut.allowNewDotTarget.get=function(){for(var r=this.scopeStack.length-1;r>=0;r--){var a=this.scopeStack[r],p=a.flags;if(p&(Fe|We)||p&q&&!(p&te))return!0}return!1},ut.allowUsing.get=function(){var r=this.currentScope(),a=r.flags;return!(a&ht||!this.inModule&&a&Se)},ut.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Fe)>0},Xe.extend=function(){for(var a=[],p=arguments.length;p--;)a[p]=arguments[p];for(var m=this,C=0;C<a.length;C++)m=a[C](m);return m},Xe.parse=function(a,p){return new this(p,a).parse()},Xe.parseExpressionAt=function(a,p,m){var C=new this(m,a,p);return C.nextToken(),C.parseExpression()},Xe.tokenizer=function(a,p){return new this(p,a)},Object.defineProperties(Xe.prototype,ut);var Ye=Xe.prototype,Un=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Ye.strictDirective=function(r){if(this.options.ecmaVersion<5)return!1;for(;;){k.lastIndex=r,r+=k.exec(this.input)[0].length;var a=Un.exec(this.input.slice(r));if(!a)return!1;if((a[1]||a[2])==="use strict"){k.lastIndex=r+a[0].length;var p=k.exec(this.input),m=p.index+p[0].length,C=this.input.charAt(m);return C===";"||C==="}"||F.test(p[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(C)||C==="!"&&this.input.charAt(m+1)==="="||C==="i"&&zi(this,m))}r+=a[0].length,k.lastIndex=r,r+=k.exec(this.input)[0].length,this.input[r]===";"&&r++}};function zi(r,a){for(var p=a+1,m=Math.min(r.input.length,a+11);p<m;){var C=r.fullCharCodeAt(p);if(!b(C,!0))break;p+=C<=65535?1:2}return p===a+2&&r.input.slice(a,p)==="in"||p===a+10&&r.input.slice(a,p)==="instanceof"}Ye.eat=function(r){return this.type===r?(this.next(),!0):!1},Ye.isContextual=function(r){return this.type===d.name&&this.value===r&&!this.containsEsc},Ye.eatContextual=function(r){return this.isContextual(r)?(this.next(),!0):!1},Ye.catchStackOverflow=function(r){try{return r()}catch(a){if(a instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(a.message)||/\btoo much recursion\b/i.test(a.message)))this.raise(this.start,"Not enough stack space to parse input");else throw a}},Ye.expectContextual=function(r){this.eatContextual(r)||this.unexpected()},Ye.canInsertSemicolon=function(){return this.type===d.eof||this.type===d.braceR||F.test(this.input.slice(this.lastTokEnd,this.start))},Ye.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Ye.semicolon=function(){!this.eat(d.semi)&&!this.insertSemicolon()&&this.unexpected()},Ye.afterTrailingComma=function(r,a){if(this.type===r)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),a||this.next(),!0},Ye.expect=function(r){this.eat(r)||this.unexpected()},Ye.unexpected=function(r){this.raise(r??this.start,"Unexpected token")};var Pr=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ye.checkPatternErrors=function(r,a){if(r){r.trailingComma>-1&&this.raiseRecoverable(r.trailingComma,"Comma is not permitted after the rest element");var p=a?r.parenthesizedAssign:r.parenthesizedBind;p>-1&&this.raiseRecoverable(p,a?"Assigning to rvalue":"Parenthesized pattern")}},Ye.checkExpressionErrors=function(r,a){if(!r)return!1;var p=r.shorthandAssign,m=r.doubleProto;if(!a)return p>=0||m>=0;p>=0&&this.raise(p,"Shorthand property assignments are valid only in destructuring patterns"),m>=0&&this.raiseRecoverable(m,"Redefinition of __proto__ property")},Ye.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")},Ye.isSimpleAssignTarget=function(r){return r.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(r.expression):r.type==="Identifier"||r.type==="MemberExpression"};var ue=Xe.prototype;ue.parseTopLevel=function(r){var a=Object.create(null);for(r.body||(r.body=[]);this.type!==d.eof;){var p=this.parseStatement(null,!0,a);r.body.push(p)}if(this.inModule)for(var m=0,C=Object.keys(this.undefinedExports);m<C.length;m+=1){var P=C[m];this.raiseRecoverable(this.undefinedExports[P].start,"Export '"+P+"' is not defined")}return this.adaptDirectivePrologue(r.body),this.next(),r.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(r,"Program")};var $r={kind:"loop"},Hi={kind:"switch"};ue.isLet=function(r){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;k.lastIndex=this.pos;var a=k.exec(this.input),p=this.pos+a[0].length,m=this.fullCharCodeAt(p);if(m===91||m===92)return!0;if(r)return!1;if(m===123)return!0;if(v(m)){var C=p;do p+=m<=65535?1:2;while(b(m=this.fullCharCodeAt(p)));if(m===92)return!0;var P=this.input.slice(C,p);if(!h.test(P))return!0}return!1},ue.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;k.lastIndex=this.pos;var r=k.exec(this.input),a=this.pos+r[0].length,p;return!F.test(this.input.slice(this.pos,a))&&this.input.slice(a,a+8)==="function"&&(a+8===this.input.length||!(b(p=this.fullCharCodeAt(a+8))||p===92))},ue.isUsingKeyword=function(r,a){if(this.options.ecmaVersion<17||!this.isContextual(r?"await":"using"))return!1;k.lastIndex=this.pos;var p=k.exec(this.input),m=this.pos+p[0].length;if(F.test(this.input.slice(this.pos,m)))return!1;if(r){var C=m+5,P;if(this.input.slice(m,C)!=="using"||C===this.input.length||b(P=this.fullCharCodeAt(C))||P===92)return!1;k.lastIndex=C;var I=k.exec(this.input);if(m=C+I[0].length,I&&F.test(this.input.slice(C,m)))return!1}var W=this.fullCharCodeAt(m);if(!v(W)&&W!==92)return!1;var ie=m;do m+=W<=65535?1:2;while(b(W=this.fullCharCodeAt(m)));if(W===92)return!0;var Ae=this.input.slice(ie,m);if(h.test(Ae))return!1;if(a&&!r&&Ae==="of"){k.lastIndex=m;var Te=k.exec(this.input);if(m=m+Te[0].length,this.input.charCodeAt(m)!==61||(W=this.input.charCodeAt(m+1))===61||W===62)return!1}return!0},ue.isAwaitUsing=function(r){return this.isUsingKeyword(!0,r)},ue.isUsing=function(r){return this.isUsingKeyword(!1,r)},ue.parseStatement=function(r,a,p){var m=this.type,C=this.startNode(),P;switch(this.isLet(r)&&(m=d._var,P="let"),m){case d._break:case d._continue:return this.parseBreakContinueStatement(C,m.keyword);case d._debugger:return this.parseDebuggerStatement(C);case d._do:return this.parseDoStatement(C);case d._for:return this.parseForStatement(C);case d._function:return r&&(this.strict||r!=="if"&&r!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(C,!1,!r);case d._class:return r&&this.unexpected(),this.parseClass(C,!0);case d._if:return this.parseIfStatement(C);case d._return:return this.parseReturnStatement(C);case d._switch:return this.parseSwitchStatement(C);case d._throw:return this.parseThrowStatement(C);case d._try:return this.parseTryStatement(C);case d._const:case d._var:return P=P||this.value,r&&P!=="var"&&this.unexpected(),this.parseVarStatement(C,P);case d._while:return this.parseWhileStatement(C);case d._with:return this.parseWithStatement(C);case d.braceL:return this.parseBlock(!0,C);case d.semi:return this.parseEmptyStatement(C);case d._export:case d._import:if(this.options.ecmaVersion>10&&m===d._import){k.lastIndex=this.pos;var I=k.exec(this.input),W=this.pos+I[0].length,ie=this.input.charCodeAt(W);if(ie===40||ie===46)return this.parseExpressionStatement(C,this.parseExpression())}return this.options.allowImportExportEverywhere||(a||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'")),m===d._import?this.parseImport(C):this.parseExport(C,p);default:if(this.isAsyncFunction())return r&&this.unexpected(),this.next(),this.parseFunctionStatement(C,!0,!r);var Ae=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(Ae)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),r&&this.raise(this.start,"Using declaration is not allowed in single-statement positions"),Ae==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(C,!1,Ae),this.semicolon(),this.finishNode(C,"VariableDeclaration");var Te=this.value,et=this.parseExpression();return m===d.name&&et.type==="Identifier"&&this.eat(d.colon)?this.parseLabeledStatement(C,Te,et,r):this.parseExpressionStatement(C,et)}},ue.parseBreakContinueStatement=function(r,a){var p=a==="break";this.next(),this.eat(d.semi)||this.insertSemicolon()?r.label=null:this.type!==d.name?this.unexpected():(r.label=this.parseIdent(),this.semicolon());for(var m=0;m<this.labels.length;++m){var C=this.labels[m];if((r.label==null||C.name===r.label.name)&&(C.kind!=null&&(p||C.kind==="loop")||r.label&&p))break}return m===this.labels.length&&this.raise(r.start,"Unsyntactic "+a),this.finishNode(r,p?"BreakStatement":"ContinueStatement")},ue.parseDebuggerStatement=function(r){return this.next(),this.semicolon(),this.finishNode(r,"DebuggerStatement")},ue.parseDoStatement=function(r){return this.next(),this.labels.push($r),r.body=this.parseStatement("do"),this.labels.pop(),this.expect(d._while),r.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(d.semi):this.semicolon(),this.finishNode(r,"DoWhileStatement")},ue.parseForStatement=function(r){this.next();var a=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push($r),this.enterScope(0),this.expect(d.parenL),this.type===d.semi)return a>-1&&this.unexpected(a),this.parseFor(r,null);var p=this.isLet();if(this.type===d._var||this.type===d._const||p){var m=this.startNode(),C=p?"let":this.value;return this.next(),this.parseVar(m,!0,C),this.finishNode(m,"VariableDeclaration"),this.parseForAfterInit(r,m,a)}var P=this.isContextual("let"),I=!1,W=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(W){var ie=this.startNode();return this.next(),W==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(ie,!0,W),this.finishNode(ie,"VariableDeclaration"),this.parseForAfterInit(r,ie,a)}var Ae=this.containsEsc,Te=new Pr,et=this.start,Et=a>-1?this.parseExprSubscripts(Te,"await"):this.parseExpression(!0,Te);return this.type===d._in||(I=this.options.ecmaVersion>=6&&this.isContextual("of"))?(a>-1?(this.type===d._in&&this.unexpected(a),r.await=!0):I&&this.options.ecmaVersion>=8&&(Et.start===et&&!Ae&&Et.type==="Identifier"&&Et.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(r.await=!1)),P&&I&&this.raise(Et.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(Et,!1,Te),this.checkLValPattern(Et),this.parseForIn(r,Et)):(this.checkExpressionErrors(Te,!0),a>-1&&this.unexpected(a),this.parseFor(r,Et))},ue.parseForAfterInit=function(r,a,p){return(this.type===d._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&a.declarations.length===1?(this.type===d._in?((a.kind==="using"||a.kind==="await using")&&!a.declarations[0].init&&this.raise(this.start,"Using declaration is not allowed in for-in loops"),this.options.ecmaVersion>=9&&p>-1&&this.unexpected(p)):this.options.ecmaVersion>=9&&(r.await=p>-1),this.parseForIn(r,a)):(p>-1&&this.unexpected(p),this.parseFor(r,a))},ue.parseFunctionStatement=function(r,a,p){return this.next(),this.parseFunction(r,Ar|(p?0:Wr),!1,a)},ue.parseIfStatement=function(r){return this.next(),r.test=this.parseParenExpression(),r.consequent=this.parseStatement("if"),r.alternate=this.eat(d._else)?this.parseStatement("if"):null,this.finishNode(r,"IfStatement")},ue.parseReturnStatement=function(r){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(d.semi)||this.insertSemicolon()?r.argument=null:(r.argument=this.parseExpression(),this.semicolon()),this.finishNode(r,"ReturnStatement")},ue.parseSwitchStatement=function(r){this.next(),r.discriminant=this.parseParenExpression(),r.cases=[],this.expect(d.braceL),this.labels.push(Hi),this.enterScope(ht);for(var a,p=!1;this.type!==d.braceR;)if(this.type===d._case||this.type===d._default){var m=this.type===d._case;a&&this.finishNode(a,"SwitchCase"),r.cases.push(a=this.startNode()),a.consequent=[],this.next(),m?a.test=this.parseExpression():(p&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),p=!0,a.test=null),this.expect(d.colon)}else a||this.unexpected(),a.consequent.push(this.parseStatement(null));return this.exitScope(),a&&this.finishNode(a,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(r,"SwitchStatement")},ue.parseThrowStatement=function(r){return this.next(),F.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),r.argument=this.parseExpression(),this.semicolon(),this.finishNode(r,"ThrowStatement")};var Qi=[];ue.parseCatchClauseParam=function(){var r=this.parseBindingAtom(),a=r.type==="Identifier";return this.enterScope(a?ke:0),this.checkLValPattern(r,a?Cr:yt),this.expect(d.parenR),r},ue.parseTryStatement=function(r){if(this.next(),r.block=this.parseBlock(),r.handler=null,this.type===d._catch){var a=this.startNode();this.next(),this.eat(d.parenL)?a.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),a.param=null,this.enterScope(0)),a.body=this.parseBlock(!1),this.exitScope(),r.handler=this.finishNode(a,"CatchClause")}return r.finalizer=this.eat(d._finally)?this.parseBlock():null,!r.handler&&!r.finalizer&&this.raise(r.start,"Missing catch or finally clause"),this.finishNode(r,"TryStatement")},ue.parseVarStatement=function(r,a,p){return this.next(),this.parseVar(r,!1,a,p),this.semicolon(),this.finishNode(r,"VariableDeclaration")},ue.parseWhileStatement=function(r){return this.next(),r.test=this.parseParenExpression(),this.labels.push($r),r.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(r,"WhileStatement")},ue.parseWithStatement=function(r){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),r.object=this.parseParenExpression(),r.body=this.parseStatement("with"),this.finishNode(r,"WithStatement")},ue.parseEmptyStatement=function(r){return this.next(),this.finishNode(r,"EmptyStatement")},ue.parseLabeledStatement=function(r,a,p,m){for(var C=0,P=this.labels;C<P.length;C+=1){var I=P[C];I.name===a&&this.raise(p.start,"Label '"+a+"' is already declared")}for(var W=this.type.isLoop?"loop":this.type===d._switch?"switch":null,ie=this.labels.length-1;ie>=0;ie--){var Ae=this.labels[ie];if(Ae.statementStart===r.start)Ae.statementStart=this.start,Ae.kind=W;else break}return this.labels.push({name:a,kind:W,statementStart:this.start}),r.body=this.parseStatement(m?m.indexOf("label")===-1?m+"label":m:"label"),this.labels.pop(),r.label=p,this.finishNode(r,"LabeledStatement")},ue.parseExpressionStatement=function(r,a){return r.expression=a,this.semicolon(),this.finishNode(r,"ExpressionStatement")},ue.parseBlock=function(r,a,p){for(r===void 0&&(r=!0),a===void 0&&(a=this.startNode()),a.body=[],this.expect(d.braceL),r&&this.enterScope(0);this.type!==d.braceR;){var m=this.parseStatement(null);a.body.push(m)}return p&&(this.strict=!1),this.next(),r&&this.exitScope(),this.finishNode(a,"BlockStatement")},ue.parseFor=function(r,a){return r.init=a,this.expect(d.semi),r.test=this.type===d.semi?null:this.parseExpression(),this.expect(d.semi),r.update=this.type===d.parenR?null:this.parseExpression(),this.expect(d.parenR),r.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(r,"ForStatement")},ue.parseForIn=function(r,a){var p=this.type===d._in;return this.next(),a.type==="VariableDeclaration"&&a.declarations[0].init!=null&&(!p||this.options.ecmaVersion<8||this.strict||a.kind!=="var"||a.declarations[0].id.type!=="Identifier")&&this.raise(a.start,(p?"for-in":"for-of")+" loop variable declaration may not have an initializer"),r.left=a,r.right=p?this.parseExpression():this.parseMaybeAssign(),this.expect(d.parenR),r.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(r,p?"ForInStatement":"ForOfStatement")},ue.parseVar=function(r,a,p,m){for(r.declarations=[],r.kind=p;;){var C=this.startNode();if(this.parseVarId(C,p),this.eat(d.eq)?C.init=this.parseMaybeAssign(a):!m&&p==="const"&&!(this.type===d._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!m&&(p==="using"||p==="await using")&&this.options.ecmaVersion>=17&&this.type!==d._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+p+" declaration"):!m&&C.id.type!=="Identifier"&&!(a&&(this.type===d._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):C.init=null,r.declarations.push(this.finishNode(C,"VariableDeclarator")),!this.eat(d.comma))break}return r},ue.parseVarId=function(r,a){r.id=a==="using"||a==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(r.id,a==="var"?Vt:yt,!1)};var Ar=1,Wr=2,fi=4;ue.parseFunction=function(r,a,p,m,C){this.initFunction(r),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!m)&&(this.type===d.star&&a&Wr&&this.unexpected(),r.generator=this.eat(d.star)),this.options.ecmaVersion>=8&&(r.async=!!m),a&Ar&&(r.id=a&fi&&this.type!==d.name?null:this.parseIdent(),r.id&&!(a&Wr)&&this.checkLValSimple(r.id,this.strict||r.generator||r.async?this.treatFunctionsAsVar?Vt:yt:sr));var P=this.yieldPos,I=this.awaitPos,W=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(lr(r.async,r.generator)),a&Ar||(r.id=this.type===d.name?this.parseIdent():null),this.parseFunctionParams(r),this.parseFunctionBody(r,p,!1,C),this.yieldPos=P,this.awaitPos=I,this.awaitIdentPos=W,this.finishNode(r,a&Ar?"FunctionDeclaration":"FunctionExpression")},ue.parseFunctionParams=function(r){this.expect(d.parenL),r.params=this.parseBindingList(d.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ue.parseClass=function(r,a){this.next();var p=this.strict;this.strict=!0,this.parseClassId(r,a),this.parseClassSuper(r);var m=this.enterClassBody(),C=this.startNode(),P=!1;for(C.body=[],this.expect(d.braceL);this.type!==d.braceR;){var I=this.parseClassElement(r.superClass!==null);I&&(C.body.push(I),I.type==="MethodDefinition"&&I.kind==="constructor"?(P&&this.raiseRecoverable(I.start,"Duplicate constructor in the same class"),P=!0):I.key&&I.key.type==="PrivateIdentifier"&&Xi(m,I)&&this.raiseRecoverable(I.key.start,"Identifier '#"+I.key.name+"' has already been declared"))}return this.strict=p,this.next(),r.body=this.finishNode(C,"ClassBody"),this.exitClassBody(),this.finishNode(r,a?"ClassDeclaration":"ClassExpression")},ue.parseClassElement=function(r){if(this.eat(d.semi))return null;var a=this.options.ecmaVersion,p=this.startNode(),m="",C=!1,P=!1,I="method",W=!1;if(this.eatContextual("static")){if(a>=13&&this.eat(d.braceL))return this.parseClassStaticBlock(p),p;this.isClassElementNameStart()||this.type===d.star?W=!0:m="static"}if(p.static=W,!m&&a>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===d.star)&&!this.canInsertSemicolon()?P=!0:m="async"),!m&&(a>=9||!P)&&this.eat(d.star)&&(C=!0),!m&&!P&&!C){var ie=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?I=ie:m=ie)}if(m?(p.computed=!1,p.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),p.key.name=m,this.finishNode(p.key,"Identifier")):this.parseClassElementName(p),a<13||this.type===d.parenL||I!=="method"||C||P){var Ae=!p.static&&Gr(p,"constructor"),Te=Ae&&r;Ae&&I!=="method"&&this.raise(p.key.start,"Constructor can't have get/set modifier"),p.kind=Ae?"constructor":I,this.parseClassMethod(p,C,P,Te)}else this.parseClassField(p);return p},ue.isClassElementNameStart=function(){return this.type===d.name||this.type===d.privateId||this.type===d.num||this.type===d.string||this.type===d.bracketL||this.type.keyword},ue.parseClassElementName=function(r){this.type===d.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),r.computed=!1,r.key=this.parsePrivateIdent()):this.parsePropertyName(r)},ue.parseClassMethod=function(r,a,p,m){var C=r.key;r.kind==="constructor"?(a&&this.raise(C.start,"Constructor can't be a generator"),p&&this.raise(C.start,"Constructor can't be an async method")):r.static&&Gr(r,"prototype")&&this.raise(C.start,"Classes may not have a static property named prototype");var P=r.value=this.parseMethod(a,p,m);return r.kind==="get"&&P.params.length!==0&&this.raiseRecoverable(P.start,"getter should have no params"),r.kind==="set"&&P.params.length!==1&&this.raiseRecoverable(P.start,"setter should have exactly one param"),r.kind==="set"&&P.params[0].type==="RestElement"&&this.raiseRecoverable(P.params[0].start,"Setter cannot use rest params"),this.finishNode(r,"MethodDefinition")},ue.parseClassField=function(r){return Gr(r,"constructor")?this.raise(r.key.start,"Classes can't have a field named 'constructor'"):r.static&&Gr(r,"prototype")&&this.raise(r.key.start,"Classes can't have a static field named 'prototype'"),this.eat(d.eq)?(this.enterScope(We|Be),r.value=this.parseMaybeAssign(),this.exitScope()):r.value=null,this.semicolon(),this.finishNode(r,"PropertyDefinition")},ue.parseClassStaticBlock=function(r){r.body=[];var a=this.labels;for(this.labels=[],this.enterScope(Fe|Be);this.type!==d.braceR;){var p=this.parseStatement(null);r.body.push(p)}return this.next(),this.exitScope(),this.labels=a,this.finishNode(r,"StaticBlock")},ue.parseClassId=function(r,a){this.type===d.name?(r.id=this.parseIdent(),a&&this.checkLValSimple(r.id,yt,!1)):(a===!0&&this.unexpected(),r.id=null)},ue.parseClassSuper=function(r){r.superClass=this.eat(d._extends)?this.parseExprSubscripts(null,!1):null},ue.enterClassBody=function(){var r={declared:Object.create(null),used:[]};return this.privateNameStack.push(r),r.declared},ue.exitClassBody=function(){var r=this.privateNameStack.pop(),a=r.declared,p=r.used;if(this.options.checkPrivateFields)for(var m=this.privateNameStack.length,C=m===0?null:this.privateNameStack[m-1],P=0;P<p.length;++P){var I=p[P];O(a,I.name)||(C?C.used.push(I):this.raiseRecoverable(I.start,"Private field '#"+I.name+"' must be declared in an enclosing class"))}};function Xi(r,a){var p=a.key.name,m=r[p],C="true";return a.type==="MethodDefinition"&&(a.kind==="get"||a.kind==="set")&&(C=(a.static?"s":"i")+a.kind),m==="iget"&&C==="iset"||m==="iset"&&C==="iget"||m==="sget"&&C==="sset"||m==="sset"&&C==="sget"?(r[p]="true",!1):m?!0:(r[p]=C,!1)}function Gr(r,a){var p=r.computed,m=r.key;return!p&&(m.type==="Identifier"&&m.name===a||m.type==="Literal"&&m.value===a)}ue.parseExportAllDeclaration=function(r,a){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(r.exported=this.parseModuleExportName(),this.checkExport(a,r.exported,this.lastTokStart)):r.exported=null),this.expectContextual("from"),this.type!==d.string&&this.unexpected(),r.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(r.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(r,"ExportAllDeclaration")},ue.parseExport=function(r,a){if(this.next(),this.eat(d.star))return this.parseExportAllDeclaration(r,a);if(this.eat(d._default))return this.checkExport(a,"default",this.lastTokStart),r.declaration=this.parseExportDefaultDeclaration(),this.finishNode(r,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())r.declaration=this.parseExportDeclaration(r),r.declaration.type==="VariableDeclaration"?this.checkVariableExport(a,r.declaration.declarations):this.checkExport(a,r.declaration.id,r.declaration.id.start),r.specifiers=[],r.source=null,this.options.ecmaVersion>=16&&(r.attributes=[]);else{if(r.declaration=null,r.specifiers=this.parseExportSpecifiers(a),this.eatContextual("from"))this.type!==d.string&&this.unexpected(),r.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(r.attributes=this.parseWithClause());else{for(var p=0,m=r.specifiers;p<m.length;p+=1){var C=m[p];this.checkUnreserved(C.local),this.checkLocalExport(C.local),C.local.type==="Literal"&&this.raise(C.local.start,"A string literal cannot be used as an exported binding without `from`.")}r.source=null,this.options.ecmaVersion>=16&&(r.attributes=[])}this.semicolon()}return this.finishNode(r,"ExportNamedDeclaration")},ue.parseExportDeclaration=function(r){return this.parseStatement(null)},ue.parseExportDefaultDeclaration=function(){var r;if(this.type===d._function||(r=this.isAsyncFunction())){var a=this.startNode();return this.next(),r&&this.next(),this.parseFunction(a,Ar|fi,!1,r)}else if(this.type===d._class){var p=this.startNode();return this.parseClass(p,"nullableID")}else{var m=this.parseMaybeAssign();return this.semicolon(),m}},ue.checkExport=function(r,a,p){r&&(typeof a!="string"&&(a=a.type==="Identifier"?a.name:a.value),O(r,a)&&this.raiseRecoverable(p,"Duplicate export '"+a+"'"),r[a]=!0)},ue.checkPatternExport=function(r,a){var p=a.type;if(p==="Identifier")this.checkExport(r,a,a.start);else if(p==="ObjectPattern")for(var m=0,C=a.properties;m<C.length;m+=1){var P=C[m];this.checkPatternExport(r,P)}else if(p==="ArrayPattern")for(var I=0,W=a.elements;I<W.length;I+=1){var ie=W[I];ie&&this.checkPatternExport(r,ie)}else p==="Property"?this.checkPatternExport(r,a.value):p==="AssignmentPattern"?this.checkPatternExport(r,a.left):p==="RestElement"&&this.checkPatternExport(r,a.argument)},ue.checkVariableExport=function(r,a){if(r)for(var p=0,m=a;p<m.length;p+=1){var C=m[p];this.checkPatternExport(r,C.id)}},ue.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},ue.parseExportSpecifier=function(r){var a=this.startNode();return a.local=this.parseModuleExportName(),a.exported=this.eatContextual("as")?this.parseModuleExportName():a.local,this.checkExport(r,a.exported,a.exported.start),this.finishNode(a,"ExportSpecifier")},ue.parseExportSpecifiers=function(r){var a=[],p=!0;for(this.expect(d.braceL);!this.eat(d.braceR);){if(p)p=!1;else if(this.expect(d.comma),this.afterTrailingComma(d.braceR))break;a.push(this.parseExportSpecifier(r))}return a},ue.parseImport=function(r){return this.next(),this.type===d.string?(r.specifiers=Qi,r.source=this.parseExprAtom()):(r.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),r.source=this.type===d.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(r.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(r,"ImportDeclaration")},ue.parseImportSpecifier=function(){var r=this.startNode();return r.imported=this.parseModuleExportName(),this.eatContextual("as")?r.local=this.parseIdent():(this.checkUnreserved(r.imported),r.local=r.imported),this.checkLValSimple(r.local,yt),this.finishNode(r,"ImportSpecifier")},ue.parseImportDefaultSpecifier=function(){var r=this.startNode();return r.local=this.parseIdent(),this.checkLValSimple(r.local,yt),this.finishNode(r,"ImportDefaultSpecifier")},ue.parseImportNamespaceSpecifier=function(){var r=this.startNode();return this.next(),this.expectContextual("as"),r.local=this.parseIdent(),this.checkLValSimple(r.local,yt),this.finishNode(r,"ImportNamespaceSpecifier")},ue.parseImportSpecifiers=function(){var r=[],a=!0;if(this.type===d.name&&(r.push(this.parseImportDefaultSpecifier()),!this.eat(d.comma)))return r;if(this.type===d.star)return r.push(this.parseImportNamespaceSpecifier()),r;for(this.expect(d.braceL);!this.eat(d.braceR);){if(a)a=!1;else if(this.expect(d.comma),this.afterTrailingComma(d.braceR))break;r.push(this.parseImportSpecifier())}return r},ue.parseWithClause=function(){var r=[];if(!this.eat(d._with))return r;this.expect(d.braceL);for(var a={},p=!0;!this.eat(d.braceR);){if(p)p=!1;else if(this.expect(d.comma),this.afterTrailingComma(d.braceR))break;var m=this.parseImportAttribute(),C=m.key.type==="Identifier"?m.key.name:m.key.value;O(a,C)&&this.raiseRecoverable(m.key.start,"Duplicate attribute key '"+C+"'"),a[C]=!0,r.push(m)}return r},ue.parseImportAttribute=function(){var r=this.startNode();return r.key=this.type===d.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(d.colon),this.type!==d.string&&this.unexpected(),r.value=this.parseExprAtom(),this.finishNode(r,"ImportAttribute")},ue.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===d.string){var r=this.parseLiteral(this.value);return we.test(r.value)&&this.raise(r.start,"An export name cannot include a lone surrogate."),r}return this.parseIdent(!0)},ue.adaptDirectivePrologue=function(r){for(var a=0;a<r.length&&this.isDirectiveCandidate(r[a]);++a)r[a].directive=r[a].expression.raw.slice(1,-1)},ue.isDirectiveCandidate=function(r){return this.options.ecmaVersion>=5&&r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&(this.input[r.start]==='"'||this.input[r.start]==="'")};var It=Xe.prototype;It.toAssignable=function(r,a,p){if(this.options.ecmaVersion>=6&&r)switch(r.type){case"Identifier":this.inAsync&&r.name==="await"&&this.raise(r.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":r.type="ObjectPattern",p&&this.checkPatternErrors(p,!0);for(var m=0,C=r.properties;m<C.length;m+=1){var P=C[m];this.toAssignable(P,a),P.type==="RestElement"&&(P.argument.type==="ArrayPattern"||P.argument.type==="ObjectPattern")&&this.raise(P.argument.start,"Unexpected token")}break;case"Property":r.kind!=="init"&&this.raise(r.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(r.value,a);break;case"ArrayExpression":r.type="ArrayPattern",p&&this.checkPatternErrors(p,!0),this.toAssignableList(r.elements,a);break;case"SpreadElement":r.type="RestElement",this.toAssignable(r.argument,a),r.argument.type==="AssignmentPattern"&&this.raise(r.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":r.operator!=="="&&this.raise(r.left.end,"Only '=' operator can be used for specifying default value."),r.type="AssignmentPattern",delete r.operator,this.toAssignable(r.left,a);break;case"ParenthesizedExpression":this.toAssignable(r.expression,a,p);break;case"ChainExpression":this.raiseRecoverable(r.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!a)break;default:this.raise(r.start,"Assigning to rvalue")}else p&&this.checkPatternErrors(p,!0);return r},It.toAssignableList=function(r,a){for(var p=r.length,m=0;m<p;m++){var C=r[m];C&&this.toAssignable(C,a)}if(p){var P=r[p-1];this.options.ecmaVersion===6&&a&&P&&P.type==="RestElement"&&P.argument.type!=="Identifier"&&this.unexpected(P.argument.start)}return r},It.parseSpread=function(r){var a=this.startNode();return this.next(),a.argument=this.parseMaybeAssign(!1,r),this.finishNode(a,"SpreadElement")},It.parseRestBinding=function(){var r=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==d.name&&this.unexpected(),r.argument=this.parseBindingAtom(),this.finishNode(r,"RestElement")},It.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case d.bracketL:var r=this.startNode();return this.next(),r.elements=this.parseBindingList(d.bracketR,!0,!0),this.finishNode(r,"ArrayPattern");case d.braceL:return this.parseObj(!0)}return this.parseIdent()},It.parseBindingList=function(r,a,p,m){for(var C=[],P=!0;!this.eat(r);)if(P?P=!1:this.expect(d.comma),a&&this.type===d.comma)C.push(null);else{if(p&&this.afterTrailingComma(r))break;if(this.type===d.ellipsis){var I=this.parseRestBinding();this.parseBindingListItem(I),C.push(I),this.type===d.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(r);break}else C.push(this.parseAssignableListItem(m))}return C},It.parseAssignableListItem=function(r){var a=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(a),a},It.parseBindingListItem=function(r){return r},It.parseMaybeDefault=function(r,a,p){if(p=p||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(d.eq))return p;var m=this.startNodeAt(r,a);return m.left=p,m.right=this.parseMaybeAssign(),this.finishNode(m,"AssignmentPattern")},It.checkLValSimple=function(r,a,p){a===void 0&&(a=Bt);var m=a!==Bt;switch(r.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(r.name)&&this.raiseRecoverable(r.start,(m?"Binding ":"Assigning to ")+r.name+" in strict mode"),m&&(a===yt&&r.name==="let"&&this.raiseRecoverable(r.start,"let is disallowed as a lexically bound name"),p&&(O(p,r.name)&&this.raiseRecoverable(r.start,"Argument name clash"),p[r.name]=!0),a!==hi&&this.declareName(r.name,a,r.start));break;case"ChainExpression":this.raiseRecoverable(r.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":m&&this.raiseRecoverable(r.start,"Binding member expression");break;case"ParenthesizedExpression":return m&&this.raiseRecoverable(r.start,"Binding parenthesized expression"),this.checkLValSimple(r.expression,a,p);default:this.raise(r.start,(m?"Binding":"Assigning to")+" rvalue")}},It.checkLValPattern=function(r,a,p){switch(a===void 0&&(a=Bt),r.type){case"ObjectPattern":for(var m=0,C=r.properties;m<C.length;m+=1){var P=C[m];this.checkLValInnerPattern(P,a,p)}break;case"ArrayPattern":for(var I=0,W=r.elements;I<W.length;I+=1){var ie=W[I];ie&&this.checkLValInnerPattern(ie,a,p)}break;default:this.checkLValSimple(r,a,p)}},It.checkLValInnerPattern=function(r,a,p){switch(a===void 0&&(a=Bt),r.type){case"Property":this.checkLValInnerPattern(r.value,a,p);break;case"AssignmentPattern":this.checkLValPattern(r.left,a,p);break;case"RestElement":this.checkLValPattern(r.argument,a,p);break;default:this.checkLValPattern(r,a,p)}};var Tt=function(a,p,m,C,P){this.token=a,this.isExpr=!!p,this.preserveSpace=!!m,this.override=C,this.generator=!!P},ze={b_stat:new Tt("{",!1),b_expr:new Tt("{",!0),b_tmpl:new Tt("${",!1),p_stat:new Tt("(",!1),p_expr:new Tt("(",!0),q_tmpl:new Tt("`",!0,!0,function(r){return r.tryReadTemplateToken()}),f_stat:new Tt("function",!1),f_expr:new Tt("function",!0),f_expr_gen:new Tt("function",!0,!1,null,!0),f_gen:new Tt("function",!1,!1,null,!0)},br=Xe.prototype;br.initialContext=function(){return[ze.b_stat]},br.curContext=function(){return this.context[this.context.length-1]},br.braceIsBlock=function(r){var a=this.curContext();return a===ze.f_expr||a===ze.f_stat?!0:r===d.colon&&(a===ze.b_stat||a===ze.b_expr)?!a.isExpr:r===d._return||r===d.name&&this.exprAllowed?F.test(this.input.slice(this.lastTokEnd,this.start)):r===d._else||r===d.semi||r===d.eof||r===d.parenR||r===d.arrow?!0:r===d.braceL?a===ze.b_stat:r===d._var||r===d._const||r===d.name?!1:!this.exprAllowed},br.inGeneratorContext=function(){for(var r=this.context.length-1;r>=1;r--){var a=this.context[r];if(a.token==="function")return a.generator}return!1},br.updateContext=function(r){var a,p=this.type;p.keyword&&r===d.dot?this.exprAllowed=!1:(a=p.updateContext)?a.call(this,r):this.exprAllowed=p.beforeExpr},br.overrideContext=function(r){this.curContext()!==r&&(this.context[this.context.length-1]=r)},d.parenR.updateContext=d.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var r=this.context.pop();r===ze.b_stat&&this.curContext().token==="function"&&(r=this.context.pop()),this.exprAllowed=!r.isExpr},d.braceL.updateContext=function(r){this.context.push(this.braceIsBlock(r)?ze.b_stat:ze.b_expr),this.exprAllowed=!0},d.dollarBraceL.updateContext=function(){this.context.push(ze.b_tmpl),this.exprAllowed=!0},d.parenL.updateContext=function(r){var a=r===d._if||r===d._for||r===d._with||r===d._while;this.context.push(a?ze.p_stat:ze.p_expr),this.exprAllowed=!0},d.incDec.updateContext=function(){},d._function.updateContext=d._class.updateContext=function(r){r.beforeExpr&&r!==d._else&&!(r===d.semi&&this.curContext()!==ze.p_stat)&&!(r===d._return&&F.test(this.input.slice(this.lastTokEnd,this.start)))&&!((r===d.colon||r===d.braceL)&&this.curContext()===ze.b_stat)?this.context.push(ze.f_expr):this.context.push(ze.f_stat),this.exprAllowed=!1},d.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},d.backQuote.updateContext=function(){this.curContext()===ze.q_tmpl?this.context.pop():this.context.push(ze.q_tmpl),this.exprAllowed=!1},d.star.updateContext=function(r){if(r===d._function){var a=this.context.length-1;this.context[a]===ze.f_expr?this.context[a]=ze.f_expr_gen:this.context[a]=ze.f_gen}this.exprAllowed=!0},d.name.updateContext=function(r){var a=!1;this.options.ecmaVersion>=6&&r!==d.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(a=!0),this.exprAllowed=a};var ve=Xe.prototype;ve.checkPropClash=function(r,a,p){if(!(this.options.ecmaVersion>=9&&r.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(r.computed||r.method||r.shorthand))){var m=r.key,C;switch(m.type){case"Identifier":C=m.name;break;case"Literal":C=String(m.value);break;default:return}var P=r.kind;if(this.options.ecmaVersion>=6){C==="__proto__"&&P==="init"&&(a.proto&&(p?p.doubleProto<0&&(p.doubleProto=m.start):this.raiseRecoverable(m.start,"Redefinition of __proto__ property")),a.proto=!0);return}C="$"+C;var I=a[C];if(I){var W;P==="init"?W=this.strict&&I.init||I.get||I.set:W=I.init||I[P],W&&this.raiseRecoverable(m.start,"Redefinition of property")}else I=a[C]={init:!1,get:!1,set:!1};I[P]=!0}},ve.parseExpression=function(r,a){var p=this;return this.catchStackOverflow(function(){var m=p.start,C=p.startLoc,P=p.parseMaybeAssign(r,a);if(p.type===d.comma){var I=p.startNodeAt(m,C);for(I.expressions=[P];p.eat(d.comma);)I.expressions.push(p.parseMaybeAssign(r,a));return p.finishNode(I,"SequenceExpression")}return P})},ve.parseMaybeAssign=function(r,a,p){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(r);this.exprAllowed=!1}var m=!1,C=-1,P=-1,I=-1;a?(C=a.parenthesizedAssign,P=a.trailingComma,I=a.doubleProto,a.parenthesizedAssign=a.trailingComma=-1):(a=new Pr,m=!0);var W=this.start,ie=this.startLoc;(this.type===d.parenL||this.type===d.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=r==="await");var Ae=this.parseMaybeConditional(r,a);if(p&&(Ae=p.call(this,Ae,W,ie)),this.type.isAssign){var Te=this.startNodeAt(W,ie);return Te.operator=this.value,this.type===d.eq&&(Ae=this.toAssignable(Ae,!1,a)),m||(a.parenthesizedAssign=a.trailingComma=-1,a.shorthandAssign>=Ae.start&&(a.shorthandAssign=-1),a.doubleProto>=Ae.start&&(a.doubleProto=-1)),this.type===d.eq?this.checkLValPattern(Ae):this.checkLValSimple(Ae),Te.left=Ae,this.next(),Te.right=this.parseMaybeAssign(r),I>-1&&(a.doubleProto=I),this.finishNode(Te,"AssignmentExpression")}else m&&this.checkExpressionErrors(a,!0);return C>-1&&(a.parenthesizedAssign=C),P>-1&&(a.trailingComma=P),Ae},ve.parseMaybeConditional=function(r,a){var p=this.start,m=this.startLoc,C=this.parseExprOps(r,a);if(this.checkExpressionErrors(a))return C;if(!(C.type==="ArrowFunctionExpression"&&C.start===p)&&this.eat(d.question)){var P=this.startNodeAt(p,m);return P.test=C,P.consequent=this.parseMaybeAssign(),this.expect(d.colon),P.alternate=this.parseMaybeAssign(r),this.finishNode(P,"ConditionalExpression")}return C},ve.parseExprOps=function(r,a){var p=this.start,m=this.startLoc,C=this.parseMaybeUnary(a,!1,!1,r);return this.checkExpressionErrors(a)||C.start===p&&C.type==="ArrowFunctionExpression"?C:this.parseExprOp(C,p,m,-1,r)},ve.parseExprOp=function(r,a,p,m,C){var P=this.type.binop;if(P!=null&&(!C||this.type!==d._in)&&P>m){var I=this.type===d.logicalOR||this.type===d.logicalAND,W=this.type===d.coalesce;W&&(P=d.logicalAND.binop);var ie=this.value;this.next();var Ae=this.start,Te=this.startLoc,et=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,C),Ae,Te,P,C),Et=this.buildBinary(a,p,r,et,ie,I||W);return(I&&this.type===d.coalesce||W&&(this.type===d.logicalOR||this.type===d.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(Et,a,p,m,C)}return r},ve.buildBinary=function(r,a,p,m,C,P){m.type==="PrivateIdentifier"&&this.raise(m.start,"Private identifier can only be left side of binary expression");var I=this.startNodeAt(r,a);return I.left=p,I.operator=C,I.right=m,this.finishNode(I,P?"LogicalExpression":"BinaryExpression")},ve.parseMaybeUnary=function(r,a,p,m){var C=this.start,P=this.startLoc,I;if(this.isContextual("await")&&this.canAwait)I=this.parseAwait(m),a=!0;else if(this.type.prefix){var W=this.startNode(),ie=this.type===d.incDec;W.operator=this.value,W.prefix=!0,this.next(),W.argument=this.parseMaybeUnary(null,!0,ie,m),this.checkExpressionErrors(r,!0),ie?this.checkLValSimple(W.argument):this.strict&&W.operator==="delete"&&Yi(W.argument)?this.raiseRecoverable(W.start,"Deleting local variable in strict mode"):W.operator==="delete"&&di(W.argument)?this.raiseRecoverable(W.start,"Private fields can not be deleted"):a=!0,I=this.finishNode(W,ie?"UpdateExpression":"UnaryExpression")}else if(!a&&this.type===d.privateId)(m||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),I=this.parsePrivateIdent(),this.type!==d._in&&this.unexpected();else{if(I=this.parseExprSubscripts(r,m),this.checkExpressionErrors(r))return I;for(;this.type.postfix&&!this.canInsertSemicolon();){var Ae=this.startNodeAt(C,P);Ae.operator=this.value,Ae.prefix=!1,Ae.argument=I,this.checkLValSimple(I),this.next(),I=this.finishNode(Ae,"UpdateExpression")}}if(!p&&!(I.type==="ArrowFunctionExpression"&&I.start===C)&&this.eat(d.starstar))if(a)this.unexpected(this.lastTokStart);else return this.buildBinary(C,P,I,this.parseMaybeUnary(null,!1,!1,m),"**",!1);else return I};function Yi(r){return r.type==="Identifier"||r.type==="ParenthesizedExpression"&&Yi(r.expression)}function di(r){return r.type==="MemberExpression"&&r.property.type==="PrivateIdentifier"||r.type==="ChainExpression"&&di(r.expression)||r.type==="ParenthesizedExpression"&&di(r.expression)}ve.parseExprSubscripts=function(r,a){var p=this.start,m=this.startLoc,C=-1,P=-1;r&&(C=r.doubleProto,P=r.shorthandAssign,r.doubleProto=r.shorthandAssign=-1);var I=this.parseExprAtom(r,a);if(I.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return I;var W=this.parseSubscripts(I,p,m,!1,a);return r&&(W.end>I.end&&(this.checkExpressionErrors(r,!0),r.parenthesizedAssign>=W.start&&(r.parenthesizedAssign=-1),r.parenthesizedBind>=W.start&&(r.parenthesizedBind=-1),r.trailingComma>=W.start&&(r.trailingComma=-1)),C>-1&&(r.doubleProto=C),P>-1&&(r.shorthandAssign=P)),W},ve.parseSubscripts=function(r,a,p,m,C){for(var P=this.options.ecmaVersion>=8&&r.type==="Identifier"&&r.name==="async"&&this.lastTokEnd===r.end&&!this.canInsertSemicolon()&&r.end-r.start===5&&this.potentialArrowAt===r.start,I=!1;;){var W=this.parseSubscript(r,a,p,m,P,I,C);if(W.optional&&(I=!0),W.end===r.end||W.type==="ArrowFunctionExpression"){if(I){var ie=this.startNodeAt(a,p);ie.expression=W,W=this.finishNode(ie,"ChainExpression")}return W}r=W,P=!1}},ve.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(d.arrow)},ve.parseSubscriptAsyncArrow=function(r,a,p,m){return this.parseArrowExpression(this.startNodeAt(r,a),p,!0,m)},ve.parseSubscript=function(r,a,p,m,C,P,I){var W=this.options.ecmaVersion>=11,ie=W&&this.eat(d.questionDot);m&&ie&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var Ae=this.eat(d.bracketL);if(Ae||ie&&this.type!==d.parenL&&this.type!==d.backQuote||this.eat(d.dot)){var Te=this.startNodeAt(a,p);Te.object=r,Ae?(Te.property=this.parseExpression(),this.expect(d.bracketR)):this.type===d.privateId&&r.type!=="Super"?Te.property=this.parsePrivateIdent():Te.property=this.parseIdent(this.options.allowReserved!=="never"),Te.computed=!!Ae,W&&(Te.optional=ie),r=this.finishNode(Te,"MemberExpression")}else if(!m&&this.eat(d.parenL)){var et=new Pr,Et=this.yieldPos,Ei=this.awaitPos,ei=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var tn=this.parseExprList(d.parenR,this.options.ecmaVersion>=8,!1,et);if(C&&!ie&&this.shouldParseAsyncArrow())return this.checkPatternErrors(et,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Et,this.awaitPos=Ei,this.awaitIdentPos=ei,this.parseSubscriptAsyncArrow(a,p,tn,I);this.checkExpressionErrors(et,!0),this.yieldPos=Et||this.yieldPos,this.awaitPos=Ei||this.awaitPos,this.awaitIdentPos=ei||this.awaitIdentPos;var ti=this.startNodeAt(a,p);ti.callee=r,ti.arguments=tn,W&&(ti.optional=ie),r=this.finishNode(ti,"CallExpression")}else if(this.type===d.backQuote){(ie||P)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var ri=this.startNodeAt(a,p);ri.tag=r,ri.quasi=this.parseTemplate({isTagged:!0}),r=this.finishNode(ri,"TaggedTemplateExpression")}return r},ve.parseExprAtom=function(r,a,p){this.type===d.slash&&this.readRegexp();var m,C=this.potentialArrowAt===this.start;switch(this.type){case d._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),m=this.startNode(),this.next(),this.type===d.parenL&&!this.allowDirectSuper&&this.raise(m.start,"super() call outside constructor of a subclass"),this.type!==d.dot&&this.type!==d.bracketL&&this.type!==d.parenL&&this.unexpected(),this.finishNode(m,"Super");case d._this:return m=this.startNode(),this.next(),this.finishNode(m,"ThisExpression");case d.name:var P=this.start,I=this.startLoc,W=this.containsEsc,ie=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!W&&ie.name==="async"&&!this.canInsertSemicolon()&&this.eat(d._function))return this.overrideContext(ze.f_expr),this.parseFunction(this.startNodeAt(P,I),0,!1,!0,a);if(C&&!this.canInsertSemicolon()){if(this.eat(d.arrow))return this.parseArrowExpression(this.startNodeAt(P,I),[ie],!1,a);if(this.options.ecmaVersion>=8&&ie.name==="async"&&this.type===d.name&&!W&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return ie=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(d.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(P,I),[ie],!0,a)}return ie;case d.regexp:var Ae=this.value;return m=this.parseLiteral(Ae.value),m.regex={pattern:Ae.pattern,flags:Ae.flags},m;case d.num:case d.string:return this.parseLiteral(this.value);case d._null:case d._true:case d._false:return m=this.startNode(),m.value=this.type===d._null?null:this.type===d._true,m.raw=this.type.keyword,this.next(),this.finishNode(m,"Literal");case d.parenL:var Te=this.start,et=this.parseParenAndDistinguishExpression(C,a);return r&&(r.parenthesizedAssign<0&&!this.isSimpleAssignTarget(et)&&(r.parenthesizedAssign=Te),r.parenthesizedBind<0&&(r.parenthesizedBind=Te)),et;case d.bracketL:return m=this.startNode(),this.next(),m.elements=this.parseExprList(d.bracketR,!0,!0,r),this.finishNode(m,"ArrayExpression");case d.braceL:return this.overrideContext(ze.b_expr),this.parseObj(!1,r);case d._function:return m=this.startNode(),this.next(),this.parseFunction(m,0);case d._class:return this.parseClass(this.startNode(),!1);case d._new:return this.parseNew();case d.backQuote:return this.parseTemplate();case d._import:return this.options.ecmaVersion>=11?this.parseExprImport(p):this.unexpected();default:return this.parseExprAtomDefault()}},ve.parseExprAtomDefault=function(){this.unexpected()},ve.parseExprImport=function(r){var a=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===d.parenL&&!r)return this.parseDynamicImport(a);if(this.type===d.dot){var p=this.startNodeAt(a.start,a.loc&&a.loc.start);return p.name="import",a.meta=this.finishNode(p,"Identifier"),this.parseImportMeta(a)}else this.unexpected()},ve.parseDynamicImport=function(r){if(this.next(),r.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(d.parenR)?r.options=null:(this.expect(d.comma),this.afterTrailingComma(d.parenR)?r.options=null:(r.options=this.parseMaybeAssign(),this.eat(d.parenR)||(this.expect(d.comma),this.afterTrailingComma(d.parenR)||this.unexpected())));else if(!this.eat(d.parenR)){var a=this.start;this.eat(d.comma)&&this.eat(d.parenR)?this.raiseRecoverable(a,"Trailing comma is not allowed in import()"):this.unexpected(a)}return this.finishNode(r,"ImportExpression")},ve.parseImportMeta=function(r){this.next();var a=this.containsEsc;return r.property=this.parseIdent(!0),r.property.name!=="meta"&&this.raiseRecoverable(r.property.start,"The only valid meta property for import is 'import.meta'"),a&&this.raiseRecoverable(r.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(r.start,"Cannot use 'import.meta' outside a module"),this.finishNode(r,"MetaProperty")},ve.parseLiteral=function(r){var a=this.startNode();return a.value=r,a.raw=this.input.slice(this.start,this.end),a.raw.charCodeAt(a.raw.length-1)===110&&(a.bigint=a.value!=null?a.value.toString():a.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(a,"Literal")},ve.parseParenExpression=function(){this.expect(d.parenL);var r=this.parseExpression();return this.expect(d.parenR),r},ve.shouldParseArrow=function(r){return!this.canInsertSemicolon()},ve.parseParenAndDistinguishExpression=function(r,a){var p=this.start,m=this.startLoc,C,P=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var I=this.start,W=this.startLoc,ie=[],Ae=!0,Te=!1,et=new Pr,Et=this.yieldPos,Ei=this.awaitPos,ei;for(this.yieldPos=0,this.awaitPos=0;this.type!==d.parenR;)if(Ae?Ae=!1:this.expect(d.comma),P&&this.afterTrailingComma(d.parenR,!0)){Te=!0;break}else if(this.type===d.ellipsis){ei=this.start,ie.push(this.parseParenItem(this.parseRestBinding())),this.type===d.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else ie.push(this.parseMaybeAssign(!1,et,this.parseParenItem));var tn=this.lastTokEnd,ti=this.lastTokEndLoc;if(this.expect(d.parenR),r&&this.shouldParseArrow(ie)&&this.eat(d.arrow))return this.checkPatternErrors(et,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Et,this.awaitPos=Ei,this.parseParenArrowList(p,m,ie,a);(!ie.length||Te)&&this.unexpected(this.lastTokStart),ei&&this.unexpected(ei),this.checkExpressionErrors(et,!0),this.yieldPos=Et||this.yieldPos,this.awaitPos=Ei||this.awaitPos,ie.length>1?(C=this.startNodeAt(I,W),C.expressions=ie,this.finishNodeAt(C,"SequenceExpression",tn,ti)):C=ie[0]}else C=this.parseParenExpression();if(this.options.preserveParens){var ri=this.startNodeAt(p,m);return ri.expression=C,this.finishNode(ri,"ParenthesizedExpression")}else return C},ve.parseParenItem=function(r){return r},ve.parseParenArrowList=function(r,a,p,m){return this.parseArrowExpression(this.startNodeAt(r,a),p,!1,m)};var qn=[];ve.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var r=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===d.dot){var a=this.startNodeAt(r.start,r.loc&&r.loc.start);a.name="new",r.meta=this.finishNode(a,"Identifier"),this.next();var p=this.containsEsc;return r.property=this.parseIdent(!0),r.property.name!=="target"&&this.raiseRecoverable(r.property.start,"The only valid meta property for new is 'new.target'"),p&&this.raiseRecoverable(r.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(r.start,"'new.target' can only be used in functions and class static block"),this.finishNode(r,"MetaProperty")}var m=this.start,C=this.startLoc;return r.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),m,C,!0,!1),r.callee.type==="Super"&&this.raiseRecoverable(m,"Invalid use of 'super'"),this.eat(d.parenL)?r.arguments=this.parseExprList(d.parenR,this.options.ecmaVersion>=8,!1):r.arguments=qn,this.finishNode(r,"NewExpression")},ve.parseTemplateElement=function(r){var a=r.isTagged,p=this.startNode();return this.type===d.invalidTemplate?(a||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),p.value={raw:this.value.replace(/\r\n?/g,`
|
|
8
|
+
`),cooked:null}):p.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
9
|
+
`),cooked:this.value},this.next(),p.tail=this.type===d.backQuote,this.finishNode(p,"TemplateElement")},ve.parseTemplate=function(r){r===void 0&&(r={});var a=r.isTagged;a===void 0&&(a=!1);var p=this.startNode();this.next(),p.expressions=[];var m=this.parseTemplateElement({isTagged:a});for(p.quasis=[m];!m.tail;)this.type===d.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(d.dollarBraceL),p.expressions.push(this.parseExpression()),this.expect(d.braceR),p.quasis.push(m=this.parseTemplateElement({isTagged:a}));return this.next(),this.finishNode(p,"TemplateLiteral")},ve.isAsyncProp=function(r){return!r.computed&&r.key.type==="Identifier"&&r.key.name==="async"&&(this.type===d.name||this.type===d.num||this.type===d.string||this.type===d.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===d.star)&&!F.test(this.input.slice(this.lastTokEnd,this.start))},ve.parseObj=function(r,a){var p=this.startNode(),m=!0,C={};for(p.properties=[],this.next();!this.eat(d.braceR);){if(m)m=!1;else if(this.expect(d.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(d.braceR))break;var P=this.parseProperty(r,a);r||this.checkPropClash(P,C,a),p.properties.push(P)}return this.finishNode(p,r?"ObjectPattern":"ObjectExpression")},ve.parseProperty=function(r,a){var p=this.startNode(),m,C,P,I;if(this.options.ecmaVersion>=9&&this.eat(d.ellipsis))return r?(p.argument=this.parseIdent(!1),this.type===d.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(p,"RestElement")):(p.argument=this.parseMaybeAssign(!1,a),this.type===d.comma&&a&&a.trailingComma<0&&(a.trailingComma=this.start),this.finishNode(p,"SpreadElement"));this.options.ecmaVersion>=6&&(p.method=!1,p.shorthand=!1,(r||a)&&(P=this.start,I=this.startLoc),r||(m=this.eat(d.star)));var W=this.containsEsc;return this.parsePropertyName(p),!r&&!W&&this.options.ecmaVersion>=8&&!m&&this.isAsyncProp(p)?(C=!0,m=this.options.ecmaVersion>=9&&this.eat(d.star),this.parsePropertyName(p)):C=!1,this.parsePropertyValue(p,r,m,C,P,I,a,W),this.finishNode(p,"Property")},ve.parseGetterSetter=function(r){var a=r.key.name;this.parsePropertyName(r),r.value=this.parseMethod(!1),r.kind=a;var p=r.kind==="get"?0:1;if(r.value.params.length!==p){var m=r.value.start;r.kind==="get"?this.raiseRecoverable(m,"getter should have no params"):this.raiseRecoverable(m,"setter should have exactly one param")}else r.kind==="set"&&r.value.params[0].type==="RestElement"&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params")},ve.parsePropertyValue=function(r,a,p,m,C,P,I,W){(p||m)&&this.type===d.colon&&this.unexpected(),this.eat(d.colon)?(r.value=a?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,I),r.kind="init"):this.options.ecmaVersion>=6&&this.type===d.parenL?(a&&this.unexpected(),r.method=!0,r.value=this.parseMethod(p,m),r.kind="init"):!a&&!W&&this.options.ecmaVersion>=5&&!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.type!==d.comma&&this.type!==d.braceR&&this.type!==d.eq?((p||m)&&this.unexpected(),this.parseGetterSetter(r)):this.options.ecmaVersion>=6&&!r.computed&&r.key.type==="Identifier"?((p||m)&&this.unexpected(),this.checkUnreserved(r.key),r.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=C),a?r.value=this.parseMaybeDefault(C,P,this.copyNode(r.key)):this.type===d.eq&&I?(I.shorthandAssign<0&&(I.shorthandAssign=this.start),r.value=this.parseMaybeDefault(C,P,this.copyNode(r.key))):r.value=this.copyNode(r.key),r.kind="init",r.shorthand=!0):this.unexpected()},ve.parsePropertyName=function(r){if(this.options.ecmaVersion>=6){if(this.eat(d.bracketL))return r.computed=!0,r.key=this.parseMaybeAssign(),this.expect(d.bracketR),r.key;r.computed=!1}return r.key=this.type===d.num||this.type===d.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},ve.initFunction=function(r){r.id=null,this.options.ecmaVersion>=6&&(r.generator=r.expression=!1),this.options.ecmaVersion>=8&&(r.async=!1)},ve.parseMethod=function(r,a,p){var m=this.startNode(),C=this.yieldPos,P=this.awaitPos,I=this.awaitIdentPos;return this.initFunction(m),this.options.ecmaVersion>=6&&(m.generator=r),this.options.ecmaVersion>=8&&(m.async=!!a),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(lr(a,m.generator)|Be|(p?Qe:0)),this.expect(d.parenL),m.params=this.parseBindingList(d.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(m,!1,!0,!1),this.yieldPos=C,this.awaitPos=P,this.awaitIdentPos=I,this.finishNode(m,"FunctionExpression")},ve.parseArrowExpression=function(r,a,p,m){var C=this.yieldPos,P=this.awaitPos,I=this.awaitIdentPos;return this.enterScope(lr(p,!1)|te),this.initFunction(r),this.options.ecmaVersion>=8&&(r.async=!!p),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,r.params=this.toAssignableList(a,!0),this.parseFunctionBody(r,!0,!1,m),this.yieldPos=C,this.awaitPos=P,this.awaitIdentPos=I,this.finishNode(r,"ArrowFunctionExpression")},ve.parseFunctionBody=function(r,a,p,m){var C=a&&this.type!==d.braceL,P=this.strict,I=!1;if(C)r.body=this.parseMaybeAssign(m),r.expression=!0,this.checkParams(r,!1);else{var W=this.options.ecmaVersion>=7&&!this.isSimpleParamList(r.params);(!P||W)&&(I=this.strictDirective(this.end),I&&W&&this.raiseRecoverable(r.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var ie=this.labels;this.labels=[],I&&(this.strict=!0),this.checkParams(r,!P&&!I&&!a&&!p&&this.isSimpleParamList(r.params)),this.strict&&r.id&&this.checkLValSimple(r.id,hi),r.body=this.parseBlock(!1,void 0,I&&!P),r.expression=!1,this.adaptDirectivePrologue(r.body.body),this.labels=ie}this.exitScope()},ve.isSimpleParamList=function(r){for(var a=0,p=r;a<p.length;a+=1){var m=p[a];if(m.type!=="Identifier")return!1}return!0},ve.checkParams=function(r,a){for(var p=Object.create(null),m=0,C=r.params;m<C.length;m+=1){var P=C[m];this.checkLValInnerPattern(P,Vt,a?null:p)}},ve.parseExprList=function(r,a,p,m){for(var C=[],P=!0;!this.eat(r);){if(P)P=!1;else if(this.expect(d.comma),a&&this.afterTrailingComma(r))break;var I=void 0;p&&this.type===d.comma?I=null:this.type===d.ellipsis?(I=this.parseSpread(m),m&&this.type===d.comma&&m.trailingComma<0&&(m.trailingComma=this.start)):I=this.parseMaybeAssign(!1,m),C.push(I)}return C},ve.checkUnreserved=function(r){var a=r.start,p=r.end,m=r.name;if(this.inGenerator&&m==="yield"&&this.raiseRecoverable(a,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&m==="await"&&this.raiseRecoverable(a,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&mt)&&m==="arguments"&&this.raiseRecoverable(a,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(m==="arguments"||m==="await")&&this.raise(a,"Cannot use "+m+" in class static initialization block"),this.keywords.test(m)&&this.raise(a,"Unexpected keyword '"+m+"'"),!(this.options.ecmaVersion<6&&this.input.slice(a,p).indexOf("\\")!==-1)){var C=this.strict?this.reservedWordsStrict:this.reservedWords;C.test(m)&&(!this.inAsync&&m==="await"&&this.raiseRecoverable(a,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(a,"The keyword '"+m+"' is reserved"))}},ve.parseIdent=function(r){var a=this.parseIdentNode();return this.next(!!r),this.finishNode(a,"Identifier"),r||(this.checkUnreserved(a),a.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=a.start)),a},ve.parseIdentNode=function(){var r=this.startNode();return this.type===d.name?r.name=this.value:this.type.keyword?(r.name=this.type.keyword,(r.name==="class"||r.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=d.name):this.unexpected(),r},ve.parsePrivateIdent=function(){var r=this.startNode();return this.type===d.privateId?r.name=this.value:this.unexpected(),this.next(),this.finishNode(r,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(r.start,"Private field '#"+r.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(r)),r},ve.parseYield=function(r){this.yieldPos||(this.yieldPos=this.start);var a=this.startNode();return this.next(),this.type===d.semi||this.canInsertSemicolon()||this.type!==d.star&&!this.type.startsExpr?(a.delegate=!1,a.argument=null):(a.delegate=this.eat(d.star),a.argument=this.parseMaybeAssign(r)),this.finishNode(a,"YieldExpression")},ve.parseAwait=function(r){this.awaitPos||(this.awaitPos=this.start);var a=this.startNode();return this.next(),a.argument=this.parseMaybeUnary(null,!0,!1,r),this.finishNode(a,"AwaitExpression")};var Kr=Xe.prototype;Kr.raise=function(r,a){var p=Je(this.input,r);a+=" ("+p.line+":"+p.column+")",this.sourceFile&&(a+=" in "+this.sourceFile);var m=new SyntaxError(a);throw m.pos=r,m.loc=p,m.raisedAt=this.pos,m},Kr.raiseRecoverable=Kr.raise,Kr.curPosition=function(){if(this.options.locations)return new Pe(this.curLine,this.pos-this.lineStart)};var f=Xe.prototype,zr=function(a){this.flags=a,this.var=[],this.lexical=[],this.functions=[]};f.enterScope=function(r){this.scopeStack.push(new zr(r))},f.exitScope=function(){this.scopeStack.pop()},f.treatFunctionsAsVarInScope=function(r){return r.flags&q||!this.inModule&&r.flags&Se},f.declareName=function(r,a,p){var m=!1;if(a===yt){var C=this.currentScope();m=C.lexical.indexOf(r)>-1||C.functions.indexOf(r)>-1||C.var.indexOf(r)>-1,C.lexical.push(r),this.inModule&&C.flags&Se&&delete this.undefinedExports[r]}else if(a===Cr){var P=this.currentScope();P.lexical.push(r)}else if(a===sr){var I=this.currentScope();this.treatFunctionsAsVar?m=I.lexical.indexOf(r)>-1:m=I.lexical.indexOf(r)>-1||I.var.indexOf(r)>-1,I.functions.push(r)}else for(var W=this.scopeStack.length-1;W>=0;--W){var ie=this.scopeStack[W];if(ie.lexical.indexOf(r)>-1&&!(ie.flags&ke&&ie.lexical[0]===r)||!this.treatFunctionsAsVarInScope(ie)&&ie.functions.indexOf(r)>-1){m=!0;break}if(ie.var.push(r),this.inModule&&ie.flags&Se&&delete this.undefinedExports[r],ie.flags&mt)break}m&&this.raiseRecoverable(p,"Identifier '"+r+"' has already been declared")},f.checkLocalExport=function(r){this.scopeStack[0].lexical.indexOf(r.name)===-1&&this.scopeStack[0].var.indexOf(r.name)===-1&&(this.undefinedExports[r.name]=r)},f.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},f.currentVarScope=function(){for(var r=this.scopeStack.length-1;;r--){var a=this.scopeStack[r];if(a.flags&(mt|We|Fe))return a}},f.currentThisScope=function(){for(var r=this.scopeStack.length-1;;r--){var a=this.scopeStack[r];if(a.flags&(mt|We|Fe)&&!(a.flags&te))return a}};var bt=function(a,p,m){this.type="",this.start=p,this.end=0,a.options.locations&&(this.loc=new Oe(a,m)),a.options.directSourceFile&&(this.sourceFile=a.options.directSourceFile),a.options.ranges&&(this.range=[p,0])},pr=Xe.prototype;pr.startNode=function(){return new bt(this,this.start,this.startLoc)},pr.startNodeAt=function(r,a){return new bt(this,r,a)};function oe(r,a,p,m){return r.type=a,r.end=p,this.options.locations&&(r.loc.end=m),this.options.ranges&&(r.range[1]=p),r}pr.finishNode=function(r,a){return oe.call(this,r,a,this.lastTokEnd,this.lastTokEndLoc)},pr.finishNodeAt=function(r,a,p,m){return oe.call(this,r,a,p,m)},pr.copyNode=function(r){var a=new bt(this,r.start,this.startLoc);for(var p in r)a[p]=r[p];return a};var Ge="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",Mt="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",mi=Mt+" Extended_Pictographic",yi=mi,ee=yi+" EBase EComp EMod EPres ExtPict",gi=ee,_e=gi,Zt={9:Mt,10:mi,11:yi,12:ee,13:gi,14:_e},xi="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Hr={9:"",10:"",11:"",12:"",13:"",14:xi},Qr="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",Br="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",Xr=Br+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",vi=Xr+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Yr=vi+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Ci=Yr+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Zr=Ci+" "+Ge,Zi={9:Br,10:Xr,11:vi,12:Yr,13:Ci,14:Zr},Ai={};function en(r){var a=Ai[r]={binary:Z(Zt[r]+" "+Qr),binaryOfStrings:Z(Hr[r]),nonBinary:{General_Category:Z(Qr),Script:Z(Zi[r])}};a.nonBinary.Script_Extensions=a.nonBinary.Script,a.nonBinary.gc=a.nonBinary.General_Category,a.nonBinary.sc=a.nonBinary.Script,a.nonBinary.scx=a.nonBinary.Script_Extensions}for(var B=0,$=[9,10,11,12,13,14];B<$.length;B+=1){var X=$[B];en(X)}var E=Xe.prototype,M=function(a,p){this.parent=a,this.base=p||this};M.prototype.separatedFrom=function(a){for(var p=this;p;p=p.parent)for(var m=a;m;m=m.parent)if(p.base===m.base&&p!==m)return!0;return!1},M.prototype.sibling=function(){return new M(this.parent,this.base)};var Y=function(a){this.parser=a,this.validFlags="gim"+(a.options.ecmaVersion>=6?"uy":"")+(a.options.ecmaVersion>=9?"s":"")+(a.options.ecmaVersion>=13?"d":"")+(a.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Ai[a.options.ecmaVersion>=14?14:a.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};Y.prototype.reset=function(a,p,m){var C=m.indexOf("v")!==-1,P=m.indexOf("u")!==-1;this.start=a|0,this.source=p+"",this.flags=m,C&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=P&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=P&&this.parser.options.ecmaVersion>=9)},Y.prototype.raise=function(a){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+a)},Y.prototype.at=function(a,p){p===void 0&&(p=!1);var m=this.source,C=m.length;if(a>=C)return-1;var P=m.charCodeAt(a);if(!(p||this.switchU)||P<=55295||P>=57344||a+1>=C)return P;var I=m.charCodeAt(a+1);return I>=56320&&I<=57343?(P<<10)+I-56613888:P},Y.prototype.nextIndex=function(a,p){p===void 0&&(p=!1);var m=this.source,C=m.length;if(a>=C)return C;var P=m.charCodeAt(a),I;return!(p||this.switchU)||P<=55295||P>=57344||a+1>=C||(I=m.charCodeAt(a+1))<56320||I>57343?a+1:a+2},Y.prototype.current=function(a){return a===void 0&&(a=!1),this.at(this.pos,a)},Y.prototype.lookahead=function(a){return a===void 0&&(a=!1),this.at(this.nextIndex(this.pos,a),a)},Y.prototype.advance=function(a){a===void 0&&(a=!1),this.pos=this.nextIndex(this.pos,a)},Y.prototype.eat=function(a,p){return p===void 0&&(p=!1),this.current(p)===a?(this.advance(p),!0):!1},Y.prototype.eatChars=function(a,p){p===void 0&&(p=!1);for(var m=this.pos,C=0,P=a;C<P.length;C+=1){var I=P[C],W=this.at(m,p);if(W===-1||W!==I)return!1;m=this.nextIndex(m,p)}return this.pos=m,!0},E.validateRegExpFlags=function(r){for(var a=r.validFlags,p=r.flags,m=!1,C=!1,P=0;P<p.length;P++){var I=p.charAt(P);a.indexOf(I)===-1&&this.raise(r.start,"Invalid regular expression flag"),p.indexOf(I,P+1)>-1&&this.raise(r.start,"Duplicate regular expression flag"),I==="u"&&(m=!0),I==="v"&&(C=!0)}this.options.ecmaVersion>=15&&m&&C&&this.raise(r.start,"Invalid regular expression flag")};function re(r){for(var a in r)return!0;return!1}E.validateRegExpPattern=function(r){this.regexp_pattern(r),!r.switchN&&this.options.ecmaVersion>=9&&re(r.groupNames)&&(r.switchN=!0,this.regexp_pattern(r))},E.regexp_pattern=function(r){r.pos=0,r.lastIntValue=0,r.lastStringValue="",r.lastAssertionIsQuantifiable=!1,r.numCapturingParens=0,r.maxBackReference=0,r.groupNames=Object.create(null),r.backReferenceNames.length=0,r.branchID=null,this.regexp_disjunction(r),r.pos!==r.source.length&&(r.eat(41)&&r.raise("Unmatched ')'"),(r.eat(93)||r.eat(125))&&r.raise("Lone quantifier brackets")),r.maxBackReference>r.numCapturingParens&&r.raise("Invalid escape");for(var a=0,p=r.backReferenceNames;a<p.length;a+=1){var m=p[a];r.groupNames[m]||r.raise("Invalid named capture referenced")}},E.regexp_disjunction=function(r){var a=this.options.ecmaVersion>=16;for(a&&(r.branchID=new M(r.branchID,null)),this.regexp_alternative(r);r.eat(124);)a&&(r.branchID=r.branchID.sibling()),this.regexp_alternative(r);a&&(r.branchID=r.branchID.parent),this.regexp_eatQuantifier(r,!0)&&r.raise("Nothing to repeat"),r.eat(123)&&r.raise("Lone quantifier brackets")},E.regexp_alternative=function(r){for(;r.pos<r.source.length&&this.regexp_eatTerm(r););},E.regexp_eatTerm=function(r){return this.regexp_eatAssertion(r)?(r.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(r)&&r.switchU&&r.raise("Invalid quantifier"),!0):(r.switchU?this.regexp_eatAtom(r):this.regexp_eatExtendedAtom(r))?(this.regexp_eatQuantifier(r),!0):!1},E.regexp_eatAssertion=function(r){var a=r.pos;if(r.lastAssertionIsQuantifiable=!1,r.eat(94)||r.eat(36))return!0;if(r.eat(92)){if(r.eat(66)||r.eat(98))return!0;r.pos=a}if(r.eat(40)&&r.eat(63)){var p=!1;if(this.options.ecmaVersion>=9&&(p=r.eat(60)),r.eat(61)||r.eat(33))return this.regexp_disjunction(r),r.eat(41)||r.raise("Unterminated group"),r.lastAssertionIsQuantifiable=!p,!0}return r.pos=a,!1},E.regexp_eatQuantifier=function(r,a){return a===void 0&&(a=!1),this.regexp_eatQuantifierPrefix(r,a)?(r.eat(63),!0):!1},E.regexp_eatQuantifierPrefix=function(r,a){return r.eat(42)||r.eat(43)||r.eat(63)||this.regexp_eatBracedQuantifier(r,a)},E.regexp_eatBracedQuantifier=function(r,a){var p=r.pos;if(r.eat(123)){var m=0,C=-1;if(this.regexp_eatDecimalDigits(r)&&(m=r.lastIntValue,r.eat(44)&&this.regexp_eatDecimalDigits(r)&&(C=r.lastIntValue),r.eat(125)))return C!==-1&&C<m&&!a&&r.raise("numbers out of order in {} quantifier"),!0;r.switchU&&!a&&r.raise("Incomplete quantifier"),r.pos=p}return!1},E.regexp_eatAtom=function(r){return this.regexp_eatPatternCharacters(r)||r.eat(46)||this.regexp_eatReverseSolidusAtomEscape(r)||this.regexp_eatCharacterClass(r)||this.regexp_eatUncapturingGroup(r)||this.regexp_eatCapturingGroup(r)},E.regexp_eatReverseSolidusAtomEscape=function(r){var a=r.pos;if(r.eat(92)){if(this.regexp_eatAtomEscape(r))return!0;r.pos=a}return!1},E.regexp_eatUncapturingGroup=function(r){var a=r.pos;if(r.eat(40)){if(r.eat(63)){if(this.options.ecmaVersion>=16){var p=this.regexp_eatModifiers(r),m=r.eat(45);if(p||m){for(var C=0;C<p.length;C++){var P=p.charAt(C);p.indexOf(P,C+1)>-1&&r.raise("Duplicate regular expression modifiers")}if(m){var I=this.regexp_eatModifiers(r);!p&&!I&&r.current()===58&&r.raise("Invalid regular expression modifiers");for(var W=0;W<I.length;W++){var ie=I.charAt(W);(I.indexOf(ie,W+1)>-1||p.indexOf(ie)>-1)&&r.raise("Duplicate regular expression modifiers")}}}}if(r.eat(58)){if(this.regexp_disjunction(r),r.eat(41))return!0;r.raise("Unterminated group")}}r.pos=a}return!1},E.regexp_eatCapturingGroup=function(r){if(r.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(r):r.current()===63&&r.raise("Invalid group"),this.regexp_disjunction(r),r.eat(41))return r.numCapturingParens+=1,!0;r.raise("Unterminated group")}return!1},E.regexp_eatModifiers=function(r){for(var a="",p=0;(p=r.current())!==-1&&me(p);)a+=ce(p),r.advance();return a};function me(r){return r===105||r===109||r===115}E.regexp_eatExtendedAtom=function(r){return r.eat(46)||this.regexp_eatReverseSolidusAtomEscape(r)||this.regexp_eatCharacterClass(r)||this.regexp_eatUncapturingGroup(r)||this.regexp_eatCapturingGroup(r)||this.regexp_eatInvalidBracedQuantifier(r)||this.regexp_eatExtendedPatternCharacter(r)},E.regexp_eatInvalidBracedQuantifier=function(r){return this.regexp_eatBracedQuantifier(r,!0)&&r.raise("Nothing to repeat"),!1},E.regexp_eatSyntaxCharacter=function(r){var a=r.current();return ge(a)?(r.lastIntValue=a,r.advance(),!0):!1};function ge(r){return r===36||r>=40&&r<=43||r===46||r===63||r>=91&&r<=94||r>=123&&r<=125}E.regexp_eatPatternCharacters=function(r){for(var a=r.pos,p=0;(p=r.current())!==-1&&!ge(p);)r.advance();return r.pos!==a},E.regexp_eatExtendedPatternCharacter=function(r){var a=r.current();return a!==-1&&a!==36&&!(a>=40&&a<=43)&&a!==46&&a!==63&&a!==91&&a!==94&&a!==124?(r.advance(),!0):!1},E.regexp_groupSpecifier=function(r){if(r.eat(63)){this.regexp_eatGroupName(r)||r.raise("Invalid group");var a=this.options.ecmaVersion>=16,p=r.groupNames[r.lastStringValue];if(p)if(a)for(var m=0,C=p;m<C.length;m+=1){var P=C[m];P.separatedFrom(r.branchID)||r.raise("Duplicate capture group name")}else r.raise("Duplicate capture group name");a?(p||(r.groupNames[r.lastStringValue]=[])).push(r.branchID):r.groupNames[r.lastStringValue]=!0}},E.regexp_eatGroupName=function(r){if(r.lastStringValue="",r.eat(60)){if(this.regexp_eatRegExpIdentifierName(r)&&r.eat(62))return!0;r.raise("Invalid capture group name")}return!1},E.regexp_eatRegExpIdentifierName=function(r){if(r.lastStringValue="",this.regexp_eatRegExpIdentifierStart(r)){for(r.lastStringValue+=ce(r.lastIntValue);this.regexp_eatRegExpIdentifierPart(r);)r.lastStringValue+=ce(r.lastIntValue);return!0}return!1},E.regexp_eatRegExpIdentifierStart=function(r){var a=r.pos,p=this.options.ecmaVersion>=11,m=r.current(p);return r.advance(p),m===92&&this.regexp_eatRegExpUnicodeEscapeSequence(r,p)&&(m=r.lastIntValue),xe(m)?(r.lastIntValue=m,!0):(r.pos=a,!1)};function xe(r){return v(r,!0)||r===36||r===95}E.regexp_eatRegExpIdentifierPart=function(r){var a=r.pos,p=this.options.ecmaVersion>=11,m=r.current(p);return r.advance(p),m===92&&this.regexp_eatRegExpUnicodeEscapeSequence(r,p)&&(m=r.lastIntValue),tt(m)?(r.lastIntValue=m,!0):(r.pos=a,!1)};function tt(r){return b(r,!0)||r===36||r===95||r===8204||r===8205}E.regexp_eatAtomEscape=function(r){return this.regexp_eatBackReference(r)||this.regexp_eatCharacterClassEscape(r)||this.regexp_eatCharacterEscape(r)||r.switchN&&this.regexp_eatKGroupName(r)?!0:(r.switchU&&(r.current()===99&&r.raise("Invalid unicode escape"),r.raise("Invalid escape")),!1)},E.regexp_eatBackReference=function(r){var a=r.pos;if(this.regexp_eatDecimalEscape(r)){var p=r.lastIntValue;if(r.switchU)return p>r.maxBackReference&&(r.maxBackReference=p),!0;if(p<=r.numCapturingParens)return!0;r.pos=a}return!1},E.regexp_eatKGroupName=function(r){if(r.eat(107)){if(this.regexp_eatGroupName(r))return r.backReferenceNames.push(r.lastStringValue),!0;r.raise("Invalid named reference")}return!1},E.regexp_eatCharacterEscape=function(r){return this.regexp_eatControlEscape(r)||this.regexp_eatCControlLetter(r)||this.regexp_eatZero(r)||this.regexp_eatHexEscapeSequence(r)||this.regexp_eatRegExpUnicodeEscapeSequence(r,!1)||!r.switchU&&this.regexp_eatLegacyOctalEscapeSequence(r)||this.regexp_eatIdentityEscape(r)},E.regexp_eatCControlLetter=function(r){var a=r.pos;if(r.eat(99)){if(this.regexp_eatControlLetter(r))return!0;r.pos=a}return!1},E.regexp_eatZero=function(r){return r.current()===48&&!kt(r.lookahead())?(r.lastIntValue=0,r.advance(),!0):!1},E.regexp_eatControlEscape=function(r){var a=r.current();return a===116?(r.lastIntValue=9,r.advance(),!0):a===110?(r.lastIntValue=10,r.advance(),!0):a===118?(r.lastIntValue=11,r.advance(),!0):a===102?(r.lastIntValue=12,r.advance(),!0):a===114?(r.lastIntValue=13,r.advance(),!0):!1},E.regexp_eatControlLetter=function(r){var a=r.current();return Ft(a)?(r.lastIntValue=a%32,r.advance(),!0):!1};function Ft(r){return r>=65&&r<=90||r>=97&&r<=122}E.regexp_eatRegExpUnicodeEscapeSequence=function(r,a){a===void 0&&(a=!1);var p=r.pos,m=a||r.switchU;if(r.eat(117)){if(this.regexp_eatFixedHexDigits(r,4)){var C=r.lastIntValue;if(m&&C>=55296&&C<=56319){var P=r.pos;if(r.eat(92)&&r.eat(117)&&this.regexp_eatFixedHexDigits(r,4)){var I=r.lastIntValue;if(I>=56320&&I<=57343)return r.lastIntValue=(C-55296)*1024+(I-56320)+65536,!0}r.pos=P,r.lastIntValue=C}return!0}if(m&&r.eat(123)&&this.regexp_eatHexDigits(r)&&r.eat(125)&&qe(r.lastIntValue))return!0;m&&r.raise("Invalid unicode escape"),r.pos=p}return!1};function qe(r){return r>=0&&r<=1114111}E.regexp_eatIdentityEscape=function(r){if(r.switchU)return this.regexp_eatSyntaxCharacter(r)?!0:r.eat(47)?(r.lastIntValue=47,!0):!1;var a=r.current();return a!==99&&(!r.switchN||a!==107)?(r.lastIntValue=a,r.advance(),!0):!1},E.regexp_eatDecimalEscape=function(r){r.lastIntValue=0;var a=r.current();if(a>=49&&a<=57){do r.lastIntValue=10*r.lastIntValue+(a-48),r.advance();while((a=r.current())>=48&&a<=57);return!0}return!1};var Nt=0,Ze=1,z=2;E.regexp_eatCharacterClassEscape=function(r){var a=r.current();if(le(a))return r.lastIntValue=-1,r.advance(),Ze;var p=!1;if(r.switchU&&this.options.ecmaVersion>=9&&((p=a===80)||a===112)){r.lastIntValue=-1,r.advance();var m;if(r.eat(123)&&(m=this.regexp_eatUnicodePropertyValueExpression(r))&&r.eat(125))return p&&m===z&&r.raise("Invalid property name"),m;r.raise("Invalid property name")}return Nt};function le(r){return r===100||r===68||r===115||r===83||r===119||r===87}E.regexp_eatUnicodePropertyValueExpression=function(r){var a=r.pos;if(this.regexp_eatUnicodePropertyName(r)&&r.eat(61)){var p=r.lastStringValue;if(this.regexp_eatUnicodePropertyValue(r)){var m=r.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(r,p,m),Ze}}if(r.pos=a,this.regexp_eatLoneUnicodePropertyNameOrValue(r)){var C=r.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(r,C)}return Nt},E.regexp_validateUnicodePropertyNameAndValue=function(r,a,p){O(r.unicodeProperties.nonBinary,a)||r.raise("Invalid property name"),r.unicodeProperties.nonBinary[a].test(p)||r.raise("Invalid property value")},E.regexp_validateUnicodePropertyNameOrValue=function(r,a){if(r.unicodeProperties.binary.test(a))return Ze;if(r.switchV&&r.unicodeProperties.binaryOfStrings.test(a))return z;r.raise("Invalid property name")},E.regexp_eatUnicodePropertyName=function(r){var a=0;for(r.lastStringValue="";Ce(a=r.current());)r.lastStringValue+=ce(a),r.advance();return r.lastStringValue!==""};function Ce(r){return Ft(r)||r===95}E.regexp_eatUnicodePropertyValue=function(r){var a=0;for(r.lastStringValue="";G(a=r.current());)r.lastStringValue+=ce(a),r.advance();return r.lastStringValue!==""};function G(r){return Ce(r)||kt(r)}E.regexp_eatLoneUnicodePropertyNameOrValue=function(r){return this.regexp_eatUnicodePropertyValue(r)},E.regexp_eatCharacterClass=function(r){if(r.eat(91)){var a=r.eat(94),p=this.regexp_classContents(r);return r.eat(93)||r.raise("Unterminated character class"),a&&p===z&&r.raise("Negated character class may contain strings"),!0}return!1},E.regexp_classContents=function(r){return r.current()===93?Ze:r.switchV?this.regexp_classSetExpression(r):(this.regexp_nonEmptyClassRanges(r),Ze)},E.regexp_nonEmptyClassRanges=function(r){for(;this.regexp_eatClassAtom(r);){var a=r.lastIntValue;if(r.eat(45)&&this.regexp_eatClassAtom(r)){var p=r.lastIntValue;r.switchU&&(a===-1||p===-1)&&r.raise("Invalid character class"),a!==-1&&p!==-1&&a>p&&r.raise("Range out of order in character class")}}},E.regexp_eatClassAtom=function(r){var a=r.pos;if(r.eat(92)){if(this.regexp_eatClassEscape(r))return!0;if(r.switchU){var p=r.current();(p===99||bi(p))&&r.raise("Invalid class escape"),r.raise("Invalid escape")}r.pos=a}var m=r.current();return m!==93?(r.lastIntValue=m,r.advance(),!0):!1},E.regexp_eatClassEscape=function(r){var a=r.pos;if(r.eat(98))return r.lastIntValue=8,!0;if(r.switchU&&r.eat(45))return r.lastIntValue=45,!0;if(!r.switchU&&r.eat(99)){if(this.regexp_eatClassControlLetter(r))return!0;r.pos=a}return this.regexp_eatCharacterClassEscape(r)||this.regexp_eatCharacterEscape(r)},E.regexp_classSetExpression=function(r){var a=Ze,p;if(!this.regexp_eatClassSetRange(r))if(p=this.regexp_eatClassSetOperand(r)){p===z&&(a=z);for(var m=r.pos;r.eatChars([38,38]);){if(r.current()!==38&&(p=this.regexp_eatClassSetOperand(r))){p!==z&&(a=Ze);continue}r.raise("Invalid character in character class")}if(m!==r.pos)return a;for(;r.eatChars([45,45]);)this.regexp_eatClassSetOperand(r)||r.raise("Invalid character in character class");if(m!==r.pos)return a}else r.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(r)){if(p=this.regexp_eatClassSetOperand(r),!p)return a;p===z&&(a=z)}},E.regexp_eatClassSetRange=function(r){var a=r.pos;if(this.regexp_eatClassSetCharacter(r)){var p=r.lastIntValue;if(r.eat(45)&&this.regexp_eatClassSetCharacter(r)){var m=r.lastIntValue;return p!==-1&&m!==-1&&p>m&&r.raise("Range out of order in character class"),!0}r.pos=a}return!1},E.regexp_eatClassSetOperand=function(r){return this.regexp_eatClassSetCharacter(r)?Ze:this.regexp_eatClassStringDisjunction(r)||this.regexp_eatNestedClass(r)},E.regexp_eatNestedClass=function(r){var a=r.pos;if(r.eat(91)){var p=r.eat(94),m=this.regexp_classContents(r);if(r.eat(93))return p&&m===z&&r.raise("Negated character class may contain strings"),m;r.pos=a}if(r.eat(92)){var C=this.regexp_eatCharacterClassEscape(r);if(C)return C;r.pos=a}return null},E.regexp_eatClassStringDisjunction=function(r){var a=r.pos;if(r.eatChars([92,113])){if(r.eat(123)){var p=this.regexp_classStringDisjunctionContents(r);if(r.eat(125))return p}else r.raise("Invalid escape");r.pos=a}return null},E.regexp_classStringDisjunctionContents=function(r){for(var a=this.regexp_classString(r);r.eat(124);)this.regexp_classString(r)===z&&(a=z);return a},E.regexp_classString=function(r){for(var a=0;this.regexp_eatClassSetCharacter(r);)a++;return a===1?Ze:z},E.regexp_eatClassSetCharacter=function(r){var a=r.pos;if(r.eat(92))return this.regexp_eatCharacterEscape(r)||this.regexp_eatClassSetReservedPunctuator(r)?!0:r.eat(98)?(r.lastIntValue=8,!0):(r.pos=a,!1);var p=r.current();return p<0||p===r.lookahead()&&be(p)||Ke(p)?!1:(r.advance(),r.lastIntValue=p,!0)};function be(r){return r===33||r>=35&&r<=38||r>=42&&r<=44||r===46||r>=58&&r<=64||r===94||r===96||r===126}function Ke(r){return r===40||r===41||r===45||r===47||r>=91&&r<=93||r>=123&&r<=125}E.regexp_eatClassSetReservedPunctuator=function(r){var a=r.current();return Rt(a)?(r.lastIntValue=a,r.advance(),!0):!1};function Rt(r){return r===33||r===35||r===37||r===38||r===44||r===45||r>=58&&r<=62||r===64||r===96||r===126}E.regexp_eatClassControlLetter=function(r){var a=r.current();return kt(a)||a===95?(r.lastIntValue=a%32,r.advance(),!0):!1},E.regexp_eatHexEscapeSequence=function(r){var a=r.pos;if(r.eat(120)){if(this.regexp_eatFixedHexDigits(r,2))return!0;r.switchU&&r.raise("Invalid escape"),r.pos=a}return!1},E.regexp_eatDecimalDigits=function(r){var a=r.pos,p=0;for(r.lastIntValue=0;kt(p=r.current());)r.lastIntValue=10*r.lastIntValue+(p-48),r.advance();return r.pos!==a};function kt(r){return r>=48&&r<=57}E.regexp_eatHexDigits=function(r){var a=r.pos,p=0;for(r.lastIntValue=0;qt(p=r.current());)r.lastIntValue=16*r.lastIntValue+ar(p),r.advance();return r.pos!==a};function qt(r){return r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102}function ar(r){return r>=65&&r<=70?10+(r-65):r>=97&&r<=102?10+(r-97):r-48}E.regexp_eatLegacyOctalEscapeSequence=function(r){if(this.regexp_eatOctalDigit(r)){var a=r.lastIntValue;if(this.regexp_eatOctalDigit(r)){var p=r.lastIntValue;a<=3&&this.regexp_eatOctalDigit(r)?r.lastIntValue=a*64+p*8+r.lastIntValue:r.lastIntValue=a*8+p}else r.lastIntValue=a;return!0}return!1},E.regexp_eatOctalDigit=function(r){var a=r.current();return bi(a)?(r.lastIntValue=a-48,r.advance(),!0):(r.lastIntValue=0,!1)};function bi(r){return r>=48&&r<=55}E.regexp_eatFixedHexDigits=function(r,a){var p=r.pos;r.lastIntValue=0;for(var m=0;m<a;++m){var C=r.current();if(!qt(C))return r.pos=p,!1;r.lastIntValue=16*r.lastIntValue+ar(C),r.advance()}return!0};var Er=function(a){this.type=a.type,this.value=a.value,this.start=a.start,this.end=a.end,a.options.locations&&(this.loc=new Oe(a,a.startLoc,a.endLoc)),a.options.ranges&&(this.range=[a.start,a.end])},Ie=Xe.prototype;Ie.next=function(r){!r&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Er(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Ie.getToken=function(){return this.next(),new Er(this)},typeof Symbol<"u"&&(Ie[Symbol.iterator]=function(){var r=this;return{next:function(){var a=r.getToken();return{done:a.type===d.eof,value:a}}}}),Ie.nextToken=function(){var r=this.curContext();if((!r||!r.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(d.eof);if(r.override)return r.override(this);this.readToken(this.fullCharCodeAtPos())},Ie.readToken=function(r){return v(r,this.options.ecmaVersion>=6)||r===92?this.readWord():this.getTokenFromCode(r)},Ie.fullCharCodeAt=function(r){var a=this.input.charCodeAt(r);if(a<=55295||a>=56320)return a;var p=this.input.charCodeAt(r+1);return p<=56319||p>=57344?a:(a<<10)+p-56613888},Ie.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},Ie.skipBlockComment=function(){var r=this.options.onComment&&this.curPosition(),a=this.pos,p=this.input.indexOf("*/",this.pos+=2);if(p===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=p+2,this.options.locations)for(var m=void 0,C=a;(m=U(this.input,C,this.pos))>-1;)++this.curLine,C=this.lineStart=m;this.options.onComment&&this.options.onComment(!0,this.input.slice(a+2,p),a,this.pos,r,this.curPosition())},Ie.skipLineComment=function(r){for(var a=this.pos,p=this.options.onComment&&this.curPosition(),m=this.input.charCodeAt(this.pos+=r);this.pos<this.input.length&&!S(m);)m=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(a+r,this.pos),a,this.pos,p,this.curPosition())},Ie.skipSpace=function(){e:for(;this.pos<this.input.length;){var r=this.input.charCodeAt(this.pos);switch(r){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(r>8&&r<14||r>=5760&&K.test(String.fromCharCode(r)))++this.pos;else break e}}},Ie.finishToken=function(r,a){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var p=this.type;this.type=r,this.value=a,this.updateContext(p)},Ie.readToken_dot=function(){var r=this.input.charCodeAt(this.pos+1);if(r>=48&&r<=57)return this.readNumber(!0);var a=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&r===46&&a===46?(this.pos+=3,this.finishToken(d.ellipsis)):(++this.pos,this.finishToken(d.dot))},Ie.readToken_slash=function(){var r=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):r===61?this.finishOp(d.assign,2):this.finishOp(d.slash,1)},Ie.readToken_mult_modulo_exp=function(r){var a=this.input.charCodeAt(this.pos+1),p=1,m=r===42?d.star:d.modulo;return this.options.ecmaVersion>=7&&r===42&&a===42&&(++p,m=d.starstar,a=this.input.charCodeAt(this.pos+2)),a===61?this.finishOp(d.assign,p+1):this.finishOp(m,p)},Ie.readToken_pipe_amp=function(r){var a=this.input.charCodeAt(this.pos+1);if(a===r){if(this.options.ecmaVersion>=12){var p=this.input.charCodeAt(this.pos+2);if(p===61)return this.finishOp(d.assign,3)}return this.finishOp(r===124?d.logicalOR:d.logicalAND,2)}return a===61?this.finishOp(d.assign,2):this.finishOp(r===124?d.bitwiseOR:d.bitwiseAND,1)},Ie.readToken_caret=function(){var r=this.input.charCodeAt(this.pos+1);return r===61?this.finishOp(d.assign,2):this.finishOp(d.bitwiseXOR,1)},Ie.readToken_plus_min=function(r){var a=this.input.charCodeAt(this.pos+1);return a===r?a===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||F.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(d.incDec,2):a===61?this.finishOp(d.assign,2):this.finishOp(d.plusMin,1)},Ie.readToken_lt_gt=function(r){var a=this.input.charCodeAt(this.pos+1),p=1;return a===r?(p=r===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+p)===61?this.finishOp(d.assign,p+1):this.finishOp(d.bitShift,p)):a===33&&r===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(a===61&&(p=2),this.finishOp(d.relational,p))},Ie.readToken_eq_excl=function(r){var a=this.input.charCodeAt(this.pos+1);return a===61?this.finishOp(d.equality,this.input.charCodeAt(this.pos+2)===61?3:2):r===61&&a===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(d.arrow)):this.finishOp(r===61?d.eq:d.prefix,1)},Ie.readToken_question=function(){var r=this.options.ecmaVersion;if(r>=11){var a=this.input.charCodeAt(this.pos+1);if(a===46){var p=this.input.charCodeAt(this.pos+2);if(p<48||p>57)return this.finishOp(d.questionDot,2)}if(a===63){if(r>=12){var m=this.input.charCodeAt(this.pos+2);if(m===61)return this.finishOp(d.assign,3)}return this.finishOp(d.coalesce,2)}}return this.finishOp(d.question,1)},Ie.readToken_numberSign=function(){var r=this.options.ecmaVersion,a=35;if(r>=13&&(++this.pos,a=this.fullCharCodeAtPos(),v(a,!0)||a===92))return this.finishToken(d.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+ce(a)+"'")},Ie.getTokenFromCode=function(r){switch(r){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(d.parenL);case 41:return++this.pos,this.finishToken(d.parenR);case 59:return++this.pos,this.finishToken(d.semi);case 44:return++this.pos,this.finishToken(d.comma);case 91:return++this.pos,this.finishToken(d.bracketL);case 93:return++this.pos,this.finishToken(d.bracketR);case 123:return++this.pos,this.finishToken(d.braceL);case 125:return++this.pos,this.finishToken(d.braceR);case 58:return++this.pos,this.finishToken(d.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(d.backQuote);case 48:var a=this.input.charCodeAt(this.pos+1);if(a===120||a===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(a===111||a===79)return this.readRadixNumber(8);if(a===98||a===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(r);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(r);case 124:case 38:return this.readToken_pipe_amp(r);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(r);case 60:case 62:return this.readToken_lt_gt(r);case 61:case 33:return this.readToken_eq_excl(r);case 63:return this.readToken_question();case 126:return this.finishOp(d.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+ce(r)+"'")},Ie.finishOp=function(r,a){var p=this.input.slice(this.pos,this.pos+a);return this.pos+=a,this.finishToken(r,p)},Ie.readRegexp=function(){for(var r,a,p=this.pos;;){this.pos>=this.input.length&&this.raise(p,"Unterminated regular expression");var m=this.input.charAt(this.pos);if(F.test(m)&&this.raise(p,"Unterminated regular expression"),r)r=!1;else{if(m==="[")a=!0;else if(m==="]"&&a)a=!1;else if(m==="/"&&!a)break;r=m==="\\"}++this.pos}var C=this.input.slice(p,this.pos);++this.pos;var P=this.pos,I=this.readWord1();this.containsEsc&&this.unexpected(P);var W=this.regexpState||(this.regexpState=new Y(this));W.reset(p,C,I),this.validateRegExpFlags(W),this.validateRegExpPattern(W);var ie=null;try{ie=new RegExp(C,I)}catch{}return this.finishToken(d.regexp,{pattern:C,flags:I,value:ie})},Ie.readInt=function(r,a,p){for(var m=this.options.ecmaVersion>=12&&a===void 0,C=p&&this.input.charCodeAt(this.pos)===48,P=this.pos,I=0,W=0,ie=0,Ae=a??1/0;ie<Ae;++ie,++this.pos){var Te=this.input.charCodeAt(this.pos),et=void 0;if(m&&Te===95){C&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),W===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),ie===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),W=Te;continue}if(Te>=97?et=Te-97+10:Te>=65?et=Te-65+10:Te>=48&&Te<=57?et=Te-48:et=1/0,et>=r)break;W=Te,I=I*r+et}return m&&W===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===P||a!=null&&this.pos-P!==a?null:I};function Tc(r,a){return a?parseInt(r,8):parseFloat(r.replace(/_/g,""))}function wa(r){return typeof BigInt!="function"?null:BigInt(r.replace(/_/g,""))}Ie.readRadixNumber=function(r){var a=this.pos;this.pos+=2;var p=this.readInt(r);return p==null&&this.raise(this.start+2,"Expected number in radix "+r),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(p=wa(this.input.slice(a,this.pos)),++this.pos):v(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(d.num,p)},Ie.readNumber=function(r){var a=this.pos;!r&&this.readInt(10,void 0,!0)===null&&this.raise(a,"Invalid number");var p=this.pos-a>=2&&this.input.charCodeAt(a)===48;p&&this.strict&&this.raise(a,"Invalid number");var m=this.input.charCodeAt(this.pos);if(!p&&!r&&this.options.ecmaVersion>=11&&m===110){var C=wa(this.input.slice(a,this.pos));return++this.pos,v(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(d.num,C)}p&&/[89]/.test(this.input.slice(a,this.pos))&&(p=!1),m===46&&!p&&(++this.pos,this.readInt(10),m=this.input.charCodeAt(this.pos)),(m===69||m===101)&&!p&&(m=this.input.charCodeAt(++this.pos),(m===43||m===45)&&++this.pos,this.readInt(10)===null&&this.raise(a,"Invalid number")),v(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var P=Tc(this.input.slice(a,this.pos),p);return this.finishToken(d.num,P)},Ie.readCodePoint=function(){var r=this.input.charCodeAt(this.pos),a;if(r===123){this.options.ecmaVersion<6&&this.unexpected();var p=++this.pos;a=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,a>1114111&&this.invalidStringToken(p,"Code point out of bounds")}else a=this.readHexChar(4);return a},Ie.readString=function(r){for(var a="",p=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var m=this.input.charCodeAt(this.pos);if(m===r)break;m===92?(a+=this.input.slice(p,this.pos),a+=this.readEscapedChar(!1),p=this.pos):m===8232||m===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(S(m)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return a+=this.input.slice(p,this.pos++),this.finishToken(d.string,a)};var Ta={};Ie.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(r){if(r===Ta)this.readInvalidTemplateToken();else throw r}this.inTemplateElement=!1},Ie.invalidStringToken=function(r,a){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ta;this.raise(r,a)},Ie.readTmplToken=function(){for(var r="",a=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var p=this.input.charCodeAt(this.pos);if(p===96||p===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===d.template||this.type===d.invalidTemplate)?p===36?(this.pos+=2,this.finishToken(d.dollarBraceL)):(++this.pos,this.finishToken(d.backQuote)):(r+=this.input.slice(a,this.pos),this.finishToken(d.template,r));if(p===92)r+=this.input.slice(a,this.pos),r+=this.readEscapedChar(!0),a=this.pos;else if(S(p)){switch(r+=this.input.slice(a,this.pos),++this.pos,p){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:r+=`
|
|
10
|
+
`;break;default:r+=String.fromCharCode(p);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),a=this.pos}else++this.pos}},Ie.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(d.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
11
|
+
`&&++this.pos;case`
|
|
12
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},Ie.readEscapedChar=function(r){var a=this.input.charCodeAt(++this.pos);switch(++this.pos,a){case 110:return`
|
|
13
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return ce(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"),r){var p=this.pos-1;this.invalidStringToken(p,"Invalid escape sequence in template string")}default:if(a>=48&&a<=55){var m=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],C=parseInt(m,8);return C>255&&(m=m.slice(0,-1),C=parseInt(m,8)),this.pos+=m.length-1,a=this.input.charCodeAt(this.pos),(m!=="0"||a===56||a===57)&&(this.strict||r)&&this.invalidStringToken(this.pos-1-m.length,r?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(C)}return S(a)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(a)}},Ie.readHexChar=function(r){var a=this.pos,p=this.readInt(16,r);return p===null&&this.invalidStringToken(a,"Bad character escape sequence"),p},Ie.readWord1=function(){this.containsEsc=!1;for(var r="",a=!0,p=this.pos,m=this.options.ecmaVersion>=6;this.pos<this.input.length;){var C=this.fullCharCodeAtPos();if(b(C,m))this.pos+=C<=65535?1:2;else if(C===92){this.containsEsc=!0,r+=this.input.slice(p,this.pos);var P=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var I=this.readCodePoint();(a?v:b)(I,m)||this.invalidStringToken(P,"Invalid Unicode escape"),r+=ce(I),p=this.pos}else break;a=!1}return r+this.input.slice(p,this.pos)},Ie.readWord=function(){var r=this.readWord1(),a=d.name;return this.keywords.test(r)&&(a=_[r]),this.finishToken(a,r)};var Fa="8.19.0";Xe.acorn={Parser:Xe,version:Fa,defaultOptions:st,Position:Pe,SourceLocation:Oe,getLineInfo:Je,Node:bt,TokenType:D,tokTypes:d,keywordTypes:_,TokContext:Tt,tokContexts:ze,isIdentifierChar:b,isIdentifierStart:v,Token:Er,isNewLine:S,lineBreak:F,lineBreakG:L,nonASCIIwhitespace:K};function Fc(r,a){return Xe.parse(r,a)}function kc(r,a,p){return Xe.parseExpressionAt(r,a,p)}function _c(r,a){return Xe.tokenizer(r,a)}e.Node=bt,e.Parser=Xe,e.Position=Pe,e.SourceLocation=Oe,e.TokContext=Tt,e.Token=Er,e.TokenType=D,e.defaultOptions=st,e.getLineInfo=Je,e.isIdentifierChar=b,e.isIdentifierStart=v,e.isNewLine=S,e.keywordTypes=_,e.lineBreak=F,e.lineBreakG=L,e.nonASCIIwhitespace=K,e.parse=Fc,e.parseExpressionAt=kc,e.tokContexts=ze,e.tokTypes=d,e.tokenizer=_c,e.version=Fa}))});var ic=rn((cd,Qs)=>{"use strict";var Ih=Zu(),Nh=/^[\da-fA-F]+$/,Rh=/^\d+$/,tc=new WeakMap;function rc(e){e=e.Parser.acorn||e;let t=tc.get(e);if(!t){let i=e.tokTypes,n=e.TokContext,s=e.TokenType,o=new n("<tag",!1),u=new n("</tag",!1),c=new n("<tag>...</tag>",!0,!0),h={tc_oTag:o,tc_cTag:u,tc_expr:c},g={jsxName:new s("jsxName"),jsxText:new s("jsxText",{beforeExpr:!0}),jsxTagStart:new s("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new s("jsxTagEnd")};g.jsxTagStart.updateContext=function(){this.context.push(c),this.context.push(o),this.exprAllowed=!1},g.jsxTagEnd.updateContext=function(y){let A=this.context.pop();A===o&&y===i.slash||A===u?(this.context.pop(),this.exprAllowed=this.curContext()===c):this.exprAllowed=!0},t={tokContexts:h,tokTypes:g},tc.set(e,t)}return t}function Wi(e){if(!e)return e;if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return Wi(e.object)+"."+Wi(e.property)}Qs.exports=function(e){return e=e||{},function(t){return Lh({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}};Object.defineProperty(Qs.exports,"tokTypes",{get:function(){return rc(Hs()).tokTypes},configurable:!0,enumerable:!0});function Lh(e,t){let i=t.acorn||Hs(),n=rc(i),s=i.tokTypes,o=n.tokTypes,u=i.tokContexts,c=n.tokContexts.tc_oTag,h=n.tokContexts.tc_cTag,g=n.tokContexts.tc_expr,y=i.isNewLine,A=i.isIdentifierStart,v=i.isIdentifierChar;return class extends t{static get acornJsx(){return n}jsx_readToken(){let b="",D=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(o.jsxTagStart)):this.getTokenFromCode(T):(b+=this.input.slice(D,this.pos),this.finishToken(o.jsxText,b));case 38:b+=this.input.slice(D,this.pos),b+=this.jsx_readEntity(),D=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:y(T)?(b+=this.input.slice(D,this.pos),b+=this.jsx_readNewLine(!0),D=this.pos):++this.pos}}}jsx_readNewLine(b){let D=this.input.charCodeAt(this.pos),T;return++this.pos,D===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,T=b?`
|
|
14
|
+
`:`\r
|
|
15
|
+
`):T=String.fromCharCode(D),this.options.locations&&(++this.curLine,this.lineStart=this.pos),T}jsx_readString(b){let D="",T=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let J=this.input.charCodeAt(this.pos);if(J===b)break;J===38?(D+=this.input.slice(T,this.pos),D+=this.jsx_readEntity(),T=this.pos):y(J)?(D+=this.input.slice(T,this.pos),D+=this.jsx_readNewLine(!1),T=this.pos):++this.pos}return D+=this.input.slice(T,this.pos++),this.finishToken(s.string,D)}jsx_readEntity(){let b="",D=0,T,J=this.input[this.pos];J!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let w=++this.pos;for(;this.pos<this.input.length&&D++<10;){if(J=this.input[this.pos++],J===";"){b[0]==="#"?b[1]==="x"?(b=b.substr(2),Nh.test(b)&&(T=String.fromCharCode(parseInt(b,16)))):(b=b.substr(1),Rh.test(b)&&(T=String.fromCharCode(parseInt(b,10)))):T=Ih[b];break}b+=J}return T||(this.pos=w,"&")}jsx_readWord(){let b,D=this.pos;do b=this.input.charCodeAt(++this.pos);while(v(b)||b===45);return this.finishToken(o.jsxName,this.input.slice(D,this.pos))}jsx_parseIdentifier(){let b=this.startNode();return this.type===o.jsxName?b.name=this.value:this.type.keyword?b.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(b,"JSXIdentifier")}jsx_parseNamespacedName(){let b=this.start,D=this.startLoc,T=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(s.colon))return T;var J=this.startNodeAt(b,D);return J.namespace=T,J.name=this.jsx_parseIdentifier(),this.finishNode(J,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===o.jsxTagEnd)return"";let b=this.start,D=this.startLoc,T=this.jsx_parseNamespacedName();for(this.type===s.dot&&T.type==="JSXNamespacedName"&&!e.allowNamespacedObjects&&this.unexpected();this.eat(s.dot);){let J=this.startNodeAt(b,D);J.object=T,J.property=this.jsx_parseIdentifier(),T=this.finishNode(J,"JSXMemberExpression")}return T}jsx_parseAttributeValue(){switch(this.type){case s.braceL:let b=this.jsx_parseExpressionContainer();return b.expression.type==="JSXEmptyExpression"&&this.raise(b.start,"JSX attributes must only be assigned a non-empty expression"),b;case o.jsxTagStart:case s.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let b=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(b,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let b=this.startNode();return this.next(),b.expression=this.type===s.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(s.braceR),this.finishNode(b,"JSXExpressionContainer")}jsx_parseAttribute(){let b=this.startNode();return this.eat(s.braceL)?(this.expect(s.ellipsis),b.argument=this.parseMaybeAssign(),this.expect(s.braceR),this.finishNode(b,"JSXSpreadAttribute")):(b.name=this.jsx_parseNamespacedName(),b.value=this.eat(s.eq)?this.jsx_parseAttributeValue():null,this.finishNode(b,"JSXAttribute"))}jsx_parseOpeningElementAt(b,D){let T=this.startNodeAt(b,D);T.attributes=[];let J=this.jsx_parseElementName();for(J&&(T.name=J);this.type!==s.slash&&this.type!==o.jsxTagEnd;)T.attributes.push(this.jsx_parseAttribute());return T.selfClosing=this.eat(s.slash),this.expect(o.jsxTagEnd),this.finishNode(T,J?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(b,D){let T=this.startNodeAt(b,D),J=this.jsx_parseElementName();return J&&(T.name=J),this.expect(o.jsxTagEnd),this.finishNode(T,J?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(b,D){let T=this.startNodeAt(b,D),J=[],w=this.jsx_parseOpeningElementAt(b,D),_=null;if(!w.selfClosing){e:for(;;)switch(this.type){case o.jsxTagStart:if(b=this.start,D=this.startLoc,this.next(),this.eat(s.slash)){_=this.jsx_parseClosingElementAt(b,D);break e}J.push(this.jsx_parseElementAt(b,D));break;case o.jsxText:J.push(this.parseExprAtom());break;case s.braceL:J.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}Wi(_.name)!==Wi(w.name)&&this.raise(_.start,"Expected corresponding JSX closing tag for <"+Wi(w.name)+">")}let N=w.name?"Element":"Fragment";return T["opening"+N]=w,T["closing"+N]=_,T.children=J,this.type===s.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(T,"JSX"+N)}jsx_parseText(){let b=this.parseLiteral(this.value);return b.type="JSXText",b}jsx_parseElement(){let b=this.start,D=this.startLoc;return this.next(),this.jsx_parseElementAt(b,D)}parseExprAtom(b){return this.type===o.jsxText?this.jsx_parseText():this.type===o.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(b)}readToken(b){let D=this.curContext();if(D===g)return this.jsx_readToken();if(D===c||D===h){if(A(b))return this.jsx_readWord();if(b==62)return++this.pos,this.finishToken(o.jsxTagEnd);if((b===34||b===39)&&D==c)return this.jsx_readString(b)}return b===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(o.jsxTagStart)):super.readToken(b)}updateContext(b){if(this.type==s.braceL){var D=this.curContext();D==c?this.context.push(u.b_expr):D==g?this.context.push(u.b_tmpl):super.updateContext(b),this.exprAllowed=!0}else if(this.type===s.slash&&b===o.jsxTagStart)this.context.length-=2,this.context.push(h),this.exprAllowed=!1;else return super.updateContext(b)}}}});var qr={};Lc(qr,{comparePaths:()=>va,dropPathSegmentQuotes:()=>Ur,enforcedContexts:()=>ma,exemptSpeciaMethods:()=>xa,filterTags:()=>li,flattenRoots:()=>jr,forEachPreferredTag:()=>oa,getAllTags:()=>ua,getClosureTemplateTagDefaults:()=>Yh,getContextObject:()=>ya,getDocumentNamepathDefiningTags:()=>$h,getFunctionParameterNames:()=>ra,getIndent:()=>ef,getInlineTags:()=>On,getJSDocCommentBlocks:()=>yc,getJsdocTagsDeep:()=>na,getPreferredTagName:()=>Ln,getPreferredTagNameSimple:()=>Nn,getRegexFromString:()=>Aa,getTagDescription:()=>sa,getTagStructureForMode:()=>la,getTags:()=>Rn,getTagsByType:()=>ga,hasATag:()=>Vn,hasParams:()=>ia,hasReturnValue:()=>At,hasTag:()=>ci,hasThrowValue:()=>nr,hasValueOrExecutorHasNonEmptyResolveValue:()=>In,hasYieldValue:()=>Gi,isConstructor:()=>jn,isGetter:()=>Cc,isNameOrNamepathDefiningTag:()=>mc,isNamepathOrUrlReferencingTag:()=>Gh,isNamepathReferencingTag:()=>Wh,isSetter:()=>Ac,isValidTag:()=>aa,mayBeUndefinedTypeTag:()=>ca,overrideTagStructure:()=>Mn,parseClosureTemplateTag:()=>da,pathDoesNotBeginWith:()=>Ca,rewireByParsedType:()=>rf,setTagStructure:()=>ta,strictNativeTypes:()=>tf,tagMightHaveEitherTypeOrNamePosition:()=>xc,tagMightHaveName:()=>Qh,tagMightHaveNameOrNamepath:()=>fa,tagMightHaveNamePosition:()=>zh,tagMightHaveNamepath:()=>Hh,tagMightHaveTypePosition:()=>ha,tagMissingRequiredTypeOrNamepath:()=>Jn,tagMustHaveNamePosition:()=>gc,tagMustHaveTypePosition:()=>pa});var Vc=e=>{let t=e==="jsdoc",i=e==="closure",n=e==="typescript",s=e==="permissive",o=t||s,u=t||n,c=n||i,h=i||s,g=u||s;return new Map([["alias",new Map([["namepathRole","namepath-defining"],["typeOrNameRequired",!0]])],["arg",new Map([["namepathRole","namepath-defining"],["nameRequired",!0],["typeAllowed",!0]])],["argument",new Map([["namepathRole","namepath-defining"],["nameRequired",!0],["typeAllowed",!0]])],["augments",new Map([["namepathRole","namepath-referencing"],["typeAllowed",!0],["typeOrNameRequired",!0]])],["borrows",new Map([["namepathRole","namepath-referencing"],["typeOrNameRequired",!0]])],["callback",new Map([["namepathRole","namepath-defining"],["nameRequired",!0]])],["class",new Map([["nameAllowed",!0],["namepathRole","namepath-defining"],["typeAllowed",!0]])],["const",new Map([["namepathRole","namepath-defining"],["typeAllowed",!0]])],["constant",new Map([["namepathRole","namepath-defining"],["typeAllowed",!0]])],["constructor",new Map([["namepathRole","namepath-defining"],["typeAllowed",!0]])],["constructs",new Map([["namepathRole","namepath-defining"],["nameRequired",!1],["typeAllowed",!1]])],["define",new Map([["typeRequired",i]])],["emits",new Map([["namepathRole","namepath-referencing"],["nameRequired",!0],["typeAllowed",!1]])],["enum",new Map([["namepathRole","name-defining"],["typeAllowed",!0]])],["event",new Map([["namepathRole","namepath-defining"],["nameRequired",!0]])],["exception",new Map([["typeAllowed",!0]])],["export",new Map([["typeAllowed",h]])],["exports",new Map([["namepathRole","namepath-defining"],["nameRequired",t],["typeAllowed",h]])],["extends",new Map([["namepathRole","namepath-referencing"],["nameRequired",t],["typeAllowed",c||s],["typeOrNameRequired",c||s]])],["external",new Map([["namepathRole","namepath-defining"],["nameRequired",!0],["typeAllowed",!1]])],["fires",new Map([["namepathRole","namepath-referencing"],["nameRequired",!0],["typeAllowed",!1]])],["func",new Map([["namepathRole","namepath-defining"]])],["function",new Map([["namepathRole","namepath-defining"],["nameRequired",!1],["typeAllowed",!1]])],["host",new Map([["namepathRole","namepath-defining"],["nameRequired",!0],["typeAllowed",!1]])],["implements",new Map([["typeRequired",!0]])],["interface",new Map([["nameAllowed",i],["namepathRole",g?"namepath-defining":!1],["typeAllowed",!1]])],["internal",new Map([["nameAllowed",!1],["namepathRole",!1]])],["lends",new Map([["namepathRole","namepath-referencing"],["typeOrNameRequired",!0]])],["link",new Map([["namepathRole","namepath-or-url-referencing"]])],["linkcode",new Map([["namepathRole","namepath-or-url-referencing"]])],["linkplain",new Map([["namepathRole","namepath-or-url-referencing"]])],["listens",new Map([["namepathRole","namepath-referencing"],["nameRequired",!0],["typeAllowed",!1]])],["member",new Map([["namepathRole","namepath-defining"],["typeAllowed",!0]])],["memberof!",new Map([["namepathRole","namepath-referencing"],["typeOrNameRequired",!0]])],["memberof",new Map([["namepathRole","namepath-referencing"],["typeOrNameRequired",!0]])],["method",new Map([["namepathRole","namepath-defining"]])],["mixes",new Map([["namepathRole","namepath-referencing"],["typeOrNameRequired",!0]])],["mixin",new Map([["namepathRole","namepath-defining"],["nameRequired",!1],["typeAllowed",!1]])],["modifies",new Map([["typeAllowed",!0]])],["module",new Map([["namepathRole",t?"namepath-defining":"text"],["typeAllowed",!0]])],["name",new Map([["namepathRole","namepath-defining"],["nameRequired",!0],["typeOrNameRequired",!0]])],["namespace",new Map([["namepathRole","namepath-defining"],["typeAllowed",!0]])],["package",new Map([["typeAllowed",h]])],["param",new Map([["namepathRole","namepath-defining"],["nameRequired",!0],["typeAllowed",!0]])],["private",new Map([["typeAllowed",h]])],["prop",new Map([["namepathRole","namepath-defining"],["nameRequired",!0],["typeAllowed",!0]])],["property",new Map([["namepathRole","namepath-defining"],["nameRequired",!0],["typeAllowed",!0]])],["protected",new Map([["typeAllowed",h]])],["public",new Map([["typeAllowed",h]])],["requires",new Map([["namepathRole","namepath-referencing"],["nameRequired",!0],["typeAllowed",!1]])],["return",new Map([["typeAllowed",!0]])],["returns",new Map([["typeAllowed",!0]])],["satisfies",new Map([["typeRequired",!0]])],["see",new Map([["namepathRole","text"]])],["static",new Map([["typeAllowed",h]])],["suppress",new Map([["namepathRole",!i],["typeRequired",i]])],["template",new Map([["namepathRole",t?"text":"namepath-referencing"],["nameRequired",!t],["typeAllowed",c||s]])],["this",new Map([["namepathRole",t?"namepath-referencing":!1],["typeOrNameRequired",t],["typeRequired",c]])],["throws",new Map([["typeAllowed",!0]])],["tutorial",new Map([["nameRequired",!0],["typeAllowed",!1]])],["type",new Map([["typeRequired",!0]])],["typedef",new Map([["namepathRole","name-defining"],["nameRequired",o],["typeAllowed",!0],["typeOrNameRequired",!n]])],["var",new Map([["namepathRole","namepath-defining"],["typeAllowed",!0]])],["yield",new Map([["typeAllowed",!0]])],["yields",new Map([["typeAllowed",!0]])]])},Gn=Vc;var Mc={modifies:[]},nn={...Mc,abstract:["virtual"],access:[],alias:[],async:[],augments:["extends"],author:[],borrows:[],callback:[],class:["constructor"],classdesc:[],constant:["const"],constructs:[],copyright:[],default:["defaultvalue"],deprecated:[],description:["desc"],enum:[],event:[],example:[],exports:[],external:["host"],file:["fileoverview","overview"],fires:["emits"],function:["func","method"],generator:[],global:[],hideconstructor:[],ignore:[],implements:[],inheritdoc:[],inheritDoc:[],inner:[],instance:[],interface:[],kind:[],lends:[],license:[],listens:[],member:["var"],memberof:[],"memberof!":[],mixes:[],mixin:[],module:[],name:[],namespace:[],override:[],package:[],param:["arg","argument"],private:[],property:["prop"],protected:[],public:[],readonly:[],requires:[],returns:["return"],see:[],since:[],static:[],summary:[],this:[],throws:["exception"],todo:[],tutorial:[],type:[],typedef:[],variation:[],version:[],yields:["yield"]},Jc={alpha:[],beta:[],decorator:[],eventProperty:[],experimental:[],packageDocumentation:[],privateRemarks:[],remarks:[],sealed:[]},jc={category:[],categoryDescription:[],disableGroups:[],document:[],expand:[],expandType:[],group:[],groupDescription:[],hidden:[],hideCategories:[],hideGroups:[],inline:[],inlineType:[],mergeModuleWith:[],preventExpand:[],preventInline:[],primaryExport:[],showCategories:[],showGroups:[],sortStrategy:[],useDeclaredType:[]},Kn={...nn,...Jc,...jc,import:[],internal:[],jsx:[],overload:[],satisfies:[],template:["typeParam"]},Uc={closurePrimitive:[],customElement:[],expose:[],hidden:[],idGenerator:[],meaning:[],mixinClass:[],mixinFunction:[],ngInject:[],owner:[],typeSummary:[],wizaction:[]},{inheritdoc:pf,internal:hf,overload:ff,returns:df,satisfies:mf,...qc}=Kn,ka={...qc,...Uc,define:[],dict:[],export:[],externs:[],final:[],implicitCast:[],noalias:[],nocollapse:[],nocompile:[],noinline:[],nosideeffects:[],polymer:[],polymerBehavior:[],preserve:[],record:[],return:["returns"],struct:[],suppress:[],unrestricted:[]};var $c=function(){let e=new WeakMap;return{hasBeenWarned(t,i){return e.has(t)&&e.get(t).has(i)},markSettingAsWarned(t,i){e.has(t)||e.set(t,new Set),e.get(t).add(i)}}},_a=$c;import Wc from"url";import Gc from"fs";import Kc from"path";function zc(e,t){return t.forEach(function(i){i&&typeof i!="string"&&!Array.isArray(i)&&Object.keys(i).forEach(function(n){if(n!=="default"&&!(n in e)){var s=Object.getOwnPropertyDescriptor(i,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:function(){return i[n]}})}})}),Object.freeze(e)}function Hc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pa,Ba,sn={},zn={},Hn={},Qn={};function Qc(){if(Pa)return Qn;Pa=1;let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Qn.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Qn}function co(){if(Ba)return Hn;Ba=1;let e=Qc();return Hn.encode=function(t){let i,n="",s=(function(o){return o<0?1+(-o<<1):0+(o<<1)})(t);do i=31&s,s>>>=5,s>0&&(i|=32),n+=e.encode(i);while(s>0);return n},Hn}var Ia,Na,Ra,er={};function Xc(){return Na?Ia:(Na=1,Ia=typeof URL=="function"?URL:Wc.URL)}function fn(){if(Ra)return er;Ra=1;let e=Xc();er.getArg=function(w,_,N){if(_ in w)return w[_];if(arguments.length===3)return N;throw new Error('"'+_+'" is a required argument.')};let t=!("__proto__"in Object.create(null));function i(w){return w}function n(w){if(!w)return!1;let _=w.length;if(_<9||w.charCodeAt(_-1)!==95||w.charCodeAt(_-2)!==95||w.charCodeAt(_-3)!==111||w.charCodeAt(_-4)!==116||w.charCodeAt(_-5)!==111||w.charCodeAt(_-6)!==114||w.charCodeAt(_-7)!==112||w.charCodeAt(_-8)!==95||w.charCodeAt(_-9)!==95)return!1;for(let N=_-10;N>=0;N--)if(w.charCodeAt(N)!==36)return!1;return!0}function s(w,_){return w===_?0:w===null?1:_===null?-1:w>_?1:-1}er.toSetString=t?i:function(w){return n(w)?"$"+w:w},er.fromSetString=t?i:function(w){return n(w)?w.slice(1):w},er.compareByGeneratedPositionsInflated=function(w,_){let N=w.generatedLine-_.generatedLine;return N!==0?N:(N=w.generatedColumn-_.generatedColumn,N!==0?N:(N=s(w.source,_.source),N!==0?N:(N=w.originalLine-_.originalLine,N!==0?N:(N=w.originalColumn-_.originalColumn,N!==0?N:s(w.name,_.name)))))},er.parseSourceMapInput=function(w){return JSON.parse(w.replace(/^\)]}'[^\n]*\n/,""))};let o="http:",u=`${o}//host`;function c(w){return _=>{let N=A(_),d=g(_),F=new e(_,d);w(F);let L=F.toString();return N==="absolute"?L:N==="scheme-relative"?L.slice(5):N==="path-absolute"?L.slice(u.length):v(d,L)}}function h(w,_){return new e(w,_).toString()}function g(w){let _=w.split("..").length-1,N=(function(F,L){let S=0;for(;;){let U=F+S++;if(L.indexOf(U)===-1)return U}})("p",w),d=`${u}/`;for(let F=0;F<_;F++)d+=`${N}/`;return d}let y=/^[A-Za-z0-9\+\-\.]+:/;function A(w){return w[0]==="/"?w[1]==="/"?"scheme-relative":"path-absolute":y.test(w)?"absolute":"path-relative"}function v(w,_){typeof w=="string"&&(w=new e(w)),typeof _=="string"&&(_=new e(_));let N=_.pathname.split("/"),d=w.pathname.split("/");for(d.length>0&&!d[d.length-1]&&d.pop();N.length>0&&d.length>0&&N[0]===d[0];)N.shift(),d.shift();return d.map(()=>"..").concat(N).join("/")+_.search+_.hash}let b=c(w=>{w.pathname=w.pathname.replace(/\/?$/,"/")}),D=c(w=>{w.href=new e(".",w.toString()).toString()}),T=c(w=>{});function J(w,_){let N=A(_),d=A(w);if(w=b(w),N==="absolute")return h(_,void 0);if(d==="absolute")return h(_,w);if(N==="scheme-relative")return T(_);if(d==="scheme-relative")return h(_,h(w,u)).slice(5);if(N==="path-absolute")return T(_);if(d==="path-absolute")return h(_,h(w,u)).slice(u.length);let F=g(_+w);return v(F,h(_,h(w,F)))}return er.normalize=T,er.join=J,er.relative=function(w,_){let N=(function(d,F){if(A(d)!==A(F))return null;let S=g(d+F),U=new e(d,S),K=new e(F,S);try{new e("",K.toString())}catch{return null}return K.protocol!==U.protocol||K.user!==U.user||K.password!==U.password||K.hostname!==U.hostname||K.port!==U.port?null:v(U,K)})(w,_);return typeof N=="string"?N:T(_)},er.computeSourceURL=function(w,_,N){w&&A(_)==="path-absolute"&&(_=_.replace(/^\//,""));let d=T(_||"");return w&&(d=J(w,d)),N&&(d=J(D(N),d)),d},er}var La,Xn={};function lo(){if(La)return Xn;La=1;class e{constructor(){this._array=[],this._set=new Map}static fromArray(i,n){let s=new e;for(let o=0,u=i.length;o<u;o++)s.add(i[o],n);return s}size(){return this._set.size}add(i,n){let s=this.has(i),o=this._array.length;s&&!n||this._array.push(i),s||this._set.set(i,o)}has(i){return this._set.has(i)}indexOf(i){let n=this._set.get(i);if(n>=0)return n;throw new Error('"'+i+'" is not in the set.')}at(i){if(i>=0&&i<this._array.length)return this._array[i];throw new Error("No element indexed by "+i)}toArray(){return this._array.slice()}}return Xn.ArraySet=e,Xn}var Oa,Va,Yn={};function Yc(){if(Oa)return Yn;Oa=1;let e=fn();return Yn.MappingList=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(t,i){this._array.forEach(t,i)}add(t){(function(i,n){let s=i.generatedLine,o=n.generatedLine,u=i.generatedColumn,c=n.generatedColumn;return o>s||o==s&&c>=u||e.compareByGeneratedPositionsInflated(i,n)<=0})(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))}toArray(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}},Yn}function Ma(){if(Va)return zn;Va=1;let e=co(),t=fn(),i=lo().ArraySet,n=Yc().MappingList;class s{constructor(u){u||(u={}),this._file=t.getArg(u,"file",null),this._sourceRoot=t.getArg(u,"sourceRoot",null),this._skipValidation=t.getArg(u,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new n,this._sourcesContents=null}static fromSourceMap(u){let c=u.sourceRoot,h=new s({file:u.file,sourceRoot:c});return u.eachMapping(function(g){let y={generated:{line:g.generatedLine,column:g.generatedColumn}};g.source!=null&&(y.source=g.source,c!=null&&(y.source=t.relative(c,y.source)),y.original={line:g.originalLine,column:g.originalColumn},g.name!=null&&(y.name=g.name)),h.addMapping(y)}),u.sources.forEach(function(g){let y=g;c!=null&&(y=t.relative(c,g)),h._sources.has(y)||h._sources.add(y);let A=u.sourceContentFor(g);A!=null&&h.setSourceContent(g,A)}),h}addMapping(u){let c=t.getArg(u,"generated"),h=t.getArg(u,"original",null),g=t.getArg(u,"source",null),y=t.getArg(u,"name",null);this._skipValidation||this._validateMapping(c,h,g,y),g!=null&&(g=String(g),this._sources.has(g)||this._sources.add(g)),y!=null&&(y=String(y),this._names.has(y)||this._names.add(y)),this._mappings.add({generatedLine:c.line,generatedColumn:c.column,originalLine:h&&h.line,originalColumn:h&&h.column,source:g,name:y})}setSourceContent(u,c){let h=u;this._sourceRoot!=null&&(h=t.relative(this._sourceRoot,h)),c!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(h)]=c):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(h)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))}applySourceMap(u,c,h){let g=c;if(c==null){if(u.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);g=u.file}let y=this._sourceRoot;y!=null&&(g=t.relative(y,g));let A=this._mappings.toArray().length>0?new i:this._sources,v=new i;this._mappings.unsortedForEach(function(b){if(b.source===g&&b.originalLine!=null){let J=u.originalPositionFor({line:b.originalLine,column:b.originalColumn});J.source!=null&&(b.source=J.source,h!=null&&(b.source=t.join(h,b.source)),y!=null&&(b.source=t.relative(y,b.source)),b.originalLine=J.line,b.originalColumn=J.column,J.name!=null&&(b.name=J.name))}let D=b.source;D==null||A.has(D)||A.add(D);let T=b.name;T==null||v.has(T)||v.add(T)},this),this._sources=A,this._names=v,u.sources.forEach(function(b){let D=u.sourceContentFor(b);D!=null&&(h!=null&&(b=t.join(h,b)),y!=null&&(b=t.relative(y,b)),this.setSourceContent(b,D))},this)}_validateMapping(u,c,h,g){if(c&&typeof c.line!="number"&&typeof c.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(u&&"line"in u&&"column"in u&&u.line>0&&u.column>=0&&!c&&!h&&!g)){if(!(u&&"line"in u&&"column"in u&&c&&"line"in c&&"column"in c&&u.line>0&&u.column>=0&&c.line>0&&c.column>=0&&h))throw new Error("Invalid mapping: "+JSON.stringify({generated:u,source:h,original:c,name:g}))}}_serializeMappings(){let u,c,h,g,y=0,A=1,v=0,b=0,D=0,T=0,J="",w=this._mappings.toArray();for(let _=0,N=w.length;_<N;_++){if(c=w[_],u="",c.generatedLine!==A)for(y=0;c.generatedLine!==A;)u+=";",A++;else if(_>0){if(!t.compareByGeneratedPositionsInflated(c,w[_-1]))continue;u+=","}u+=e.encode(c.generatedColumn-y),y=c.generatedColumn,c.source!=null&&(g=this._sources.indexOf(c.source),u+=e.encode(g-T),T=g,u+=e.encode(c.originalLine-1-b),b=c.originalLine-1,u+=e.encode(c.originalColumn-v),v=c.originalColumn,c.name!=null&&(h=this._names.indexOf(c.name),u+=e.encode(h-D),D=h)),J+=u}return J}_generateSourcesContent(u,c){return u.map(function(h){if(!this._sourcesContents)return null;c!=null&&(h=t.relative(c,h));let g=t.toSetString(h);return Object.prototype.hasOwnProperty.call(this._sourcesContents,g)?this._sourcesContents[g]:null},this)}toJSON(){let u={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(u.file=this._file),this._sourceRoot!=null&&(u.sourceRoot=this._sourceRoot),this._sourcesContents&&(u.sourcesContent=this._generateSourcesContent(u.sources,u.sourceRoot)),u}toString(){return JSON.stringify(this.toJSON())}}return s.prototype._version=3,zn.SourceMapGenerator=s,zn}var Ja,Di={},ja={};function Zc(){return Ja||(Ja=1,(function(e){function t(i,n,s,o,u,c){let h=Math.floor((n-i)/2)+i,g=u(s,o[h],!0);return g===0?h:g>0?n-h>1?t(h,n,s,o,u,c):c===e.LEAST_UPPER_BOUND?n<o.length?n:-1:h:h-i>1?t(i,h,s,o,u,c):c==e.LEAST_UPPER_BOUND?h:i<0?-1:i}e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(i,n,s,o){if(n.length===0)return-1;let u=t(-1,n.length,i,n,s,o||e.GREATEST_LOWER_BOUND);if(u<0)return-1;for(;u-1>=0&&s(n[u],n[u-1],!0)===0;)--u;return u}})(ja)),ja}var Ua,Zn,qa,$a,an={exports:{}};function po(){if(Ua)return an.exports;Ua=1;let e=Gc,t=Kc;return an.exports=function(){return new Promise((i,n)=>{let s=t.join(__dirname,"mappings.wasm");e.readFile(s,null,(o,u)=>{o?n(o):i(u.buffer)})})},an.exports.initialize=i=>{console.debug("SourceMapConsumer.initialize is a no-op when running in node.js")},an.exports}function el(){if(qa)return Zn;qa=1;let e=po();function t(){this.generatedLine=0,this.generatedColumn=0,this.lastGeneratedColumn=null,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let i=null;return Zn=function(){if(i)return i;let n=[];return i=e().then(s=>WebAssembly.instantiate(s,{env:{mapping_callback(o,u,c,h,g,y,A,v,b,D){let T=new t;T.generatedLine=o+1,T.generatedColumn=u,c&&(T.lastGeneratedColumn=h-1),g&&(T.source=y,T.originalLine=A+1,T.originalColumn=v,b&&(T.name=D)),n[n.length-1](T)},start_all_generated_locations_for(){console.time("all_generated_locations_for")},end_all_generated_locations_for(){console.timeEnd("all_generated_locations_for")},start_compute_column_spans(){console.time("compute_column_spans")},end_compute_column_spans(){console.timeEnd("compute_column_spans")},start_generated_location_for(){console.time("generated_location_for")},end_generated_location_for(){console.timeEnd("generated_location_for")},start_original_location_for(){console.time("original_location_for")},end_original_location_for(){console.timeEnd("original_location_for")},start_parse_mappings(){console.time("parse_mappings")},end_parse_mappings(){console.timeEnd("parse_mappings")},start_sort_by_generated_location(){console.time("sort_by_generated_location")},end_sort_by_generated_location(){console.timeEnd("sort_by_generated_location")},start_sort_by_original_location(){console.time("sort_by_original_location")},end_sort_by_original_location(){console.timeEnd("sort_by_original_location")}}})).then(s=>({exports:s.instance.exports,withMappingCallback:(o,u)=>{n.push(o);try{u()}finally{n.pop()}}})).then(null,s=>{throw i=null,s}),i},Zn}function tl(){if($a)return Di;$a=1;let e=fn(),t=Zc(),i=lo().ArraySet;co();let n=po(),s=el(),o=Symbol("smcInternal");class u{constructor(y,A){return y==o?Promise.resolve(this):(function(v,b){let D=v;typeof v=="string"&&(D=e.parseSourceMapInput(v));let T=D.sections!=null?new h(D,b):new c(D,b);return Promise.resolve(T)})(y,A)}static initialize(y){n.initialize(y["lib/mappings.wasm"])}static fromSourceMap(y,A){return(function(v,b){return c.fromSourceMap(v,b)})(y,A)}static async with(y,A,v){let b=await new u(y,A);try{return await v(b)}finally{b.destroy()}}eachMapping(y,A,v){throw new Error("Subclasses must implement eachMapping")}allGeneratedPositionsFor(y){throw new Error("Subclasses must implement allGeneratedPositionsFor")}destroy(){throw new Error("Subclasses must implement destroy")}}u.prototype._version=3,u.GENERATED_ORDER=1,u.ORIGINAL_ORDER=2,u.GREATEST_LOWER_BOUND=1,u.LEAST_UPPER_BOUND=2,Di.SourceMapConsumer=u;class c extends u{constructor(y,A){return super(o).then(v=>{let b=y;typeof y=="string"&&(b=e.parseSourceMapInput(y));let D=e.getArg(b,"version"),T=e.getArg(b,"sources").map(String),J=e.getArg(b,"names",[]),w=e.getArg(b,"sourceRoot",null),_=e.getArg(b,"sourcesContent",null),N=e.getArg(b,"mappings"),d=e.getArg(b,"file",null),F=e.getArg(b,"x_google_ignoreList",null);if(D!=v._version)throw new Error("Unsupported version: "+D);return v._sourceLookupCache=new Map,v._names=i.fromArray(J.map(String),!0),v._sources=i.fromArray(T,!0),v._absoluteSources=i.fromArray(v._sources.toArray().map(function(L){return e.computeSourceURL(w,L,A)}),!0),v.sourceRoot=w,v.sourcesContent=_,v._mappings=N,v._sourceMapURL=A,v.file=d,v.x_google_ignoreList=F,v._computedColumnSpans=!1,v._mappingsPtr=0,v._wasm=null,s().then(L=>(v._wasm=L,v))})}_findSourceIndex(y){let A=this._sourceLookupCache.get(y);if(typeof A=="number")return A;let v=e.computeSourceURL(null,y,this._sourceMapURL);if(this._absoluteSources.has(v)){let D=this._absoluteSources.indexOf(v);return this._sourceLookupCache.set(y,D),D}let b=e.computeSourceURL(this.sourceRoot,y,this._sourceMapURL);if(this._absoluteSources.has(b)){let D=this._absoluteSources.indexOf(b);return this._sourceLookupCache.set(y,D),D}return-1}static fromSourceMap(y,A){return new c(y.toString())}get sources(){return this._absoluteSources.toArray()}_getMappingsPtr(){return this._mappingsPtr===0&&this._parseMappings(),this._mappingsPtr}_parseMappings(){let y=this._mappings,A=y.length,v=this._wasm.exports.allocate_mappings(A)>>>0,b=new Uint8Array(this._wasm.exports.memory.buffer,v,A);for(let T=0;T<A;T++)b[T]=y.charCodeAt(T);let D=this._wasm.exports.parse_mappings(v);if(!D){let T=this._wasm.exports.get_last_error(),J=`Error parsing mappings (code ${T}): `;switch(T){case 1:J+="the mappings contained a negative line, column, source index, or name index";break;case 2:J+="the mappings contained a number larger than 2**32";break;case 3:J+="reached EOF while in the middle of parsing a VLQ";break;case 4:J+="invalid base 64 character while parsing a VLQ";break;default:J+="unknown error code"}throw new Error(J)}this._mappingsPtr=D}eachMapping(y,A,v){let b=A||null,D=v||u.GENERATED_ORDER;this._wasm.withMappingCallback(T=>{T.source!==null&&(T.source=this._absoluteSources.at(T.source),T.name!==null&&(T.name=this._names.at(T.name))),this._computedColumnSpans&&T.lastGeneratedColumn===null&&(T.lastGeneratedColumn=1/0),y.call(b,T)},()=>{switch(D){case u.GENERATED_ORDER:this._wasm.exports.by_generated_location(this._getMappingsPtr());break;case u.ORIGINAL_ORDER:this._wasm.exports.by_original_location(this._getMappingsPtr());break;default:throw new Error("Unknown order of iteration.")}})}allGeneratedPositionsFor(y){let A=e.getArg(y,"source"),v=e.getArg(y,"line"),b=y.column||0;if(A=this._findSourceIndex(A),A<0)return[];if(v<1)throw new Error("Line numbers must be >= 1");if(b<0)throw new Error("Column numbers must be >= 0");let D=[];return this._wasm.withMappingCallback(T=>{let J=T.lastGeneratedColumn;this._computedColumnSpans&&J===null&&(J=1/0),D.push({line:T.generatedLine,column:T.generatedColumn,lastColumn:J})},()=>{this._wasm.exports.all_generated_locations_for(this._getMappingsPtr(),A,v-1,"column"in y,b)}),D}destroy(){this._mappingsPtr!==0&&(this._wasm.exports.free_mappings(this._mappingsPtr),this._mappingsPtr=0)}computeColumnSpans(){this._computedColumnSpans||(this._wasm.exports.compute_column_spans(this._getMappingsPtr()),this._computedColumnSpans=!0)}originalPositionFor(y){let A={generatedLine:e.getArg(y,"line"),generatedColumn:e.getArg(y,"column")};if(A.generatedLine<1)throw new Error("Line numbers must be >= 1");if(A.generatedColumn<0)throw new Error("Column numbers must be >= 0");let v,b=e.getArg(y,"bias",u.GREATEST_LOWER_BOUND);if(b==null&&(b=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(D=>v=D,()=>{this._wasm.exports.original_location_for(this._getMappingsPtr(),A.generatedLine-1,A.generatedColumn,b)}),v&&v.generatedLine===A.generatedLine){let D=e.getArg(v,"source",null);D!==null&&(D=this._absoluteSources.at(D));let T=e.getArg(v,"name",null);return T!==null&&(T=this._names.at(T)),{source:D,line:e.getArg(v,"originalLine",null),column:e.getArg(v,"originalColumn",null),name:T}}return{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(y){return y==null})}sourceContentFor(y,A){if(!this.sourcesContent)return null;let v=this._findSourceIndex(y);if(v>=0)return this.sourcesContent[v];if(A)return null;throw new Error('"'+y+'" is not in the SourceMap.')}generatedPositionFor(y){let A=e.getArg(y,"source");if(A=this._findSourceIndex(A),A<0)return{line:null,column:null,lastColumn:null};let v={source:A,originalLine:e.getArg(y,"line"),originalColumn:e.getArg(y,"column")};if(v.originalLine<1)throw new Error("Line numbers must be >= 1");if(v.originalColumn<0)throw new Error("Column numbers must be >= 0");let b,D=e.getArg(y,"bias",u.GREATEST_LOWER_BOUND);if(D==null&&(D=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(T=>b=T,()=>{this._wasm.exports.generated_location_for(this._getMappingsPtr(),v.source,v.originalLine-1,v.originalColumn,D)}),b&&b.source===v.source){let T=b.lastGeneratedColumn;return this._computedColumnSpans&&T===null&&(T=1/0),{line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:T}}return{line:null,column:null,lastColumn:null}}}c.prototype.consumer=u,Di.BasicSourceMapConsumer=c;class h extends u{constructor(y,A){return super(o).then(v=>{let b=y;typeof y=="string"&&(b=e.parseSourceMapInput(y));let D=e.getArg(b,"version"),T=e.getArg(b,"sections");if(D!=v._version)throw new Error("Unsupported version: "+D);let J={line:-1,column:0};return Promise.all(T.map(w=>{if(w.url)throw new Error("Support for url field in sections not implemented.");let _=e.getArg(w,"offset"),N=e.getArg(_,"line"),d=e.getArg(_,"column");if(N<J.line||N===J.line&&d<J.column)throw new Error("Section offsets must be ordered and non-overlapping.");return J=_,new u(e.getArg(w,"map"),A).then(F=>({generatedOffset:{generatedLine:N+1,generatedColumn:d+1},consumer:F}))})).then(w=>(v._sections=w,v))})}get sources(){let y=[];for(let A=0;A<this._sections.length;A++)for(let v=0;v<this._sections[A].consumer.sources.length;v++)y.push(this._sections[A].consumer.sources[v]);return y}originalPositionFor(y){let A={generatedLine:e.getArg(y,"line"),generatedColumn:e.getArg(y,"column")},v=t.search(A,this._sections,function(D,T){return D.generatedLine-T.generatedOffset.generatedLine||D.generatedColumn-(T.generatedOffset.generatedColumn-1)}),b=this._sections[v];return b?b.consumer.originalPositionFor({line:A.generatedLine-(b.generatedOffset.generatedLine-1),column:A.generatedColumn-(b.generatedOffset.generatedLine===A.generatedLine?b.generatedOffset.generatedColumn-1:0),bias:y.bias}):{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return this._sections.every(function(y){return y.consumer.hasContentsOfAllSources()})}sourceContentFor(y,A){for(let v=0;v<this._sections.length;v++){let b=this._sections[v].consumer.sourceContentFor(y,!0);if(b)return b}if(A)return null;throw new Error('"'+y+'" is not in the SourceMap.')}_findSectionIndex(y){for(let A=0;A<this._sections.length;A++){let{consumer:v}=this._sections[A];if(v._findSourceIndex(y)!==-1)return A}return-1}generatedPositionFor(y){let A=this._findSectionIndex(e.getArg(y,"source")),v=A>=0?this._sections[A]:null,b=A>=0&&A+1<this._sections.length?this._sections[A+1]:null,D=v&&v.consumer.generatedPositionFor(y);if(D&&D.line!==null){let T=v.generatedOffset.generatedLine-1,J=v.generatedOffset.generatedColumn-1;return D.line===1&&(D.column+=J,typeof D.lastColumn=="number"&&(D.lastColumn+=J)),D.lastColumn===1/0&&b&&D.line===b.generatedOffset.generatedLine&&(D.lastColumn=b.generatedOffset.generatedColumn-2),D.line+=T,D}return{line:null,column:null,lastColumn:null}}allGeneratedPositionsFor(y){let A=this._findSectionIndex(e.getArg(y,"source")),v=A>=0?this._sections[A]:null,b=A>=0&&A+1<this._sections.length?this._sections[A+1]:null;return v?v.consumer.allGeneratedPositionsFor(y).map(D=>{let T=v.generatedOffset.generatedLine-1,J=v.generatedOffset.generatedColumn-1;return D.line===1&&(D.column+=J,typeof D.lastColumn=="number"&&(D.lastColumn+=J)),D.lastColumn===1/0&&b&&D.line===b.generatedOffset.generatedLine&&(D.lastColumn=b.generatedOffset.generatedColumn-2),D.line+=T,D}):[]}eachMapping(y,A,v){this._sections.forEach((b,D)=>{let T=D+1<this._sections.length?this._sections[D+1]:null,{generatedOffset:J}=b,w=J.generatedLine-1,_=J.generatedColumn-1;b.consumer.eachMapping(function(N){N.generatedLine===1&&(N.generatedColumn+=_,typeof N.lastGeneratedColumn=="number"&&(N.lastGeneratedColumn+=_)),N.lastGeneratedColumn===1/0&&T&&N.generatedLine===T.generatedOffset.generatedLine&&(N.lastGeneratedColumn=T.generatedOffset.generatedColumn-2),N.generatedLine+=w,y.call(this,N)},A,v)})}computeColumnSpans(){for(let y=0;y<this._sections.length;y++)this._sections[y].consumer.computeColumnSpans()}destroy(){for(let y=0;y<this._sections.length;y++)this._sections[y].consumer.destroy()}}return Di.IndexedSourceMapConsumer=h,Di}var Wa,Ga,es={},Ka=(Ga||(Ga=1,sn.SourceMapGenerator=Ma().SourceMapGenerator,sn.SourceMapConsumer=tl().SourceMapConsumer,sn.SourceNode=(function(){if(Wa)return es;Wa=1;let e=Ma().SourceMapGenerator,t=fn(),i=/(\r?\n)/,n="$$$isSourceNode$$$";class s{constructor(u,c,h,g,y){this.children=[],this.sourceContents={},this.line=u??null,this.column=c??null,this.source=h??null,this.name=y??null,this[n]=!0,g!=null&&this.add(g)}static fromStringWithSourceMap(u,c,h){let g=new s,y=u.split(i),A=0,v=function(){return _()+(_()||"");function _(){return A<y.length?y[A++]:void 0}},b,D=1,T=0,J=null;return c.eachMapping(function(_){if(J!==null){if(!(D<_.generatedLine)){b=y[A]||"";let N=b.substr(0,_.generatedColumn-T);return y[A]=b.substr(_.generatedColumn-T),T=_.generatedColumn,w(J,N),void(J=_)}w(J,v()),D++,T=0}for(;D<_.generatedLine;)g.add(v()),D++;T<_.generatedColumn&&(b=y[A]||"",g.add(b.substr(0,_.generatedColumn)),y[A]=b.substr(_.generatedColumn),T=_.generatedColumn),J=_},this),A<y.length&&(J&&w(J,v()),g.add(y.splice(A).join(""))),c.sources.forEach(function(_){let N=c.sourceContentFor(_);N!=null&&(h!=null&&(_=t.join(h,_)),g.setSourceContent(_,N))}),g;function w(_,N){if(_===null||_.source===void 0)g.add(N);else{let d=h?t.join(h,_.source):_.source;g.add(new s(_.originalLine,_.originalColumn,d,N,_.name))}}}add(u){if(Array.isArray(u))u.forEach(function(c){this.add(c)},this);else{if(!u[n]&&typeof u!="string")throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+u);u&&this.children.push(u)}return this}prepend(u){if(Array.isArray(u))for(let c=u.length-1;c>=0;c--)this.prepend(u[c]);else{if(!u[n]&&typeof u!="string")throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+u);this.children.unshift(u)}return this}walk(u){let c;for(let h=0,g=this.children.length;h<g;h++)c=this.children[h],c[n]?c.walk(u):c!==""&&u(c,{source:this.source,line:this.line,column:this.column,name:this.name})}join(u){let c,h,g=this.children.length;if(g>0){for(c=[],h=0;h<g-1;h++)c.push(this.children[h]),c.push(u);c.push(this.children[h]),this.children=c}return this}replaceRight(u,c){let h=this.children[this.children.length-1];return h[n]?h.replaceRight(u,c):typeof h=="string"?this.children[this.children.length-1]=h.replace(u,c):this.children.push("".replace(u,c)),this}setSourceContent(u,c){this.sourceContents[t.toSetString(u)]=c}walkSourceContents(u){for(let h=0,g=this.children.length;h<g;h++)this.children[h][n]&&this.children[h].walkSourceContents(u);let c=Object.keys(this.sourceContents);for(let h=0,g=c.length;h<g;h++)u(t.fromSetString(c[h]),this.sourceContents[c[h]])}toString(){let u="";return this.walk(function(c){u+=c}),u}toStringWithSourceMap(u){let c={code:"",line:1,column:0},h=new e(u),g=!1,y=null,A=null,v=null,b=null;return this.walk(function(D,T){c.code+=D,T.source!==null&&T.line!==null&&T.column!==null?(y===T.source&&A===T.line&&v===T.column&&b===T.name||h.addMapping({source:T.source,original:{line:T.line,column:T.column},generated:{line:c.line,column:c.column},name:T.name}),y=T.source,A=T.line,v=T.column,b=T.name,g=!0):g&&(h.addMapping({generated:{line:c.line,column:c.column}}),y=null,g=!1);for(let J=0,w=D.length;J<w;J++)D.charCodeAt(J)===10?(c.line++,c.column=0,J+1===w?(y=null,g=!1):g&&h.addMapping({source:T.source,original:{line:T.line,column:T.column},generated:{line:c.line,column:c.column},name:T.name})):c.column++}),this.walkSourceContents(function(D,T){h.setSourceContent(D,T)}),{code:c.code,map:h}}}return es.SourceNode=s,es})().SourceNode),sn),rl=zc({__proto__:null,default:Hc(Ka)},[Ka]);function za(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}function ts(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rs(e,t,i){return t&&(function(n,s){for(var o=0;o<s.length;o++){var u=s[o];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(n,ho(u.key),u)}})(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function is(e,t){var i=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=fo(e))||t){i&&(e=i);var n=0,s=function(){};return{s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(h){throw h},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,u=!0,c=!1;return{s:function(){i=i.call(e)},n:function(){var h=i.next();return u=h.done,h},e:function(h){c=!0,o=h},f:function(){try{u||i.return==null||i.return()}finally{if(c)throw o}}}}function Si(e,t,i){return(t=ho(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function ns(e,t){return(function(i){if(Array.isArray(i))return i})(e)||(function(i,n){var s=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(s!=null){var o,u,c,h,g=[],y=!0,A=!1;try{if(c=(s=s.call(i)).next,n===0){if(Object(s)!==s)return;y=!1}else for(;!(y=(o=c.call(s)).done)&&(g.push(o.value),g.length!==n);y=!0);}catch(v){A=!0,u=v}finally{try{if(!y&&s.return!=null&&(h=s.return(),Object(h)!==h))return}finally{if(A)throw u}}return g}})(e,t)||fo(e,t)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
17
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function ho(e){var t=(function(i){if(typeof i!="object"||!i)return i;var n=i[Symbol.toPrimitive];if(n!==void 0){var s=n.call(i,"string");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(i)})(e);return typeof t=="symbol"?t:t+""}function cn(e){return cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cn(e)}function fo(e,t){if(e){if(typeof e=="string")return za(e,t);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?za(e,t):void 0}}var Ha,wr=(function e(t){function i(w){for(var _={},N=0,d=Object.entries(w);N<d.length;N++){var F=ns(d[N],2),L=F[0],S=F[1];cn(S)==="object"&&S!==null?_[L]=i(S):_[L]=S}return _}var n={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"},s={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"]},o={},u={},c={},h={Break:o,Skip:u,Remove:c},g=rs(function w(_,N){ts(this,w),this.parent=_,this.key=N},[{key:"replace",value:function(w){this.parent[this.key]=w}},{key:"remove",value:function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)}}]),y=rs(function w(_,N,d,F){ts(this,w),Si(this,"node",void 0),Si(this,"path",void 0),Si(this,"wrap",void 0),Si(this,"ref",void 0),this.node=_,this.path=N,this.wrap=d,this.ref=F});function A(w){return w!=null&&cn(w)==="object"&&typeof w.type=="string"}function v(w,_){return(w===n.ObjectExpression||w===n.ObjectPattern)&&_==="properties"}function b(w,_){for(var N=w.length-1;N>=0;--N)if(w[N].node===_)return!0;return!1}var D=rs(function w(){ts(this,w),Si(this,"__current",null),this.__worklist,this.__leavelist,this.__keys},[{key:"path",value:function(){function w(F,L){if(Array.isArray(L)){var S,U=is(L);try{for(U.s();!(S=U.n()).done;){var K=S.value;F.push(K)}}catch(k){U.e(k)}finally{U.f()}}else F.push(L)}if(!this.__current.path)return null;for(var _=[],N=2,d=this.__leavelist.length;N<d;++N)w(_,this.__leavelist[N].path);return w(_,this.__current.path),_}},{key:"type",value:function(){return this.current().type||this.__current.wrap}},{key:"parents",value:function(){for(var w=[],_=1,N=this.__leavelist.length;_<N;++_)w.push(this.__leavelist[_].node);return w}},{key:"current",value:function(){return this.__current.node}},{key:"__execute",value:function(w,_){var N=this.__current;this.__current=_,this.__state=null;var d=void 0;return w&&(d=w.call(this,_.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=N,d}},{key:"notify",value:function(w){this.__state=w}},{key:"skip",value:function(){this.notify(u)}},{key:"break",value:function(){this.notify(o)}},{key:"remove",value:function(){this.notify(c)}},{key:"__initialize",value:function(w,_){this.visitor=_,this.root=w,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,_.fallback==="iteration"?this.__fallback=Object.keys:typeof _.fallback=="function"&&(this.__fallback=_.fallback),this.__keys=s,_.keys&&(this.__keys=Object.assign(Object.create(this.__keys),_.keys))}},{key:"traverse",value:function(w,_){this.__initialize(w,_);var N={},d=this.__worklist,F=this.__leavelist;for(d.push(new y(w,null,null,null)),F.push(new y(null,null,null,null));d.length;){var L=d.pop(),S=void 0;if(L!==N){if("node"in L&&L.node){if(S=this.__execute(_.enter,L),this.__state===o||S===o)return;if(d.push(N),F.push(L),this.__state===u||S===u)continue;var U=L.node,K=U.type||L.wrap,k=this.__keys[K];if(!k){if(!this.__fallback)throw new Error(`Unknown node type ${K}.`);k=this.__fallback(U)}for(var R=k.length;(R-=1)>=0;){var V=k[R],l=U[V];if(l){if(Array.isArray(l)){for(var O=l.length;(O-=1)>=0;)if(l[O]&&!b(F,l[O])){if(v(K,k[R]))L=new y(l[O],[V,O],"Property",null);else{if(!A(l[O]))continue;L=new y(l[O],[V,O],null,null)}d.push(L)}}else if(A(l)){if(b(F,l))continue;d.push(new y(l,V,null,null))}}}}}else if(L=F.pop(),S=this.__execute(_.leave,L),this.__state===o||S===o)return}}},{key:"replace",value:function(w,_){function N(ce){if(ce.ref.remove())for(var we=ce.ref,Pe=we.key,Oe=we.parent,Je=F.length;Je--;){var st=F[Je];if("ref"in st&&st.ref&&st.ref.parent===Oe){if(st.ref.key<Pe)break;--st.ref.key}}}this.__initialize(w,_);var d={},F=this.__worklist,L=this.__leavelist,S={root:w},U=new y(w,null,null,new g(S,"root"));for(F.push(U),L.push(U);F.length;)if((U=F.pop())!==d){var K=this.__execute(_.enter,U);if(K!==void 0&&K!==o&&K!==u&&K!==c&&(U.ref.replace(K),U.node=K),this.__state!==c&&K!==c||(N(U),U.node=null),this.__state===o||K===o)return S.root;var k=U.node;if(k&&(F.push(d),L.push(U),this.__state!==u&&K!==u)){var R=k.type||U.wrap,V=this.__keys[R];if(!V){if(!this.__fallback)throw new Error(`Unknown node type ${R}.`);V=this.__fallback(k)}for(var l=V.length;(l-=1)>=0;){var O=V[l],ne=k[O];if(ne)if(Array.isArray(ne)){for(var H=ne.length;(H-=1)>=0;)if(ne[H]){if(v(R,V[l]))U=new y(ne[H],[O,H],"Property",new g(ne,H));else{if(!A(ne[H]))continue;U=new y(ne[H],[O,H],null,new g(ne,H))}F.push(U)}}else A(ne)&&F.push(new y(ne,O,null,new g(k,O)))}}}else{U=L.pop();var Z=this.__execute(_.leave,U);if(Z!==void 0&&Z!==o&&Z!==u&&Z!==c&&U.ref.replace(Z),this.__state!==c&&Z!==c||N(U),this.__state===o||Z===o)return S.root}return S.root}}]);function T(w,_){return new D().traverse(w,_)}function J(w,_){var N;if(N=(function(L,S){for(var U=L.length,K=0;U;){var k=U>>>1,R=K+k;S(L[R])?U=k:(K=R+1,U-=k+1)}return K})(_,function(L){return L.range[0]>w.range[0]}),w.extendedRange=[w.range[0],w.range[1]],N!==_.length){var d=ns(_[N].range,1);w.extendedRange[1]=d[0]}if((N-=1)>=0){var F=ns(_[N].range,2);w.extendedRange[0]=F[1]}return w}return t.Syntax=n,t.traverse=T,t.replace=function(w,_){return new D().replace(w,_)},t.attachComments=function(w,_,N){var d,F=[];if(!w.range)throw new Error("attachComments needs range information");if(!N.length){if(_.length){var L,S=is(_);try{for(S.s();!(L=S.n()).done;)(d=i(L.value)).extendedRange=[0,w.range[0]],F.push(d)}catch(V){S.e(V)}finally{S.f()}w.leadingComments=F}return w}var U,K=is(_);try{for(K.s();!(U=K.n()).done;){var k=U.value;F.push(J(i(k),N))}}catch(V){K.e(V)}finally{K.f()}var R=0;return T(w,{enter(V){for(var l;R<F.length&&!((l=F[R]).extendedRange[1]>V.range[0]);)l.extendedRange[1]===V.range[0]?(V.leadingComments||(V.leadingComments=[]),V.leadingComments.push(l),F.splice(R,1)):R+=1;return R===F.length?h.Break:F[R].extendedRange[0]>V.range[1]?h.Skip:void 0}}),R=0,T(w,{leave(V){for(var l;R<F.length&&(l=F[R],!(V.range[1]<l.extendedRange[0]));)V.range[1]===l.extendedRange[0]?(V.trailingComments||(V.trailingComments=[]),V.trailingComments.push(l),F.splice(R,1)):R+=1;return R===F.length?h.Break:F[R].extendedRange[0]>V.range[1]?h.Skip:void 0}}),w},t.VisitorKeys=s,t.VisitorOption=h,t.Controller=D,t.cloneEnvironment=function(){return e({})},t})({}),il=wr.Syntax,nl=wr.traverse,sl=wr.replace,al=wr.attachComments,ol=wr.VisitorKeys,ul=wr.VisitorOption,cl=wr.Controller,ll=wr.cloneEnvironment,mo=Object.freeze({__proto__:null,Controller:cl,Syntax:il,VisitorKeys:ol,VisitorOption:ul,attachComments:al,cloneEnvironment:ll,replace:sl,traverse:nl}),on={},Qa={exports:{}},Xa,Ya={exports:{}};function Za(){return Xa||(Xa=1,(function(){var e,t,i,n,s,o;function u(c){return c<=65535?String.fromCharCode(c):String.fromCharCode(Math.floor((c-65536)/1024)+55296)+String.fromCharCode((c-65536)%1024+56320)}for(t={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]/},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-\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]/},i=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],n=new Array(128),o=0;o<128;++o)n[o]=o>=97&&o<=122||o>=65&&o<=90||o===36||o===95;for(s=new Array(128),o=0;o<128;++o)s[o]=o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===36||o===95;Ya.exports={isDecimalDigit:function(c){return 48<=c&&c<=57},isHexDigit:function(c){return 48<=c&&c<=57||97<=c&&c<=102||65<=c&&c<=70},isOctalDigit:function(c){return c>=48&&c<=55},isWhiteSpace:function(c){return c===32||c===9||c===11||c===12||c===160||c>=5760&&i.indexOf(c)>=0},isLineTerminator:function(c){return c===10||c===13||c===8232||c===8233},isIdentifierStartES5:function(c){return c<128?n[c]:t.NonAsciiIdentifierStart.test(u(c))},isIdentifierPartES5:function(c){return c<128?s[c]:t.NonAsciiIdentifierPart.test(u(c))},isIdentifierStartES6:function(c){return c<128?n[c]:e.NonAsciiIdentifierStart.test(u(c))},isIdentifierPartES6:function(c){return c<128?s[c]:e.NonAsciiIdentifierPart.test(u(c))}}})()),Ya.exports}var eo,to,ro={exports:{}},rt=(to||(to=1,on.ast=(Ha||(Ha=1,(function(){function e(i){if(i==null)return!1;switch(i.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 t(i){switch(i.type){case"IfStatement":return i.alternate!=null?i.alternate:i.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return i.body}return null}Qa.exports={isExpression:function(i){if(i==null)return!1;switch(i.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},isStatement:e,isIterationStatement:function(i){if(i==null)return!1;switch(i.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(i){return e(i)||i!=null&&i.type==="FunctionDeclaration"},isProblematicIfStatement:function(i){var n;if(i.type!=="IfStatement"||i.alternate==null)return!1;n=i.consequent;do{if(n.type==="IfStatement"&&n.alternate==null)return!0;n=t(n)}while(n);return!1},trailingStatement:t}})()),Qa.exports),on.code=Za(),on.keyword=(eo||(eo=1,(function(){var e=Za();function t(h,g){return!(!g&&h==="yield")&&i(h,g)}function i(h,g){if(g&&(function(y){switch(y){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}})(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 n(h,g){return h==="null"||h==="true"||h==="false"||t(h,g)}function s(h,g){return h==="null"||h==="true"||h==="false"||i(h,g)}function o(h){var g,y,A;if(h.length===0||(A=h.charCodeAt(0),!e.isIdentifierStartES5(A)))return!1;for(g=1,y=h.length;g<y;++g)if(A=h.charCodeAt(g),!e.isIdentifierPartES5(A))return!1;return!0}function u(h,g){return 1024*(h-55296)+(g-56320)+65536}function c(h){var g,y,A,v,b;if(h.length===0)return!1;for(b=e.isIdentifierStartES6,g=0,y=h.length;g<y;++g){if(55296<=(A=h.charCodeAt(g))&&A<=56319){if(++g>=y||!(56320<=(v=h.charCodeAt(g))&&v<=57343))return!1;A=u(A,v)}if(!b(A))return!1;b=e.isIdentifierPartES6}return!0}ro.exports={isKeywordES5:t,isKeywordES6:i,isReservedWordES5:n,isReservedWordES6:s,isRestrictedWord:function(h){return h==="eval"||h==="arguments"},isIdentifierNameES5:o,isIdentifierNameES6:c,isIdentifierES5:function(h,g){return o(h)&&!n(h,g)},isIdentifierES6:function(h,g){return c(h)&&!s(h,g)}}})()),ro.exports)),on),un,at,Dr,jt,ss,yo,ln,go,Ve,he,as,xo,wi,vo,$t,vt,os,Sr,fr,io,{Syntax:He}=mo;function Co(e){return Object.hasOwn(Wt.Statement,e.type)}var j={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:4,LogicalAND:5,BitwiseOR:6,BitwiseXOR:7,BitwiseAND:8,Equality:9,Relational:10,BitwiseSHIFT:11,Additive:12,Multiplicative:13,Exponentiation:14,Await:15,Unary:15,Postfix:16,OptionalChaining:17,Call:18,New:19,TaggedTemplate:20,Member:21,Primary:22},pl={"??":j.Coalesce,"||":j.LogicalOR,"&&":j.LogicalAND,"|":j.BitwiseOR,"^":j.BitwiseXOR,"&":j.BitwiseAND,"==":j.Equality,"!=":j.Equality,"===":j.Equality,"!==":j.Equality,is:j.Equality,isnt:j.Equality,"<":j.Relational,">":j.Relational,"<=":j.Relational,">=":j.Relational,in:j.Relational,instanceof:j.Relational,"<<":j.BitwiseSHIFT,">>":j.BitwiseSHIFT,">>>":j.BitwiseSHIFT,"+":j.Additive,"-":j.Additive,"*":j.Multiplicative,"%":j.Multiplicative,"/":j.Multiplicative,"**":j.Exponentiation},Dt=32,or=33;function Ao(){return{file:void 0,sourceContent:void 0,indent:null,base:null,parse:null,comment:!1,codegenFactory:()=>new Wt,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:`
|
|
18
|
+
`,space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null}}function Ir(e,t){let i="";for(t|=0;t>0;t>>>=1,e+=e)1&t&&(i+=e);return i}function xt(e){let t=e.length;return t&&rt.code.isLineTerminator(e.charCodeAt(t-1))}function pn(e,t){function i(n){return typeof n=="object"&&n instanceof Object&&!(n instanceof RegExp)}for(let[n,s]of Object.entries(t))i(s)?i(e[n])?pn(e[n],s):e[n]=pn({},s):e[n]=s;return e}function no(e,t){return(-2&e)==8232?(t?"u":"\\u")+(e===8232?"2028":"2029"):e===10||e===13?(t?"":"\\")+(e===10?"n":"r"):String.fromCharCode(e)}function hl(e,t){if(e===8)return"\\b";if(e===12)return"\\f";if(e===9)return"\\t";let i=e.toString(16).toUpperCase();return jt||e>255?`\\u${"0000".slice(i.length)}${i}`:e!==0||rt.code.isDecimalDigit(t)?e===11?"\\x0B":`\\x${"00".slice(i.length)}${i}`:"\\0"}function fl(e){if(e===92)return"\\\\";if(e===10)return"\\n";if(e===13)return"\\r";if(e===8232)return"\\u2028";if(e===8233)return"\\u2029";throw new Error("Incorrectly classified character")}function bo(e){let t="";for(let i of e)t+=Array.isArray(i)?bo(i):i;return t}function $e(e,t){if(!Sr)return Array.isArray(e)?bo(e):e;let i=t;if(i==null){if(e instanceof un)return e;i={}}return i.loc==null?new un(null,null,Sr,e,"name"in i&&i.name||void 0):new un(i.loc.start.line,i.loc.start.column,Sr===!0?i.loc.source||null:Sr,e,"name"in i&&i.name||void 0)}function gt(){return he||" "}function Ee(e,t){let i=$e(e).toString();if(i.length===0)return[t];let n=$e(t).toString();if(n.length===0)return[e];let s=i.charCodeAt(i.length-1),o=n.charCodeAt(0);return(s===43||s===45)&&s===o||rt.code.isIdentifierPartES5(s)&&rt.code.isIdentifierPartES5(o)||s===47&&o===105?[e,gt(),t]:rt.code.isWhiteSpace(s)||rt.code.isLineTerminator(s)||rt.code.isWhiteSpace(o)||rt.code.isLineTerminator(o)?[e,t]:[e,he,t]}function St(e){return[at,e]}function pt(e){let t=at;at+=Dr,e(at),at=t}function hr(e,t){if(e.type==="Line"){if(xt(e.value))return`//${e.value}`;{let i=`//${e.value}`;return $t||(i+=`
|
|
19
|
+
`),i}}return vt.format.indent.adjustMultilineComment&&/[\n\r]/.test(e.value)?(function(i,n){let s=i.split(/\r\n|[\r\n]/),o,u=Number.MAX_VALUE;for(let c=1,h=s.length;c<h;++c){let g=s[c],y=0;for(;y<g.length&&rt.code.isWhiteSpace(g.charCodeAt(y));)++y;u>y&&(u=y)}n!==void 0?(o=at,s[1][u]==="*"&&(n+=" "),at=n):(1&u&&--u,o=at);for(let c=1,h=s.length;c<h;++c){let g=$e(St(s[c].slice(u)));s[c]=g}return at=o,s.join(`
|
|
20
|
+
`)})(`/*${e.value}*/`,t):`/*${e.value}*/`}function so(e,t){return[e,t]}function ao(e,t){if(e.leadingComments&&e.leadingComments.length>0){let i=t;if($t){let[n]=e.leadingComments;t=[];let s=n.extendedRange,o=n.range,u=fr.substring(s[0],o[0]),c=(u.match(/\n/g)||[]).length;c>0?(t.push(Ir(`
|
|
21
|
+
`,c)),t.push(St(hr(n)))):(t.push(u),t.push(hr(n)));let h=o;for(let g=1,y=e.leadingComments.length;g<y;g++){let A=e.leadingComments[g];({range:o}=A),c=(fr.substring(h[1],o[0]).match(/\n/g)||[]).length,t.push(Ir(`
|
|
22
|
+
`,c)),t.push(St(hr(A))),h=o}c=(fr.substring(o[1],s[1]).match(/\n/g)||[]).length,t.push(Ir(`
|
|
23
|
+
`,c))}else{let[n]=e.leadingComments;t=[],wi&&e.type===He.Program&&e.body.length===0&&t.push(`
|
|
24
|
+
`),t.push(hr(n)),xt($e(t).toString())||t.push(`
|
|
25
|
+
`);for(let s=1,o=e.leadingComments.length;s<o;++s){let u=[hr(e.leadingComments[s])];xt($e(u).toString())||u.push(`
|
|
26
|
+
`),t.push(St(u))}}t.push(St(i))}if(e.trailingComments)if($t){let[i]=e.trailingComments,n=i.extendedRange,s=i.range,o=fr.substring(n[0],s[0]),u=(o.match(/\n/g)||[]).length;u>0?(t.push(Ir(`
|
|
27
|
+
`,u)),t.push(St(hr(i)))):(t.push(o),t.push(hr(i)))}else{let i=!xt($e(t).toString()),n=Ir(" ",(function(s){let o;for(o=s.length-1;o>=0&&!rt.code.isLineTerminator(s.charCodeAt(o));--o);return s.length-1-o})($e([at,t,Dr]).toString()));for(let s=0,o=e.trailingComments.length;s<o;++s){let u=e.trailingComments[s];i?(t=s===0?[t,Dr]:[t,n]).push(hr(u,n)):t=[t,St(hr(u))],s===o-1||xt($e(t).toString())||(t=[t,`
|
|
28
|
+
`])}}return t}function ii(e,t,i){let n=0;for(let s=e;s<t;s++)fr[s]===`
|
|
29
|
+
`&&n++;for(let s=1;s<n;s++)i.push(Ve)}function ft(e,t,i){return t<i?["(",e,")"]:e}function oo(e){let t=e.split(/\r\n|\n/);for(let i=1,n=t.length;i<n;i++)t[i]=Ve+at+t[i];return t}function Jt(e){return $e(e.name,e)}function Ti(e,t){return"async"in e&&e.async?`async${t?gt():he}`:""}function hn(e){return e.generator&&!vt.moz.starlessGenerator?`*${he}`:""}function uo(e){let t=e.value,i="";return"async"in t&&t.async&&(i+=Ti(t,!e.computed)),"generator"in t&&t.generator&&(i+=hn(t)?"*":""),i}var dl={JsdocBlock:null,BlockStatement(e,t){let i=this,n=["{",Ve];return pt(function(){if(e.body.length===0&&$t){let o=e.range;if(o[1]-o[0]>2){let u=fr.substring(o[0]+1,o[1]-1);u[0]===`
|
|
30
|
+
`&&(n=["{"]),n.push(u)}}let s=1;8&t&&(s|=16);for(let o=0,u=e.body.length;o<u;++o){if($t){if(o===0){if(e.body[0].leadingComments){let h=e.body[0].leadingComments[0].extendedRange;fr.substring(h[0],h[1])[0]===`
|
|
31
|
+
`&&(n=["{"])}if(!e.body[0].leadingComments){let h=e.range,g=e.body[0].range;ii(h[0],g[0],n)}}if(o>0&&!e.body[o-1].trailingComments&&!e.body[o].leadingComments){let h=e.body[o-1].range,g=e.body[o].range;ii(h[1],g[0],n)}}let c;if(o===u-1&&(s|=Dt),c=e.body[o].leadingComments&&$t?i.generateStatement(e.body[o],s):St(i.generateStatement(e.body[o],s)),n.push(c),xt($e(c).toString())||$t&&o<u-1&&e.body[o+1].leadingComments||n.push(Ve),$t&&o===u-1&&!e.body[o].trailingComments){let h=e.range;ii(e.body[o].range[1],h[1],n)}}}),n.push(St("}")),n},BreakStatement(e,t){return e.label?`break ${e.label.name}${this.semicolon(t)}`:`break${this.semicolon(t)}`},ContinueStatement(e,t){return e.label?`continue ${e.label.name}${this.semicolon(t)}`:`continue${this.semicolon(t)}`},ClassBody(e,t){let i=["{",Ve],n=this;return pt(function(s){for(let o=0,u=e.body.length;o<u;++o)i.push(s),i.push(n.generateExpression(e.body[o],j.Sequence,7)),o+1<u&&i.push(Ve)}),xt($e(i).toString())||i.push(Ve),i.push(at),i.push("}"),i},ClassDeclaration(e,t){let i=["class"];if(e.id&&(i=Ee(i,this.generateExpression(e.id,j.Sequence,7))),e.superClass){let n=Ee("extends",this.generateExpression(e.superClass,j.Unary,7));i=Ee(i,n)}return i.push(he),i.push(this.generateStatement(e.body,or)),i},DirectiveStatement(e,t){return vt.raw&&e.raw?e.raw+this.semicolon(t):(function(i){let n=ln==="double"?'"':"'";for(let s=0,o=i.length;s<o;++s){let u=i.charCodeAt(s);if(u===39){n='"';break}if(u===34){n="'";break}u===92&&++s}return n+i+n})(e.directive)+this.semicolon(t)},DoWhileStatement(e,t){let i=Ee("do",this.maybeBlock(e.body,1));return i=this.maybeBlockSuffix(e.body,i),Ee(i,[`while${he}(`,this.generateExpression(e.test,j.Sequence,7),`)${this.semicolon(t)}`])},CatchClause(e,t){let i=this,n=[];return pt(function(){let s;e.param?(n=[`catch${he}(`,i.generateExpression(e.param,j.Sequence,7),")"],e.guard&&(s=i.generateExpression(e.guard,j.Sequence,7),n.splice(2,0," if ",s))):n=["catch"]}),n.push(this.maybeBlock(e.body,1)),n},DebuggerStatement(e,t){return`debugger${this.semicolon(t)}`},EmptyStatement:(e,t)=>";",ExportDefaultDeclaration(e,t){let i=t&Dt?or:1,n=["export"];return n=Ee(n,"default"),n=Co(e.declaration)?Ee(n,this.generateStatement(e.declaration,i)):Ee(n,this.generateExpression(e.declaration,j.Assignment,7)+this.semicolon(t)),n},ExportNamedDeclaration(e,t){let i=this,n=t&Dt?or:1,s=["export"];return e.declaration?Ee(s,this.generateStatement(e.declaration,n)):(e.specifiers&&(e.specifiers.length===0?s=Ee(s,`{${he}}`):(s=Ee(s,"{"),pt(function(o){s.push(Ve);for(let u=0,c=e.specifiers.length;u<c;++u)s.push(o),s.push(i.generateExpression(e.specifiers[u],j.Sequence,7)),u+1<c&&s.push(`,${Ve}`)}),xt($e(s).toString())||s.push(Ve),s.push(`${at}}`)),e.source?s=Ee(s,[`from${he}`,this.generateExpression(e.source,j.Sequence,7),this.semicolon(t)]):s.push(this.semicolon(t))),s)},ExportAllDeclaration(e,t){return[`export${he}`,`*${he}`,`from${he}`,this.generateExpression(e.source,j.Sequence,7),this.semicolon(t)]},ExpressionStatement(e,t){let i=[this.generateExpression(e.expression,j.Sequence,7)],n=$e(i).toString();return n.charCodeAt(0)===123||(function(s){if(s.slice(0,5)!=="class")return!1;let o=s.charCodeAt(5);return o===123||rt.code.isWhiteSpace(o)||rt.code.isLineTerminator(o)})(n)||(function(s){if(s.slice(0,8)!=="function")return!1;let o=s.charCodeAt(8);return o===40||rt.code.isWhiteSpace(o)||o===42||rt.code.isLineTerminator(o)})(n)||(function(s){if(s.slice(0,5)!=="async"||!rt.code.isWhiteSpace(s.charCodeAt(5)))return!1;let o,u;for(o=6,u=s.length;o<u&&rt.code.isWhiteSpace(s.charCodeAt(o));++o);if(o===u||s.slice(o,o+8)!=="function")return!1;let c=s.charCodeAt(o+8);return c===40||rt.code.isWhiteSpace(c)||c===42||rt.code.isLineTerminator(c)})(n)||vo&&16&t&&e.expression.type===He.Literal&&typeof e.expression.value=="string"?i=["(",i,`)${this.semicolon(t)}`]:i.push(this.semicolon(t)),i},ImportDeclaration(e,t){let i=this;if(e.specifiers.length===0)return["import",he,this.generateExpression(e.source,j.Sequence,7),this.semicolon(t)];let n=["import"],s=0;return e.specifiers[s].type===He.ImportDefaultSpecifier&&(n=Ee(n,[this.generateExpression(e.specifiers[s],j.Sequence,7)]),++s),e.specifiers[s]&&(s!==0&&n.push(","),e.specifiers[s].type===He.ImportNamespaceSpecifier?n=Ee(n,[he,this.generateExpression(e.specifiers[s],j.Sequence,7)]):(n.push(`${he}{`),e.specifiers.length-s===1?(n.push(he),n.push(this.generateExpression(e.specifiers[s],j.Sequence,7)),n.push(`${he}}${he}`)):(pt(function(o){n.push(Ve);for(let u=s,c=e.specifiers.length;u<c;++u)n.push(o),n.push(i.generateExpression(e.specifiers[u],j.Sequence,7)),u+1<c&&n.push(`,${Ve}`)}),xt($e(n).toString())||n.push(Ve),n.push(`${at}}${he}`)))),n=Ee(n,[`from${he}`,this.generateExpression(e.source,j.Sequence,7),this.semicolon(t)]),n},VariableDeclarator(e,t){let i=1&t?7:6;return e.init?[this.generateExpression(e.id,j.Assignment,i),he,"=",he,this.generateExpression(e.init,j.Assignment,i)]:this.generatePattern(e.id,j.Assignment,i)},VariableDeclaration(e,t){let i=this,n=[e.kind],s=1&t?1:0;function o(){let[u]=e.declarations;vt.comment&&u.leadingComments?(n.push(`
|
|
32
|
+
`),n.push(St(i.generateStatement(u,s)))):(n.push(gt()),n.push(i.generateStatement(u,s)));for(let c=1,h=e.declarations.length;c<h;++c){let g=e.declarations[c];vt.comment&&g.leadingComments?(n.push(`,${Ve}`),n.push(St(i.generateStatement(g,s)))):(n.push(`,${he}`),n.push(i.generateStatement(g,s)))}}return e.declarations.length>1?pt(o):o(),n.push(this.semicolon(t)),n},ThrowStatement(e,t){return[Ee("throw",this.generateExpression(e.argument,j.Sequence,7)),this.semicolon(t)]},TryStatement(e,t){let i=["try",this.maybeBlock(e.block,1)];if(i=this.maybeBlockSuffix(e.block,i),e.handlers)for(let n=0,s=e.handlers.length;n<s;++n)i=Ee(i,this.generateStatement(e.handlers[n],1)),(e.finalizer||n+1!==s)&&(i=this.maybeBlockSuffix(e.handlers[n].body,i));else{let n=e.guardedHandlers||[];for(let s=0,o=n.length;s<o;++s)i=Ee(i,this.generateStatement(n[s],1)),(e.finalizer||s+1!==o)&&(i=this.maybeBlockSuffix(n[s].body,i));if(e.handler)if(Array.isArray(e.handler))for(let s=0,o=e.handler.length;s<o;++s)i=Ee(i,this.generateStatement(e.handler[s],1)),(e.finalizer||s+1!==o)&&(i=this.maybeBlockSuffix(e.handler[s].body,i));else i=Ee(i,this.generateStatement(e.handler,1)),e.finalizer&&(i=this.maybeBlockSuffix(e.handler.body,i))}return e.finalizer&&(i=Ee(i,["finally",this.maybeBlock(e.finalizer,1)])),i},SwitchStatement(e,t){let i=this,n=[];if(pt(function(){n=[`switch${he}(`,i.generateExpression(e.discriminant,j.Sequence,7),`)${he}{${Ve}`]}),e.cases){let s=1;for(let o=0,u=e.cases.length;o<u;++o){o===u-1&&(s|=Dt);let c=St(this.generateStatement(e.cases[o],s));n.push(c),xt($e(c).toString())||n.push(Ve)}}return n.push(St("}")),n},SwitchCase(e,t){let i=this,n;return pt(function(){n=e.test?[Ee("case",i.generateExpression(e.test,j.Sequence,7)),":"]:["default:"];let s=0,o=e.consequent.length;if(o&&e.consequent[0].type===He.BlockStatement){let c=i.maybeBlock(e.consequent[0],1);n.push(c),s=1}s===o||xt($e(n).toString())||n.push(Ve);let u=1;for(;s<o;++s){s===o-1&&t&Dt&&(u|=Dt);let c=St(i.generateStatement(e.consequent[s],u));n.push(c),s+1===o||xt($e(c).toString())||n.push(Ve)}}),n},IfStatement(e,t){let i=this,n=[];pt(function(){n=[`if${he}(`,i.generateExpression(e.test,j.Sequence,7),")"]});let s=1;return t&Dt&&(s|=Dt),e.alternate?(n.push(this.maybeBlock(e.consequent,1)),n=this.maybeBlockSuffix(e.consequent,n),n=e.alternate.type===He.IfStatement?Ee(n,["else ",this.generateStatement(e.alternate,s)]):Ee(n,Ee("else",this.maybeBlock(e.alternate,s)))):n.push(this.maybeBlock(e.consequent,s)),n},ForStatement(e,t){let i=this,n=[];return pt(function(){n=[`for${he}(`],e.init?e.init.type===He.VariableDeclaration?n.push(i.generateStatement(e.init,0)):(n.push(i.generateExpression(e.init,j.Sequence,6)),n.push(";")):n.push(";"),e.test&&(n.push(he),n.push(i.generateExpression(e.test,j.Sequence,7))),n.push(";"),e.update&&(n.push(he),n.push(i.generateExpression(e.update,j.Sequence,7))),n.push(")")}),n.push(this.maybeBlock(e.body,t&Dt?or:1)),n},ForInStatement(e,t){return this.generateIterationForStatement("in",e,t&Dt?or:1)},ForOfStatement(e,t){return this.generateIterationForStatement("of",e,t&Dt?or:1)},LabeledStatement(e,t){return[`${e.label.name}:`,this.maybeBlock(e.body,t&Dt?or:1)]},Program(e,t){let i=e.body.length,n=[wi&&i>0?`
|
|
33
|
+
`:""];"jsdocBlocks"in e&&e.jsdocBlocks&&(e.jsdocBlocks.forEach(o=>{n.push(this.JsdocBlock(o))}),n.push(`
|
|
34
|
+
|
|
35
|
+
`));let s=17;for(let o=0;o<i;++o){if(wi||o!==i-1||(s|=Dt),$t){if(o===0&&!e.body[0].leadingComments){let c=e.range,h=e.body[o].range;ii(c[0],h[0],n)}if(o>0&&!e.body[o-1].trailingComments&&!e.body[o].leadingComments){let c=e.body[o-1].range,h=e.body[o].range;ii(c[1],h[0],n)}}let u=St(this.generateStatement(e.body[o],s));if(n.push(u),o+1<i&&!xt($e(u).toString())&&($t&&e.body[o+1].leadingComments||n.push(Ve)),$t&&o===i-1&&!e.body[o].trailingComments){let c=e.range;ii(e.body[o].range[1],c[1],n)}}return n},FunctionDeclaration(e,t){return[Ti(e,!0),"function",hn(e)||gt(),e.id?Jt(e.id):"",this.generateFunctionBody(e)]},ReturnStatement(e,t){return e.argument?[Ee("return",this.generateExpression(e.argument,j.Sequence,7)),this.semicolon(t)]:[`return${this.semicolon(t)}`]},WhileStatement(e,t){let i=this,n=[];return pt(function(){n=[`while${he}(`,i.generateExpression(e.test,j.Sequence,7),")"]}),n.push(this.maybeBlock(e.body,t&Dt?or:1)),n},WithStatement(e,t){let i=this,n=[];return pt(function(){n=[`with${he}(`,i.generateExpression(e.object,j.Sequence,7),")"]}),n.push(this.maybeBlock(e.body,t&Dt?or:1)),n}},ml={SequenceExpression(e,t,i){j.Sequence<t&&(i|=1);let n=[];for(let s=0,o=e.expressions.length;s<o;++s)n.push(this.generateExpression(e.expressions[s],j.Assignment,i)),s+1<o&&n.push(`,${he}`);return ft(n,j.Sequence,t)},AssignmentExpression(e,t,i){return this.generateAssignment(e.left,e.right,e.operator,t,i)},ArrowFunctionExpression(e,t,i){return ft(this.generateFunctionBody(e),j.ArrowFunction,t)},ConditionalExpression(e,t,i){return j.Conditional<t&&(i|=1),ft([this.generateExpression(e.test,j.Coalesce,i),`${he}?${he}`,this.generateExpression(e.consequent,j.Assignment,i),`${he}:${he}`,this.generateExpression(e.alternate,j.Assignment,i)],j.Conditional,t)},LogicalExpression(e,t,i){return e.operator==="??"&&(i|=64),this.BinaryExpression(e,t,i)},BinaryExpression(e,t,i){let n=pl[e.operator],s=e.operator==="**"?j.Postfix:n,o=e.operator==="**"?n:n+1;n<t&&(i|=1);let u=this.generateExpression(e.left,s,i),c=u.toString(),h;return h=c.charCodeAt(c.length-1)===47&&rt.code.isIdentifierPartES5(e.operator.charCodeAt(0))?[u,gt(),e.operator]:Ee(u,e.operator),u=this.generateExpression(e.right,o,i),e.operator==="/"&&u.toString().charAt(0)==="/"||e.operator.slice(-1)==="<"&&u.toString().slice(0,3)==="!--"?(h.push(gt()),h.push(u)):h=Ee(h,u),e.operator!=="in"||1&i?(e.operator==="||"||e.operator==="&&")&&64&i?["(",h,")"]:ft(h,n,t):["(",h,")"]},CallExpression(e,t,i){let n=[this.generateExpression(e.callee,j.Call,3)];e.optional&&n.push("?."),n.push("(");for(let s=0,o=e.arguments.length;s<o;++s)n.push(this.generateExpression(e.arguments[s],j.Assignment,7)),s+1<o&&n.push(`,${he}`);return n.push(")"),2&i?ft(n,j.Call,t):["(",n,")"]},ChainExpression(e,t,i){return j.OptionalChaining<t&&(i|=2),ft(this.generateExpression(e.expression,j.OptionalChaining,i),j.OptionalChaining,t)},NewExpression(e,t,i){let{length:n}=e.arguments,s=4&i&&!as&&n===0?5:1,o=Ee("new",this.generateExpression(e.callee,j.New,s));if(!(4&i)||as||n>0){o.push("(");for(let u=0,c=n;u<c;++u)o.push(this.generateExpression(e.arguments[u],j.Assignment,7)),u+1<c&&o.push(`,${he}`);o.push(")")}return ft(o,j.New,t)},MemberExpression(e,t,i){let n=[this.generateExpression(e.object,j.Call,2&i?3:1)];if(e.computed)e.optional&&n.push("?."),n.push("["),n.push(this.generateExpression(e.property,j.Sequence,2&i?7:5)),n.push("]");else{if(!e.optional&&e.object.type===He.Literal&&typeof e.object.value=="number"){let s=$e(n).toString();s.indexOf(".")<0&&!/[eExX]/.test(s)&&rt.code.isDecimalDigit(s.charCodeAt(s.length-1))&&!(s.length>=2&&s.charCodeAt(0)===48)&&n.push(" ")}n.push(e.optional?"?.":"."),n.push(Jt(e.property))}return ft(n,j.Member,t)},MetaProperty(e,t,i){let n=[];return n.push(typeof e.meta=="string"?e.meta:Jt(e.meta)),n.push("."),n.push(typeof e.property=="string"?e.property:Jt(e.property)),ft(n,j.Member,t)},UnaryExpression(e,t,i){let n=this.generateExpression(e.argument,j.Unary,7),s;if(he==="")s=Ee(e.operator,n);else if(s=[e.operator],e.operator.length>2)s=Ee(s,n);else{let o=$e(s).toString(),u=o.charCodeAt(o.length-1),c=n.toString().charCodeAt(0);((u===43||u===45)&&u===c||rt.code.isIdentifierPartES5(u)&&rt.code.isIdentifierPartES5(c))&&s.push(gt()),s.push(n)}return ft(s,j.Unary,t)},YieldExpression(e,t,i){let n;return n=e.delegate?"yield*":"yield",e.argument&&(n=Ee(n,this.generateExpression(e.argument,j.Yield,7))),ft(n,j.Yield,t)},AwaitExpression(e,t,i){return ft(Ee(e.all?"await*":"await",this.generateExpression(e.argument,j.Await,7)),j.Await,t)},UpdateExpression(e,t,i){return e.prefix?ft([e.operator,this.generateExpression(e.argument,j.Unary,7)],j.Unary,t):ft([this.generateExpression(e.argument,j.Postfix,7),e.operator],j.Postfix,t)},FunctionExpression(e,t,i){let n=[Ti(e,!0),"function"];return e.id?(n.push(hn(e)||gt()),n.push(Jt(e.id))):n.push(hn(e)||he),n.push(this.generateFunctionBody(e)),n},ArrayPattern(e,t,i){return this.ArrayExpression(e,t,i,!0)},ArrayExpression(e,t,i,n){if(!e.elements.length)return"[]";let s=!n&&e.elements.length>1,o=["[",s?Ve:""],u=this;return pt(function(c){for(let h=0,g=e.elements.length;h<g;++h)e.elements[h]?(o.push(s?c:""),o.push(u.generateExpression(e.elements[h],j.Assignment,7))):(s&&o.push(c),h+1===g&&o.push(",")),h+1<g&&o.push(`,${s?Ve:he}`)}),s&&!xt($e(o).toString())&&o.push(Ve),o.push(s?at:""),o.push("]"),o},RestElement(e,t,i){return`...${this.generatePattern(e.argument)}`},ClassExpression(e,t,i){let n=["class"];if(e.id&&(n=Ee(n,this.generateExpression(e.id,j.Sequence,7))),e.superClass){let s=Ee("extends",this.generateExpression(e.superClass,j.Unary,7));n=Ee(n,s)}return n.push(he),n.push(this.generateStatement(e.body,or)),n},MethodDefinition(e,t,i){let n,s=[];return e.static&&(s=[`static${he}`]),n=e.kind==="get"||e.kind==="set"?[Ee(e.kind,this.generatePropertyKey(e.key,e.computed)),this.generateFunctionBody(e.value)]:[uo(e),this.generatePropertyKey(e.key,e.computed),this.generateFunctionBody(e.value)],Ee(s,n)},Property(e,t,i){return e.kind==="get"||e.kind==="set"?[e.kind,gt(),this.generatePropertyKey(e.key,e.computed),this.generateFunctionBody(e.value)]:e.shorthand?e.value.type==="AssignmentPattern"?this.AssignmentPattern(e.value,j.Sequence,7):this.generatePropertyKey(e.key,e.computed):e.method?[uo(e),this.generatePropertyKey(e.key,e.computed),this.generateFunctionBody(e.value)]:[this.generatePropertyKey(e.key,e.computed),`:${he}`,this.generateExpression(e.value,j.Assignment,7)]},ObjectExpression(e,t,i){if(!e.properties.length)return"{}";let n=e.properties.length>1,s=this,o="";if(pt(function(){o=s.generateExpression(e.properties[0],j.Sequence,7)}),!n&&(u=$e(o).toString(),!/[\r\n]/g.test(u)))return["{",he,o,he,"}"];var u;let c=[];return pt(function(h){if(c=["{",Ve,h,o],n){c.push(`,${Ve}`);for(let g=1,y=e.properties.length;g<y;++g)c.push(h),c.push(s.generateExpression(e.properties[g],j.Sequence,7)),g+1<y&&c.push(`,${Ve}`)}}),xt($e(c).toString())||c.push(Ve),c.push(at),c.push("}"),c},AssignmentPattern(e,t,i){return this.generateAssignment(e.left,e.right,"=",t,i)},ObjectPattern(e,t,i){if(!e.properties.length)return"{}";let n=!1;if(e.properties.length===1){let[u]=e.properties;u.type===He.Property&&u.value.type!==He.Identifier&&(n=!0)}else for(let u of e.properties)if(u.type===He.Property&&!u.shorthand){n=!0;break}let s=["{",n?Ve:""],o=this;return pt(function(u){for(let c=0,h=e.properties.length;c<h;++c)s.push(n?u:""),s.push(o.generateExpression(e.properties[c],j.Sequence,7)),c+1<h&&s.push(`,${n?Ve:he}`)}),n&&!xt($e(s).toString())&&s.push(Ve),s.push(n?at:""),s.push("}"),s},ThisExpression:(e,t,i)=>"this",Super:(e,t,i)=>"super",Identifier:(e,t,i)=>Jt(e),ImportDefaultSpecifier:(e,t,i)=>Jt("id"in e&&e.id||e.local),ImportNamespaceSpecifier(e,t,i){let n=["*"],s="id"in e&&e.id||e.local;return s&&n.push(`${he}as${gt()}${Jt(s)}`),n},ImportSpecifier(e,t,i){let n=e.imported,s=[n.name],{local:o}=e;return o&&o.name!==n.name&&s.push(`${gt()}as${gt()}${Jt(o)}`),s},ExportSpecifier(e,t,i){let n=e.local,s=[n.name],o=e.exported;return o&&o.name!==n.name&&s.push(`${gt()}as${gt()}${Jt(o)}`),s},Literal(e,t,i){let n;if(Object.hasOwn(e,"raw")&&os&&vt.raw)try{if(n=os(e.raw).body[0].expression,n.type===He.Literal&&n.value===e.value)return e.raw}catch{}return e.regex?`/${e.regex.pattern}/${e.regex.flags}`:typeof e.value=="bigint"?`${e.value.toString()}n`:e.bigint?`${e.bigint}n`:e.value===null?"null":typeof e.value=="string"?(function(s){let o="",u=0,c=0;for(let y=0,A=s.length;y<A;++y){let v=s.charCodeAt(y);if(v===39)++u;else if(v===34)++c;else if(v===47&&jt)o+="\\";else{if(rt.code.isLineTerminator(v)||v===92){o+=fl(v);continue}if(!rt.code.isIdentifierPartES5(v)&&(jt&&v<32||!jt&&!go&&(v<32||v>126))){o+=hl(v,s.charCodeAt(y+1));continue}}o+=String.fromCharCode(v)}let h=!(ln==="double"||ln==="auto"&&c<u),g=h?"'":'"';if(!(h?u:c))return g+o+g;s=o,o=g;for(let y=0,A=s.length;y<A;++y){let v=s.charCodeAt(y);(v===39&&h||v===34&&!h)&&(o+="\\"),o+=String.fromCharCode(v)}return o+g})(e.value):typeof e.value=="number"?(function(s){if(s!=s)throw new Error("Numeric literal whose value is NaN");if(s<0||s===0&&1/s<0)throw new Error("Numeric literal whose value is negative");if(s===1/0)return jt?"null":ss?"1e400":"1e+400";let o=`${s}`;if(!ss||o.length<3)return o;let u=o.indexOf(".");jt||o.charCodeAt(0)!==48||u!==1||(u=0,o=o.slice(1));let c=o;o=o.replace("e+","e");let h,g=0;for((h=c.indexOf("e"))>0&&(g=+c.slice(h+1),c=c.slice(0,h)),u>=0&&(g-=c.length-u-1,c=""+ +(c.slice(0,u)+c.slice(u+1))),h=0;c.charCodeAt(c.length+h-1)===48;)--h;return h!==0&&(g-=h,c=c.slice(0,h)),g!==0&&(c+=`e${g}`),(c.length<o.length||yo&&s>1e12&&Math.floor(s)===s&&(c=`0x${s.toString(16)}`).length<o.length)&&+c===s&&(o=c),o})(e.value):typeof e.value=="boolean"?e.value?"true":"false":(function(s){let o=s.toString();if(s.source){let u=o.match(/\/([^/]*)$/);if(!u)return o;let[,c]=u;o="";let h=!1,g=!1;for(let y=0,A=s.source.length;y<A;++y){let v=s.source.charCodeAt(y);g?(o+=no(v,g),g=!1):(h?v===93&&(h=!1):v===47?o+="\\":v===91&&(h=!0),o+=no(v,g),g=v===92)}return`/${o}/${c}`}return o})(e.value)},GeneratorExpression(e,t,i){return this.ComprehensionExpression(e,t,i)},ComprehensionExpression(e,t,i){let n=e.type===He.GeneratorExpression?["("]:["["];if(vt.moz.comprehensionExpressionStartsWithAssignment){let s=this.generateExpression(e.body,j.Assignment,7);n.push(s)}if(e.blocks){let s=this;pt(function(){for(let o=0,u=e.blocks.length;o<u;++o){let c=s.generateExpression(e.blocks[o],j.Sequence,7);o>0||vt.moz.comprehensionExpressionStartsWithAssignment?n=Ee(n,c):n.push(c)}})}if(e.filter){n=Ee(n,`if${he}`);let s=this.generateExpression(e.filter,j.Sequence,7);n=Ee(n,["(",s,")"])}if(!vt.moz.comprehensionExpressionStartsWithAssignment){let s=this.generateExpression(e.body,j.Assignment,7);n=Ee(n,s)}return n.push(e.type===He.GeneratorExpression?")":"]"),n},ComprehensionBlock(e,t,i){let n;return n=e.left.type===He.VariableDeclaration?[e.left.kind,gt(),this.generateStatement(e.left.declarations[0],0)]:this.generateExpression(e.left,j.Call,7),n=Ee(n,e.of?"of":"in"),n=Ee(n,this.generateExpression(e.right,j.Sequence,7)),[`for${he}(`,n,")"]},SpreadElement(e,t,i){return["...",this.generateExpression(e.argument,j.Assignment,7)]},TaggedTemplateExpression(e,t,i){let n=3;return 2&i||(n=1),ft([this.generateExpression(e.tag,j.Call,n),this.generateExpression(e.quasi,j.Primary,4)],j.TaggedTemplate,t)},TemplateElement:(e,t,i)=>jt?JSON.stringify(e.value.raw).slice(1,-1):e.value.raw,TemplateLiteral(e,t,i){let n=jt&&e.quasis.length===1,s=[n?'"':"`"];for(let o=0,u=e.quasis.length;o<u;++o)s.push(this.generateExpression(e.quasis[o],j.Primary,7)),o+1<u&&(s.push(`\${${he}`),s.push(this.generateExpression(e.expressions[o],j.Sequence,7)),s.push(`${he}}`));return s.push(n?'"':"`"),s},ModuleSpecifier(e,t,i){return this.Literal(e,t,i)},ImportExpression(e,t,i){return ft(["import(",this.generateExpression(e.source,j.Assignment,7),")"],j.Call,t)}},Wt=class{maybeBlock(t,i){let n=!vt.comment||!t.leadingComments;if(t.type===He.BlockStatement&&n)return[he,this.generateStatement(t,i)];if(t.type===He.EmptyStatement&&n)return";";let s=this,o=[];return pt(function(){o=[Ve,St(s.generateStatement(t,i))]}),o}maybeBlockSuffix(t,i){let n=xt($e(i).toString());return t.type!==He.BlockStatement||vt.comment&&t.leadingComments||n?n?[i,at]:[i,Ve,at]:[i,he]}generatePattern(t,i,n){return t.type===He.Identifier?Jt(t):this.generateExpression(t,i,n)}generateFunctionParams(t){let i;if(t.type!==He.ArrowFunctionExpression||t.rest||t.defaults&&t.defaults.length!==0||t.params.length!==1||t.params[0].type!==He.Identifier){i=t.type===He.ArrowFunctionExpression?[Ti(t,!1)]:[],i.push("(");let n=!1;t.defaults&&(n=!0);for(let s=0,o=t.params.length;s<o;++s)n&&t.defaults&&t.defaults[s]?i.push(this.generateAssignment(t.params[s],t.defaults[s],"=",j.Assignment,7)):i.push(this.generatePattern(t.params[s],j.Assignment,7)),s+1<o&&i.push(`,${he}`);t.rest&&(t.params.length&&i.push(`,${he}`),i.push("..."),i.push(Jt(t.rest))),i.push(")")}else i=[Ti(t,!0),Jt(t.params[0])];return i}generateFunctionBody(t){let i=this.generateFunctionParams(t);if(t.type===He.ArrowFunctionExpression&&(i.push(he),i.push("=>")),"expression"in t&&t.expression){i.push(he);let n=this.generateExpression(t.body,j.Assignment,7);n.toString().charAt(0)==="{"&&(n=["(",n,")"]),i.push(n)}else i.push(this.maybeBlock(t.body,9));return i}generateIterationForStatement(t,i,n){let s=this,o=[`for${"await"in i&&i.await?`${gt()}await`:""}${he}(`];return pt(function(){i.left.type===He.VariableDeclaration?pt(function(){o.push(i.left.kind+gt()),o.push(s.generateStatement(i.left.declarations[0],0))}):o.push(s.generateExpression(i.left,j.Call,7)),o=Ee(o,t),o=[Ee(o,s.generateExpression(i.right,j.Assignment,7)),")"]}),o.push(this.maybeBlock(i.body,n)),o}generatePropertyKey(t,i){let n=[];i&&n.push("[");let s=this.generateExpression(t,j.Assignment,7);return jt&&typeof s=="string"&&s[0]!=='"'?(n.push('"'),n.push(s),n.push('"')):n.push(s),i&&n.push("]"),n}generateAssignment(t,i,n,s,o){return j.Assignment<s&&(o|=1),ft([this.generateExpression(t,j.Call,o),he+n+he,this.generateExpression(i,j.Assignment,o)],j.Assignment,s)}semicolon(t){return!xo&&t&Dt?"":";"}generateExpression(t,i,n){let s=t.type||He.Property;if(vt.verbatim&&Object.hasOwn(t,vt.verbatim))return(function(c,h){let g=c[vt.verbatim];if(!g)throw new Error("Unexpected falsy verbatim");let y;return typeof g=="string"?y=ft(oo(g),j.Sequence,h):(y=oo(g.content),y=ft(y,g.precedence!=null?g.precedence:j.Sequence,h)),$e(y,c)})(t,i);let o,u=this[s](t,i,n);if("jsdoc"in t&&t.jsdoc){let c=t.jsdoc;o=t.type!=="Property"&&!c.endLine&&c.tags.some(h=>h.tag==="type"),o&&(u=["(",u]),u=so(this.JsdocBlock(c),u)}return vt.comment&&(u=ao(t,u)),o&&u.push(")"),u=$e(u,t),u}generateStatement(t,i){let n=this[t.type](t,i);t.jsdoc&&this.JsdocBlock&&(n=so(this.JsdocBlock(t.jsdoc),n)),vt.comment&&(n=ao(t,n));let s=$e(n).toString();return t.type!==He.Program||wi||Ve!==""||s.charAt(s.length-1)!==`
|
|
36
|
+
`||(n=Sr?$e(n).replaceRight(/\s+$/.source,""):s.replace(/\s+$/,"")),$e(n,t)}};function yl(e,t){let i=t();if(Co(e))return i.generateStatement(e,1);if((function(n){return Object.hasOwn(Wt.Expression,n.type)})(e))return i.generateExpression(e,j.Sequence,7);throw new Error(`Unknown node type: ${e.type}`)}function ni(e,t){let i=Ao();t!=null?(typeof t.indent=="string"&&(i.format.indent.style=t.indent),typeof t.base=="number"&&(i.format.indent.base=t.base),t=pn(i,t),Dr=t.format.indent.style,typeof t.base=="string"?{base:at}=t:at=Ir(Dr,t.format.indent.base)):(Dr=(t=i).format.indent.style,at=Ir(Dr,t.format.indent.base)),{json:jt,renumber:ss,escapeless:go,newline:Ve,space:he,parentheses:as,semicolons:xo,safeConcatenation:wi}=t.format,yo=!jt&&t.format.hexadecimal,ln=jt?"double":t.format.quotes,t.format.compact&&(Ve=he=Dr=at=""),{directive:vo,sourceMap:Sr,sourceCode:fr,codegenFactory:io}=t,os=jt?null:t.parse,$t=t.format.preserveBlankLines&&fr!==null,vt=t,Sr&&ni.sourceMapModule&&({SourceNode:un}=ni.sourceMapModule);let n=yl(e,io),s;return Sr?(s=n.toStringWithSourceMap({file:t.file,sourceRoot:t.sourceMapRoot}),t.sourceContent&&s.map.setSourceContent(t.sourceMap,t.sourceContent),t.sourceMapWithCode?s:s.map.toString()):(s={code:n.toString(),map:null},t.sourceMapWithCode?s:s.code)}Wt.prototype.JsdocBlock=null,Wt.Statement=dl,Object.assign(Wt.prototype,Wt.Statement),Wt.Expression=ml,Object.assign(Wt.prototype,Wt.Expression),ni.sourceMapModule=null;var Af=Ao().format,bf=pn({},j),{attachComments:Ef}=mo;ni.sourceMapModule=rl;function To(e){return e.text!==void 0&&e.text!==""?`'${e.type}' with value '${e.text}'`:`'${e.type}'`}var ps=class Fo extends Error{token;constructor(t){super(`No parslet found for token: ${To(t)}`),this.token=t,Object.setPrototypeOf(this,Fo.prototype)}getToken(){return this.token}},gl=class ko extends Error{token;constructor(t){super(`The parsing ended early. The next token was: ${To(t)}`),this.token=t,Object.setPrototypeOf(this,ko.prototype)}getToken(){return this.token}},ct=class _o extends Error{constructor(t,i){let n=`Unexpected type: '${t.type}'.`;i!==void 0&&(n+=` Message: ${i}`),super(n),Object.setPrototypeOf(this,_o.prototype)}},Tr=["module","keyof","event","external","readonly","is","typeof","in","null","undefined","function","asserts","infer","extends","import"],Po=["false","null","true","void"];[...Po];var us={always:["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"],strictMode:["let","static","yield"],moduleOrAsyncFunctionBodies:["await"]},Eo={always:["enum"],strictMode:["implements","interface","package","private","protected","public"]},xl=["arguments","eval"];function _i(e,t){let i;if(t.type==="JsdocTypeName")i=t.value;else if(t.type==="JsdocTypeParenthesis"){let n=t;for(;n.type==="JsdocTypeParenthesis";)n=n.element;if(n.type==="JsdocTypeName")i=n.value;else return t}else return t;if(us.always.includes(i)&&!Po.includes(i)&&(i!=="this"||e.classContext!==!0))throw new Error(`Unexpected reserved keyword "${i}"`);if(Eo.always.includes(i))throw new Error(`Unexpected future reserved keyword "${i}"`);if(e.module!==void 0&&e.module||e.strictMode!==void 0&&e.strictMode){if(us.strictMode.includes(i))throw new Error(`Unexpected reserved keyword "${i}" for strict mode`);if(Eo.strictMode.includes(i))throw new Error(`Unexpected future reserved keyword "${i}" for strict mode`);if(xl.includes(i))throw new Error(`The item "${i}" is not an identifier in strict mode`)}if((e.module!==void 0&&e.module||e.asyncFunctionBody!==void 0&&e.asyncFunctionBody)&&us.moduleOrAsyncFunctionBodies.includes(i))throw new Error(`Unexpected reserved keyword "${i}" for modules or async function bodies`);return t}function ot(e){if(e===void 0)throw new Error("Unexpected undefined");if(e.type==="JsdocTypeKeyValue"||e.type==="JsdocTypeParameterList"||e.type==="JsdocTypeProperty"||e.type==="JsdocTypeReadonlyProperty"||e.type==="JsdocTypeObjectField"||e.type==="JsdocTypeJsdocObjectField"||e.type==="JsdocTypeIndexSignature"||e.type==="JsdocTypeMappedType"||e.type==="JsdocTypeTypeParameter"||e.type==="JsdocTypeCallSignature"||e.type==="JsdocTypeConstructorSignature"||e.type==="JsdocTypeMethodSignature"||e.type==="JsdocTypeIndexedAccessIndex"||e.type==="JsdocTypeComputedProperty"||e.type==="JsdocTypeComputedMethod")throw new ct(e);return e}function ls(e){return e.type==="JsdocTypeKeyValue"?yn(e):ot(e)}function vl(e){return e.type==="JsdocTypeName"?e:yn(e)}function yn(e){if(e.type!=="JsdocTypeKeyValue")throw new ct(e);return e}function Cl(e){if(e.type==="JsdocTypeVariadic"){if(e.element?.type==="JsdocTypeName")return e;throw new ct(e)}if(e.type!=="JsdocTypeNumber"&&e.type!=="JsdocTypeName")throw new ct(e);return e}function Al(e){if(e.type==="JsdocTypeTuple"||e.type==="JsdocTypeGeneric"&&e.meta.brackets==="square")return e;throw new ct(e)}function cs(e){return e.type==="JsdocTypeIndexSignature"||e.type==="JsdocTypeMappedType"}var tr=class{grammar;_lexer;baseParser;externalParsers;module;strictMode;asyncFunctionBody;classContext;rangeStart;range;locStart;loc;constructor(e,t,i,{module:n,strictMode:s,asyncFunctionBody:o,classContext:u,range:c=!1,rangeStart:h=0,loc:g=!1,locStart:y={line:1,column:0},externalParsers:A}={}){this.grammar=e,this._lexer=t,this.baseParser=i,this.externalParsers=A,this.module=n,this.strictMode=s,this.asyncFunctionBody=o,this.classContext=u,this.rangeStart=h,this.range=c,this.locStart=y,this.loc=g}get lexer(){return this._lexer}parse(){let e=this.parseType(0);if(this.lexer.current.type!=="EOF")throw new gl(this.lexer.current);return e}parseType(e){return ot(this.parseIntermediateType(e))}parseIntermediateType(e){let t=this.tryParslets(null,e);if(t===null)throw new ps(this.lexer.current);return this.parseInfixIntermediateType(t,e)}parseInfixIntermediateType(e,t){let i=this.tryParslets(e,t);for(;i!==null;)e=i,i=this.tryParslets(e,t);return e}tryParslets(e,t){for(let i of this.grammar){let n=this.rangeStart,s=this.locStart.line,o=this.locStart.column,u=i(this,t,e);if(u!==null)return this.range&&(u.range=[n,this.rangeStart]),this.loc&&(u.loc={end:{line:this.locStart.line,column:this.locStart.column},start:{line:s,column:o}}),u}return null}consume(e){return Array.isArray(e)||(e=[e]),e.includes(this.lexer.current.type)?(this.range&&(this.rangeStart+=this.lexer.current?.reduced??0),this.loc&&(this.locStart.line+=this.lexer.current?.line??0,this.locStart.column=(this.lexer.current?.line??0)>0?this.lexer.current?.column??0:this.locStart.column+(this.lexer.current?.column??0)),this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(e){this._lexer=e.lexer}};function Bo(e){return e==="}"||e==="EOF"||e==="|"||e===","||e===")"||e===">"}var hs=(e,t,i)=>{let n=e.lexer.current.type,s=e.lexer.next.type,o=i?.type==="JsdocTypeInfer";return i===null&&n==="?"&&!Bo(s)||i!==null&&!o&&n==="?"&&12>t?(e.consume("?"),i===null?{type:"JsdocTypeNullable",element:e.parseType(12),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:ot(i),meta:{position:"suffix"}}):null};function Me(e){let t=(i,n,s)=>{let o=i.lexer.current.type,u=i.lexer.next.type;if(s===null){if("parsePrefix"in e&&e.accept(o,u))return e.parsePrefix(i)}else if("parseInfix"in e&&e.precedence>n&&e.accept(o,u))return e.parseInfix(i,s);return null};return Object.defineProperty(t,"name",{value:e.name}),t}var gn=Me({name:"optionalParslet",accept:e=>e==="=",precedence:11,parsePrefix:e=>(e.consume("="),{type:"JsdocTypeOptional",element:e.parseType(11),meta:{position:"prefix"}}),parseInfix:(e,t)=>(e.consume("="),{type:"JsdocTypeOptional",element:ot(t),meta:{position:"suffix"}})}),xn=Me({name:"numberParslet",accept:e=>e==="Number",parsePrefix:e=>{let t=e.lexer.current.text;if(e.consume("Number"),t.endsWith("n")){let i=t.slice(0,-1);return{type:"JsdocTypeBigInt",value:BigInt(i).toString()}}return{type:"JsdocTypeNumber",value:parseFloat(t)}}}),bl=Me({name:"parenthesisParslet",accept:e=>e==="(",parsePrefix:e=>{if(e.consume("("),e.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let t=e.parseIntermediateType(0);if(!e.consume(")"))throw new Error("Unterminated parenthesis");return t.type==="JsdocTypeParameterList"?t:t.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[t]}:{type:"JsdocTypeParenthesis",element:ot(t)}}}),El=Me({name:"specialTypesParslet",accept:(e,t)=>e==="?"&&Bo(t)||e==="null"||e==="undefined"||e==="*",parsePrefix:e=>{if(e.consume("null"))return{type:"JsdocTypeNull"};if(e.consume("undefined"))return{type:"JsdocTypeUndefined"};if(e.consume("*"))return{type:"JsdocTypeAny"};if(e.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error(`Unacceptable token: ${e.lexer.current.text}`)}}),Dl=Me({name:"notNullableParslet",accept:e=>e==="!",precedence:12,parsePrefix:e=>(e.consume("!"),{type:"JsdocTypeNotNullable",element:e.parseType(12),meta:{position:"prefix"}}),parseInfix:(e,t)=>(e.consume("!"),{type:"JsdocTypeNotNullable",element:ot(t),meta:{position:"suffix"}})});function Sl({allowTrailingComma:e}){return Me({name:"parameterListParslet",accept:t=>t===",",precedence:1,parseInfix:(t,i)=>{let n=[ls(i)];t.consume(",");do try{let s=t.parseIntermediateType(1);n.push(ls(s))}catch(s){if(e&&s instanceof ps)break;throw s}while(t.consume(","));if(n.length>0&&n.slice(0,-1).some(s=>s.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:n}}})}var Nr=Me({name:"genericParslet",accept:(e,t)=>e==="<"||e==="."&&t==="<",precedence:17,parseInfix:(e,t)=>{let i=e.consume(".");e.consume("<");let n=[];do if(e.consume("infer")){let s=e.parseIntermediateType(12);if(s.type!=="JsdocTypeName")throw new ct(s,"A typescript infer always has to have a name.");n.push({type:"JsdocTypeInfer",element:s})}else n.push(e.parseType(1));while(e.consume(","));if(!e.consume(">"))throw new Error("Unterminated generic parameter list");return{type:"JsdocTypeGeneric",left:ot(t),elements:n,meta:{brackets:"angle",dot:i}}}}),wl=Me({name:"unionParslet",accept:e=>e==="|",precedence:5,parseInfix:(e,t)=>{e.consume("|");let i=[];do i.push(e.parseType(5));while(e.consume("|"));return{type:"JsdocTypeUnion",elements:[_i(e,ot(t)),...i.map(n=>_i(e,n))]}}}),fs=[hs,gn,xn,bl,El,Dl,Sl({allowTrailingComma:!0}),Nr,wl,gn];function Rr({allowSquareBracketsOnAnyType:e,allowJsdocNamePaths:t,pathGrammar:i}){return function(s,o,u){if(u===null||o>=18)return null;let c=s.lexer.current.type,h=s.lexer.next.type;if(!(c==="."&&h!=="<"||c==="["&&(e||u.type==="JsdocTypeName")||t&&(c==="~"||c==="#")))return null;let g,y=!1;s.consume(".")?g="property":s.consume("[")?(g="property-brackets",y=!0):s.consume("~")?g="inner":(s.consume("#"),g="instance");let A=y&&e?s:i!==null?new tr(i,s.lexer,s):s,v=A.parseType(y&&e?0:18);s.acceptLexerState(A);let b;switch(v.type){case"JsdocTypeName":b={type:"JsdocTypeProperty",value:v.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":b={type:"JsdocTypeProperty",value:v.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeBigInt":throw new ct(v,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'");case"JsdocTypeStringValue":b={type:"JsdocTypeProperty",value:v.value,meta:{quote:v.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(v.specialType==="event")b=v;else throw new ct(v,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:if(!y||!e)throw new ct(v,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'");b={type:"JsdocTypeIndexedAccessIndex",right:v}}if(y&&!s.consume("]")){let D=s.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${D.type}' with text '${D.text}'`)}return{type:"JsdocTypeNamePath",left:ot(u),right:b,pathType:g}}}function _t({allowedAdditionalTokens:e}){return Me({name:"nameParslet",accept:t=>t==="Identifier"||t==="this"||t==="new"||e.includes(t),parsePrefix:t=>{let{type:i,text:n}=t.lexer.current;return t.consume(i),{type:"JsdocTypeName",value:n}}})}var Bi=Me({name:"stringValueParslet",accept:e=>e==="StringValue",parsePrefix:e=>{let t=e.lexer.current.text;return e.consume("StringValue"),{type:"JsdocTypeStringValue",value:t.slice(1,-1),meta:{quote:t.startsWith("'")?"single":"double"}}}});function Lr({pathGrammar:e,allowedTypes:t}){return Me({name:"specialNamePathParslet",accept:i=>t.includes(i),parsePrefix:i=>{let n=i.lexer.current.type;if(i.consume(n),!i.consume(":"))return{type:"JsdocTypeName",value:n};let s,o=i.lexer.current;if(i.consume("StringValue"))s={type:"JsdocTypeSpecialNamePath",value:o.text.slice(1,-1),specialType:n,meta:{quote:o.text.startsWith("'")?"single":"double"}};else{let h="",g=["Identifier","@","/"];for(;g.some(y=>i.consume(y));)h+=o.text,o=i.lexer.current;s={type:"JsdocTypeSpecialNamePath",value:h,specialType:n,meta:{quote:void 0}}}let u=new tr(e,i.lexer,i),c=u.parseInfixIntermediateType(s,0);return i.acceptLexerState(u),ot(c)}})}var Do=[_t({allowedAdditionalTokens:["external","module"]}),Bi,xn,Rr({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],Gt=[...Do,Lr({allowedTypes:["event"],pathGrammar:Do}),_t({allowedAdditionalTokens:Tr})];function Ii(e){let t;if(e.type==="JsdocTypeParameterList")t=e.elements;else if(e.type==="JsdocTypeParenthesis")t=[e.element];else throw new ct(e);return t.map(i=>ls(i))}function Tl(e){let t=Ii(e);if(t.some(i=>i.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return t}function ds({allowNamedParameters:e,allowNoReturnType:t,allowWithoutParenthesis:i,allowNewAsFunctionKeyword:n}){return Me({name:"functionParslet",accept:(s,o)=>s==="function"||n&&s==="new"&&o==="(",parsePrefix:s=>{let o=s.consume("new");s.consume("function");let u=s.lexer.current.type==="(";if(!u){if(!i)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let c={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:o,parenthesis:u},h=s.parseIntermediateType(14);if(e===void 0)c.parameters=Tl(h);else{if(o&&h.type==="JsdocTypeFunction"&&h.arrow)return c=h,c.constructor=!0,c;c.parameters=Ii(h);for(let g of c.parameters)if(g.type==="JsdocTypeKeyValue"&&!e.includes(g.key))throw new Error(`only allowed named parameters are ${e.join(", ")} but got ${g.type}`)}if(s.consume(":"))c.returnType=s.parseType(7);else if(!t)throw new Error("function is missing return type");return c}})}function ms({allowPostfix:e,allowEnclosingBrackets:t}){return Me({name:"variadicParslet",accept:i=>i==="...",precedence:7,parsePrefix:i=>{i.consume("...");let n=t&&i.consume("[");try{let s=i.parseType(7);if(n&&!i.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:ot(s),meta:{position:"prefix",squareBrackets:n}}}catch(s){if(s instanceof ps){if(n)throw new Error("Empty square brackets for variadic are not allowed.",{cause:s});return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw s}},parseInfix:e?(i,n)=>(i.consume("..."),{type:"JsdocTypeVariadic",element:ot(n),meta:{position:"suffix",squareBrackets:!1}}):void 0})}var Io=Me({name:"symbolParslet",accept:e=>e==="(",precedence:10,parseInfix:(e,t)=>{if(t.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");e.consume("(");let i={type:"JsdocTypeSymbol",value:t.value};if(!e.consume(")")&&(i.element=Cl(e.parseIntermediateType(10)),!e.consume(")")))throw new Error("Symbol does not end after value");return i}}),Fr=Me({name:"arrayBracketsParslet",precedence:16,accept:(e,t)=>e==="["&&t==="]",parseInfix:(e,t)=>(e.consume("["),e.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[ot(t)],meta:{brackets:"square",dot:!1}})});function No(e,t){let i=[];if(e.consume("<")){do{let n,s=e.parseIntermediateType(10);if(s.type==="JsdocTypeOptional"&&(s=s.element,n=e.parseType(10)),s.type!=="JsdocTypeName")throw new ct(s);let o;e.consume("extends")&&(o=e.parseType(10),o.type==="JsdocTypeOptional"&&(o=o.element,n=e.parseType(10)));let u={type:"JsdocTypeTypeParameter",name:s};if(o!==void 0&&(u.constraint=o),n!==void 0&&(u.defaultValue=n),i.push(u),e.consume(">"))break}while(e.consume(","));t.typeParameters=i}}var Fl=Me({name:"functionPropertyParslet",accept:(e,t)=>e==="new"&&(t==="("||t==="<")||e==="Identifier"&&(t==="("||t==="<")||e==="StringValue"&&(t==="("||t==="<")||e==="("||e==="<",parsePrefix:e=>{let t,i={type:"JsdocTypeName",value:"void"};if(e.consume("new"))t={type:"JsdocTypeConstructorSignature",parameters:[],returnType:i};else{let n=e.lexer.current.text;if(e.consume("Identifier"))t={type:"JsdocTypeMethodSignature",name:n,meta:{quote:void 0},parameters:[],returnType:i};else{let s=e.lexer.current.text;e.consume("StringValue")?t={type:"JsdocTypeMethodSignature",name:s.slice(1,-1),meta:{quote:s.startsWith('"')?"double":"single"},parameters:[],returnType:i}:t={type:"JsdocTypeCallSignature",parameters:[],returnType:i}}}if(No(e,t),e.lexer.current.type!=="(")throw new Error("function property is missing parameter list");return t}});function ys({signatureGrammar:e,objectFieldGrammar:t,allowKeyTypes:i}){return Me({name:"objectParslet",accept:n=>n==="{",parsePrefix:n=>{n.consume("{");let s={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!n.consume("}")){let o,u=new tr(t,n.lexer,n,n.externalParsers?.computedPropertyParser!==void 0?{externalParsers:{computedPropertyParser:n.externalParsers.computedPropertyParser}}:void 0);for(;;){u.acceptLexerState(n);let c=u.parseIntermediateType(2);n.acceptLexerState(u),c===void 0&&i&&(c=n.parseIntermediateType(2));let h=!1;if(c.type==="JsdocTypeNullable"&&(h=!0,c=c.element),e!==void 0&&h&&(c.type==="JsdocTypeName"||c.type==="JsdocTypeStringValue")&&(n.lexer.current.type==="("||n.lexer.current.type==="<")){let g={type:"JsdocTypeMethodSignature",name:c.value,optional:!0,meta:{quote:c.type==="JsdocTypeStringValue"?c.meta.quote:void 0},parameters:[],returnType:{type:"JsdocTypeName",value:"void"}};No(n,g),c=g}if(c.type==="JsdocTypeNumber"||c.type==="JsdocTypeName"||c.type==="JsdocTypeStringValue"){let g;c.type==="JsdocTypeStringValue"&&(g=c.meta.quote),s.elements.push({type:"JsdocTypeObjectField",key:c.value.toString(),right:void 0,optional:h,readonly:!1,meta:{quote:g}})}else if(e!==void 0&&(c.type==="JsdocTypeCallSignature"||c.type==="JsdocTypeConstructorSignature"||c.type==="JsdocTypeMethodSignature")){let g=new tr([...e,...n.grammar.flatMap(v=>v.name==="keyValueParslet"?[]:[v])],n.lexer,n);g.acceptLexerState(n);let y=g.parseIntermediateType(2);n.acceptLexerState(g),c.parameters=Ii(y);let A=n.parseType(2);c.returnType=A,s.elements.push(c)}else if(c.type==="JsdocTypeObjectField"||c.type==="JsdocTypeJsdocObjectField")s.elements.push(c);else if(c.type==="JsdocTypeReadonlyProperty"&&c.element.type==="JsdocTypeObjectField"){if(typeof c.element.key=="object"&&c.element.key.type==="JsdocTypeComputedMethod")throw new Error("Computed method may not be readonly");c.element.readonly=!0,s.elements.push(c.element)}else throw new ct(c);if(n.lexer.current.startOfLine)o??="linebreak",n.consume(",")||n.consume(";");else if(n.consume(","))n.lexer.current.startOfLine?o="comma-and-linebreak":o="comma";else if(n.consume(";"))n.lexer.current.startOfLine?o="semicolon-and-linebreak":o="semicolon";else break;if(n.lexer.current.type==="}")break}if(s.meta.separator=o??"comma",(o??"").endsWith("linebreak")&&(s.meta.propertyIndent=" "),!n.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return s}})}function gs({allowSquaredProperties:e,allowKeyTypes:t,allowReadonly:i,allowOptional:n}){return Me({name:"objectFieldParslet",precedence:3,accept:s=>s===":",parseInfix:(s,o)=>{let u=!1,c=!1;if(n&&o.type==="JsdocTypeNullable"&&(u=!0,o=o.element),i&&o.type==="JsdocTypeReadonlyProperty"&&(c=!0,o=o.element),o.type==="JsdocTypeBigInt")throw new ct(o);let h=s.baseParser??s;if(h.acceptLexerState(s),o.type==="JsdocTypeNumber"||o.type==="JsdocTypeName"||o.type==="JsdocTypeStringValue"||cs(o)){if(cs(o)&&!e)throw new ct(o);h.consume(":");let g;o.type==="JsdocTypeStringValue"&&(g=o.meta.quote);let y=h.parseType(3);return s.acceptLexerState(h),{type:"JsdocTypeObjectField",key:cs(o)?o:o.value.toString(),right:y,optional:u,readonly:c,meta:{quote:g}}}else{if(!t)throw new ct(o);h.consume(":");let g=h.parseType(3);return s.acceptLexerState(h),{type:"JsdocTypeJsdocObjectField",left:ot(o),right:g}}}})}function Pi({allowOptional:e,allowVariadic:t,acceptParameterList:i}){return Me({name:"keyValueParslet",precedence:3,accept:n=>n===":",parseInfix:(n,s)=>{let o=!1,u=!1;if(e&&s.type==="JsdocTypeNullable"&&(o=!0,s=s.element),t&&s.type==="JsdocTypeVariadic"&&s.element!==void 0&&(u=!0,s=s.element),s.type!=="JsdocTypeName"){if(i!==void 0&&s.type==="JsdocTypeParameterList")return n.consume(":"),s;throw new ct(s)}n.consume(":");let c=n.parseType(3);return{type:"JsdocTypeKeyValue",key:s.value,right:c,optional:o,variadic:u}}})}var So=[...fs,ds({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Bi,Lr({allowedTypes:["module","external","event"],pathGrammar:Gt}),ms({allowEnclosingBrackets:!0,allowPostfix:!0}),_t({allowedAdditionalTokens:["keyof"]}),Io,Fr,Rr({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:Gt})],kl=[...So,ys({objectFieldGrammar:[_t({allowedAdditionalTokens:["typeof","module","in"]}),gs({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...So],allowKeyTypes:!0}),Pi({allowOptional:!0,allowVariadic:!0})],wf=[Nr,Fr,_t({allowedAdditionalTokens:Tr})],_l=[Nr,Fr,_t({allowedAdditionalTokens:Tr}),Rr({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:Gt})],Tf=[Lr({allowedTypes:["module","external","event"],pathGrammar:Gt}),..._l],Ro=Me({name:"typeOfParslet",accept:e=>e==="typeof",parsePrefix:e=>(e.consume("typeof"),{type:"JsdocTypeTypeof",element:e.parseType(13)})}),Pl=[_t({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),hs,gn,Bi,xn,gs({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Bl=[...fs,ys({allowKeyTypes:!1,objectFieldGrammar:Pl}),_t({allowedAdditionalTokens:["event","external","in"]}),Ro,ds({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),ms({allowEnclosingBrackets:!1,allowPostfix:!1}),_t({allowedAdditionalTokens:["keyof"]}),Lr({allowedTypes:["module"],pathGrammar:Gt}),Rr({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:Gt}),Pi({allowOptional:!1,allowVariadic:!1}),Io],Ff=[Nr,Fr,_t({allowedAdditionalTokens:Tr})],Il=[Nr,Fr,_t({allowedAdditionalTokens:Tr}),Rr({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:Gt})],kf=[Lr({allowedTypes:["module"],pathGrammar:Gt}),...Il],Nl=Me({name:"assertsParslet",accept:e=>e==="asserts",parsePrefix:e=>{e.consume("asserts");let t=e.parseIntermediateType(10);if(t.type!=="JsdocTypeName")throw new ct(t,"A typescript asserts always has to have a name.");return e.consume("is")?{type:"JsdocTypeAsserts",left:t,right:ot(e.parseIntermediateType(8))}:{type:"JsdocTypeAssertsPlain",element:t}}});function Rl({allowQuestionMark:e}){return Me({name:"tupleParslet",accept:t=>t==="[",parsePrefix:t=>{t.consume("[");let i={type:"JsdocTypeTuple",elements:[]};if(t.consume("]"))return i;let n=t.parseIntermediateType(0);if(n.type==="JsdocTypeParameterList"?n.elements[0].type==="JsdocTypeKeyValue"?i.elements=n.elements.map(yn):i.elements=n.elements.map(ot):n.type==="JsdocTypeKeyValue"?i.elements=[yn(n)]:i.elements=[ot(n)],!t.consume("]"))throw new Error("Unterminated '['");if(!e&&i.elements.some(s=>s.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return i}})}var Ll=Me({name:"keyOfParslet",accept:e=>e==="keyof",parsePrefix:e=>(e.consume("keyof"),{type:"JsdocTypeKeyof",element:ot(e.parseType(13))})}),Ol=Me({name:"inferParslet",accept:e=>e==="infer",parsePrefix:e=>{e.consume("infer");let t=e.parseIntermediateType(12);if(t.type!=="JsdocTypeName")throw new ct(t,"A typescript infer always has to have a name.");return{type:"JsdocTypeInfer",element:t}}}),Vl=Me({name:"importParslet",accept:e=>e==="import",parsePrefix:e=>{if(e.consume("import"),!e.consume("("))throw new Error("Missing parenthesis after import keyword");let t=e.parseType(7);if(t.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!e.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:t}}}),Ml=Me({name:"readonlyPropertyParslet",accept:(e,t)=>e==="readonly"&&t!==":"&&t!=="?",parsePrefix:e=>(e.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:e.parseIntermediateType(3)})}),Jl=Me({name:"arrowFunctionParslet",precedence:15,accept:e=>e==="=>",parseInfix:(e,t)=>(e.consume("=>"),{type:"JsdocTypeFunction",parameters:Ii(t).map(vl),arrow:!0,constructor:!1,parenthesis:!0,returnType:e.parseType(2)})}),jl=Me({name:"genericArrowFunctionParslet",accept:e=>e==="<",parsePrefix:e=>{let t=[];e.consume("<");do{let n,s=e.parseIntermediateType(10);if(s.type==="JsdocTypeOptional"&&(s=s.element,n=e.parseType(10)),s.type!=="JsdocTypeName")throw new ct(s);let o;e.consume("extends")&&(o=e.parseType(10),o.type==="JsdocTypeOptional"&&(o=o.element,n=e.parseType(10)));let u={type:"JsdocTypeTypeParameter",name:s};if(o!==void 0&&(u.constraint=o),n!==void 0&&(u.defaultValue=n),t.push(u),e.consume(">"))break}while(e.consume(","));let i=e.parseIntermediateType(10);return i.typeParameters=t,i}}),Ul=Me({name:"intersectionParslet",accept:e=>e==="&",precedence:6,parseInfix:(e,t)=>{e.consume("&");let i=[];do i.push(e.parseType(6));while(e.consume("&"));return{type:"JsdocTypeIntersection",elements:[_i(e,ot(t)),...i.map(n=>_i(e,n))]}}}),ql=Me({name:"predicateParslet",precedence:8,accept:e=>e==="is",parseInfix:(e,t)=>{if(t.type!=="JsdocTypeName")throw new ct(t,"A typescript predicate always has to have a name on the left side.");return e.consume("is"),{type:"JsdocTypePredicate",left:t,right:ot(e.parseIntermediateType(8))}}}),$l=new RegExp("^\\s*\\n\\s*","v"),ki=class Fi{text="";lexerRules;current;next;previous;static create(t,i){let n=this.read(t,i);i=n.text;let s=this.read(t,i);return i=s.text,new Fi(t,i,void 0,n.token,s.token)}constructor(t,i,n,s,o){this.lexerRules=t,this.text=i,this.previous=n,this.current=s,this.next=o}static read(t,i,n=!1){n||=$l.test(i);let s=i.length,o=new RegExp("^\\s+","v").exec(i)?.[0]??"";i=i.trimStart();let u=s-i.length;for(let c of t){let h=c(i);if(h!==null){let g=o.split(`
|
|
37
|
+
`),y=h.text.split(`
|
|
38
|
+
`),A={...h,startOfLine:n,reduced:u+h.text.length,line:g.length+y.length-2,column:y.length===1?(g.at(-1)?.length??0)+(y.at(-1)?.length??0):y.at(-1)?.length??0};return i=i.slice(A.text.length),{text:i,token:A}}}throw new Error(`Unexpected Token ${i}`)}remaining(){return this.next.text+this.text}advance(){let t=Fi.read(this.lexerRules,this.text);return new Fi(this.lexerRules,t.text,this.current,this.next,t.token)}clone(){return new Fi(this.lexerRules,this.text,this.previous,this.current,this.next)}},Wl=Me({name:"objectSquarePropertyParslet",accept:e=>e==="[",parsePrefix:e=>{if(e.baseParser===void 0)throw new Error("Only allowed inside object grammar");e.consume("[");let t,i=!1;if(e.externalParsers?.computedPropertyParser!==void 0)try{let s=e.lexer.clone(),o=new tr(e.grammar,s,e.baseParser,{externalParsers:e.externalParsers}),u=o.parseIntermediateType(2),c=u?.type==="JsdocTypeName"&&o.consume("in");(u?.type==="JsdocTypeObjectField"&&typeof u.key=="string"&&!u.optional&&!u.readonly&&u.right!==void 0||c)&&(i=!0)}catch{}if(i||e.externalParsers?.computedPropertyParser===void 0)try{t=e.parseIntermediateType(2)}catch(s){throw new Error("Error parsing value inside square bracketed property.",{cause:s})}let n;if(t?.type==="JsdocTypeObjectField"&&typeof t.key=="string"&&!t.optional&&!t.readonly&&t.right!==void 0){let s=t.key;if(!e.consume("]"))throw new Error("Unterminated square brackets");if(!e.consume(":"))throw new Error("Incomplete index signature");let o=e.baseParser;o.acceptLexerState(e),t.key={type:"JsdocTypeIndexSignature",key:s,right:t.right},t.optional=!1,t.meta.quote=void 0,n=t;let u=o.parseType(4);n.right=u,e.acceptLexerState(o)}else if(t?.type==="JsdocTypeName"&&e.consume("in")){let s=e.baseParser;s.acceptLexerState(e);let o=s.parseType(4);if(!s.consume("]"))throw new Error("Unterminated square brackets");let u=s.consume("?");if(!s.consume(":"))throw new Error("Incomplete mapped type clause: missing colon");let c=s.parseType(4);n={type:"JsdocTypeObjectField",optional:u,readonly:!1,meta:{quote:void 0},key:{type:"JsdocTypeMappedType",key:t.value,right:o},right:c},e.acceptLexerState(s)}else{if(e.externalParsers?.computedPropertyParser!==void 0){let y=e.lexer.current.text+e.lexer.remaining(),A=y;for(;A!=="";){try{t=e.externalParsers.computedPropertyParser(A);break}catch{}A=A.slice(0,-1)}y=y.slice(A.length);let v=new tr(e.grammar,ki.create(e.lexer.lexerRules,y),e.baseParser,{externalParsers:{computedPropertyParser:e.externalParsers.computedPropertyParser}});e.acceptLexerState(v)}if(!e.consume("]"))throw new Error("Unterminated square brackets");let s=e.consume("?"),o=[];if(e.consume("<"))do{let y,A=e.parseIntermediateType(10);if(A.type==="JsdocTypeOptional"&&(A=A.element,y=e.parseType(10)),A.type!=="JsdocTypeName")throw new ct(A);let v;e.consume("extends")&&(v=e.parseType(10),v.type==="JsdocTypeOptional"&&(v=v.element,y=e.parseType(10)));let b={type:"JsdocTypeTypeParameter",name:A};if(v!==void 0&&(b.constraint=v),y!==void 0&&(b.defaultValue=y),o.push(b),e.consume(">"))break}while(e.consume(","));let u,c,h=()=>{s||(s=e.consume("?"))},g;if(e.lexer.current.type==="("){let y=new tr([Pi({allowVariadic:!0,allowOptional:!0,acceptParameterList:!0}),...e.baseParser.grammar.flatMap(T=>T.name==="keyValueParslet"?[]:[T])],e.lexer,e);y.acceptLexerState(e);let A=y.parseIntermediateType(2);e.acceptLexerState(y);let v=Ii(A);u="JsdocTypeComputedMethod",h(),e.consume(":");let b=e.baseParser;b.acceptLexerState(e);let D=b.parseType(4);e.acceptLexerState(b),c={type:u,optional:s,value:t,parameters:v,returnType:D},o.length>0&&(c.typeParameters=o)}else{if(u="JsdocTypeComputedProperty",h(),!e.consume(":"))throw new Error("Incomplete computed property: missing colon");let y=e.baseParser;y.acceptLexerState(e),g=y.parseType(4),e.acceptLexerState(y),c={type:u,value:t}}n={type:"JsdocTypeObjectField",optional:u==="JsdocTypeComputedMethod"?!1:s,readonly:!1,meta:{quote:void 0},key:c,right:g}}return n}}),Gl=Me({name:"readonlyArrayParslet",accept:e=>e==="readonly",parsePrefix:e=>(e.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:Al(e.parseIntermediateType(0))})}),Kl=Me({name:"conditionalParslet",precedence:8,accept:e=>e==="extends",parseInfix:(e,t)=>{e.consume("extends");let i=ot(e.parseType(13));e.consume("?");let n=e.parseType(3);return e.consume(":"),{type:"JsdocTypeConditional",checksType:ot(t),extendsType:i,trueType:n,falseType:e.parseType(8)}}});function it(e){return t=>t.startsWith(e)?{type:e,text:e}:null}function zl(e){let t=0,i,n=e[0],s=!1;if(n!=="'"&&n!=='"')return null;for(;t<e.length;){if(t++,i=e[t],!s&&i===n){t++;break}s=!s&&i==="\\"}if(i!==n)throw new Error("Unterminated String");return e.slice(0,t)}function Hl(e){let t=0,i,n=e[0],s=!1;if(n!=="`")return null;for(;t<e.length;){if(t++,i=e[t],!s&&i===n){t++;break}s=!s&&i==="\\"}if(i!==n)throw new Error("Unterminated template literal");return e.slice(0,t)}function Ql(e){let t=0,i=e[0],n=!1;if(i==="`"||i==="$"&&e[1]==="{")return null;for(;t<e.length;){t++;let s=e[t];if(!n&&(s==="`"||s==="$"&&e[t+1]==="{"))break;n=!n&&s==="\\"}return e.slice(0,t)}var Xl=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","v"),Lo=new RegExp("[$\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","v"),Yl=new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","v");function Oo(e){return function(t){let i=t[0];if(!Xl.test(i))return null;let n=1;do{if(i=t[n],!e.test(i))break;n++}while(n<t.length);return t.slice(0,n)}}var Vo=new RegExp("^(?:-?\\d+n)","v"),Zl=new RegExp("^(?:-?(?:(?:\\d*\\.\\d+|\\d+)(?:[Ee][+\\-]?\\d+)?))","v"),ep=new RegExp("^(?:NaN|-?(?:(?:\\d*\\.\\d+|\\d+)(?:[Ee][+\\-]?\\d+)?|Infinity))","v");function Mo(e){return function(i){return e.exec(i)?.[0]??null}}var Jo=e=>{let t=Oo(Yl)(e);return t===null?null:{type:"Identifier",text:t}},tp=e=>{let t=Oo(Lo)(e);return t===null?null:{type:"Identifier",text:t}};function Ct(e){return t=>{if(!t.startsWith(e))return null;let i=t[e.length];return i!==void 0&&Lo.test(i)?null:{type:e,text:e}}}var rp=e=>{let t=zl(e);return t===null?null:{type:"StringValue",text:t}},ip=e=>{let t=Hl(e);return t===null?null:{type:"TemplateLiteral",text:t}},jo=e=>e.length>0?null:{type:"EOF",text:""},np=e=>{let t=Vo.exec(e)?.[0];if(t!==void 0)return{type:"Number",text:t};let i=Mo(Zl)(e);return i===null?null:{type:"Number",text:i}},sp=e=>{let t=Vo.exec(e)?.[0];if(t!==void 0)return{type:"Number",text:t};let i=Mo(ep)(e);return i===null?null:{type:"Number",text:i}},xs=[jo,it("=>"),it("("),it(")"),it("{"),it("}"),it("["),it("]"),it("|"),it("&"),it("<"),it(">"),it(","),it(";"),it("*"),it("?"),it("!"),it("="),it(":"),it("..."),it("."),it("#"),it("~"),it("/"),it("@"),Ct("undefined"),Ct("null"),Ct("function"),Ct("this"),Ct("new"),Ct("module"),Ct("event"),Ct("extends"),Ct("external"),Ct("infer"),Ct("typeof"),Ct("keyof"),Ct("readonly"),Ct("import"),Ct("is"),Ct("in"),Ct("asserts"),np,tp,rp,ip],wo=xs.toSpliced(-4,2,sp,Jo),ap=e=>{let t=Jo(e);return t?.text.includes("-")===!0?t:null},_f=[jo,ap,...xs.slice(1)],op=Me({name:"templateLiteralParslet",accept:e=>e==="TemplateLiteral",parsePrefix:e=>{let t=e.lexer.current.text;e.consume("TemplateLiteral");let i=[],n=[],s=t.slice(1,-1),o=()=>{let u=Ql(s)??"";i.push(u.replace(new RegExp("\\\\`","gv"),"`")),s=s.slice(u.length)};for(o();s.startsWith("${");){{s=s.slice(2);let u,c,h=s,g="";for(;;)try{u=new tr(e.grammar,ki.create(e.lexer.lexerRules,h)),c=u.parseType(0);break}catch{g=h.slice(-1)+g,h=h.slice(0,-1)}if(n.push(c),u.lexer.current.text!=="}")throw new Error("unterminated interpolation");s=u.lexer.remaining()+g}o()}return{type:"JsdocTypeTemplateLiteral",literals:i,interpolations:n}}}),up=(e,t,i)=>i!==null||e.lexer.current.type!=="Identifier"||e.lexer.current.text!=="unique"||e.lexer.next.type!=="Identifier"||e.lexer.next.text!=="symbol"?null:(e.consume("Identifier"),e.consume("Identifier"),{type:"JsdocTypeUniqueSymbol"}),cp=[Fl,Ml,_t({allowedAdditionalTokens:Tr}),hs,gn,Bi,xn,gs({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),Wl],lp=[...fs,ys({allowKeyTypes:!1,objectFieldGrammar:cp,signatureGrammar:[Pi({allowVariadic:!0,allowOptional:!0,acceptParameterList:!0})]}),Gl,Ro,Ll,Ol,Vl,Bi,ds({allowWithoutParenthesis:!0,allowNoReturnType:!0,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Rl({allowQuestionMark:!1}),ms({allowEnclosingBrackets:!1,allowPostfix:!1}),Nl,Kl,up,_t({allowedAdditionalTokens:["event","external","in"]}),Lr({allowedTypes:["module"],pathGrammar:Gt}),Fr,Jl,jl,Rr({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:Gt}),Ul,ql,op,Pi({allowVariadic:!0,allowOptional:!0})],Pf=[Nr,Fr,_t({allowedAdditionalTokens:Tr})],pp=[Nr,Fr,_t({allowedAdditionalTokens:Tr}),Rr({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!0,pathGrammar:Gt})],Bf=[Lr({allowedTypes:["module"],pathGrammar:Gt}),...pp];function vs(e,t,{range:i=!1,rangeStart:n,loc:s=!1,locStart:o={column:0,line:1},module:u=!0,strictMode:c=!0,asyncFunctionBody:h=!0,classContext:g=!1,computedPropertyParser:y}={}){let A;switch(t){case"closure":A=new tr(Bl,ki.create(wo,e),void 0,{module:u,strictMode:c,asyncFunctionBody:h,classContext:g,range:i,rangeStart:n,loc:s,locStart:o});break;case"jsdoc":A=new tr(kl,ki.create(wo,e),void 0,{module:u,strictMode:c,asyncFunctionBody:h,classContext:g,range:i,rangeStart:n,loc:s,locStart:o});break;case"typescript":A=new tr(lp,ki.create(xs,e),void 0,{module:u,strictMode:c,asyncFunctionBody:h,classContext:g,range:i,rangeStart:n,loc:s,locStart:o,externalParsers:{computedPropertyParser:y}})}let v=A.parse();return _i(A,v)}function Uo(e,t=["typescript","closure","jsdoc"],{module:i=!0,strictMode:n=!0,asyncFunctionBody:s=!0,classContext:o=!1,computedPropertyParser:u,range:c,rangeStart:h,loc:g=!1,locStart:y={column:0,line:1}}={}){let A;for(let v of t)try{return vs(e,v,{module:i,strictMode:n,asyncFunctionBody:s,classContext:o,computedPropertyParser:u,range:c,rangeStart:h,loc:g,locStart:y})}catch(b){A=b}throw A}function qo(e,t){let i=e[t.type];if(i===void 0)throw new Error(`In this set of transform rules exists no rule for type ${t.type}.`);return i(t,n=>qo(e,n))}function dn(e,t,i){return e==="prefix"?i+t:t+i}function mn(e,t){switch(t){case"double":return`"${e}"`;case"single":return`'${e}'`;case void 0:return e}}function $o({computedPropertyStringifier:e}={}){return{JsdocTypeParenthesis:(t,i)=>`(${t.element!==void 0?i(t.element):""})`,JsdocTypeKeyof:(t,i)=>`keyof ${i(t.element)}`,JsdocTypeFunction:(t,i)=>{if(t.arrow){if(t.returnType===void 0)throw new Error("Arrow function needs a return type.");let n=`${t.typeParameters!==void 0?`<${t.typeParameters.map(i).join(`,${t.meta?.typeParameterSpacing??" "}`)}>${t.meta?.postGenericSpacing??""}`:""}(${t.parameters.map(i).join(`,${t.meta?.parameterSpacing??" "}`)})${t.meta?.preReturnMarkerSpacing??" "}=>${t.meta?.postReturnMarkerSpacing??" "}${i(t.returnType)}`;return t.constructor&&(n=`new ${n}`),n}else{let n=t.constructor?"new":"function";return t.parenthesis&&(n+=`(${t.parameters.map(i).join(`,${t.meta?.parameterSpacing??" "}`)})`,t.returnType!==void 0&&(n+=`${t.meta?.preReturnMarkerSpacing??""}:${t.meta?.postReturnMarkerSpacing??" "}${i(t.returnType)}`)),n}},JsdocTypeName:t=>t.value,JsdocTypeInfer:(t,i)=>`infer ${i(t.element)}`,JsdocTypeUniqueSymbol:()=>"unique symbol",JsdocTypeTuple:(t,i)=>`[${t.elements.map(i).join(`,${t.meta?.elementSpacing??" "}`)}]`,JsdocTypeVariadic:(t,i)=>t.meta.position===void 0?"...":dn(t.meta.position,i(t.element),"..."),JsdocTypeNamePath:(t,i)=>{let n=i(t.left),s=i(t.right);switch(t.pathType){case"inner":return`${n}~${s}`;case"instance":return`${n}#${s}`;case"property":return`${n}.${s}`;case"property-brackets":return`${n}[${s}]`}},JsdocTypeStringValue:t=>mn(t.value,t.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(t,i)=>{if(t.meta.brackets==="square"){let n=t.elements[0],s=i(n);return n.type==="JsdocTypeUnion"||n.type==="JsdocTypeIntersection"?`(${s})[]`:`${s}[]`}else return`${i(t.left)}${t.meta.dot?".":""}<${t.elements.map(i).join(`,${t.meta.elementSpacing??" "}`)}>`},JsdocTypeImport:(t,i)=>`import(${i(t.element)})`,JsdocTypeObjectField:(t,i)=>{let n="";t.readonly&&(n+="readonly ");let s=!1;return typeof t.key=="string"?n+=mn(t.key,t.meta.quote):(t.key.type==="JsdocTypeComputedMethod"&&(s=!0),n+=i(t.key)),n+=t.meta.postKeySpacing??"",!s&&t.optional&&(n+="?",n+=t.meta.postOptionalSpacing??""),t.right===void 0?n:`${n}:${t.meta.postColonSpacing??" "}${i(t.right)}`},JsdocTypeJsdocObjectField:(t,i)=>`${i(t.left)}: ${i(t.right)}`,JsdocTypeKeyValue:(t,i)=>{let n=t.key;return t.optional?n+=`${t.meta?.postKeySpacing??""}?${t.meta?.postOptionalSpacing??""}`:t.variadic?n=`...${t.meta?.postVariadicSpacing??""}${n}`:t.right!==void 0&&(n+=t.meta?.postKeySpacing??""),t.right===void 0?n:`${n}:${t.meta?.postColonSpacing??" "}${i(t.right)}`},JsdocTypeSpecialNamePath:t=>`${t.specialType}:${mn(t.value,t.meta.quote)}`,JsdocTypeNotNullable:(t,i)=>dn(t.meta.position,i(t.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(t,i)=>dn(t.meta.position,i(t.element),"?"),JsdocTypeNumber:t=>t.value.toString(),JsdocTypeBigInt:t=>`${t.value}n`,JsdocTypeObject:(t,i)=>{let n=(t.meta.separator??"").endsWith("linebreak"),s=t.meta.separator==="comma-and-linebreak"?`,
|
|
39
|
+
`:t.meta.separator==="semicolon-and-linebreak"?`;
|
|
40
|
+
`:t.meta.separator==="linebreak"?`
|
|
41
|
+
`:"",o=t.meta.separatorForSingleObjectField??!1,u=t.meta.trailingPunctuation??!1,c=t.meta.bracketSpacing??"";return`{${(n&&(o||t.elements.length>1)?`
|
|
42
|
+
${t.meta.propertyIndent??""}`:c)+t.elements.map(i).join(t.meta.separator==="comma"?", ":n?s+(t.meta.propertyIndent??""):"; ")+(o&&t.elements.length===1?t.meta.separator==="comma"?",":n?s:";":u&&t.meta.separator!==void 0?t.meta.separator.startsWith("comma")?",":t.meta.separator.startsWith("semicolon")?";":"":"")+(n&&t.elements.length>1?`
|
|
43
|
+
`:c)}}`},JsdocTypeOptional:(t,i)=>dn(t.meta.position,i(t.element),"="),JsdocTypeSymbol:(t,i)=>`${t.value}(${t.element!==void 0?i(t.element):""})`,JsdocTypeTypeof:(t,i)=>`typeof ${i(t.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(t,i)=>t.elements.map(i).join(t.meta?.spacing===void 0?" | ":`${t.meta.spacing}|${t.meta.spacing}`),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(t,i)=>t.elements.map(i).join(" & "),JsdocTypeProperty:t=>mn(t.value,t.meta.quote),JsdocTypePredicate:(t,i)=>`${i(t.left)} is ${i(t.right)}`,JsdocTypeIndexSignature:(t,i)=>`[${t.key}: ${i(t.right)}]`,JsdocTypeMappedType:(t,i)=>`[${t.key} in ${i(t.right)}]`,JsdocTypeAsserts:(t,i)=>`asserts ${i(t.left)} is ${i(t.right)}`,JsdocTypeReadonlyArray:(t,i)=>`readonly ${i(t.element)}`,JsdocTypeAssertsPlain:(t,i)=>`asserts ${i(t.element)}`,JsdocTypeConditional:(t,i)=>`${i(t.checksType)} extends ${i(t.extendsType)} ? ${i(t.trueType)} : ${i(t.falseType)}`,JsdocTypeTypeParameter:(t,i)=>`${i(t.name)}${t.constraint!==void 0?` extends ${i(t.constraint)}`:""}${t.defaultValue!==void 0?`${t.meta?.defaultValueSpacing??" "}=${t.meta?.defaultValueSpacing??" "}${i(t.defaultValue)}`:""}`,JsdocTypeCallSignature:(t,i)=>`${t.typeParameters!==void 0?`<${t.typeParameters.map(i).join(`,${t.meta?.typeParameterSpacing??" "}`)}>${t.meta?.postGenericSpacing??""}`:""}(${t.parameters.map(i).join(`,${t.meta?.parameterSpacing??" "}`)})${t.meta?.preReturnMarkerSpacing??""}:${t.meta?.postReturnMarkerSpacing??" "}${i(t.returnType)}`,JsdocTypeConstructorSignature:(t,i)=>`new${t.meta?.postNewSpacing??" "}${t.typeParameters!==void 0?`<${t.typeParameters.map(i).join(`,${t.meta?.typeParameterSpacing??" "}`)}>${t.meta?.postGenericSpacing??""}`:""}(${t.parameters.map(i).join(`,${t.meta?.parameterSpacing??" "}`)})${t.meta?.preReturnMarkerSpacing??""}:${t.meta?.postReturnMarkerSpacing??" "}${i(t.returnType)}`,JsdocTypeMethodSignature:(t,i)=>{let n=t.meta.quote==="double"?'"':t.meta.quote==="single"?"'":"";return`${n}${t.name}${n}${t.optional===!0?"?":""}${t.meta.postMethodNameSpacing??""}${t.typeParameters!==void 0?`<${t.typeParameters.map(i).join(`,${t.meta.typeParameterSpacing??" "}`)}>${t.meta.postGenericSpacing??""}`:""}(${t.parameters.map(i).join(`,${t.meta.parameterSpacing??" "}`)})${t.meta.preReturnMarkerSpacing??""}:${t.meta.postReturnMarkerSpacing??" "}${i(t.returnType)}`},JsdocTypeIndexedAccessIndex:(t,i)=>i(t.right),JsdocTypeTemplateLiteral:(t,i)=>`\`${t.literals.slice(0,-1).map((n,s)=>`${n.replace(new RegExp("`","gv"),"\\`")}\${${i(t.interpolations[s])}}`).join("")+t.literals.slice(-1)[0].replace(new RegExp("`","gv"),"\\`")}\``,JsdocTypeComputedProperty:(t,i)=>{if(t.value.type.startsWith("JsdocType"))return`[${i(t.value)}]`;if(e===void 0)throw new Error("Must have a computed property stringifier");return`[${e(t.value).replace(new RegExp(";$","v"),"")}]`},JsdocTypeComputedMethod:(t,i)=>{if(t.value.type.startsWith("JsdocType"))return`[${i(t.value)}]${t.optional?"?":""}${t.typeParameters!==void 0?`<${t.typeParameters.map(i).join(`,${t.meta?.typeParameterSpacing??" "}`)}>${t.meta?.postGenericSpacing??""}`:""}(${t.parameters.map(i).join(`,${t.meta?.parameterSpacing??" "}`)})${t.meta?.preReturnMarkerSpacing??""}:${t.meta?.postReturnMarkerSpacing??" "}${i(t.returnType)}`;if(e===void 0)throw new Error("Must have a computed property stringifier");return`[${e(t.value).replace(new RegExp(";$","v"),"")}](${t.parameters.map(i).join(`,${t.meta?.parameterSpacing??" "}`)})${t.meta?.preReturnMarkerSpacing??""}:${t.meta?.postReturnMarkerSpacing??" "}${i(t.returnType)}`}}}var hp=$o();function Cs(e,t=hp){return typeof t=="function"&&(t=$o({computedPropertyStringifier:t})),qo(t,e)}var As={JsdocTypeAny:[],JsdocTypeBigInt:[],JsdocTypeFunction:["typeParameters","parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:["element"],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeInfer:["element"],JsdocTypeUniqueSymbol:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["key","right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"],JsdocTypeAsserts:["left","right"],JsdocTypeReadonlyArray:["element"],JsdocTypeAssertsPlain:["element"],JsdocTypeConditional:["checksType","extendsType","trueType","falseType"],JsdocTypeTypeParameter:["name","constraint","defaultValue"],JsdocTypeCallSignature:["typeParameters","parameters","returnType"],JsdocTypeConstructorSignature:["typeParameters","parameters","returnType"],JsdocTypeMethodSignature:["typeParameters","parameters","returnType"],JsdocTypeIndexedAccessIndex:["right"],JsdocTypeTemplateLiteral:["interpolations"],JsdocTypeComputedProperty:["value"],JsdocTypeComputedMethod:["value","typeParameters","parameters","returnType"]};var Ss=Wn(Ds(),1);var Wo=(e,t)=>{if(t){let i=e[0];i.rawType=i.rawType.replace(new RegExp("^\\{","v"),"");let n=e.at(-1);n.rawType=n.rawType.replace(new RegExp("\\}$","v"),"");return}e.rawType=e.rawType.replace(new RegExp("^\\{","v"),"").replace(new RegExp("\\}$","v"),"")},Go=({text:e,tag:t,format:i,namepathOrURL:n})=>({text:e,tag:t,format:i,namepathOrURL:n,type:"JsdocInlineTag"}),Ko=(e,t="typescript",{spacing:i="compact",throwOnTypeParsingErrors:n=!1,jsdocTypePrattParserArgs:s}={})=>{let o=d=>{Wo(d),d.typeLines.length&&Wo(d.typeLines,!0),d.descriptionLines.length===1&&d.descriptionLines[0].description===""&&(d.descriptionLines.length=0);let F=null;try{F=vs(d.rawType,t,s)}catch(L){if(n&&d.rawType)throw L.message=`Tag @${d.tag} with raw type \`${d.rawType}\` had parsing error: ${L.message}`,L}d.parsedType=F},{source:u,inlineTags:c}=e,{tokens:{delimiter:h,lineEnd:g,postDelimiter:y,start:A,end:v}}=u[0],b=u.length-1,D={delimiter:h,delimiterLineBreak:`
|
|
44
|
+
`,description:"",descriptionLines:[],inlineTags:c.map(d=>Go(d)),initial:A,tags:[],terminal:v,preterminalLineBreak:`
|
|
45
|
+
`,hasPreterminalDescription:0,endLine:b,postDelimiter:y,lineEnd:g,type:"JsdocBlock"},T=[],J,w=null,_=!1,N=!0;return u.forEach((d,F)=>{let{tokens:L}=d,{delimiter:S,description:U,postDelimiter:K,start:k,tag:R,end:V,type:l}=L;if(!R&&U&&N&&(D.descriptionStartLine===void 0&&(D.descriptionStartLine=F),D.descriptionEndLine=F),R||V){if(N=!1,J===void 0&&(J=F),w&&o(w),V&&!R){D.terminal=V;let Oe=D.descriptionLines.length===0&&S==="/**";if(Oe&&(D.delimiterLineBreak=""),U){D.terminal==="*/"&&(D.preterminalLineBreak=""),w?D.hasPreterminalTagDescription=1:D.hasPreterminalDescription=1;let Je=w||D;Je.description+=(Je.description?`
|
|
46
|
+
`:"")+U,Je.descriptionLines.push({delimiter:Oe?"":S,description:U,postDelimiter:Oe?"":K,initial:k,type:"JsdocDescriptionLine"})}return}let{end:O,delimiter:ne,postDelimiter:H,start:Z,...ce}=L;if(!L.name){let Oe=1;for(;Object.hasOwn(u,F+Oe);){let{tokens:{name:Je,postName:st,postType:se,tag:de}}=u[F+Oe];if(de)break;if(Je){ce.postType=se,ce.name=Je,ce.postName=st;break}Oe++}}let we=e.tags[T.length].inlineTags.map(Oe=>Go(Oe)),Pe={...ce,initial:b?Z:"",postDelimiter:J?H:"",delimiter:J?ne:"",descriptionLines:[],inlineTags:we,parsedType:null,rawType:"",type:"JsdocTag",typeLines:[]};Pe.tag=Pe.tag.replace(new RegExp("^@","v"),""),w=Pe,_=!1,T.push(Pe)}if(l&&(w.typeLines.push(w.typeLines.length?{delimiter:S,postDelimiter:K,rawType:l,initial:k,type:"JsdocTypeLine"}:{delimiter:"",postDelimiter:"",rawType:l,initial:"",type:"JsdocTypeLine"}),w.rawType+=w.rawType?`
|
|
47
|
+
`+l:l),w||i==="compact"&&U||i==="preserve"&&(U||S!=="/**")){let O=w||D,ne=O.descriptionLines.length===0&&S==="/**";if(ne&&(D.delimiterLineBreak=""),_||=!!(w&&(l===""||l?.endsWith("}"))),w){if(_){let H=O.descriptionLines.length===0;(i==="preserve"||i==="compact"&&(U||H))&&O.descriptionLines.push({delimiter:H?"":S,description:U,postDelimiter:H?"":K,initial:H?"":k,type:"JsdocDescriptionLine"})}}else O.descriptionLines.push({delimiter:ne?"":S,description:U,postDelimiter:ne?"":K,initial:ne?"":k,type:"JsdocDescriptionLine"});R||(w?_&&!(i==="compact"&&U===""&&O.description)&&(O.description+=O.description?`
|
|
48
|
+
`+U:U):O.description+=O.description?`
|
|
49
|
+
`+U:U)}!V||!R||(D.terminal=V,D.hasPreterminalTagDescription=1,D.terminal==="*/"&&(D.preterminalLineBreak=""),o(w))}),D.lastDescriptionLine=J,D.tags=T,D},zo={JsdocBlock:["descriptionLines","tags","inlineTags"],JsdocDescriptionLine:[],JsdocTypeLine:[],JsdocTag:["parsedType","typeLines","descriptionLines","inlineTags"],JsdocInlineTag:[]};var ws=(e,t)=>(i,n)=>{let{mode:s}=e,o=Ss.default.parse(i),c=Ko(n,s,t);return Ss.default.matches(c,o,void 0,{visitorKeys:{...As,...zo}})};function fp(e){return e==="prefix"?"]":"}"}function Ho(e,t){let i=fp(t),n="",s=0;for(;s<e.length;){let o=e[s];if(o==="\\"){let u=e[s+1];if(u==="\\"||u===i){n+=u,s+=2;continue}}n+=o,s++}return n}var dp=e=>["Line","Block","Shebang"].includes(e.type),mp=e=>e?.declaration?.decorators?.[0]||e?.decorators?.[0]||e?.parent?.decorators?.[0],yp=function(e){return["ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ExportSpecifier"].includes(e.type)},gp=function(e){let{parent:t}=e;if(!t)return e;let i=t.parent;if(!i)return e;if(t.type!=="TSTypeAnnotation")return t.type==="TSTypeAliasDeclaration"&&i.type==="ExportNamedDeclaration"?i:e;let n=i.parent,s=n&&n.parent;switch(i.type){case"PropertyDefinition":case"ClassProperty":case"TSDeclareFunction":case"TSMethodSignature":case"TSPropertySignature":return i;case"ArrowFunctionExpression":return n&&n.type==="VariableDeclarator"?!s||!s.parent?e:s.parent:e;case"FunctionExpression":if(!s)return e;if(n.type==="MethodDefinition")return n;default:if(i.type!=="Identifier")return e}if(!s)return e;switch(n.type){case"ArrowFunctionExpression":return s.type==="VariableDeclarator"&&s.parent.type==="VariableDeclaration"?s.parent:e;case"FunctionDeclaration":return n;case"VariableDeclarator":if(s.type==="VariableDeclaration")return s;default:return e}},xp=new Set(["CallExpression","OptionalCallExpression","NewExpression"]),vp=new Set(["AssignmentPattern","VariableDeclaration","ExpressionStatement","MethodDefinition","Property","ObjectProperty","ClassProperty","PropertyDefinition","ExportDefaultDeclaration","ReturnStatement"]),Cp=function(e,t,i){let n=e,{parent:s}=n;switch(n.type){case"TSFunctionType":return gp(n);case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"ClassDeclaration":case"FunctionDeclaration":return s&&yp(s)?s:n;case"TSDeclareFunction":case"ClassExpression":case"ObjectExpression":case"ArrowFunctionExpression":case"TSEmptyBodyFunctionExpression":case"FunctionExpression":if(!s)return n;if(!xp.has(s.type)||i?.skipInvokedExpressionsForCommentFinding){let o=n;do o=t.getTokenBefore(o,{includeComments:!0});while(o&&o.type==="Punctuator"&&o.value==="(");if(o&&o.type==="Block"||t.getCommentsBefore(n).length)return n;for(;!t.getCommentsBefore(s).length&&!new RegExp("Function","v").test(s.type)&&!vp.has(s.type)&&({parent:s}=s,!!s););if(s&&s.type!=="FunctionDeclaration"&&s.type!=="Program")return s.parent&&s.parent.type==="ExportNamedDeclaration"?s.parent:s}return n;default:return n}},Ap=(e,t,i,n={})=>{let{nonJSDoc:s}=n,{minLines:o,maxLines:u}=i,c=e,h=null,g=null;for(;c;){let y=mp(c);if(y&&(c=y),h=t.getTokenBefore(c,{includeComments:!0}),h&&h.type==="Punctuator"&&h.value==="("&&(g=h,[h]=t.getTokensBefore(c,{count:2,includeComments:!0})),!h||!dp(h))return null;if(!s&&h.type==="Line"){c=h;continue}break}return!h||!c.loc||!h.loc?null:(s&&(h.type!=="Block"||!new RegExp("^\\*\\s","v").test(h.value))||!s&&h.type==="Block"&&new RegExp("^\\*\\s","v").test(h.value))&&c.loc.start.line-(g??h).loc.end.line>=o&&c.loc.start.line-(g??h).loc.end.line<=u?h:null},Ni=new Set(["MethodDefinition","TSAbstractMethodDefinition"]),Qo=e=>{if(e&&(e.type==="BlockStatement"||e.type==="Program"||e.type==="StaticBlock"||e.type==="TSModuleBlock"))return e.body},Xo=e=>{if(!Ni.has(e.type))return null;let t=e;return t.computed||!t.kind||!["method","constructor"].includes(t.kind)||!t.key?.name?null:{bodyless:e.type==="TSAbstractMethodDefinition"||t.value?.type==="TSEmptyBodyFunctionExpression",kind:t.kind,name:t.key.name,static:!!t.static}},bp=(e,t)=>{let i=Xo(e),n=Xo(t);return!!(i&&n?.bodyless&&n.name===i.name&&n.kind===i.kind&&n.static===i.static)},Ep=e=>{if(e.type==="TSDeclareFunction"||e.type==="FunctionDeclaration")return e.id?.name;if(e.type==="ExportNamedDeclaration"){let{declaration:t}=e;if(t?.type==="FunctionDeclaration"||t?.type==="TSDeclareFunction")return t.id?.name}if(Ni.has(e.type)){let t=e;if(!t.computed)return t.key?.name}},Dp=e=>{if(e.type==="TSDeclareFunction")return e.id?.name;if(e.type==="ExportNamedDeclaration"){let{declaration:t}=e;if(t?.type==="TSDeclareFunction")return t.id?.name}if(Ni.has(e.type)){let t=e;if(!t.computed)return t.key?.name}},Sp=e=>{let{parent:t}=e,i=e,n;if(Ni.has(e.type)&&t?.type==="ClassBody"?n=t.body:t?.type==="ExportNamedDeclaration"?(i=t,n=Qo(t.parent)):n=Qo(t),!n)return null;let s=n.indexOf(i);return s>0?n[s-1]:null},Ri=function(e,t,i,n={}){let s=Cp(t,e,i),o=Ap(s,e,i);if(!o&&n.checkOverloads){let u=Ep(s),c=Sp(s);if(c&&u&&Dp(c)===u&&(!Ni.has(s.type)||bp(s,c)))return Ri(e,c,i,n)}return o};var rr;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(rr||(rr={}));function Ts(e){return/^\s+$/.test(e)}function Yo(e){let t=e.match(/\r+$/);return t==null?["",e]:[e.slice(-t[0].length),e.slice(0,-t[0].length)]}function dr(e){let t=e.match(/^\s+/);return t==null?["",e]:[e.slice(0,t[0].length),e.slice(t[0].length)]}function Zo(e){return e.split(/\n/)}function eu(e={}){return Object.assign({description:"",tags:[],source:[],problems:[]},e)}function tu(e={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},e)}function vn(e={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},e)}function Li(e){let t=e.source.reduce((i,n)=>i.set(n.number,n),new Map);for(let i of e.tags)i.source=i.source.map(n=>t.get(n.number));return e}function ru(e){let t=e.tags.reduce((i,n)=>n.source.reduce((s,o)=>s.set(o.number,o),i),new Map);return e.source=e.source.map(i=>t.get(i.number)||i),e}var wp=/^@[^\s/]+(?=\s|$)/;function Fs({fence:e="```"}={}){let t=Tp(e),i=(n,s)=>t(n)?!s:s;return function(s){let o=[[]],u=!1;for(let c of s)wp.test(c.tokens.description)&&!u?o.push([c]):o[o.length-1].push(c),u=i(c.tokens.description,u);return o}}function Tp(e){return typeof e=="string"?t=>t.split(e).length%2===0:e}function ks({startLine:e=0,markers:t=rr}={}){let i=null,n=e;return function(o){let u=o,c=vn();if([c.lineEnd,u]=Yo(u),[c.start,u]=dr(u),i===null&&u.startsWith(t.start)&&!u.startsWith(t.nostart)&&(i=[],c.delimiter=u.slice(0,t.start.length),u=u.slice(t.start.length),[c.postDelimiter,u]=dr(u)),i===null)return n++,null;let h=u.trimEnd().endsWith(t.end);if(c.delimiter===""&&u.startsWith(t.delim)&&!u.startsWith(t.end)&&(c.delimiter=t.delim,u=u.slice(t.delim.length),[c.postDelimiter,u]=dr(u)),h){let g=u.trimEnd();c.end=u.slice(g.length-t.end.length),u=g.slice(0,-t.end.length)}if(c.description=u,i.push({number:n,source:o,tokens:c}),n++,h){let g=i.slice();return i=null,g}return null}}function _s({tokenizers:e}){return function(i){var n;let s=tu({source:i});for(let o of e)if(s=o(s),!((n=s.problems[s.problems.length-1])===null||n===void 0)&&n.critical)break;return s}}function Oi(){return e=>{let{tokens:t}=e.source[0],i=t.description.match(/\s*(@(\S+))(\s*)/);return i===null?(e.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:e.source[0].number,critical:!0}),e):(i[1].includes("/")||(t.tag=i[1],t.postTag=i[3],t.description=t.description.slice(i[0].length),e.tag=i[2]),e)}}function Vi(e="compact"){let t=kp(e);return i=>{let n=0,s=[],o=!1,u=!0;for(let{tokens:g}of i.source.values()){let y="";if(!o&&g.description.trim())o=!0;else if(!o)continue;if(u&&g.description[0]!=="{")return i;u=!1;for(let A of g.description)if(A==="{"&&n++,A==="}"&&n--,y+=A,n===0)break;if(s.push([g,y]),n===0)break}if(!o)return i;if(n!==0)return i.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:i.source[0].number,critical:!0}),i;let c=[],h=s[0][0].postDelimiter.length;for(let[g,[y,A]]of s.entries())y.type=A,g>0&&(y.type=y.postDelimiter.slice(h)+A,y.postDelimiter=y.postDelimiter.slice(0,h)),[y.postType,y.description]=dr(y.description.slice(A.length)),c.push(y.type);return c[0]=c[0].slice(1),c[c.length-1]=c[c.length-1].slice(0,-1),i.type=t(c),i}}var Fp=e=>e.trim();function kp(e){return e==="compact"?t=>t.map(Fp).join(""):e==="preserve"?t=>t.join(`
|
|
50
|
+
`):e}var iu=e=>e&&e.startsWith('"')&&e.endsWith('"');function Mi(){let e=(t,{tokens:i},n)=>i.type===""?t:n;return t=>{let i=t.source.reduce(e,0),n;if(t.type)do{if({tokens:n}=t.source[i],n.description.trim())break;i++}while(t.source[i]);else({tokens:n}=t.source[i]);let s=n.description.trimStart(),o=s.split('"');if(o.length>1&&o[0]===""&&o.length%2===1)return t.name=o[1],n.name=`"${o[1]}"`,[n.postName,n.description]=dr(s.slice(n.name.length)),t;let u=0,c="",h=!1,g;for(let A of s){if(u===0&&Ts(A))break;A==="["&&u++,A==="]"&&u--,c+=A}if(u!==0)return t.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:t.source[0].number,critical:!0}),t;let y=c;if(c[0]==="["&&c[c.length-1]==="]"){h=!0,c=c.slice(1,-1);let A=c.split("=");if(c=A[0].trim(),A[1]!==void 0&&(g=A.slice(1).join("=").trim()),c==="")return t.problems.push({code:"spec:name:empty-name",message:"empty name",line:t.source[0].number,critical:!0}),t;if(g==="")return t.problems.push({code:"spec:name:empty-default",message:"empty default value",line:t.source[0].number,critical:!0}),t;if(!iu(g)&&/=(?!>)/.test(g||""))return t.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:t.source[0].number,critical:!0}),t}if(!h){let A=c.search(/=(?!>)/);if(A!==-1){let v=c.slice(0,A).trim(),b=c.slice(A+1).trim();if(v==="")return t.problems.push({code:"spec:name:empty-name",message:"empty name",line:t.source[0].number,critical:!0}),t;if(b==="")return t.problems.push({code:"spec:name:empty-default",message:"empty default value",line:t.source[0].number,critical:!0}),t;if(/^[\p{ID_Start}$_\.][\p{ID_Continue}$_\u200c\u200d\.]*=/u.test(c)){if(!iu(b)&&/=(?!>)/.test(b))return t.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:t.source[0].number,critical:!0}),t;c=v,g=b}}}return t.optional=h,t.name=c,n.name=y,g!==void 0&&(t.default=g),[n.postName,n.description]=dr(s.slice(n.name.length)),t}}function Ji(e="compact",t=rr){let i=Ps(e);return n=>(n.description=i(n.source,t),n)}function Ps(e){return e==="compact"?_p:e==="preserve"?Ip:e}function _p(e,t=rr){return e.map(({tokens:{description:i}})=>i.trim()).filter(i=>i!=="").join(" ")}var Pp=(e,{tokens:t},i)=>t.type===""?e:i,Bp=({tokens:e})=>(e.delimiter===""?e.start:e.postDelimiter.slice(1))+e.description;function Ip(e,t=rr){if(e.length===0)return"";e[0].tokens.description===""&&e[0].tokens.delimiter===t.start&&(e=e.slice(1));let i=e[e.length-1];return i!==void 0&&i.tokens.description===""&&i.tokens.end.endsWith(t.end)&&(e=e.slice(0,-1)),e=e.slice(e.reduce(Pp,0)),e.map(Bp).join(`
|
|
51
|
+
`)}function Bs({startLine:e=0,fence:t="```",spacing:i="compact",markers:n=rr,tokenizers:s=[Oi(),Vi(i),Mi(),Ji(i)]}={}){if(e<0||e%1>0)throw new Error("Invalid startLine");let o=ks({startLine:e,markers:n}),u=Fs({fence:t}),c=_s({tokenizers:s}),h=Ps(i);return function(g){let y=[];for(let A of Zo(g)){let v=o(A);if(v===null)continue;let b=u(v),D=b.slice(1).map(c);y.push({description:h(b[0],n),tags:D,source:v,problems:D.reduce((T,J)=>T.concat(J.problems),[])})}return y}}function Np(e){return e.start+e.delimiter+e.postDelimiter+e.tag+e.postTag+e.type+e.postType+e.name+e.postName+e.description+e.end+e.lineEnd}function Is(){return e=>e.source.map(({tokens:t})=>Np(t)).join(`
|
|
52
|
+
`)}var Rp={line:0,start:0,delimiter:0,postDelimiter:0,tag:0,postTag:0,name:0,postName:0,type:0,postType:0,description:0,end:0,lineEnd:0};var T0=Object.keys(Rp);function Ns(e,t={}){return Bs(t)(e)}var nu=Is();var su={tag:Oi,type:Vi,name:Mi,description:Ji},au={rewireSpecs:ru,rewireSource:Li,seedBlock:eu,seedTokens:vn};function Lp(e){let{separator:t,text:i}=e.groups,[,n]=e.indices.groups.text,[s]=e.indices.groups.tag;return i?t==="|"?"pipe":n<s?"prefix":"space":"plain"}function ou(e){let t=[],i=new RegExp("(?:\\[(?<text>(?:[^\\\\\\]]|\\\\[\\s\\S])+)\\])\\{@(?<tag>[^\\}\\s]+)\\s?(?<namepathOrURL>[^\\}\\s\\|]*)\\}","gvd"),n=new RegExp("(?<!\\])\\{@(?<tag>[^\\}\\s]+)\\s?(?<namepathOrURL>[^\\}\\s\\|]*)\\s*(?<separator>[\\s\\|])?\\s*(?<text>(?:[^\\\\\\}]|\\\\[\\s\\S])*)\\}","gvd"),s=[...e.matchAll(i),...e.matchAll(n)];for(let o of s){let u=o,{tag:c,namepathOrURL:h,text:g}=u.groups,[y,A]=u.indices[0],v=Lp(u),b=Ho(g,v);t.push({tag:c,namepathOrURL:h,text:b,format:v,start:y,end:A})}return t}function uu(e){let t=ou(e.description);e.inlineTags=t;for(let i of e.tags)i.inlineTags=ou(i.description);return e}var{name:Op,tag:Vp,type:Mp,description:Jp}=su,jp=e=>e.tag==="see"&&new RegExp("\\{@link.+?\\}","v").test(e.source[0].source),Up=["default","defaultvalue","description","example","file","fileoverview","license","overview","see","summary"],qp=["access","author","default","defaultvalue","description","example","exception","file","fileoverview","kind","license","overview","return","returns","since","summary","throws","version","variation"],$p=new RegExp("^\\[(?<name>[^=]*)=[^\\]]*\\]","v"),Wp=Mp("preserve"),Gp=Jp("preserve"),Kp=Op(),cu=({noTypes:e=Up,noNames:t=qp}={})=>[Vp(),i=>e.includes(i.tag)?i:Wp(i),i=>{if(i.tag==="template"){let n=i.source[0].tokens.description,s;if(n.startsWith("[")&&n.includes("]")){let A=n.lastIndexOf("]");s=n.slice(A).search(new RegExp("(?<![\\s,])\\s","v")),s>-1&&(s+=A)}else s=n.search(new RegExp("(?<![\\s,])\\s","v"));let o=s===-1?n:n.slice(0,s),u=n.slice(s),c="",h="",g="";s>-1&&([,c,h,g]=u.match(new RegExp("(\\s*)([^\\r]*)(\\r)?","v"))),i.optional=$p.test(o),i.name=o;let{tokens:y}=i.source[0];return y.name=o,y.postName=c,y.description=h,y.lineEnd=g||"",i}return t.includes(i.tag)||jp(i)?i:Kp(i)},i=>Gp(i)],si=(e,t="")=>{let i;switch(typeof e){case"string":i=Ns(`${t}${e}`,{tokenizers:cu()});break;case"object":if(e===null)throw new TypeError("'commentOrNode' is not a string or object.");i=Ns(`${t}/*${e.value}*/`,{tokenizers:cu()});break;default:throw new TypeError("'commentOrNode' is not a string or object.")}if(!i.length)throw new Error("There were no results for comment parsing");let[n]=i;return uu(n)};var zp=[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,31,4,33,15,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,199,7,137,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,55,9,7,0,259,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,481,1,61,4,4,5,9,7,3,6,31,3,149,2,12,2,9,1,3,0,33,1,1357,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,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],mu=[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,13,65,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,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,5,18,21,18,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,18,0,182,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,24,43,22,0,239,18,16,0,2,12,2,33,125,0,80,921,103,111,6,206,13,310,2314,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,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7386,37,33,96,114,14,913,15,50,7710,3,2,6,2,1,2,296,10,0,30,2,3,0,15,4,8,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,340,2,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,129,15,6,55,50,49,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,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,4382,2,5773,3,7472,16,621,2467,541,1507,4938,6,8489,39815,11327],Hp="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7-\u05C9\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B53-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1AF0\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",yu="\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\u0558\u0559\u0560-\u0588\u058B\u058C\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u208F-\u209F\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DD\uA7E2\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB6C\uAB6D\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",Rs={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"},Ls="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",Qp={5:Ls,"5module":Ls+" export import",6:Ls+" const class extends export import super"},gu=/^in(stanceof)?$/,Xp=new RegExp("["+yu+"]"),Yp=new RegExp("["+yu+Hp+"]");function Vs(e,t){for(var i=65536,n=0;n<t.length;n+=2){if(i+=t[n],i>e)return!1;if(i+=t[n+1],i>=e)return!0}return!1}function ur(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Xp.test(String.fromCharCode(e)):t===!1?!1:Vs(e,mu)}function mr(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Yp.test(String.fromCharCode(e)):t===!1?!1:Vs(e,mu)||Vs(e,zp)}var je=function(t,i){i===void 0&&(i={}),this.label=t,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function Kt(e,t){return new je(e,{beforeExpr:!0,binop:t})}var zt={beforeExpr:!0},Lt={startsExpr:!0},Us={};function Le(e,t){return t===void 0&&(t={}),t.keyword=e,Us[e]=new je(e,t)}var x={num:new je("num",Lt),regexp:new je("regexp",Lt),string:new je("string",Lt),name:new je("name",Lt),privateId:new je("privateId",Lt),eof:new je("eof"),bracketL:new je("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new je("]"),braceL:new je("{",{beforeExpr:!0,startsExpr:!0}),braceR:new je("}"),parenL:new je("(",{beforeExpr:!0,startsExpr:!0}),parenR:new je(")"),comma:new je(",",zt),semi:new je(";",zt),colon:new je(":",zt),dot:new je("."),question:new je("?",zt),questionDot:new je("?."),arrow:new je("=>",zt),template:new je("template"),invalidTemplate:new je("invalidTemplate"),ellipsis:new je("...",zt),backQuote:new je("`",Lt),dollarBraceL:new je("${",{beforeExpr:!0,startsExpr:!0}),eq:new je("=",{beforeExpr:!0,isAssign:!0}),assign:new je("_=",{beforeExpr:!0,isAssign:!0}),incDec:new je("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new je("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Kt("||",1),logicalAND:Kt("&&",2),bitwiseOR:Kt("|",3),bitwiseXOR:Kt("^",4),bitwiseAND:Kt("&",5),equality:Kt("==/!=/===/!==",6),relational:Kt("</>/<=/>=",7),bitShift:Kt("<</>>/>>>",8),plusMin:new je("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Kt("%",10),star:Kt("*",10),slash:Kt("/",10),starstar:new je("**",{beforeExpr:!0}),coalesce:Kt("??",1),_break:Le("break"),_case:Le("case",zt),_catch:Le("catch"),_continue:Le("continue"),_debugger:Le("debugger"),_default:Le("default",zt),_do:Le("do",{isLoop:!0,beforeExpr:!0}),_else:Le("else",zt),_finally:Le("finally"),_for:Le("for",{isLoop:!0}),_function:Le("function",Lt),_if:Le("if"),_return:Le("return",zt),_switch:Le("switch"),_throw:Le("throw",zt),_try:Le("try"),_var:Le("var"),_const:Le("const"),_while:Le("while",{isLoop:!0}),_with:Le("with"),_new:Le("new",{beforeExpr:!0,startsExpr:!0}),_this:Le("this",Lt),_super:Le("super",Lt),_class:Le("class",Lt),_extends:Le("extends",zt),_export:Le("export"),_import:Le("import",Lt),_null:Le("null",Lt),_true:Le("true",Lt),_false:Le("false",Lt),_in:Le("in",{beforeExpr:!0,binop:7}),_instanceof:Le("instanceof",{beforeExpr:!0,binop:7}),_typeof:Le("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Le("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Le("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Ot=/\r\n?|\n|\u2028|\u2029/,Zp=new RegExp(Ot.source,"g");function ai(e){return e===10||e===13||e===8232||e===8233}function xu(e,t,i){i===void 0&&(i=e.length);for(var n=t;n<i;n++){var s=e.charCodeAt(n);if(ai(s))return n<i-1&&s===13&&e.charCodeAt(n+1)===10?n+2:n+1}return-1}var vu=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,dt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Cu=Object.prototype,eh=Cu.hasOwnProperty,th=Cu.toString,oi=Object.hasOwn||(function(e,t){return eh.call(e,t)}),lu=Array.isArray||(function(e){return th.call(e)==="[object Array]"}),pu=Object.create(null);function kr(e){return pu[e]||(pu[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function yr(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var rh=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ui=function(t,i){this.line=t,this.column=i};Ui.prototype.offset=function(t){return new Ui(this.line,this.column+t)};var Sn=function(t,i,n){this.start=i,this.end=n,t.sourceFile!==null&&(this.source=t.sourceFile)};function Au(e,t){for(var i=1,n=0;;){var s=xu(e,n,t);if(s<0)return new Ui(i,t-n);++i,n=s}}var Ms={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,startLocation:null,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},hu=!1;function ih(e){var t={};for(var i in Ms)t[i]=e&&oi(e,i)?e[i]:Ms[i];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!hu&&typeof console=="object"&&console.warn&&(hu=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
53
|
+
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),lu(t.onToken)){var n=t.onToken;t.onToken=function(s){return n.push(s)}}if(lu(t.onComment)&&(t.onComment=nh(t,t.onComment)),t.sourceType==="commonjs"&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}function nh(e,t){return function(i,n,s,o,u,c){var h={type:i?"Block":"Line",value:n,start:s,end:o};e.locations&&(h.loc=new Sn(this,u,c)),e.ranges&&(h.range=[s,o]),t.push(h)}}var Or=1,Vr=2,qs=4,bu=8,$s=16,Eu=32,wn=64,Du=128,Mr=256,qi=512,Su=1024,Tn=Or|Vr|Mr;function Ws(e,t){return Vr|(e?qs:0)|(t?bu:0)}var An=0,Gs=1,xr=2,wu=3,Tu=4,Fu=5,lt=function(t,i,n){this.options=t=ih(t),this.sourceFile=t.sourceFile,this.keywords=kr(Qp[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var s="";t.allowReserved!==!0&&(s=Rs[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(s+=" await")),this.reservedWords=kr(s);var o=(s?s+" ":"")+Rs.strict;this.reservedWordsStrict=kr(o),this.reservedWordsStrictBind=kr(o+" "+Rs.strictBind),this.input=String(i),this.containsEsc=!1,this.pos=n||0,this.curLine=1,t.startLocation?(this.lineStart=this.pos-t.startLocation.column,this.curLine=t.startLocation.line):n?(this.lineStart=this.input.lastIndexOf(`
|
|
54
|
+
`,n-1)+1,this.options.locations&&(this.curLine=this.input.slice(0,this.lineStart).split(Ot).length)):this.lineStart=0,this.type=x.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=t.sourceType==="module",this.strict=this.inModule||t.strict===!0||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&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?Vr:Or),this.regexpState=null,this.privateNameStack=[]},Qt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};lt.prototype.parse=function(){var t=this,i=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return t.parseTopLevel(i)})};Qt.inFunction.get=function(){return(this.currentVarScope().flags&Vr)>0};Qt.inGenerator.get=function(){return(this.currentVarScope().flags&bu)>0};Qt.inAsync.get=function(){return(this.currentVarScope().flags&qs)>0};Qt.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],i=t.flags;if(i&(Mr|qi))return!1;if(i&Vr)return(i&qs)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Qt.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&Or)};Qt.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&wn)>0||this.options.allowSuperOutsideMethod};Qt.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Du)>0};Qt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Qt.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],i=t.flags;if(i&(Mr|qi)||i&Vr&&!(i&$s))return!0}return!1};Qt.allowUsing.get=function(){var e=this.currentScope(),t=e.flags;return!(t&Su||!this.inModule&&t&Or)};Qt.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Mr)>0};lt.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var n=this,s=0;s<t.length;s++)n=t[s](n);return n};lt.parse=function(t,i){return new this(i,t).parse()};lt.parseExpressionAt=function(t,i,n){var s=new this(n,t,i);return s.nextToken(),s.parseExpression()};lt.tokenizer=function(t,i){return new this(i,t)};Object.defineProperties(lt.prototype,Qt);var wt=lt.prototype,sh=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;wt.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){dt.lastIndex=e,e+=dt.exec(this.input)[0].length;var t=sh.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){dt.lastIndex=e+t[0].length;var i=dt.exec(this.input),n=i.index+i[0].length,s=this.input.charAt(n);return s===";"||s==="}"||Ot.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(s)||s==="!"&&this.input.charAt(n+1)==="="||s==="i"&&ah(this,n))}e+=t[0].length,dt.lastIndex=e,e+=dt.exec(this.input)[0].length,this.input[e]===";"&&e++}};function ah(e,t){for(var i=t+1,n=Math.min(e.input.length,t+11);i<n;){var s=e.fullCharCodeAt(i);if(!mr(s,!0))break;i+=s<=65535?1:2}return i===t+2&&e.input.slice(t,i)==="in"||i===t+10&&e.input.slice(t,i)==="instanceof"}wt.eat=function(e){return this.type===e?(this.next(),!0):!1};wt.isContextual=function(e){return this.type===x.name&&this.value===e&&!this.containsEsc};wt.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};wt.catchStackOverflow=function(e){try{return e()}catch(t){if(t instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(t.message)||/\btoo much recursion\b/i.test(t.message)))this.raise(this.start,"Not enough stack space to parse input");else throw t}};wt.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};wt.canInsertSemicolon=function(){return this.type===x.eof||this.type===x.braceR||Ot.test(this.input.slice(this.lastTokEnd,this.start))};wt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};wt.semicolon=function(){!this.eat(x.semi)&&!this.insertSemicolon()&&this.unexpected()};wt.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};wt.expect=function(e){this.eat(e)||this.unexpected()};wt.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Fn=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};wt.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}};wt.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,n=e.doubleProto;if(!t)return i>=0||n>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")};wt.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")};wt.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var fe=lt.prototype;fe.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==x.eof;){var i=this.parseStatement(null,!0,t);e.body.push(i)}if(this.inModule)for(var n=0,s=Object.keys(this.undefinedExports);n<s.length;n+=1){var o=s[n];this.raiseRecoverable(this.undefinedExports[o].start,"Export '"+o+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var Ks={kind:"loop"},oh={kind:"switch"};fe.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;dt.lastIndex=this.pos;var t=dt.exec(this.input),i=this.pos+t[0].length,n=this.fullCharCodeAt(i);if(n===91||n===92)return!0;if(e)return!1;if(n===123)return!0;if(ur(n)){var s=i;do i+=n<=65535?1:2;while(mr(n=this.fullCharCodeAt(i)));if(n===92)return!0;var o=this.input.slice(s,i);if(!gu.test(o))return!0}return!1};fe.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;dt.lastIndex=this.pos;var e=dt.exec(this.input),t=this.pos+e[0].length,i;return!Ot.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(mr(i=this.fullCharCodeAt(t+8))||i===92))};fe.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;dt.lastIndex=this.pos;var i=dt.exec(this.input),n=this.pos+i[0].length;if(Ot.test(this.input.slice(this.pos,n)))return!1;if(e){var s=n+5,o;if(this.input.slice(n,s)!=="using"||s===this.input.length||mr(o=this.fullCharCodeAt(s))||o===92)return!1;dt.lastIndex=s;var u=dt.exec(this.input);if(n=s+u[0].length,u&&Ot.test(this.input.slice(s,n)))return!1}var c=this.fullCharCodeAt(n);if(!ur(c)&&c!==92)return!1;var h=n;do n+=c<=65535?1:2;while(mr(c=this.fullCharCodeAt(n)));if(c===92)return!0;var g=this.input.slice(h,n);if(gu.test(g))return!1;if(t&&!e&&g==="of"){dt.lastIndex=n;var y=dt.exec(this.input);if(n=n+y[0].length,this.input.charCodeAt(n)!==61||(c=this.input.charCodeAt(n+1))===61||c===62)return!1}return!0};fe.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};fe.isUsing=function(e){return this.isUsingKeyword(!1,e)};fe.parseStatement=function(e,t,i){var n=this.type,s=this.startNode(),o;switch(this.isLet(e)&&(n=x._var,o="let"),n){case x._break:case x._continue:return this.parseBreakContinueStatement(s,n.keyword);case x._debugger:return this.parseDebuggerStatement(s);case x._do:return this.parseDoStatement(s);case x._for:return this.parseForStatement(s);case x._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case x._class:return e&&this.unexpected(),this.parseClass(s,!0);case x._if:return this.parseIfStatement(s);case x._return:return this.parseReturnStatement(s);case x._switch:return this.parseSwitchStatement(s);case x._throw:return this.parseThrowStatement(s);case x._try:return this.parseTryStatement(s);case x._const:case x._var:return o=o||this.value,e&&o!=="var"&&this.unexpected(),this.parseVarStatement(s,o);case x._while:return this.parseWhileStatement(s);case x._with:return this.parseWithStatement(s);case x.braceL:return this.parseBlock(!0,s);case x.semi:return this.parseEmptyStatement(s);case x._export:case x._import:if(this.options.ecmaVersion>10&&n===x._import){dt.lastIndex=this.pos;var u=dt.exec(this.input),c=this.pos+u[0].length,h=this.input.charCodeAt(c);if(h===40||h===46)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||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'")),n===x._import?this.parseImport(s):this.parseExport(s,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var g=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(g)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),e&&this.raise(this.start,"Using declaration is not allowed in single-statement positions"),g==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(s,!1,g),this.semicolon(),this.finishNode(s,"VariableDeclaration");var y=this.value,A=this.parseExpression();return n===x.name&&A.type==="Identifier"&&this.eat(x.colon)?this.parseLabeledStatement(s,y,A,e):this.parseExpressionStatement(s,A)}};fe.parseBreakContinueStatement=function(e,t){var i=t==="break";this.next(),this.eat(x.semi)||this.insertSemicolon()?e.label=null:this.type!==x.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var s=this.labels[n];if((e.label==null||s.name===e.label.name)&&(s.kind!=null&&(i||s.kind==="loop")||e.label&&i))break}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,i?"BreakStatement":"ContinueStatement")};fe.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};fe.parseDoStatement=function(e){return this.next(),this.labels.push(Ks),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(x._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(x.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};fe.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ks),this.enterScope(0),this.expect(x.parenL),this.type===x.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===x._var||this.type===x._const||i){var n=this.startNode(),s=i?"let":this.value;return this.next(),this.parseVar(n,!0,s),this.finishNode(n,"VariableDeclaration"),this.parseForAfterInit(e,n,t)}var o=this.isContextual("let"),u=!1,c=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(c){var h=this.startNode();return this.next(),c==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(h,!0,c),this.finishNode(h,"VariableDeclaration"),this.parseForAfterInit(e,h,t)}var g=this.containsEsc,y=new Fn,A=this.start,v=t>-1?this.parseExprSubscripts(y,"await"):this.parseExpression(!0,y);return this.type===x._in||(u=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===x._in&&this.unexpected(t),e.await=!0):u&&this.options.ecmaVersion>=8&&(v.start===A&&!g&&v.type==="Identifier"&&v.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),o&&u&&this.raise(v.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(v,!1,y),this.checkLValPattern(v),this.parseForIn(e,v)):(this.checkExpressionErrors(y,!0),t>-1&&this.unexpected(t),this.parseFor(e,v))};fe.parseForAfterInit=function(e,t,i){return(this.type===x._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.type===x._in?((t.kind==="using"||t.kind==="await using")&&!t.declarations[0].init&&this.raise(this.start,"Using declaration is not allowed in for-in loops"),this.options.ecmaVersion>=9&&i>-1&&this.unexpected(i)):this.options.ecmaVersion>=9&&(e.await=i>-1),this.parseForIn(e,t)):(i>-1&&this.unexpected(i),this.parseFor(e,t))};fe.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,ji|(i?0:Js),!1,t)};fe.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(x._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};fe.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(x.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};fe.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(x.braceL),this.labels.push(oh),this.enterScope(Su);for(var t,i=!1;this.type!==x.braceR;)if(this.type===x._case||this.type===x._default){var n=this.type===x._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(x.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};fe.parseThrowStatement=function(e){return this.next(),Ot.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var uh=[];fe.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?Eu:0),this.checkLValPattern(e,t?Tu:xr),this.expect(x.parenR),e};fe.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===x._catch){var t=this.startNode();this.next(),this.eat(x.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(x._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};fe.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")};fe.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Ks),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};fe.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};fe.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};fe.parseLabeledStatement=function(e,t,i,n){for(var s=0,o=this.labels;s<o.length;s+=1){var u=o[s];u.name===t&&this.raise(i.start,"Label '"+t+"' is already declared")}for(var c=this.type.isLoop?"loop":this.type===x._switch?"switch":null,h=this.labels.length-1;h>=0;h--){var g=this.labels[h];if(g.statementStart===e.start)g.statementStart=this.start,g.kind=c;else break}return this.labels.push({name:t,kind:c,statementStart:this.start}),e.body=this.parseStatement(n?n.indexOf("label")===-1?n+"label":n:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")};fe.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};fe.parseBlock=function(e,t,i){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(x.braceL),e&&this.enterScope(0);this.type!==x.braceR;){var n=this.parseStatement(null);t.body.push(n)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};fe.parseFor=function(e,t){return e.init=t,this.expect(x.semi),e.test=this.type===x.semi?null:this.parseExpression(),this.expect(x.semi),e.update=this.type===x.parenR?null:this.parseExpression(),this.expect(x.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};fe.parseForIn=function(e,t){var i=this.type===x._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(x.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")};fe.parseVar=function(e,t,i,n){for(e.declarations=[],e.kind=i;;){var s=this.startNode();if(this.parseVarId(s,i),this.eat(x.eq)?s.init=this.parseMaybeAssign(t):!n&&i==="const"&&!(this.type===x._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!n&&(i==="using"||i==="await using")&&this.options.ecmaVersion>=17&&this.type!==x._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+i+" declaration"):!n&&s.id.type!=="Identifier"&&!(t&&(this.type===x._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):s.init=null,e.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(x.comma))break}return e};fe.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Gs:xr,!1)};var ji=1,Js=2,ku=4;fe.parseFunction=function(e,t,i,n,s){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===x.star&&t&Js&&this.unexpected(),e.generator=this.eat(x.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&ji&&(e.id=t&ku&&this.type!==x.name?null:this.parseIdent(),e.id&&!(t&Js)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Gs:xr:wu));var o=this.yieldPos,u=this.awaitPos,c=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ws(e.async,e.generator)),t&ji||(e.id=this.type===x.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,s),this.yieldPos=o,this.awaitPos=u,this.awaitIdentPos=c,this.finishNode(e,t&ji?"FunctionDeclaration":"FunctionExpression")};fe.parseFunctionParams=function(e){this.expect(x.parenL),e.params=this.parseBindingList(x.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};fe.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.enterClassBody(),s=this.startNode(),o=!1;for(s.body=[],this.expect(x.braceL);this.type!==x.braceR;){var u=this.parseClassElement(e.superClass!==null);u&&(s.body.push(u),u.type==="MethodDefinition"&&u.kind==="constructor"?(o&&this.raiseRecoverable(u.start,"Duplicate constructor in the same class"),o=!0):u.key&&u.key.type==="PrivateIdentifier"&&ch(n,u)&&this.raiseRecoverable(u.key.start,"Identifier '#"+u.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};fe.parseClassElement=function(e){if(this.eat(x.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),n="",s=!1,o=!1,u="method",c=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(x.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===x.star?c=!0:n="static"}if(i.static=c,!n&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===x.star)&&!this.canInsertSemicolon()?o=!0:n="async"),!n&&(t>=9||!o)&&this.eat(x.star)&&(s=!0),!n&&!o&&!s){var h=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?u=h:n=h)}if(n?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=n,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===x.parenL||u!=="method"||s||o){var g=!i.static&&bn(i,"constructor"),y=g&&e;g&&u!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=g?"constructor":u,this.parseClassMethod(i,s,o,y)}else this.parseClassField(i);return i};fe.isClassElementNameStart=function(){return this.type===x.name||this.type===x.privateId||this.type===x.num||this.type===x.string||this.type===x.bracketL||this.type.keyword};fe.parseClassElementName=function(e){this.type===x.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};fe.parseClassMethod=function(e,t,i,n){var s=e.key;e.kind==="constructor"?(t&&this.raise(s.start,"Constructor can't be a generator"),i&&this.raise(s.start,"Constructor can't be an async method")):e.static&&bn(e,"prototype")&&this.raise(s.start,"Classes may not have a static property named prototype");var o=e.value=this.parseMethod(t,i,n);return e.kind==="get"&&o.params.length!==0&&this.raiseRecoverable(o.start,"getter should have no params"),e.kind==="set"&&o.params.length!==1&&this.raiseRecoverable(o.start,"setter should have exactly one param"),e.kind==="set"&&o.params[0].type==="RestElement"&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};fe.parseClassField=function(e){return bn(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&bn(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(x.eq)?(this.enterScope(qi|wn),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};fe.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Mr|wn);this.type!==x.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};fe.parseClassId=function(e,t){this.type===x.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,xr,!1)):(t===!0&&this.unexpected(),e.id=null)};fe.parseClassSuper=function(e){e.superClass=this.eat(x._extends)?this.parseExprSubscripts(null,!1):null};fe.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};fe.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var n=this.privateNameStack.length,s=n===0?null:this.privateNameStack[n-1],o=0;o<i.length;++o){var u=i[o];oi(t,u.name)||(s?s.used.push(u):this.raiseRecoverable(u.start,"Private field '#"+u.name+"' must be declared in an enclosing class"))}};function ch(e,t){var i=t.key.name,n=e[i],s="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(s=(t.static?"s":"i")+t.kind),n==="iget"&&s==="iset"||n==="iset"&&s==="iget"||n==="sget"&&s==="sset"||n==="sset"&&s==="sget"?(e[i]="true",!1):n?!0:(e[i]=s,!1)}function bn(e,t){var i=e.computed,n=e.key;return!i&&(n.type==="Identifier"&&n.name===t||n.type==="Literal"&&n.value===t)}fe.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==x.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};fe.parseExport=function(e,t){if(this.next(),this.eat(x.star))return this.parseExportAllDeclaration(e,t);if(this.eat(x._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==x.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var i=0,n=e.specifiers;i<n.length;i+=1){var s=n[i];this.checkUnreserved(s.local),this.checkLocalExport(s.local),s.local.type==="Literal"&&this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};fe.parseExportDeclaration=function(e){return this.parseStatement(null)};fe.parseExportDefaultDeclaration=function(){var e;if(this.type===x._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,ji|ku,!1,e)}else if(this.type===x._class){var i=this.startNode();return this.parseClass(i,"nullableID")}else{var n=this.parseMaybeAssign();return this.semicolon(),n}};fe.checkExport=function(e,t,i){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),oi(e,t)&&this.raiseRecoverable(i,"Duplicate export '"+t+"'"),e[t]=!0)};fe.checkPatternExport=function(e,t){var i=t.type;if(i==="Identifier")this.checkExport(e,t,t.start);else if(i==="ObjectPattern")for(var n=0,s=t.properties;n<s.length;n+=1){var o=s[n];this.checkPatternExport(e,o)}else if(i==="ArrayPattern")for(var u=0,c=t.elements;u<c.length;u+=1){var h=c[u];h&&this.checkPatternExport(e,h)}else i==="Property"?this.checkPatternExport(e,t.value):i==="AssignmentPattern"?this.checkPatternExport(e,t.left):i==="RestElement"&&this.checkPatternExport(e,t.argument)};fe.checkVariableExport=function(e,t){if(e)for(var i=0,n=t;i<n.length;i+=1){var s=n[i];this.checkPatternExport(e,s.id)}};fe.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};fe.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};fe.parseExportSpecifiers=function(e){var t=[],i=!0;for(this.expect(x.braceL);!this.eat(x.braceR);){if(i)i=!1;else if(this.expect(x.comma),this.afterTrailingComma(x.braceR))break;t.push(this.parseExportSpecifier(e))}return t};fe.parseImport=function(e){return this.next(),this.type===x.string?(e.specifiers=uh,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===x.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};fe.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,xr),this.finishNode(e,"ImportSpecifier")};fe.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,xr),this.finishNode(e,"ImportDefaultSpecifier")};fe.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,xr),this.finishNode(e,"ImportNamespaceSpecifier")};fe.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===x.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(x.comma)))return e;if(this.type===x.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(x.braceL);!this.eat(x.braceR);){if(t)t=!1;else if(this.expect(x.comma),this.afterTrailingComma(x.braceR))break;e.push(this.parseImportSpecifier())}return e};fe.parseWithClause=function(){var e=[];if(!this.eat(x._with))return e;this.expect(x.braceL);for(var t={},i=!0;!this.eat(x.braceR);){if(i)i=!1;else if(this.expect(x.comma),this.afterTrailingComma(x.braceR))break;var n=this.parseImportAttribute(),s=n.key.type==="Identifier"?n.key.name:n.key.value;oi(t,s)&&this.raiseRecoverable(n.key.start,"Duplicate attribute key '"+s+"'"),t[s]=!0,e.push(n)}return e};fe.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===x.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(x.colon),this.type!==x.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};fe.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===x.string){var e=this.parseLiteral(this.value);return rh.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};fe.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};fe.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var Xt=lt.prototype;Xt.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var n=0,s=e.properties;n<s.length;n+=1){var o=s[n];this.toAssignable(o,t),o.type==="RestElement"&&(o.argument.type==="ArrayPattern"||o.argument.type==="ObjectPattern")&&this.raise(o.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,i);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return e};Xt.toAssignableList=function(e,t){for(var i=e.length,n=0;n<i;n++){var s=e[n];s&&this.toAssignable(s,t)}if(i){var o=e[i-1];this.options.ecmaVersion===6&&t&&o&&o.type==="RestElement"&&o.argument.type!=="Identifier"&&this.unexpected(o.argument.start)}return e};Xt.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};Xt.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==x.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};Xt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case x.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(x.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case x.braceL:return this.parseObj(!0)}return this.parseIdent()};Xt.parseBindingList=function(e,t,i,n){for(var s=[],o=!0;!this.eat(e);)if(o?o=!1:this.expect(x.comma),t&&this.type===x.comma)s.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===x.ellipsis){var u=this.parseRestBinding();this.parseBindingListItem(u),s.push(u),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else s.push(this.parseAssignableListItem(n))}return s};Xt.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};Xt.parseBindingListItem=function(e){return e};Xt.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(x.eq))return i;var n=this.startNodeAt(e,t);return n.left=i,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")};Xt.checkLValSimple=function(e,t,i){t===void 0&&(t=An);var n=t!==An;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(n?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(t===xr&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(oi(i,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),i[e.name]=!0),t!==Fu&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":n&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return n&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,i);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}};Xt.checkLValPattern=function(e,t,i){switch(t===void 0&&(t=An),e.type){case"ObjectPattern":for(var n=0,s=e.properties;n<s.length;n+=1){var o=s[n];this.checkLValInnerPattern(o,t,i)}break;case"ArrayPattern":for(var u=0,c=e.elements;u<c.length;u+=1){var h=c[u];h&&this.checkLValInnerPattern(h,t,i)}break;default:this.checkLValSimple(e,t,i)}};Xt.checkLValInnerPattern=function(e,t,i){switch(t===void 0&&(t=An),e.type){case"Property":this.checkLValInnerPattern(e.value,t,i);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,i);break;case"RestElement":this.checkLValPattern(e.argument,t,i);break;default:this.checkLValPattern(e,t,i)}};var ir=function(t,i,n,s,o){this.token=t,this.isExpr=!!i,this.preserveSpace=!!n,this.override=s,this.generator=!!o},nt={b_stat:new ir("{",!1),b_expr:new ir("{",!0),b_tmpl:new ir("${",!1),p_stat:new ir("(",!1),p_expr:new ir("(",!0),q_tmpl:new ir("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new ir("function",!1),f_expr:new ir("function",!0),f_expr_gen:new ir("function",!0,!1,null,!0),f_gen:new ir("function",!1,!1,null,!0)},ui=lt.prototype;ui.initialContext=function(){return[nt.b_stat]};ui.curContext=function(){return this.context[this.context.length-1]};ui.braceIsBlock=function(e){var t=this.curContext();return t===nt.f_expr||t===nt.f_stat?!0:e===x.colon&&(t===nt.b_stat||t===nt.b_expr)?!t.isExpr:e===x._return||e===x.name&&this.exprAllowed?Ot.test(this.input.slice(this.lastTokEnd,this.start)):e===x._else||e===x.semi||e===x.eof||e===x.parenR||e===x.arrow?!0:e===x.braceL?t===nt.b_stat:e===x._var||e===x._const||e===x.name?!1:!this.exprAllowed};ui.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};ui.updateContext=function(e){var t,i=this.type;i.keyword&&e===x.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr};ui.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};x.parenR.updateContext=x.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===nt.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};x.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?nt.b_stat:nt.b_expr),this.exprAllowed=!0};x.dollarBraceL.updateContext=function(){this.context.push(nt.b_tmpl),this.exprAllowed=!0};x.parenL.updateContext=function(e){var t=e===x._if||e===x._for||e===x._with||e===x._while;this.context.push(t?nt.p_stat:nt.p_expr),this.exprAllowed=!0};x.incDec.updateContext=function(){};x._function.updateContext=x._class.updateContext=function(e){e.beforeExpr&&e!==x._else&&!(e===x.semi&&this.curContext()!==nt.p_stat)&&!(e===x._return&&Ot.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===x.colon||e===x.braceL)&&this.curContext()===nt.b_stat)?this.context.push(nt.f_expr):this.context.push(nt.f_stat),this.exprAllowed=!1};x.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};x.backQuote.updateContext=function(){this.curContext()===nt.q_tmpl?this.context.pop():this.context.push(nt.q_tmpl),this.exprAllowed=!1};x.star.updateContext=function(e){if(e===x._function){var t=this.context.length-1;this.context[t]===nt.f_expr?this.context[t]=nt.f_expr_gen:this.context[t]=nt.f_gen}this.exprAllowed=!0};x.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==x.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var De=lt.prototype;De.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n=e.key,s;switch(n.type){case"Identifier":s=n.name;break;case"Literal":s=String(n.value);break;default:return}var o=e.kind;if(this.options.ecmaVersion>=6){s==="__proto__"&&o==="init"&&(t.proto&&(i?i.doubleProto<0&&(i.doubleProto=n.start):this.raiseRecoverable(n.start,"Redefinition of __proto__ property")),t.proto=!0);return}s="$"+s;var u=t[s];if(u){var c;o==="init"?c=this.strict&&u.init||u.get||u.set:c=u.init||u[o],c&&this.raiseRecoverable(n.start,"Redefinition of property")}else u=t[s]={init:!1,get:!1,set:!1};u[o]=!0}};De.parseExpression=function(e,t){var i=this;return this.catchStackOverflow(function(){var n=i.start,s=i.startLoc,o=i.parseMaybeAssign(e,t);if(i.type===x.comma){var u=i.startNodeAt(n,s);for(u.expressions=[o];i.eat(x.comma);)u.expressions.push(i.parseMaybeAssign(e,t));return i.finishNode(u,"SequenceExpression")}return o})};De.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,s=-1,o=-1,u=-1;t?(s=t.parenthesizedAssign,o=t.trailingComma,u=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Fn,n=!0);var c=this.start,h=this.startLoc;(this.type===x.parenL||this.type===x.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var g=this.parseMaybeConditional(e,t);if(i&&(g=i.call(this,g,c,h)),this.type.isAssign){var y=this.startNodeAt(c,h);return y.operator=this.value,this.type===x.eq&&(g=this.toAssignable(g,!1,t)),n||(t.parenthesizedAssign=t.trailingComma=-1,t.shorthandAssign>=g.start&&(t.shorthandAssign=-1),t.doubleProto>=g.start&&(t.doubleProto=-1)),this.type===x.eq?this.checkLValPattern(g):this.checkLValSimple(g),y.left=g,this.next(),y.right=this.parseMaybeAssign(e),u>-1&&(t.doubleProto=u),this.finishNode(y,"AssignmentExpression")}else n&&this.checkExpressionErrors(t,!0);return s>-1&&(t.parenthesizedAssign=s),o>-1&&(t.trailingComma=o),g};De.parseMaybeConditional=function(e,t){var i=this.start,n=this.startLoc,s=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return s;if(!(s.type==="ArrowFunctionExpression"&&s.start===i)&&this.eat(x.question)){var o=this.startNodeAt(i,n);return o.test=s,o.consequent=this.parseMaybeAssign(),this.expect(x.colon),o.alternate=this.parseMaybeAssign(e),this.finishNode(o,"ConditionalExpression")}return s};De.parseExprOps=function(e,t){var i=this.start,n=this.startLoc,s=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||s.start===i&&s.type==="ArrowFunctionExpression"?s:this.parseExprOp(s,i,n,-1,e)};De.parseExprOp=function(e,t,i,n,s){var o=this.type.binop;if(o!=null&&(!s||this.type!==x._in)&&o>n){var u=this.type===x.logicalOR||this.type===x.logicalAND,c=this.type===x.coalesce;c&&(o=x.logicalAND.binop);var h=this.value;this.next();var g=this.start,y=this.startLoc,A=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,s),g,y,o,s),v=this.buildBinary(t,i,e,A,h,u||c);return(u&&this.type===x.coalesce||c&&(this.type===x.logicalOR||this.type===x.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(v,t,i,n,s)}return e};De.buildBinary=function(e,t,i,n,s,o){n.type==="PrivateIdentifier"&&this.raise(n.start,"Private identifier can only be left side of binary expression");var u=this.startNodeAt(e,t);return u.left=i,u.operator=s,u.right=n,this.finishNode(u,o?"LogicalExpression":"BinaryExpression")};De.parseMaybeUnary=function(e,t,i,n){var s=this.start,o=this.startLoc,u;if(this.isContextual("await")&&this.canAwait)u=this.parseAwait(n),t=!0;else if(this.type.prefix){var c=this.startNode(),h=this.type===x.incDec;c.operator=this.value,c.prefix=!0,this.next(),c.argument=this.parseMaybeUnary(null,!0,h,n),this.checkExpressionErrors(e,!0),h?this.checkLValSimple(c.argument):this.strict&&c.operator==="delete"&&_u(c.argument)?this.raiseRecoverable(c.start,"Deleting local variable in strict mode"):c.operator==="delete"&&js(c.argument)?this.raiseRecoverable(c.start,"Private fields can not be deleted"):t=!0,u=this.finishNode(c,h?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===x.privateId)(n||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),u=this.parsePrivateIdent(),this.type!==x._in&&this.unexpected();else{if(u=this.parseExprSubscripts(e,n),this.checkExpressionErrors(e))return u;for(;this.type.postfix&&!this.canInsertSemicolon();){var g=this.startNodeAt(s,o);g.operator=this.value,g.prefix=!1,g.argument=u,this.checkLValSimple(u),this.next(),u=this.finishNode(g,"UpdateExpression")}}if(!i&&!(u.type==="ArrowFunctionExpression"&&u.start===s)&&this.eat(x.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(s,o,u,this.parseMaybeUnary(null,!1,!1,n),"**",!1);else return u};function _u(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&_u(e.expression)}function js(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&js(e.expression)||e.type==="ParenthesizedExpression"&&js(e.expression)}De.parseExprSubscripts=function(e,t){var i=this.start,n=this.startLoc,s=-1,o=-1;e&&(s=e.doubleProto,o=e.shorthandAssign,e.doubleProto=e.shorthandAssign=-1);var u=this.parseExprAtom(e,t);if(u.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return u;var c=this.parseSubscripts(u,i,n,!1,t);return e&&(c.end>u.end&&(this.checkExpressionErrors(e,!0),e.parenthesizedAssign>=c.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=c.start&&(e.parenthesizedBind=-1),e.trailingComma>=c.start&&(e.trailingComma=-1)),s>-1&&(e.doubleProto=s),o>-1&&(e.shorthandAssign=o)),c};De.parseSubscripts=function(e,t,i,n,s){for(var o=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,u=!1;;){var c=this.parseSubscript(e,t,i,n,o,u,s);if(c.optional&&(u=!0),c.end===e.end||c.type==="ArrowFunctionExpression"){if(u){var h=this.startNodeAt(t,i);h.expression=c,c=this.finishNode(h,"ChainExpression")}return c}e=c,o=!1}};De.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(x.arrow)};De.parseSubscriptAsyncArrow=function(e,t,i,n){return this.parseArrowExpression(this.startNodeAt(e,t),i,!0,n)};De.parseSubscript=function(e,t,i,n,s,o,u){var c=this.options.ecmaVersion>=11,h=c&&this.eat(x.questionDot);n&&h&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var g=this.eat(x.bracketL);if(g||h&&this.type!==x.parenL&&this.type!==x.backQuote||this.eat(x.dot)){var y=this.startNodeAt(t,i);y.object=e,g?(y.property=this.parseExpression(),this.expect(x.bracketR)):this.type===x.privateId&&e.type!=="Super"?y.property=this.parsePrivateIdent():y.property=this.parseIdent(this.options.allowReserved!=="never"),y.computed=!!g,c&&(y.optional=h),e=this.finishNode(y,"MemberExpression")}else if(!n&&this.eat(x.parenL)){var A=new Fn,v=this.yieldPos,b=this.awaitPos,D=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var T=this.parseExprList(x.parenR,this.options.ecmaVersion>=8,!1,A);if(s&&!h&&this.shouldParseAsyncArrow())return this.checkPatternErrors(A,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=v,this.awaitPos=b,this.awaitIdentPos=D,this.parseSubscriptAsyncArrow(t,i,T,u);this.checkExpressionErrors(A,!0),this.yieldPos=v||this.yieldPos,this.awaitPos=b||this.awaitPos,this.awaitIdentPos=D||this.awaitIdentPos;var J=this.startNodeAt(t,i);J.callee=e,J.arguments=T,c&&(J.optional=h),e=this.finishNode(J,"CallExpression")}else if(this.type===x.backQuote){(h||o)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var w=this.startNodeAt(t,i);w.tag=e,w.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(w,"TaggedTemplateExpression")}return e};De.parseExprAtom=function(e,t,i){this.type===x.slash&&this.readRegexp();var n,s=this.potentialArrowAt===this.start;switch(this.type){case x._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),n=this.startNode(),this.next(),this.type===x.parenL&&!this.allowDirectSuper&&this.raise(n.start,"super() call outside constructor of a subclass"),this.type!==x.dot&&this.type!==x.bracketL&&this.type!==x.parenL&&this.unexpected(),this.finishNode(n,"Super");case x._this:return n=this.startNode(),this.next(),this.finishNode(n,"ThisExpression");case x.name:var o=this.start,u=this.startLoc,c=this.containsEsc,h=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!c&&h.name==="async"&&!this.canInsertSemicolon()&&this.eat(x._function))return this.overrideContext(nt.f_expr),this.parseFunction(this.startNodeAt(o,u),0,!1,!0,t);if(s&&!this.canInsertSemicolon()){if(this.eat(x.arrow))return this.parseArrowExpression(this.startNodeAt(o,u),[h],!1,t);if(this.options.ecmaVersion>=8&&h.name==="async"&&this.type===x.name&&!c&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return h=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(x.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(o,u),[h],!0,t)}return h;case x.regexp:var g=this.value;return n=this.parseLiteral(g.value),n.regex={pattern:g.pattern,flags:g.flags},n;case x.num:case x.string:return this.parseLiteral(this.value);case x._null:case x._true:case x._false:return n=this.startNode(),n.value=this.type===x._null?null:this.type===x._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case x.parenL:var y=this.start,A=this.parseParenAndDistinguishExpression(s,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(A)&&(e.parenthesizedAssign=y),e.parenthesizedBind<0&&(e.parenthesizedBind=y)),A;case x.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(x.bracketR,!0,!0,e),this.finishNode(n,"ArrayExpression");case x.braceL:return this.overrideContext(nt.b_expr),this.parseObj(!1,e);case x._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case x._class:return this.parseClass(this.startNode(),!1);case x._new:return this.parseNew();case x.backQuote:return this.parseTemplate();case x._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}};De.parseExprAtomDefault=function(){this.unexpected()};De.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===x.parenL&&!e)return this.parseDynamicImport(t);if(this.type===x.dot){var i=this.startNodeAt(t.start,t.loc&&t.loc.start);return i.name="import",t.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};De.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(x.parenR)?e.options=null:(this.expect(x.comma),this.afterTrailingComma(x.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(x.parenR)||(this.expect(x.comma),this.afterTrailingComma(x.parenR)||this.unexpected())));else if(!this.eat(x.parenR)){var t=this.start;this.eat(x.comma)&&this.eat(x.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};De.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};De.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};De.parseParenExpression=function(){this.expect(x.parenL);var e=this.parseExpression();return this.expect(x.parenR),e};De.shouldParseArrow=function(e){return!this.canInsertSemicolon()};De.parseParenAndDistinguishExpression=function(e,t){var i=this.start,n=this.startLoc,s,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var u=this.start,c=this.startLoc,h=[],g=!0,y=!1,A=new Fn,v=this.yieldPos,b=this.awaitPos,D;for(this.yieldPos=0,this.awaitPos=0;this.type!==x.parenR;)if(g?g=!1:this.expect(x.comma),o&&this.afterTrailingComma(x.parenR,!0)){y=!0;break}else if(this.type===x.ellipsis){D=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else h.push(this.parseMaybeAssign(!1,A,this.parseParenItem));var T=this.lastTokEnd,J=this.lastTokEndLoc;if(this.expect(x.parenR),e&&this.shouldParseArrow(h)&&this.eat(x.arrow))return this.checkPatternErrors(A,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=v,this.awaitPos=b,this.parseParenArrowList(i,n,h,t);(!h.length||y)&&this.unexpected(this.lastTokStart),D&&this.unexpected(D),this.checkExpressionErrors(A,!0),this.yieldPos=v||this.yieldPos,this.awaitPos=b||this.awaitPos,h.length>1?(s=this.startNodeAt(u,c),s.expressions=h,this.finishNodeAt(s,"SequenceExpression",T,J)):s=h[0]}else s=this.parseParenExpression();if(this.options.preserveParens){var w=this.startNodeAt(i,n);return w.expression=s,this.finishNode(w,"ParenthesizedExpression")}else return s};De.parseParenItem=function(e){return e};De.parseParenArrowList=function(e,t,i,n){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,n)};var lh=[];De.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===x.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var i=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var n=this.start,s=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),n,s,!0,!1),e.callee.type==="Super"&&this.raiseRecoverable(n,"Invalid use of 'super'"),this.eat(x.parenL)?e.arguments=this.parseExprList(x.parenR,this.options.ecmaVersion>=8,!1):e.arguments=lh,this.finishNode(e,"NewExpression")};De.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===x.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,`
|
|
55
|
+
`),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
56
|
+
`),cooked:this.value},this.next(),i.tail=this.type===x.backQuote,this.finishNode(i,"TemplateElement")};De.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(i.quasis=[n];!n.tail;)this.type===x.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(x.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(x.braceR),i.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")};De.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===x.name||this.type===x.num||this.type===x.string||this.type===x.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===x.star)&&!Ot.test(this.input.slice(this.lastTokEnd,this.start))};De.parseObj=function(e,t){var i=this.startNode(),n=!0,s={};for(i.properties=[],this.next();!this.eat(x.braceR);){if(n)n=!1;else if(this.expect(x.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(x.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,s,t),i.properties.push(o)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")};De.parseProperty=function(e,t){var i=this.startNode(),n,s,o,u;if(this.options.ecmaVersion>=9&&this.eat(x.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===x.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(o=this.start,u=this.startLoc),e||(n=this.eat(x.star)));var c=this.containsEsc;return this.parsePropertyName(i),!e&&!c&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(i)?(s=!0,n=this.options.ecmaVersion>=9&&this.eat(x.star),this.parsePropertyName(i)):s=!1,this.parsePropertyValue(i,e,n,s,o,u,t,c),this.finishNode(i,"Property")};De.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var i=e.kind==="get"?0:1;if(e.value.params.length!==i){var n=e.value.start;e.kind==="get"?this.raiseRecoverable(n,"getter should have no params"):this.raiseRecoverable(n,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};De.parsePropertyValue=function(e,t,i,n,s,o,u,c){(i||n)&&this.type===x.colon&&this.unexpected(),this.eat(x.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,u),e.kind="init"):this.options.ecmaVersion>=6&&this.type===x.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(i,n),e.kind="init"):!t&&!c&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==x.comma&&this.type!==x.braceR&&this.type!==x.eq?((i||n)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||n)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=s),t?e.value=this.parseMaybeDefault(s,o,this.copyNode(e.key)):this.type===x.eq&&u?(u.shorthandAssign<0&&(u.shorthandAssign=this.start),e.value=this.parseMaybeDefault(s,o,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};De.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(x.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(x.bracketR),e.key;e.computed=!1}return e.key=this.type===x.num||this.type===x.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};De.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};De.parseMethod=function(e,t,i){var n=this.startNode(),s=this.yieldPos,o=this.awaitPos,u=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ws(t,n.generator)|wn|(i?Du:0)),this.expect(x.parenL),n.params=this.parseBindingList(x.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=s,this.awaitPos=o,this.awaitIdentPos=u,this.finishNode(n,"FunctionExpression")};De.parseArrowExpression=function(e,t,i,n){var s=this.yieldPos,o=this.awaitPos,u=this.awaitIdentPos;return this.enterScope(Ws(i,!1)|$s),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,n),this.yieldPos=s,this.awaitPos=o,this.awaitIdentPos=u,this.finishNode(e,"ArrowFunctionExpression")};De.parseFunctionBody=function(e,t,i,n){var s=t&&this.type!==x.braceL,o=this.strict,u=!1;if(s)e.body=this.parseMaybeAssign(n),e.expression=!0,this.checkParams(e,!1);else{var c=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!o||c)&&(u=this.strictDirective(this.end),u&&c&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var h=this.labels;this.labels=[],u&&(this.strict=!0),this.checkParams(e,!o&&!u&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Fu),e.body=this.parseBlock(!1,void 0,u&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=h}this.exitScope()};De.isSimpleParamList=function(e){for(var t=0,i=e;t<i.length;t+=1){var n=i[t];if(n.type!=="Identifier")return!1}return!0};De.checkParams=function(e,t){for(var i=Object.create(null),n=0,s=e.params;n<s.length;n+=1){var o=s[n];this.checkLValInnerPattern(o,Gs,t?null:i)}};De.parseExprList=function(e,t,i,n){for(var s=[],o=!0;!this.eat(e);){if(o)o=!1;else if(this.expect(x.comma),t&&this.afterTrailingComma(e))break;var u=void 0;i&&this.type===x.comma?u=null:this.type===x.ellipsis?(u=this.parseSpread(n),n&&this.type===x.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):u=this.parseMaybeAssign(!1,n),s.push(u)}return s};De.checkUnreserved=function(e){var t=e.start,i=e.end,n=e.name;if(this.inGenerator&&n==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&n==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Tn)&&n==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(n==="arguments"||n==="await")&&this.raise(t,"Cannot use "+n+" in class static initialization block"),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '"+n+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,i).indexOf("\\")!==-1)){var s=this.strict?this.reservedWordsStrict:this.reservedWords;s.test(n)&&(!this.inAsync&&n==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))}};De.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};De.parseIdentNode=function(){var e=this.startNode();return this.type===x.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=x.name):this.unexpected(),e};De.parsePrivateIdent=function(){var e=this.startNode();return this.type===x.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};De.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===x.semi||this.canInsertSemicolon()||this.type!==x.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(x.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};De.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var En=lt.prototype;En.raise=function(e,t){var i=Au(this.input,e);t+=" ("+i.line+":"+i.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var n=new SyntaxError(t);throw n.pos=e,n.loc=i,n.raisedAt=this.pos,n};En.raiseRecoverable=En.raise;En.curPosition=function(){if(this.options.locations)return new Ui(this.curLine,this.pos-this.lineStart)};var _r=lt.prototype,ph=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};_r.enterScope=function(e){this.scopeStack.push(new ph(e))};_r.exitScope=function(){this.scopeStack.pop()};_r.treatFunctionsAsVarInScope=function(e){return e.flags&Vr||!this.inModule&&e.flags&Or};_r.declareName=function(e,t,i){var n=!1;if(t===xr){var s=this.currentScope();n=s.lexical.indexOf(e)>-1||s.functions.indexOf(e)>-1||s.var.indexOf(e)>-1,s.lexical.push(e),this.inModule&&s.flags&Or&&delete this.undefinedExports[e]}else if(t===Tu){var o=this.currentScope();o.lexical.push(e)}else if(t===wu){var u=this.currentScope();this.treatFunctionsAsVar?n=u.lexical.indexOf(e)>-1:n=u.lexical.indexOf(e)>-1||u.var.indexOf(e)>-1,u.functions.push(e)}else for(var c=this.scopeStack.length-1;c>=0;--c){var h=this.scopeStack[c];if(h.lexical.indexOf(e)>-1&&!(h.flags&Eu&&h.lexical[0]===e)||!this.treatFunctionsAsVarInScope(h)&&h.functions.indexOf(e)>-1){n=!0;break}if(h.var.push(e),this.inModule&&h.flags&Or&&delete this.undefinedExports[e],h.flags&Tn)break}n&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")};_r.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};_r.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};_r.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Tn|qi|Mr))return t}};_r.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Tn|qi|Mr)&&!(t.flags&$s))return t}};var kn=function(t,i,n){this.type="",this.start=i,this.end=0,t.options.locations&&(this.loc=new Sn(t,n)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[i,0])},$i=lt.prototype;$i.startNode=function(){return new kn(this,this.start,this.startLoc)};$i.startNodeAt=function(e,t){return new kn(this,e,t)};function Pu(e,t,i,n){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=i),e}$i.finishNode=function(e,t){return Pu.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};$i.finishNodeAt=function(e,t,i,n){return Pu.call(this,e,t,i,n)};$i.copyNode=function(e){var t=new kn(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var hh="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",Bu="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",Iu=Bu+" Extended_Pictographic",Nu=Iu,Ru=Nu+" EBase EComp EMod EPres ExtPict",Lu=Ru,fh=Lu,dh={9:Bu,10:Iu,11:Nu,12:Ru,13:Lu,14:fh},mh="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",yh={9:"",10:"",11:"",12:"",13:"",14:mh},fu="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",Ou="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",Vu=Ou+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Mu=Vu+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ju=Mu+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",ju=Ju+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",gh=ju+" "+hh,xh={9:Ou,10:Vu,11:Mu,12:Ju,13:ju,14:gh},Uu={};function vh(e){var t=Uu[e]={binary:kr(dh[e]+" "+fu),binaryOfStrings:kr(yh[e]),nonBinary:{General_Category:kr(fu),Script:kr(xh[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(Cn=0,Os=[9,10,11,12,13,14];Cn<Os.length;Cn+=1)du=Os[Cn],vh(du);var du,Cn,Os,pe=lt.prototype,Dn=function(t,i){this.parent=t,this.base=i||this};Dn.prototype.separatedFrom=function(t){for(var i=this;i;i=i.parent)for(var n=t;n;n=n.parent)if(i.base===n.base&&i!==n)return!0;return!1};Dn.prototype.sibling=function(){return new Dn(this.parent,this.base)};var cr=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Uu[t.options.ecmaVersion>=14?14:t.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};cr.prototype.reset=function(t,i,n){var s=n.indexOf("v")!==-1,o=n.indexOf("u")!==-1;this.start=t|0,this.source=i+"",this.flags=n,s&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=o&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=o&&this.parser.options.ecmaVersion>=9)};cr.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};cr.prototype.at=function(t,i){i===void 0&&(i=!1);var n=this.source,s=n.length;if(t>=s)return-1;var o=n.charCodeAt(t);if(!(i||this.switchU)||o<=55295||o>=57344||t+1>=s)return o;var u=n.charCodeAt(t+1);return u>=56320&&u<=57343?(o<<10)+u-56613888:o};cr.prototype.nextIndex=function(t,i){i===void 0&&(i=!1);var n=this.source,s=n.length;if(t>=s)return s;var o=n.charCodeAt(t),u;return!(i||this.switchU)||o<=55295||o>=57344||t+1>=s||(u=n.charCodeAt(t+1))<56320||u>57343?t+1:t+2};cr.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};cr.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};cr.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};cr.prototype.eat=function(t,i){return i===void 0&&(i=!1),this.current(i)===t?(this.advance(i),!0):!1};cr.prototype.eatChars=function(t,i){i===void 0&&(i=!1);for(var n=this.pos,s=0,o=t;s<o.length;s+=1){var u=o[s],c=this.at(n,i);if(c===-1||c!==u)return!1;n=this.nextIndex(n,i)}return this.pos=n,!0};pe.validateRegExpFlags=function(e){for(var t=e.validFlags,i=e.flags,n=!1,s=!1,o=0;o<i.length;o++){var u=i.charAt(o);t.indexOf(u)===-1&&this.raise(e.start,"Invalid regular expression flag"),i.indexOf(u,o+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),u==="u"&&(n=!0),u==="v"&&(s=!0)}this.options.ecmaVersion>=15&&n&&s&&this.raise(e.start,"Invalid regular expression flag")};function Ch(e){for(var t in e)return!0;return!1}pe.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Ch(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};pe.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t<i.length;t+=1){var n=i[t];e.groupNames[n]||e.raise("Invalid named capture referenced")}};pe.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Dn(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};pe.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};pe.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};pe.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1};pe.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};pe.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};pe.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var n=0,s=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue),e.eat(125)))return s!==-1&&s<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=i}return!1};pe.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};pe.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};pe.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var i=this.regexp_eatModifiers(e),n=e.eat(45);if(i||n){for(var s=0;s<i.length;s++){var o=i.charAt(s);i.indexOf(o,s+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(n){var u=this.regexp_eatModifiers(e);!i&&!u&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var c=0;c<u.length;c++){var h=u.charAt(c);(u.indexOf(h,c+1)>-1||i.indexOf(h)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};pe.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};pe.regexp_eatModifiers=function(e){for(var t="",i=0;(i=e.current())!==-1&&Ah(i);)t+=yr(i),e.advance();return t};function Ah(e){return e===105||e===109||e===115}pe.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};pe.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};pe.regexp_eatSyntaxCharacter=function(e){var t=e.current();return qu(t)?(e.lastIntValue=t,e.advance(),!0):!1};function qu(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}pe.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;(i=e.current())!==-1&&!qu(i);)e.advance();return e.pos!==t};pe.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};pe.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,i=e.groupNames[e.lastStringValue];if(i)if(t)for(var n=0,s=i;n<s.length;n+=1){var o=s[n];o.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(i||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};pe.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};pe.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=yr(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=yr(e.lastIntValue);return!0}return!1};pe.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,n=e.current(i);return e.advance(i),n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(n=e.lastIntValue),bh(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)};function bh(e){return ur(e,!0)||e===36||e===95}pe.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,n=e.current(i);return e.advance(i),n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(n=e.lastIntValue),Eh(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)};function Eh(e){return mr(e,!0)||e===36||e===95||e===8204||e===8205}pe.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};pe.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1};pe.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};pe.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};pe.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};pe.regexp_eatZero=function(e){return e.current()===48&&!_n(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};pe.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};pe.regexp_eatControlLetter=function(e){var t=e.current();return $u(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function $u(e){return e>=65&&e<=90||e>=97&&e<=122}pe.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var i=e.pos,n=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(n&&s>=55296&&s<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var u=e.lastIntValue;if(u>=56320&&u<=57343)return e.lastIntValue=(s-55296)*1024+(u-56320)+65536,!0}e.pos=o,e.lastIntValue=s}return!0}if(n&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Dh(e.lastIntValue))return!0;n&&e.raise("Invalid unicode escape"),e.pos=i}return!1};function Dh(e){return e>=0&&e<=1114111}pe.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};pe.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var Wu=0,gr=1,Ht=2;pe.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Sh(t))return e.lastIntValue=-1,e.advance(),gr;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=t===80)||t===112)){e.lastIntValue=-1,e.advance();var n;if(e.eat(123)&&(n=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&n===Ht&&e.raise("Invalid property name"),n;e.raise("Invalid property name")}return Wu};function Sh(e){return e===100||e===68||e===115||e===83||e===119||e===87}pe.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,n),gr}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,s)}return Wu};pe.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){oi(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")};pe.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return gr;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return Ht;e.raise("Invalid property name")};pe.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Gu(t=e.current());)e.lastStringValue+=yr(t),e.advance();return e.lastStringValue!==""};function Gu(e){return $u(e)||e===95}pe.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";wh(t=e.current());)e.lastStringValue+=yr(t),e.advance();return e.lastStringValue!==""};function wh(e){return Gu(e)||_n(e)}pe.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};pe.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&i===Ht&&e.raise("Negated character class may contain strings"),!0}return!1};pe.regexp_classContents=function(e){return e.current()===93?gr:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),gr)};pe.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(t===-1||i===-1)&&e.raise("Invalid character class"),t!==-1&&i!==-1&&t>i&&e.raise("Range out of order in character class")}}};pe.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(i===99||Hu(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return n!==93?(e.lastIntValue=n,e.advance(),!0):!1};pe.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};pe.regexp_classSetExpression=function(e){var t=gr,i;if(!this.regexp_eatClassSetRange(e))if(i=this.regexp_eatClassSetOperand(e)){i===Ht&&(t=Ht);for(var n=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(i=this.regexp_eatClassSetOperand(e))){i!==Ht&&(t=gr);continue}e.raise("Invalid character in character class")}if(n!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(n!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(i=this.regexp_eatClassSetOperand(e),!i)return t;i===Ht&&(t=Ht)}};pe.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;return i!==-1&&n!==-1&&i>n&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};pe.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?gr:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};pe.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),n=this.regexp_classContents(e);if(e.eat(93))return i&&n===Ht&&e.raise("Negated character class may contain strings"),n;e.pos=t}if(e.eat(92)){var s=this.regexp_eatCharacterClassEscape(e);if(s)return s;e.pos=t}return null};pe.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null};pe.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===Ht&&(t=Ht);return t};pe.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?gr:Ht};pe.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var i=e.current();return i<0||i===e.lookahead()&&Th(i)||Fh(i)?!1:(e.advance(),e.lastIntValue=i,!0)};function Th(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Fh(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}pe.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return kh(t)?(e.lastIntValue=t,e.advance(),!0):!1};function kh(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}pe.regexp_eatClassControlLetter=function(e){var t=e.current();return _n(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};pe.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};pe.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;_n(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t};function _n(e){return e>=48&&e<=57}pe.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Ku(i=e.current());)e.lastIntValue=16*e.lastIntValue+zu(i),e.advance();return e.pos!==t};function Ku(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function zu(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}pe.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+i*8+e.lastIntValue:e.lastIntValue=t*8+i}else e.lastIntValue=t;return!0}return!1};pe.regexp_eatOctalDigit=function(e){var t=e.current();return Hu(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Hu(e){return e>=48&&e<=55}pe.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var s=e.current();if(!Ku(s))return e.pos=i,!1;e.lastIntValue=16*e.lastIntValue+zu(s),e.advance()}return!0};var zs=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new Sn(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},Ne=lt.prototype;Ne.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new zs(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};Ne.getToken=function(){return this.next(),new zs(this)};typeof Symbol<"u"&&(Ne[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===x.eof,value:t}}}});Ne.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(x.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};Ne.readToken=function(e){return ur(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};Ne.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var i=this.input.charCodeAt(e+1);return i<=56319||i>=57344?t:(t<<10)+i-56613888};Ne.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};Ne.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var n=void 0,s=t;(n=xu(this.input,s,this.pos))>-1;)++this.curLine,s=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())};Ne.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!ai(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,i,this.curPosition())};Ne.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){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(e>8&&e<14||e>=5760&&vu.test(String.fromCharCode(e)))++this.pos;else break e}}};Ne.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)};Ne.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(x.ellipsis)):(++this.pos,this.finishToken(x.dot))};Ne.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(x.assign,2):this.finishOp(x.slash,1)};Ne.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,n=e===42?x.star:x.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++i,n=x.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(x.assign,i+1):this.finishOp(n,i)};Ne.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(x.assign,3)}return this.finishOp(e===124?x.logicalOR:x.logicalAND,2)}return t===61?this.finishOp(x.assign,2):this.finishOp(e===124?x.bitwiseOR:x.bitwiseAND,1)};Ne.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(x.assign,2):this.finishOp(x.bitwiseXOR,1)};Ne.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Ot.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(x.incDec,2):t===61?this.finishOp(x.assign,2):this.finishOp(x.plusMin,1)};Ne.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(x.assign,i+1):this.finishOp(x.bitShift,i)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(i=2),this.finishOp(x.relational,i))};Ne.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(x.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(x.arrow)):this.finishOp(e===61?x.eq:x.prefix,1)};Ne.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(x.questionDot,2)}if(t===63){if(e>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(x.assign,3)}return this.finishOp(x.coalesce,2)}}return this.finishOp(x.question,1)};Ne.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),ur(t,!0)||t===92))return this.finishToken(x.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+yr(t)+"'")};Ne.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(x.parenL);case 41:return++this.pos,this.finishToken(x.parenR);case 59:return++this.pos,this.finishToken(x.semi);case 44:return++this.pos,this.finishToken(x.comma);case 91:return++this.pos,this.finishToken(x.bracketL);case 93:return++this.pos,this.finishToken(x.bracketR);case 123:return++this.pos,this.finishToken(x.braceL);case 125:return++this.pos,this.finishToken(x.braceR);case 58:return++this.pos,this.finishToken(x.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(x.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===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(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(x.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+yr(e)+"'")};Ne.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)};Ne.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(Ot.test(n)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if(n==="[")t=!0;else if(n==="]"&&t)t=!1;else if(n==="/"&&!t)break;e=n==="\\"}++this.pos}var s=this.input.slice(i,this.pos);++this.pos;var o=this.pos,u=this.readWord1();this.containsEsc&&this.unexpected(o);var c=this.regexpState||(this.regexpState=new cr(this));c.reset(i,s,u),this.validateRegExpFlags(c),this.validateRegExpPattern(c);var h=null;try{h=new RegExp(s,u)}catch{}return this.finishToken(x.regexp,{pattern:s,flags:u,value:h})};Ne.readInt=function(e,t,i){for(var n=this.options.ecmaVersion>=12&&t===void 0,s=i&&this.input.charCodeAt(this.pos)===48,o=this.pos,u=0,c=0,h=0,g=t??1/0;h<g;++h,++this.pos){var y=this.input.charCodeAt(this.pos),A=void 0;if(n&&y===95){s&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),c===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),h===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),c=y;continue}if(y>=97?A=y-97+10:y>=65?A=y-65+10:y>=48&&y<=57?A=y-48:A=1/0,A>=e)break;c=y,u=u*e+A}return n&&c===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||t!=null&&this.pos-o!==t?null:u};function _h(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Qu(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}Ne.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return i==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=Qu(this.input.slice(t,this.pos)),++this.pos):ur(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(x.num,i)};Ne.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var i=this.pos-t>=2&&this.input.charCodeAt(t)===48;i&&this.strict&&this.raise(t,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&n===110){var s=Qu(this.input.slice(t,this.pos));return++this.pos,ur(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(x.num,s)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),n===46&&!i&&(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),(n===69||n===101)&&!i&&(n=this.input.charCodeAt(++this.pos),(n===43||n===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),ur(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o=_h(this.input.slice(t,this.pos),i);return this.finishToken(x.num,o)};Ne.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else t=this.readHexChar(4);return t};Ne.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;n===92?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):n===8232||n===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(ai(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(x.string,t)};var Xu={};Ne.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Xu)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};Ne.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Xu;this.raise(e,t)};Ne.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===x.template||this.type===x.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(x.dollarBraceL)):(++this.pos,this.finishToken(x.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(x.template,e));if(i===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(ai(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
57
|
+
`;break;default:e+=String.fromCharCode(i);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};Ne.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(x.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
58
|
+
`&&++this.pos;case`
|
|
59
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};Ne.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
60
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return yr(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"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(n,8);return s>255&&(n=n.slice(0,-1),s=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),(n!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(s)}return ai(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};Ne.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i};Ne.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var s=this.fullCharCodeAtPos();if(mr(s,n))this.pos+=s<=65535?1:2;else if(s===92){this.containsEsc=!0,e+=this.input.slice(i,this.pos);var o=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var u=this.readCodePoint();(t?ur:mr)(u,n)||this.invalidStringToken(o,"Invalid Unicode escape"),e+=yr(u),i=this.pos}else break;t=!1}return e+this.input.slice(i,this.pos)};Ne.readWord=function(){var e=this.readWord1(),t=x.name;return this.keywords.test(e)&&(t=Us[e]),this.finishToken(t,e)};var Ph="8.19.0";lt.acorn={Parser:lt,version:Ph,defaultOptions:Ms,Position:Ui,SourceLocation:Sn,getLineInfo:Au,Node:kn,TokenType:je,tokTypes:x,keywordTypes:Us,TokContext:ir,tokContexts:nt,isIdentifierChar:mr,isIdentifierStart:ur,Token:zs,isNewLine:ai,lineBreak:Ot,lineBreakG:Zp,nonASCIIwhitespace:vu};var oc=Wn(ic(),1);var Pt={Boolean:"Boolean",EOF:"<end>",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function Oh(e,t){let i=e[0],n=e.at(-1),s={type:Pt.Template,value:t.slice(i.start,n.end)};return i.loc&&(s.loc={start:i.loc.start,end:n.loc.end}),i.range&&(s.start=i.range[0],s.end=n.range[1],s.range=[s.start,s.end]),s}var Xs=class{constructor(t,i){this._acornTokTypes=t,this._tokens=[],this._curlyBrace=null,this._code=i}translate(t,i){let n=t.type,s=this._acornTokTypes,o=t,u=o;if(n===s.name)u.type=Pt.Identifier,"value"in t&&t.value==="static"&&(u.type=Pt.Keyword),i.ecmaVersion>5&&"value"in t&&(t.value==="yield"||t.value==="let")&&(u.type=Pt.Keyword);else if(n===s.privateId)u.type=Pt.PrivateIdentifier;else if(n===s.semi||n===s.comma||n===s.parenL||n===s.parenR||n===s.braceL||n===s.braceR||n===s.dot||n===s.bracketL||n===s.colon||n===s.question||n===s.bracketR||n===s.ellipsis||n===s.arrow||n===s.jsxTagStart||n===s.incDec||n===s.starstar||n===s.jsxTagEnd||n===s.prefix||n===s.questionDot||"binop"in n&&n.binop&&!n.keyword||"isAssign"in n&&n.isAssign)u.type=Pt.Punctuator,u.value=this._code.slice(t.start,t.end);else if(n===s.jsxName)u.type=Pt.JSXIdentifier;else if(n.label==="jsxText"||n===s.jsxAttrValueToken)u.type=Pt.JSXText;else if(n.keyword)n.keyword==="true"||n.keyword==="false"?u.type=Pt.Boolean:n.keyword==="null"?u.type=Pt.Null:u.type=Pt.Keyword;else if(n===s.num)u.type=Pt.Numeric,u.value=this._code.slice(t.start,t.end);else if(n===s.string)i.jsxAttrValueToken?(i.jsxAttrValueToken=!1,u.type=Pt.JSXText):u.type=Pt.String,u.value=this._code.slice(t.start,t.end);else if(n===s.regexp){u.type=Pt.RegularExpression;let c="value"in t&&t.value;u.regex={flags:c.flags,pattern:c.pattern},u.value=`/${c.pattern}/${c.flags}`}return u}onToken(t,i){let n=this._acornTokTypes,s=i.tokens,o=this._tokens,u=()=>{s.push(Oh(this._tokens,this._code)),this._tokens=[]};if(t.type===n.eof){this._curlyBrace&&s.push(this.translate(this._curlyBrace,i));return}if(t.type===n.backQuote){this._curlyBrace&&(s.push(this.translate(this._curlyBrace,i)),this._curlyBrace=null),o.push(t),o.length>1&&u();return}if(t.type===n.dollarBraceL){o.push(t),u();return}if(t.type===n.braceR){this._curlyBrace&&s.push(this.translate(this._curlyBrace,i)),this._curlyBrace=t;return}if(t.type===n.template||t.type===n.invalidTemplate){this._curlyBrace&&(o.push(this._curlyBrace),this._curlyBrace=null),o.push(t);return}this._curlyBrace&&(s.push(this.translate(this._curlyBrace,i)),this._curlyBrace=null),s.push(this.translate(t,i))}},nc=Xs;var sc=[3,5,6,7,8,9,10,11,12,13,14,15,16,17],Vh=sc.at(-1);function Mh(){return Vh}function Jh(e=5){let t=e==="latest"?Mh():e;if(typeof t!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);if(t>=2015&&(t-=2009),!sc.includes(t))throw new Error("Invalid ecmaVersion.");return t}function jh(e="script"){if(e==="script"||e==="module"||e==="commonjs")return e;throw new Error("Invalid sourceType.")}function ac(e){let t=Jh(e.ecmaVersion),i=jh(e.sourceType),n=e.range===!0,s=e.loc===!0;if(t!==3&&e.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof e.allowReserved<"u"&&typeof e.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let o=t===3?e.allowReserved||"never":!1,u=e.ecmaFeatures||{},c=e.sourceType==="commonjs"||!!u.globalReturn;if(i==="module"&&t<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},e,{ecmaVersion:t,sourceType:i,ranges:n,locations:s,allowReserved:o,allowReturnOutsideFunction:c})}var Jr=Symbol("espree's internal state"),Ys=Symbol("espree's esprimaFinishNode");function Uh(e,t,i,n,s,o,u){let c;e?c="Block":u.slice(i,i+2)==="#!"?c="Hashbang":c="Line";let h={type:c,value:t};return typeof i=="number"&&(h.start=i,h.end=n,h.range=[i,n]),typeof s=="object"&&(h.loc={start:s,end:o}),h}var Zs=()=>e=>{let t=Object.assign({},e.acorn.tokTypes);return e.acornJsx&&Object.assign(t,e.acornJsx.tokTypes),class extends e{constructor(n,s){(typeof n!="object"||n===null)&&(n={}),typeof s!="string"&&!(s instanceof String)&&(s=String(s));let o=n.sourceType,u=ac(n),c=u.ecmaFeatures||{},h=u.tokens===!0?new nc(t,s):null,g={originalSourceType:o||u.sourceType,tokens:h?[]:null,comments:u.comment===!0?[]:null,impliedStrict:c.impliedStrict===!0&&u.ecmaVersion>=5,ecmaVersion:u.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:u.ecmaVersion,sourceType:u.sourceType,ranges:u.ranges,locations:u.locations,allowReserved:u.allowReserved,allowReturnOutsideFunction:u.allowReturnOutsideFunction,onToken(y){h&&h.onToken(y,g),y.type!==t.eof&&(g.lastToken=y)},onComment(y,A,v,b,D,T){if(g.comments){let J=Uh(y,A,v,b,D,T,s);g.comments.push(J)}}},s),this[Jr]=g}tokenize(){do this.next();while(this.type!==t.eof);this.next();let n=this[Jr],s=n.tokens;return n.comments&&(s.comments=n.comments),s}finishNode(n,s){let o=super.finishNode(n,s);return this[Ys](o)}finishNodeAt(n,s,o,u){let c=super.finishNodeAt(n,s,o,u);return this[Ys](c)}parse(){let n=this[Jr],o=super.parse();return o.sourceType=n.originalSourceType,n.comments&&(o.comments=n.comments),n.tokens&&(o.tokens=n.tokens),this[Jr].templateElements.forEach(u=>{let h=u.tail?1:2;u.start+=-1,u.end+=h,u.range&&(u.range[0]+=-1,u.range[1]+=h),u.loc&&(u.loc.start.column+=-1,u.loc.end.column+=h)}),o}parseTopLevel(n){return this[Jr].impliedStrict&&(this.strict=!0),super.parseTopLevel(n)}raise(n,s){let o=e.acorn.getLineInfo(this.input,n),u=new SyntaxError(s);throw u.index=n,u.lineNumber=o.line,u.column=o.column+1,u}raiseRecoverable(n,s){this.raise(n,s)}unexpected(n){let s="Unexpected token";if(n!=null){if(this.pos=n,this.options.locations)for(;this.pos<this.lineStart;)this.lineStart=this.input.lastIndexOf(`
|
|
61
|
+
`,this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(s+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,s)}jsx_readString(n){let s=super.jsx_readString(n);return this.type===t.string&&(this[Jr].jsxAttrValueToken=!0),s}[Ys](n){return n.type==="TemplateElement"&&this[Jr].templateElements.push(n),n.type.includes("Function")&&!("generator"in n)&&(n.generator=!1),n}}};var qh={_regular:null,_jsx:null,get regular(){if(this._regular===null){let e=Zs();this._regular=lt.extend(e)}return this._regular},get jsx(){if(this._jsx===null){let e=Zs(),t=(0,oc.default)();this._jsx=lt.extend(t,e)}return this._jsx},get(e){return!!(e&&e.ecmaFeatures&&e.ecmaFeatures.jsx)?this.jsx:this.regular}};function uc(e,t){let i=qh.get(t);return new i(t,e).parse()}var Bn=e=>e&&e.type==="NewExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Promise",ea=e=>e?.typeArguments?.params?.[0]?.type==="TSVoidKeyword"||e?.typeParameters?.params?.[0]?.type==="TSVoidKeyword",cc=new Set(["TSNeverKeyword","TSUndefinedKeyword","TSVoidKeyword"]),At=(e,t,i)=>{if(!e)return!1;switch(e.type){case"ArrowFunctionExpression":case"FunctionDeclaration":case"FunctionExpression":return"expression"in e&&e.expression&&(!Bn(e.body)||!ea(e.body))||At(e.body,t,i);case"BlockStatement":return e.body.some(n=>n.type!=="FunctionDeclaration"&&At(n,t,i));case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":case"ForStatement":case"LabeledStatement":case"WhileStatement":case"WithStatement":return At(e.body,t,i);case"IfStatement":return At(e.consequent,t,i)||At(e.alternate,t,i);case"MethodDefinition":return At(e.value,t,i);case"ReturnStatement":{if(e.argument===null){if(t)throw new Error("Null return");return!1}return i&&Bn(e.argument)?i(e.argument):!0}case"SwitchStatement":return e.cases.some(n=>n.consequent.some(s=>At(s,t,i)));case"TryStatement":return At(e.block,t,i)||At(e.handler&&e.handler.body,t,i)||At(e.finalizer,t,i);case"TSDeclareFunction":case"TSFunctionType":case"TSMethodSignature":{let n=e?.returnType?.typeAnnotation?.type;return n&&!cc.has(n)}default:return!1}},vr=(e,t)=>{if(!e)return!1;switch(e.type){case"ArrowFunctionExpression":case"FunctionDeclaration":case"FunctionExpression":return"expression"in e&&e.expression&&(!Bn(e.body)||!ea(e.body))||vr(e.body,t)||e.body.body.some(i=>i.type==="ReturnStatement");case"BlockStatement":{let i=e.body.slice(-1)[0];return vr(i,t)}case"DoWhileStatement":case"WhileStatement":if(e.test.value===!0)return At(e.body,!1,t);case"ForStatement":if(e.test===null)return At(e.body,!1,t);case"ForInStatement":case"ForOfStatement":case"LabeledStatement":case"WithStatement":return vr(e.body,t);case"IfStatement":return vr(e.consequent,t)&&vr(e.alternate,t);case"ReturnStatement":return e.argument===null?!1:t&&Bn(e.argument)?t(e.argument):!0;case"SwitchStatement":return e.cases.every(i=>!i.consequent.some(n=>n.type==="BreakStatement"||n.type==="ReturnStatement"&&n.argument===null));case"ThrowStatement":return!0;case"TryStatement":return e.finalizer&&vr(e.finalizer,t)||vr(e.block,t)&&(!e.handler||vr(e.handler&&e.handler.body,t))&&(!e.finalizer||(()=>{try{At(e.finalizer,!0,t)}catch(i){if(i.message==="Null return")return!1;throw i}return!0})());case"TSDeclareFunction":case"TSFunctionType":case"TSMethodSignature":{let i=e?.returnType?.typeAnnotation?.type;return i&&!cc.has(i)}default:return!1}},Re=(e,t)=>{if(!e)return!1;switch(e.type){case"ArrayExpression":case"ArrayPattern":return e.elements.some(i=>Re(i,t));case"ArrowFunctionExpression":case"FunctionDeclaration":case"FunctionExpression":return e.params[0]?.name===t?!1:Re(e.body,t);case"AssignmentExpression":case"BinaryExpression":case"LogicalExpression":return Re(e.left,t)||Re(e.right,t);case"AssignmentPattern":return Re(e.right,t);case"AwaitExpression":case"SpreadElement":case"UnaryExpression":case"YieldExpression":return Re(e.argument,t);case"BlockStatement":case"ClassBody":return e.body.some(i=>Re(i,t));case"CallExpression":case"OptionalCallExpression":return e.callee.name===t&&(e.arguments.length>1||e.arguments[0]!==void 0)||e.arguments.some(i=>i.type==="Identifier"&&i.name===t||Re(i,t));case"ChainExpression":case"Decorator":case"ExpressionStatement":return Re(e.expression,t);case"ClassDeclaration":case"ClassExpression":return Re(e.body,t);case"ClassMethod":case"MethodDefinition":return e.decorators&&e.decorators.some(i=>Re(i,t))||e.computed&&Re(e.key,t)||Re(e.value,t);case"ClassProperty":case"ObjectProperty":case"Property":case"PropertyDefinition":return e.computed&&Re(e.key,t)||Re(e.value,t);case"ConditionalExpression":case"IfStatement":return Re(e.test,t)||Re(e.consequent,t)||Re(e.alternate,t);case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":case"ForStatement":case"LabeledStatement":case"WhileStatement":case"WithStatement":return Re(e.body,t);case"Import":case"ImportExpression":return Re(e.source,t);case"MemberExpression":case"OptionalMemberExpression":return Re(e.object,t)||Re(e.property,t);case"ObjectExpression":case"ObjectPattern":return e.properties.some(i=>Re(i,t));case"ObjectMethod":return e.computed&&Re(e.key,t)||e.arguments.some(i=>Re(i,t));case"ReturnStatement":return e.argument===null?!1:Re(e.argument,t);case"SequenceExpression":case"TemplateLiteral":return e.expressions.some(i=>Re(i,t));case"SwitchStatement":return e.cases.some(i=>i.consequent.some(n=>Re(n,t)));case"TaggedTemplateExpression":return Re(e.quasi,t);case"TryStatement":return Re(e.block,t)||Re(e.handler&&e.handler.body,t)||Re(e.finalizer,t);case"VariableDeclaration":return e.declarations.some(i=>Re(i,t));case"VariableDeclarator":return Re(e.id,t)||Re(e.init,t);default:return!1}},In=(e,t,i)=>(i?(s,o)=>{let u;try{u=At(s,!0,o)}catch(c){if(c.message==="Null return")return!1;throw c}return!!(u&&vr(s,o))}:(s,o)=>!!At(s,!1,o))(e,s=>{if(t)return!0;if(ea(s))return!1;let{body:o,params:u}=s.arguments[0]||{};if(!u?.length)return!1;let{name:c}=u[0];return Re(o,c)});var Ut,ta=e=>{Ut=Gn(e)},jr=(e,t="")=>{let i=!1,n=!1,s=[],o=e.reduce((u,c)=>{if(Array.isArray(c)){let h;Array.isArray(c[1])?h=c[1]:(c[1].hasRestElement&&(i=!0),c[1].hasPropertyRest&&(n=!0),h=c[1].names);let g=jr(h,t?`${t}.${c[0]}`:c[0]);g.hasRestElement&&(i=!0),g.hasPropertyRest&&(n=!0);let y=[t?`${t}.${c[0]}`:c[0],...g.names].filter(Boolean);return s.push(!1,...g.rests),u.concat(y)}return typeof c=="object"?("isRestProperty"in c&&c.isRestProperty?(n=!0,s.push(!0)):s.push(!1),"restElement"in c&&c.restElement&&(i=!0),u.push(t?`${t}.${String(c.name)}`:String(c.name))):typeof c<"u"&&(s.push(!1),u.push(t?`${t}.${c}`:c)),u},[]);return{hasPropertyRest:n,hasRestElement:i,names:o,rests:s}},fc=e=>{if(!(e.type==="TSIndexSignature"||e.type==="TSConstructSignatureDeclaration"||e.type==="TSCallSignatureDeclaration"))return e.typeAnnotation&&e.typeAnnotation.typeAnnotation.type==="TSTypeLiteral"?[e.key.name,e.typeAnnotation.typeAnnotation.members.map(t=>fc(t))]:e.key.name},ra=(e,t,i)=>{let n=(s,o)=>{let u="left"in s&&"typeAnnotation"in s.left;if("typeAnnotation"in s||u){if(i&&"typeAnnotation"in s&&s.typeAnnotation)return[void 0,{hasPropertyRest:!1,hasRestElement:!1,names:[],rests:[]}];let c=u?s.left.typeAnnotation:s.typeAnnotation;if(c?.typeAnnotation?.type==="TSTypeLiteral"){let h=c.typeAnnotation.members.map(A=>fc(A)),g={...jr(h),annotationParamName:"name"in s?s.name:void 0},y="left"in s&&"name"in s.left;return"name"in s||y?[y?s.left.name:s.name,g]:[void 0,g]}}if("name"in s)return s.name;if("left"in s&&"name"in s.left)return s.left.name;if(s.type==="ObjectPattern"||"left"in s&&s.left.type==="ObjectPattern"){let h=(s.properties||s.left?.properties).map(g=>n(g,!0));return[void 0,jr(h)]}if(s.type==="Property"){switch(s.value.type){case"ArrayPattern":return[s.key.name,s.value.elements.map((c,h)=>({name:h,restElement:c?.type==="RestElement"}))];case"ObjectPattern":return[s.key.name,s.value.properties.map(c=>n(c,o))];case"AssignmentPattern":switch(s.value.left.type){case"ArrayPattern":return[s.key.name,s.value.left.elements.map((c,h)=>({name:h,restElement:c?.type==="RestElement"}))];case"Identifier":if(t&&s.value.right.type==="ObjectExpression")return[s.key.name,s.value.right.properties.map(c=>n(c,o))];break;case"ObjectPattern":return[s.key.name,s.value.left.properties.map(c=>n(c,o))]}}switch(s.key.type){case"Identifier":return s.key.name;case"Literal":return s.key.raw||s.key.value;default:return}}if(s.type==="ArrayPattern"||s.left?.type==="ArrayPattern"){let h=(s.elements||s.left?.elements).map((g,y)=>({name:`"${y}"`,restElement:g?.type==="RestElement"}));return[void 0,jr(h)]}if(["ExperimentalRestProperty","RestElement"].includes(s.type))return{isRestProperty:o,name:s.argument.name??s?.argument?.elements?.map(({name:c})=>c),restElement:!0};if(s.type==="TSParameterProperty")return n(s.parameter,!0);throw new Error(`Unsupported function signature format: \`${s.type}\`.`)};return e?(e?.typeAnnotation?.typeAnnotation?.params||e.params||e.value?.params||[]).map(s=>n(s)):[]},ia=e=>e.params.length,na=(e,t)=>{let i=[];for(let[n,{name:s,tag:o,type:u}]of e.tags.entries())o===t&&i.push({idx:n,name:s,type:u});return i},lc=_a(),dc=(e,t)=>{switch(e){case"closure":case"permissive":return ka;case"jsdoc":return nn;case"typescript":return Kn;default:return lc.hasBeenWarned(t,"mode")||(t.report({loc:{end:{column:1,line:1},start:{column:1,line:1}},message:`Unrecognized value \`${e}\` for \`settings.jsdoc.mode\`.`}),lc.markSettingAsWarned(t,"mode")),nn}},sa=(e,t)=>{let i=[];return e.source.some(({tokens:{description:n,end:s,lineEnd:o,name:u,postDelimiter:c,postTag:h,tag:g,type:y}})=>{let A=(g&&h||!g&&!u&&!y&&c||"").slice(1)+(n||"")+(o||"");return s?(A&&i.push(A),!0):(i.push(A),!1)}),t?i:i.join(`
|
|
62
|
+
`)},Nn=(e,t,i={},n={report(){}})=>{let s=Object.values(i);if(s.includes(e)||s.some(h=>h&&typeof h=="object"&&h.replacement===e))return e;let o=Object.fromEntries(Object.entries(i).map(([h,g])=>[h.replace(new RegExp("^tag ","v"),""),g]));if(Object.hasOwn(o,e))return o[e];let u=dc(t,n),c=Object.entries(u).find(([,h])=>h.includes(e))?.[0];return c||e},aa=(e,t,i,n)=>{let s=dc(t,e),o=Object.keys(s).concat(Object.values(s).flat()),u=n;return o.concat(u).includes(i)},ci=(e,t)=>{let i=t.toLowerCase();return e.tags.some(n=>n.tag.toLowerCase()===i)},li=(e,t)=>e.tags.filter(i=>t(i)),Rn=(e,t)=>li(e,i=>i.tag===t),Ln=(e,{allowObjectReturn:t=!1,context:i,tagName:n,defaultMessage:s=`Unexpected tag \`@${n}\``,mode:o,report:u=()=>{},skipReportingBlockedTag:c=!1,tagNamePreference:h})=>{let g=Nn(n,o,h,i),y=g&&typeof g=="object";if(ci(e,n)&&(g===!1||y&&!g.replacement)){if(c)return{blocked:!0,tagName:n};let A=y&&g.message||s;return u(A,null,Rn(e,n)[0]),!1}return y&&!t?g.replacement:g},oa=(e,t,i,{context:n,mode:s,report:o,skipReportingBlockedTag:u=!1,tagNamePreference:c}={})=>{let h=Ln(e,{context:n,mode:s,report:o,skipReportingBlockedTag:u,tagName:t,tagNamePreference:c});if(!h||u&&h&&typeof h=="object")return;let g=e.tags.filter(({tag:y})=>y===h);for(let y of g)i(y,h)},On=e=>[...e.inlineTags.map(t=>{let i=-1;for(let{tokens:{description:n}}of e.source)if(i++,n&&n.includes(`{@${t.tag}`))break;return t.line=i,t}),...e.tags.flatMap(t=>{for(let i of t.inlineTags){let n=0;for(let{number:s,tokens:{description:o}}of t.source)if(o&&o.includes(`{@${i.tag}`)){n=s;break}i.line=n}return t.inlineTags})],ua=e=>[...e.tags,...On(e)],Vn=(e,t)=>t.some(i=>ci(e,i)),ca=(e,t)=>{if(typeof e>"u"||e===null)return!0;let i=e.type.trim();if(i==="undefined"||i==="void"||i==="*"||i==="any")return!0;let n;try{n=Uo(i,t==="permissive"?void 0:[t],{computedPropertyParser:uc})}catch{}return!!(n&&n.type==="JsdocTypeUnion"&&n.elements.some(s=>s.type==="JsdocTypeUndefined"||s.type==="JsdocTypeName"&&s.value==="void"))},Yt=(e,t)=>(e.has(t)||e.set(t,new Map),e.get(t)),Mn=(e,t=Ut)=>{for(let[i,{name:n,required:s=[],type:o}]of Object.entries(e)){let u=Yt(t,i);u.set("namepathRole",n),u.set("typeAllowed",o);let c=s.includes("name");if(c&&n===!1)throw new Error('Cannot add "name" to `require` with the tag\'s `name` set to `false`');u.set("nameRequired",c);let h=s.includes("type");if(h&&o===!1)throw new Error('Cannot add "type" to `require` with the tag\'s `type` set to `false`');u.set("typeRequired",h);let g=s.includes("typeOrNameRequired");if(g&&n===!1)throw new Error('Cannot add "typeOrNameRequired" to `require` with the tag\'s `name` set to `false`');if(g&&o===!1)throw new Error('Cannot add "typeOrNameRequired" to `require` with the tag\'s `type` set to `false`');u.set("typeOrNameRequired",g)}},la=(e,t)=>{let i=Gn(e);try{Mn(t,i)}catch{}return i},mc=(e,t=Ut)=>{let i=Yt(t,e);return["name-defining","namepath-defining"].includes(i.get("namepathRole"))},pc=new WeakMap,yc=e=>{let t=pc.get(e);return t||(t=e.getAllComments().filter(i=>new RegExp("^\\*(?!\\*)","v").test(i.value)).map(i=>si(i,"")),pc.set(e,t)),t},$h=e=>yc(e).flatMap(t=>t.tags.filter(({tag:i})=>mc(i)&&!["arg","argument","param","prop","property"].includes(i))),Wh=(e,t=Ut)=>Yt(t,e).get("namepathRole")==="namepath-referencing",Gh=(e,t=Ut)=>Yt(t,e).get("namepathRole")==="namepath-or-url-referencing",pa=(e,t=Ut)=>Yt(t,e).get("typeRequired"),ha=(e,t=Ut)=>{if(pa(e,t))return!0;let n=Yt(t,e).get("typeAllowed");return n===void 0?!0:n},Kh=new Set(["name-defining","namepath-defining","namepath-referencing"]),zh=(e,t=Ut)=>{let n=Yt(t,e).get("namepathRole");return n===void 0?!0:!!n},fa=(e,t=Ut)=>{let n=Yt(t,e).get("namepathRole");return n!==!1&&Kh.has(n)},Hh=(e,t=Ut)=>{let n=Yt(t,e).get("namepathRole");return n!==!1&&["namepath-defining","namepath-referencing"].includes(n)},Qh=(e,t=Ut)=>{let n=Yt(t,e).get("namepathRole");return n!==!1&&n==="name-defining"},gc=(e,t=Ut)=>Yt(t,e).get("nameRequired"),xc=(e,t)=>!!ha(e,t)||fa(e,t),Xh=(e,t)=>Yt(t,e).get("typeOrNameRequired"),Jn=(e,t=Ut)=>{let i=pa(e.tag,t),s=ha(e.tag,t)&&!!e.type,o=(gc(e.tag,t)||fa(e.tag,t))&&!!e.name,u=Xh(e.tag,t),c=xc(e.tag,t)&&(s||o);return u&&!c&&!i},Ue=(e,t)=>{if(!e)return!1;switch(e.type){case"ArrayExpression":case"ArrayPattern":return e.elements.some(i=>Ue(i,t));case"AssignmentExpression":case"BinaryExpression":case"LogicalExpression":return Ue(e.left,t)||Ue(e.right,t);case"AssignmentPattern":return Ue(e.right,t);case"BlockStatement":return e.body.some(i=>!["ArrowFunctionExpression","FunctionDeclaration","FunctionExpression"].includes(i.type)&&Ue(i,t));case"CallExpression":case"OptionalCallExpression":return e.arguments.some(i=>Ue(i,t));case"ChainExpression":case"ExpressionStatement":return Ue(e.expression,t);case"ClassProperty":case"ObjectProperty":case"Property":case"PropertyDefinition":return e.computed&&Ue(e.key,t)||Ue(e.value,t);case"ConditionalExpression":case"IfStatement":return Ue(e.test,t)||Ue(e.consequent,t)||Ue(e.alternate,t);case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":case"ForStatement":case"LabeledStatement":case"WhileStatement":case"WithStatement":return Ue(e.body,t);case"Import":case"ImportExpression":return Ue(e.source,t);case"MemberExpression":case"OptionalMemberExpression":return Ue(e.object,t)||Ue(e.property,t);case"ObjectExpression":case"ObjectPattern":return e.properties.some(i=>Ue(i,t));case"ObjectMethod":return e.computed&&Ue(e.key,t)||e.arguments.some(i=>Ue(i,t));case"ReturnStatement":return e.argument===null?!1:Ue(e.argument,t);case"SequenceExpression":case"TemplateLiteral":return e.expressions.some(i=>Ue(i,t));case"SpreadElement":case"UnaryExpression":return Ue(e.argument,t);case"SwitchStatement":return e.cases.some(i=>i.consequent.some(n=>Ue(n,t)));case"TaggedTemplateExpression":return Ue(e.quasi,t);case"TryStatement":return Ue(e.block,t)||Ue(e.handler&&e.handler.body,t)||Ue(e.finalizer,t);case"VariableDeclaration":return e.declarations.some(i=>Ue(i,t));case"VariableDeclarator":return Ue(e.id,t)||Ue(e.init,t);case"YieldExpression":return t?e.parent?.type==="VariableDeclarator":e.argument!==null;default:return!1}},Gi=(e,t)=>e.generator&&(e.expression||Ue(e.body,t)),nr=(e,t)=>{if(!e)return!1;switch(e.type){case"ArrowFunctionExpression":case"FunctionDeclaration":case"FunctionExpression":return!t&&!e.async&&nr(e.body,!0);case"BlockStatement":return e.body.some(i=>i.type!=="FunctionDeclaration"&&nr(i));case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":case"ForStatement":case"LabeledStatement":case"WhileStatement":case"WithStatement":return nr(e.body);case"IfStatement":return nr(e.consequent)||nr(e.alternate);case"SwitchStatement":return e.cases.some(i=>i.consequent.some(n=>nr(n)));case"ThrowStatement":return!0;case"TryStatement":return nr(e.handler&&e.handler.body)||nr(e.finalizer);default:return!1}},vc=e=>{let t=[],i=0,n="";for(let s of e)s==="<"||s==="{"||s==="("?i++:(s===">"||s==="}"||s===")")&&(i=Math.max(0,i-1)),s===","&&i===0?(t.push(n),n=""):n+=s;return t.push(n),t},da=e=>vc(e.name).map(t=>t.trim().replace(new RegExp("^\\[?\\s*(?<name>.*?)\\s*=.*$","v"),"$<name>")),Yh=e=>vc(e.name).map(t=>t.trim().replace(new RegExp("^\\[?[^=]*(?:=(?<dflt>.*?)\\]?)?$","v"),"$<dflt>").trim()).filter(Boolean),ma=(e,t,i)=>e.options[0]?.contexts||i.contexts||(t===!0?["ArrowFunctionExpression","FunctionDeclaration","FunctionExpression","TSDeclareFunction"]:t),ya=(e,t,i,n)=>{let s={};for(let[o,u]of e.entries()){let c,h;if(typeof u=="object"){let y={lastIndex:o,selector:u.context};if(u.comment&&!i)throw new Error("The `comment` property of a `contexts` entry (e.g., one from `settings.jsdoc.contexts`) is not supported by this rule; give the rule its own `contexts` option instead.");u.comment?(c=u.context,h=t.bind(null,{...y,comment:u.comment},i.bind(null,u.comment))):(c=u.context,h=t.bind(null,y,null))}else{c=u,n&&c==="any"&&(c=":not(Program)");let y={lastIndex:o,selector:c};h=t.bind(null,y,null)}let g=s[c];s[c]=g?function(y){g(y),h(y)}:h}return s},Zh=new Set(["arg","argument","param","prop","property","return","returns","template"]),ga=(e,t,i)=>{let n=[];return{tagsWithNames:i.filter(o=>{let{tag:u}=o,c=Zh.has(u);return c||n.push(o),c}),tagsWithoutNames:n}},ef=e=>(e.text.match(new RegExp("^\\n*([ \\t]+)","v"))?.[1]??"")+" ",jn=e=>e?.type==="MethodDefinition"&&e.kind==="constructor"||e?.parent?.kind==="constructor",Cc=e=>e!==null&&e.parent?.kind==="get",Ac=e=>e!==null&&e.parent?.kind==="set",hc=e=>{let{key:t,kind:i,type:n}=e,s=t.name,o=i==="get"?"set":"get";return(n==="MethodDefinition"?e.parent.body:e.parent.properties).some(c=>{let{key:h,kind:g}=c,y=h.name;return g===o&&y===s})},xa=(e,t,i,n)=>{let s=c=>{let h=n[0].properties;return i.options[0]?.[c]??(h[c]&&h[c].default)},o=s("checkGetters"),u=s("checkSetters");return!s("checkConstructors")&&(jn(t)||Vn(e,["class","constructor"]))||Cc(t)&&(!o||o==="no-setter"&&hc(t.parent))||Ac(t)&&(!u||u==="no-getter"&&hc(t.parent))},Ur=e=>e.replaceAll(new RegExp(`\\.(['"])(.*)\\1`,"gv"),".$2"),va=e=>t=>t===e||Ur(t)===Ur(e),Ca=(e,t)=>!e.startsWith(t)&&!Ur(e).startsWith(Ur(t)),Aa=(e,t)=>{let i=e.match(new RegExp("^\\/(.*)\\/([gimyvus]*)$","vs")),n="v",s=e;return i&&([,s,n]=i,n||(n="v")),n=[...new Set(n+(t||""))].join(""),new RegExp(s,n)},tf=["undefined","null","boolean","number","bigint","string","symbol","object","Array","Function","Date","RegExp"],rf=(e,t,i,n,s="")=>{let o=Cs(i,ni).split(`
|
|
63
|
+
`),u=o.shift(),c=o.pop(),h=t.source.findIndex(({tokens:D})=>D.name||D.description),g=h===-1?null:t.source.slice(h),y=t.source[0].number,A=[{number:y,source:"",tokens:{...t.source[0].tokens,...o.length||c?{end:"",name:"",postName:"",postType:""}:g?{name:g[0].tokens.name,postType:" "}:{},type:"{"+s+u+(!o.length&&c===void 0?s+"}":"")}},...o.length?o.map((D,T)=>({number:y+T+1,source:"",tokens:{...t.source[0].tokens,delimiter:t.source[0].tokens.delimiter==="/**"?"*":t.source[0].tokens.delimiter,end:"",name:"",postName:"",postTag:"",postType:"",start:n+" ",tag:"",type:D}})):[]];g&&h>0?((o.length||c!==void 0)&&A.push({number:A.length+1,source:"",tokens:{...g[0].tokens,type:c+s+"}"}}),g.length>1&&A.push(...g.slice(1).map(({source:D,tokens:T},J)=>({number:A.length+J+2,source:D,tokens:T})))):g?((o.length||c!==void 0)&&c&&A.push({number:A.length+1,source:"",tokens:{...g[0].tokens,delimiter:g[0].tokens.delimiter==="/**"?"*":g[0].tokens.delimiter,postTag:"",start:n+" ",tag:"",type:c+s+"}"}}),g.length>1&&A.push(...g.slice(1).map(({source:D,tokens:T},J)=>({number:A.length+J+2,source:D,tokens:T})))):c&&A.push({number:A.length+1,source:"",tokens:{...t.source[0].tokens,delimiter:t.source[0].tokens.delimiter==="/**"?"*":t.source[0].tokens.delimiter,postTag:"",start:n+" ",tag:"",type:c+s+"}"}}),t.source=A;let v=e.source.findIndex(({tokens:{tag:D}})=>D),b=e.source.find(({tokens:{end:D}})=>D);e.source=[...e.source.slice(0,v),...e.tags.flatMap(({source:D})=>D)],b&&!e.source.at(-1)?.tokens?.end&&e.source.push(b)};var Ki=Wn(Ds(),1),{rewireSpecs:nf,seedTokens:pi}=au,sf=new Map,Ea=(e,{mode:t,tagNamePreference:i})=>{let n={};for(let s of["isNameOrNamepathDefiningTag","isNamepathReferencingTag","isNamepathOrUrlReferencingTag","tagMightHaveNameOrNamepath","tagMightHaveName","tagMightHaveNamepath"])n[s]=o=>qr[s](o);return n.reportSettings=s=>{e.report({loc:{end:{column:1,line:1},start:{column:1,line:1}},message:s})},n.parseClosureTemplateTag=s=>da(s),n.pathDoesNotBeginWith=Ca,n.getPreferredTagNameObject=({tagName:s})=>{let o=Nn(s,t,i,e);return o===!1||o&&typeof o=="object"&&!o.replacement?{blocked:!0,tagName:s}:o},n},af=(e,t,i,n,s,o,u,c,h,g)=>{let y=e?u.getAncestors?u.getAncestors(e):o.getAncestors():[],{sourceCode:A=o.getSourceCode()}=o,v=Ea(o,n),{augmentsExtendsReplacesDocs:b,ignoreReplacesDocs:D,implementsReplacesDocs:T,maxLines:J,minLines:w,mode:_,overrideReplacesDocs:N,tagNamePreference:d}=n,F=["ArrowFunctionExpression","FunctionDeclaration","FunctionExpression","MethodDefinition"];v.isIteratingFunction=()=>!c||F.includes(String(e?.type)),v.isIteratingFunctionOrVariable=()=>v.isIteratingFunction()?!0:(e?.type==="VariableDeclaration"?e.declarations:e?.type==="ExportNamedDeclaration"&&e.declaration?.type==="VariableDeclaration"?e.declaration.declarations:[]).some(({init:R})=>F.includes(String(R?.type))),v.isVirtualFunction=()=>!!c&&v.hasATag(["callback","function","func","method"]),v.stringify=(k,R)=>{let V;return R&&(V=nf(k)),nu(R?V:k)},v.reportJSDoc=(k,R,V,l,O,ne)=>{let H=Z=>ce=>{let we=Z(ce),Pe=v.stringify(t,l);if(!Pe){let Oe=A.getText(),Je=Oe.slice(0,i.range[0]).search(new RegExp("\\n[ \\t]*$","v"));return Je>-1?[ce.removeRange([Je,i.range[1]]),...we?[we]:[]]:[ce.removeRange(new RegExp("\\s","v").test(Oe.charAt(i.range[1]))?[i.range[0],i.range[1]+1]:i.range),...we?[we]:[]]}return[ce.replaceText(i,Pe),...we?[we]:[]]};s(k,V?H(V):null,R,O,ne?.map(({desc:Z,handler:ce})=>({desc:Z,fix:H(ce)})))},v.getRegexFromString=(k,R)=>Aa(k,R),v.getTagDescription=(k,R)=>sa(k,R),v.setTagDescription=(k,R,V)=>{let l=0;return k.source.some(({tokens:{description:O}},ne)=>O&&R.test(O)?(k.source[ne].tokens.description=V(O),l=ne,!0):!1),l},v.getDescription=()=>{let k=[],R=0,V=!1;return t.source.some(({tokens:{description:l,end:O,tag:ne}},H)=>(ne&&(V=!0),H&&(ne||O)?(R=H-1,!V&&l&&k.push(l),!0):(!V&&(H||l)&&k.push(l||(k.length?"":`
|
|
64
|
+
`)),!1))),{description:k.join(`
|
|
65
|
+
`),descriptions:k,lastDescriptionLine:R}},v.setBlockDescription=k=>{let R=[],V=[],l,O,ne;t.source.some(({tokens:{delimiter:H,description:Z,end:ce,postDelimiter:we,start:Pe,tag:Oe}},Je)=>H==="/**"?!1:(l===void 0&&(l=Je,ne={delimiter:H,postDelimiter:we,start:Pe}),Oe||ce?(O=Je,!0):(V.push(we),R.push(Z),!1))),R.length&&t.source.splice(l,O-l,...k(ne,pi,R,V))},v.setDescriptionLines=(k,R)=>{let V=0;return t.source.some(({tokens:{description:l,end:O,tag:ne}},H)=>H&&(ne||O)?!0:l&&k.test(l)?(t.source[H].tokens.description=R(l),V=H,!0):!1),V},v.changeTag=(k,...R)=>{for(let[V,l]of k.source.entries())l.tokens={...l.tokens,...R[V]}},v.setTag=(k,R)=>{k.source=[{number:k.line,source:"",tokens:pi({delimiter:"*",postDelimiter:" ",start:g+" ",tag:"@"+k.tag,...R})}]},v.removeTag=(k,{removeEmptyBlock:R=!1,tagSourceOffset:V=0}={})=>{let{source:l}=t.tags[k],O,ne=t.source[0].number;l.some(({number:H},Z)=>{let ce=t.source.findIndex(({number:we})=>H===we);if(ce>-1){let we=1;l.slice(Z+1).some(({tokens:{end:st,tag:se}})=>!se&&!st?(we++,!1):!0);let Pe=ce+V,{delimiter:Oe,end:Je}=t.source[Pe].tokens;if(Pe===0&&t.tags.length>=2||!R&&(Je||Oe==="/**")){let{tokens:st}=t.source[Pe];for(let se of["postDelimiter","tag","postTag","type","postType","name","postName","description"])st[se]=""}else t.source.splice(Pe,we-V+(Pe?0:t.source.length)),l.splice(Z+V,we-V+(Pe?0:t.source.length));return O=ce,!0}return!1});for(let[H,Z]of t.source.slice(O).entries())Z.number=ne+O+H};let L=A.text.includes(`\r
|
|
66
|
+
`)?"\r":"";v.newLineEnd=L;let S=["description","postName","name","postType","type","postTag","tag"],U=k=>S.some(R=>k[R]);v.moveClosingDelimiterToOwnLine=()=>{let k=t.source.length-1,{tokens:R}=t.source[k];if(!R.end||!U(R))return!1;let{end:V,lineEnd:l}=R,{number:O}=t.source[k],ne=[t.source[k],...t.tags.flatMap(({source:H})=>H.filter(({number:Z})=>Z===O))];for(let{tokens:H}of ne){H.end="",H.lineEnd=L;let Z=S.find(ce=>H[ce]);H[Z]=H[Z].trimEnd()}return v.addLine(k+1,{end:V,lineEnd:l,start:g+" "}),!0};let K=()=>{let k=t.source.length-1;return v.moveClosingDelimiterToOwnLine()?k+1:t.source.some(({tokens:{tag:R}})=>R)?t.source.findLastIndex(({tokens:R},V)=>V<k&&U(R))+1:k};v.addTag=(k,R,V={})=>{R===void 0&&t.source.length===1&&v.makeMultiline();let l=R??K();t.source.splice(l,0,{number:l,source:"",tokens:pi({delimiter:"*",lineEnd:L,postDelimiter:" ",start:g+" ",tag:`@${k}`,...V})});for(let O of t.source.slice(l+1))O.number++},v.getFirstLine=()=>{let k;for(let{number:R,tokens:{tag:V}}of t.source)if(V){k=R;break}return k},v.seedTokens=pi,v.emptyTokens=k=>{for(let R of["start","postDelimiter","tag","type","postType","postTag","name","postName","description","end","lineEnd"])k[R]=""},v.addLine=(k,R)=>{let V=(t.source[k-1]?.number||0)+1;t.source.splice(k,0,{number:V,source:"",tokens:pi(R)});for(let l of t.source.slice(V+1))l.number++},v.addLines=(k,R,V)=>{let{source:l}=t.tags[k],O,ne=t.source[0].number;l.some(({number:H})=>{let Z=()=>({number:H,source:"",tokens:pi({delimiter:"*",lineEnd:L,start:g+" "})}),ce=()=>Array.from({length:V},Z),we=t.source.findIndex(({number:Pe,tokens:{end:Oe}})=>H===Pe&&!Oe);if(we>-1){let Pe=ce();return t.source.splice(we+R,0,...Pe),O=we,!0}return!1});for(let[H,Z]of t.source.slice(O).entries())Z.number=ne+O+H},v.makeMultiline=()=>{let{source:[{tokens:k}]}=t,{description:R,lineEnd:V,name:l,postDelimiter:O,tag:ne,type:H}=k,{tokens:{postName:Z,postTag:ce,postType:we}}=t.source[0];R||(Z?Z="":we?we="":ce&&(ce="")),v.emptyTokens(k),k.lineEnd=L,v.addLine(1,{delimiter:"*",description:R.trimEnd(),lineEnd:L,name:l,postDelimiter:O,postName:Z,postTag:ce,postType:we,start:g+" ",tag:ne,type:H}),v.addLine(2,{end:"*/",lineEnd:V,start:g+" "})},v.flattenRoots=jr,v.getFunctionParameterNames=(k,R)=>ra(e,k,R),v.hasParams=()=>ia(e),v.isGenerator=()=>e!==null&&!!(e.generator||e.type==="MethodDefinition"&&e.value.generator||["ExportDefaultDeclaration","ExportNamedDeclaration"].includes(e.type)&&e.declaration?.generator),v.isConstructor=()=>jn(e),v.getJsdocTagsDeep=k=>{let R=v.getPreferredTagName({tagName:k});return R?na(t,R):!1},v.getPreferredTagName=k=>Ln(t,{...k,context:o,mode:_,report:s,tagNamePreference:d}),v.isValidTag=(k,R)=>aa(o,_,k,R),v.hasATag=k=>Vn(t,k),v.hasTag=k=>ci(t,k),v.comparePaths=k=>va(k),v.dropPathSegmentQuotes=k=>Ur(k),v.avoidDocs=(k=!0)=>{if(D!==!1&&(v.hasTag("ignore")||v.classHasTag("ignore"))||N!==!1&&(v.hasTag("override")||v.classHasTag("override"))||T!==!1&&(v.hasTag("implements")||v.classHasTag("implements"))||b&&(v.hasATag(["augments","extends"])||v.classHasTag("augments")||v.classHasTag("extends"))||k&&xa(t,e,o,h.meta.schema))return!0;let R=o.options[0]?.exemptedBy??["inheritDoc",..._==="closure"?[]:["inheritdoc"]];return!!(R.length&&v.getPresentTags(R).length)};for(let k of["tagMightHaveNamePosition","tagMightHaveTypePosition"])v[k]=(R,V)=>qr[k](R)?!0:V&&V.some(ne=>qr[k](R,ne))?{otherMode:!0}:!1;v.tagMissingRequiredTypeOrNamepath=(k,R)=>Jn(k)?R.every(O=>Jn(k,O))?!0:{otherMode:!1}:!1;for(let k of["tagMustHaveNamePosition","tagMustHaveTypePosition"])v[k]=(R,V)=>qr[k](R)?V.every(ne=>qr[k](R,ne))?!0:{otherMode:!1}:!1;return v.getTagStructureForMode=k=>la(k,n.structuredTags),v.mayBeUndefinedTypeTag=k=>ca(k,n.mode),v.hasValueOrExecutorHasNonEmptyResolveValue=(k,R)=>In(e,k,R),v.hasYieldValue=()=>["ExportDefaultDeclaration","ExportNamedDeclaration"].includes(e.type)?Gi(e.declaration):Gi(e),v.hasYieldReturnValue=()=>Gi(e,!0),v.hasThrowValue=()=>nr(e),v.isAsync=()=>!!(e&&"async"in e&&e.async),v.getTags=k=>Rn(t,k),v.getPresentTags=k=>li(t,R=>k.includes(R.tag)),v.filterTags=k=>li(t,R=>k(R)),v.filterAllTags=k=>ua(t).filter(V=>k(V)),v.getInlineTags=()=>On(t),v.getTagsByType=k=>ga(o,_,k),v.hasOptionTag=k=>{let{tags:R}=o.options[0]??{};return!!(R&&R.includes(k))},v.getClassNode=()=>[...y,e].toReversed().find(k=>k&&["ClassDeclaration","ClassExpression"].includes(k.type))??null,v.getClassJsdoc=()=>{let k=v.getClassNode();if(!k)return null;let R=Ri(A,k,{maxLines:J,minLines:w});return R?si(R,""):null},v.classHasTag=k=>{let R=v.getClassJsdoc();return R!==null&&ci(R,k)},v.forEachPreferredTag=(k,R,V)=>oa(t,k,R,{context:o,mode:_,report:s,skipReportingBlockedTag:V,tagNamePreference:d}),v.findContext=(k,R)=>{let V=k.find(O=>typeof O=="string"?O==="any"||Ki.default.matches(e,Ki.default.parse(O),void 0,{visitorKeys:A.visitorKeys}):(!O.context||O.context==="any"||Ki.default.matches(e,Ki.default.parse(O.context),void 0,{visitorKeys:A.visitorKeys}))&&R===O.comment);return{contextStr:typeof V=="object"?V.context??"any":String(V),foundContext:V}},v},Da=e=>{let t={ignorePrivate:!!e.settings.jsdoc?.ignorePrivate,ignoreInternal:!!e.settings.jsdoc?.ignoreInternal,maxLines:Number(e.settings.jsdoc?.maxLines??1),minLines:Number(e.settings.jsdoc?.minLines??0),skipInvokedExpressionsForCommentFinding:!!e.settings.jsdoc?.skipInvokedExpressionsForCommentFinding,tagNamePreference:e.settings.jsdoc?.tagNamePreference??{},preferredTypes:e.settings.jsdoc?.preferredTypes??{},structuredTags:e.settings.jsdoc?.structuredTags??{},overrideReplacesDocs:e.settings.jsdoc?.overrideReplacesDocs,ignoreReplacesDocs:e.settings.jsdoc?.ignoreReplacesDocs,implementsReplacesDocs:e.settings.jsdoc?.implementsReplacesDocs,augmentsExtendsReplacesDocs:e.settings.jsdoc?.augmentsExtendsReplacesDocs,exemptDestructuredRootsFromChecks:e.settings.jsdoc?.exemptDestructuredRootsFromChecks,mode:e.settings.jsdoc?.mode??"typescript",contexts:e.settings.jsdoc?.contexts};ta(t.mode);try{Mn(t.structuredTags)}catch(i){return e.report({loc:{end:{column:1,line:1},start:{column:1,line:1}},message:i.message}),!1}return t},Ec=(e,t)=>(n,s=null,o=null,u=void 0,c=void 0)=>{let h;if(o){"line"in o||(o.line=o.source[0].number);let g=t.loc.start.line+o.line;if(h={end:{column:0,line:g},start:{column:0,line:g}},"column"in o&&typeof o.column=="number"){let y=t.loc.start.column+o.column;h.end.column=y,h.start.column=y}}e.report({data:u,fix:s,loc:h,message:n,node:t,suggest:c})},ba=(e,t,i,n,s,o,u,c,h,g,y,A)=>{let v=o,b=Ec(s,v),D=af(u,i,o,c,b,s,h,A,n,t);!n.checkInternal&&c.ignoreInternal&&D.hasTag("internal")||!n.checkPrivate&&c.ignorePrivate&&(D.hasTag("private")||li(i,({tag:T})=>T==="access").some(({description:T})=>T==="private"))||g({context:s,globalState:sf,indent:t,info:e,jsdoc:i,jsdocNode:v,node:u,report:b,settings:c,sourceCode:h,state:y,utils:D})},Dc=function(e,t){let n=e[t.loc.start.line-1].charAt(0);n!==" "&&n!==" "&&(n=" ");let s=n.repeat(t.loc.start.column),o=si(t,"");return[s,o]},bc=(e,t,i,n)=>{let s,o,u=(c,h,g,y,A)=>{let{sourceCode:v=c.getSourceCode()}=c,{lines:b}=v,D=Ea(c,o);for(let J of g){let w=J;if(!new RegExp("^\\/\\*\\*\\s","v").test(v.getText(w)))continue;let[_,N]=Dc(b,J);if(n){for(let[L,{comment:S}]of i.entries())S&&s(S,N)===!1||ba({comment:S,lastIndex:L,selector:h?.type},_,N,t,c,J,h,o,v,e,y,!0);continue}let d,F;i&&i.every(({comment:L},S)=>(d=L,F=S,L&&s(L,N)===!1))||ba(d?{comment:d,lastIndex:F,selector:h?.type}:{lastIndex:F,selector:h?.type},_,N,t,c,J,h,o,v,e,y,!0)}let T=o;A&&t.exit&&t.exit({context:c,settings:T,state:y,utils:D})};return{create(c){let{sourceCode:h=c.getSourceCode()}=c;if(typeof h.getTokenBefore!="function")return{};if(o=Da(c),!o)return{};i&&(s=ws({...o,mode:o.mode==="permissive"?"typescript":o.mode}));let g=new Set,y={};return{"*:not(Program)"(A){let v=Ri(h,A,o);if(!(!t.noTracking&&g.has(v))){if(!v){if(t.nonComment){let b=y;t.nonComment({node:A,state:b})}return}g.add(v),u(c,A,[v],y)}},"Program:exit"(){let v=h.getAllComments().filter(b=>!g.has(b));u(c,null,v,y,!0)}}},meta:t.meta}},of=(e,t)=>({create(i){let{sourceCode:n=i.getSourceCode()}=i,s=Da(i);return s?{"Program:exit"(){let o=n.getAllComments(),u=Ea(i,s);e({allComments:o,context:i,makeReport:Ec,settings:s,sourceCode:n,utils:u})}}:{}},meta:t.meta});function Sa(e,t){let i=t?.meta?.type;if(!i||!["layout","problem","suggestion"].includes(i))throw new TypeError('Rule must include `meta.type` option (with value "problem", "suggestion", or "layout")');if(typeof e!="function")throw new TypeError("The iterator argument must be a function.");return t.checkFile?of(e,t):t.iterateAllJsdocs?bc(e,t):{create(n){let s=t.modifyContext?t.modifyContext(n):n,o=Da(s);if(!o)return{};let u;if(t.contextDefaults||t.contextSelected||t.matchContext){u=t.matchContext&&s.options[0]?.match?s.options[0].match:ma(s,t.contextDefaults,t.nonGlobalSettings?{}:o),u&&(u=u.map(D=>typeof D=="object"&&!D.context?{...D,context:"any"}:D));let v=u?.includes("any"),b=!v&&u?.find(D=>typeof D=="string"?!1:D?.context==="any");if(v||b)return bc(e,t,b||t.matchContext?u:null,t.matchContext).create(s)}let{sourceCode:c=s.getSourceCode()}=s,{lines:h}=c,g={},y=(v,b,D)=>{let T=Ri(c,D,o);if(!T)return;let[J,w]=Dc(h,T);b&&b(w)===!1||ba(v,J,w,t,s,T,D,o,c,e,g)},A={};if(u&&(t.contextDefaults||t.contextSelected||t.matchContext))A=ya(u,y,ws({...o,mode:o.mode==="permissive"?"typescript":o.mode}));else for(let v of["ArrowFunctionExpression","FunctionDeclaration","FunctionExpression","TSDeclareFunction"])A[v]=y.bind(null,{selector:v},null);return typeof t.exit=="function"&&(A["Program:exit"]=()=>{let v=g;t.exit({context:s,settings:o,state:v})}),A},meta:t.meta}}var Sc=({contextName:e,contexts:t,description:i,getContexts:n,modifyContext:s,schema:o,url:u})=>Sa(({context:c,info:{comment:h},report:g,utils:y})=>{let A=t;if(n&&(A=n(c,g),!A))return;let{contextStr:v,foundContext:b}=y.findContext(A,h);if(!b)return;let D=b?.message??"Syntax is restricted: {{context}}"+(h?" with {{comment}}":"");g(D,null,null,h?{comment:h,context:v}:{context:v})},{contextSelected:!0,meta:{docs:{description:i??e??"Reports when certain comment structures are present.",url:u??"https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/advanced.md#user-content-advanced-creating-your-own-rules"},schema:o??[],type:"suggestion"},modifyContext:s??(n?void 0:c=>{let h=Object.getOwnPropertyDescriptors(c);return Object.create(Object.getPrototypeOf(c),{...h,options:{...h.options,value:[{contexts:t}]}})}),nonGlobalSettings:!0});var wc=Sc({getContexts(e,t){if(!e.options.length)return t("Rule `no-restricted-syntax` is missing a `contexts` option."),!1;let{contexts:i}=e.options[0];return i},schema:[{additionalProperties:!1,properties:{contexts:{description:'Set this to an array of strings representing the AST context (or an object with\n`context` and `comment` properties) where you wish the rule to be applied.\n\n`context` defaults to `any` and `comment` defaults to no specific comment context.\n\nUse the `message` property to indicate the specific error to be shown when an\nerror is reported for that context being found. Defaults to\n`"Syntax is restricted: {{context}}"`, or with a comment, to\n`"Syntax is restricted: {{context}} with {{comment}}"`.\n\nSet to `"any"` if you want the rule to apply to any JSDoc block throughout\nyour files (as is necessary for finding function blocks not attached to a\nfunction declaration or expression, i.e., `@callback` or `@function` (or its\naliases `@func` or `@method`) (including those associated with an `@interface`).\n\nSee the ["AST and Selectors"](../advanced.md#ast-and-selectors)\nsection of our Advanced docs for more on the expected format.',items:{anyOf:[{type:"string"},{additionalProperties:!1,properties:{comment:{type:"string"},context:{type:"string"},message:{type:"string"}},type:"object"}]},type:"array"}},required:["contexts"],type:"object"}],url:"https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-restricted-syntax.md#repos-sticky-header"});var uf={"no-restricted-syntax":wc},Ld={meta:{name:"eslint-plugin-jsdoc",version:"65.4.4"},rules:uf};export{Ld as default};
|